@vc-shell/create-vc-app 1.0.290 → 1.0.291
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 +9 -0
- package/dist/index.js +2 -2
- package/dist/templates/base/_package.json +5 -5
- package/dist/templates/base/src/main.ts +0 -1
- package/dist/templates/base/src/pages/App.vue +1 -69
- package/dist/templates/base/src/router/routes.ts +16 -1
- package/dist/templates/base/src/styles/base.scss +38 -0
- package/dist/templates/base/src/styles/colors.scss +10 -0
- package/dist/templates/base/src/styles/custom.scss +2 -0
- package/dist/templates/base/src/styles/index.scss +7 -1
- package/dist/templates/base/tailwind.config.ts +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.0.291](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.290...v1.0.291) (2024-09-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* support of css theming ([dba4097](https://github.com/VirtoCommerce/vc-shell/commit/dba409744b57dd1a999e009700e3b356fe230969))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.0.290](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.289...v1.0.290) (2024-09-13)
|
|
2
11
|
|
|
3
12
|
|
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.291", 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.291",
|
|
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.291",
|
|
27
|
+
"@vc-shell/release-config": "^1.0.291",
|
|
28
|
+
"@vc-shell/ts-config": "^1.0.291",
|
|
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",
|
|
@@ -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.291",
|
|
58
|
+
"@vc-shell/framework": "^1.0.291",
|
|
59
59
|
"@vueuse/core": "^10.7.1",
|
|
60
60
|
"@vueuse/integrations": "^10.7.1",
|
|
61
61
|
"cross-spawn": "^7.0.3",
|
|
@@ -6,7 +6,6 @@ import { RouterView } from "vue-router";
|
|
|
6
6
|
import {{ModuleNamePascalCase}} from "./modules/{{ModuleName}}";
|
|
7
7
|
|
|
8
8
|
// Load required CSS
|
|
9
|
-
import "./styles/index.scss";
|
|
10
9
|
import "@fortawesome/fontawesome-free/css/all.min.css";
|
|
11
10
|
import "roboto-fontface/css/roboto/roboto-fontface.css";
|
|
12
11
|
import "@vc-shell/framework/dist/index.css";
|
|
@@ -34,73 +34,5 @@ console.debug(`Initializing App`);
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
<style lang="scss">
|
|
37
|
-
|
|
38
|
-
--background-color: #f5f6f9;
|
|
39
|
-
--top-bar-color: #161d25;
|
|
40
|
-
--basic-black-color: #333333;
|
|
41
|
-
--tooltips-color: #a5a5a5;
|
|
42
|
-
|
|
43
|
-
--primary-color: #43b0e6;
|
|
44
|
-
--primary-color-hover: #319ed4;
|
|
45
|
-
--primary-color-disabled: #a9ddf6;
|
|
46
|
-
|
|
47
|
-
--special-color: #f89406;
|
|
48
|
-
--special-color-hover: #eb8b03;
|
|
49
|
-
--special-color-disabled: #fed498;
|
|
50
|
-
|
|
51
|
-
/* Layout variables */
|
|
52
|
-
--app-bar-background-color: var(--top-bar-color);
|
|
53
|
-
--app-bar-toolbar-icon-background-hover: #2e3d4e;
|
|
54
|
-
--app-bar-toolbar-item-width: 50px;
|
|
55
|
-
--app-bar-toolbar-icon-color: #7e8e9d;
|
|
56
|
-
--app-bar-account-info-role-color: #838d9a;
|
|
57
|
-
|
|
58
|
-
--background-color: #f2f2f2;
|
|
59
|
-
--top-bar-color: #ffffff;
|
|
60
|
-
--app-background: linear-gradient(180deg, #e4f5fb 5.06%, #e8f3f2 100%), linear-gradient(0deg, #e8f2f3, #e8f2f3),
|
|
61
|
-
#eef2f8;
|
|
62
|
-
--app-bar-background-color: #ffffff;
|
|
63
|
-
--app-bar-divider-color: #ffffff;
|
|
64
|
-
--app-bar-toolbar-item-width: 50px;
|
|
65
|
-
--app-bar-toolbar-icon-color: #7e8e9d;
|
|
66
|
-
--app-bar-toolbar-icon-color-hover: #465769;
|
|
67
|
-
--app-bar-toolbar-icon-background-hover: #ffffff;
|
|
68
|
-
--app-bar-account-info-name-color: #161d25;
|
|
69
|
-
--app-bar-account-info-role-color: #7e8e9d;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
html,
|
|
73
|
-
body,
|
|
74
|
-
#app {
|
|
75
|
-
@apply tw-font-roboto tw-h-full tw-w-full tw-m-0 tw-fixed tw-overflow-hidden tw-overscroll-y-none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
body {
|
|
79
|
-
@apply tw-text-base;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
h1,
|
|
83
|
-
h2,
|
|
84
|
-
h3,
|
|
85
|
-
h4,
|
|
86
|
-
h5,
|
|
87
|
-
h6,
|
|
88
|
-
button,
|
|
89
|
-
input,
|
|
90
|
-
select,
|
|
91
|
-
textarea {
|
|
92
|
-
@apply tw-font-roboto;
|
|
93
|
-
}
|
|
94
|
-
::-webkit-input-placeholder {
|
|
95
|
-
@apply tw-font-roboto;
|
|
96
|
-
}
|
|
97
|
-
:-moz-placeholder {
|
|
98
|
-
@apply tw-font-roboto;
|
|
99
|
-
}
|
|
100
|
-
::-moz-placeholder {
|
|
101
|
-
@apply tw-font-roboto;
|
|
102
|
-
}
|
|
103
|
-
:-ms-input-placeholder {
|
|
104
|
-
@apply tw-font-roboto;
|
|
105
|
-
}
|
|
37
|
+
@import "./../styles/index.scss";
|
|
106
38
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RouteRecordRaw } from "vue-router";
|
|
2
2
|
import App from "../pages/App.vue";
|
|
3
|
-
import { Invite, Login, ResetPassword, useBladeNavigation } from "@vc-shell/framework";
|
|
3
|
+
import { Invite, Login, ResetPassword, useBladeNavigation, ChangePasswordPage } from "@vc-shell/framework";
|
|
4
4
|
// eslint-disable-next-line import/no-unresolved
|
|
5
5
|
import whiteLogoImage from "/assets/logo-white.svg";
|
|
6
6
|
// eslint-disable-next-line import/no-unresolved
|
|
@@ -40,6 +40,8 @@ export const routes: RouteRecordRaw[] = [
|
|
|
40
40
|
userId: route.query.userId,
|
|
41
41
|
token: route.query.token,
|
|
42
42
|
userName: route.query.userName,
|
|
43
|
+
logo: whiteLogoImage,
|
|
44
|
+
background: bgImage,
|
|
43
45
|
}),
|
|
44
46
|
},
|
|
45
47
|
{
|
|
@@ -50,6 +52,19 @@ export const routes: RouteRecordRaw[] = [
|
|
|
50
52
|
userId: route.query.userId,
|
|
51
53
|
token: route.query.token,
|
|
52
54
|
userName: route.query.userName,
|
|
55
|
+
logo: whiteLogoImage,
|
|
56
|
+
background: bgImage,
|
|
57
|
+
}),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "ChangePassword",
|
|
61
|
+
path: "/changepassword",
|
|
62
|
+
component: ChangePasswordPage,
|
|
63
|
+
meta: {
|
|
64
|
+
forced: true,
|
|
65
|
+
},
|
|
66
|
+
props: (route) => ({
|
|
67
|
+
background: bgImage,
|
|
53
68
|
}),
|
|
54
69
|
},
|
|
55
70
|
{
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
html,
|
|
5
|
+
body,
|
|
6
|
+
#app {
|
|
7
|
+
@apply tw-font-roboto tw-h-full tw-w-full tw-m-0 tw-fixed tw-overflow-hidden tw-overscroll-y-none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
body {
|
|
11
|
+
@apply tw-text-sm tw-text-[color:var(--base-text-color)];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h1,
|
|
16
|
+
h2,
|
|
17
|
+
h3,
|
|
18
|
+
h4,
|
|
19
|
+
h5,
|
|
20
|
+
h6,
|
|
21
|
+
button,
|
|
22
|
+
input,
|
|
23
|
+
select,
|
|
24
|
+
textarea {
|
|
25
|
+
@apply tw-font-roboto;
|
|
26
|
+
}
|
|
27
|
+
::-webkit-input-placeholder {
|
|
28
|
+
@apply tw-font-roboto;
|
|
29
|
+
}
|
|
30
|
+
:-moz-placeholder {
|
|
31
|
+
@apply tw-font-roboto;
|
|
32
|
+
}
|
|
33
|
+
::-moz-placeholder {
|
|
34
|
+
@apply tw-font-roboto;
|
|
35
|
+
}
|
|
36
|
+
:-ms-input-placeholder {
|
|
37
|
+
@apply tw-font-roboto;
|
|
38
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Do not edit this file. Use custom.scss to add custom colors */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--base-text-color: var(--neutrals-950);
|
|
5
|
+
--base-error-color: var(--danger-500);
|
|
6
|
+
--base-border-color: var(--neutrals-200);
|
|
7
|
+
--app-background: var(--secondary-200);
|
|
8
|
+
--empty-grid-icon-color: var(--secondary-500);
|
|
9
|
+
--mobile-card-count-color: var(--primary-500);
|
|
10
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import defaultConfig from "@vc-shell/framework/tailwind.config";
|
|
2
|
+
import path from "path";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
prefix: "tw-",
|
|
5
|
-
content: [
|
|
6
|
+
content: [
|
|
7
|
+
path.join(path.dirname(require.resolve("@vc-shell/framework")), "**/*.{vue,js,ts,jsx,tsx}"),
|
|
8
|
+
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
|
9
|
+
],
|
|
6
10
|
theme: defaultConfig.theme,
|
|
7
11
|
};
|
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.291",
|
|
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.291",
|
|
17
17
|
"copyfiles": "^2.4.1",
|
|
18
18
|
"cross-env": "^7.0.3",
|
|
19
19
|
"shx": "^0.3.4",
|