Emdash source with visual editor image upload fix

Fixes:
1. media.ts: wrap placeholder generation in try-catch
2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
2026-05-03 10:44:54 +07:00
parent 78f81bebb6
commit 2d1be52177
2352 changed files with 662964 additions and 0 deletions

28
lunaria.config.ts Normal file
View File

@@ -0,0 +1,28 @@
import { defineConfig } from "@lunariajs/core/config";
import { SOURCE_LOCALE, TARGET_LOCALES } from "./packages/admin/src/locales/locales.js";
export default defineConfig({
repository: {
name: "emdash-cms/emdash",
branch: "main",
},
sourceLocale: {
label: SOURCE_LOCALE.label,
lang: SOURCE_LOCALE.code,
},
// Lunaria requires a non-empty tuple; TARGET_LOCALES is authored with 10+ entries.
/* eslint-disable typescript-eslint(no-unsafe-type-assertion) -- non-empty by construction (see packages/admin/src/locales/locales.ts) */
locales: TARGET_LOCALES.map((l) => ({
label: l.label,
lang: l.code,
})) as [{ label: string; lang: string }, ...{ label: string; lang: string }[]],
/* eslint-enable typescript-eslint(no-unsafe-type-assertion) */
files: [
{
include: ["packages/admin/src/locales/en/messages.po"],
pattern: "packages/admin/src/locales/@lang/messages.po",
type: "dictionary",
},
],
});