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