Changeset 67dfe57
- Timestamp:
- 12/24/25 17:31:11 (7 months ago)
- Branches:
- main
- Children:
- e729b88
- Parents:
- 40ac7a9
- Files:
-
- 3 edited
-
components/Navbar.tsx (modified) (2 diffs)
-
pages/+Layout.telefunc.ts (modified) (1 diff)
-
pages/index/+Page.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/Navbar.tsx
r40ac7a9 r67dfe57 7 7 import Box from "@mui/material/Box"; 8 8 import { styled } from "@mui/material/styles"; 9 import { fetchAuthState } from "../pages/auth/authState.telefunc";10 9 import LogoUrl from '../assets/projectlogo.png'; 10 import {onGetAuthState} from "../pages/+Layout.telefunc"; 11 11 12 12 … … 25 25 useEffect(() => { 26 26 let active = true; 27 fetchAuthState()27 onGetAuthState() 28 28 .then((data) => active && setAuth({ isLoggedIn: data.isLoggedIn, username: data.username })) 29 29 .catch(() => active && setAuth({ isLoggedIn: false, username: null })); -
pages/+Layout.telefunc.ts
r40ac7a9 r67dfe57 4 4 import type {Database} from "../database/drizzle/db"; 5 5 6 export async function AuthenticationState() {6 export async function onGetAuthState() { 7 7 const context = getAuthState(); 8 8 -
pages/index/+Page.tsx
r40ac7a9 r67dfe57 16 16 17 17 import { onGetHighestRankedBuilds, onCloneBuild } from './buildCards.telefunc'; 18 import { onGetApprovedBuilds} from '../+Layout.telefunc';18 import {onGetApprovedBuilds, onGetAuthState} from '../+Layout.telefunc'; 19 19 import {getAuthState} from "../../server/telefunc/ctx"; // 20 20 … … 33 33 authData, highestRankedBuilds, commnityBuilds 34 34 ] = await Promise.all([ 35 getAuthState(),35 onGetAuthState(), 36 36 onGetHighestRankedBuilds({ limit: 3 }), 37 37 onGetApprovedBuilds({ limit: 12 })
Note:
See TracChangeset
for help on using the changeset viewer.
