From de86791e2a136e642ed71888574c85c7bb13193f Mon Sep 17 00:00:00 2001 From: Benjamin Singleton <19498453+tetrogem@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:31:11 -0600 Subject: [PATCH] refactor: updated locale structure, moved layout info from locales to vue component files --- apps/vdn-static/eslint.config.js | 6 ++ apps/vdn-static/package.json | 2 +- apps/vdn-static/src/App.vue | 53 ++++++++--- .../molecules/LearningResourceWrapper.vue | 87 +++++++++++-------- .../src/components/organisms/SmartLink.vue | 45 +++++++--- apps/vdn-static/src/i18n/index.ts | 57 +++++++----- apps/vdn-static/src/i18n/locale.ts | 68 ++++++++------- apps/vdn-static/src/locales/en_US.ts | 59 +++++-------- apps/vdn-static/src/locales/vp_VL.ts | 19 ++-- apps/vdn-static/src/locales/wp_VL.ts | 66 ++++++-------- apps/vdn-static/src/pages/discord/rules.vue | 1 + apps/vdn-static/src/pages/index.vue | 19 +++- apps/vdn-static/src/pages/resources.vue | 58 ++++++++++--- apps/vdn-static/src/typed-router.d.ts | 1 + apps/vdn-static/src/utils/css.ts | 1 + apps/vdn-static/src/utils/deep-partial.ts | 3 - apps/vdn-static/src/utils/ignore.ts | 2 + apps/vdn-static/src/utils/localizeLayout.ts | 16 ---- apps/vdn-static/src/utils/smart-dest.ts | 8 ++ apps/vdn-static/src/utils/types.ts | 6 ++ apps/vdn-static/tsconfig.json | 8 +- pnpm-lock.yaml | 2 +- 22 files changed, 354 insertions(+), 233 deletions(-) create mode 100644 apps/vdn-static/src/pages/discord/rules.vue create mode 100644 apps/vdn-static/src/utils/css.ts delete mode 100644 apps/vdn-static/src/utils/deep-partial.ts create mode 100644 apps/vdn-static/src/utils/ignore.ts delete mode 100644 apps/vdn-static/src/utils/localizeLayout.ts create mode 100644 apps/vdn-static/src/utils/smart-dest.ts create mode 100644 apps/vdn-static/src/utils/types.ts diff --git a/apps/vdn-static/eslint.config.js b/apps/vdn-static/eslint.config.js index 8d578f9..a65c215 100644 --- a/apps/vdn-static/eslint.config.js +++ b/apps/vdn-static/eslint.config.js @@ -34,6 +34,12 @@ export default defineConfig([ message: "Use SmartLink instead of RouterLink.", }, ], + // allow interfaces to only extend another interface without adding properties + // good for aliasing more complex types + "@typescript-eslint/no-empty-object-type": [ + "error", + { allowInterfaces: "with-single-extends" }, + ], }, }, // disable multi-word-component-names for unplugin-vue-router diff --git a/apps/vdn-static/package.json b/apps/vdn-static/package.json index dce6538..8d18ad0 100644 --- a/apps/vdn-static/package.json +++ b/apps/vdn-static/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tailwindcss/vite": "^4.1.6", - "@types/node": "^22.15.17", + "@types/node": "^22.15.31", "@vueuse/components": "^13.3.0", "@vueuse/core": "^13.3.0", "arktype": "^2.1.29", diff --git a/apps/vdn-static/src/App.vue b/apps/vdn-static/src/App.vue index 28bdd82..e86c762 100644 --- a/apps/vdn-static/src/App.vue +++ b/apps/vdn-static/src/App.vue @@ -1,11 +1,13 @@