@genesislcap/blank-app-seed 3.30.2 → 3.31.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.
Files changed (58) hide show
  1. package/.genx/package.json +1 -1
  2. package/.genx/templates/react/chart.hbs +7 -3
  3. package/.genx/templates/react/component/component.column.defs.hbs +4 -2
  4. package/.genx/templates/react/component/component.create.form.hbs +2 -2
  5. package/.genx/templates/react/component/component.gridOptions.hbs +4 -2
  6. package/.genx/templates/react/component/component.hbs +64 -27
  7. package/.genx/templates/react/component/component.index.hbs +1 -1
  8. package/.genx/templates/react/component/component.update.form.hbs +1 -1
  9. package/.genx/templates/react/entityManager.hbs +62 -49
  10. package/.genx/templates/react/form.hbs +7 -3
  11. package/.genx/templates/react/grid.hbs +16 -10
  12. package/.genx/templates/react/route.hbs +1 -2
  13. package/.genx/templates/react/tabsLayout.hbs +5 -5
  14. package/.genx/utils/generateRoute.js +8 -7
  15. package/.genx/utils/generateTile.js +31 -16
  16. package/.genx/versions.json +3 -3
  17. package/.idea/modules.xml +6 -6
  18. package/CHANGELOG.md +22 -0
  19. package/client-tmp/angular/__mocks__/fileMock.js +1 -0
  20. package/client-tmp/angular/angular.json +0 -29
  21. package/client-tmp/angular/jest.config.js +20 -0
  22. package/client-tmp/angular/package.json +6 -6
  23. package/client-tmp/angular/src/app/layouts/default/default.layout.spec.ts +2 -2
  24. package/client-tmp/angular/src/jest.setup.ts +46 -0
  25. package/client-tmp/angular/tsconfig.app.json +1 -2
  26. package/client-tmp/angular/tsconfig.json +1 -2
  27. package/client-tmp/angular/tsconfig.spec.json +13 -7
  28. package/client-tmp/react/.babelrc +10 -0
  29. package/client-tmp/react/.eslintrc.cjs +1 -0
  30. package/client-tmp/react/jest.config.ts +15 -0
  31. package/client-tmp/react/jest.setup.ts +1 -0
  32. package/client-tmp/react/lint-css.ts +19 -0
  33. package/client-tmp/react/package.json +18 -8
  34. package/client-tmp/react/src/App.tsx +1 -1
  35. package/client-tmp/react/src/components/{ErrorMessage.test.js → ErrorMessage/ErrorMessage.test.tsx} +31 -16
  36. package/client-tmp/react/src/components/ErrorMessage/{ErrorMessage.jsx → ErrorMessage.tsx} +9 -4
  37. package/client-tmp/react/src/custom-elements.d.ts +19 -9
  38. package/client-tmp/react/src/guards/AuthGuard.tsx +1 -1
  39. package/client-tmp/react/src/index.ts +21 -0
  40. package/client-tmp/react/src/pages/AuthPage/AuthPage.test.tsx +10 -0
  41. package/client-tmp/react/src/pages/AuthPage/{AuthPage.jsx → AuthPage.tsx} +3 -2
  42. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.test.tsx +17 -0
  43. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.tsx +14 -0
  44. package/client-tmp/react/src/{reportWebVitals.js → reportWebVitals.ts} +1 -1
  45. package/client-tmp/react/tsconfig.app.json +2 -5
  46. package/client-tmp/react/tsconfig.json +4 -1
  47. package/client-tmp/react/tsconfig.node.json +1 -1
  48. package/client-tmp/react/{vite.config.js → vite.config.ts} +9 -9
  49. package/client-tmp/web-components/src/main/main.styles.ts +1 -1
  50. package/package.json +1 -1
  51. package/server/settings.gradle.kts +2 -2
  52. package/client-tmp/angular/karma.conf.js +0 -9
  53. package/client-tmp/angular/src/app/app.component.spec.ts +0 -23
  54. package/client-tmp/react/lint-css.js +0 -18
  55. package/client-tmp/react/src/index.js +0 -17
  56. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.jsx +0 -13
  57. /package/client-tmp/react/src/{setupTests.js → setupTests.ts} +0 -0
  58. /package/server/{{appName}}-app/src/main/genesis/scripts/{{{appName}}-data-pipelines.kts → {{appName}}-pipelines.kts} +0 -0
@@ -1,28 +1,28 @@
1
1
  import { fileURLToPath } from 'node:url';
2
2
  import { resolve, dirname } from 'path';
3
- import { defineConfig } from 'vite';
3
+ import { defineConfig, UserConfig } from 'vite';
4
4
  import fs from 'fs';
5
5
  import react from '@vitejs/plugin-react';
6
6
  import visualizer from 'rollup-plugin-visualizer';
7
7
 
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
9
 
10
- export default defineConfig(({ mode }) => {
11
- const https = process.env.HTTPS === 'true';
12
- const open = !(process.env.NO_OPEN === 'true');
13
- const jsonFilePath = resolve(process.cwd(), `env.${mode}.json`);
14
- const envConfig = {};
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
15
 
16
16
  if (fs.existsSync(jsonFilePath)) {
17
- const jsonContent = fs.readFileSync(jsonFilePath, 'utf-8');
18
- const parsedConfig = JSON.parse(jsonContent);
17
+ const jsonContent: string = fs.readFileSync(jsonFilePath, 'utf-8');
18
+ const parsedConfig: Record<string, any> = JSON.parse(jsonContent);
19
19
 
20
20
  for (const key in parsedConfig) {
21
21
  envConfig[`import.meta.env.${key}`] = JSON.stringify(parsedConfig[key]);
22
22
  }
23
23
  }
24
24
 
25
- const config = {
25
+ const config: UserConfig = {
26
26
  define: envConfig,
27
27
  server: {
28
28
  https,
@@ -8,7 +8,7 @@ export const MainStyles = css`
8
8
  :host {
9
9
  contain: content;
10
10
 
11
- --nav-height: 39px;
11
+ --nav-height: 48px;
12
12
  }
13
13
 
14
14
  :host,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "3.30.2",
4
+ "version": "3.31.0",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"
@@ -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,9 +0,0 @@
1
- module.exports = function(config) {
2
- config.set({
3
- browsers: ['Chrome'],
4
- browserDisconnectTimeout: 60000,
5
- browserDisconnectTolerance: 3,
6
- browserNoActivityTimeout: 60000,
7
- captureTimeout: 120000,
8
- });
9
- };
@@ -1,23 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
- import { AppComponent } from './app.component';
3
-
4
- describe('AppComponent', () => {
5
- beforeEach(async () => {
6
- await TestBed.configureTestingModule({
7
- declarations: [AppComponent],
8
- }).compileComponents();
9
- });
10
-
11
- it('should create the app', () => {
12
- const fixture = TestBed.createComponent(AppComponent);
13
- const app = fixture.componentInstance;
14
- expect(app).toBeTruthy();
15
- });
16
-
17
- it(`should have the '{{capitalCase appName}}' title`, () => {
18
- const fixture = TestBed.createComponent(AppComponent);
19
- const app = fixture.componentInstance;
20
- expect(app.title).toEqual('{{capitalCase appName}}');
21
- });
22
- });
23
-
@@ -1,18 +0,0 @@
1
- const { execSync } = require('child_process');
2
- const glob = require('glob');
3
- const path = require('path');
4
- const cssFiles = glob.sync(path.join(__dirname, '**/*.css'));
5
-
6
- if (cssFiles.length === 0) {
7
- console.log('No CSS files found.');
8
- process.exit(0);
9
- }
10
-
11
- const command = `genx lint -l stylelint ${cssFiles.join(' ')}`;
12
-
13
- try {
14
- execSync(command, { stdio: 'inherit' });
15
- } catch (error) {
16
- console.error('Error running stylelint:', error);
17
- process.exit(1);
18
- }
@@ -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();
@@ -1,13 +0,0 @@
1
- import ErrorMessage from '../../components/ErrorMessage/ErrorMessage';
2
- import './NotPermittedPage.css';
3
-
4
- const NotPermittedPage = () => {
5
- return (
6
- <ErrorMessage
7
- elementType="h1"
8
- message="You do not have permission to access this part of the application, please contact your administrator."
9
- ></ErrorMessage>
10
- );
11
- };
12
-
13
- export default NotPermittedPage;