@vc-shell/create-vc-app 1.0.153 → 1.0.154

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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.0.154](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.153...v1.0.154) (2024-02-06)
2
+
3
+
4
+ ### Features
5
+
6
+ * **create-vc-app:** updated configs and locales ([e46ccf6](https://github.com/VirtoCommerce/vc-shell/commit/e46ccf680a12e82400ec03c3d7c72e4f5e3c2c68))
7
+
8
+
9
+
1
10
  ## [1.0.153](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.152...v1.0.153) (2024-01-29)
2
11
 
3
12
 
@@ -24,9 +24,9 @@
24
24
  "@types/node": "^20.10.5",
25
25
  "@typescript-eslint/eslint-plugin": "^6.16.0",
26
26
  "@typescript-eslint/parser": "^6.16.0",
27
- "@vc-shell/api-client-generator": "^1.0.153",
28
- "@vc-shell/release-config": "^1.0.153",
29
- "@vc-shell/ts-config": "^1.0.153",
27
+ "@vc-shell/api-client-generator": "^1.0.154",
28
+ "@vc-shell/release-config": "^1.0.154",
29
+ "@vc-shell/ts-config": "^1.0.154",
30
30
  "@vitejs/plugin-vue": "^5.0.3",
31
31
  "@vue/eslint-config-prettier": "^9.0.0",
32
32
  "@vue/eslint-config-typescript": "^12.0.0",
@@ -56,14 +56,14 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@fortawesome/fontawesome-free": "^5.15.3",
59
- "@vc-shell/config-generator": "^1.0.153",
60
- "@vc-shell/framework": "^1.0.153",
59
+ "@vc-shell/config-generator": "^1.0.154",
60
+ "@vc-shell/framework": "^1.0.154",
61
61
  "@vueuse/core": "^10.7.1",
62
62
  "@vueuse/integrations": "^10.7.1",
63
63
  "moment": "^2.30.1",
64
64
  "roboto-fontface": "^0.10.0",
65
65
  "vee-validate": "^4.12.4",
66
- "vue": "^3.4.14",
66
+ "vue": "^3.4.15",
67
67
  "vue-router": "^4.2.5"
68
68
  },
69
69
  "lint-staged": {
@@ -1,14 +1,10 @@
1
- import { useMenuService, useLanguages } from "@vc-shell/framework";
1
+ import { useMenuService } from "@vc-shell/framework";
2
2
  import { App } from "vue";
3
3
 
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  export function bootstrap(app: App) {
6
6
  const { addMenuItem } = useMenuService();
7
7
 
8
- const { setLocale, currentLocale } = useLanguages();
9
-
10
- setLocale(currentLocale.value);
11
-
12
8
  // Add Dashboard to main menu item
13
9
  addMenuItem({
14
10
  title: "SHELL.MENU.DASHBOARD",
@@ -70,8 +70,8 @@
70
70
  "ALL_ACTIONS": "All actions",
71
71
  "ALL_FILTERS": "Filters",
72
72
  "SEARCH": "Search...",
73
- "EMPTY":"List is empty.",
74
- "NOT_FOUND":"Nothing found.",
73
+ "EMPTY": "List is empty.",
74
+ "NOT_FOUND": "Nothing found.",
75
75
  "TOTALS": "Totals:"
76
76
  },
77
77
 
@@ -122,6 +122,10 @@
122
122
  },
123
123
  "LANGUAGE_SELECTOR": {
124
124
  "TITLE": "Language selector"
125
+ },
126
+ "FILTERS": {
127
+ "APPLY": "Apply filters",
128
+ "RESET": "Reset"
125
129
  }
126
130
  },
127
131
  "INVITATION": {
@@ -1,4 +1,4 @@
1
- import VirtoShellFramework, { notification, useUser } from "@vc-shell/framework";
1
+ import VirtoShellFramework, { notification, useUser, useLanguages } from "@vc-shell/framework";
2
2
  import { createApp } from "vue";
3
3
  import { router } from "./router";
4
4
  import * as locales from "./locales";
@@ -18,6 +18,8 @@ async function startApp() {
18
18
  // const { loadUser } = useUser();
19
19
  // await loadUser();
20
20
 
21
+ const { currentLocale, setLocale } = useLanguages();
22
+
21
23
  const app = createApp(RouterView)
22
24
  .use(VirtoShellFramework, {
23
25
  router,
@@ -39,6 +41,8 @@ async function startApp() {
39
41
  app.config.globalProperties.$mergeLocaleMessage(key, message);
40
42
  });
41
43
 
44
+ setLocale(currentLocale.value);
45
+
42
46
  app.config.errorHandler = (err) => {
43
47
  notification.error((err as Error).toString(), {
44
48
  timeout: 5000,
@@ -1,4 +1,4 @@
1
- import VirtoShellFramework, { notification, useUser } from "@vc-shell/framework";
1
+ import VirtoShellFramework, { notification, useUser, useLanguages } from "@vc-shell/framework";
2
2
  import { createApp } from "vue";
3
3
  import { router } from "./router";
4
4
  import * as locales from "./locales";
@@ -17,6 +17,8 @@ async function startApp() {
17
17
  // const { loadUser } = useUser();
18
18
  // await loadUser();
19
19
 
20
+ const { currentLocale, setLocale } = useLanguages();
21
+
20
22
  const app = createApp(RouterView)
21
23
  .use(VirtoShellFramework, {
22
24
  router,
@@ -36,6 +38,8 @@ async function startApp() {
36
38
  app.config.globalProperties.$mergeLocaleMessage(key, message);
37
39
  });
38
40
 
41
+ setLocale(currentLocale.value);
42
+
39
43
  app.config.errorHandler = (err) => {
40
44
  notification.error((err as Error).toString(), {
41
45
  timeout: 5000,
@@ -1,4 +1,4 @@
1
- import VirtoShellFramework, { notification, useUser } from "@vc-shell/framework";
1
+ import VirtoShellFramework, { notification, useUser, useLanguages } from "@vc-shell/framework";
2
2
  import { createApp } from "vue";
3
3
  import { router } from "./router";
4
4
  import * as locales from "./locales";
@@ -17,6 +17,8 @@ async function startApp() {
17
17
  // const { loadUser } = useUser();
18
18
  // await loadUser();
19
19
 
20
+ const { currentLocale, setLocale } = useLanguages();
21
+
20
22
  const app = createApp(RouterView)
21
23
  .use(VirtoShellFramework, {
22
24
  router,
@@ -36,6 +38,8 @@ async function startApp() {
36
38
  app.config.globalProperties.$mergeLocaleMessage(key, message);
37
39
  });
38
40
 
41
+ setLocale(currentLocale.value);
42
+
39
43
  app.config.errorHandler = (err) => {
40
44
  notification.error((err as Error).toString(), {
41
45
  timeout: 5000,
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.153",
4
+ "version": "1.0.154",
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.153",
16
+ "@vc-shell/ts-config": "^1.0.154",
17
17
  "copyfiles": "^2.4.1",
18
18
  "cross-env": "^7.0.3",
19
19
  "shx": "^0.3.4",