Rearchitecture for v0.4.0 (#197)

* feat: database redist support

* feat: rearchitecture of database schemas, migration reset, and #180

* feat: import redists

* fix: giantbomb logging bug

* feat: partial user platform support + statusMessage -> message

* feat: add user platform filters to store view

* fix: sanitize svg uploads

... copilot suggested this

I feel dirty.

* feat: beginnings of platform & redist management

* feat: add server side redist patching

* fix: update drop-base commit

* feat: import of custom platforms & file extensions

* fix: redelete platform

* fix: remove platform

* feat: uninstall commands, new R UI

* checkpoint: before migrating to nuxt v4

* update to nuxt 4

* fix: fixes for Nuxt v4 update

* fix: remaining type issues

* feat: initial feedback to import other kinds of versions

* working commit

* fix: lint

* feat: redist import
This commit is contained in:
DecDuck
2025-11-10 10:36:13 +11:00
committed by GitHub
parent dfa30c8a65
commit 251ddb8ff8
465 changed files with 8029 additions and 7509 deletions

View File

@ -18,6 +18,7 @@ const twemojiJson = module.findPackageJSON(
if (!twemojiJson) {
throw new Error("Could not find @discordapp/twemoji package.");
}
const svgSrcDir = path.join(path.dirname(twemojiJson), "dist", "svg");
// get drop version
const dropVersion = getDropVersion();
@ -74,14 +75,13 @@ export default defineNuxtConfig({
vite: {
plugins: [
// eslint-disable-next-line @typescript-eslint/no-explicit-any
tailwindcss() as any,
tailwindcss(),
// only used in dev server, not build because nitro sucks
// see build hook below
viteStaticCopy({
targets: [
{
src: "node_modules/@discordapp/twemoji/dist/svg/*",
src: `${svgSrcDir}/*`,
dest: "twemoji",
},
],
@ -96,7 +96,7 @@ export default defineNuxtConfig({
// https://github.com/nuxt/nuxt/issues/18918#issuecomment-1925774964
// copy emojis to .output/public/twemoji
const targetDir = path.join(nitro.options.output.publicDir, "twemoji");
cpSync(path.join(path.dirname(twemojiJson), "dist", "svg"), targetDir, {
cpSync(svgSrcDir, targetDir, {
recursive: true,
});
},
@ -159,13 +159,16 @@ export default defineNuxtConfig({
},
typescript: {
typeCheck: true,
//typeCheck: true,
tsConfig: {
compilerOptions: {
// Not having these options on is sloppy, but it's a task for later me
verbatimModuleSyntax: false,
strictNullChecks: true,
exactOptionalPropertyTypes: true,
exactOptionalPropertyTypes: false,
//erasableSyntaxOnly: true,
noUncheckedIndexedAccess: false,
},
},
},
@ -243,6 +246,9 @@ export default defineNuxtConfig({
file: "zh_tw.json",
},
],
bundle: {
optimizeTranslationDirective: false,
},
},
security: {
@ -253,6 +259,7 @@ export default defineNuxtConfig({
"img-src": [
"'self'",
"data:",
"blob:",
"https://www.giantbomb.com",
"https://images.pcgamingwiki.com",
"https://images.igdb.com",