@solidxai/solidctl 0.1.1 → 0.1.3
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/dist/commands/create-app/create-app.command.js +14 -13
- package/dist/commands/create-app/create-app.command.js.map +1 -1
- package/dist/commands/create-app/helpers.d.ts +7 -14
- package/dist/commands/create-app/helpers.js +9 -17
- package/dist/commands/create-app/helpers.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/api-template/dot-templates/dot.gitignore.template +82 -0
- package/templates/{nest-template → api-template}/package.json +3 -3
- package/templates/{nest-template → api-template}/test/app.e2e-spec.ts +1 -1
- package/templates/ui-template/README.md +73 -0
- package/templates/ui-template/dist/assets/Footerbg-8Co6YRm2.png +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Black-85SZiFK-.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Bold-CkqE-6tD.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Heavy-Cj-4znqf.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Light-aDlMluiV.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Medium-DSttQARu.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Regular-DF_3XEGl.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Semibold-Dg2-djaL.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Thin-Dlj_0ZL0.otf +0 -0
- package/templates/ui-template/dist/assets/SF-Pro-Display-Ultralight-Dvb4Y4p6.otf +0 -0
- package/templates/ui-template/dist/assets/index-ByqcKjdb.js +3912 -0
- package/templates/ui-template/dist/assets/index-wnEWlFcj.css +1 -0
- package/templates/ui-template/dist/assets/primeicons-C6QP2o4f.woff2 +0 -0
- package/templates/ui-template/dist/assets/primeicons-DMOk5skT.eot +0 -0
- package/templates/ui-template/dist/assets/primeicons-Dr5RGzOO.svg +345 -0
- package/templates/ui-template/dist/assets/primeicons-MpK4pl85.ttf +0 -0
- package/templates/ui-template/dist/assets/primeicons-WjwUDZjB.woff +0 -0
- package/templates/ui-template/dist/assets/quill-DooZuM6F.js +49 -0
- package/templates/ui-template/dist/assets/solid-left-layout-bg-CTFSpGKh.png +0 -0
- package/templates/ui-template/dist/assets/solid-right-layout-bg-HyBzctm7.png +0 -0
- package/templates/ui-template/dist/index.html +19 -0
- package/templates/{next-template/public → ui-template/dist}/themes/solid-dark-purple/theme.css +7 -2
- package/templates/ui-template/dist/themes/solid-light-purple/solid-login-light.png +0 -0
- package/templates/{next-template/public → ui-template/dist}/themes/solid-light-purple/theme.css +10 -3
- package/templates/ui-template/dist/vite.svg +1 -0
- package/templates/ui-template/dot-templates/dot.gitignore.template +83 -0
- package/templates/ui-template/eslint.config.js +23 -0
- package/templates/ui-template/index.html +18 -0
- package/templates/ui-template/package-lock.json +11931 -0
- package/templates/ui-template/package.json +42 -0
- package/templates/ui-template/public/themes/solid-dark-purple/theme.css +6208 -0
- package/templates/ui-template/public/themes/solid-light-purple/solid-login-light.png +0 -0
- package/templates/ui-template/public/themes/solid-light-purple/theme.css +6263 -0
- package/templates/ui-template/public/vite.svg +1 -0
- package/templates/ui-template/src/App.css +42 -0
- package/templates/ui-template/src/App.tsx +44 -0
- package/templates/ui-template/src/assets/react.svg +1 -0
- package/templates/ui-template/src/extensions/solid-extensions.ts +82 -0
- package/templates/ui-template/src/extensions/venue/call-log/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/form-event-listeners/callLogsDispositionHandler.ts +47 -0
- package/templates/ui-template/src/extensions/venue/call-log/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/call-log/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/ImportHierarchyComponent.tsx +377 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-buttons/SolidCustomImportHeader.tsx +14 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/CallLogsDispositionHandler.ts +47 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/form-event-listeners/onHierarchyImportFormLoadHandler.ts +45 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/hierarchy-import-transaction/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/form-event-listeners/venueMasterFormViewLoadHandler.ts +57 -0
- package/templates/ui-template/src/extensions/venue/venue-master/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-master/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/custom-widgets/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/venueUserFormViewChangeHandler.ts +21 -0
- package/templates/ui-template/src/extensions/venue/venue-user/form-event-listeners/venueUserFormViewLoadHandler.ts +97 -0
- package/templates/ui-template/src/extensions/venue/venue-user/list-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/list-event-listeners/.gitkeep +0 -0
- package/templates/ui-template/src/extensions/venue/venue-user/row-buttons/.gitkeep +0 -0
- package/templates/ui-template/src/index.css +10 -0
- package/templates/ui-template/src/main.tsx +10 -0
- package/templates/ui-template/src/pages/admin/AdminInfoPage.tsx +15 -0
- package/templates/ui-template/src/pages/auth/HelloAuthPage.tsx +15 -0
- package/templates/ui-template/src/pages/auth/VenueAppLoginPage.tsx +10 -0
- package/templates/ui-template/src/pages/static/AboutPage.tsx +17 -0
- package/templates/ui-template/src/redux/hierarchyImportTransactionApi.tsx +28 -0
- package/templates/ui-template/src/routes/AppRoutes.tsx +34 -0
- package/templates/ui-template/tsconfig.app.json +29 -0
- package/templates/ui-template/tsconfig.json +7 -0
- package/templates/ui-template/tsconfig.node.json +26 -0
- package/templates/ui-template/venue-admin.logicloop.io.conf +81 -0
- package/templates/ui-template/vite.config.ts +15 -0
- package/templates/nest-template/bin/solid +0 -2
- package/templates/nest-template/dot-templates/dot.gitignore.template +0 -56
- package/templates/next-template/README.md +0 -36
- package/templates/next-template/app/GlobalProvider.tsx +0 -23
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/form/[id]/page.tsx +0 -19
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/kanban/page.tsx +0 -18
- package/templates/next-template/app/admin/core/[moduleName]/[modelName]/list/page.tsx +0 -18
- package/templates/next-template/app/admin/core/[moduleName]/home/page.tsx +0 -15
- package/templates/next-template/app/admin/core/[moduleName]/settings/[settings]/page.tsx +0 -11
- package/templates/next-template/app/admin/layout.tsx +0 -11
- package/templates/next-template/app/admin/loading.tsx +0 -8
- package/templates/next-template/app/admin/page.tsx +0 -10
- package/templates/next-template/app/api/auth/[...nextauth]/route.ts +0 -6
- package/templates/next-template/app/auth/confirm-forgot-password/page.tsx +0 -12
- package/templates/next-template/app/auth/forgot-password/page.tsx +0 -11
- package/templates/next-template/app/auth/initiate-forgot-password/page.tsx +0 -11
- package/templates/next-template/app/auth/initiate-forgot-password-thank-you/page.tsx +0 -11
- package/templates/next-template/app/auth/initiate-google-oauth/page.tsx +0 -9
- package/templates/next-template/app/auth/initiate-login/page.tsx +0 -13
- package/templates/next-template/app/auth/initiate-register/page.tsx +0 -14
- package/templates/next-template/app/auth/layout.tsx +0 -10
- package/templates/next-template/app/auth/login/page.tsx +0 -12
- package/templates/next-template/app/auth/otp-verify/page.tsx +0 -12
- package/templates/next-template/app/auth/register/page.tsx +0 -12
- package/templates/next-template/app/auth/reset-password/page.tsx +0 -13
- package/templates/next-template/app/auth/sso/page.tsx +0 -80
- package/templates/next-template/app/layout.tsx +0 -56
- package/templates/next-template/app/solid-extensions.ts +0 -8
- package/templates/next-template/dot-templates/dot.gitignore.template +0 -44
- package/templates/next-template/eslint.config.mjs +0 -16
- package/templates/next-template/middleware.ts +0 -23
- package/templates/next-template/next-env.d.ts +0 -5
- package/templates/next-template/next-solidx-run.js +0 -18
- package/templates/next-template/next.config.js +0 -47
- package/templates/next-template/package.json +0 -79
- package/templates/next-template/public/favicon.ico +0 -0
- package/templates/next-template/public/file.svg +0 -1
- package/templates/next-template/public/globe.svg +0 -1
- package/templates/next-template/public/next.svg +0 -1
- package/templates/next-template/public/vercel.svg +0 -1
- package/templates/next-template/public/window.svg +0 -1
- package/templates/next-template/redux/store.ts +0 -52
- package/templates/next-template/tsconfig.json +0 -33
- package/templates/next-template/types/index.d.ts +0 -7
- package/templates/next-template/types/layout.d.ts +0 -94
- package/templates/next-template/types/next.d.ts +0 -46
- /package/templates/{nest-template → api-template}/README.md +0 -0
- /package/templates/{nest-template → api-template}/dot-templates/dot.dockerignore.template +0 -0
- /package/templates/{nest-template → api-template}/dot-templates/dot.eslintrc.template.js +0 -0
- /package/templates/{nest-template → api-template}/dot-templates/dot.prettierrc.template +0 -0
- /package/templates/{nest-template → api-template}/nest-cli.json +0 -0
- /package/templates/{nest-template → api-template}/nodemon.json +0 -0
- /package/templates/{nest-template → api-template}/src/app-default-database.module.ts +0 -0
- /package/templates/{nest-template → api-template}/src/app.controller.spec.ts +0 -0
- /package/templates/{nest-template → api-template}/src/app.module.ts +0 -0
- /package/templates/{nest-template → api-template}/src/app.service.ts +0 -0
- /package/templates/{nest-template → api-template}/src/database.utils.ts +0 -0
- /package/templates/{nest-template → api-template}/src/main-cli.ts +0 -0
- /package/templates/{nest-template → api-template}/src/main.ts +0 -0
- /package/templates/{nest-template → api-template}/test/jest-e2e.json +0 -0
- /package/templates/{nest-template → api-template}/tsconfig.build.json +0 -0
- /package/templates/{nest-template → api-template}/tsconfig.json +0 -0
- /package/templates/{next-template/public/themes/solid-light-purple/solid-login-light.png → ui-template/dist/assets/solid-login-light-C-F0ch5x.png} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# compiled output
|
|
2
|
-
/dist
|
|
3
|
-
/node_modules
|
|
4
|
-
/build
|
|
5
|
-
|
|
6
|
-
# Logs
|
|
7
|
-
logs
|
|
8
|
-
*.log
|
|
9
|
-
npm-debug.log*
|
|
10
|
-
pnpm-debug.log*
|
|
11
|
-
yarn-debug.log*
|
|
12
|
-
yarn-error.log*
|
|
13
|
-
lerna-debug.log*
|
|
14
|
-
|
|
15
|
-
# OS
|
|
16
|
-
.DS_Store
|
|
17
|
-
|
|
18
|
-
# Tests
|
|
19
|
-
/coverage
|
|
20
|
-
/.nyc_output
|
|
21
|
-
|
|
22
|
-
# IDEs and editors
|
|
23
|
-
/.idea
|
|
24
|
-
.project
|
|
25
|
-
.classpath
|
|
26
|
-
.c9/
|
|
27
|
-
*.launch
|
|
28
|
-
.settings/
|
|
29
|
-
*.sublime-workspace
|
|
30
|
-
|
|
31
|
-
# IDE - VSCode
|
|
32
|
-
.vscode/*
|
|
33
|
-
!.vscode/settings.json
|
|
34
|
-
!.vscode/tasks.json
|
|
35
|
-
!.vscode/launch.json
|
|
36
|
-
!.vscode/extensions.json
|
|
37
|
-
|
|
38
|
-
# ignore environment variable files
|
|
39
|
-
.env*
|
|
40
|
-
|
|
41
|
-
# temp directory
|
|
42
|
-
.temp
|
|
43
|
-
.tmp
|
|
44
|
-
|
|
45
|
-
# Runtime data
|
|
46
|
-
pids
|
|
47
|
-
*.pid
|
|
48
|
-
*.seed
|
|
49
|
-
*.pid.lock
|
|
50
|
-
|
|
51
|
-
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
52
|
-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
53
|
-
|
|
54
|
-
media-uploads
|
|
55
|
-
media-files-storage
|
|
56
|
-
local_packages
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
|
2
|
-
|
|
3
|
-
## Getting Started
|
|
4
|
-
|
|
5
|
-
First, run the development server:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm run dev
|
|
9
|
-
# or
|
|
10
|
-
yarn dev
|
|
11
|
-
# or
|
|
12
|
-
pnpm dev
|
|
13
|
-
# or
|
|
14
|
-
bun dev
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
18
|
-
|
|
19
|
-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
20
|
-
|
|
21
|
-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
|
22
|
-
|
|
23
|
-
## Learn More
|
|
24
|
-
|
|
25
|
-
To learn more about Next.js, take a look at the following resources:
|
|
26
|
-
|
|
27
|
-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
28
|
-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
29
|
-
|
|
30
|
-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
|
31
|
-
|
|
32
|
-
## Deploy on Vercel
|
|
33
|
-
|
|
34
|
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
35
|
-
|
|
36
|
-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { SessionProvider } from "next-auth/react";
|
|
4
|
-
import { Toaster } from "react-hot-toast";
|
|
5
|
-
import { Provider } from "react-redux";
|
|
6
|
-
import { initializeStore } from "@/redux/store";
|
|
7
|
-
|
|
8
|
-
// Load all overrides.
|
|
9
|
-
// TODO: Putting this here as this seems to the most top level component used with "use client"
|
|
10
|
-
import "./solid-extensions";
|
|
11
|
-
|
|
12
|
-
export function GlobalProvider({ children, entities }: { children: React.ReactNode, entities: string[] }) {
|
|
13
|
-
const store = initializeStore(entities);
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<Toaster />
|
|
18
|
-
<Provider store={store}>
|
|
19
|
-
<SessionProvider>{children}</SessionProvider>
|
|
20
|
-
</Provider>
|
|
21
|
-
</>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { SolidFormLayouts } from "@solidxai/core-ui";
|
|
3
|
-
|
|
4
|
-
type SolidViewParams = {
|
|
5
|
-
params: {
|
|
6
|
-
moduleName: string;
|
|
7
|
-
modelName: string;
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const page = ({ params }: SolidViewParams) => {
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<SolidFormLayouts params={params} />
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default page;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { SolidKanbanView } from "@solidxai/core-ui";
|
|
3
|
-
import { camelCase } from "change-case";
|
|
4
|
-
|
|
5
|
-
type SolidViewParams = {
|
|
6
|
-
params: {
|
|
7
|
-
moduleName: string;
|
|
8
|
-
modelName: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const page = ({ params }: SolidViewParams) => {
|
|
13
|
-
return (
|
|
14
|
-
<SolidKanbanView {...params} embeded={false} modelName={camelCase(params.modelName)} />
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default page;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { SolidListView } from "@solidxai/core-ui";
|
|
3
|
-
import { camelCase } from "change-case";
|
|
4
|
-
|
|
5
|
-
type SolidViewParams = {
|
|
6
|
-
params: {
|
|
7
|
-
moduleName: string;
|
|
8
|
-
modelName: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const page = ({ params }: SolidViewParams) => {
|
|
13
|
-
return (
|
|
14
|
-
<SolidListView {...params} embeded={false} modelName={camelCase(params.modelName)} />
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default page;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SolidModuleHome } from '@solidxai/core-ui';
|
|
2
|
-
import { capitalCase } from 'change-case';
|
|
3
|
-
|
|
4
|
-
type SolidViewParams = {
|
|
5
|
-
params : {
|
|
6
|
-
moduleName : string
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export default function ModuleHome({params}: SolidViewParams) {
|
|
10
|
-
return (
|
|
11
|
-
<div>
|
|
12
|
-
<SolidModuleHome moduleName={capitalCase(params.moduleName)} />
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { SolidInitialLoginOtp } from "@solidxai/core-ui";
|
|
3
|
-
import { useSearchParams } from "next/navigation";
|
|
4
|
-
|
|
5
|
-
const InitiateLoginConfirm = () => {
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<SolidInitialLoginOtp />
|
|
9
|
-
</div>
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default InitiateLoginConfirm;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { SolidInitiateRegisterOtp } from "@solidxai/core-ui";
|
|
3
|
-
|
|
4
|
-
import { useSearchParams } from "next/navigation";
|
|
5
|
-
|
|
6
|
-
const InitiateRegisterConfirm = () => {
|
|
7
|
-
return (
|
|
8
|
-
<div>
|
|
9
|
-
<SolidInitiateRegisterOtp />
|
|
10
|
-
</div>
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default InitiateRegisterConfirm;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { getSession, signIn } from "next-auth/react";
|
|
4
|
-
import React, { useEffect, useState } from "react";
|
|
5
|
-
import { useRouter, useSearchParams } from "next/navigation";
|
|
6
|
-
import { Card } from "primereact/card";
|
|
7
|
-
import { ProgressSpinner } from "primereact/progressspinner";
|
|
8
|
-
|
|
9
|
-
type Params = {
|
|
10
|
-
params: {
|
|
11
|
-
accessToken: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default function page() {
|
|
15
|
-
const router = useRouter();
|
|
16
|
-
const [error, setError] = useState<any>();
|
|
17
|
-
const [success, setSuccess] = useState(false);
|
|
18
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const searchParams = useSearchParams()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const fn = async () => {
|
|
25
|
-
const email = "";
|
|
26
|
-
const password = "";
|
|
27
|
-
const accessToken = searchParams.get('accessToken')
|
|
28
|
-
const response = await signIn("credentials", {
|
|
29
|
-
redirect: false,
|
|
30
|
-
email,
|
|
31
|
-
password,
|
|
32
|
-
accessToken
|
|
33
|
-
});
|
|
34
|
-
if (response?.error) {
|
|
35
|
-
setIsLoading(false);
|
|
36
|
-
setError(response.error);
|
|
37
|
-
} else {
|
|
38
|
-
setIsLoading(false);
|
|
39
|
-
setSuccess(true);
|
|
40
|
-
router.push("/admin/dashboard");
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
fn()
|
|
45
|
-
}, [])
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<div className="card flex justify-content-center align-items-center" style={{ height: '80vh' }}>
|
|
49
|
-
<Card className="custom-card md:w-25rem" style={{
|
|
50
|
-
boxShadow: 'rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px'
|
|
51
|
-
}}>
|
|
52
|
-
<div style={{
|
|
53
|
-
position: 'relative',
|
|
54
|
-
display: 'flex',
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
zIndex: 1,
|
|
57
|
-
// marginBottom: '50px'
|
|
58
|
-
}}>
|
|
59
|
-
{isLoading
|
|
60
|
-
? <>
|
|
61
|
-
<ProgressSpinner style={{ width: '50px', height: '50px' }} />
|
|
62
|
-
<style>{`
|
|
63
|
-
.p-progress-spinner circle {
|
|
64
|
-
stroke: blue !important; /* Make the spinner blue */
|
|
65
|
-
}
|
|
66
|
-
` }</style>
|
|
67
|
-
</>
|
|
68
|
-
: success
|
|
69
|
-
? <i className="pi pi-check" style={{color: 'green', fontSize: '30px', fontWeight: '700'}}></i>
|
|
70
|
-
: <i className="pi pi-times" style={{color: 'red', fontSize: '30px', fontWeight: '700'}}></i>}
|
|
71
|
-
</div>
|
|
72
|
-
<p className="m-20" style={{textAlign: 'center'}}>
|
|
73
|
-
{isLoading && `Please wait while we authenticate your profile.`}
|
|
74
|
-
{error && `${error} Your not authenticated`}
|
|
75
|
-
</p>
|
|
76
|
-
</Card>
|
|
77
|
-
</div>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import "@solidxai/core-ui";
|
|
2
|
-
import "@solidxai/core-ui";
|
|
3
|
-
import "@solidxai/core-ui"
|
|
4
|
-
import "primeicons/primeicons.css";
|
|
5
|
-
import "primeflex/primeflex.css";
|
|
6
|
-
import { Inter } from "next/font/google";
|
|
7
|
-
import { GlobalProvider } from "./GlobalProvider";
|
|
8
|
-
import { PrimeReactProvider } from "primereact/api";
|
|
9
|
-
import { LayoutProvider } from "@solidxai/core-ui";
|
|
10
|
-
import { SolidThemeProvider } from "@solidxai/core-ui";
|
|
11
|
-
|
|
12
|
-
const inter = Inter({
|
|
13
|
-
subsets: ["latin"],
|
|
14
|
-
weight: ['400', '700'], // Define weights, e.g., '400', '500', '700'
|
|
15
|
-
variable: '--font-inter',
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
// Fetch a list of entities dynamically
|
|
19
|
-
async function fetchEntities() {
|
|
20
|
-
const url = `${process.env.NEXT_PUBLIC_BACKEND_API_URL}/api/model-metadata/public`;
|
|
21
|
-
|
|
22
|
-
const response = await fetch(url, { cache: 'no-store' });
|
|
23
|
-
const data = await response.json(); // Assume this returns an array of entity names
|
|
24
|
-
const entities = data.data.records.map((r: any) => r.singularName);
|
|
25
|
-
|
|
26
|
-
return entities
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
|
30
|
-
const solidEntities = await fetchEntities();
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<html lang="en" suppressHydrationWarning>
|
|
34
|
-
{/* <Head /> */}
|
|
35
|
-
<head>
|
|
36
|
-
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
37
|
-
<meta name="description" content="Generated by create next app" />
|
|
38
|
-
<link rel="icon" href="/favicon.ico" />
|
|
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" />
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<GlobalProvider entities={solidEntities}>
|
|
46
|
-
<PrimeReactProvider>
|
|
47
|
-
<LayoutProvider>
|
|
48
|
-
<SolidThemeProvider />
|
|
49
|
-
{children}
|
|
50
|
-
</LayoutProvider>
|
|
51
|
-
</PrimeReactProvider>
|
|
52
|
-
</GlobalProvider>
|
|
53
|
-
</body>
|
|
54
|
-
</html>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { registerExtensionComponent, registerExtensionFunction } from "@solidxai/core-ui";
|
|
2
|
-
|
|
3
|
-
// Registering a custom component
|
|
4
|
-
// registerExtensionComponent("BookFormViewDynamicComponent", ImageGrid12Column);
|
|
5
|
-
|
|
6
|
-
// Registering a custom function
|
|
7
|
-
// registerExtensionFunction("bookFormViewChangeHandler", handleBookFormViewChange);
|
|
8
|
-
// registerExtensionFunction("bookFormViewBlurHandler", handleBookFormViewBlur);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.*
|
|
7
|
-
.yarn/*
|
|
8
|
-
!.yarn/patches
|
|
9
|
-
!.yarn/plugins
|
|
10
|
-
!.yarn/releases
|
|
11
|
-
!.yarn/versions
|
|
12
|
-
|
|
13
|
-
# testing
|
|
14
|
-
/coverage
|
|
15
|
-
|
|
16
|
-
# next.js
|
|
17
|
-
/.next/
|
|
18
|
-
/out/
|
|
19
|
-
|
|
20
|
-
# production
|
|
21
|
-
/build
|
|
22
|
-
|
|
23
|
-
# misc
|
|
24
|
-
.DS_Store
|
|
25
|
-
*.pem
|
|
26
|
-
|
|
27
|
-
# debug
|
|
28
|
-
npm-debug.log*
|
|
29
|
-
yarn-debug.log*
|
|
30
|
-
yarn-error.log*
|
|
31
|
-
.pnpm-debug.log*
|
|
32
|
-
|
|
33
|
-
# env files (can opt-in for committing if needed)
|
|
34
|
-
.env*
|
|
35
|
-
|
|
36
|
-
# vercel
|
|
37
|
-
.vercel
|
|
38
|
-
|
|
39
|
-
# typescript
|
|
40
|
-
*.tsbuildinfo
|
|
41
|
-
next-env.d.ts
|
|
42
|
-
|
|
43
|
-
public/themes
|
|
44
|
-
local_packages
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { dirname } from "path";
|
|
2
|
-
import { fileURLToPath } from "url";
|
|
3
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
4
|
-
|
|
5
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = dirname(__filename);
|
|
7
|
-
|
|
8
|
-
const compat = new FlatCompat({
|
|
9
|
-
baseDirectory: __dirname,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const eslintConfig = [
|
|
13
|
-
...compat.extends("next/core-web-vitals", "next/typescript"),
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export default eslintConfig;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { withAuth } from "next-auth/middleware";
|
|
2
|
-
import { NextResponse } from "next/server";
|
|
3
|
-
|
|
4
|
-
export default withAuth(
|
|
5
|
-
function middleware(req) {
|
|
6
|
-
// authorize roles
|
|
7
|
-
const url = req?.nextUrl?.pathname;
|
|
8
|
-
const user = req?.nextauth?.token?.user
|
|
9
|
-
|
|
10
|
-
// if (url?.startsWith("/admin") && user?.role !== "admin") {
|
|
11
|
-
// return NextResponse.redirect(new URL("/", req.url));
|
|
12
|
-
// }
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
callbacks: {
|
|
16
|
-
authorized: ({ token }) => !!token,
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
export const config = {
|
|
22
|
-
matcher: ["/me/:path*", "/bookings/:path*","/admin/:path*"],
|
|
23
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { spawn } = require("child_process");
|
|
3
|
-
const path = require("path");
|
|
4
|
-
|
|
5
|
-
// Load .env (and .env.local if you use it)
|
|
6
|
-
require("dotenv").config({ path: path.resolve(process.cwd(), ".env") });
|
|
7
|
-
|
|
8
|
-
const port = process.env.PORT || "3001";
|
|
9
|
-
|
|
10
|
-
const mode = process.argv[2]; // "dev" or "start"
|
|
11
|
-
const args =
|
|
12
|
-
mode === "dev"
|
|
13
|
-
? ["dev", "-p", port]
|
|
14
|
-
: ["start", "-p", port];
|
|
15
|
-
|
|
16
|
-
const child = spawn("next", args, { stdio: "inherit", shell: true });
|
|
17
|
-
|
|
18
|
-
child.on("exit", (code) => process.exit(code ?? 0));
|