Skip to content

Commit a6dde97

Browse files
authored
Merge pull request #802 from Lemoncode/feature/update-cloud-examples
Feature/update cloud examples
2 parents 657cf98 + 835048c commit a6dde97

File tree

528 files changed

+69515
-32083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

528 files changed

+69515
-32083
lines changed

07-cloud/01-basic/00-boilerplate/package-lock.json

Lines changed: 4249 additions & 2308 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
2-
"name": "04-boilerplate-front",
2+
"name": "07-cloud-master-frontend-lemoncode",
33
"version": "1.0.0",
4-
"description": "Member project",
5-
"main": "index.js",
64
"type": "module",
75
"scripts": {
86
"start": "run-p -l type-check:watch start:dev",
@@ -13,38 +11,43 @@
1311
"test": "vitest run -c ./config/test/config.ts",
1412
"test:watch": "vitest run -c ./config/test/config.ts"
1513
},
14+
"imports": {
15+
"#*": "./src/*"
16+
},
1617
"author": "Lemoncode",
1718
"license": "MIT",
1819
"dependencies": {
19-
"@emotion/css": "^11.11.2",
20-
"@emotion/react": "^11.11.4",
21-
"@emotion/styled": "^11.11.0",
20+
"@emotion/css": "^11.13.5",
21+
"@emotion/react": "^11.14.0",
22+
"@emotion/styled": "^11.14.0",
2223
"@lemoncode/fonk": "^1.5.4",
2324
"@lemoncode/fonk-formik": "^4.0.1",
24-
"@mui/material": "^5.15.12",
25-
"axios": "^1.6.7",
26-
"formik": "^2.4.5",
27-
"react": "^18.2.0",
28-
"react-dom": "^18.2.0",
29-
"react-router-dom": "^6.22.2"
25+
"@mui/material": "^6.4.3",
26+
"@tanstack/react-router": "^1.102.1",
27+
"axios": "^1.7.9",
28+
"formik": "^2.4.6",
29+
"react": "^19.0.0",
30+
"react-dom": "^19.0.0"
3031
},
3132
"devDependencies": {
32-
"@emotion/babel-plugin": "^11.11.0",
33-
"@testing-library/dom": "^9.3.4",
34-
"@testing-library/jest-dom": "^6.4.2",
35-
"@testing-library/react": "^14.2.1",
36-
"@testing-library/user-event": "^14.5.2",
37-
"@types/jest": "^29.5.12",
38-
"@types/react": "^18.2.63",
39-
"@types/react-dom": "^18.2.19",
33+
"@emotion/babel-plugin": "^11.13.5",
34+
"@tanstack/router-devtools": "^1.102.1",
35+
"@tanstack/router-plugin": "^1.102.1",
36+
"@testing-library/dom": "^10.4.0",
37+
"@testing-library/jest-dom": "^6.6.3",
38+
"@testing-library/react": "^16.2.0",
39+
"@testing-library/user-event": "^14.6.1",
40+
"@types/jest": "^29.5.14",
41+
"@types/react": "^19.0.8",
42+
"@types/react-dom": "^19.0.3",
4043
"@types/react-router-dom": "^5.3.3",
41-
"@vitejs/plugin-react": "^4.2.1",
42-
"jsdom": "^24.0.0",
44+
"@vitejs/plugin-react": "^4.3.4",
45+
"jsdom": "^26.0.0",
4346
"npm-run-all": "^4.1.5",
44-
"rimraf": "^5.0.5",
45-
"ts-jest": "^29.1.2",
46-
"typescript": "^5.3.3",
47-
"vite": "^5.1.5",
48-
"vitest": "^1.3.1"
47+
"rimraf": "^6.0.1",
48+
"ts-jest": "^29.2.5",
49+
"typescript": "^5.7.3",
50+
"vite": "^6.1.0",
51+
"vitest": "^3.0.5"
4952
}
5053
}

07-cloud/01-basic/00-boilerplate/src/app.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react';
2-
import { RouterComponent } from '@/core/router';
3-
import { ThemeProviderComponent } from '@/core/theme';
2+
import { RouterProvider } from '@tanstack/react-router';
3+
import { router } from '#core/router';
4+
import { ThemeProviderComponent } from '#core/theme';
45

56
const App: React.FC = () => {
67
return (
78
<ThemeProviderComponent>
8-
<RouterComponent />
9+
<RouterProvider router={router} />
910
</ThemeProviderComponent>
1011
);
1112
};

07-cloud/01-basic/00-boilerplate/src/common-app/app-bar/app-bar.component.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common-app/app-bar/app-bar.styles.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common-app/app-bar/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common/components/form/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common/components/form/text-field/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common/components/form/text-field/text-field.component.tsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common/components/form/text-field/text-field.styles.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

07-cloud/01-basic/00-boilerplate/src/common/components/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
export const envConstants = {
1+
export const ENV = {
2+
IS_PRODUCTION: import.meta.env.PROD,
23
ORGANIZATION: import.meta.env.PUBLIC_ORGANIZATION,
34
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './router.component';
2-
export * from './routes';
1+
export * from './router.dev-tools';
2+
export * from './router';
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/* eslint-disable */
2+
3+
// @ts-nocheck
4+
5+
// noinspection JSUnusedGlobalSymbols
6+
7+
// This file was automatically generated by TanStack Router.
8+
// You should NOT make any changes in this file as it will be overwritten.
9+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
10+
11+
// Import Routes
12+
13+
import { Route as rootRoute } from './../../scenes/__root'
14+
import { Route as ListImport } from './../../scenes/list'
15+
import { Route as IndexImport } from './../../scenes/index'
16+
17+
// Create/Update Routes
18+
19+
const ListRoute = ListImport.update({
20+
id: '/list',
21+
path: '/list',
22+
getParentRoute: () => rootRoute,
23+
} as any)
24+
25+
const IndexRoute = IndexImport.update({
26+
id: '/',
27+
path: '/',
28+
getParentRoute: () => rootRoute,
29+
} as any)
30+
31+
// Populate the FileRoutesByPath interface
32+
33+
declare module '@tanstack/react-router' {
34+
interface FileRoutesByPath {
35+
'/': {
36+
id: '/'
37+
path: '/'
38+
fullPath: '/'
39+
preLoaderRoute: typeof IndexImport
40+
parentRoute: typeof rootRoute
41+
}
42+
'/list': {
43+
id: '/list'
44+
path: '/list'
45+
fullPath: '/list'
46+
preLoaderRoute: typeof ListImport
47+
parentRoute: typeof rootRoute
48+
}
49+
}
50+
}
51+
52+
// Create and export the route tree
53+
54+
export interface FileRoutesByFullPath {
55+
'/': typeof IndexRoute
56+
'/list': typeof ListRoute
57+
}
58+
59+
export interface FileRoutesByTo {
60+
'/': typeof IndexRoute
61+
'/list': typeof ListRoute
62+
}
63+
64+
export interface FileRoutesById {
65+
__root__: typeof rootRoute
66+
'/': typeof IndexRoute
67+
'/list': typeof ListRoute
68+
}
69+
70+
export interface FileRouteTypes {
71+
fileRoutesByFullPath: FileRoutesByFullPath
72+
fullPaths: '/' | '/list'
73+
fileRoutesByTo: FileRoutesByTo
74+
to: '/' | '/list'
75+
id: '__root__' | '/' | '/list'
76+
fileRoutesById: FileRoutesById
77+
}
78+
79+
export interface RootRouteChildren {
80+
IndexRoute: typeof IndexRoute
81+
ListRoute: typeof ListRoute
82+
}
83+
84+
const rootRouteChildren: RootRouteChildren = {
85+
IndexRoute: IndexRoute,
86+
ListRoute: ListRoute,
87+
}
88+
89+
export const routeTree = rootRoute
90+
._addFileChildren(rootRouteChildren)
91+
._addFileTypes<FileRouteTypes>()
92+
93+
/* ROUTE_MANIFEST_START
94+
{
95+
"routes": {
96+
"__root__": {
97+
"filePath": "__root.tsx",
98+
"children": [
99+
"/",
100+
"/list"
101+
]
102+
},
103+
"/": {
104+
"filePath": "index.tsx"
105+
},
106+
"/list": {
107+
"filePath": "list.tsx"
108+
}
109+
}
110+
}
111+
ROUTE_MANIFEST_END */

07-cloud/01-basic/00-boilerplate/src/core/router/router.component.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import { ENV } from '#core/constants';
3+
4+
export const TanStackRouterDevtools = ENV.IS_PRODUCTION
5+
? () => null // Render nothing in production
6+
: React.lazy(() =>
7+
import('@tanstack/router-devtools').then(res => ({
8+
default: res.TanStackRouterDevtools,
9+
}))
10+
);
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { createRouter } from '@tanstack/react-router';
2+
// The route-tree file is generated automatically. Do not modify this file manually.
3+
import { routeTree } from './route-tree';
4+
5+
export const router = createRouter({
6+
routeTree,
7+
});
8+
9+
declare module '@tanstack/react-router' {
10+
interface Register {
11+
router: typeof router;
12+
}
13+
}

07-cloud/01-basic/00-boilerplate/src/core/router/routes.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import ReactDOM from 'react-dom';
1+
import { createRoot } from 'react-dom/client';
22
import App from './app';
33

4-
ReactDOM.render(<App />, document.getElementById('root'));
4+
const root = createRoot(document.getElementById('root')!);
5+
root.render(<App />);

0 commit comments

Comments
 (0)