-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from DevCraftClub/rel/173.3.0
- Loading branch information
Showing
3,924 changed files
with
46,518 additions
and
620,021 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [Gokujo,] | ||
ko_fi: devcraft | ||
custom: ['https://paypal.me/MaximH', 'https://sobe.ru/na/devcraftclub', 'https://yoomoney.ru/to/41001454367103', 'https://www.donationalerts.com/r/maharder', 'https://devcraft.club/donate/drives/na-chaj.1/'] | ||
custom: ['https://paypal.me/MaximH', 'https://sobe.ru/na/devcraftclub', 'https://yoomoney.ru/to/41001454367103', 'https://www.donationalerts.com/r/maharder'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Другие запросы | ||
description: Если не знаешь куда и где и что оформлять, то этот тикет для тебя | ||
title: "[Прочее]: " | ||
labels: | ||
- Прочее | ||
- Не знаю куда | ||
assignees: | ||
- Gokujo | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Спасибо, что нашли время, чтобы составить этот отчёт | ||
- type: checkboxes | ||
id: read-rules | ||
attributes: | ||
label: Пользовательское соглашение | ||
description: Перед просьбой добавить или "починить" что-либо в срочном порядке - [нужно прочесть соглашение](https://devcraft.club/pages/licence-agreement/). | ||
options: | ||
- label: Я прочёл / прочла соглашение и согласен / согласна с ними | ||
required: true | ||
- type: textarea | ||
id: what-do-you-need | ||
attributes: | ||
label: В чём соль? | ||
description: Если можно, то пожалуйста, опиши то, что хочешь. Если можно пошагово и как можно детальней | ||
placeholder: Я хочу, но не значю что... | ||
value: "Моя хотелка или проблемка!" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: dle-version | ||
attributes: | ||
label: Версия DLE | ||
description: На какую версию DLE расчитывать? | ||
options: | ||
- "17.3 (Default)" | ||
- "17.2" | ||
- "17.1" | ||
- "17.0" | ||
- "17.х" | ||
- "16.x" | ||
- "15.x" | ||
- "14.x" | ||
- "13.x" | ||
- "< 13.x" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: php-version | ||
attributes: | ||
label: Версия PHP | ||
description: На какой версии PHP работает сайт? | ||
options: | ||
- "8.x (Default)" | ||
- "7.x" | ||
- "5.x" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: "screenshots" | ||
attributes: | ||
label: Скриншоты и файлы | ||
description: Если есть возможность, добавь скриншоты и / или файлы как ты себе представляешь новый функционал | ||
value: | | ||
![DESCRIPTION](LINK.png) | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Запрос на новый функционал | ||
description: Опиши то, что хочешь видеть в плагине | ||
title: "[Запрос]: " | ||
labels: | ||
- Запрос на функционал | ||
- enhancement | ||
assignees: | ||
- Gokujo | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Спасибо, что нашли время, чтобы составить этот отчёт | ||
- type: checkboxes | ||
id: read-rules | ||
attributes: | ||
label: Пользовательское соглашение | ||
description: Перед просьбой добавить или "починить" что-либо в срочном порядке - [нужно прочесть соглашение](https://devcraft.club/pages/licence-agreement/). | ||
options: | ||
- label: Я прочёл / прочла соглашение и согласен / согласна с ними | ||
required: true | ||
- type: textarea | ||
id: what-do-you-need | ||
attributes: | ||
label: В чём соль? | ||
description: Если можно, то пожалуйста, опиши то, что хочешь увидеть в плагине в дальнейшем. Если можно пошагово и как можно детальней | ||
placeholder: Я хочу, но не значю что... | ||
value: "Моя хотелка!" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: dle-version | ||
attributes: | ||
label: Версия DLE | ||
description: На какую версию DLE расчитывать? | ||
options: | ||
- "17.3 (Default)" | ||
- "17.2" | ||
- "17.1" | ||
- "17.0" | ||
- "17.х" | ||
- "16.x" | ||
- "15.x" | ||
- "14.x" | ||
- "13.x" | ||
- "< 13.x" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: php-version | ||
attributes: | ||
label: Версия PHP | ||
description: На какой версии PHP работает сайт? | ||
options: | ||
- "8.x (Default)" | ||
- "7.x" | ||
- "5.x" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: "screenshots" | ||
attributes: | ||
label: Скриншоты и файлы | ||
description: Если есть возможность, добавь скриншоты и / или файлы как ты себе представляешь новый функционал | ||
value: | | ||
![DESCRIPTION](LINK.png) | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
// Пути к файлам | ||
$ROOT = dirname(__FILE__, 3); | ||
|
||
$manifestPath = $ROOT . '/manifest.json'; | ||
$readmePath = $ROOT . '/README.md'; | ||
|
||
// Проверяем наличие manifest.json | ||
if (!file_exists($manifestPath)) { | ||
die("Файл manifest.json не найден.\n"); | ||
} | ||
|
||
// Читаем и парсим manifest.json | ||
$manifestContent = file_get_contents($manifestPath); | ||
$manifest = json_decode($manifestContent, true); | ||
|
||
// Проверяем корректность JSON | ||
if (json_last_error() !== JSON_ERROR_NONE) { | ||
die("Ошибка парсинга JSON: " . json_last_error_msg() . "\n"); | ||
} | ||
|
||
// Формируем badges | ||
$badges = []; | ||
|
||
// Badge: Текущая версия | ||
if (isset($manifest['version'])) { | ||
$badges[] = "![Текущая версия](https://img.shields.io/badge/version-{$manifest['version']}-green?style=for-the-badge)"; | ||
} | ||
|
||
// Badge: Статус | ||
if (isset($manifest['status'])) { | ||
$badges[] = "![Статус](https://img.shields.io/badge/status-{$manifest['status']}-orange?style=for-the-badge)"; | ||
} | ||
|
||
// Badge: DLE Version | ||
if (!empty($manifest['dle']) && is_array($manifest['dle'])) { | ||
$dleVersions = implode(', ', $manifest['dle']); | ||
$badges[] = "![DLE Version](https://img.shields.io/badge/DLE-$dleVersions-blue?style=for-the-badge)"; | ||
} | ||
|
||
// Badge: PHP Version | ||
if (!empty($manifest['php']) && is_array($manifest['php'])) { | ||
$phpVersions = implode(', ', $manifest['php']); | ||
$badges[] = "![PHP Version](https://img.shields.io/badge/PHP-$phpVersions-red?style=for-the-badge)"; | ||
} | ||
|
||
// Генерируем Markdown для badges | ||
$newBadgesMarkdown = implode("", $badges); | ||
|
||
// Читаем README.md | ||
if (!file_exists($readmePath)) { | ||
die("Файл README.md не найден.\n"); | ||
} | ||
$readmeContent = file_get_contents($readmePath); | ||
|
||
// Обновляем badges в README.md | ||
$updatedReadmeContent = preg_replace( | ||
'/(?<=# MHAdmin\n\n)(.*?)(?=\n\n\[)/s', | ||
$newBadgesMarkdown . "\n", | ||
$readmeContent | ||
); | ||
|
||
// Сохраняем обновленный README.md | ||
if (file_put_contents($readmePath, $updatedReadmeContent) !== false) { | ||
echo "README.md успешно обновлен.\n"; | ||
} else { | ||
echo "Ошибка обновления README.md.\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Update README | ||
|
||
on: | ||
push: | ||
paths: | ||
- "manifest.json" | ||
|
||
jobs: | ||
update-readme: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Шаг 1: Клонируем репозиторий | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Шаг 2: Устанавливаем PHP | ||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
# Шаг 3: Запускаем скрипт | ||
- name: Run PHP script | ||
run: php ./.github/scripts/update_readme.php | ||
|
||
# Шаг 4: Коммит изменений | ||
- name: Commit changes | ||
run: | | ||
git config --local user.name "GitHub Actions" | ||
git config --local user.email "[email protected]" | ||
git add README.md .last_manifest_version | ||
git commit -m "Update README.md based on manifest.json" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
/nbproject | ||
.idea/* | ||
.idea/* | ||
|
||
upload/engine/inc/maharder/_cache | ||
upload/engine/inc/maharder/_cache/* | ||
upload/engine/inc/maharder/_cache/**/ | ||
upload/engine/inc/maharder/_cache/**/* | ||
upload/engine/inc/maharder/_config | ||
upload/engine/inc/maharder/_config/* | ||
upload/engine/inc/maharder/_logs | ||
upload/engine/inc/maharder/_logs/* | ||
upload/engine/inc/maharder/_logs/**/ | ||
upload/engine/inc/maharder/_logs/**/* | ||
upload/engine/inc/maharder/_migrations | ||
upload/engine/inc/maharder/_migrations/* | ||
upload/engine/inc/maharder/_includes/vendor | ||
upload/engine/inc/maharder/_includes/vendor/* | ||
upload/engine/inc/maharder/_includes/vendor/**/* | ||
upload/engine/inc/maharder/_includes/composer | ||
upload/engine/inc/maharder/_includes/composer/* | ||
upload/engine/inc/maharder/_includes/composer/**/ | ||
upload/engine/inc/maharder/_includes/composer/**/* | ||
|
||
upload/engine/inc/maharder/_includes/assets.json | ||
upload/engine/inc/maharder/admin/composer.lock | ||
upload/engine/inc/maharder/admin/composer.phar | ||
!upload/engine/inc/maharder/_cache/.htaccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Создание временной директории | ||
mkdir -p temp | ||
|
||
# Копирование содержимого папки "upload" в "temp" | ||
cp -r upload/* temp/ | ||
|
||
# Перейти в папку temp | ||
cd temp || exit 1 | ||
|
||
# Упаковать содержимое в ZIP без сжатия (аналог -mx0 в 7-Zip) | ||
zip -0 -r -o dle_faker.zip * | ||
|
||
# Вернуться в родительскую директорию | ||
cd .. | ||
|
||
# Копировать файл в нужное место с перезаписью | ||
cp -f temp/dle_faker.zip dle_faker_install.zip | ||
|
||
# Удаление временной директории | ||
rm -rf temp | ||
|
||
# Завершение | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.