i18n Support and Task improvements (#80)

* fix: release workflow

* feat: move mostly to internal tasks system

* feat: migrate object clean to new task system

* fix: release not  getting good base version

* chore: set version v0.3.0

* chore: style

* feat: basic task concurrency

* feat: temp pages to fill in page links

* feat: inital i18n support

* feat: localize store page

* chore: style

* fix: weblate doesn't like multifile thing

* fix: update nuxt

* feat: improved error logging

* fix: using old task api

* feat: basic translation docs

* feat: add i18n eslint plugin

* feat: translate store and auth pages

* feat: more translation progress

* feat: admin dash i18n progress

* feat: enable update check by default in prod

* fix: using wrong i18n keys

* fix: crash in library sources page

* feat: finish i18n work

* fix: missing i18n translations

* feat: use twemoji for emojis

* feat: sanatize object ids

* fix: EmojiText's alt text

* fix: UserWidget not using links

* feat: cache and auth for emoji api

* fix: add more missing translations
This commit is contained in:
Husky
2025-06-04 19:53:30 -04:00
committed by GitHub
parent c7fab132ab
commit 681efe95af
86 changed files with 5175 additions and 2816 deletions

View File

@ -1,18 +1,20 @@
// get a specific screenshot
import aclManager from "~/server/internal/acls";
import screenshotManager from "~/server/internal/screenshots";
import sanitize from "sanitize-filename";
export default defineEventHandler(async (h3) => {
const userId = await aclManager.getUserIdACL(h3, ["screenshots:delete"]);
if (!userId) throw createError({ statusCode: 403 });
const screenshotId = getRouterParam(h3, "id");
if (!screenshotId)
const unsafeId = getRouterParam(h3, "id");
if (!unsafeId)
throw createError({
statusCode: 400,
statusMessage: "Missing screenshot ID",
});
const screenshotId = sanitize(unsafeId);
const result = await screenshotManager.get(screenshotId);
if (!result)
throw createError({

View File

@ -1,19 +1,20 @@
// get a specific screenshot
import aclManager from "~/server/internal/acls";
import screenshotManager from "~/server/internal/screenshots";
import sanitize from "sanitize-filename";
export default defineEventHandler(async (h3) => {
const userId = await aclManager.getUserIdACL(h3, ["screenshots:read"]);
if (!userId) throw createError({ statusCode: 403 });
const screenshotId = getRouterParam(h3, "id");
if (!screenshotId)
const unsafeId = getRouterParam(h3, "id");
if (!unsafeId)
throw createError({
statusCode: 400,
statusMessage: "Missing screenshot ID",
});
const result = await screenshotManager.get(screenshotId);
const result = await screenshotManager.get(sanitize(unsafeId));
if (!result)
throw createError({
statusCode: 404,