@genesislcap/blank-app-seed 3.21.0 → 3.23.0
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/.genx/package.json +1 -1
- package/.genx/static.js +3 -2
- package/.genx/templates/angular/chart.hbs +21 -9
- package/.genx/templates/angular/entityManager.hbs +57 -45
- package/.genx/templates/angular/form.hbs +21 -8
- package/.genx/templates/angular/grid.hbs +30 -18
- package/.genx/templates/angular/route.hbs +8 -5
- package/.genx/templates/react/chart.hbs +9 -0
- package/.genx/templates/react/entityManager.hbs +45 -0
- package/.genx/templates/react/form.hbs +8 -0
- package/.genx/templates/react/grid.hbs +18 -0
- package/.genx/templates/react/gridLayout.hbs +30 -0
- package/.genx/templates/react/horizontalLayout.hbs +7 -0
- package/.genx/templates/react/route.hbs +35 -0
- package/.genx/templates/react/route.styles.hbs +3 -0
- package/.genx/templates/react/tabsLayout.hbs +7 -0
- package/.genx/templates/web-components/entityManager.hbs +1 -1
- package/.genx/utils/generateRoute.js +21 -9
- package/CHANGELOG.md +14 -0
- package/client-tmp/angular/angular.json +21 -12
- package/client-tmp/angular/package.json +45 -20
- package/client-tmp/angular/src/app/app-routing.module.ts +10 -3
- package/client-tmp/angular/src/app/app.component.spec.ts +2 -8
- package/client-tmp/angular/src/app/app.component.ts +0 -1
- package/client-tmp/angular/src/app/app.config.ts +1 -0
- package/client-tmp/angular/src/app/components/error-message/error-message.component.html +15 -0
- package/client-tmp/angular/src/app/components/error-message/error-message.component.spec.ts +74 -0
- package/client-tmp/angular/src/app/components/error-message/error-message.component.ts +15 -0
- package/client-tmp/angular/src/app/guards/auth.guard.ts +3 -3
- package/client-tmp/angular/src/app/guards/permissions.guard.ts +24 -0
- package/client-tmp/angular/src/app/layouts/blank/blank.layout.html +0 -1
- package/client-tmp/angular/src/app/layouts/blank/blank.layout.spec.ts +1 -1
- package/client-tmp/angular/src/app/layouts/default/default.layout.html +0 -1
- package/client-tmp/angular/src/app/layouts/default/default.layout.spec.ts +30 -15
- package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.spec.ts +6 -6
- package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.html +4 -0
- package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.scss +12 -0
- package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.spec.ts +32 -0
- package/client-tmp/angular/src/app/pages/not-permitted/not-permitted.component.ts +13 -0
- package/client-tmp/angular/src/app/services/auth.service.ts +12 -4
- package/client-tmp/angular/src/app/share/foundation-login.ts +3 -0
- package/client-tmp/angular/src/app/utils/index.ts +1 -0
- package/client-tmp/angular/src/app/utils/permissions.ts +7 -0
- package/client-tmp/angular/src/styles/_mixins.scss +8 -0
- package/client-tmp/react/.eslintrc.cjs +18 -0
- package/client-tmp/react/README.md +48 -0
- package/client-tmp/react/git +0 -0
- package/client-tmp/react/index.html +13 -0
- package/client-tmp/react/package.json +54 -0
- package/client-tmp/react/src/App.tsx +66 -0
- package/client-tmp/react/src/assets/logo-icon--light.svg +3 -0
- package/client-tmp/react/src/config.ts +31 -0
- package/client-tmp/react/src/custom-elements.d.ts +11 -0
- package/client-tmp/react/src/guards/AuthGuard.tsx +32 -0
- package/client-tmp/react/src/index.js +17 -0
- package/client-tmp/react/src/layouts/LayoutWrapper.tsx +20 -0
- package/client-tmp/react/src/layouts/blank/BlankLayout.module.css +9 -0
- package/client-tmp/react/src/layouts/blank/BlankLayout.tsx +26 -0
- package/client-tmp/react/src/layouts/default/DefaultLayout.module.css +35 -0
- package/client-tmp/react/src/layouts/default/DefaultLayout.tsx +80 -0
- package/client-tmp/react/src/main.tsx +10 -0
- package/client-tmp/react/src/pages/auth/AuthPage.css +0 -0
- package/client-tmp/react/src/pages/auth/AuthPage.jsx +11 -0
- package/client-tmp/react/src/reportWebVitals.js +13 -0
- package/client-tmp/react/src/services/auth.service.ts +13 -0
- package/client-tmp/react/src/services/connect.service.ts +26 -0
- package/client-tmp/react/src/setupTests.js +5 -0
- package/client-tmp/react/src/share/foundation-login.ts +21 -0
- package/client-tmp/react/src/share/genesis-components.ts +32 -0
- package/client-tmp/react/src/store/AuthContext.tsx +56 -0
- package/client-tmp/react/src/styles/design-tokens.json +56 -0
- package/client-tmp/react/src/styles/styles.css +39 -0
- package/client-tmp/react/src/svg-elements.d.ts +4 -0
- package/client-tmp/react/src/types/RouteLayouts.ts +3 -0
- package/client-tmp/react/src/types/layers.ts +9 -0
- package/client-tmp/react/src/types/menu.ts +8 -0
- package/client-tmp/react/src/utils/history.ts +5 -0
- package/client-tmp/react/src/utils/navigation.ts +5 -0
- package/client-tmp/react/src/vite-env.d.ts +1 -0
- package/client-tmp/react/tsconfig.app.json +28 -0
- package/client-tmp/react/tsconfig.json +11 -0
- package/client-tmp/react/tsconfig.node.json +13 -0
- package/client-tmp/react/vite.config.ts +14 -0
- package/package.json +1 -1
- package/client-tmp/react/react-file.ts +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Segoe UI;
|
|
3
|
+
font-weight: 300;
|
|
4
|
+
src: local("Segoe UI Semilight"), local("Segoe UI");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
* {
|
|
8
|
+
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html,
|
|
14
|
+
body,
|
|
15
|
+
#root,
|
|
16
|
+
[class$='-page'] {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
|
|
22
|
+
--nav-height: 60px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
body{
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
rapid-design-system-provider,
|
|
30
|
+
.dynamic-template,
|
|
31
|
+
foundation-router {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
rapid-design-system-provider {
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface LayersState {
|
|
2
|
+
[key: string]: boolean; // Each key is a layer name, value is its visibility (true/false)
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface LayerContextState {
|
|
6
|
+
state: LayersState;
|
|
7
|
+
updateState: (newState: Partial<LayerContextState['state']>) => void;
|
|
8
|
+
setLayerState: (layerName: string, isVisible: boolean) => void;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"useDefineForClassFields": true,
|
|
7
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
|
|
11
|
+
/* Bundler mode */
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"moduleDetection": "force",
|
|
17
|
+
"noEmit": true,
|
|
18
|
+
"jsx": "react-jsx",
|
|
19
|
+
|
|
20
|
+
/* Linting */
|
|
21
|
+
"strict": true,
|
|
22
|
+
"noUnusedLocals": true,
|
|
23
|
+
"noUnusedParameters": true,
|
|
24
|
+
"noFallthroughCasesInSwitch": true,
|
|
25
|
+
"types": ["node", "react"]
|
|
26
|
+
},
|
|
27
|
+
"include": ["src"]
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
5
|
+
"skipLibCheck": true,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noEmit": true
|
|
11
|
+
},
|
|
12
|
+
"include": ["vite.config.ts"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
import { resolve } from 'path';
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [
|
|
7
|
+
react(),
|
|
8
|
+
],
|
|
9
|
+
resolve: {
|
|
10
|
+
alias: {
|
|
11
|
+
'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// WIP
|