@vc-shell/create-vc-app 1.2.3-beta.1 → 1.2.4-beta.1

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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import c from "node:path";
6
6
  import s from "node:fs";
7
7
  import { fileURLToPath as Oe } from "node:url";
8
8
  import { cwd as Me, exit as Ee, argv as Te } from "node:process";
9
- const Ue = "1.2.3-beta.1", I = {
9
+ const Ue = "1.2.4-beta.1", I = {
10
10
  version: Ue
11
11
  };
12
12
  var Pe = typeof global == "object" && global && global.Object === Object && global, Le = typeof self == "object" && self && self.Object === Object && self, _e = Pe || Le || Function("return this")(), b = _e.Symbol, K = Object.prototype, ze = K.hasOwnProperty, De = K.toString, $ = b ? b.toStringTag : void 0;
@@ -22,9 +22,9 @@
22
22
  "@types/node": "^20.10.5",
23
23
  "@typescript-eslint/eslint-plugin": "^7.4.0",
24
24
  "@typescript-eslint/parser": "^7.4.0",
25
- "@vc-shell/api-client-generator": "^1.2.3-beta.1",
26
- "@vc-shell/release-config": "^1.2.3-beta.1",
27
- "@vc-shell/ts-config": "^1.2.3-beta.1",
25
+ "@vc-shell/api-client-generator": "^1.2.4-beta.1",
26
+ "@vc-shell/release-config": "^1.2.4-beta.1",
27
+ "@vc-shell/ts-config": "^1.2.4-beta.1",
28
28
  "@vitejs/plugin-vue": "^5.2.3",
29
29
  "@vue/eslint-config-prettier": "^9.0.0",
30
30
  "@vue/eslint-config-typescript": "^13.0.0",
@@ -52,8 +52,8 @@
52
52
  "vue-tsc": "^2.2.10"
53
53
  },
54
54
  "dependencies": {
55
- "@vc-shell/config-generator": "^1.2.3-beta.1",
56
- "@vc-shell/framework": "^1.2.3-beta.1",
55
+ "@vc-shell/config-generator": "^1.2.4-beta.1",
56
+ "@vc-shell/framework": "^1.2.4-beta.1",
57
57
  "@vueuse/core": "^10.7.1",
58
58
  "@vueuse/integrations": "^10.7.1",
59
59
  "cross-spawn": "^7.0.3",
@@ -19,8 +19,6 @@ async function startApp() {
19
19
  console.log(e);
20
20
  }
21
21
 
22
- const { currentLocale, setLocale } = useLanguages();
23
-
24
22
  const app = createApp(RouterView)
25
23
  .use(VirtoShellFramework, {
26
24
  router,
@@ -33,6 +31,8 @@ async function startApp() {
33
31
  .use({{ModuleNamePascalCase}}, { router })
34
32
  .use(router);
35
33
 
34
+ const { currentLocale, setLocale } = app.runWithContext(() => useLanguages());
35
+
36
36
  bootstrap(app);
37
37
 
38
38
  Object.entries(locales).forEach(([key, message]) => {
@@ -1,7 +1,7 @@
1
1
  import { RouteRecordRaw } from "vue-router";
2
2
  import App from "../pages/App.vue";
3
3
  import Dashboard from "../pages/Dashboard.vue";
4
- import { Invite, Login, ResetPassword, useBladeNavigation, ChangePasswordPage } from "@vc-shell/framework";
4
+ import { Invite, Login, ResetPassword, ForgotPassword, ChangePasswordPage } from "@vc-shell/framework";
5
5
  // eslint-disable-next-line import/no-unresolved
6
6
  import whiteLogoImage from "/assets/logo-white.svg";
7
7
  // eslint-disable-next-line import/no-unresolved
@@ -30,7 +30,7 @@ export const routes: RouteRecordRaw[] = [
30
30
  component: Login,
31
31
  props: () => ({
32
32
  logo: whiteLogoImage,
33
- background: bgImage,
33
+ // background: bgImage,
34
34
  title: "{{AppNameSentenceCase}}",
35
35
  }),
36
36
  },
@@ -43,7 +43,7 @@ export const routes: RouteRecordRaw[] = [
43
43
  token: _route.query.token,
44
44
  userName: _route.query.userName,
45
45
  logo: whiteLogoImage,
46
- background: bgImage,
46
+ // background: bgImage,
47
47
  }),
48
48
  },
49
49
  {
@@ -55,7 +55,16 @@ export const routes: RouteRecordRaw[] = [
55
55
  token: _route.query.token,
56
56
  userName: _route.query.userName,
57
57
  logo: whiteLogoImage,
58
- background: bgImage,
58
+ // background: bgImage,
59
+ }),
60
+ },
61
+ {
62
+ name: "ForgotPassword",
63
+ path: "/forgot-password",
64
+ component: ForgotPassword,
65
+ props: () => ({
66
+ logo: whiteLogoImage,
67
+ // background: bgImage,
59
68
  }),
60
69
  },
61
70
  {
@@ -65,16 +74,10 @@ export const routes: RouteRecordRaw[] = [
65
74
  meta: {
66
75
  forced: true,
67
76
  },
68
- props: () => ({
69
- background: bgImage,
77
+ props: (_route) => ({
78
+ forced: _route.meta.forced,
79
+ logo: whiteLogoImage,
80
+ // background: bgImage,
70
81
  }),
71
82
  },
72
- {
73
- path: "/:pathMatch(.*)*",
74
- component: App,
75
- beforeEnter: async (_to) => {
76
- const { routeResolver } = useBladeNavigation();
77
- return routeResolver(_to);
78
- },
79
- },
80
83
  ];
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.2.3-beta.1",
4
+ "version": "1.2.4-beta.1",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
7
7
  "files": [
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/prompts": "^2.4.4",
17
- "@vc-shell/ts-config": "1.2.3-beta.1",
17
+ "@vc-shell/ts-config": "1.2.4-beta.1",
18
18
  "copyfiles": "^2.4.1",
19
19
  "cross-env": "^7.0.3",
20
20
  "shx": "^0.3.4",
@@ -32,5 +32,5 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "gitHead": "8cef1a363702583b4159200cb83bb7c43ebb01e2"
35
+ "gitHead": "2194f2fb82009e3dd5f2e17389b7fb03dd74b603"
36
36
  }