1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-01 16:37:39 +01:00

Compare commits

..

No commits in common. "7495d5140892f1ca7581c592f6c1314a0c437fcc" and "b7d854c6782aced7360e6eb04504705c4b2589da" have entirely different histories.

4 changed files with 300 additions and 282 deletions

View file

@ -46,7 +46,7 @@
"detect-browser": "^5.3.0", "detect-browser": "^5.3.0",
"dompurify": "^3.1.6", "dompurify": "^3.1.6",
"flag-icons": "^7.2.3", "flag-icons": "^7.2.3",
"focus-trap-react": "^10.3.0", "focus-trap-react": "^10.2.3",
"fscreen": "^1.2.0", "fscreen": "^1.2.0",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"hls.js": "^1.5.15", "hls.js": "^1.5.15",
@ -58,7 +58,7 @@
"million": "^2.6.4", "million": "^2.6.4",
"nanoid": "^5.0.7", "nanoid": "^5.0.7",
"node-forge": "^1.3.1", "node-forge": "^1.3.1",
"ofetch": "^1.4.0", "ofetch": "^1.3.4",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-ga4": "^2.1.0", "react-ga4": "^2.1.0",
@ -78,7 +78,7 @@
"@babel/core": "^7.25.2", "@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4", "@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7", "@babel/preset-typescript": "^7.24.7",
"@rollup/wasm-node": "^4.22.4", "@rollup/wasm-node": "^4.21.2",
"@types/chromecast-caf-sender": "^1.0.10", "@types/chromecast-caf-sender": "^1.0.10",
"@types/crypto-js": "^4.2.2", "@types/crypto-js": "^4.2.2",
"@types/dompurify": "^3.0.5", "@types/dompurify": "^3.0.5",
@ -88,7 +88,7 @@
"@types/lodash.throttle": "^4.1.9", "@types/lodash.throttle": "^4.1.9",
"@types/node": "^20.16.5", "@types/node": "^20.16.5",
"@types/pako": "^2.0.3", "@types/pako": "^2.0.3",
"@types/react": "^18.3.8", "@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",
"@types/react-helmet": "^6.1.11", "@types/react-helmet": "^6.1.11",
"@types/react-lazy-load-image-component": "^1.6.4", "@types/react-lazy-load-image-component": "^1.6.4",
@ -102,7 +102,7 @@
"@vitejs/plugin-react": "^4.3.1", "@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"eslint": "^8.57.1", "eslint": "^8.57.0",
"eslint-config-airbnb": "19.0.4", "eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3", "eslint-import-resolver-typescript": "^3.6.3",
@ -114,18 +114,18 @@
"glob": "^10.4.5", "glob": "^10.4.5",
"handlebars": "^4.7.8", "handlebars": "^4.7.8",
"jsdom": "^23.2.0", "jsdom": "^23.2.0",
"postcss": "^8.4.47", "postcss": "^8.4.45",
"postcss-rtl": "^2.0.0", "postcss-rtl": "^2.0.0",
"postcss-rtlcss": "^4.0.9", "postcss-rtlcss": "^4.0.9",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.14", "prettier-plugin-tailwindcss": "^0.5.14",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"tailwind-scrollbar": "^3.1.0", "tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.12", "tailwindcss": "^3.4.10",
"tailwindcss-themer": "^4.0.0", "tailwindcss-themer": "^4.0.0",
"type-fest": "^4.26.1", "type-fest": "^4.26.1",
"typescript": "^5.6.2", "typescript": "^5.6.2",
"vite": "^5.4.7", "vite": "^5.4.3",
"vite-plugin-checker": "^0.6.4", "vite-plugin-checker": "^0.6.4",
"vite-plugin-package-version": "^1.1.0", "vite-plugin-package-version": "^1.1.0",
"vite-plugin-pwa": "^0.17.5", "vite-plugin-pwa": "^0.17.5",

File diff suppressed because it is too large Load diff

View file

@ -69,12 +69,7 @@ export async function singularProxiedFetch<T>(
onResponse(context) { onResponse(context) {
const tokenHeader = context.response.headers.get("X-Token"); const tokenHeader = context.response.headers.get("X-Token");
if (tokenHeader) setApiToken(tokenHeader); if (tokenHeader) setApiToken(tokenHeader);
if (Array.isArray(ops.onResponse)) {
ops.onResponse.forEach((hook) => hook(context));
} else {
ops.onResponse?.(context); ops.onResponse?.(context);
}
}, },
}); });
} }

View file

@ -122,8 +122,9 @@ export default defineConfig(({ mode }) => {
build: { build: {
sourcemap: true, sourcemap: true,
chunkSizeWarningLimit: 1600,
rollupOptions: { rollupOptions: {
output: {}, output: {
manualChunks(id: string) { manualChunks(id: string) {
if (id.includes("@sozialhelden+ietf-language-tags") || id.includes("country-language")) { if (id.includes("@sozialhelden+ietf-language-tags") || id.includes("country-language")) {
return "language-db"; return "language-db";
@ -149,6 +150,7 @@ export default defineConfig(({ mode }) => {
} }
} }
} }
}
}, },
css: { css: {
postcss: { postcss: {