@vc-shell/create-vc-app 1.0.95 → 1.0.97

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,15 @@
1
+ ## [1.0.97](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.96...v1.0.97) (2023-09-12)
2
+
3
+
4
+
5
+ ## [1.0.96](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.95...v1.0.96) (2023-08-28)
6
+
7
+
8
+
9
+ ## [1.0.95](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.94...v1.0.95) (2023-08-28)
10
+
11
+
12
+
1
13
  ## [1.0.94](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.92...v1.0.94) (2023-08-04)
2
14
 
3
15
 
@@ -101,7 +101,6 @@ router.beforeEach(async (to, from) => {
101
101
  const { resolveBlades } = useBladeNavigation();
102
102
  const { isAuthenticated } = useUser();
103
103
  const pages = inject<BladePageComponent[]>("pages");
104
- const resolvedBladeUrl = resolveBlades(to);
105
104
 
106
105
  <% if(commonPages === true) { -%>
107
106
  if (to.name !== "Login" && to.name !== "ResetPassword" && to.name !== "Invite") {
@@ -116,6 +115,7 @@ router.beforeEach(async (to, from) => {
116
115
  if (!(await isAuthenticated()) && to.name !== "Login") {
117
116
  return { name: "Login" };
118
117
  } else if (hasAccess && to.name !== "Login") {
118
+ const resolvedBladeUrl = resolveBlades(to);
119
119
  return resolvedBladeUrl ? resolvedBladeUrl : true;
120
120
  } else if (!hasAccess) {
121
121
  notification.error("Access restricted", {
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.95",
4
+ "version": "1.0.97",
5
5
  "bin": "./dist/index.js",
6
6
  "files": [
7
7
  "src/template",