@vc-shell/create-vc-app 2.0.1 → 2.0.3-pr222.ba0d3c5

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 (62) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +19 -23
  3. package/dist/commands/add-module.d.ts +3 -1
  4. package/dist/commands/add-module.d.ts.map +1 -1
  5. package/dist/commands/init.d.ts +3 -1
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/index.js +145 -138
  8. package/dist/templates/dynamic-module/_package.json.ejs +3 -3
  9. package/dist/templates/standalone/_package.json.ejs +4 -4
  10. package/dist/types.d.ts +16 -0
  11. package/dist/types.d.ts.map +1 -1
  12. package/package.json +2 -2
  13. package/dist/templates/host-app/LICENSE +0 -12
  14. package/dist/templates/host-app/README.md +0 -54
  15. package/dist/templates/host-app/_browserslistrc +0 -3
  16. package/dist/templates/host-app/_commitlintrc.json +0 -3
  17. package/dist/templates/host-app/_editorconfig +0 -22
  18. package/dist/templates/host-app/_env.ejs +0 -3
  19. package/dist/templates/host-app/_env.local.ejs +0 -1
  20. package/dist/templates/host-app/_eslintignore +0 -3
  21. package/dist/templates/host-app/_eslintrc.js +0 -41
  22. package/dist/templates/host-app/_github/COMMIT_CONVENTION.md +0 -91
  23. package/dist/templates/host-app/_github/PULL_REQUEST_TEMPLATE.md +0 -8
  24. package/dist/templates/host-app/_gitignore +0 -71
  25. package/dist/templates/host-app/_package.json.ejs +0 -67
  26. package/dist/templates/host-app/_prettierignore +0 -4
  27. package/dist/templates/host-app/_prettierrc +0 -4
  28. package/dist/templates/host-app/_vscode/extensions.json +0 -14
  29. package/dist/templates/host-app/_vscode/settings.json +0 -14
  30. package/dist/templates/host-app/_yarn/releases/yarn-4.9.1.cjs +0 -948
  31. package/dist/templates/host-app/_yarnrc.yml +0 -7
  32. package/dist/templates/host-app/index.html.ejs +0 -26
  33. package/dist/templates/host-app/postcss.config.cjs +0 -6
  34. package/dist/templates/host-app/public/assets/background.jpg +0 -0
  35. package/dist/templates/host-app/public/assets/logo-white.svg +0 -21
  36. package/dist/templates/host-app/public/assets/logo.svg +0 -8
  37. package/dist/templates/host-app/public/assets/welcome.png +0 -0
  38. package/dist/templates/host-app/public/img/icons/apple-touch-icon.png +0 -0
  39. package/dist/templates/host-app/public/img/icons/favicon-16x16.png +0 -0
  40. package/dist/templates/host-app/public/img/icons/favicon-32x32.png +0 -0
  41. package/dist/templates/host-app/public/img/icons/favicon.ico +0 -0
  42. package/dist/templates/host-app/public/img/icons/mstile-150x150.png +0 -0
  43. package/dist/templates/host-app/public/img/icons/safari-pinned-tab.svg +0 -32
  44. package/dist/templates/host-app/src/api_client/README.md +0 -199
  45. package/dist/templates/host-app/src/bootstrap.ts.ejs +0 -26
  46. package/dist/templates/host-app/src/components/dashboard-widgets/Welcome.vue +0 -51
  47. package/dist/templates/host-app/src/composables/index.ts +0 -1
  48. package/dist/templates/host-app/src/env.d.ts +0 -9
  49. package/dist/templates/host-app/src/locales/en.json +0 -16
  50. package/dist/templates/host-app/src/locales/index.ts +0 -2
  51. package/dist/templates/host-app/src/main.ts.ejs +0 -59
  52. package/dist/templates/host-app/src/pages/App.vue.ejs +0 -41
  53. package/dist/templates/host-app/src/pages/Dashboard.vue.ejs +0 -7
  54. package/dist/templates/host-app/src/pages/Platform.vue +0 -19
  55. package/dist/templates/host-app/src/router/index.ts +0 -10
  56. package/dist/templates/host-app/src/router/routes.ts.ejs +0 -98
  57. package/dist/templates/host-app/src/styles/custom.scss +0 -116
  58. package/dist/templates/host-app/src/styles/index.scss +0 -8
  59. package/dist/templates/host-app/tailwind.config.ts +0 -7
  60. package/dist/templates/host-app/tsconfig.json +0 -17
  61. package/dist/templates/host-app/vite.config.mts.ejs +0 -4
  62. package/dist/templates/host-app/yarn.lock +0 -0
@@ -1,98 +0,0 @@
1
- import { RouteRecordRaw } from "vue-router";
2
- import App from "../pages/App.vue";
3
- <% if (dashboard) { %>
4
- import Dashboard from "../pages/Dashboard.vue";
5
- <% } %>
6
- import Platform from "../pages/Platform.vue";
7
- import { Invite, Login, ResetPassword, ForgotPassword, ChangePasswordPage } from "@vc-shell/framework";
8
- // eslint-disable-next-line import/no-unresolved
9
- import whiteLogoImage from "/assets/logo-white.svg";
10
- // eslint-disable-next-line import/no-unresolved
11
- import bgImage from "/assets/background.jpg";
12
-
13
- <% if (tenantRoutes) { %>
14
- const tenantIdRegex = "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
15
- <% } %>
16
-
17
- export const routes: RouteRecordRaw[] = [
18
- {
19
- <% if (tenantRoutes) { %>
20
- path: `/:tenantId(${tenantIdRegex})?`,
21
- <% } else { %>
22
- path: "/",
23
- <% } %>
24
- component: App,
25
- name: "App",
26
- meta: {
27
- root: true,
28
- },
29
- children: [
30
- <% if (dashboard) { %>
31
- {
32
- name: "Dashboard",
33
- path: "",
34
- component: Dashboard,
35
- },
36
- <% } %>
37
- {
38
- name: "Platform",
39
- path: "platform",
40
- component: Platform,
41
- props: (route) => ({
42
- url: route.query.url,
43
- }),
44
- },
45
- ],
46
- },
47
- {
48
- name: "Login",
49
- path: "/login",
50
- component: Login,
51
- props: () => ({
52
- logo: whiteLogoImage,
53
- title: "<%- AppNameSentenceCase %>",
54
- }),
55
- },
56
- {
57
- name: "Invite",
58
- path: "/invite",
59
- component: Invite,
60
- props: (_route) => ({
61
- userId: _route.query.userId,
62
- token: _route.query.token,
63
- userName: _route.query.userName,
64
- logo: whiteLogoImage,
65
- }),
66
- },
67
- {
68
- name: "ResetPassword",
69
- path: "/resetpassword",
70
- component: ResetPassword,
71
- props: (_route) => ({
72
- userId: _route.query.userId,
73
- token: _route.query.token,
74
- userName: _route.query.userName,
75
- logo: whiteLogoImage,
76
- }),
77
- },
78
- {
79
- name: "ForgotPassword",
80
- path: "/forgot-password",
81
- component: ForgotPassword,
82
- props: () => ({
83
- logo: whiteLogoImage,
84
- }),
85
- },
86
- {
87
- name: "ChangePassword",
88
- path: "/changepassword",
89
- component: ChangePasswordPage,
90
- meta: {
91
- forced: true,
92
- },
93
- props: (_route) => ({
94
- forced: _route.meta.forced,
95
- logo: whiteLogoImage,
96
- }),
97
- },
98
- ];
@@ -1,116 +0,0 @@
1
- /* Custom styles.
2
- */
3
-
4
- /* Apply color scheme example
5
- You also need to register color theme in startApp() using the 'register(['my-theme'])' method of the useTheme composable. */
6
- /* :root[data-theme="your-theme-key"] {
7
- // Primary
8
- --primary-50: #1F2D3A;
9
- --primary-100: #2B3D4A;
10
- --primary-200: #3A4E5D;
11
- --primary-300: #4A5F70;
12
- --primary-400: #5B6F82;
13
- --primary-500: #6C7F94;
14
- --primary-600: #7A8F9E;
15
- --primary-700: #8A9FA8;
16
- --primary-800: #9AAEB2;
17
- --primary-900: #AABFC0;
18
- --primary-950: #BCCDD0;
19
-
20
- // Secondary
21
- --secondary-50: #1F2D3A;
22
- --secondary-100: #2B3D4A;
23
- --secondary-200: #3A4E5D;
24
- --secondary-300: #4A5F70;
25
- --secondary-400: #5B6F82;
26
- --secondary-500: #6C7F94;
27
- --secondary-600: #7A8F9E;
28
- --secondary-700: #8A9FA8;
29
- --secondary-800: #9AAEB2;
30
- --secondary-900: #AABFC0;
31
- --secondary-950: #BCCDD0;
32
-
33
- // Accent
34
- --accent-50: #1F2D3A;
35
- --accent-100: #2B3D4A;
36
- --accent-200: #3A4E5D;
37
- --accent-300: #4A5F70;
38
- --accent-400: #5B6F82;
39
- --accent-500: #6C7F94;
40
- --accent-600: #7A8F9E;
41
- --accent-700: #8A9FA8;
42
- --accent-800: #9AAEB2;
43
- --accent-900: #AABFC0;
44
- --accent-950: #BCCDD0;
45
-
46
- // Neutrals
47
- --neutrals-50: #2E2E2E;
48
- --neutrals-100: #3D3D3D;
49
- --neutrals-200: #4D4D4D;
50
- --neutrals-300: #6D6D6D;
51
- --neutrals-400: #8A8A8A;
52
- --neutrals-500: #B3B3B3;
53
- --neutrals-600: #D4D4D4;
54
- --neutrals-700: #E4E4E4;
55
- --neutrals-800: #F4F4F4;
56
- --neutrals-900: #FAFAFA;
57
- --neutrals-950: #FFFFFF;
58
-
59
- // Additional
60
- --additional-50: #2E2E2E;
61
- --additional-950: #FFFFFF;
62
-
63
- // States
64
-
65
- // Warning
66
- --warning-50: #3A2D00;
67
- --warning-100: #5A4D00;
68
- --warning-200: #7A6D00;
69
- --warning-300: #9A8D00;
70
- --warning-400: #B9AB00;
71
- --warning-500: #D8C600;
72
- --warning-600: #D8D100;
73
- --warning-700: #B8A800;
74
- --warning-800: #9A8B00;
75
- --warning-900: #7A6E00;
76
- --warning-950: #5A5000;
77
-
78
- // Danger
79
- --danger-50: #3F0D0D;
80
- --danger-100: #5E1E1E;
81
- --danger-200: #7E2F2F;
82
- --danger-300: #9E3F3F;
83
- --danger-400: #BF4F4F;
84
- --danger-500: #DF5F5F;
85
- --danger-600: #DF4D4D;
86
- --danger-700: #BF3D3D;
87
- --danger-800: #9E2D2D;
88
- --danger-900: #7E1D1D;
89
- --danger-950: #5E0D0D;
90
-
91
- // Success
92
- --success-50: #1D3A1D;
93
- --success-100: #2D5A2D;
94
- --success-200: #3A7A3A;
95
- --success-300: #4A9A4A;
96
- --success-400: #5AB05A;
97
- --success-500: #6AC56A;
98
- --success-600: #5A9A5A;
99
- --success-700: #4A7F4A;
100
- --success-800: #3A664A;
101
- --success-900: #1D4C1D;
102
- --success-950: #0A3A0A;
103
-
104
- // Info
105
- --info-50: #1F2D3A;
106
- --info-100: #2B3D4A;
107
- --info-200: #3A4E5D;
108
- --info-300: #4A5F70;
109
- --info-400: #5B6F82;
110
- --info-500: #6C7F94;
111
- --info-600: #7A8F9E;
112
- --info-700: #8A9FA8;
113
- --info-800: #9AAEB2;
114
- --info-900: #AABFC0;
115
- --info-950: #BCCDD0;
116
- } */
@@ -1,8 +0,0 @@
1
- @use 'custom';
2
-
3
- @tailwind base;
4
-
5
- @tailwind components;
6
-
7
-
8
- @tailwind utilities;
@@ -1,7 +0,0 @@
1
- import defaultConfig, { content } from "@vc-shell/framework/tailwind.config";
2
-
3
- export default {
4
- prefix: "tw-",
5
- content: [...content, "./src/**/*.{vue,js,ts,jsx,tsx}"],
6
- theme: defaultConfig.theme,
7
- };
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "@vc-shell/ts-config/tsconfig.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "outDir": "dist",
6
- "rootDir": "src",
7
- "types": [
8
- "vite/client",
9
- "@vc-shell/framework/globals"
10
- ]
11
- },
12
- "include": [
13
- "./src/**/*.ts",
14
- "./src/**/*.vue",
15
- "./src/**/*.json"
16
- ]
17
- }
@@ -1,4 +0,0 @@
1
- import { getApplicationConfiguration } from "@vc-shell/config-generator";
2
- import { mfHostConfig } from "@vc-shell/mf-host/vite";
3
-
4
- export default getApplicationConfiguration(mfHostConfig());
File without changes