From ee77700c5e7d3a2701030b176d4a35f9f5a4740b Mon Sep 17 00:00:00 2001 From: nati Date: Sat, 10 May 2025 17:00:34 +0000 Subject: [PATCH] installing tanstack router --- .vscode/settings.json | 11 + apps/menntalind/.prettierignore | 1 + apps/menntalind/src/app/app.module.scss | 1 - apps/menntalind/src/app/app.spec.tsx | 26 - apps/menntalind/src/app/app.tsx | 52 -- apps/menntalind/src/app/nx-welcome.tsx | 856 ------------------------ apps/menntalind/src/main.tsx | 33 +- apps/menntalind/src/routeTree.gen.ts | 111 +++ apps/menntalind/src/routes/__root.tsx | 20 + apps/menntalind/src/routes/about.tsx | 9 + apps/menntalind/src/routes/index.tsx | 13 + apps/menntalind/vite.config.ts | 6 +- 12 files changed, 191 insertions(+), 948 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 apps/menntalind/.prettierignore delete mode 100644 apps/menntalind/src/app/app.module.scss delete mode 100644 apps/menntalind/src/app/app.spec.tsx delete mode 100644 apps/menntalind/src/app/app.tsx delete mode 100644 apps/menntalind/src/app/nx-welcome.tsx create mode 100644 apps/menntalind/src/routeTree.gen.ts create mode 100644 apps/menntalind/src/routes/__root.tsx create mode 100644 apps/menntalind/src/routes/about.tsx create mode 100644 apps/menntalind/src/routes/index.tsx diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..21c1e04 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "files.readonlyInclude": { + "**/routeTree.gen.ts": true + }, + "files.watcherExclude": { + "**/routeTree.gen.ts": true + }, + "search.exclude": { + "**/routeTree.gen.ts": true + } +} \ No newline at end of file diff --git a/apps/menntalind/.prettierignore b/apps/menntalind/.prettierignore new file mode 100644 index 0000000..2a0e6b7 --- /dev/null +++ b/apps/menntalind/.prettierignore @@ -0,0 +1 @@ +routeTree.gen.ts \ No newline at end of file diff --git a/apps/menntalind/src/app/app.module.scss b/apps/menntalind/src/app/app.module.scss deleted file mode 100644 index 7b88fba..0000000 --- a/apps/menntalind/src/app/app.module.scss +++ /dev/null @@ -1 +0,0 @@ -/* Your styles goes here. */ diff --git a/apps/menntalind/src/app/app.spec.tsx b/apps/menntalind/src/app/app.spec.tsx deleted file mode 100644 index 82f31b3..0000000 --- a/apps/menntalind/src/app/app.spec.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { render } from '@testing-library/react'; -import { BrowserRouter } from 'react-router-dom'; - -import App from './app'; - -describe('App', () => { - it('should render successfully', () => { - const { baseElement } = render( - - - - ); - expect(baseElement).toBeTruthy(); - }); - - it('should have a greeting as the title', () => { - const { getAllByText } = render( - - - - ); - expect( - getAllByText(new RegExp('Welcome menntalind', 'gi')).length > 0 - ).toBeTruthy(); - }); -}); diff --git a/apps/menntalind/src/app/app.tsx b/apps/menntalind/src/app/app.tsx deleted file mode 100644 index 65db5fd..0000000 --- a/apps/menntalind/src/app/app.tsx +++ /dev/null @@ -1,52 +0,0 @@ -// Uncomment this line to use CSS modules -// import styles from './app.module.scss'; -import NxWelcome from './nx-welcome'; - -import { Route, Routes, Link } from 'react-router-dom'; - -export function App() { - return ( -
- - - {/* START: routes */} - {/* These routes and navigation have been generated for you */} - {/* Feel free to move and update them to fit your needs */} -
-
-
-
-
    -
  • - Home -
  • -
  • - Page 2 -
  • -
-
- - - This is the generated root route.{' '} - Click here for page 2. -
- } - /> - - Click here to go back to root page. - - } - /> - - {/* END: routes */} - - ); -} - -export default App; diff --git a/apps/menntalind/src/app/nx-welcome.tsx b/apps/menntalind/src/app/nx-welcome.tsx deleted file mode 100644 index f3c5c7a..0000000 --- a/apps/menntalind/src/app/nx-welcome.tsx +++ /dev/null @@ -1,856 +0,0 @@ -/* - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - This is a starter component and can be deleted. - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - Delete this file and get started with your project! - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - */ -export function NxWelcome({ title }: { title: string }) { - return ( - <> -