From 34aeebd62e9e74f6c266834ed1dcfd755a2d77a4 Mon Sep 17 00:00:00 2001 From: Runar Ingebrigtsen Date: Fri, 6 Feb 2026 01:50:48 +0100 Subject: [PATCH] cleaner look --- package.json | 2 +- src/App.vue | 27 ++++++--------------------- src/style.css | 21 ++++++++++++++++----- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 9b93e5f..d18d171 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "preview": "vite preview", "presync": "npm run build", "sync": "npx cap sync", - "android": "npx cap run android", + "android": "npm run build && npx cap sync android", "ios": "npx cap run ios" }, "dependencies": { diff --git a/src/App.vue b/src/App.vue index 366bb76..6b9d692 100644 --- a/src/App.vue +++ b/src/App.vue @@ -90,23 +90,6 @@ const filteredEntries = computed(() => { }) }) -const completionByLanguage = computed(() => { - const totals: Record = {} - const counts: Record = {} - languages.forEach((lang) => { - totals[lang.code] = entries.value.length - counts[lang.code] = entries.value.filter((entry) => !!entry[lang.code]).length - }) - return (code: Language['code']) => { - const total = totals[code] || 0 - const count = counts[code] || 0 - if (!total) { - return 0 - } - return Math.round((count / total) * 100) - } -}) - const hasMissingTranslations = (entry: Entry) => { return languages.some((lang) => !entry[lang.code]) } @@ -196,9 +179,13 @@ onBeforeUnmount(() => {
Sanasto - Wiki + Kristillisyyden sanasto +
+ -
@@ -327,14 +314,12 @@ onBeforeUnmount(() => { {{ languages.find((lang) => lang.code === preferredLanguage)?.name || 'Primary' }} {{ preferredLanguage.toUpperCase() }}
-
Category / Status
{{ language.name }} {{ language.code.toUpperCase() }}
-
{{ completionByLanguage(language.code) }}% complete
diff --git a/src/style.css b/src/style.css index 0a78bee..8d5634a 100644 --- a/src/style.css +++ b/src/style.css @@ -307,6 +307,22 @@ body { color: var(--slate-600); } +.link-button { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 8px 14px; + border-radius: 12px; + border: 1px solid var(--slate-200); + background: #ffffff; + color: var(--indigo-600); + font-size: 12px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.08em; + text-decoration: none; +} + .stats-row { display: flex; align-items: center; @@ -478,11 +494,6 @@ body { color: #94a3b8; } -.th-sub.completion { - color: var(--emerald-600); - font-weight: 700; -} - .entry-title { font-weight: 700; color: var(--slate-900);