File tree Expand file tree Collapse file tree 6 files changed +6
-11
lines changed
examples/solid/start-basic-auth Expand file tree Collapse file tree 6 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1- import type { JSX } from " solid-js"
1+ import type { JSX } from ' solid-js'
22
33export function Auth ( {
44 actionText,
@@ -16,7 +16,7 @@ export function Auth({
1616 < div class = "bg-white dark:bg-gray-900 p-8 rounded-lg shadow-lg" >
1717 < h1 class = "text-2xl font-bold mb-4" > { actionText } </ h1 >
1818 < form
19- onSubmit = { ( e :any ) => {
19+ onSubmit = { ( e : any ) => {
2020 e . preventDefault ( )
2121 onSubmit ( e )
2222 } }
Original file line number Diff line number Diff line change 99import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools'
1010import { createServerFn } from '@tanstack/solid-start'
1111
12- import { HydrationScript } from 'solid-js/web' ;
13- import type { JSX } from 'solid-js' ;
12+ import { HydrationScript } from 'solid-js/web'
13+ import type { JSX } from 'solid-js'
1414
1515import { DefaultCatchBoundary } from '~/components/DefaultCatchBoundary.js'
1616import { NotFound } from '~/components/NotFound.js'
@@ -42,7 +42,7 @@ export const Route = createRootRoute({
4242 head : ( ) => ( {
4343 meta : [
4444 {
45- " charset" : 'utf-8' ,
45+ charset : 'utf-8' ,
4646 } ,
4747 {
4848 name : 'viewport' ,
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ export const Route = createFileRoute('/_authed/posts/$postId')({
1717 } ,
1818} )
1919
20-
21-
2220function PostComponent ( ) {
2321 const post = Route . useLoaderData ( )
2422
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ function PostsIndexComponent() {
77export const Route = createFileRoute ( '/_authed/posts/' ) ( {
88 component : PostsIndexComponent ,
99} )
10-
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ function PostsComponent() {
3333 )
3434}
3535
36-
3736export const Route = createFileRoute ( '/_authed/posts' ) ( {
3837 loader : ( ) => fetchPosts ( ) ,
3938 component : PostsComponent ,
4039} )
41-
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ export default defineConfig({
99 projects : [ './tsconfig.json' ] ,
1010 } ) ,
1111 tanstackStart ( ) ,
12- viteSolid ( { ssr : true } ) ,
12+ viteSolid ( { ssr : true } ) ,
1313 ] ,
1414} )
You can’t perform that action at this time.
0 commit comments