@admin-layout/demo-tailwind-browser 10.0.9-alpha.2 → 10.0.9-alpha.4

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/lib/compute.js CHANGED
@@ -1,80 +1,69 @@
1
- import { ORG_STD_ROUTES } from '@adminide-stack/core/lib/constants/urls.js';
2
- import { IMenuPosition } from '@common-stack/core';
3
- import { getFilteredMenus, getFilteredRoutes } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
4
- const MainRoutes = [{
1
+ import {ORG_STD_ROUTES}from'@adminide-stack/core/lib/constants/urls.js';import {IMenuPosition}from'@common-stack/core';import {getFilteredMenus,getFilteredRoutes}from'@common-stack/client-react/lib/utils/filteredRoutes.js';const MainRoutes = [{
5
2
  name: 'Exception',
6
3
  key: 'menu.exception',
7
4
  icon: '',
8
5
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception`,
6
+ component: () => import('./components/exception/exception.js'),
9
7
  position: IMenuPosition.Lower,
10
- exact: false,
11
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/exception/exception.js",
12
- hasComponent: true
8
+ exact: false
13
9
  }, {
14
10
  name: 'Exception 403',
15
11
  key: 'menu.exception.403',
16
12
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception/403`,
17
13
  auth: true,
14
+ component: () => import('./components/exception/403/Component.js'),
18
15
  position: IMenuPosition.Lower,
19
16
  exact: true,
20
- priority: 1,
21
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/exception/403/Component.js",
22
- hasComponent: true
17
+ priority: 1
23
18
  }, {
24
19
  name: 'Exception 404',
25
20
  key: 'menu.exception.404',
26
21
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception/404`,
27
22
  auth: true,
23
+ component: () => import('./components/exception/404/Component.js'),
28
24
  position: IMenuPosition.Lower,
29
25
  exact: true,
30
- priority: 2,
31
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/exception/404/Component.js",
32
- hasComponent: true
26
+ priority: 2
33
27
  }, {
34
28
  name: 'Exception 500',
35
29
  key: 'menu.exception.500',
36
30
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception/500`,
37
31
  auth: true,
32
+ component: () => import('./components/exception/500/Component.js'),
38
33
  position: IMenuPosition.Lower,
39
34
  exact: true,
40
- priority: 3,
41
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/exception/500/Component.js",
42
- hasComponent: true
35
+ priority: 3
43
36
  }, {
44
37
  name: 'Result',
45
38
  key: 'menu.result',
46
39
  icon: '',
47
40
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/result`,
48
41
  position: IMenuPosition.Lower,
42
+ component: () => import('./components/result/result.js'),
49
43
  auth: true,
50
- exact: false,
51
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/result/result.js",
52
- hasComponent: true
44
+ exact: false
53
45
  }, {
54
46
  name: 'Success',
55
47
  key: 'menu.result.success',
56
48
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/result/success`,
57
49
  auth: true,
50
+ component: () => import('./components/result/success/Component.js'),
58
51
  position: IMenuPosition.Lower,
59
52
  exact: true,
60
- priority: 1,
61
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/result/success/Component.js",
62
- hasComponent: true
53
+ priority: 1
63
54
  }, {
64
55
  name: 'Fail',
65
56
  key: 'menu.result.fail',
66
57
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/result/fail`,
67
58
  auth: true,
59
+ component: () => import('./components/result/fail/Component.js'),
68
60
  position: IMenuPosition.Lower,
69
61
  exact: true,
70
- priority: 2,
71
- componentPath: "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
72
- hasComponent: true
62
+ priority: 2
73
63
  }];
74
64
  // Using '*' to select all routes and menus
75
65
  const selectedAll = '*';
76
66
  // Get menus
77
67
  getFilteredMenus(MainRoutes, selectedAll);
78
68
  // Get routes
79
- const filteredRoutes = getFilteredRoutes(MainRoutes, selectedAll);
80
- export { MainRoutes, filteredRoutes }; //# sourceMappingURL=compute.js.map
69
+ const filteredRoutes = getFilteredRoutes(MainRoutes, selectedAll);export{MainRoutes,filteredRoutes};//# sourceMappingURL=compute.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/demo-tailwind-browser",
3
- "version": "10.0.9-alpha.2",
3
+ "version": "10.0.9-alpha.4",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -21,8 +21,8 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@admin-layout/assets": "10.0.9-alpha.2",
25
- "@admin-layout/tailwind-design-pro": "10.0.9-alpha.2",
24
+ "@admin-layout/assets": "10.0.9-alpha.4",
25
+ "@admin-layout/tailwind-design-pro": "10.0.9-alpha.4",
26
26
  "@pubngo-stack/icons": "8.0.7",
27
27
  "@react-icons/all-files": "^4.1.0",
28
28
  "@xstate/react": "^4.1.1",
@@ -50,7 +50,7 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "4282a0dc1fca5169abee8ad93ccc6b56fcf259d6",
53
+ "gitHead": "6d3f67b63bdf37a197375c0e78e0d650088f7c40",
54
54
  "typescript": {
55
55
  "definition": "lib/index.d.ts"
56
56
  }
package/lib/routes.json DELETED
@@ -1,92 +0,0 @@
1
- [
2
- {
3
- "/o/:orgName/exception": {
4
- "name": "Exception",
5
- "key": "menu.exception",
6
- "icon": "",
7
- "path": "/o/:orgName/exception",
8
- "position": "LOWER",
9
- "exact": false,
10
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/exception/exception.js",
11
- "hasComponent": true
12
- }
13
- },
14
- {
15
- "/o/:orgName/exception/403": {
16
- "name": "Exception 403",
17
- "key": "menu.exception.403",
18
- "path": "/o/:orgName/exception/403",
19
- "auth": true,
20
- "position": "LOWER",
21
- "exact": true,
22
- "priority": 1,
23
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/exception/403/Component.js",
24
- "hasComponent": true
25
- }
26
- },
27
- {
28
- "/o/:orgName/exception/404": {
29
- "name": "Exception 404",
30
- "key": "menu.exception.404",
31
- "path": "/o/:orgName/exception/404",
32
- "auth": true,
33
- "position": "LOWER",
34
- "exact": true,
35
- "priority": 2,
36
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/exception/404/Component.js",
37
- "hasComponent": true
38
- }
39
- },
40
- {
41
- "/o/:orgName/exception/500": {
42
- "name": "Exception 500",
43
- "key": "menu.exception.500",
44
- "path": "/o/:orgName/exception/500",
45
- "auth": true,
46
- "position": "LOWER",
47
- "exact": true,
48
- "priority": 3,
49
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/exception/500/Component.js",
50
- "hasComponent": true
51
- }
52
- },
53
- {
54
- "/o/:orgName/result": {
55
- "name": "Result",
56
- "key": "menu.result",
57
- "icon": "",
58
- "path": "/o/:orgName/result",
59
- "position": "LOWER",
60
- "auth": true,
61
- "exact": false,
62
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/result/result.js",
63
- "hasComponent": true
64
- }
65
- },
66
- {
67
- "/o/:orgName/result/success": {
68
- "name": "Success",
69
- "key": "menu.result.success",
70
- "path": "/o/:orgName/result/success",
71
- "auth": true,
72
- "position": "LOWER",
73
- "exact": true,
74
- "priority": 1,
75
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/result/success/Component.js",
76
- "hasComponent": true
77
- }
78
- },
79
- {
80
- "/o/:orgName/result/fail": {
81
- "name": "Fail",
82
- "key": "menu.result.fail",
83
- "path": "/o/:orgName/result/fail",
84
- "auth": true,
85
- "position": "LOWER",
86
- "exact": true,
87
- "priority": 2,
88
- "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
89
- "hasComponent": true
90
- }
91
- }
92
- ]