Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправление builder-а для удобства разработки #863

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "_build/env"]
path = _build/env
url = https://github.com/dimasites/modx-build-environment-gui
1 change: 1 addition & 0 deletions _build/env
Submodule env added at f8ff67
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PKG_NAME = 'miniShop2';
define('PKG_NAME_LOWER', strtolower(PKG_NAME));

const PKG_VERSION = '4.1.5';
const PKG_VERSION = '4.2.0';
const PKG_RELEASE = 'pl';
const PKG_AUTO_INSTALL = true;

Expand Down
4 changes: 2 additions & 2 deletions _build/build.model.php → _build/minishop2/build.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
}

// Define sources
$root = dirname(__FILE__, 2) . '/';
$root = dirname(__FILE__, 3) . '/';
$sources = [
'root' => $root,
'build' => $root . '_build/',
'build' => $root . '_build/' . PKG_NAME_LOWER . '/',
'source_core' => $root . 'core/components/' . PKG_NAME_LOWER,
'model' => $root . 'core/components/' . PKG_NAME_LOWER . '/model/',
'schema' => $root . 'core/components/' . PKG_NAME_LOWER . '/model/schema/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
}

// Define sources
$root = dirname(__FILE__, 2) . '/';
$root = dirname(__FILE__, 3) . '/';

$sources = [
'root' => $root,
'build' => $root . '_build/',
'data' => $root . '_build/data/',
'resolvers' => $root . '_build/resolvers/',
'build' => $root . '_build/' . PKG_NAME_LOWER . '/',
'data' => $root . '_build/' . PKG_NAME_LOWER . '/data/',
'resolvers' => $root . '_build/' . PKG_NAME_LOWER . '/resolvers/',
'chunks' => $root . 'core/components/' . PKG_NAME_LOWER . '/elements/chunks/',
'snippets' => $root . 'core/components/' . PKG_NAME_LOWER . '/elements/snippets/',
'plugins' => $root . 'core/components/' . PKG_NAME_LOWER . '/elements/plugins/',
Expand Down Expand Up @@ -303,8 +304,13 @@
}
}
$modx->log(modX::LOG_LEVEL_INFO, "\n<br />Execution time: {$totalTime}\n");

$download_url = '/_build/env/index.php?getpackage='.PKG_NAME_LOWER.'-'.PKG_VERSION.'-'.PKG_RELEASE;
$modx->log(modX::LOG_LEVEL_INFO,"\n<br /><a target='_blank' href='{$download_url}'>[DOWNLOAD PACKAGE]</a><br />\n");

echo '</pre>';

if (!empty($_GET['download'])) {
echo '<script>document.location.href = "/core/packages/' . $signature . '.transport.zip' . '";</script>';
}

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@

'msOnManagerCustomCssJs',

'msOnBeforeVendorCreate',
'msOnAfterVendorCreate',
'msOnBeforeVendorUpdate',
'msOnAfterVendorUpdate',
'msOnBeforeVendorDelete',
'msOnAfterVendorDelete',
];

foreach ($tmp as $k => $v) {
Expand Down
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions core/components/minishop2/docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.2.0-pl] - 2022-05-01

### Added
- Additional Events for Vendors
- New section with information and useful links
- New field rank for msVendor
- Information about the customer in emails to the manager

### Fixed
- The problem of additional shipping costs if it is indicated as a percentage
- Sorting in payment options
- Improved use of return = json mode in msProducts

## [4.1.5-pl] - 2022-04-09

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions core/components/minishop2/lexicon/be/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$_lang['ms2_deliveries'] = 'Варыянты дастаўкі';
$_lang['ms2_deliveries_intro'] = 'Магчымыя варыянты дастаўкі. Логіка падлічвання кошту дастаўкі ў залежнасці ад адлегласці і вагі рэалізуецца класам, які вы пакажа ў наладах. <br>Калі вы не пазначыце свой клас, разлік будзе вырабляцца алгарытмам па змаўчанні.';
$_lang['ms2_delivery'] = 'Дастаўка';
$_lang['ms2_email_link_to_order'] = 'Заказ в панели управления →';
$_lang['ms2_email_subject_cancelled_user'] = 'Ваш заказ #[[+num]] быў адменены';
$_lang['ms2_email_subject_new_manager'] = 'У вас новы заказ #[[+num]]';
$_lang['ms2_email_subject_new_user'] = 'Вы зрабілі заказ #[[+num]] на сайце [[++site_name]]';
Expand Down Expand Up @@ -124,6 +125,8 @@
$_lang['ms2_frontend_tags'] = 'Тэгі';
$_lang['ms2_frontend_text_address'] = 'Адрас адным радком';
$_lang['ms2_frontend_weight_unit'] = 'кг.';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_desc'] = 'Полезные ссылки и информация';
$_lang['ms2_link'] = 'Сувязь тавараў';
$_lang['ms2_links'] = 'Сувязі тавараў';
$_lang['ms2_links_intro'] = 'Спіс магчымых сувязяў тавараў адзін з адным. Тып сувязі характарызуе, як менавіта яна будзе працаваць, яго нельга ствараць, можна толькі выбраць з спісу.';
Expand Down
43 changes: 43 additions & 0 deletions core/components/minishop2/lexicon/be/help.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/**
* Help Lexicon Entries
* Sorted by key, alphabetically
*
* @package minishop2
* @subpackage lexicon
*/

$_lang['ms2_components_href'] = 'https://modstore.pro/search?query=minishop';
$_lang['ms2_components_text'] = 'Платные и бесплатные дополнения';
$_lang['ms2_components_title'] = 'Дополнения';
$_lang['ms2_demo_href'] = 'https://minishop2.com/';
$_lang['ms2_demo_text'] = 'Перейти на демо-сайт';
$_lang['ms2_demo_title'] = 'Демо';
$_lang['ms2_docs_href'] = 'https://docs.modx.pro/komponentyi/minishop2';
$_lang['ms2_docs_text'] = 'Официальная документация';
$_lang['ms2_docs_title'] = 'Документация';
$_lang['ms2_forum_href'] = 'https://modx.pro/';
$_lang['ms2_forum_text'] = 'Помощь от сообщества';
$_lang['ms2_forum_title'] = 'Форум';
$_lang['ms2_github_href'] = 'https://github.com/modx-pro/miniShop2';
$_lang['ms2_github_text'] = 'Нашли проблему? Сообщите об этом!';
$_lang['ms2_github_title'] = 'github.com';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_text'] = 'miniShop2 - самый гибкий и быстрый компонент интернет-магазина для MODX Revolution.';
$_lang['ms2_help_text_support'] = '<strong>Вы можете поддержать miniShop2:</strong>
<br>- Переводом на карту Тинькофф <a href="https://www.tinkoff.ru/sl/2V9U9RrcJZP" target="_blank">https://www.tinkoff.ru/sl/2V9U9RrcJZP</a>;
<br>- Переводом на Qiwi-кошелек <a href="http://qiwi.com/p/77012827737" target="_blank">http://qiwi.com/p/77012827737</a>;
<br>- Переводом на YooMoney <a href="https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131" target="_blank">https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131</a>;
<br>- Переводом на Казахстан Каспи, по номеру +7 701 282 77 37;';
$_lang['ms2_lexicons_href'] = '?a=workspaces/lexicon&ns=minishop2';
$_lang['ms2_lexicons_text'] = 'Управление словарями';
$_lang['ms2_localization_href'] = 'https://crowdin.com/project/minishop2-ecommerce';
$_lang['ms2_localization_text'] = 'Помогите с переводом';
$_lang['ms2_localization_title'] = 'Локализация';
$_lang['ms2_orders_href'] = '?a=mgr/orders&namespace=minishop2';
$_lang['ms2_orders_text'] = 'Заказы';
$_lang['ms2_settings_href'] = '?a=mgr/settings&namespace=minishop2';
$_lang['ms2_settings_text'] = 'Настройки';
$_lang['ms2_sys_settings_href'] = '?a=system/settings&ns=minishop2';
$_lang['ms2_sys_settings_text'] = 'Системные настройки & События';
4 changes: 2 additions & 2 deletions core/components/minishop2/lexicon/be/product.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
$_lang['ms2_drag_move_one_success'] = 'Товар успешно перенесён в категорию <strong>«{0}»</strong>';
$_lang['ms2_drag_self_many'] = 'Отмена';
$_lang['ms2_drag_self_one'] = 'Отмена';
$_lang['ms2_drag_sort_many'] = 'Переместить товары';
$_lang['ms2_drag_sort_one'] = 'Переместить товар';
$_lang['ms2_drag_sort_many'] = 'Переместить выбранные';
$_lang['ms2_drag_sort_one'] = 'Переместить';
$_lang['ms2_gallery_button_upload'] = 'Выбраць файлы';
$_lang['ms2_gallery_emptymsg'] = '<p style="padding: 20px 0 0 5px;color:#555;">Файлаў не знойдзена. <br><br>вы можаце загрузіць іх, перацягнуўшы прама на гэтую панэль або выбраўшы кнопкай уверсе.</p>';
$_lang['ms2_gallery_errors'] = 'Памылкі пры загрузцы';
Expand Down
3 changes: 3 additions & 0 deletions core/components/minishop2/lexicon/de/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$_lang['ms2_deliveries'] = 'Lieferungen';
$_lang['ms2_deliveries_intro'] = 'Verschiedene Varianten der Lieferung. Die Logik der Preiskalkulation der Lieferung (abhängig von der Distanz und dem Gewicht der Ware) ist in Form einer Klasse implementiert, die in den Einstellungen festgelegt werden kann. <br>Wenn Sie keine Klasse angeben, wird der Standard-Algorythmus die Berechnung vornehmen.';
$_lang['ms2_delivery'] = 'Lieferung';
$_lang['ms2_email_link_to_order'] = 'Заказ в панели управления →';
$_lang['ms2_email_subject_cancelled_user'] = 'Ihre Bestellung #[[+num]] wurde gestrichen';
$_lang['ms2_email_subject_new_manager'] = 'Neue Bestellung #[[+num]]';
$_lang['ms2_email_subject_new_user'] = 'Ihre Bestellung #[[+num]] auf [[++site_name]]';
Expand Down Expand Up @@ -124,6 +125,8 @@
$_lang['ms2_frontend_tags'] = 'Tags';
$_lang['ms2_frontend_text_address'] = 'Адрес одной строкой';
$_lang['ms2_frontend_weight_unit'] = 'kg';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_desc'] = 'Полезные ссылки и информация';
$_lang['ms2_link'] = 'Produktlink';
$_lang['ms2_links'] = 'Produktlinks';
$_lang['ms2_links_intro'] = 'The list of possible links of goods with each other. Connection type describes exactly how it will work, it is impossible to create, you can only select from the list.';
Expand Down
43 changes: 43 additions & 0 deletions core/components/minishop2/lexicon/de/help.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/**
* Help Lexicon Entries
* Sorted by key, alphabetically
*
* @package minishop2
* @subpackage lexicon
*/

$_lang['ms2_components_href'] = 'https://modstore.pro/search?query=minishop';
$_lang['ms2_components_text'] = 'Платные и бесплатные дополнения';
$_lang['ms2_components_title'] = 'Дополнения';
$_lang['ms2_demo_href'] = 'https://minishop2.com/';
$_lang['ms2_demo_text'] = 'Перейти на демо-сайт';
$_lang['ms2_demo_title'] = 'Демо';
$_lang['ms2_docs_href'] = 'https://docs.modx.pro/komponentyi/minishop2';
$_lang['ms2_docs_text'] = 'Официальная документация';
$_lang['ms2_docs_title'] = 'Документация';
$_lang['ms2_forum_href'] = 'https://modx.pro/';
$_lang['ms2_forum_text'] = 'Помощь от сообщества';
$_lang['ms2_forum_title'] = 'Форум';
$_lang['ms2_github_href'] = 'https://github.com/modx-pro/miniShop2';
$_lang['ms2_github_text'] = 'Нашли проблему? Сообщите об этом!';
$_lang['ms2_github_title'] = 'github.com';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_text'] = 'miniShop2 - самый гибкий и быстрый компонент интернет-магазина для MODX Revolution.';
$_lang['ms2_help_text_support'] = '<strong>Вы можете поддержать miniShop2:</strong>
<br>- Переводом на карту Тинькофф <a href="https://www.tinkoff.ru/sl/2V9U9RrcJZP" target="_blank">https://www.tinkoff.ru/sl/2V9U9RrcJZP</a>;
<br>- Переводом на Qiwi-кошелек <a href="http://qiwi.com/p/77012827737" target="_blank">http://qiwi.com/p/77012827737</a>;
<br>- Переводом на YooMoney <a href="https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131" target="_blank">https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131</a>;
<br>- Переводом на Казахстан Каспи, по номеру +7 701 282 77 37;';
$_lang['ms2_lexicons_href'] = '?a=workspaces/lexicon&ns=minishop2';
$_lang['ms2_lexicons_text'] = 'Управление словарями';
$_lang['ms2_localization_href'] = 'https://crowdin.com/project/minishop2-ecommerce';
$_lang['ms2_localization_text'] = 'Помогите с переводом';
$_lang['ms2_localization_title'] = 'Локализация';
$_lang['ms2_orders_href'] = '?a=mgr/orders&namespace=minishop2';
$_lang['ms2_orders_text'] = 'Заказы';
$_lang['ms2_settings_href'] = '?a=mgr/settings&namespace=minishop2';
$_lang['ms2_settings_text'] = 'Настройки';
$_lang['ms2_sys_settings_href'] = '?a=system/settings&ns=minishop2';
$_lang['ms2_sys_settings_text'] = 'Системные настройки & События';
4 changes: 2 additions & 2 deletions core/components/minishop2/lexicon/de/product.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
$_lang['ms2_drag_move_one_success'] = 'Товар успешно перенесён в категорию <strong>«{0}»</strong>';
$_lang['ms2_drag_self_many'] = 'Отмена';
$_lang['ms2_drag_self_one'] = 'Отмена';
$_lang['ms2_drag_sort_many'] = 'Переместить товары';
$_lang['ms2_drag_sort_one'] = 'Переместить товар';
$_lang['ms2_drag_sort_many'] = 'Переместить выбранные';
$_lang['ms2_drag_sort_one'] = 'Переместить';
$_lang['ms2_gallery_button_upload'] = 'Dateien wählen';
$_lang['ms2_gallery_emptymsg'] = 'Für Bilderupload gewünschte Bilder per Drag & Drop auf dieses Feld ziehen oder Button benutzen.';
$_lang['ms2_gallery_errors'] = 'Ошибки при загрузке';
Expand Down
3 changes: 3 additions & 0 deletions core/components/minishop2/lexicon/el/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$_lang['ms2_deliveries'] = 'Διανομές';
$_lang['ms2_deliveries_intro'] = 'Πιθανές παραλλαγές διανομής. Η λογική του υπολογισμού του κόστους παράδοσης ανάλογα μ την απόσταση και το βάρος υλοποιείται από μία κλάση, την οποία εσείς καθορίζετε στις ρυθμίσεις. <br>Εάν δεν καθορίσετε μία κλάση, οι υπολογισμοί θα γίνουν στον αλγόριθμο από προεπιλογή.';
$_lang['ms2_delivery'] = 'Διανομή';
$_lang['ms2_email_link_to_order'] = 'Заказ в панели управления →';
$_lang['ms2_email_subject_cancelled_user'] = 'Η παραγγελία σας #[[+num]] ακυρώθηκε';
$_lang['ms2_email_subject_new_manager'] = 'Έχετε μία νέα παραγγελία #[[+num]]';
$_lang['ms2_email_subject_new_user'] = 'Κάνατε την παραγγελία σας #[[+num]] στο [[++site_name]]';
Expand Down Expand Up @@ -124,6 +125,8 @@
$_lang['ms2_frontend_tags'] = 'Ετικέτες';
$_lang['ms2_frontend_text_address'] = 'Адрес одной строкой';
$_lang['ms2_frontend_weight_unit'] = 'pt.';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_desc'] = 'Полезные ссылки и информация';
$_lang['ms2_link'] = 'Σύνδεσμος των προϊόντων';
$_lang['ms2_links'] = 'Σύνδεσμοι των προϊόντων';
$_lang['ms2_links_intro'] = 'Η λίστα των πιθανών συνδέσμων των προϊόντων μεταξύ τους. Ο τύπος σύνδεσης περιγράφει ακριβώς πως θα λειτουρήσει, είναι αδύνατο να δημιουργηθεί, μπορείτε μόνο να επιλέξετε από τη λίστα.';
Expand Down
43 changes: 43 additions & 0 deletions core/components/minishop2/lexicon/el/help.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/**
* Help Lexicon Entries
* Sorted by key, alphabetically
*
* @package minishop2
* @subpackage lexicon
*/

$_lang['ms2_components_href'] = 'https://modstore.pro/search?query=minishop';
$_lang['ms2_components_text'] = 'Платные и бесплатные дополнения';
$_lang['ms2_components_title'] = 'Дополнения';
$_lang['ms2_demo_href'] = 'https://minishop2.com/';
$_lang['ms2_demo_text'] = 'Перейти на демо-сайт';
$_lang['ms2_demo_title'] = 'Демо';
$_lang['ms2_docs_href'] = 'https://docs.modx.pro/komponentyi/minishop2';
$_lang['ms2_docs_text'] = 'Официальная документация';
$_lang['ms2_docs_title'] = 'Документация';
$_lang['ms2_forum_href'] = 'https://modx.pro/';
$_lang['ms2_forum_text'] = 'Помощь от сообщества';
$_lang['ms2_forum_title'] = 'Форум';
$_lang['ms2_github_href'] = 'https://github.com/modx-pro/miniShop2';
$_lang['ms2_github_text'] = 'Нашли проблему? Сообщите об этом!';
$_lang['ms2_github_title'] = 'github.com';
$_lang['ms2_help'] = 'Помощь и поддержка';
$_lang['ms2_help_text'] = 'miniShop2 - самый гибкий и быстрый компонент интернет-магазина для MODX Revolution.';
$_lang['ms2_help_text_support'] = '<strong>Вы можете поддержать miniShop2:</strong>
<br>- Переводом на карту Тинькофф <a href="https://www.tinkoff.ru/sl/2V9U9RrcJZP" target="_blank">https://www.tinkoff.ru/sl/2V9U9RrcJZP</a>;
<br>- Переводом на Qiwi-кошелек <a href="http://qiwi.com/p/77012827737" target="_blank">http://qiwi.com/p/77012827737</a>;
<br>- Переводом на YooMoney <a href="https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131" target="_blank">https://yoomoney.ru/fundraise/RPkkYwNcL7A.230131</a>;
<br>- Переводом на Казахстан Каспи, по номеру +7 701 282 77 37;';
$_lang['ms2_lexicons_href'] = '?a=workspaces/lexicon&ns=minishop2';
$_lang['ms2_lexicons_text'] = 'Управление словарями';
$_lang['ms2_localization_href'] = 'https://crowdin.com/project/minishop2-ecommerce';
$_lang['ms2_localization_text'] = 'Помогите с переводом';
$_lang['ms2_localization_title'] = 'Локализация';
$_lang['ms2_orders_href'] = '?a=mgr/orders&namespace=minishop2';
$_lang['ms2_orders_text'] = 'Заказы';
$_lang['ms2_settings_href'] = '?a=mgr/settings&namespace=minishop2';
$_lang['ms2_settings_text'] = 'Настройки';
$_lang['ms2_sys_settings_href'] = '?a=system/settings&ns=minishop2';
$_lang['ms2_sys_settings_text'] = 'Системные настройки & События';
4 changes: 2 additions & 2 deletions core/components/minishop2/lexicon/el/product.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
$_lang['ms2_drag_move_one_success'] = 'Товар успешно перенесён в категорию <strong>«{0}»</strong>';
$_lang['ms2_drag_self_many'] = 'Отмена';
$_lang['ms2_drag_self_one'] = 'Отмена';
$_lang['ms2_drag_sort_many'] = 'Переместить товары';
$_lang['ms2_drag_sort_one'] = 'Переместить товар';
$_lang['ms2_drag_sort_many'] = 'Переместить выбранные';
$_lang['ms2_drag_sort_one'] = 'Переместить';
$_lang['ms2_gallery_button_upload'] = 'Выбрать файлы';
$_lang['ms2_gallery_emptymsg'] = '<p style="padding: 20px 0 0 5px;color:#555;">Файлов не найдено. <br><br>Вы можете загрузить их, перетащив прямо на эту панель или выбрав кнопкой вверху.</p>';
$_lang['ms2_gallery_errors'] = 'Ошибки при загрузке';
Expand Down
Loading