Started BE structure / docker for FE dev
This commit is contained in:
@@ -0,0 +1 @@
|
||||
node_modules/*
|
||||
@@ -1,10 +1,9 @@
|
||||
{
|
||||
"name": ".",
|
||||
"name": "Cover letter frontend",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --port 3000",
|
||||
"start": "vite --port 3000",
|
||||
"dev": "vite --port 3000 --host",
|
||||
"build": "vite build && tsc",
|
||||
"serve": "vite preview",
|
||||
"test": "vitest run"
|
||||
@@ -34,4 +33,5 @@
|
||||
"vitest": "^3.0.5",
|
||||
"web-vitals": "^4.2.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
/* eslint-disable */
|
||||
|
||||
// @ts-nocheck
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
// This file was automatically generated by TanStack Router.
|
||||
// You should NOT make any changes in this file as it will be overwritten.
|
||||
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
||||
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as DemoTanstackQueryRouteImport } from './routes/demo.tanstack-query'
|
||||
import { Route as DemoFormSimpleRouteImport } from './routes/demo.form.simple'
|
||||
import { Route as DemoFormAddressRouteImport } from './routes/demo.form.address'
|
||||
|
||||
const IndexRoute = IndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const DemoTanstackQueryRoute = DemoTanstackQueryRouteImport.update({
|
||||
id: '/demo/tanstack-query',
|
||||
path: '/demo/tanstack-query',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const DemoFormSimpleRoute = DemoFormSimpleRouteImport.update({
|
||||
id: '/demo/form/simple',
|
||||
path: '/demo/form/simple',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const DemoFormAddressRoute = DemoFormAddressRouteImport.update({
|
||||
id: '/demo/form/address',
|
||||
path: '/demo/form/address',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
|
||||
'/demo/form/address': typeof DemoFormAddressRoute
|
||||
'/demo/form/simple': typeof DemoFormSimpleRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
|
||||
'/demo/form/address': typeof DemoFormAddressRoute
|
||||
'/demo/form/simple': typeof DemoFormSimpleRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/demo/tanstack-query': typeof DemoTanstackQueryRoute
|
||||
'/demo/form/address': typeof DemoFormAddressRoute
|
||||
'/demo/form/simple': typeof DemoFormSimpleRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths:
|
||||
| '/'
|
||||
| '/demo/tanstack-query'
|
||||
| '/demo/form/address'
|
||||
| '/demo/form/simple'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/demo/tanstack-query' | '/demo/form/address' | '/demo/form/simple'
|
||||
id:
|
||||
| '__root__'
|
||||
| '/'
|
||||
| '/demo/tanstack-query'
|
||||
| '/demo/form/address'
|
||||
| '/demo/form/simple'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
DemoTanstackQueryRoute: typeof DemoTanstackQueryRoute
|
||||
DemoFormAddressRoute: typeof DemoFormAddressRoute
|
||||
DemoFormSimpleRoute: typeof DemoFormSimpleRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/': {
|
||||
id: '/'
|
||||
path: '/'
|
||||
fullPath: '/'
|
||||
preLoaderRoute: typeof IndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/demo/tanstack-query': {
|
||||
id: '/demo/tanstack-query'
|
||||
path: '/demo/tanstack-query'
|
||||
fullPath: '/demo/tanstack-query'
|
||||
preLoaderRoute: typeof DemoTanstackQueryRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/demo/form/simple': {
|
||||
id: '/demo/form/simple'
|
||||
path: '/demo/form/simple'
|
||||
fullPath: '/demo/form/simple'
|
||||
preLoaderRoute: typeof DemoFormSimpleRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/demo/form/address': {
|
||||
id: '/demo/form/address'
|
||||
path: '/demo/form/address'
|
||||
fullPath: '/demo/form/address'
|
||||
preLoaderRoute: typeof DemoFormAddressRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
DemoTanstackQueryRoute: DemoTanstackQueryRoute,
|
||||
DemoFormAddressRoute: DemoFormAddressRoute,
|
||||
DemoFormSimpleRoute: DemoFormSimpleRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
@@ -2,7 +2,7 @@ import { createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
import { useAppForm } from '../hooks/demo.form'
|
||||
|
||||
export const Route = createFileRoute('/demo/form')({
|
||||
export const Route = createFileRoute('/demo/form/address')({
|
||||
component: AddressForm,
|
||||
})
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { z } from 'zod'
|
||||
|
||||
import { useAppForm } from '../hooks/demo.form'
|
||||
|
||||
export const Route = createFileRoute('/demo/form')({
|
||||
export const Route = createFileRoute('/demo/form/simple')({
|
||||
component: SimpleForm,
|
||||
})
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import logo from '../logo.svg'
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import logo from "../logo.svg";
|
||||
|
||||
export const Route = createFileRoute('/')({
|
||||
export const Route = createFileRoute("/")({
|
||||
component: App,
|
||||
})
|
||||
});
|
||||
|
||||
function App() {
|
||||
return (
|
||||
@@ -35,5 +35,5 @@ function App() {
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user