update deps, change matomo id to integer, change imports for css

This commit is contained in:
2026-10-13 21:42:10 +02:00
parent 24775870e2
commit 6cca16fa25
10 changed files with 909 additions and 1050 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
build-args: |
VITE_API_BASE_URL=https://api.chess-scribe.org/api/v1
VITE_MATOMO_URL=https://analytics.owenrees.eu
VITE_MATOMO_SITE_ID="3"
VITE_MATOMO_SITE_ID=3
VITE_MAINTENANCE_MODE=false
VITE_MAINTENANCE_MODE_MESSAGE="ChessScribe is currently undergoing maintenance. Some features may be unavailable."
+8 -8
View File
@@ -21,11 +21,11 @@
"@fontsource-variable/inter": "^5.2.8",
"@socialgouv/matomo-next": "^1.13.1",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/react-devtools": "latest",
"@tanstack/react-router": "latest",
"@tanstack/react-router-devtools": "latest",
"@tanstack/react-router-ssr-query": "latest",
"@tanstack/react-start": "latest",
"@tanstack/react-devtools": "^0.10.13",
"@tanstack/react-router": "^1.170.44",
"@tanstack/react-router-devtools": "^1.167.2",
"@tanstack/react-router-ssr-query": "^1.167.3",
"@tanstack/react-start": "^1.169.1",
"@tanstack/router-plugin": "^1.132.0",
"@unpic/react": "^1.0.2",
"lichess-pgn-viewer": "^2.4.5",
@@ -40,7 +40,7 @@
"devDependencies": {
"@biomejs/biome": "2.4.5",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/devtools-vite": "latest",
"@tanstack/devtools-vite": "^0.8.5",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.10.2",
@@ -49,7 +49,7 @@
"@vitejs/plugin-react": "^6.0.1",
"jsdom": "^28.1.0",
"typescript": "^6.0.2",
"vite": "^8.0.0",
"vitest": "^4.1.5"
"vite": "^8.3.4",
"vitest": "^5.0.4"
}
}
+845 -997
View File
File diff suppressed because it is too large Load Diff
+15 -1
View File
@@ -6,4 +6,18 @@ packages:
allowBuilds:
"sharp": true
"esbuild": true
"lightningcss": true
"lightningcss": true
minimumReleaseAgeExclude:
- '@tanstack/react-router@1.170.44'
- '@tanstack/react-start-client@1.168.42'
- '@tanstack/react-start-rsc@0.1.62'
- '@tanstack/react-start-server@1.167.49'
- '@tanstack/react-start@1.169.1'
- '@tanstack/router-core@1.171.37'
- '@tanstack/router-generator@1.167.43'
- '@tanstack/router-plugin@1.168.45'
- '@tanstack/start-client-core@1.170.37'
- '@tanstack/start-plugin-core@1.171.52'
- '@tanstack/start-server-core@1.169.42'
- '@tanstack/start-storage-context@1.167.39'
+1
View File
@@ -26,6 +26,7 @@ export function MatomoAnalytics() {
enableHeartBeatTimer: true,
cleanUrl: true,
disableCookies: true,
useProxy: false,
debug: import.meta.env.DEV,
});
}, [location.pathname, searchParams]);
+31 -31
View File
@@ -9,19 +9,14 @@
// 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 ContactRouteImport } from './routes/contact'
import { Route as ChessboardRouteImport } from './routes/chessboard'
import { Route as CallbackRouteImport } from './routes/callback'
import { Route as IndexRouteImport } from './routes/index'
import { Route as CallbackRouteImport } from './routes/callback'
import { Route as ChessboardRouteImport } from './routes/chessboard'
import { Route as ContactRouteImport } from './routes/contact'
const ContactRoute = ContactRouteImport.update({
id: '/contact',
path: '/contact',
getParentRoute: () => rootRouteImport,
} as any)
const ChessboardRoute = ChessboardRouteImport.update({
id: '/chessboard',
path: '/chessboard',
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const CallbackRoute = CallbackRouteImport.update({
@@ -29,9 +24,14 @@ const CallbackRoute = CallbackRouteImport.update({
path: '/callback',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
const ChessboardRoute = ChessboardRouteImport.update({
id: '/chessboard',
path: '/chessboard',
getParentRoute: () => rootRouteImport,
} as any)
const ContactRoute = ContactRouteImport.update({
id: '/contact',
path: '/contact',
getParentRoute: () => rootRouteImport,
} as any)
@@ -71,18 +71,11 @@ export interface RootRouteChildren {
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/contact': {
id: '/contact'
path: '/contact'
fullPath: '/contact'
preLoaderRoute: typeof ContactRouteImport
parentRoute: typeof rootRouteImport
}
'/chessboard': {
id: '/chessboard'
path: '/chessboard'
fullPath: '/chessboard'
preLoaderRoute: typeof ChessboardRouteImport
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/callback': {
@@ -92,11 +85,18 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof CallbackRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
'/chessboard': {
id: '/chessboard'
path: '/chessboard'
fullPath: '/chessboard'
preLoaderRoute: typeof ChessboardRouteImport
parentRoute: typeof rootRouteImport
}
'/contact': {
id: '/contact'
path: '/contact'
fullPath: '/contact'
preLoaderRoute: typeof ContactRouteImport
parentRoute: typeof rootRouteImport
}
}
+2 -6
View File
@@ -10,7 +10,7 @@ import NotFoundView from "#/components/NotFoundView.tsx";
import { LichessUserProvider } from "#/context/LichessUserContext.tsx";
import Footer from "../components/Footer";
import Header from "../components/Header";
import appCss from "../styles.css?url";
import "../styles.css";
export const Route = createRootRoute({
head: () => ({
@@ -35,10 +35,6 @@ export const Route = createRootRoute({
},
],
links: [
{
rel: "stylesheet",
href: appCss,
},
{
rel: "icon",
href: "/favicon.svg",
@@ -89,10 +85,10 @@ function RootDocument({ children }: { children: ReactNode }) {
]}
/>
</LichessUserProvider>
<Scripts />
<Suspense fallback={null}>
<MatomoAnalytics />
</Suspense>
<Scripts />
</body>
</html>
);
+1 -1
View File
@@ -2,7 +2,7 @@ import { createServerFn } from "@tanstack/react-start";
import { env } from "#/env.ts";
export const sendToDiscord = createServerFn({ method: "POST" })
.inputValidator(
.validator(
(data: { name: string; email: string; subject: string; message: string }) =>
data,
)
+4 -4
View File
@@ -41,7 +41,7 @@ export const getSession = createServerFn({ method: "GET" }).handler(
);
export const setSession = createServerFn({ method: "POST" })
.inputValidator(SessionSchema)
.validator(SessionSchema)
.handler(async ({ data }) => {
setCookie("lichess-session", JSON.stringify(data), {
path: "/",
@@ -63,7 +63,7 @@ export const setSession = createServerFn({ method: "POST" })
});
export const getToken = createServerFn({ method: "POST" })
.inputValidator(z.object({ code: z.string() }))
.validator(z.object({ code: z.string() }))
.handler(async ({ data }) => {
const verifier = getCookie("lichess-oauth-verifier");
@@ -94,7 +94,7 @@ export const getToken = createServerFn({ method: "POST" })
});
export const getUser = createServerFn({ method: "POST" })
.inputValidator(z.object({ access_token: z.string() }))
.validator(z.object({ access_token: z.string() }))
.handler(async ({ data }) => {
const response = await fetch("https://lichess.org/api/account", {
headers: {
@@ -187,7 +187,7 @@ export const getUserStudies = createServerFn({ method: "POST" }).handler(
);
export const getStudyChapters = createServerFn({ method: "POST" })
.inputValidator((data: { studyId: string }) => data)
.validator((data: { studyId: string }) => data)
.handler(async ({ data }) => {
const session = await getSession();
+1 -1
View File
@@ -13,7 +13,6 @@ const config = defineConfig({
plugins: [
devtools(),
tailwindcss(),
viteReact(),
tanstackStart({
prerender: {
enabled: true,
@@ -36,6 +35,7 @@ const config = defineConfig({
host: HOST_URL,
},
}),
viteReact(),
nitro({ rollupConfig: { external: [/^@sentry\//] } }),
],
});