@vc-shell/create-vc-app 1.0.119 → 1.0.121

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +10 -412
  2. package/dist/index.js +26 -6
  3. package/dist/index.js.map +1 -1
  4. package/dist/templates/base/_github/COMMIT_CONVENTION.md +91 -0
  5. package/dist/templates/base/_github/PULL_REQUEST_TEMPLATE.md +8 -0
  6. package/dist/templates/base/_gitignore +71 -0
  7. package/dist/templates/base/_yarnrc.yml +9 -0
  8. package/dist/templates/base/package.json +4 -3
  9. package/dist/templates/variants/both/src/modules/dynamic-module/composables/useDetails/index.ts +2 -1
  10. package/dist/templates/variants/both/src/modules/dynamic-module/composables/useList/index.ts +2 -1
  11. package/dist/templates/variants/both/src/pages/App.vue +4 -4
  12. package/dist/templates/variants/classic/src/pages/App.vue +4 -4
  13. package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useDetails/index.ts +2 -8
  14. package/dist/templates/variants/dynamic/src/modules/dynamic-module/composables/useList/index.ts +2 -1
  15. package/dist/templates/variants/dynamic/src/pages/App.vue +4 -4
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/package.json +2 -4
  18. /package/dist/templates/base/{.browserslistrc → _browserslistrc} +0 -0
  19. /package/dist/templates/base/{.commitlintrc.json → _commitlintrc.json} +0 -0
  20. /package/dist/templates/base/{.editorconfig → _editorconfig} +0 -0
  21. /package/dist/templates/base/{.env → _env} +0 -0
  22. /package/dist/templates/base/{.eslintignore → _eslintignore} +0 -0
  23. /package/dist/templates/base/{.eslintrc.js → _eslintrc.js} +0 -0
  24. /package/dist/templates/base/{.husky → _husky}/commit-msg +0 -0
  25. /package/dist/templates/base/{.husky → _husky}/pre-commit +0 -0
  26. /package/dist/templates/base/{.prettierignore → _prettierignore} +0 -0
  27. /package/dist/templates/base/{.prettierrc → _prettierrc} +0 -0
  28. /package/dist/templates/base/{.vscode → _vscode}/extensions.json +0 -0
  29. /package/dist/templates/base/{.vscode → _vscode}/settings.json +0 -0
  30. /package/dist/templates/base/{.yarn → _yarn}/plugins/@yarnpkg/plugin-version.cjs +0 -0
  31. /package/dist/templates/base/{.yarn → _yarn}/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -0
  32. /package/dist/templates/base/{.yarn → _yarn}/releases/yarn-3.6.4.cjs +0 -0
@@ -0,0 +1,71 @@
1
+ # OS Specific
2
+ .DS_Store
3
+ .DS_Store?
4
+ ._*
5
+ .Spotlight-V100
6
+ .Trashes
7
+ ehthumbs.db
8
+ Thumbs.db
9
+
10
+ # IDE Specific
11
+ nbproject
12
+ .~lock.*
13
+ .buildpath
14
+ .idea
15
+ .project
16
+ .settings
17
+ composer.lock
18
+ *.sublime-workspace
19
+ *.suo
20
+ *.ntvs*
21
+ *.njsproj
22
+ *.sln
23
+ *.sw?
24
+
25
+ # Project Specific
26
+ node_modules
27
+ *.log
28
+ /lib
29
+ tmp
30
+ .changelog
31
+ coverage/
32
+ .nyc_output/
33
+ .eslintcache
34
+
35
+ # local env files
36
+ .env.local
37
+ .env.*.local
38
+
39
+ # compiled output
40
+ dist/
41
+ storybook-static
42
+ *.tsbuildinfo
43
+
44
+ # IDEs and editors
45
+ /.idea
46
+ .project
47
+ .classpath
48
+ .c9/
49
+ *.launch
50
+
51
+ # IDE - VSCode
52
+ .vscode/*
53
+ !.vscode/settings.json
54
+ !.vscode/tasks.json
55
+ !.vscode/launch.json
56
+ !.vscode/extensions.json
57
+ .history/*
58
+
59
+ # Visual Studio 2015/2017 cache/options directory
60
+ .vs/*
61
+
62
+ # Temporary
63
+ package-lock.json
64
+
65
+ .pnp.*
66
+ .yarn/*
67
+ !.yarn/patches
68
+ !.yarn/plugins
69
+ !.yarn/releases
70
+ !.yarn/sdks
71
+ !.yarn/versions
@@ -0,0 +1,9 @@
1
+ nodeLinker: node-modules
2
+
3
+ plugins:
4
+ - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
5
+ spec: "@yarnpkg/plugin-workspace-tools"
6
+ - path: .yarn/plugins/@yarnpkg/plugin-version.cjs
7
+ spec: "@yarnpkg/plugin-version"
8
+
9
+ yarnPath: .yarn/releases/yarn-3.6.4.cjs
@@ -21,7 +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.119",
24
+ "@vc-shell/api-client-generator": "^1.0.121",
25
+ "@vc-shell/ts-config": "^1.0.121",
25
26
  "@vitejs/plugin-vue": "^4.2.3",
26
27
  "@vue/eslint-config-prettier": "^7.1.0",
27
28
  "@vue/eslint-config-typescript": "^11.0.3",
@@ -53,8 +54,8 @@
53
54
  },
54
55
  "dependencies": {
55
56
  "@fortawesome/fontawesome-free": "^5.15.3",
56
- "@vc-shell/config-generator": "^1.0.119",
57
- "@vc-shell/framework": "^1.0.119",
57
+ "@vc-shell/config-generator": "^1.0.121",
58
+ "@vc-shell/framework": "^1.0.121",
58
59
  "@vueuse/core": "^10.1.2",
59
60
  "@vueuse/integrations": "^10.1.2",
60
61
  "moment": "^2.29.4",
@@ -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) => {
@@ -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
- BladePageComponent,
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<BladePageComponent[]>("pages");
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.logo) {
280
+ if (!uiSettings.value?.logo) {
281
281
  applySettings({ logo: logoImage });
282
282
  }
283
- if (!uiSettings.value.title) {
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
- BladePageComponent,
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<BladePageComponent[]>("pages");
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.logo) {
273
+ if (!uiSettings.value?.logo) {
274
274
  applySettings({ logo: logoImage });
275
275
  }
276
- if (!uiSettings.value.title) {
276
+ if (!uiSettings.value?.title) {
277
277
  applySettings({ title: undefined });
278
278
  }
279
279
  }
@@ -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: {
@@ -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
- BladePageComponent,
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<BladePageComponent[]>("pages");
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.logo) {
273
+ if (!uiSettings.value?.logo) {
274
274
  applySettings({ logo: logoImage });
275
275
  }
276
- if (!uiSettings.value.title) {
276
+ if (!uiSettings.value?.title) {
277
277
  applySettings({ title: undefined });
278
278
  }
279
279
  }