@solidstarters/create-solid-app 1.2.17 → 1.2.19
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/Issues.txt +5 -0
- package/helpers.js +56 -18
- package/index.js +15 -18
- package/package.json +1 -1
- package/templates/dot-templates/dot.vscode.template/launch.json +35 -0
- package/templates/nest-template/dot-templates/dot.gitignore.template +3 -0
- package/templates/nest-template/nodemon.json +13 -0
- package/templates/nest-template/package-lock.json +774 -10
- package/templates/nest-template/package.json +9 -5
- package/templates/nest-template/rebuild.sh +1 -1
- package/templates/nest-template/src/app.module.ts +9 -0
- package/templates/next-template/app/layout.tsx +6 -3
- package/templates/next-template/next.config.js +9 -0
- package/templates/next-template/package-lock.json +15 -4
- package/templates/next-template/package.json +1 -1
- package/templates/next-template/redux/store.ts +15 -0
- package/templates/upgrade.sh +9 -0
- package/templates/dot.templates/dot.vscode.template/launch.json +0 -29
- package/templates/next-template/app/admin/settings/authentication-settings/page.tsx +0 -10
- package/templates/next-template/app/admin/settings/misc-settings/page.tsx +0 -10
- /package/templates/next-template/app/admin/{settings/app-settings → core/[moduleName]/settings/[settings]}/page.tsx +0 -0
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"test:watch": "jest --watch",
|
|
22
22
|
"test:cov": "jest --coverage",
|
|
23
23
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
24
|
-
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
24
|
+
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
25
|
+
"solidx:dev": "nodemon"
|
|
26
|
+
|
|
25
27
|
},
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"@angular-devkit/core": "^18.0.3",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
"@nestjs/serve-static": "^4.0.2",
|
|
43
45
|
"@nestjs/swagger": "^7.2.0",
|
|
44
46
|
"@nestjs/typeorm": "^10.0.1",
|
|
45
|
-
"@solidstarters/solid-core": "^1.2.
|
|
47
|
+
"@solidstarters/solid-core": "^1.2.93",
|
|
46
48
|
"@types/luxon": "^3.4.2",
|
|
47
49
|
"amqplib": "^0.10.4",
|
|
48
50
|
"axios": "^1.7.0",
|
|
@@ -74,12 +76,13 @@
|
|
|
74
76
|
"typeorm-naming-strategies": "^4.1.0",
|
|
75
77
|
"uuid": "^9.0.1",
|
|
76
78
|
"winston": "^3.17.0",
|
|
77
|
-
"xlsx": "^0.18.5"
|
|
79
|
+
"xlsx": "^0.18.5",
|
|
80
|
+
"nestjs-cls": "^5.4.3"
|
|
78
81
|
},
|
|
79
82
|
"devDependencies": {
|
|
80
83
|
"@nestjs/cli": "^10.0.0",
|
|
81
84
|
"@nestjs/testing": "^10.0.0",
|
|
82
|
-
"@solidstarters/solid-code-builder": "^1.0.
|
|
85
|
+
"@solidstarters/solid-code-builder": "^1.0.27",
|
|
83
86
|
"@types/express": "^4.17.17",
|
|
84
87
|
"@types/hapi__joi": "^17.1.12",
|
|
85
88
|
"@types/jest": "^29.5.2",
|
|
@@ -107,7 +110,8 @@
|
|
|
107
110
|
"ts-loader": "^9.4.3",
|
|
108
111
|
"ts-node": "^10.9.1",
|
|
109
112
|
"tsconfig-paths": "^4.2.0",
|
|
110
|
-
"typescript": "^5.1.3"
|
|
113
|
+
"typescript": "^5.1.3",
|
|
114
|
+
"nodemon": "^3.1.10"
|
|
111
115
|
},
|
|
112
116
|
"jest": {
|
|
113
117
|
"moduleFileExtensions": [
|
|
@@ -10,6 +10,8 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
|
|
|
10
10
|
import { DefaultDBModule } from './app-default-database.module';
|
|
11
11
|
import { WinstonModule } from 'nest-winston';
|
|
12
12
|
import { WinstonLoggerConfig } from '@solidstarters/solid-core';
|
|
13
|
+
import { ClsModule } from 'nestjs-cls';
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
@Module({
|
|
15
17
|
imports: [
|
|
@@ -43,6 +45,13 @@ import { WinstonLoggerConfig } from '@solidstarters/solid-core';
|
|
|
43
45
|
|
|
44
46
|
EventEmitterModule.forRoot(),
|
|
45
47
|
|
|
48
|
+
ClsModule.forRoot({
|
|
49
|
+
global: true,
|
|
50
|
+
middleware: {
|
|
51
|
+
mount: true,
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
|
|
46
55
|
],
|
|
47
56
|
controllers: [],
|
|
48
57
|
providers: [
|
|
@@ -7,7 +7,7 @@ import { Inter } from "next/font/google";
|
|
|
7
7
|
import { GlobalProvider } from "./GlobalProvider";
|
|
8
8
|
import { PrimeReactProvider } from "primereact/api";
|
|
9
9
|
import { LayoutProvider } from "@solidstarters/solid-core-ui";
|
|
10
|
-
import {
|
|
10
|
+
import { SolidThemeProvider } from "@solidstarters/solid-core-ui";
|
|
11
11
|
|
|
12
12
|
const inter = Inter({
|
|
13
13
|
subsets: ["latin"],
|
|
@@ -36,13 +36,16 @@ export default async function RootLayout({ children }: { children: React.ReactNo
|
|
|
36
36
|
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
37
37
|
<meta name="description" content="Generated by create next app" />
|
|
38
38
|
<link rel="icon" href="/favicon.ico" />
|
|
39
|
-
|
|
40
|
-
<
|
|
39
|
+
<link id="theme-css" href={`/themes/solid-light-purple/theme.css`} rel="stylesheet"></link>
|
|
40
|
+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
|
|
41
|
+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded" rel="stylesheet" />
|
|
42
|
+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp" rel="stylesheet" />
|
|
41
43
|
</head>
|
|
42
44
|
<body>
|
|
43
45
|
<GlobalProvider entities={solidEntities}>
|
|
44
46
|
<PrimeReactProvider>
|
|
45
47
|
<LayoutProvider>
|
|
48
|
+
<SolidThemeProvider />
|
|
46
49
|
{/* <div className="layoutPage">{children}</div> */}
|
|
47
50
|
{/* {process.env.NEXT_PUBLIC_ENABLE_CUSTOM_HEADER_FOOTER == "true" && <CustomHeader />} */}
|
|
48
51
|
{children}
|
|
@@ -46,9 +46,18 @@ const nextConfig = {
|
|
|
46
46
|
},
|
|
47
47
|
images: {
|
|
48
48
|
domains: ["res.cloudinary.com"],
|
|
49
|
+
remotePatterns: getRemotePatterns(),
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
|
|
53
|
+
function getRemotePatterns(){
|
|
54
|
+
try {
|
|
55
|
+
return JSON.parse(process.env.NEXT_PUBLIC_REMOTE_PATTERNS || '[]');
|
|
56
|
+
} catch (error) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
52
61
|
|
|
53
62
|
|
|
54
63
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
14
14
|
"@hello-pangea/dnd": "^17.0.0",
|
|
15
15
|
"@reduxjs/toolkit": "^1.9.5",
|
|
16
|
-
"@solidstarters/solid-core-ui": "^1.1.
|
|
16
|
+
"@solidstarters/solid-core-ui": "^1.1.112",
|
|
17
17
|
"@types/node": "20.5.9",
|
|
18
18
|
"@types/react": "18.2.21",
|
|
19
19
|
"@types/react-dom": "18.2.7",
|
|
@@ -962,9 +962,9 @@
|
|
|
962
962
|
}
|
|
963
963
|
},
|
|
964
964
|
"node_modules/@solidstarters/solid-core-ui": {
|
|
965
|
-
"version": "1.1.
|
|
966
|
-
"resolved": "https://registry.npmjs.org/@solidstarters/solid-core-ui/-/solid-core-ui-1.1.
|
|
967
|
-
"integrity": "sha512-
|
|
965
|
+
"version": "1.1.112",
|
|
966
|
+
"resolved": "https://registry.npmjs.org/@solidstarters/solid-core-ui/-/solid-core-ui-1.1.112.tgz",
|
|
967
|
+
"integrity": "sha512-ew1qSWlx4NYSJHdOBkFWS1DUJIrWz+Pp3oCvsWpyiF7lhU+nuGepK3MX4UCz3fIbNPTLuYgGUuUXyYYcYNUDeA==",
|
|
968
968
|
"license": "ISC",
|
|
969
969
|
"dependencies": {
|
|
970
970
|
"@hello-pangea/dnd": "^17.0.0",
|
|
@@ -994,6 +994,7 @@
|
|
|
994
994
|
"qs": "^6.13.0",
|
|
995
995
|
"quill": "^2.0.3",
|
|
996
996
|
"react-pdf": "^9.2.1",
|
|
997
|
+
"react-range": "^1.10.0",
|
|
997
998
|
"stripe": "^13.5.0",
|
|
998
999
|
"uuid": "^10.0.0",
|
|
999
1000
|
"xlsx": "^0.18.5",
|
|
@@ -6681,6 +6682,16 @@
|
|
|
6681
6682
|
"react": ">=0.11.0"
|
|
6682
6683
|
}
|
|
6683
6684
|
},
|
|
6685
|
+
"node_modules/react-range": {
|
|
6686
|
+
"version": "1.10.0",
|
|
6687
|
+
"resolved": "https://registry.npmjs.org/react-range/-/react-range-1.10.0.tgz",
|
|
6688
|
+
"integrity": "sha512-kDo0LiBUHIQIP8menx0UoxTnHr7UXBYpIYl/DR9jCaO1o29VwvCLpkP/qOTNQz5hkJadPg1uEM07XJcJ1XGoKw==",
|
|
6689
|
+
"license": "MIT",
|
|
6690
|
+
"peerDependencies": {
|
|
6691
|
+
"react": "*",
|
|
6692
|
+
"react-dom": "*"
|
|
6693
|
+
}
|
|
6694
|
+
},
|
|
6684
6695
|
"node_modules/react-redux": {
|
|
6685
6696
|
"version": "8.1.3",
|
|
6686
6697
|
"resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.1.3.tgz",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
16
16
|
"@hello-pangea/dnd": "^17.0.0",
|
|
17
17
|
"@reduxjs/toolkit": "^1.9.5",
|
|
18
|
-
"@solidstarters/solid-core-ui": "^1.1.
|
|
18
|
+
"@solidstarters/solid-core-ui": "^1.1.112",
|
|
19
19
|
"@types/node": "20.5.9",
|
|
20
20
|
"@types/react": "18.2.21",
|
|
21
21
|
"@types/react-dom": "18.2.7",
|
|
@@ -20,6 +20,11 @@ import { themeReducer } from '@solidstarters/solid-core-ui';
|
|
|
20
20
|
import { userReducer } from "@solidstarters/solid-core-ui";
|
|
21
21
|
import { solidSettingsApi } from "@solidstarters/solid-core-ui";
|
|
22
22
|
import { roleApi } from "@solidstarters/solid-core-ui";
|
|
23
|
+
import { exportTemplateApi } from "@solidstarters/solid-core-ui";
|
|
24
|
+
import { solidChatterMessageApi } from "@solidstarters/solid-core-ui";
|
|
25
|
+
import { solidServiceApi } from "@solidstarters/solid-core-ui";
|
|
26
|
+
import { importTransactionApi } from "@solidstarters/solid-core-ui";
|
|
27
|
+
|
|
23
28
|
export function initializeStore(entities: string[] = []) {
|
|
24
29
|
|
|
25
30
|
const reducers = {
|
|
@@ -37,6 +42,11 @@ export function initializeStore(entities: string[] = []) {
|
|
|
37
42
|
[solidMenusApi.reducerPath]: solidMenusApi.reducer,
|
|
38
43
|
[solidSettingsApi.reducerPath]: solidSettingsApi.reducer,
|
|
39
44
|
[roleApi.reducerPath]: roleApi.reducer,
|
|
45
|
+
[solidChatterMessageApi.reducerPath]: solidChatterMessageApi.reducer,
|
|
46
|
+
[exportTemplateApi.reducerPath]:exportTemplateApi.reducer,
|
|
47
|
+
[solidServiceApi.reducerPath]: solidServiceApi.reducer,
|
|
48
|
+
[importTransactionApi.reducerPath]: importTransactionApi.reducer,
|
|
49
|
+
|
|
40
50
|
// This has now become dynamica and is added using the for loop below
|
|
41
51
|
// [solidCountryApi.reducerPath]: solidCountryApi.reducer,
|
|
42
52
|
|
|
@@ -59,6 +69,11 @@ export function initializeStore(entities: string[] = []) {
|
|
|
59
69
|
solidMenusApi.middleware,
|
|
60
70
|
solidSettingsApi.middleware,
|
|
61
71
|
roleApi.middleware,
|
|
72
|
+
solidChatterMessageApi.middleware,
|
|
73
|
+
exportTemplateApi.middleware,
|
|
74
|
+
solidServiceApi.middleware,
|
|
75
|
+
importTransactionApi.middleware
|
|
76
|
+
|
|
62
77
|
// This has now become dynamica and is added using the for loop below
|
|
63
78
|
// solidCountryApi.middleware
|
|
64
79
|
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Upgrade solid api dependencies
|
|
2
|
+
npm upgrade --prefix solid-api @solidstarters/solid-core
|
|
3
|
+
npm upgrade --prefix solid-api @solidstarters/solid-code-builder
|
|
4
|
+
# Upgrade solid ui dependencies
|
|
5
|
+
npm upgrade --prefix solid-ui @solidstarters/solid-core-ui
|
|
6
|
+
## copy the theme files from node modules to the public/themes folder within solid-ui
|
|
7
|
+
npm run --prefix solid-ui postinstall
|
|
8
|
+
# cd into solid-api directory and run the rebuild.sh & solid seed command
|
|
9
|
+
cd solid-api && ./rebuild.sh && solid seed && cd ..
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"type": "node",
|
|
9
|
-
"request": "launch",
|
|
10
|
-
"name": "Debug solid-api Nest Framework",
|
|
11
|
-
"args": [
|
|
12
|
-
"${workspaceFolder}/solid-api/src/main.ts"
|
|
13
|
-
],
|
|
14
|
-
"runtimeArgs": [
|
|
15
|
-
"--nolazy",
|
|
16
|
-
"-r",
|
|
17
|
-
"ts-node/register",
|
|
18
|
-
"-r",
|
|
19
|
-
"tsconfig-paths/register"
|
|
20
|
-
],
|
|
21
|
-
"sourceMaps": true,
|
|
22
|
-
"envFile": "${workspaceFolder}/solid-api/.env",
|
|
23
|
-
"cwd": "${workspaceFolder}/solid-api",
|
|
24
|
-
"console": "integratedTerminal",
|
|
25
|
-
"runtimeExecutable": "node",
|
|
26
|
-
"autoAttachChildProcesses": true
|
|
27
|
-
},
|
|
28
|
-
]
|
|
29
|
-
}
|
|
File without changes
|