@vc-shell/create-vc-app 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (61) hide show
  1. package/CHANGELOG.md +2816 -0
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.test.d.ts +2 -0
  4. package/dist/commands/init.test.d.ts.map +1 -0
  5. package/dist/engine/codegen.d.ts.map +1 -1
  6. package/dist/engine/helpers.d.ts +1 -1
  7. package/dist/engine/helpers.d.ts.map +1 -1
  8. package/dist/engine/helpers.test.d.ts +2 -0
  9. package/dist/engine/helpers.test.d.ts.map +1 -0
  10. package/dist/engine/template.d.ts.map +1 -1
  11. package/dist/engine/template.test.d.ts +2 -0
  12. package/dist/engine/template.test.d.ts.map +1 -0
  13. package/dist/index.js +172 -170
  14. package/dist/output.d.ts.map +1 -1
  15. package/dist/templates/dynamic-module/_package.json.ejs +6 -6
  16. package/dist/templates/dynamic-module/src/modules/index.ts.ejs +8 -5
  17. package/dist/templates/dynamic-module/tsconfig.json +1 -1
  18. package/dist/templates/dynamic-module/vite.config.mts.ejs +1 -1
  19. package/dist/templates/host-app/_github/COMMIT_CONVENTION.md +1 -1
  20. package/dist/templates/host-app/_package.json.ejs +7 -10
  21. package/dist/templates/host-app/src/main.ts.ejs +17 -15
  22. package/dist/templates/host-app/src/router/routes.ts.ejs +0 -9
  23. package/dist/templates/host-app/tsconfig.json +1 -0
  24. package/dist/templates/host-app/vite.config.mts.ejs +3 -6
  25. package/dist/templates/module/composables/useDetails.ts.ejs +41 -38
  26. package/dist/templates/module/index.ts.ejs +11 -8
  27. package/dist/templates/module/locales/en.json.ejs +33 -22
  28. package/dist/templates/module/pages/details.vue.ejs +83 -111
  29. package/dist/templates/module/pages/list.vue.ejs +88 -117
  30. package/dist/templates/sample-module/index.ts +11 -8
  31. package/dist/templates/sample-module/pages/details.vue +20 -47
  32. package/dist/templates/sample-module/pages/list.vue +107 -154
  33. package/dist/templates/standalone/_github/COMMIT_CONVENTION.md +1 -1
  34. package/dist/templates/standalone/_package.json.ejs +15 -18
  35. package/dist/templates/standalone/eslint.config.mjs +31 -0
  36. package/dist/templates/standalone/src/bootstrap.ts.ejs +5 -5
  37. package/dist/templates/standalone/src/main.ts.ejs +29 -23
  38. package/dist/templates/standalone/src/router/routes.ts.ejs +0 -9
  39. package/dist/templates/standalone/tsconfig.json +1 -0
  40. package/dist/types.d.ts +2 -2
  41. package/dist/types.d.ts.map +1 -1
  42. package/package.json +5 -5
  43. package/LICENSE +0 -12
  44. package/dist/templates/host-app/public/assets/1.jpeg +0 -0
  45. package/dist/templates/host-app/public/assets/2.jpg +0 -0
  46. package/dist/templates/host-app/public/assets/3.jpg +0 -0
  47. package/dist/templates/host-app/public/assets/app-select.svg +0 -11
  48. package/dist/templates/host-app/public/assets/avatar.jpg +0 -0
  49. package/dist/templates/host-app/public/assets/empty.png +0 -0
  50. package/dist/templates/host-app/src/shims-vue.d.ts +0 -27
  51. package/dist/templates/host-app/src/vue-i18n.d.ts +0 -10
  52. package/dist/templates/standalone/_eslintignore +0 -3
  53. package/dist/templates/standalone/_eslintrc.js +0 -41
  54. package/dist/templates/standalone/public/assets/1.jpeg +0 -0
  55. package/dist/templates/standalone/public/assets/2.jpg +0 -0
  56. package/dist/templates/standalone/public/assets/3.jpg +0 -0
  57. package/dist/templates/standalone/public/assets/app-select.svg +0 -11
  58. package/dist/templates/standalone/public/assets/avatar.jpg +0 -0
  59. package/dist/templates/standalone/public/assets/empty.png +0 -0
  60. package/dist/templates/standalone/src/shims-vue.d.ts +0 -27
  61. package/dist/templates/standalone/src/vue-i18n.d.ts +0 -10
@@ -1,11 +0,0 @@
1
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="2.53846" cy="2.53846" r="2.53846" fill="#7E8E9D"/>
3
- <ellipse cx="11" cy="2.53846" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
4
- <ellipse cx="19.4616" cy="2.53846" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
5
- <ellipse cx="2.53846" cy="11" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
6
- <ellipse cx="2.53846" cy="19.4615" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
7
- <circle cx="11" cy="11" r="2.53846" fill="#7E8E9D"/>
8
- <circle cx="11" cy="19.4615" r="2.53846" fill="#7E8E9D"/>
9
- <circle cx="19.4616" cy="11" r="2.53846" fill="#7E8E9D"/>
10
- <circle cx="19.4616" cy="19.4615" r="2.53846" fill="#7E8E9D"/>
11
- </svg>
@@ -1,27 +0,0 @@
1
- /* eslint-disable */
2
-
3
- import { CoreBladeAdditionalSettings } from "@vc-shell/framework";
4
- import type { Ref } from "vue";
5
- import type { Composer } from "vue-i18n";
6
-
7
- declare module "*.vue" {
8
- import type { DefineComponent } from "vue";
9
- const component: DefineComponent<{}, {}, any>;
10
- export default component;
11
- }
12
-
13
- declare module "@vue/runtime-core" {
14
- interface ComponentCustomProperties extends _ComponentCustomProperties {
15
- $mergeLocaleMessage: Composer<{}, {}, {}, string, never, string>["mergeLocaleMessage"];
16
- $hasAccess: (permissions: string | string[] | undefined) => boolean;
17
- $isPhone: Ref<boolean>;
18
- $isTablet: Ref<boolean>;
19
- $isMobile: Ref<boolean>;
20
- $isDesktop: Ref<boolean>;
21
- $isTouch: boolean;
22
- }
23
-
24
- interface ComponentOptionsBase extends CoreBladeAdditionalSettings {}
25
- }
26
-
27
- export {};
@@ -1,10 +0,0 @@
1
- import type { ComponentCustomProperties } from '@vue/runtime-core';
2
-
3
- declare module "@vue/runtime-core" {
4
- interface ComponentCustomProperties {
5
- $t: (key: string, ...args: any[]) => string;
6
- $d: (key: string, ...args: any[]) => string;
7
- $tm: (key: string, ...args: any[]) => string;
8
- $rt: (key: string, ...args: any[]) => string;
9
- }
10
- }
@@ -1,3 +0,0 @@
1
- node_modules
2
- dist
3
- api-client.ts
@@ -1,41 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- plugins: ["@typescript-eslint", "vue", "import"],
7
- extends: [
8
- "plugin:vue/vue3-recommended",
9
- "eslint:recommended",
10
- "plugin:import/recommended",
11
- "plugin:import/typescript",
12
- "@vue/typescript/recommended",
13
- "@vue/prettier",
14
- "@vue/eslint-config-typescript/recommended",
15
- ],
16
- parser: "vue-eslint-parser",
17
- parserOptions: {
18
- sourceType: "module",
19
- ecmaVersion: 2022,
20
- },
21
- settings: {
22
- "import/parsers": {
23
- "@typescript-eslint/parser": [".ts"],
24
- },
25
- "import/resolver": {
26
- typescript: {
27
- project: ["./tsconfig.json"],
28
- },
29
- },
30
- },
31
- rules: {
32
- "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
33
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
34
- "@typescript-eslint/ban-ts-comment": "warn",
35
- "@typescript-eslint/no-unused-vars": "warn",
36
- "vue/multi-word-component-names": "off",
37
- "vue/require-default-prop": "off",
38
- "vue/no-v-html": "off",
39
- "vue/no-template-shadow": "off",
40
- },
41
- };
@@ -1,11 +0,0 @@
1
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="2.53846" cy="2.53846" r="2.53846" fill="#7E8E9D"/>
3
- <ellipse cx="11" cy="2.53846" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
4
- <ellipse cx="19.4616" cy="2.53846" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
5
- <ellipse cx="2.53846" cy="11" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
6
- <ellipse cx="2.53846" cy="19.4615" rx="2.53846" ry="2.53846" fill="#7E8E9D"/>
7
- <circle cx="11" cy="11" r="2.53846" fill="#7E8E9D"/>
8
- <circle cx="11" cy="19.4615" r="2.53846" fill="#7E8E9D"/>
9
- <circle cx="19.4616" cy="11" r="2.53846" fill="#7E8E9D"/>
10
- <circle cx="19.4616" cy="19.4615" r="2.53846" fill="#7E8E9D"/>
11
- </svg>
@@ -1,27 +0,0 @@
1
- /* eslint-disable */
2
-
3
- import { CoreBladeAdditionalSettings } from "@vc-shell/framework";
4
- import type { Ref } from "vue";
5
- import type { Composer } from "vue-i18n";
6
-
7
- declare module "*.vue" {
8
- import type { DefineComponent } from "vue";
9
- const component: DefineComponent<{}, {}, any>;
10
- export default component;
11
- }
12
-
13
- declare module "@vue/runtime-core" {
14
- interface ComponentCustomProperties extends _ComponentCustomProperties {
15
- $mergeLocaleMessage: Composer<{}, {}, {}, string, never, string>["mergeLocaleMessage"];
16
- $hasAccess: (permissions: string | string[] | undefined) => boolean;
17
- $isPhone: Ref<boolean>;
18
- $isTablet: Ref<boolean>;
19
- $isMobile: Ref<boolean>;
20
- $isDesktop: Ref<boolean>;
21
- $isTouch: boolean;
22
- }
23
-
24
- interface ComponentOptionsBase extends CoreBladeAdditionalSettings {}
25
- }
26
-
27
- export {};
@@ -1,10 +0,0 @@
1
- import type { ComponentCustomProperties } from '@vue/runtime-core';
2
-
3
- declare module "@vue/runtime-core" {
4
- interface ComponentCustomProperties {
5
- $t: (key: string, ...args: any[]) => string;
6
- $d: (key: string, ...args: any[]) => string;
7
- $tm: (key: string, ...args: any[]) => string;
8
- $rt: (key: string, ...args: any[]) => string;
9
- }
10
- }