@vc-shell/create-vc-app 1.0.120 → 1.0.122
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/templates/base/package.json +4 -4
- package/dist/templates/variants/both/src/modules/dynamic-module/composables/useDetails/index.ts +2 -1
- package/dist/templates/variants/both/src/modules/dynamic-module/composables/useList/index.ts +2 -1
- package/dist/templates/variants/both/src/pages/App.vue +4 -4
- package/dist/templates/variants/classic/src/pages/App.vue +4 -4
- package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useDetails/index.ts +2 -8
- package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useList/index.ts +2 -1
- package/dist/templates/variants/dynamic/src/pages/App.vue +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [1.0.122](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.121...v1.0.122) (2023-11-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [1.0.121](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.120...v1.0.121) (2023-11-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* strict type check in framework ([4e46e67](https://github.com/VirtoCommerce/vc-shell/commit/4e46e679154da42b4f0194c193708ee581be2f1b))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## [1.0.120](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.119...v1.0.120) (2023-11-09)
|
|
2
15
|
|
|
3
16
|
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@types/lodash-es": "^4.17.7",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
23
23
|
"@typescript-eslint/parser": "^5.59.7",
|
|
24
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
25
|
-
"@vc-shell/ts-config": "^1.0.
|
|
24
|
+
"@vc-shell/api-client-generator": "^1.0.122",
|
|
25
|
+
"@vc-shell/ts-config": "^1.0.122",
|
|
26
26
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
27
27
|
"@vue/eslint-config-prettier": "^7.1.0",
|
|
28
28
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
|
57
|
-
"@vc-shell/config-generator": "^1.0.
|
|
58
|
-
"@vc-shell/framework": "^1.0.
|
|
57
|
+
"@vc-shell/config-generator": "^1.0.122",
|
|
58
|
+
"@vc-shell/framework": "^1.0.122",
|
|
59
59
|
"@vueuse/core": "^10.1.2",
|
|
60
60
|
"@vueuse/integrations": "^10.1.2",
|
|
61
61
|
"moment": "^2.29.4",
|
package/dist/templates/variants/both/src/modules/dynamic-module/composables/useDetails/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-unresolved */
|
|
2
|
-
import { computed, ref } from "vue";
|
|
2
|
+
import { computed, ref, Ref } from "vue";
|
|
3
3
|
import img1 from "/assets/1.jpeg";
|
|
4
4
|
import img2 from "/assets/2.jpg";
|
|
5
5
|
import img3 from "/assets/3.jpg";
|
|
@@ -19,6 +19,7 @@ export interface DynamicItemScope extends DetailsBaseBladeScope {
|
|
|
19
19
|
export default (args: {
|
|
20
20
|
props: InstanceType<typeof DynamicBladeForm>["$props"];
|
|
21
21
|
emit: InstanceType<typeof DynamicBladeForm>["$emit"];
|
|
22
|
+
mounted: Ref<boolean>;
|
|
22
23
|
}) => {
|
|
23
24
|
const factory = useDetailsFactory<{ imgSrc: string; name: string; createdDate: Date; id: string }>({
|
|
24
25
|
load: async (payload) => {
|
package/dist/templates/variants/both/src/modules/dynamic-module/composables/useList/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-unresolved */
|
|
2
|
-
import { computed, ref } from "vue";
|
|
2
|
+
import { computed, ref, Ref } from "vue";
|
|
3
3
|
import img1 from "/assets/1.jpeg";
|
|
4
4
|
import img2 from "/assets/2.jpg";
|
|
5
5
|
import img3 from "/assets/3.jpg";
|
|
@@ -11,6 +11,7 @@ export interface DynamicItemsScope extends ListBaseBladeScope {}
|
|
|
11
11
|
export default (args: {
|
|
12
12
|
props: InstanceType<typeof DynamicBladeList>["$props"];
|
|
13
13
|
emit: InstanceType<typeof DynamicBladeList>["$emit"];
|
|
14
|
+
mounted: Ref<boolean>;
|
|
14
15
|
}) => {
|
|
15
16
|
const factory = useListFactory({
|
|
16
17
|
load: async () => {
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
ChangePassword,
|
|
66
66
|
LanguageSelector,
|
|
67
67
|
UserDropdownButton,
|
|
68
|
-
|
|
68
|
+
BladeInstanceConstructor,
|
|
69
69
|
} from "@vc-shell/framework";
|
|
70
70
|
import { computed, inject, onMounted, reactive, ref, Ref, markRaw, watch, defineComponent, provide } from "vue";
|
|
71
71
|
import { useRoute, useRouter } from "vue-router";
|
|
@@ -101,7 +101,7 @@ const route = useRoute();
|
|
|
101
101
|
const router = useRouter();
|
|
102
102
|
const isAuthorized = ref(true);
|
|
103
103
|
const isReady = ref(false);
|
|
104
|
-
const pages = inject<
|
|
104
|
+
const pages = inject<BladeInstanceConstructor[]>("pages");
|
|
105
105
|
const isDesktop = inject<Ref<boolean>>("isDesktop");
|
|
106
106
|
const isMobile = inject<Ref<boolean>>("isMobile");
|
|
107
107
|
const version = import.meta.env.PACKAGE_VERSION;
|
|
@@ -277,10 +277,10 @@ const openDashboard = async () => {
|
|
|
277
277
|
async function customizationHandler() {
|
|
278
278
|
await getUiCustomizationSettings();
|
|
279
279
|
|
|
280
|
-
if (!uiSettings.value
|
|
280
|
+
if (!uiSettings.value?.logo) {
|
|
281
281
|
applySettings({ logo: logoImage });
|
|
282
282
|
}
|
|
283
|
-
if (!uiSettings.value
|
|
283
|
+
if (!uiSettings.value?.title) {
|
|
284
284
|
applySettings({ title: undefined });
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
ChangePassword,
|
|
66
66
|
LanguageSelector,
|
|
67
67
|
UserDropdownButton,
|
|
68
|
-
|
|
68
|
+
BladeInstanceConstructor,
|
|
69
69
|
} from "@vc-shell/framework";
|
|
70
70
|
import { computed, inject, onMounted, reactive, ref, Ref, markRaw, watch, defineComponent, provide } from "vue";
|
|
71
71
|
import { useRoute, useRouter } from "vue-router";
|
|
@@ -100,7 +100,7 @@ const route = useRoute();
|
|
|
100
100
|
const router = useRouter();
|
|
101
101
|
const isAuthorized = ref(true);
|
|
102
102
|
const isReady = ref(false);
|
|
103
|
-
const pages = inject<
|
|
103
|
+
const pages = inject<BladeInstanceConstructor[]>("pages");
|
|
104
104
|
const isDesktop = inject<Ref<boolean>>("isDesktop");
|
|
105
105
|
const isMobile = inject<Ref<boolean>>("isMobile");
|
|
106
106
|
const version = import.meta.env.PACKAGE_VERSION;
|
|
@@ -270,10 +270,10 @@ const openDashboard = async () => {
|
|
|
270
270
|
async function customizationHandler() {
|
|
271
271
|
await getUiCustomizationSettings();
|
|
272
272
|
|
|
273
|
-
if (!uiSettings.value
|
|
273
|
+
if (!uiSettings.value?.logo) {
|
|
274
274
|
applySettings({ logo: logoImage });
|
|
275
275
|
}
|
|
276
|
-
if (!uiSettings.value
|
|
276
|
+
if (!uiSettings.value?.title) {
|
|
277
277
|
applySettings({ title: undefined });
|
|
278
278
|
}
|
|
279
279
|
}
|
package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useDetails/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-unresolved */
|
|
2
|
-
import { computed, ref } from "vue";
|
|
2
|
+
import { Ref, computed, ref } from "vue";
|
|
3
3
|
import img1 from "/assets/1.jpeg";
|
|
4
4
|
import img2 from "/assets/2.jpg";
|
|
5
5
|
import img3 from "/assets/3.jpg";
|
|
@@ -19,6 +19,7 @@ export interface DynamicItemScope extends DetailsBaseBladeScope {
|
|
|
19
19
|
export default (args: {
|
|
20
20
|
props: InstanceType<typeof DynamicBladeForm>["$props"];
|
|
21
21
|
emit: InstanceType<typeof DynamicBladeForm>["$emit"];
|
|
22
|
+
mounted: Ref<boolean>;
|
|
22
23
|
}) => {
|
|
23
24
|
const factory = useDetailsFactory<{ imgSrc: string; name: string; createdDate: Date; id: string }>({
|
|
24
25
|
load: async (payload) => {
|
|
@@ -58,13 +59,6 @@ export default (args: {
|
|
|
58
59
|
|
|
59
60
|
const { load, saveChanges, remove, loading, item, validationState } = factory();
|
|
60
61
|
|
|
61
|
-
// const item = ref({
|
|
62
|
-
// imgSrc: undefined,
|
|
63
|
-
// name: undefined,
|
|
64
|
-
// createdDate: undefined,
|
|
65
|
-
// id: undefined,
|
|
66
|
-
// });
|
|
67
|
-
|
|
68
62
|
const scope = ref<DynamicItemScope>({
|
|
69
63
|
toolbarOverrides: {
|
|
70
64
|
refresh: {
|
package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useList/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-unresolved */
|
|
2
|
-
import { computed, ref } from "vue";
|
|
2
|
+
import { Ref, computed, ref } from "vue";
|
|
3
3
|
import img1 from "/assets/1.jpeg";
|
|
4
4
|
import img2 from "/assets/2.jpg";
|
|
5
5
|
import img3 from "/assets/3.jpg";
|
|
@@ -11,6 +11,7 @@ export interface DynamicItemsScope extends ListBaseBladeScope {}
|
|
|
11
11
|
export default (args: {
|
|
12
12
|
props: InstanceType<typeof DynamicBladeList>["$props"];
|
|
13
13
|
emit: InstanceType<typeof DynamicBladeList>["$emit"];
|
|
14
|
+
mounted: Ref<boolean>;
|
|
14
15
|
}) => {
|
|
15
16
|
const factory = useListFactory({
|
|
16
17
|
load: async () => {
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
ChangePassword,
|
|
66
66
|
LanguageSelector,
|
|
67
67
|
UserDropdownButton,
|
|
68
|
-
|
|
68
|
+
BladeInstanceConstructor,
|
|
69
69
|
} from "@vc-shell/framework";
|
|
70
70
|
import { computed, inject, onMounted, reactive, ref, Ref, markRaw, watch, defineComponent, provide } from "vue";
|
|
71
71
|
import { useRoute, useRouter } from "vue-router";
|
|
@@ -100,7 +100,7 @@ const route = useRoute();
|
|
|
100
100
|
const router = useRouter();
|
|
101
101
|
const isAuthorized = ref(true);
|
|
102
102
|
const isReady = ref(false);
|
|
103
|
-
const pages = inject<
|
|
103
|
+
const pages = inject<BladeInstanceConstructor[]>("pages");
|
|
104
104
|
const isDesktop = inject<Ref<boolean>>("isDesktop");
|
|
105
105
|
const isMobile = inject<Ref<boolean>>("isMobile");
|
|
106
106
|
const version = import.meta.env.PACKAGE_VERSION;
|
|
@@ -270,10 +270,10 @@ const openDashboard = async () => {
|
|
|
270
270
|
async function customizationHandler() {
|
|
271
271
|
await getUiCustomizationSettings();
|
|
272
272
|
|
|
273
|
-
if (!uiSettings.value
|
|
273
|
+
if (!uiSettings.value?.logo) {
|
|
274
274
|
applySettings({ logo: logoImage });
|
|
275
275
|
}
|
|
276
|
-
if (!uiSettings.value
|
|
276
|
+
if (!uiSettings.value?.title) {
|
|
277
277
|
applySettings({ title: undefined });
|
|
278
278
|
}
|
|
279
279
|
}
|
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.122",
|
|
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.122",
|
|
17
17
|
"copyfiles": "^2.4.1",
|
|
18
18
|
"cross-env": "^7.0.3",
|
|
19
19
|
"shx": "^0.3.4",
|