Skip to content

Commit 1d400e7

Browse files
committed
сменил зависимость с modxProVueCore на VueTools
1 parent 5594eb5 commit 1d400e7

25 files changed

+195
-152
lines changed

_build/config.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'name_lower' => 'minishop3',
1414
'name_short' => 'ms3',
1515
'version' => '1.0.0',
16-
'release' => 'alpha.5',
16+
'release' => 'beta.1',
1717
// Install package to site right after build
1818
'install' => false,
1919
// Which elements should be updated on package upgrade

_build/resolvers/resolver_06_metrics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
return [
122122
'package_name' => 'MiniShop3',
123-
'package_version' => '1.0.0-alpha.5',
123+
'package_version' => '1.0.0-beta.1',
124124
'ms3_install_type' => $installType,
125125
'ms3_previous_version' => $previousVersion,
126126
'php_version' => PHP_VERSION,

core/components/minishop3/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"robmorgan/phinx": "^0.16",
1616
"nikic/fast-route": "^1.3",
1717
"intervention/image": "^3.0",
18-
"ramsey/uuid": "^4.7"
18+
"ramsey/uuid": "^4.7",
19+
"brick/math": "^0.12"
1920
},
2021
"autoload": {
2122
"psr-4": {

core/components/minishop3/composer.lock

Lines changed: 99 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/components/minishop3/controllers/category/update.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function loadCustomCssJs()
9090
$this->addJavascript($assetsUrl . 'js/mgr/category/product.grid.js');
9191
$this->addLastJavascript($assetsUrl . 'js/mgr/category/update.js');
9292

93-
// Vue Category Products Grid with ModxProVueCore dependency check
93+
// Vue Category Products Grid with VueTools dependency check
9494
$this->addCss($assetsUrl . 'css/mgr/vue-dist/category-products.min.css');
9595
$this->addVueModule($assetsUrl . 'js/mgr/vue-dist/category-products.min.js');
9696

core/components/minishop3/controllers/manager.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class msManagerController extends \MODX\Revolution\modExtraManagerController
77
public $ms3;
88

99
/**
10-
* Check if ModxProVueCore check script is already registered
10+
* Check if VueTools check script is already registered
1111
* @var bool
1212
*/
1313
protected static $vueCoreCheckRegistered = false;
@@ -51,7 +51,7 @@ public function addLastJavascript($script)
5151
}
5252

5353
/**
54-
* Register Vue ES module with ModxProVueCore dependency check
54+
* Register Vue ES module with VueTools dependency check
5555
*
5656
* @param string $src Module script URL
5757
* @return void
@@ -74,14 +74,14 @@ public function addVueModule($src)
7474
}
7575

7676
/**
77-
* Register inline script that checks for ModxProVueCore Import Map
77+
* Register inline script that checks for VueTools Import Map
7878
* If not found, shows MODX alert and prevents Vue module loading
7979
*/
8080
protected function registerVueCoreCheck()
8181
{
8282
$alertTitle = $this->modx->lexicon('ms3_error') ?: 'Error';
83-
$alertMessage = $this->modx->lexicon('ms3_modxprovuecore_required')
84-
?: 'ModxProVueCore package is required. Please install it from Package Manager.';
83+
$alertMessage = $this->modx->lexicon('ms3_vuetools_required')
84+
?: 'VueTools package is required. Please install it from Package Manager.';
8585

8686
$script = <<<JS
8787
<script>

core/components/minishop3/controllers/mgr/customers.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function loadCustomCssJs()
4141
$this->addHtml('<script>Object.assign(ms3.config, ' . json_encode($config) . ');</script>');
4242

4343
$this->addCss($this->ms3->config['assetsUrl'] . 'css/mgr/vue-dist/customers.min.css');
44-
// Vue module with ModxProVueCore dependency check
44+
// Vue module with VueTools dependency check
4545
$this->addVueModule($this->ms3->config['assetsUrl'] . 'js/mgr/vue-dist/customers.min.js');
4646

4747
$this->addHtml('

core/components/minishop3/controllers/mgr/notifications.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function loadCustomCssJs()
3939
$this->addHtml('<script>Object.assign(ms3.config, ' . json_encode($config) . ');</script>');
4040

4141
$this->addCss($this->ms3->config['assetsUrl'] . 'css/mgr/vue-dist/notifications.min.css');
42-
// Vue module with ModxProVueCore dependency check
42+
// Vue module with VueTools dependency check
4343
$this->addVueModule($this->ms3->config['assetsUrl'] . 'js/mgr/vue-dist/notifications.min.js');
4444

4545
$this->addHtml('

core/components/minishop3/controllers/mgr/order.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function loadCustomCssJs()
4242
$this->addHtml('<script>Object.assign(ms3.config, ' . json_encode($config) . ');</script>');
4343

4444
$this->addCss($this->ms3->config['assetsUrl'] . 'css/mgr/vue-dist/order.min.css');
45-
// Vue module with ModxProVueCore dependency check
45+
// Vue module with VueTools dependency check
4646
$this->addVueModule($this->ms3->config['assetsUrl'] . 'js/mgr/vue-dist/order.min.js');
4747

4848
$this->addHtml('

core/components/minishop3/controllers/mgr/orders.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function loadCustomCssJs()
4141
$this->addHtml('<script>Object.assign(ms3.config, ' . json_encode($config) . ');</script>');
4242

4343
$this->addCss($this->ms3->config['assetsUrl'] . 'css/mgr/vue-dist/orders.min.css');
44-
// Vue module with ModxProVueCore dependency check
44+
// Vue module with VueTools dependency check
4545
$this->addVueModule($this->ms3->config['assetsUrl'] . 'js/mgr/vue-dist/orders.min.js');
4646

4747
$this->addHtml('

0 commit comments

Comments
 (0)