@genesislcap/blank-app-seed 3.16.1 → 3.17.1
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/.genxrc.js +1 -1
- package/.genx/.prettierrc +5 -0
- package/.genx/configure.js +19 -10
- package/.genx/details.js +1 -1
- package/.genx/eslint.config.mjs +20 -0
- package/.genx/package-lock.json +1173 -0
- package/.genx/package.json +14 -1
- package/.genx/prompts/api.js +12 -20
- package/.genx/prompts/server.js +55 -54
- package/.genx/prompts/ui.js +40 -13
- package/.genx/prompts/validators.js +16 -6
- package/.genx/prompts.js +11 -4
- package/.genx/scripts/update-versions.js +9 -4
- package/.genx/static.js +96 -0
- package/.genx/templates/angular/route.hbs +14 -0
- package/.genx/templates/angular/route.styles.hbs +3 -0
- package/.genx/templates/angular/route.template.hbs +8 -0
- package/.genx/utils/excludeFrameworks.js +29 -0
- package/.genx/utils/formatJSONValue.js +9 -0
- package/.genx/utils/formatRouteData.js +36 -0
- package/.genx/utils/generateCsv.js +13 -0
- package/.genx/utils/generateRoute.js +64 -0
- package/.genx/utils/getCombinedCsvData.js +72 -0
- package/.genx/utils/getLayoutType.js +10 -0
- package/.genx/utils/gridColumnsSerializer.js +17 -0
- package/.genx/utils/gridOptionsSerializer.js +33 -0
- package/.genx/utils/index.js +25 -0
- package/.genx/utils/makeDirectory.js +9 -0
- package/.genx/utils/normalizeFrameworkAlias.js +5 -0
- package/.genx/utils/parseJSONArgument.js +13 -0
- package/.genx/utils/registerPartials.js +25 -0
- package/.genx/utils/validateFrameworkAlias.js +8 -0
- package/.genx/utils/validateRoute.js +8 -0
- package/.genx/versions.json +2 -2
- package/CHANGELOG.md +14 -0
- package/client-tmp/angular/README.md +27 -0
- package/client-tmp/angular/angular.json +136 -0
- package/client-tmp/angular/globals.d.ts +6 -0
- package/client-tmp/angular/package.json +51 -0
- package/client-tmp/angular/src/app/app.component.css +0 -0
- package/client-tmp/angular/src/app/app.component.html +3 -0
- package/client-tmp/angular/src/app/app.component.spec.ts +29 -0
- package/client-tmp/angular/src/app/app.component.ts +26 -0
- package/client-tmp/angular/src/app/app.config.ts +7 -0
- package/client-tmp/angular/src/app/app.routes.ts +28 -0
- package/client-tmp/angular/src/app/guards/auth.guard.ts +25 -0
- package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.css +4 -0
- package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.html +1 -0
- package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.spec.ts +22 -0
- package/client-tmp/angular/src/app/pages/auth-login/auth-login.component.ts +12 -0
- package/client-tmp/angular/src/app/pages/home/home.component.css +3 -0
- package/client-tmp/angular/src/app/pages/home/home.component.html +1 -0
- package/client-tmp/angular/src/app/pages/home/home.component.ts +16 -0
- package/client-tmp/angular/src/app/services/auth.service.ts +14 -0
- package/client-tmp/angular/src/app/share/foundation-auth.ts +21 -0
- package/client-tmp/angular/src/app/share/foundation-login.ts +37 -0
- package/client-tmp/angular/src/app/share/genesis-components.ts +15 -0
- package/client-tmp/angular/src/assets/.gitkeep +0 -0
- package/client-tmp/angular/src/environments/environment.prod.ts +5 -0
- package/client-tmp/angular/src/environments/environment.ts +6 -0
- package/client-tmp/angular/src/index.html +13 -0
- package/client-tmp/angular/src/main.ts +6 -0
- package/client-tmp/angular/src/styles.css +13 -0
- package/client-tmp/angular/tsconfig.app.json +15 -0
- package/client-tmp/angular/tsconfig.json +33 -0
- package/client-tmp/angular/tsconfig.spec.json +14 -0
- package/client-tmp/angular/webpack.dev.config.js +14 -0
- package/client-tmp/angular/webpack.prod.config.js +14 -0
- package/client-tmp/angular/webpack.shared.config.js +42 -0
- package/client-tmp/react/react-file.ts +1 -0
- package/client-tmp/web-components/public/favicon.ico +0 -0
- package/package.json +1 -1
- package/.genx/utils.js +0 -212
- /package/.genx/templates/{route.hbs → web-components/route.hbs} +0 -0
- /package/.genx/templates/{route.styles.hbs → web-components/route.styles.hbs} +0 -0
- /package/.genx/templates/{route.template.hbs → web-components/route.template.hbs} +0 -0
- /package/{client/public → client-tmp/angular/src}/favicon.ico +0 -0
- /package/{client → client-tmp/web-components}/.editorconfig +0 -0
- /package/{client → client-tmp/web-components}/.prettierignore +0 -0
- /package/{client → client-tmp/web-components}/Dockerfile +0 -0
- /package/{client → client-tmp/web-components}/README.md +0 -0
- /package/{client → client-tmp/web-components}/build.gradle.kts +0 -0
- /package/{client → client-tmp/web-components}/docs/images/lsp_jetbrains_one.png +0 -0
- /package/{client → client-tmp/web-components}/docs/images/lsp_jetbrains_two.png +0 -0
- /package/{client → client-tmp/web-components}/docs/images/lsp_vscode_one.png +0 -0
- /package/{client → client-tmp/web-components}/docs/images/lsp_vscode_two.png +0 -0
- /package/{client → client-tmp/web-components}/index.html +0 -0
- /package/{client → client-tmp/web-components}/package.json +0 -0
- /package/{client → client-tmp/web-components}/playwright.config.ts +0 -0
- /package/{client → client-tmp/web-components}/public/initSSO.js +0 -0
- /package/{client → client-tmp/web-components}/settings.gradle.kts +0 -0
- /package/{client → client-tmp/web-components}/src/components/components.ts +0 -0
- /package/{client → client-tmp/web-components}/src/components/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/components/not-permitted-component/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.styles.ts +0 -0
- /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.template.ts +0 -0
- /package/{client → client-tmp/web-components}/src/components/not-permitted-component/not-permitted-component.ts +0 -0
- /package/{client → client-tmp/web-components}/src/index.federated.ts +0 -0
- /package/{client → client-tmp/web-components}/src/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/layouts/default.ts +0 -0
- /package/{client → client-tmp/web-components}/src/layouts/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/main/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/main/main.css +0 -0
- /package/{client → client-tmp/web-components}/src/main/main.styles.ts +0 -0
- /package/{client → client-tmp/web-components}/src/main/main.template.ts +0 -0
- /package/{client → client-tmp/web-components}/src/main/main.ts +0 -0
- /package/{client → client-tmp/web-components}/src/pbc/README.md +0 -0
- /package/{client → client-tmp/web-components}/src/routes/config.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.styles.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.template.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-found/not-found.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.styles.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.template.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/not-permitted/not-permitted.ts +0 -0
- /package/{client → client-tmp/web-components}/src/routes/types.ts +0 -0
- /package/{client → client-tmp/web-components}/src/store/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/store/store.ts +0 -0
- /package/{client → client-tmp/web-components}/src/styles/design-tokens.json +0 -0
- /package/{client → client-tmp/web-components}/src/styles/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/styles/styles.ts +0 -0
- /package/{client → client-tmp/web-components}/src/styles/typography.ts +0 -0
- /package/{client → client-tmp/web-components}/src/types.ts +0 -0
- /package/{client → client-tmp/web-components}/src/typings.d.ts +0 -0
- /package/{client → client-tmp/web-components}/src/utils/fdc3.ts +0 -0
- /package/{client → client-tmp/web-components}/src/utils/formatters.ts +0 -0
- /package/{client → client-tmp/web-components}/src/utils/index.ts +0 -0
- /package/{client → client-tmp/web-components}/src/utils/logger.ts +0 -0
- /package/{client → client-tmp/web-components}/src/utils/permissions.ts +0 -0
- /package/{client → client-tmp/web-components}/test/README.md +0 -0
- /package/{client → client-tmp/web-components}/test/e2e/fixture.ts +0 -0
- /package/{client → client-tmp/web-components}/test/e2e/flows/001-protected.e2e.ts +0 -0
- /package/{client → client-tmp/web-components}/test/e2e/index.ts +0 -0
- /package/{client → client-tmp/web-components}/test/e2e/pages/index.ts +0 -0
- /package/{client → client-tmp/web-components}/test/e2e/pages/protected.ts +0 -0
- /package/{client → client-tmp/web-components}/test/unit/sample.test.ts +0 -0
- /package/{client → client-tmp/web-components}/tsconfig.json +0 -0
package/.genx/.genxrc.js
CHANGED
|
@@ -5,5 +5,5 @@ module.exports = {
|
|
|
5
5
|
// Additional seed details beyond what was captured during seed registration
|
|
6
6
|
details: () => require('./details'),
|
|
7
7
|
// Prompts used to capture seed configuration values
|
|
8
|
-
prompts: () => require('./prompts')
|
|
8
|
+
prompts: () => require('./prompts'),
|
|
9
9
|
};
|
package/.genx/configure.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
const versions = require('./versions.json');
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
excludeFrameworks,
|
|
4
|
+
formatRouteData,
|
|
5
|
+
generateRoute,
|
|
6
|
+
generateCsv,
|
|
7
|
+
getCombinedCsvData,
|
|
8
|
+
registerPartials,
|
|
9
|
+
validateRoute,
|
|
10
|
+
} = require('./utils');
|
|
3
11
|
|
|
4
12
|
/**
|
|
5
13
|
* Signature is `async (data: inquirer.Answers, utils: SeedConfigurationUtils)`
|
|
@@ -8,25 +16,26 @@ module.exports = async (data, utils) => {
|
|
|
8
16
|
// populate additional data fields
|
|
9
17
|
data.pkgName = data.appName.replace(/[\W_]/g, '').toLowerCase();
|
|
10
18
|
data.rootElement = `${data.pkgName}-root`;
|
|
11
|
-
data.localGenId = data.appName.toUpperCase().replace(
|
|
19
|
+
data.localGenId = data.appName.toUpperCase().replace('-', '_');
|
|
12
20
|
data.applicationVersionWeb = data.applicationVersion.split('-').shift();
|
|
13
21
|
data.versions = versions;
|
|
14
22
|
|
|
15
|
-
registerPartials(utils);
|
|
23
|
+
registerPartials(utils, data.framework);
|
|
16
24
|
|
|
17
|
-
data.routes = data.routes
|
|
18
|
-
.filter(validateRoute)
|
|
19
|
-
.map(formatRouteData);
|
|
25
|
+
data.routes = data.routes.filter(validateRoute).map(formatRouteData);
|
|
20
26
|
|
|
21
|
-
const FDC3EventHandlersEnabled
|
|
27
|
+
const FDC3EventHandlersEnabled = data.routes.find(
|
|
28
|
+
(route) => route.FDC3EventHandlersEnabled,
|
|
29
|
+
);
|
|
22
30
|
const FDC3ListenersEnabled = data.ui?.fdc3?.channels?.length;
|
|
23
31
|
data.FDC3 = {
|
|
24
32
|
includeDependencies: !!(FDC3ListenersEnabled || FDC3EventHandlersEnabled),
|
|
25
|
-
channels: data.ui?.fdc3?.channels || []
|
|
33
|
+
channels: data.ui?.fdc3?.channels || [],
|
|
26
34
|
};
|
|
35
|
+
excludeFrameworks(data.framework);
|
|
27
36
|
|
|
28
|
-
data.routes.forEach(route => {
|
|
29
|
-
generateRoute(route, utils);
|
|
37
|
+
data.routes.forEach((route) => {
|
|
38
|
+
generateRoute(route, utils, data.framework);
|
|
30
39
|
});
|
|
31
40
|
|
|
32
41
|
data.csv
|
package/.genx/details.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import globals from 'globals';
|
|
2
|
+
import pluginJs from '@eslint/js';
|
|
3
|
+
import prettier from 'eslint-plugin-prettier';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
|
|
7
|
+
{ languageOptions: { globals: globals.node } },
|
|
8
|
+
pluginJs.configs.recommended,
|
|
9
|
+
{
|
|
10
|
+
plugins: {
|
|
11
|
+
prettier,
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
'prettier/prettier': 'error',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ignores: ['client-tmp/'], // Use "ignores" to specify files or directories to ignore
|
|
19
|
+
},
|
|
20
|
+
];
|