-
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
salim laimeche
committed
Jul 27, 2024
1 parent
88ed0b6
commit f5ec3a2
Showing
71 changed files
with
353 additions
and
229 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
This file was deleted.
Oops, something went wrong.
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,23 +1,19 @@ | ||
import History from "@/components/History"; | ||
import { verifySession } from "../lib/identity/session-local"; | ||
import { UserView } from "../lib/identity/definition"; | ||
import History from "@/components/History" | ||
import { verifySession } from "../../lib/identity/session-local" | ||
import { UserView } from "../../lib/identity/definition" | ||
|
||
async function PageHistory (){ | ||
const session = await verifySession() | ||
async function PageHistory() { | ||
const session = await verifySession() | ||
|
||
const user : UserView = { | ||
id: session?.userId as string, | ||
name: session?.name as string, | ||
surname: session?.surname as string, | ||
chatid : session?.chatid as string, | ||
container : session?.container as string | ||
} | ||
|
||
return( | ||
<History | ||
user={user} | ||
/> | ||
) | ||
const user: UserView = { | ||
id: session?.userId as string, | ||
name: session?.name as string, | ||
surname: session?.surname as string, | ||
chatid: session?.chatid as string, | ||
container: session?.container as string, | ||
} | ||
|
||
return <History user={user} /> | ||
} | ||
|
||
export default PageHistory | ||
export default PageHistory |
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
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,25 +1,19 @@ | ||
"use server" | ||
|
||
import { UserView } from "@/app/lib/identity/definition" | ||
import { verifySession } from "@/app/lib/identity/session-local" | ||
import { UserView } from "@/lib/identity/definition" | ||
import { verifySession } from "@/lib/identity/session-local" | ||
import ParamTelegram from "@/components/ParamTelegram" | ||
|
||
export default async function Page() { | ||
const session = await verifySession() | ||
|
||
const session = await verifySession() | ||
|
||
const user: UserView = { | ||
id: session?.userId as string, | ||
name: session?.name as string, | ||
surname: session?.surname as string, | ||
chatid: session.chatid && session?.chatid as string, | ||
container: session?.container as string | ||
} | ||
const user: UserView = { | ||
id: session?.userId as string, | ||
name: session?.name as string, | ||
surname: session?.surname as string, | ||
chatid: session.chatid && (session?.chatid as string), | ||
container: session?.container as string, | ||
} | ||
|
||
|
||
return ( | ||
<ParamTelegram | ||
user={user} | ||
/> | ||
) | ||
} | ||
return <ParamTelegram user={user} /> | ||
} |
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
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
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,16 +1,15 @@ | ||
"use client" | ||
|
||
import { logout } from "@/app/lib/identity/auth" | ||
import { logout } from "@/lib/identity/auth" | ||
import { Button } from "./ui/button" | ||
|
||
export default function LogoutButton() { | ||
return ( | ||
<Button | ||
onClick={async() => { | ||
await logout() | ||
}} | ||
> | ||
Se déconnecter | ||
</Button> | ||
) | ||
} | ||
return ( | ||
<Button | ||
onClick={async () => { | ||
await logout() | ||
}}> | ||
Se déconnecter | ||
</Button> | ||
) | ||
} |
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.