@vc-shell/create-vc-app 1.0.227 → 1.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.js +2 -2
- package/dist/templates/base/_package.json +5 -5
- package/dist/templates/modules/dynamic-module/composables/use{{ModuleNamePascalCase}}Details/index.ts +3 -7
- package/dist/templates/modules/dynamic-module/composables/use{{ModuleNamePascalCase}}List/index.ts +3 -3
- package/dist/templates/sample/dynamic-module/composables/useDetails/index.ts +4 -3
- package/dist/templates/sample/dynamic-module/composables/useList/index.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [1.0.229](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.228...v1.0.229) (2024-06-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [1.0.228](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.227...v1.0.228) (2024-06-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* refactor sample and scaffold template to use object literal syntax for scope ([083d039](https://github.com/VirtoCommerce/vc-shell/commit/083d039f2d5dcbbd1ad1f914220cab5c11651b46))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## [1.0.227](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.226...v1.0.227) (2024-06-04)
|
|
2
15
|
|
|
3
16
|
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,14 @@ import i from "node:path";
|
|
|
6
6
|
import u from "node:fs";
|
|
7
7
|
import { fileURLToPath as $e } from "node:url";
|
|
8
8
|
import { cwd as je, argv as Ae, exit as ke } from "node:process";
|
|
9
|
-
const we = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.
|
|
9
|
+
const we = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.229", Me = "module", Te = "./dist/index.js", Ue = [
|
|
10
10
|
"dist"
|
|
11
11
|
], Ee = {
|
|
12
12
|
build: "vite build && yarn postbuild",
|
|
13
13
|
postbuild: "shx cp -R src/templates dist/"
|
|
14
14
|
}, Le = {
|
|
15
15
|
"@types/prompts": "^2.4.4",
|
|
16
|
-
"@vc-shell/ts-config": "^1.0.
|
|
16
|
+
"@vc-shell/ts-config": "^1.0.229",
|
|
17
17
|
copyfiles: "^2.4.1",
|
|
18
18
|
"cross-env": "^7.0.3",
|
|
19
19
|
shx: "^0.3.4",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@types/node": "^20.10.5",
|
|
24
24
|
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
25
25
|
"@typescript-eslint/parser": "^6.16.0",
|
|
26
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
27
|
-
"@vc-shell/release-config": "^1.0.
|
|
28
|
-
"@vc-shell/ts-config": "^1.0.
|
|
26
|
+
"@vc-shell/api-client-generator": "^1.0.229",
|
|
27
|
+
"@vc-shell/release-config": "^1.0.229",
|
|
28
|
+
"@vc-shell/ts-config": "^1.0.229",
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
30
30
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
31
31
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
|
58
|
-
"@vc-shell/config-generator": "^1.0.
|
|
59
|
-
"@vc-shell/framework": "^1.0.
|
|
58
|
+
"@vc-shell/config-generator": "^1.0.229",
|
|
59
|
+
"@vc-shell/framework": "^1.0.229",
|
|
60
60
|
"@vueuse/core": "^10.7.1",
|
|
61
61
|
"@vueuse/integrations": "^10.7.1",
|
|
62
62
|
"cross-spawn": "^7.0.3",
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { computed, ref, Ref } from "vue";
|
|
2
2
|
import { DetailsBaseBladeScope, IBladeToolbar, useDetailsFactory, DetailsComposableArgs } from "@vc-shell/framework";
|
|
3
3
|
|
|
4
|
-
export interface DynamicItemScope extends DetailsBaseBladeScope {
|
|
5
|
-
toolbarOverrides: {
|
|
6
|
-
refresh: IBladeToolbar;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
4
|
+
export interface DynamicItemScope extends DetailsBaseBladeScope {}
|
|
9
5
|
|
|
10
6
|
export default (args: DetailsComposableArgs) => {
|
|
11
7
|
const factory = useDetailsFactory({
|
|
@@ -22,7 +18,7 @@ export default (args: DetailsComposableArgs) => {
|
|
|
22
18
|
|
|
23
19
|
const { load, saveChanges, remove, loading, item, validationState } = factory();
|
|
24
20
|
|
|
25
|
-
const scope =
|
|
21
|
+
const scope: DynamicItemScope = {};
|
|
26
22
|
|
|
27
23
|
const bladeTitle = computed(() => {
|
|
28
24
|
return "{{ModuleNameSentenceCase}} details";
|
|
@@ -36,6 +32,6 @@ export default (args: DetailsComposableArgs) => {
|
|
|
36
32
|
item,
|
|
37
33
|
validationState,
|
|
38
34
|
bladeTitle,
|
|
39
|
-
scope
|
|
35
|
+
scope,
|
|
40
36
|
};
|
|
41
37
|
};
|
package/dist/templates/modules/dynamic-module/composables/use{{ModuleNamePascalCase}}List/index.ts
CHANGED
|
@@ -33,9 +33,9 @@ export default (args: ListComposableArgs) => {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const scope =
|
|
36
|
+
const scope: DynamicItemsScope = {
|
|
37
37
|
openDetailsBlade,
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
|
|
40
40
|
return {
|
|
41
41
|
items,
|
|
@@ -44,6 +44,6 @@ export default (args: ListComposableArgs) => {
|
|
|
44
44
|
loading,
|
|
45
45
|
pagination,
|
|
46
46
|
query,
|
|
47
|
-
scope
|
|
47
|
+
scope,
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -19,9 +19,10 @@ export default (args: DetailsComposableArgs): UseDetails<MockedItem, DynamicItem
|
|
|
19
19
|
|
|
20
20
|
const { load, saveChanges, remove, loading, item, validationState } = factory();
|
|
21
21
|
|
|
22
|
-
const scope =
|
|
22
|
+
const scope: DynamicItemScope = {
|
|
23
23
|
currencyOptions,
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
|
+
|
|
25
26
|
const { t } = useI18n({ useScope: "global" });
|
|
26
27
|
|
|
27
28
|
const bladeTitle = computed(() => {
|
|
@@ -40,6 +41,6 @@ export default (args: DetailsComposableArgs): UseDetails<MockedItem, DynamicItem
|
|
|
40
41
|
item,
|
|
41
42
|
validationState,
|
|
42
43
|
bladeTitle,
|
|
43
|
-
scope
|
|
44
|
+
scope,
|
|
44
45
|
};
|
|
45
46
|
};
|
|
@@ -34,9 +34,9 @@ export default (args: ListComposableArgs): UseList<MockedItem[], MockedQuery, Dy
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const scope =
|
|
37
|
+
const scope: DynamicItemsScope = {
|
|
38
38
|
openDetailsBlade,
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
40
|
|
|
41
41
|
return {
|
|
42
42
|
items,
|
|
@@ -45,6 +45,6 @@ export default (args: ListComposableArgs): UseList<MockedItem[], MockedQuery, Dy
|
|
|
45
45
|
loading,
|
|
46
46
|
pagination,
|
|
47
47
|
query,
|
|
48
|
-
scope
|
|
48
|
+
scope,
|
|
49
49
|
};
|
|
50
50
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/create-vc-app",
|
|
3
3
|
"description": "Application scaffolding",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.229",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/prompts": "^2.4.4",
|
|
16
|
-
"@vc-shell/ts-config": "^1.0.
|
|
16
|
+
"@vc-shell/ts-config": "^1.0.229",
|
|
17
17
|
"copyfiles": "^2.4.1",
|
|
18
18
|
"cross-env": "^7.0.3",
|
|
19
19
|
"shx": "^0.3.4",
|