-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
707 additions
and
746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
dist | ||
node_modules | ||
.next | ||
build | ||
.contentlayer | ||
gql | ||
storybook-static | ||
storybook-static2 | ||
pnpm-lock.yaml | ||
.storybook | ||
.unlighthouse | ||
.turbo | ||
gql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { Stack } from "@/components/primitives/stack"; | ||
import { Text } from "@/components/typography/text"; | ||
import { FC, PropsWithChildren } from "react"; | ||
import { Stack } from '@/components/primitives/stack' | ||
import { Text } from '@/components/typography/text' | ||
import { FC, PropsWithChildren } from 'react' | ||
|
||
type Props = { | ||
title: string; | ||
} & PropsWithChildren; | ||
title: string | ||
} & PropsWithChildren | ||
|
||
export const BasicList: FC<Props> = (props) => { | ||
return ( | ||
<Stack> | ||
<Text>{props.title}</Text> | ||
<Stack className="max-h-[200px] rounded-lg overflow-scroll p-md border-4"> | ||
{props.children} | ||
</Stack> | ||
<Stack className="max-h-[200px] rounded-lg overflow-scroll p-md border-4">{props.children}</Stack> | ||
</Stack> | ||
); | ||
}; | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import { api } from "@/site/api"; | ||
import { Todo } from "../todo/types"; | ||
import { api } from '@/site/api' | ||
import { Todo } from '../todo/types' | ||
|
||
export type GetTodosResponse = { | ||
todos: Todo[]; | ||
}; | ||
todos: Todo[] | ||
} | ||
|
||
export const getTodos = async ( | ||
consoleMessage?: string, | ||
init?: RequestInit, | ||
): Promise<GetTodosResponse> => { | ||
console.log("fatching todos" + " " + consoleMessage); | ||
const resJSON = await fetch(`${api.route}/todos`, init); | ||
console.log("fatching todos finished" + " " + consoleMessage); | ||
const data = (await resJSON.json()) as GetTodosResponse; | ||
return data; | ||
}; | ||
export const getTodos = async (consoleMessage?: string, init?: RequestInit): Promise<GetTodosResponse> => { | ||
console.log('fatching todos' + ' ' + consoleMessage) | ||
const resJSON = await fetch(`${api.route}/todos`, init) | ||
console.log('fatching todos finished' + ' ' + consoleMessage) | ||
const data = (await resJSON.json()) as GetTodosResponse | ||
return data | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import { api } from "@/site/api"; | ||
import { User } from "../user/types"; | ||
import { api } from '@/site/api' | ||
import { User } from '../user/types' | ||
|
||
export type GetUserResponse = { | ||
users: User[]; | ||
}; | ||
users: User[] | ||
} | ||
|
||
export const getUsers = async ( | ||
consoleMessage?: string, | ||
init?: RequestInit, | ||
): Promise<GetUserResponse> => { | ||
console.log("fatching users" + " " + consoleMessage); | ||
const resJSON = await fetch(`${api.route}/users`, init); | ||
console.log("fatching users finished" + " " + consoleMessage); | ||
const data = (await resJSON.json()) as GetUserResponse; | ||
return data; | ||
}; | ||
export const getUsers = async (consoleMessage?: string, init?: RequestInit): Promise<GetUserResponse> => { | ||
console.log('fatching users' + ' ' + consoleMessage) | ||
const resJSON = await fetch(`${api.route}/users`, init) | ||
console.log('fatching users finished' + ' ' + consoleMessage) | ||
const data = (await resJSON.json()) as GetUserResponse | ||
return data | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
"use client"; | ||
'use client' | ||
|
||
import { cn } from "@/lib/utils"; | ||
import { BibleContentChild } from "@/site/bible-contents"; | ||
import Link from "next/link"; | ||
import { usePathname } from "next/navigation"; | ||
import { FC } from "react"; | ||
import { cn } from '@/lib/utils' | ||
import { BibleContentChild } from '@/site/bible-contents' | ||
import Link from 'next/link' | ||
import { usePathname } from 'next/navigation' | ||
import { FC } from 'react' | ||
|
||
export const BibleChild: FC<BibleContentChild> = (child) => { | ||
const segment = usePathname(); | ||
const isActive = segment?.includes(child.href); | ||
const segment = usePathname() | ||
const isActive = segment?.includes(child.href) | ||
return ( | ||
<Link | ||
href={child.href} | ||
className={cn("text-muted-foreground", isActive && "text-primary")} | ||
> | ||
<Link href={child.href} className={cn('text-muted-foreground', isActive && 'text-primary')}> | ||
{child.title} | ||
</Link> | ||
); | ||
}; | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...bible/app/bible/data-fetching/parrallel-and-sequential/components/sequential-fetching.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { ShowTodosWithUsers } from "@/app/todos/components/show-todos-with-users"; | ||
import { ShowTodosWithUsers } from '@/app/todos/components/show-todos-with-users' | ||
|
||
export const SequentialFetching = () => { | ||
return <ShowTodosWithUsers />; | ||
}; | ||
return <ShowTodosWithUsers /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { Stack } from "@/components/primitives/stack"; | ||
import { Text } from "@/components/typography/text"; | ||
import { FC, PropsWithChildren } from "react"; | ||
import { Stack } from '@/components/primitives/stack' | ||
import { Text } from '@/components/typography/text' | ||
import { FC, PropsWithChildren } from 'react' | ||
|
||
export const BasicLayout: FC<{ title: string } & PropsWithChildren> = ({ | ||
title, | ||
children, | ||
}) => ( | ||
export const BasicLayout: FC<{ title: string } & PropsWithChildren> = ({ title, children }) => ( | ||
<Stack gap="xs" className="border-b py-sm"> | ||
<Text weight='medium'>{title}</Text> | ||
<Text weight="medium">{title}</Text> | ||
{children} | ||
</Stack> | ||
); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
- everything should be exported from index.tsx | ||
|
||
# bad | ||
|
||
<todo. ... /> no cmp | ||
|
||
# module/todo/index.tsx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { Stack } from "@/components/primitives/stack"; | ||
import { Todo, todo } from "@/module/todo"; | ||
import { Stack } from '@/components/primitives/stack' | ||
import { Todo, todo } from '@/module/todo' | ||
|
||
const ProjectStructureModulePage = () => { | ||
const todoProps: Todo = { | ||
todo: "todo 1", | ||
todo: 'todo 1', | ||
id: 0, | ||
userId: 0, | ||
completed: false, | ||
}; | ||
} | ||
return ( | ||
<Stack> | ||
<todo.components.TodoCard {...todoProps} /> | ||
<todo.components.FetchTodos /> | ||
{/* <todo.components.LargeImage /> */} | ||
</Stack> | ||
); | ||
}; | ||
) | ||
} | ||
|
||
export default ProjectStructureModulePage; | ||
export default ProjectStructureModulePage |
6 changes: 3 additions & 3 deletions
6
apps/bible/app/bible/routing/intercepting-routes/@modal/(...)todo/[id]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const TodoModalPage = () => { | ||
<div>task by id page modal</div>; | ||
}; | ||
;<div>task by id page modal</div> | ||
} | ||
|
||
export default TodoModalPage; | ||
export default TodoModalPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const InterceptingRoutes = () => { | ||
return <div>hi</div>; | ||
}; | ||
return <div>hi</div> | ||
} | ||
|
||
export default InterceptingRoutes; | ||
export default InterceptingRoutes |
8 changes: 4 additions & 4 deletions
8
apps/bible/app/bible/routing/nested-dynamic-routes/bridge/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/bible/app/bible/routing/nested-dynamic-routes/error-bk.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.