@genesislcap/blank-app-seed 3.29.2 → 3.30.0-prerelease.10
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/scripts/update-versions.js +45 -15
- package/.genx/templates/angular/entityManager.hbs +3 -0
- package/.genx/templates/angular/route.hbs +0 -1
- package/.genx/templates/react/chart.hbs +9 -1
- package/.genx/templates/react/component/component.column.defs.hbs +4 -2
- package/.genx/templates/react/component/component.create.form.hbs +2 -2
- package/.genx/templates/react/component/component.gridOptions.hbs +5 -3
- package/.genx/templates/react/component/component.hbs +65 -20
- package/.genx/templates/react/component/component.index.hbs +1 -1
- package/.genx/templates/react/component/component.update.form.hbs +1 -1
- package/.genx/templates/react/entityManager.hbs +63 -43
- package/.genx/templates/react/form.hbs +9 -1
- package/.genx/templates/react/grid.hbs +23 -7
- package/.genx/templates/react/gridLayout.hbs +28 -28
- package/.genx/templates/react/horizontalLayout.hbs +5 -5
- package/.genx/templates/react/route.hbs +4 -19
- package/.genx/templates/react/tabsLayout.hbs +5 -5
- package/.genx/templates/web-components/entityManager.hbs +3 -0
- package/.genx/utils/formatRouteData.js +1 -1
- package/.genx/utils/generateRoute.js +8 -7
- package/.genx/utils/generateTile.js +31 -15
- package/.genx/versions.json +3 -3
- package/.github/pull_request_template.md +1 -1
- package/.github/workflows/build.yml +3 -2
- package/.github/workflows/slack.yml +1 -1
- package/.github/workflows/upgrade.yml +6 -1
- package/.github/workflows/upgrade_prerelease.yml +1 -0
- package/.idea/modules.xml +6 -6
- package/CHANGELOG.md +165 -4
- package/client-tmp/react/.babelrc +10 -0
- package/client-tmp/react/.eslintrc.cjs +4 -1
- package/client-tmp/react/env.development.json +3 -0
- package/client-tmp/react/index.html +1 -1
- package/client-tmp/react/jest.config.ts +15 -0
- package/client-tmp/react/jest.setup.ts +1 -0
- package/client-tmp/react/lint-css.ts +19 -0
- package/client-tmp/react/package.json +42 -6
- package/client-tmp/react/playwright.config.ts +17 -0
- package/client-tmp/react/src/App.tsx +34 -7
- package/client-tmp/react/src/components/ErrorMessage/ErrorMessage.test.tsx +95 -0
- package/client-tmp/react/src/components/ErrorMessage/ErrorMessage.tsx +67 -0
- package/client-tmp/react/src/config.ts +2 -1
- package/client-tmp/react/src/custom-elements.d.ts +19 -9
- package/client-tmp/react/src/guards/AuthGuard.tsx +1 -1
- package/client-tmp/react/src/guards/PermissionsGuard.tsx +37 -0
- package/client-tmp/react/src/index.ts +21 -0
- package/client-tmp/react/src/pages/AuthPage/AuthPage.test.tsx +10 -0
- package/client-tmp/react/src/pages/{auth/AuthPage.jsx → AuthPage/AuthPage.tsx} +3 -2
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.css +0 -0
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.test.tsx +17 -0
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.tsx +14 -0
- package/client-tmp/react/src/{reportWebVitals.js → reportWebVitals.ts} +1 -1
- package/client-tmp/react/src/share/foundation-login.ts +1 -1
- package/client-tmp/react/src/svg-elements.d.ts +1 -1
- package/client-tmp/react/src/utils/fdc3.ts +32 -0
- package/client-tmp/react/src/utils/history.ts +1 -3
- package/client-tmp/react/src/utils/index.ts +4 -0
- package/client-tmp/react/src/utils/permissions.ts +7 -0
- package/client-tmp/react/src/utils/setApiHost.ts +9 -0
- package/client-tmp/react/test/e2e/fixture.ts +26 -0
- package/client-tmp/react/test/e2e/flows/001-protected.e2e.ts +6 -0
- package/client-tmp/react/test/e2e/index.ts +2 -0
- package/client-tmp/react/test/e2e/pages/index.ts +1 -0
- package/client-tmp/react/test/e2e/pages/protected.ts +16 -0
- package/client-tmp/react/tsconfig.app.json +2 -5
- package/client-tmp/react/tsconfig.json +4 -1
- package/client-tmp/react/vite.config.ts +57 -12
- package/package.json +1 -1
- package/server/settings.gradle.kts +2 -2
- package/client-tmp/react/src/index.js +0 -17
- /package/client-tmp/react/src/pages/{auth → AuthPage}/AuthPage.css +0 -0
- /package/client-tmp/react/src/{setupTests.js → setupTests.ts} +0 -0
|
@@ -1,14 +1,59 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import { resolve, dirname } from 'path';
|
|
3
|
+
import { defineConfig, UserConfig } from 'vite';
|
|
4
|
+
import fs from 'fs';
|
|
2
5
|
import react from '@vitejs/plugin-react';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import visualizer from 'rollup-plugin-visualizer';
|
|
7
|
+
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
10
|
+
export default defineConfig(({ mode }: { mode: string }): UserConfig => {
|
|
11
|
+
const https: boolean = process.env.HTTPS === 'true';
|
|
12
|
+
const open: boolean = !(process.env.NO_OPEN === 'true');
|
|
13
|
+
const jsonFilePath: string = resolve(process.cwd(), `env.${mode}.json`);
|
|
14
|
+
const envConfig: Record<string, string> = {};
|
|
15
|
+
|
|
16
|
+
if (fs.existsSync(jsonFilePath)) {
|
|
17
|
+
const jsonContent: string = fs.readFileSync(jsonFilePath, 'utf-8');
|
|
18
|
+
const parsedConfig: Record<string, any> = JSON.parse(jsonContent);
|
|
19
|
+
|
|
20
|
+
for (const key in parsedConfig) {
|
|
21
|
+
envConfig[`import.meta.env.${key}`] = JSON.stringify(parsedConfig[key]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const config: UserConfig = {
|
|
26
|
+
define: envConfig,
|
|
27
|
+
server: {
|
|
28
|
+
https,
|
|
29
|
+
open,
|
|
30
|
+
},
|
|
31
|
+
plugins: [
|
|
32
|
+
react(),
|
|
33
|
+
],
|
|
34
|
+
build: {
|
|
35
|
+
rollupOptions: {
|
|
36
|
+
plugins: []
|
|
37
|
+
}
|
|
12
38
|
},
|
|
13
|
-
|
|
14
|
-
|
|
39
|
+
resolve: {
|
|
40
|
+
alias: {
|
|
41
|
+
'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (mode === 'stats') {
|
|
47
|
+
config.build.rollupOptions.plugins.push(
|
|
48
|
+
visualizer({
|
|
49
|
+
template: 'raw-data',
|
|
50
|
+
filename: 'stats.json',
|
|
51
|
+
open: true,
|
|
52
|
+
gzipSize: true,
|
|
53
|
+
brotliSize: true,
|
|
54
|
+
})
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return config;
|
|
59
|
+
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
rootProject.name = "genesisproduct-{{appName}}"
|
|
2
|
-
|
|
3
1
|
pluginManagement {
|
|
4
2
|
pluginManagement {
|
|
5
3
|
val genesisVersion: String by settings
|
|
@@ -38,6 +36,8 @@ plugins {
|
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
genesis {
|
|
39
|
+
productName = "{{appName}}"
|
|
40
|
+
|
|
41
41
|
dependencies {
|
|
42
42
|
dependency("global.genesis:auth:${extra.properties["authVersion"]}")
|
|
43
43
|
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/client';
|
|
3
|
-
import './styles/styles.css';
|
|
4
|
-
import App from './App';
|
|
5
|
-
import reportWebVitals from './reportWebVitals';
|
|
6
|
-
|
|
7
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
8
|
-
root.render(
|
|
9
|
-
<React.StrictMode>
|
|
10
|
-
<App />
|
|
11
|
-
</React.StrictMode>,
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
// If you want to start measuring performance in your app, pass a function
|
|
15
|
-
// to log results (for example: reportWebVitals(console.log))
|
|
16
|
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
17
|
-
reportWebVitals();
|
|
File without changes
|
|
File without changes
|