Various bug fixes (#102)

* feat: set lang in html head

* fix: add # in front of git ref

* fix: remove unused vars from example env

* fix: package name and license field

* fix: enable sourcemap for client and server

* fix: emojis not showing in prod

this is extremely cursed, but it works

* chore: refactor auth manager

* feat: disable invitations if simple auth disabled

* feat: add drop version to footer

* feat: translate auth endpoints

* chore: move oidc module

* feat: add weekly tasks

enabled object cleanup as weekly task

* feat: add timestamp to task log msgs

* feat: add guard to prevent invalid progress %

* fix: add missing global scope to i18n components

* feat: set base url for i18n

* feat: switch task log to json format

* ci: run ci on develop branch only

* fix: UserWidget text not updating #109

* fix: EXTERNAL_URL being computed at build

* feat: add basic language outlines for translation

* feat: add more english dialects
This commit is contained in:
Husky
2025-06-07 23:49:43 -04:00
committed by GitHub
parent 9f5a3b3976
commit 72ae7a2884
43 changed files with 577 additions and 229 deletions

View File

@@ -170,36 +170,36 @@ import { useCurrentNavigationIndex } from "~/composables/current-page-engine";
import { ArrowLeftIcon } from "@heroicons/vue/16/solid";
import { XMarkIcon } from "@heroicons/vue/24/solid";
const { t } = useI18n();
const i18nHead = useLocaleHead();
const navigation: Array<NavigationItem & { icon: Component }> = [
{ label: t("home"), route: "/admin", prefix: "/admin", icon: HomeIcon },
{ label: $t("home"), route: "/admin", prefix: "/admin", icon: HomeIcon },
{
label: t("userHeader.links.library"),
label: $t("userHeader.links.library"),
route: "/admin/library",
prefix: "/admin/library",
icon: ServerStackIcon,
},
{
label: t("header.admin.users"),
label: $t("header.admin.users"),
route: "/admin/users",
prefix: "/admin/users",
icon: UserGroupIcon,
},
{
label: t("header.admin.tasks"),
label: $t("header.admin.tasks"),
route: "/admin/task",
prefix: "/admin/task",
icon: RectangleStackIcon,
},
{
label: t("settings"),
label: $t("settings"),
route: "/admin/settings",
prefix: "/admin/settings",
icon: Cog6ToothIcon,
},
{
label: t("header.back"),
label: $t("header.back"),
route: "/store",
prefix: ".",
icon: ArrowLeftIcon,
@@ -221,11 +221,12 @@ router.afterEach(() => {
useHead({
htmlAttrs: {
lang: "en",
lang: i18nHead.value.htmlAttrs.lang,
// @ts-expect-error head.value.htmlAttrs.dir is not typed as strictly as it should be
dir: i18nHead.value.htmlAttrs.dir,
},
link: [],
titleTemplate(title) {
return title ? t("adminTitleTemplate", [title]) : t("adminTitle");
return title ? $t("adminTitleTemplate", [title]) : $t("adminTitle");
},
});
</script>

View File

@@ -13,15 +13,20 @@
<script setup lang="ts">
const route = useRoute();
const i18nHead = useLocaleHead();
const noWrapper = !!route.query.noWrapper;
const { t } = useI18n();
useHead({
htmlAttrs: {
lang: "en",
lang: i18nHead.value.htmlAttrs.lang,
// @ts-expect-error head.value.htmlAttrs.dir is not typed as strictly as it should be
dir: i18nHead.value.htmlAttrs.dir,
},
link: [],
// // seo headers
// link: [...i18nHead.value.link],
// meta: [...i18nHead.value.meta],
titleTemplate(title) {
return title ? t("titleTemplate", [title]) : t("title");
},