@jant/core 0.3.46 → 0.3.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/db/execute-file.js +12 -4
- package/bin/commands/db/rehearse.js +2 -2
- package/bin/commands/export.js +12 -4
- package/bin/commands/import-site.js +60 -267
- package/bin/commands/migrate.js +36 -69
- package/bin/commands/reset-password.js +10 -4
- package/bin/commands/site/export.js +59 -248
- package/bin/commands/site/snapshot/export.js +58 -45
- package/bin/commands/site/snapshot/import.js +104 -52
- package/bin/lib/node-env.js +100 -0
- package/bin/lib/runtime-target.js +64 -0
- package/bin/lib/site-snapshot.js +185 -54
- package/bin/lib/sql-export.js +19 -2
- package/dist/app-DU7dpJID.js +6 -0
- package/dist/{app-DB-P66E5.js → app-DdnIoX7y.js} +333 -191
- package/dist/client/.vite/manifest.json +2 -2
- package/dist/client/_assets/client-BoUn7xBo.css +2 -0
- package/dist/client/_assets/{client-auth-BLCUje4M.js → client-auth-Ce5WEAVS.js} +102 -49
- package/dist/{github-sync-CQ1x271f.js → export-ZBlfKSKm.js} +12 -439
- package/dist/github-sync-C593r22F.js +4 -0
- package/dist/github-sync-bL1hnx3Q.js +428 -0
- package/dist/index.js +3 -2
- package/dist/node.js +5 -4
- package/package.json +3 -2
- package/src/__tests__/helpers/export-fixtures.ts +0 -1
- package/src/client/components/__tests__/jant-settings-avatar.test.ts +2 -0
- package/src/client/components/__tests__/jant-settings-general.test.ts +70 -0
- package/src/client/components/jant-settings-general.ts +164 -22
- package/src/client/components/settings-types.ts +4 -6
- package/src/client-auth.ts +1 -1
- package/src/db/__tests__/demo-canonical-snapshot.test.ts +1 -1
- package/src/db/__tests__/migration-rehearsal.test.ts +2 -5
- package/src/db/backfills/0004_register_apple_touch_media_rows.sql +65 -0
- package/src/db/migrations/0021_thankful_phalanx.sql +16 -0
- package/src/db/migrations/meta/0021_snapshot.json +2121 -0
- package/src/db/migrations/meta/_journal.json +7 -0
- package/src/db/migrations/pg/0019_gray_natasha_romanoff.sql +20 -0
- package/src/db/migrations/pg/meta/0019_snapshot.json +2718 -0
- package/src/db/migrations/pg/meta/_journal.json +7 -0
- package/src/db/pg/schema.ts +21 -26
- package/src/db/rehearsal-fixtures/demo-current.json +1 -1
- package/src/db/schema.ts +16 -20
- package/src/i18n/__tests__/middleware.test.ts +43 -1
- package/src/i18n/coverage.generated.ts +17 -0
- package/src/i18n/i18n.ts +18 -2
- package/src/i18n/index.ts +3 -0
- package/src/i18n/locales/settings/en.po +16 -11
- package/src/i18n/locales/settings/en.ts +1 -1
- package/src/i18n/locales/settings/zh-Hans.po +17 -12
- package/src/i18n/locales/settings/zh-Hans.ts +1 -1
- package/src/i18n/locales/settings/zh-Hant.po +16 -11
- package/src/i18n/locales/settings/zh-Hant.ts +1 -1
- package/src/i18n/locales.ts +84 -2
- package/src/i18n/middleware.ts +25 -16
- package/src/i18n/supported-locales.ts +153 -0
- package/src/lib/__tests__/csp-builder.test.ts +19 -2
- package/src/lib/__tests__/feed.test.ts +242 -1
- package/src/lib/__tests__/post-meta.test.ts +0 -1
- package/src/lib/__tests__/view.test.ts +0 -1
- package/src/lib/api-posts.ts +9 -7
- package/src/lib/csp-builder.ts +28 -10
- package/src/lib/feed.ts +153 -3
- package/src/middleware/__tests__/secure-headers.test.ts +89 -0
- package/src/middleware/auth.ts +1 -1
- package/src/middleware/secure-headers.ts +47 -1
- package/src/node/__tests__/cli-runtime-target.test.ts +110 -2
- package/src/node/__tests__/cli-site-snapshot.test.ts +308 -13
- package/src/node/__tests__/cli-site-token-env.test.ts +2 -7
- package/src/node/__tests__/cli-snapshot-meta.test.ts +85 -0
- package/src/node/__tests__/cli-sql-export.test.ts +49 -0
- package/src/node/index.ts +1 -0
- package/src/preset.css +8 -2
- package/src/routes/api/__tests__/settings.test.ts +3 -2
- package/src/routes/api/github-sync.tsx +1 -1
- package/src/routes/api/settings.ts +4 -1
- package/src/routes/auth/signin.tsx +6 -0
- package/src/routes/pages/archive.tsx +4 -2
- package/src/services/__tests__/post.test.ts +19 -19
- package/src/services/__tests__/search.test.ts +0 -1
- package/src/services/__tests__/settings.test.ts +22 -3
- package/src/services/bootstrap.ts +7 -3
- package/src/services/collection.ts +3 -3
- package/src/services/export.ts +0 -3
- package/src/services/navigation.ts +0 -2
- package/src/services/path.ts +1 -38
- package/src/services/post.ts +32 -66
- package/src/services/search.ts +0 -6
- package/src/services/settings.ts +47 -6
- package/src/services/site-admin.ts +6 -1
- package/src/styles/ui.css +14 -25
- package/src/types/entities.ts +0 -1
- package/src/ui/color-themes.ts +1 -1
- package/src/ui/dash/settings/GeneralContent.tsx +17 -19
- package/src/ui/dash/settings/SettingsRootContent.tsx +17 -28
- package/src/ui/feed/NoteCard.tsx +1 -11
- package/src/ui/feed/__tests__/timeline-cards.test.ts +1 -1
- package/src/ui/pages/PostPage.tsx +2 -0
- package/bin/commands/collections.js +0 -268
- package/bin/commands/media.js +0 -302
- package/bin/commands/posts.js +0 -262
- package/bin/commands/search.js +0 -53
- package/bin/commands/settings.js +0 -93
- package/bin/lib/http-api.js +0 -223
- package/bin/lib/media-upload.js +0 -206
- package/dist/app-CM7sb3xO.js +0 -5
- package/dist/client/_assets/client-DDs6NzB3.css +0 -2
- package/src/__tests__/bin/content-cli.test.ts +0 -179
- package/src/__tests__/bin/media-cli.test.ts +0 -192
- /package/dist/{github-api-BkRWnqMx.js → github-api-Bh0PH3zr.js} +0 -0
- /package/dist/{github-app-WeadXMb8.js → github-app-D0GvNnqp.js} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as getSitePathPrefix, c as normalizePath, d as sanitizeUrl, f as slugify, g as toPublicPath, h as toPublicHref, i as getSiteOrigin, m as toAbsoluteSiteUrl, n as extractDisplayDomain, o as isFullUrl, p as stripSitePathPrefix, r as extractDomain, s as isSafeInternalRedirect, t as buildSiteUrl, u as normalizeSiteUrl, v as __exportAll } from "./url-umUptr5z.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as JANT_POSITIVE_LOGO_PNG_FILENAME, B as getJantLogoHref, C as formatYearMonth, D as HOME_BRANDING_LINK_LABEL, E as toISOString, F as getJantBundledAsset, G as base64ToUint8Array, H as JANT_LOGO_PATH_DATA, I as getJantIconFilename, L as getJantIconHref, M as getDefaultJantAppleTouchIconBytes, N as getDefaultJantFaviconIcoBytes, O as HOME_BRANDING_PREFIX, P as getJantBrandPackHref, R as getJantLogoFilename, S as formatTime, U as JANT_LOGO_VIEW_BOX, V as getJantPositiveLogoPngHref, W as arrayBufferToBase64, _ as getMediaUrl, b as formatRelativeAge, d as extractSummaryHtml, f as renderTiptapDocument, g as getImageUrl, h as escapeHtml, i as tiptapJsonToMarkdown, j as JANT_REPO_URL, k as JANT_BRAND_PACK_FILENAME, l as extractBodyText, m as trimTiptapBody, o as render, p as renderTiptapJson, s as toPlainText, t as createExportService, u as extractSummary, v as getPublicUrlForProvider, w as now, x as formatRelativeTime, y as formatDate, z as getJantLogoFills } from "./export-ZBlfKSKm.js";
|
|
3
3
|
import { C as coalesceDisplayText, S as shouldUseSecureCookies, _ as getInternalAdminToken, a as getConfiguredSingleSiteUrl, b as getSiteResolutionMode, c as getDevApiToken, d as getHostedControlPlaneBaseUrl, f as getHostedControlPlaneDomainCheckSecret, g as getHostedControlPlaneSsoSecret, h as getHostedControlPlaneProviderLabel$1, i as getConfiguredSingleSitePathPrefix, l as getEnvString, m as getHostedControlPlaneInternalToken, n as getAuthSecret, o as getConfiguredStorageDriver, p as getHostedControlPlaneInternalBaseUrl, r as getConfiguredSingleSiteOrigin, s as getCorsOrigins, u as getGitHubAppConfig, v as getLocalStoragePath } from "./env-CgaH9Mut.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { l as markdownToTiptapJson, o as createGitHubSyncService } from "./github-sync-bL1hnx3Q.js";
|
|
5
|
+
import { a as listInstallationReposPage, n as getInstallation, o as searchInstallationRepos, t as buildInstallUrl } from "./github-app-D0GvNnqp.js";
|
|
6
|
+
import { r as parseRepoSlug, t as createGitHubClient } from "./github-api-Bh0PH3zr.js";
|
|
6
7
|
import { I18n } from "@lingui/core";
|
|
7
8
|
import * as lucideIcons from "lucide-static";
|
|
8
9
|
import { z } from "zod";
|
|
@@ -1835,29 +1836,92 @@ var Hono = class extends Hono$1 {
|
|
|
1835
1836
|
//#endregion
|
|
1836
1837
|
//#region src/i18n/locales.ts
|
|
1837
1838
|
/**
|
|
1838
|
-
*
|
|
1839
|
+
* Locale configuration
|
|
1840
|
+
*
|
|
1841
|
+
* Two related-but-distinct concepts:
|
|
1842
|
+
*
|
|
1843
|
+
* - `Locale` (catalog locale): the small enum of locales for which Jant ships
|
|
1844
|
+
* a translation catalog. Used to pick which dashboard translation to render.
|
|
1845
|
+
* - Content language: any syntactically valid BCP 47 language tag, used for
|
|
1846
|
+
* `<html lang>`, RSS feed `<language>`, and other metadata. Independent of
|
|
1847
|
+
* whether Jant has a dashboard translation for it — a Finnish blogger should
|
|
1848
|
+
* be able to set `fi` for correct content metadata even though the dashboard
|
|
1849
|
+
* itself falls back to English.
|
|
1850
|
+
*
|
|
1851
|
+
* The dashboard UI surfaces catalog locales as suggestions, but the underlying
|
|
1852
|
+
* setting accepts any BCP 47 tag.
|
|
1839
1853
|
*/ var locales = [
|
|
1840
1854
|
"en",
|
|
1841
1855
|
"zh-Hans",
|
|
1842
1856
|
"zh-Hant"
|
|
1843
1857
|
];
|
|
1844
1858
|
/**
|
|
1845
|
-
* Check if
|
|
1859
|
+
* Check if `value` is a Locale Jant has a dashboard translation catalog for.
|
|
1846
1860
|
*/ function isLocale(value) {
|
|
1847
1861
|
return typeof value === "string" && locales.includes(value);
|
|
1848
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Check if `value` is a syntactically valid BCP 47 language tag.
|
|
1865
|
+
*
|
|
1866
|
+
* Accepts any tag the platform's `Intl.Locale` parses, including ones Jant
|
|
1867
|
+
* has no dashboard translation for (e.g. `fi`, `ja`, `de`, `fr-CA`).
|
|
1868
|
+
*/ function isValidContentLanguage(value) {
|
|
1869
|
+
if (typeof value !== "string") return false;
|
|
1870
|
+
const trimmed = value.trim();
|
|
1871
|
+
if (!trimmed) return false;
|
|
1872
|
+
try {
|
|
1873
|
+
new Intl.Locale(trimmed);
|
|
1874
|
+
return true;
|
|
1875
|
+
} catch {
|
|
1876
|
+
return false;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Normalize a BCP 47 tag to canonical form (`zh-cn` → `zh-CN`,
|
|
1881
|
+
* `ZH-HANS` → `zh-Hans`). Returns `value` unchanged if it cannot be parsed.
|
|
1882
|
+
*/ function normalizeContentLanguage(value) {
|
|
1883
|
+
const trimmed = value.trim();
|
|
1884
|
+
try {
|
|
1885
|
+
return new Intl.Locale(trimmed).baseName;
|
|
1886
|
+
} catch {
|
|
1887
|
+
return trimmed;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* Resolve a content language tag to the catalog locale that should drive the
|
|
1892
|
+
* dashboard UI for that user.
|
|
1893
|
+
*
|
|
1894
|
+
* Fallback chain: exact match → language family match (`zh-CN` → `zh-Hans`,
|
|
1895
|
+
* `zh-TW` → `zh-Hant`) → `baseLocale`.
|
|
1896
|
+
*/ function resolveCatalogLocale(tag) {
|
|
1897
|
+
const trimmed = tag.trim();
|
|
1898
|
+
if (!trimmed) return "en";
|
|
1899
|
+
let parsed;
|
|
1900
|
+
try {
|
|
1901
|
+
parsed = new Intl.Locale(trimmed);
|
|
1902
|
+
} catch {
|
|
1903
|
+
return "en";
|
|
1904
|
+
}
|
|
1905
|
+
if (isLocale(parsed.baseName)) return parsed.baseName;
|
|
1906
|
+
if (parsed.language === "zh") {
|
|
1907
|
+
const region = parsed.region;
|
|
1908
|
+
if (parsed.script === "Hant" || region === "TW" || region === "HK" || region === "MO") return "zh-Hant";
|
|
1909
|
+
return "zh-Hans";
|
|
1910
|
+
}
|
|
1911
|
+
return "en";
|
|
1912
|
+
}
|
|
1849
1913
|
//#endregion
|
|
1850
1914
|
//#region src/i18n/locales/public/en.ts
|
|
1851
1915
|
var messages$3 = JSON.parse("{\"+4u2g6\":[\"A ready-made 1:1 PNG for decks, mockups, directories, and other square placements.\"],\"+DPYOZ\":[\"Add a link to your main RSS feed. Change what /feed returns in General.\"],\"+G8qqW\":[\"Collection saved.\"],\"+IJm1Z\":[\"Muted\"],\"+Irvp3\":[\"Everything on this page is ready to use for articles, launch posts, directories, and product coverage.\"],\"+Qaboy\":[\"Favicon\"],\"+fWu2O\":[\"A calmer, warmer accent makes the default theme feel quieter and more intentional.\"],\"+nHhRH\":[\"Use \",[\"brandColorName\"]],\"+siMqD\":[\"Journal\"],\"/DFKdU\":[\"Type the quote...\"],\"/PfPLc\":[\"Label (optional)\"],\"/PoNoq\":[\"Edit link\"],\"/Ui2OV\":[\"Use the reverse logo on dark backgrounds.\"],\"/Ybds4\":[\"Primary Jant logo for websites, docs, press coverage, and editorial layouts.\"],\"/rTz0M\":[\"Audio\"],\"0EcUWz\":[\"Discard changes?\"],\"0Lj7or\":[\"Save text attachment?\"],\"0XDp7X\":[\"Links should read clearly without glowing against the page.\"],\"0ieXE7\":[\"Highest rated\"],\"11h9eK\":[\"Includes\"],\"15++NM\":[\"Inline emphasis\"],\"1DBGsz\":[\"Notes\"],\"1NeeWI\":[\"Square assets for avatars, apps, browsers, and shared links\"],\"1THMr2\":[\"Brand pack\"],\"1njn7W\":[\"Light\"],\"2B7HLH\":[\"New post\"],\"2C7mSG\":[\"Collection link\"],\"2ETv7R\":[\"Tune color in a real reading context\"],\"2HbvFp\":[\"Real post components\"],\"2MXb5X\":[\"Field notes on quiet design\"],\"2koDOQ\":[\"Thread accents\"],\"2q/Q7x\":[\"Visibility\"],\"2sCqzD\":[\"Use this for websites, docs, articles, and other light or neutral surfaces.\"],\"33DClx\":[\"Link to your latest posts. If it comes before Featured, the homepage opens here.\"],\"3Cw1AI\":[\"Add Collection\"],\"3lJk5u\":[\"Keep the artwork unchanged.\"],\"3mdteM\":[\"before deciding whether the accent is carrying too much product energy.\"],\"3neqtf\":[\"Thread accent\"],\"3qkggm\":[\"Fullscreen\"],\"3vMdv3\":[\"This link is reserved. Choose something else.\"],\"3wKq0C\":[\"Couldn't save. Try again in a moment.\"],\"3xi01/\":[\"Look at the footer metadata last, to make sure the accent is not fighting the typography.\"],\"47iMgt\":[\"Editorial interfaces worth borrowing from\"],\"4D09NB\":[\"Link to your collections page\"],\"4HLTdq\":[\"without media\"],\"4J/OYU\":[\"Collection created.\"],\"4eiXo+\":[\"Leave blank to generate one automatically.\"],\"4pV0kE\":[\"Avatar-ready\"],\"51EYZX\":[\"without title\"],\"5dcjwM\":[\"Choose today or an earlier date, or leave it blank to publish now.\"],\"5pAjd8\":[\"Accent should feel present, not loud.\"],\"5sEkBi\":[\"Open raw asset\"],\"6UTABI\":[\"Collection order updated.\"],\"6WAK+2\":[\"Use current date\"],\"6Y4BBO\":[\"An abstract editorial layout in warm paper colors\"],\"6cjUDB\":[\"Brand assets\"],\"6lGV3K\":[\"Show less\"],\"6p0JeQ\":[\"to make sure both still feel like they belong to the same product.\"],\"6sVyMq\":[\"Add a URL before posting this link.\"],\"6yCv8j\":[\"Save these changes to the text attachment, discard them, or keep editing.\"],\"74kJNs\":[\"View earlier notes in this thread\"],\"7DvUqV\":[\"Read the page from top to bottom without looking at the swatches.\"],\"7aris6\":[\"March 15\"],\"7d1a0d\":[\"Public\"],\"7hYXO0\":[\"Use this on dark backgrounds, image-backed surfaces, and any placement where the green logo would lose contrast.\"],\"7kMW54\":[\"Open raw SVG\"],\"7nGhhM\":[\"What's on your mind?\"],\"7vhWI8\":[\"New Password\"],\"87a/t/\":[\"Label\"],\"8Btgys\":[\"Draft deleted.\"],\"8WX0J+\":[\"Your thoughts (optional)\"],\"8ZsakT\":[\"Password\"],\"8bpHix\":[\"Couldn't create your account. Check the details and try again.\"],\"8eC78s\":[\"A calmer accent makes\"],\"8tM8+a\":[\"Save as draft\"],\"90IRF2\":[\"This article is here to answer a specific question: does the default accent still feel calm once it has to carry a full reading experience?\"],\"9SHZas\":[\"Shows 'Settings' when logged in, 'Sign in' when logged out\"],\"9aloPG\":[\"References\"],\"9dr9Nh\":[\"Open external link\"],\"9qWoxS\":[\"Feed\"],\"A1D8Yt\":[\"What the accent should do\"],\"A1taO8\":[\"Search\"],\"A2Vg/u\":[\"Navigation and reading states\"],\"AjHkcv\":[\"Default preview image for social shares and link unfurls.\"],\"AyHO4m\":[\"What's this collection about?\"],\"B1FFMj\":[\"Download Brand Pack\"],\"B495Gs\":[\"Archive\"],\"BdjLtf\":[\"thread\"],\"Bmaby2\":[\"All formats\"],\"C+9df9\":[\"Quoted or highlighted passages should feel like annotations, not warnings.\"],\"C0/57J\":[\"This is the last part of the collection link.\"],\"CAh1km\":[\"collections\"],\"CH3bgf\":[\"RSS feed for this view\"],\"CT7H2e\":[\"Link to your featured posts. If it comes before Latest, the homepage opens here.\"],\"CmBCXY\":[\"Link updated.\"],\"D4em/+\":[\"Logos\"],\"DHhJ7s\":[\"Previous\"],\"DJLY+/\":[\" and try again.\"],\"DOx286\":[\"Draft restored.\"],\"DPfwMq\":[\"Done\"],\"DSJXZM\":[\"Enter a valid date.\"],\"DYlMYF\":[\"Built-in background\"],\"DoJzLz\":[\"Collections\"],\"Du2B9f\":[\"The default accent should support reading first. Start by comparing it against the\"],\"DxwUcG\":[\"Read the palette as content first\"],\"E3NcGH\":[\"Square logo PNG\"],\"EEYbdt\":[\"Publish\"],\"EGwzOK\":[\"Complete Setup\"],\"EHWwm1\":[\"The default accent should feel written, not branded.\"],\"EO3I6h\":[\"Upload didn't go through. Try again in a moment.\"],\"EQNPYo\":[\"Featured on \",[\"date\"],\" at \",[\"time\"]],\"EQtz4D\":[\"Open a few links and check whether they still feel native to the page.\"],\"EU3tBD\":[\"Link removed.\"],\"EetoJL\":[\"Guide the eye without taking over the layout.\"],\"Eiv3bO\":[\"Buttons can stay steady, but links, thread markers, and subtle emphasis should feel closer to ink on paper than dashboard chrome.\"],\"ElTnWL\":[\"Published on\"],\"EmQw8O\":[\"If this article still feels like a page you want to keep reading, the palette is probably close.\"],\"EsJdRp\":[\"Save theme\"],\"FESYvt\":[\"Describe this for people with visual impairments...\"],\"FEr96N\":[\"Theme\"],\"FGySZL\":[\"The default accent works best when it reads like a fountain-pen underline. Compare it against the\"],\"FM+KeU\":[\"No drafts yet. Save a draft to find it here.\"],\"Fdv5k7\":[\"What to look for while tuning it\"],\"FkMol5\":[\"Featured\"],\"Fxf4jq\":[\"Description (optional)\"],\"G2u/aQ\":[\"Download official Jant logos, icons, and preview assets.\"],\"GBJzTZ\":[\"Archive\"],\"GX2VMa\":[\"Create your admin account.\"],\"GY/1J4\":[\"Jant fallback canary string\"],\"GbIOhd\":[\"Reply quietly\"],\"GiRWtR\":[\"Why the default accent should feel written, not branded\"],\"GkpIs2\":[\"Remove this link from Collections? The destination won't change.\"],\"GorKul\":[\"Welcome to Jant\"],\"GxkJXS\":[\"Uploading...\"],\"H29JXm\":[\"+ ALT\"],\"H4lgRd\":[\"Authentication isn't set up. Check your server config.\"],\"HFPGej\":[\"No threads match these filters. Try adjusting your selection or clear all filters.\"],\"HG79RB\":[\"Post as Private\"],\"HNEHJP\":[\"Demo credentials are pre-filled — hit Sign In to continue.\"],\"HbAIQc\":[\"A reference link for checking whether the accent feels editorial instead of promotional.\"],\"Ht1V3q\":[\"For the same reason, inline code should stay neutral. Something like theme.siteAccent = soften(green, 12%) should not suddenly become the loudest thing on the page.\"],\"I22eN0\":[\"Shared links\"],\"I6zLrz\":[\"Use these when you need a transparent square logo, a shaped tile with a built-in background, a browser icon, or a default preview image.\"],\"ICsA6P\":[\"You have unsaved changes\"],\"IUX7p+\":[\"White logo on the Jant green rounded tile for app icon mockups, touch icons, directory listings, and other square placements that should feel softer.\"],\"IagCbF\":[\"URL\"],\"IjnQHI\":[\"with title\"],\"ImOQa9\":[\"Reply\"],\"IsI3kE\":[\"Nothing here yet. Add posts to one of these collections to fill this view.\"],\"J+2Rls\":[\"Leave blank to publish now. Use an earlier date when importing older posts.\"],\"J4tAHl\":[\"Headings should keep their hierarchy even when the accent gets softer.\"],\"JYj5R2\":[\"Browse files\"],\"JcD7qf\":[\"More actions\"],\"JqJ5Xv\":[\"Latest\"],\"JuN5GC\":[\"No file selected. Choose a file to upload.\"],\"JwLPQ/\":[\"This sign-in link has expired. Return to \"],\"KOqvXP\":[\"Do not recolor, stretch, rotate, outline, or add effects to the logo.\"],\"KbS2K9\":[\"Reset Password\"],\"KdSsVl\":[\"Author (optional)\"],\"Khu3PV\":[\"Publish settings\"],\"KiJn9B\":[\"Note\"],\"KlZ+t+\":[\"%name% + %count% more\"],\"KsvRin\":[\"Hide from Latest\"],\"KzmC5L\":[\"Controls\"],\"L7svJg\":[\"Reading\"],\"Lbkbwy\":[\"A quote card for judging accent color against softer, citation-heavy content.\"],\"LcvzvX\":[\"Tap to retry\"],\"LkA8jz\":[\"Add alt text\"],\"LxRg6f\":[\"live theme controls\"],\"M4tzVU\":[\"Latest posts\"],\"M8kJqa\":[\"Drafts\"],\"MHrjPM\":[\"Title\"],\"MILa7n\":[\"Square tile\"],\"MSc/Yq\":[\"Do you want to publish your changes or discard them?\"],\"Mc7+6G\":[\"Enter a valid URL starting with http://, https://, or mailto:.\"],\"MdMyne\":[\"Source link (optional)\"],\"MiMY3Q\":[\"Apple touch icon\"],\"MiyoI7\":[\"default note sample\"],\"MqghUt\":[\"Search posts...\"],\"Myqkib\":[\"Create a collection to get started.\"],\"N8UzTV\":[\"Replies\"],\"NAFbuE\":[\"Search snippet\"],\"NH9Z1R\":[\"Start here\"],\"NqsRbb\":[\"Jant logo\"],\"NvXuWk\":[\"Won't move the thread to the top of latest.\"],\"O1367B\":[\"All collections\"],\"O3oNi5\":[\"Email\"],\"OEdMhi\":[\"The best default color is the one you notice only after reading for a while.\"],\"OEt/to\":[\"Guidelines\"],\"OJxdgi\":[\"Keep this link under 200 characters.\"],\"OaoJcz\":[\"Social preview\"],\"OmfDbR\":[\"Site accent\"],\"Ovks1h\":[\"A softer blue feels more like ink than product chrome.\"],\"P/sHNL\":[\"Use this page to judge buttons, links, cards, forms, thread accents, and quiet surfaces before changing a theme globally.\"],\"Q/uoSA\":[\"Quiet here for now.\"],\"Q2mGA7\":[\"Clear filter\"],\"QBqVyM\":[\"Home screen icon for iPhone and iPad shortcuts.\"],\"QebAts\":[\"Link added.\"],\"Qgbxdw\":[\"Designing a calmer default accent for Jant\"],\"Qn9Ao8\":[\"Circle tile\"],\"QyDt3L\":[\"File uploaded.\"],\"R5CMuK\":[\"Jant looks best when the accent feels editorial. Buttons can stay sturdy, but inline emphasis should feel like a pen mark, not a dashboard highlight.\"],\"R8AthW\":[\"Divider\"],\"R9Khdg\":[\"Auto\"],\"RAv3u7\":[\"Compare it against the theme controls\"],\"ROa4Ti\":[\"Interfaces for reading should guide the eye, not keep asking for attention.\"],\"RZOWDv\":[\"Add a custom shortcut to any page or site.\"],\"RdmNnl\":[\"Browser tab\"],\"RfGczC\":[\"Square logo\"],\"Rj01Fz\":[\"Links\"],\"S37om9\":[\"Included assets\"],\"S8NCfs\":[\"Save to drafts to edit and post at a later time.\"],\"SJGVAw\":[\"Feel editorial and slightly quieter.\"],\"SJmfuf\":[\"Site Name\"],\"SaNhJE\":[\"feel deliberate instead of washed out.\"],\"SpTWH3\":[\"Download SVG\"],\"SvRuJt\":[\"Field Notes on Interface Tone\"],\"T/R+Qz\":[\"Primary\"],\"TNZKpI\":[\"Danger\"],\"TvaTxw\":[\"Doesn't appear in Latest. Still appears in collections you add it to.\"],\"UIMXHD\":[\"Remove Divider\"],\"UaZwcz\":[\"More options are available after you create it.\"],\"Uc5y7o\":[\"Choose the standard logo for websites, docs, directories, and editorial layouts.\"],\"V18SVO\":[\"Use the logo on light backgrounds.\"],\"V4WsyL\":[\"Add Link\"],\"VCA6B2\":[\"These are actual feed components with real footers, summaries, and inline links. Use this section to judge whether the theme still feels calm once it is applied to realistic content.\"],\"VNqFYa\":[\"Loading post...\"],\"WCOanD\":[\"This reference is useful because it treats links and citations as part of the reading rhythm. Keep that in mind while tuning the\"],\"WbIbzR\":[\"Checking link...\"],\"WcWS//\":[\"Download file\"],\"WhsN3P\":[\"A good default accent in Jant should feel like editorial structure, not product branding. That means links, emphasis, and thread cues can be visible without turning the page into UI chrome.\"],\"Wn+/rH\":[\"Transparent square\"],\"XU7b+L\":[\"Primary logo files\"],\"XV1mAn\":[\"Only visible when signed in.\"],\"XrnWzN\":[\"Published!\"],\"YIix5Y\":[\"Search...\"],\"YUglt2\":[\"Generating a link...\"],\"YXiA6e\":[\"Primary button\"],\"Ygx3Yl\":[\"Small browser icon used in tabs and bookmarks.\"],\"Z6NwTi\":[\"Save as Draft\"],\"ZGs2so\":[\"Delete this collection permanently? Posts inside won't be removed.\"],\"ZV5ykW\":[\"Download PNG\"],\"ZhhOwV\":[\"Quote\"],\"ZmSeP+\":[\"Save to drafts?\"],\"ZxFuun\":[[\"count\",\"plural\",{\"one\":[\"Found \",\"#\",\" result\"],\"other\":[\"Found \",\"#\",\" results\"]}]],\"a5j82I\":[\"No collections match that search. Try a different name.\"],\"aHTB7P\":[\"Supplementary content attached to your post\"],\"aMEyv0\":[\"Stay sturdy and readable.\"],\"aN6wx0\":[\"Nothing in Featured yet. Mark a post as featured to show it here.\"],\"aYpXKS\":[\"and checking whether the accent is guiding attention or pulling too hard.\"],\"aaGV/9\":[\"New Link\"],\"af+9p6\":[\"Quiet metadata\"],\"an5hVd\":[\"Images\"],\"ao77hr\":[[\"count\",\"plural\",{\"one\":[\"#\",\" hidden post\"],\"other\":[\"#\",\" hidden posts\"]}]],\"auFlOr\":[\"Icons and previews\"],\"avuFKG\":[\"threads\"],\"bFpC86\":[\"Everything in one download\"],\"bGtMpA\":[\"Add a label and URL.\"],\"bHOiy1\":[\"Password changes are off in demo mode. Sign in with the shared demo credentials.\"],\"bbdNeX\":[\"Sign in\"],\"bfCbdi\":[\"Current post\"],\"bkBJmZ\":[\"This is useful as a color check because it puts the accent next to quotation styling, metadata, and a quieter explanatory paragraph. Compare it back to the\"],\"bzSI52\":[\"Discard\"],\"c2JRUS\":[\"Generate automatically\"],\"cIoW7X\":[\"Inline link\"],\"cTUByn\":[\"Newest first\"],\"cb7FR8\":[\"White logo on the Jant green square tile for platforms and layouts that expect a true edge-to-edge square.\"],\"cgmi4V\":[\"Delete Draft\"],\"cnGeoo\":[\"Delete\"],\"d+F4pf\":[\"The image should sit quietly inside the article instead of feeling like a card preview.\"],\"d/o/BH\":[\"Couldn't publish. Saved as draft.\"],\"dD7NPy\":[\"Outline\"],\"dEgA5A\":[\"Cancel\"],\"dUsGbd\":[\"The right accent should disappear into the writing until you need it.\"],\"dXoieq\":[\"Summary\"],\"dYKrp3\":[\"Hidden from Latest\"],\"dbUuAj\":[\"Appears in Latest.\"],\"df4a/r\":[\"Couldn't load this post. Try again.\"],\"ePK91l\":[\"Edit\"],\"eWLklq\":[\"Quotes\"],\"f4MAoA\":[\"Some uploads failed. Saved as draft.\"],\"f5s9EI\":[\"Press N to write\"],\"f6Hub0\":[\"Sort\"],\"f8fH8W\":[\"Design\"],\"fD+f7T\":[\"RSS feed\"],\"fKrDxS\":[\"Brand tile\"],\"fMPkxb\":[\"Show more\"],\"fqDzSu\":[\"Rate\"],\"fttd2R\":[\"My Collection\"],\"gCcxP/\":[\"Threads can include up to \",[\"count\"],\" posts.\"],\"gFdWl+\":[\"A long-form article sample for checking the default palette in a true reading context.\"],\"gNKz6Z\":[\"Collection deleted.\"],\"gXH9r/\":[\"Open raw PNG\"],\"gj52YE\":[\"This collection is empty. Add posts from the editor.\"],\"gpaPhA\":[\"Helps screen readers describe the image\"],\"h5RcXU\":[\"Post hidden\"],\"hLlWo5\":[\"A few simple rules.\"],\"hWpUeY\":[\"Auto link\"],\"hXzOVo\":[\"Next\"],\"heSQoS\":[\"Paste a URL...\"],\"hrkGms\":[\"Search\"],\"i0vDGK\":[\"Sort Order\"],\"i5+Y7d\":[\"Download the official Jant logo, icons, and preview files.\"],\"i6kro6\":[\"Edit custom link\"],\"i6nDCI\":[\"Choose a new password.\"],\"iG7KNr\":[\"Logo\"],\"iH8pgl\":[\"Back\"],\"ilSmIt\":[\"Hard edge\"],\"iu7tUI\":[\"Breadcrumb\"],\"jAXE5p\":[\"Reverse logo\"],\"jAqB/k\":[\"Post privately\"],\"jQflRT\":[\"This uses the real single-post detail rendering with a longer article, inline image, tables, lists, quotes, and code. The content column stays at the same width as the live site.\"],\"jd+8Mm\":[\"Social preview image\"],\"jdJOV1\":[\"Settings\"],\"ji7oVU\":[\"Edit post\"],\"jpctdh\":[\"View\"],\"jvyYZG\":[\"What's on your mind...\"],\"k3Iw35\":[\"Switch to the white logo when the standard green version would lose contrast.\"],\"kPMIr+\":[\"Give it a title...\"],\"kj6ppi\":[\"entry\"],\"kr39oD\":[\"No collections yet. Start one to organize posts by topic.\"],\"kzvWob\":[\"Link to the post archive\"],\"laT1IJ\":[\"iOS home screen\"],\"lb+Xwx\":[\"Custom link\"],\"m16xKo\":[\"Add\"],\"mKT7g0\":[\"Text attachment\"],\"mc/vLq\":[\"This link is already in use. Choose something else.\"],\"muKqfV\":[\"Featured\"],\"n1ekoW\":[\"Sign In\"],\"n3ReIn\":[\"Collections\"],\"n6QD94\":[\"Oldest first\"],\"nFukaP\":[\"Wrong email or password. Check your credentials and try again.\"],\"nV6twc\":[\"Organize\"],\"nd8Puv\":[\"White logo on the Jant green circle for profile images, badges, and other round placements where you want a ready-made asset.\"],\"ndrEYW\":[\"When the accent is slightly warmer and less literal, the whole page feels more like a writing space and less like product UI.\"],\"nfU386\":[\"Sign in if this is your space.\"],\"o21Y+P\":[\"entries\"],\"oO0hKx\":[[\"count\",\"plural\",{\"one\":[\"#\",\" more post\"],\"other\":[\"#\",\" more posts\"]}]],\"oTu7Wt\":[\"Combined Collections\"],\"ode0+L\":[\"Theme sample\"],\"ogssnn\":[\"with media\"],\"ovBPCi\":[\"Default\"],\"p1Z67P\":[\"When primary is too rigid, the whole page starts reading like product UI instead of writing space.\"],\"p2/GCq\":[\"Confirm Password\"],\"pB0OKE\":[\"New Divider\"],\"pBHx39\":[\"Dark backgrounds\"],\"pVrU5x\":[\"If this page feels too branded, the first place to soften is the default theme’s site accent, not the border or body text.\"],\"pvnfJD\":[\"Dark\"],\"q+hNag\":[\"Collection\"],\"q5YRzz\":[\"Color check\"],\"q8RviX\":[\"Titled\"],\"qcawwg\":[\"Publish now\"],\"qiN9NB\":[\"Surface\"],\"qt89I8\":[\"Draft saved.\"],\"quvfGs\":[\"instead of judging it as an isolated swatch.\"],\"r7kcaA\":[\"Drag collections, links, and dividers into the order you want.\"],\"rA2TFI\":[\"Switch the palette and mode without opening settings or changing the active site theme.\"],\"rV8ZnP\":[\"Edit publish date\"],\"rdUucN\":[\"Preview\"],\"s8G5Or\":[\"This upload would exceed your shared hosted media limit. Remove files or upgrade storage to continue.\"],\"s9gHf5\":[\"your-post-link\"],\"sER+bs\":[\"Files\"],\"sQpDn6\":[\"Exit fullscreen\"],\"sgr2wQ\":[\"collection\"],\"slujBW\":[\"Use lowercase letters, numbers, and hyphens only.\"],\"syiAKf\":[\"note treatment\"],\"t42hIC\":[\"Everything most people need is in one ZIP.\"],\"tCctex\":[\"The brand pack includes SVG logos, a transparent square PNG, rounded, square, and circle tiles, plus favicon, Apple touch icon, and the default social preview image.\"],\"tKlWWY\":[\"Emoji\"],\"tSWVu5\":[\"Published on \",[\"date\"],\" at \",[\"time\"]],\"tfDRzk\":[\"Save\"],\"tgSBSE\":[\"Remove Link\"],\"uowbPn\":[\"Remove attachment\"],\"v3E8iS\":[\"A practical checklist\"],\"vSJd18\":[\"Video\"],\"vSYKYI\":[\"Main feed\"],\"vXCC6J\":[\"Something doesn't look right. Check the form and try again.\"],\"vcpc5o\":[\"Close menu\"],\"vdFnYM\":[\"Reset link\"],\"vdvpU5\":[\"/archive?format=quote or https://example.com\"],\"vgpfCi\":[\"Save draft\"],\"vpSPA1\":[\"Auth secret is missing. Check your environment variables.\"],\"vzU4k9\":[\"New Collection\"],\"w0Emel\":[\"Suggested link\"],\"w6mlns\":[\"Article detail page\"],\"wJ+GRy\":[\"All visibility\"],\"wL3cK8\":[\"Latest\"],\"wja8aL\":[\"Untitled\"],\"wlnK1t\":[\"A single ZIP with the main logo, reverse logo, square PNG, rounded, square, and circle tiles, plus favicon, Apple touch icon, and social preview image.\"],\"wm3Zlr\":[\"All years\"],\"xCWek4\":[\"File storage isn't set up. Check your server config.\"],\"xVrkxi\":[\"quiet design\"],\"xVvw1i\":[\"This reset link is no longer valid. Request a new one to continue.\"],\"xYilR2\":[\"Media\"],\"xeiujy\":[\"Text\"],\"xhTx3y\":[\"Choose the standard logo for most placements and the reverse logo when you need more contrast.\"],\"y28hnO\":[\"Post\"],\"y2o/Y0\":[\"This Link Has Expired\"],\"yGZVl1\":[\"More\"],\"yQ2kGp\":[\"Load more\"],\"yUtAh2\":[\"New Thread\"],\"ycM1Xg\":[\"No results. Try different keywords.\"],\"ynMAhG\":[\"Default logo\"],\"yzF66j\":[\"Link\"],\"zBFr9G\":[\"Paste a long article, AI response, or any text...\\n\\nMarkdown formatting will be preserved.\"],\"zJDAbh\":[\"Don't save\"],\"zcDmsG\":[\"Featured posts\"],\"zoK+eO\":[\"Add a title before posting this link.\"],\"zucql+\":[\"Menu\"],\"zwBp5t\":[\"Private\"]}");
|
|
1852
1916
|
//#endregion
|
|
1853
1917
|
//#region src/i18n/locales/settings/en.ts
|
|
1854
|
-
var messages$2 = JSON.parse("{\"+9JI/F\":[\"Connecting will sync your site onto \",[\"repo\"],\"'s default branch on top of its existing history. Existing files outside Jant's managed paths are kept. This can't be undone.\"],\"+AXdXp\":[\"Label and URL are required\"],\"+K0AvT\":[\"Disconnect\"],\"+zy2Nq\":[\"Type\"],\"/3H2/s\":[\"This hosted site signs in through \",[\"providerLabel\"],\". Manage password and hosted access there.\"],\"/JnyjR\":[\"Toggle built-in navigation items. Their order controls what shows in the header and which feed the homepage opens first.\"],\"0OGSSc\":[\"Avatar display updated.\"],\"0UzCUX\":[\"Update the password you use to sign in\"],\"10UtuM\":[\"CJK Font\"],\"14BEca\":[\"Read why\"],\"1F6Mzc\":[\"No navigation items yet. Add links or enable system items below.\"],\"1njn7W\":[\"Light\"],\"2B7t+s\":[\"Sessions and password\"],\"2DoBvq\":[\"Feeds\"],\"2FYpfJ\":[\"More\"],\"2MXb5X\":[\"Field notes on quiet design\"],\"2PTjMB\":[\"I want to delete \",[\"siteName\"]],\"2cFU6q\":[\"Site Footer\"],\"2oWZo7\":[\"Last commit\"],\"2uuy4H\":[\"Connected via Personal Access Token\"],\"35x8eZ\":[\"Showing \",[\"shown\"],\" of \",[\"total\"]],\"3Cw1AI\":[\"Add Collection\"],\"3VrybB\":[\"Redirect\"],\"3Yvsaz\":[\"302 (Temporary)\"],\"3n0zbB\":[\"Session management is off in demo mode. Use the shared demo session instead.\"],\"3sYJi5\":[\"Download a Hugo-compatible archive — host it statically or move to another Jant.\"],\"3wKq0C\":[\"Couldn't save. Try again in a moment.\"],\"49Bsal\":[\"Feed settings updated.\"],\"4Jge8E\":[\"Active Sessions\"],\"4KIa+q\":[\"Export downloaded.\"],\"4cEClj\":[\"Sessions\"],\"4zGJ5E\":[\"Delete Account Permanently\"],\"5QlUIt\":[\"Empty repository. Ready to connect.\"],\"5VQnR3\":[\"Use these when you want a feed URL that never changes.\"],\"5dpcN1\":[\"type to search all\"],\"69OXZB\":[\"Delete Hosted Site\"],\"6ArdBh\":[\"Uses featured posts for /feed.\"],\"6DjeBT\":[\"Demo sites always stay hidden from search engines.\"],\"6FFB7q\":[\"Uses the latest public posts for /feed.\"],\"6K1Vef\":[\"Delete this blog permanently? This cannot be undone.\"],\"6NpNLc\":[\"This repository has existing content.\"],\"6V3Ea3\":[\"Copied\"],\"746NHh\":[\"this blog\"],\"7811AW\":[\"This repository is already backing up this site.\"],\"7FaY4u\":[\"Usage\"],\"7G9YLi\":[\"Allow search engines to index my site\"],\"7MZxzw\":[\"Password changed.\"],\"7vhWI8\":[\"New Password\"],\"7z05Pf\":[\"Open the hosted site controls in \",[\"providerLabel\"],\" to cancel billing or permanently delete this site.\"],\"81nFIS\":[\"Passwords don't match. Make sure both fields are identical.\"],\"87a/t/\":[\"Label\"],\"89Upyo\":[\"That theme isn't available. Pick another one.\"],\"8BfEpW\":[\"Hosted account\"],\"8N/Mcp\":[\"Archive filter parameters (e.g. format=note&view=list)\"],\"8U2Z7f\":[\"New Custom URL\"],\"8ZsakT\":[\"Password\"],\"9+vGLh\":[\"Custom CSS\"],\"9As8Nu\":[\"Create one on GitHub\"],\"9Lsvt5\":[\"Signed in \",[\"date\"]],\"9T7Cwm\":[\"Redirects, vanity paths, and URL control\"],\"9aUyym\":[\"See where you're signed in and revoke old sessions\"],\"A1taO8\":[\"Search\"],\"AeXO77\":[\"Account\"],\"AnY+O9\":[\"Show \\\"Build with Jant\\\" at the bottom of the home page\"],\"ApZDMk\":[\"This is used for your favicon and apple-touch-icon. For best results, upload a square PNG with a solid background at least 512x512 pixels.\"],\"B495Gs\":[\"Archive\"],\"B4ESok\":[\"API reference\"],\"CTAEes\":[\"Select a repository\"],\"CjZZgz\":[\"This repository already has commits\"],\"DCKkhU\":[\"Current Password\"],\"DKKKeF\":[\"Manage password and hosted access in \",[\"providerLabel\"]],\"ECIBO2\":[\"Controls the language of the dashboard and settings. Public pages stay in English.\"],\"EO3I6h\":[\"Upload didn't go through. Try again in a moment.\"],\"Enslfm\":[\"Destination\"],\"F7FKwe\":[\"Anything you paste here has full access to your visitors' browsers. Only use code from sources you trust.\"],\"FkMol5\":[\"Featured\"],\"G/1oP+\":[\"Remove the webhook and stop syncing. Your repository content will not be deleted.\"],\"G0qJsQ\":[\"Security token missing. Refresh the page and try again.\"],\"G39wnK\":[\"Back up and sync content with a GitHub repository\"],\"GMMWcy\":[\"Name, metadata, language, and search defaults\"],\"GXsAby\":[\"Revoke\"],\"GxkJXS\":[\"Uploading...\"],\"GzKzUa\":[\"Demo limits\"],\"HKH+W+\":[\"Data\"],\"Hp1l6f\":[\"Current\"],\"HxlY7t\":[\"Changing this updates what subscribers get from /feed.\"],\"HxuOlm\":[\"Site Header\"],\"I6gXOa\":[\"Path\"],\"ID38tA\":[\"Account deletion is off in demo mode. The shared demo resets separately.\"],\"IF9tPu\":[\"When to use site export, database backups, and recovery drills.\"],\"IW5PBo\":[\"Copy Token\"],\"IagCbF\":[\"URL\"],\"IreQBq\":[\"Repository\"],\"J6bLeg\":[\"Add a custom link to any URL\"],\"JL7LF5\":[\"available CSS variables, data attributes, and examples.\"],\"JTviaO\":[\"Manage sign-in security, exports, and irreversible actions.\"],\"JcD7qf\":[\"More actions\"],\"JjX0OO\":[\"Copy your token now — it won't be shown again.\"],\"JrFTcr\":[\"Connecting…\"],\"JuN5GC\":[\"No file selected. Choose a file to upload.\"],\"KDw4GX\":[\"Try again\"],\"KSgo21\":[\"Pick a repository\"],\"KVVYBh\":[\"Add collection to navigation\"],\"KiJn9B\":[\"Note\"],\"L3DEwT\":[\"Remove this avatar? Your favicon and header icon will go back to the default.\"],\"L4t4/q\":[\"March 14\"],\"LdyooL\":[\"link\"],\"M/D8PK\":[\"+ Install on another account\"],\"M/haSd\":[\"Always show the light version of the theme.\"],\"M2kIWU\":[\"Font theme\"],\"M6CbAU\":[\"Toggle edit panel\"],\"Me5t5H\":[\"Connect a GitHub repository to automatically back up your posts as Markdown files. Edits on GitHub sync back to your site.\"],\"MtENL9\":[\"Tune how your site looks, reads, and runs.\"],\"N/8NPV\":[\"Before deleting, download a site export. You won't be able to recover this account after deletion.\"],\"N7UNHY\":[\"Featured feed\"],\"NHnUHF\":[\"Favicon and the profile mark in your header\"],\"NU2Fqi\":[\"Save CSS\"],\"Nldjdr\":[\"No custom URLs yet. Create one to add redirects or custom paths for posts.\"],\"O7rgs6\":[\"Header RSS points to your \",[\"feed\"],\" feed (/feed). Change what /feed returns in General.\"],\"OSJXFg\":[\"Applies to your entire site, including admin pages. Pick a palette, then choose whether it follows the system or stays fixed.\"],\"PEUV5I\":[\"Code injection updated.\"],\"PZ7HJ8\":[\"Blog Avatar\"],\"Pwqkdw\":[\"Loading…\"],\"PxJ9W6\":[\"Generate Token\"],\"Q/6Y+2\":[\"Needs Contents (read/write) and Webhooks (read/write) on the target repository.\"],\"Q30z/l\":[\"Remove this collection from navigation? The collection itself won't be deleted.\"],\"Q99OtV\":[\"Pin a collection to your navigation bar. An asterisk (*) appears next to collections updated in the last 48 hours.\"],\"QZmz0H\":[\"Built-in links\"],\"Qnrzvb\":[\"Active Tokens\"],\"R6Z4LE\":[\"Download failed. Please try again.\"],\"R9Khdg\":[\"Auto\"],\"RxsRD6\":[\"Time Zone\"],\"SJmfuf\":[\"Site Name\"],\"SKZhW9\":[\"Token name\"],\"SVQQPe\":[\"Couldn't connect. Check the error and try again.\"],\"TpF3v+\":[\"Injected before </head>. Use for analytics, custom meta tags, and styles that must load early.\"],\"Tz0i8g\":[\"Settings\"],\"UFK415\":[\"Site-wide HTML for analytics and widgets\"],\"Uj/btJ\":[\"Display avatar in my site header\"],\"UsODUn\":[\"Select an account\"],\"UxKoFf\":[\"Navigation\"],\"V+bhUy\":[\"Install GitHub App\"],\"V4WsyL\":[\"Add Link\"],\"V5pZwT\":[\"Search settings updated.\"],\"VXUPla\":[\"Connect with GitHub App\"],\"VhMDMg\":[\"Change Password\"],\"Vn3jYy\":[\"Navigation items\"],\"VoZYGU\":[\"This will permanently delete all your data — posts, media, collections, settings, and your account. Your blog will be reset to its initial setup state. This cannot be undone.\"],\"Weq9zb\":[\"General\"],\"Wi9i06\":[\"Follow each visitor's system preference.\"],\"Wx1M8N\":[\"Install the GitHub App to grant access without managing personal tokens. Permissions are scoped per repository and revocable from GitHub.\"],\"X+8FMk\":[\"Current password doesn't match. Try again.\"],\"X1G9eY\":[\"Navigation Preview\"],\"X9Hujr\":[\"Manual Push\"],\"XtBJV8\":[\"Checking repository…\"],\"Xtc16w\":[\"Refresh repository list\"],\"Y/F35r\":[\"Create a post with curl:\"],\"YF6zHf\":[\"Site settings updated.\"],\"YdG2RF\":[\"Export Site\"],\"YwhjRx\":[\"Manage Account\"],\"ZDY7Fy\":[\"Syncing…\"],\"ZQKLI1\":[\"Danger Zone\"],\"ZS/CBL\":[\"Delete this navigation link? Visitors won't see it in your site header anymore.\"],\"ZhhOwV\":[\"Quote\"],\"ZiooJI\":[\"API Tokens\"],\"Zm7Qb0\":[\"Backup & Restore Guide\"],\"ZmUkwN\":[\"Add custom link to navigation\"],\"a14mj8\":[\"Unknown device\"],\"a3LDKx\":[\"Security\"],\"aAIQg2\":[\"Appearance\"],\"aFkzVF\":[\"The slug of the target post or collection\"],\"alKG0+\":[\"Font Theme\"],\"anibOb\":[\"About this blog\"],\"any7NR\":[\"Theming guide\"],\"b+/jO6\":[\"301 (Permanent)\"],\"bHOiy1\":[\"Password changes are off in demo mode. Sign in with the shared demo credentials.\"],\"bHYIks\":[\"Sign Out\"],\"bmrL08\":[\"Demo mode hides sessions, password changes, and account deletion. Export still works.\"],\"c3MN2z\":[\"all available endpoints and request formats.\"],\"cSDy01\":[\"Custom CSS updated.\"],\"clzoNp\":[\"Always show the dark version of the theme.\"],\"cnGeoo\":[\"Delete\"],\"d3FRkY\":[\"Could not copy. Try again.\"],\"d5oGUo\":[\"Create a new repository on GitHub\"],\"dEgA5A\":[\"Cancel\"],\"dTXUY+\":[\"Confirm account deletion\"],\"dYKrp3\":[\"Hidden from Latest\"],\"dk7TCH\":[\"Permanently delete all data and reset the blog\"],\"drodVV\":[\"No collections yet. Create one first, then add it to your navigation.\"],\"dsWkIw\":[\"Disconnect from GitHub? The webhook will be removed. Your repository content will not be deleted.\"],\"e/tSI5\":[\"Navigation order updated.\"],\"ePK91l\":[\"Edit\"],\"ebQKK7\":[\"Site\"],\"egK+Yy\":[\"Bearer tokens for scripts and automation\"],\"ehj/zN\":[\"Redirect Type\"],\"eneWvv\":[\"Draft\"],\"erTMh7\":[\"Last synced\"],\"f+m8jj\":[\"Feed URL copied.\"],\"f8fH8W\":[\"Design\"],\"fWYqkz\":[\"Code Injection\"],\"gOWiTY\":[\"Load a serif font optimized for Chinese, Japanese, or Korean content.\"],\"gZ5owP\":[\"Search repositories\"],\"gbqbh6\":[\"Safe to leave this page — syncing continues in the background.\"],\"gkFvVN\":[\"Injected before </body>. Use for chat widgets and scripts that should not block page load.\"],\"gtQsRO\":[\"Create Custom URL\"],\"hBO/y4\":[\"Security token expired. Refresh the page and try again.\"],\"hGmyDl\":[\"Tokens let you access the API from scripts, shortcuts, and other tools without signing in.\"],\"hIHkRy\":[\"Connected via GitHub App\"],\"hdSi1b\":[\"Type \",[\"repo\"],\" to confirm\"],\"he3ygx\":[\"Copy\"],\"i0qMbr\":[\"Home\"],\"iEUzMn\":[\"system\"],\"iSLIjg\":[\"Connect\"],\"iVOMRi\":[\"Home settings updated.\"],\"icB4Cv\":[\"Drag links here to show them under the More menu\"],\"iiDXZc\":[\"Displayed at the bottom of all posts and pages.\"],\"j4VrG6\":[\"Download Export ZIP\"],\"j5nQL2\":[\"e.g. iOS Shortcuts\"],\"jUV7CU\":[\"Upload Avatar\"],\"jVUmOK\":[\"Markdown supported\"],\"jgBjXJ\":[\"Revoke this token? Any scripts using it will stop working.\"],\"jpctdh\":[\"View\"],\"k1ifdL\":[\"Processing...\"],\"kMXclu\":[\"Download a site export\"],\"kNiQp6\":[\"Pinned\"],\"kRhzWq\":[\"GitHub Sync\"],\"kVQs7s\":[\"Fine-grained styling overrides\"],\"ke1gWS\":[\"Custom URLs\"],\"kfcRb0\":[\"Avatar\"],\"kxDZ2i\":[\"This code runs on every page of your site.\"],\"l2Op2p\":[\"Query Parameters\"],\"lLW3vJ\":[\"Target Slug\"],\"lYHJih\":[\"Revoke this session? That device will need to sign in again.\"],\"mLOk1i\":[\"Push all posts to GitHub right now instead of waiting for the next automatic sync.\"],\"mSNmrX\":[\"List posts:\"],\"nK07ni\":[\"Choose a typographic direction for your site. Each theme changes both the font pairing and the reading rhythm.\"],\"nbfdhU\":[\"Integrations\"],\"o/vNDE\":[\"lets you override any theme variable.\"],\"oGC9uP\":[\"owner/repo\"],\"oH2JHg\":[\"We'll prefill the name \",[\"name\"],\". The list refreshes on return.\"],\"oKOOsY\":[\"Color Theme\"],\"oL535e\":[\"Not synced yet\"],\"oNA4If\":[\"All collections are already in your navigation.\"],\"pZq3aX\":[\"Upload failed. Please try again.\"],\"pgTIrt\":[\"Choose the GitHub account and repository to sync with this site.\"],\"psoxDF\":[\"That font theme isn't available. Pick another one.\"],\"pvnfJD\":[\"Dark\"],\"q+hNag\":[\"Collection\"],\"r5EW6f\":[\"This repository is already backing up another Jant site (\",[\"host\"],\"). Pick a different repository.\"],\"rEspiY\":[\"Navigation placement updated.\"],\"rFmBG3\":[\"Color theme\"],\"rlonmB\":[\"Couldn't delete. Try again in a moment.\"],\"satWc6\":[\"Main RSS feed\"],\"sgr2wQ\":[\"collection\"],\"sqxcaY\":[\"Created \",[\"date\"]],\"sxkWRg\":[\"Advanced\"],\"t/YqKh\":[\"Remove\"],\"t3hvHq\":[\"Sync Now\"],\"tfDRzk\":[\"Save\"],\"tvgAq5\":[\"No accounts authorized yet\"],\"u1VTd3\":[\"Palette, surface tone, and overall mood\"],\"u3wRF+\":[\"Published\"],\"u6KOjV\":[\"Want more control?\"],\"udPwLB\":[\"Header\"],\"ui6aMF\":[\"These devices are currently signed in to your account. Revoke any session you don't recognize.\"],\"vBEKwo\":[\"Manage this site's active sessions here. Password and hosted access are managed through \",[\"providerLabel\"],\".\"],\"vRldcl\":[\"Typography choices and reading texture\"],\"vSYKYI\":[\"Main feed\"],\"vTuib7\":[\"This controls what /feed returns.\"],\"vXIe7J\":[\"Language\"],\"vmQmHx\":[\"Add custom CSS to override any styles. Use data attributes like [data-page], [data-post], [data-format] to target specific elements.\"],\"vzX5FB\":[\"Delete Account\"],\"w8Rv8T\":[\"Label is required\"],\"wL3cK8\":[\"Latest\"],\"wPmHHc\":[\"Quiet surfaces let writing lead.\"],\"wW6NCp\":[\"Last error\"],\"wc+17X\":[\"/* Your custom CSS here */\"],\"wuLtXn\":[\"No active sessions right now. Signed-in devices show up here.\"],\"xCWek4\":[\"File storage isn't set up. Check your server config.\"],\"xHt036\":[\"Personal Access Token\"],\"xbN8dp\":[\"Soft color should still carry a clear reading rhythm.\"],\"y28hnO\":[\"Post\"],\"y8Md/V\":[\"Language and time updated.\"],\"yNCqOt\":[\"Latest feed\"],\"yQ3kNF\":[\"Type the following phrase to confirm:\"],\"ydq1k2\":[\"Pick an account first\"],\"yjjCV8\":[\"Fixed feed URLs\"],\"yjkELF\":[\"Confirm New Password\"],\"yzF66j\":[\"Link\"],\"z6wakA\":[\"A short intro shown on your home page.\"],\"zEizrk\":[\"Last used \",[\"date\"]],\"zSURJW\":[\"No repositories match.\"],\"zXH2jX\":[\"Language & Time\"],\"zlcDd2\":[\"Delete this custom URL? Visitors using it won't be redirected anymore.\"],\"zwBp5t\":[\"Private\"],\"zxRN6H\":[\"Header links, home feed, and overflow menu\"]}");
|
|
1918
|
+
var messages$2 = JSON.parse("{\"+9JI/F\":[\"Connecting will sync your site onto \",[\"repo\"],\"'s default branch on top of its existing history. Existing files outside Jant's managed paths are kept. This can't be undone.\"],\"+AXdXp\":[\"Label and URL are required\"],\"+K0AvT\":[\"Disconnect\"],\"+zy2Nq\":[\"Type\"],\"/3H2/s\":[\"This hosted site signs in through \",[\"providerLabel\"],\". Manage password and hosted access there.\"],\"/JnyjR\":[\"Toggle built-in navigation items. Their order controls what shows in the header and which feed the homepage opens first.\"],\"/ODeyS\":[\"Sets the content language announced to readers (HTML lang, RSS) and the dashboard language. Any BCP 47 tag is accepted; tags without a dashboard translation fall back to English.\"],\"0OGSSc\":[\"Avatar display updated.\"],\"0UzCUX\":[\"Update the password you use to sign in\"],\"10UtuM\":[\"CJK Font\"],\"14BEca\":[\"Read why\"],\"1F6Mzc\":[\"No navigation items yet. Add links or enable system items below.\"],\"1njn7W\":[\"Light\"],\"2B7t+s\":[\"Sessions and password\"],\"2DoBvq\":[\"Feeds\"],\"2FYpfJ\":[\"More\"],\"2MXb5X\":[\"Field notes on quiet design\"],\"2PTjMB\":[\"I want to delete \",[\"siteName\"]],\"2cFU6q\":[\"Site Footer\"],\"2oWZo7\":[\"Last commit\"],\"2uuy4H\":[\"Connected via Personal Access Token\"],\"35x8eZ\":[\"Showing \",[\"shown\"],\" of \",[\"total\"]],\"3Cw1AI\":[\"Add Collection\"],\"3VrybB\":[\"Redirect\"],\"3Yvsaz\":[\"302 (Temporary)\"],\"3n0zbB\":[\"Session management is off in demo mode. Use the shared demo session instead.\"],\"3sYJi5\":[\"Download a Hugo-compatible archive — host it statically or move to another Jant.\"],\"3wKq0C\":[\"Couldn't save. Try again in a moment.\"],\"49Bsal\":[\"Feed settings updated.\"],\"4Jge8E\":[\"Active Sessions\"],\"4KIa+q\":[\"Export downloaded.\"],\"4cEClj\":[\"Sessions\"],\"4zGJ5E\":[\"Delete Account Permanently\"],\"5QlUIt\":[\"Empty repository. Ready to connect.\"],\"5VQnR3\":[\"Use these when you want a feed URL that never changes.\"],\"5dpcN1\":[\"type to search all\"],\"69OXZB\":[\"Delete Hosted Site\"],\"6ArdBh\":[\"Uses featured posts for /feed.\"],\"6DjeBT\":[\"Demo sites always stay hidden from search engines.\"],\"6FFB7q\":[\"Uses the latest public posts for /feed.\"],\"6K1Vef\":[\"Delete this blog permanently? This cannot be undone.\"],\"6NpNLc\":[\"This repository has existing content.\"],\"6V3Ea3\":[\"Copied\"],\"746NHh\":[\"this blog\"],\"7811AW\":[\"This repository is already backing up this site.\"],\"7FaY4u\":[\"Usage\"],\"7G9YLi\":[\"Allow search engines to index my site\"],\"7MZxzw\":[\"Password changed.\"],\"7vhWI8\":[\"New Password\"],\"7z05Pf\":[\"Open the hosted site controls in \",[\"providerLabel\"],\" to cancel billing or permanently delete this site.\"],\"81nFIS\":[\"Passwords don't match. Make sure both fields are identical.\"],\"87a/t/\":[\"Label\"],\"89Upyo\":[\"That theme isn't available. Pick another one.\"],\"8BfEpW\":[\"Hosted account\"],\"8N/Mcp\":[\"Archive filter parameters (e.g. format=note&view=list)\"],\"8U2Z7f\":[\"New Custom URL\"],\"8ZsakT\":[\"Password\"],\"9+vGLh\":[\"Custom CSS\"],\"9As8Nu\":[\"Create one on GitHub\"],\"9Lsvt5\":[\"Signed in \",[\"date\"]],\"9T7Cwm\":[\"Redirects, vanity paths, and URL control\"],\"9aUyym\":[\"See where you're signed in and revoke old sessions\"],\"A1taO8\":[\"Search\"],\"AeXO77\":[\"Account\"],\"AnY+O9\":[\"Show \\\"Build with Jant\\\" at the bottom of the home page\"],\"ApZDMk\":[\"This is used for your favicon and apple-touch-icon. For best results, upload a square PNG with a solid background at least 512x512 pixels.\"],\"B495Gs\":[\"Archive\"],\"B4ESok\":[\"API reference\"],\"CTAEes\":[\"Select a repository\"],\"CjZZgz\":[\"This repository already has commits\"],\"DCKkhU\":[\"Current Password\"],\"DKKKeF\":[\"Manage password and hosted access in \",[\"providerLabel\"]],\"EO3I6h\":[\"Upload didn't go through. Try again in a moment.\"],\"Enslfm\":[\"Destination\"],\"F7FKwe\":[\"Anything you paste here has full access to your visitors' browsers. Only use code from sources you trust.\"],\"FkMol5\":[\"Featured\"],\"G/1oP+\":[\"Remove the webhook and stop syncing. Your repository content will not be deleted.\"],\"G0qJsQ\":[\"Security token missing. Refresh the page and try again.\"],\"G39wnK\":[\"Back up and sync content with a GitHub repository\"],\"GMMWcy\":[\"Name, metadata, language, and search defaults\"],\"GXsAby\":[\"Revoke\"],\"GxkJXS\":[\"Uploading...\"],\"GzKzUa\":[\"Demo limits\"],\"HKH+W+\":[\"Data\"],\"Hp1l6f\":[\"Current\"],\"HxlY7t\":[\"Changing this updates what subscribers get from /feed.\"],\"HxuOlm\":[\"Site Header\"],\"I6gXOa\":[\"Path\"],\"ID38tA\":[\"Account deletion is off in demo mode. The shared demo resets separately.\"],\"IF9tPu\":[\"When to use site export, database backups, and recovery drills.\"],\"IW5PBo\":[\"Copy Token\"],\"IagCbF\":[\"URL\"],\"IreQBq\":[\"Repository\"],\"J6bLeg\":[\"Add a custom link to any URL\"],\"JL7LF5\":[\"available CSS variables, data attributes, and examples.\"],\"JTviaO\":[\"Manage sign-in security, exports, and irreversible actions.\"],\"JcD7qf\":[\"More actions\"],\"JjX0OO\":[\"Copy your token now — it won't be shown again.\"],\"JrFTcr\":[\"Connecting…\"],\"JuN5GC\":[\"No file selected. Choose a file to upload.\"],\"KDw4GX\":[\"Try again\"],\"KSgo21\":[\"Pick a repository\"],\"KVVYBh\":[\"Add collection to navigation\"],\"KiJn9B\":[\"Note\"],\"L3DEwT\":[\"Remove this avatar? Your favicon and header icon will go back to the default.\"],\"L4t4/q\":[\"March 14\"],\"LdyooL\":[\"link\"],\"M/D8PK\":[\"+ Install on another account\"],\"M/haSd\":[\"Always show the light version of the theme.\"],\"M2kIWU\":[\"Font theme\"],\"M6CbAU\":[\"Toggle edit panel\"],\"Me5t5H\":[\"Connect a GitHub repository to automatically back up your posts as Markdown files. Edits on GitHub sync back to your site.\"],\"MtENL9\":[\"Tune how your site looks, reads, and runs.\"],\"N/8NPV\":[\"Before deleting, download a site export. You won't be able to recover this account after deletion.\"],\"N7UNHY\":[\"Featured feed\"],\"NHnUHF\":[\"Favicon and the profile mark in your header\"],\"NU2Fqi\":[\"Save CSS\"],\"Nldjdr\":[\"No custom URLs yet. Create one to add redirects or custom paths for posts.\"],\"O7rgs6\":[\"Header RSS points to your \",[\"feed\"],\" feed (/feed). Change what /feed returns in General.\"],\"OSJXFg\":[\"Applies to your entire site, including admin pages. Pick a palette, then choose whether it follows the system or stays fixed.\"],\"Ox3+3h\":[\"No matches.\"],\"PEUV5I\":[\"Code injection updated.\"],\"PZ7HJ8\":[\"Blog Avatar\"],\"Pwqkdw\":[\"Loading…\"],\"PxJ9W6\":[\"Generate Token\"],\"Q/6Y+2\":[\"Needs Contents (read/write) and Webhooks (read/write) on the target repository.\"],\"Q30z/l\":[\"Remove this collection from navigation? The collection itself won't be deleted.\"],\"Q99OtV\":[\"Pin a collection to your navigation bar. An asterisk (*) appears next to collections updated in the last 48 hours.\"],\"QZmz0H\":[\"Built-in links\"],\"Qnrzvb\":[\"Active Tokens\"],\"R6Z4LE\":[\"Download failed. Please try again.\"],\"R9Khdg\":[\"Auto\"],\"RxsRD6\":[\"Time Zone\"],\"SJmfuf\":[\"Site Name\"],\"SKZhW9\":[\"Token name\"],\"SVQQPe\":[\"Couldn't connect. Check the error and try again.\"],\"TpF3v+\":[\"Injected before </head>. Use for analytics, custom meta tags, and styles that must load early.\"],\"Tz0i8g\":[\"Settings\"],\"UFK415\":[\"Site-wide HTML for analytics and widgets\"],\"Uj/btJ\":[\"Display avatar in my site header\"],\"UsODUn\":[\"Select an account\"],\"UxKoFf\":[\"Navigation\"],\"V+bhUy\":[\"Install GitHub App\"],\"V4WsyL\":[\"Add Link\"],\"V5pZwT\":[\"Search settings updated.\"],\"VXUPla\":[\"Connect with GitHub App\"],\"VhMDMg\":[\"Change Password\"],\"Vn3jYy\":[\"Navigation items\"],\"VoZYGU\":[\"This will permanently delete all your data — posts, media, collections, settings, and your account. Your blog will be reset to its initial setup state. This cannot be undone.\"],\"Weq9zb\":[\"General\"],\"Wi9i06\":[\"Follow each visitor's system preference.\"],\"Wx1M8N\":[\"Install the GitHub App to grant access without managing personal tokens. Permissions are scoped per repository and revocable from GitHub.\"],\"X+8FMk\":[\"Current password doesn't match. Try again.\"],\"X1G9eY\":[\"Navigation Preview\"],\"X9Hujr\":[\"Manual Push\"],\"XtBJV8\":[\"Checking repository…\"],\"Xtc16w\":[\"Refresh repository list\"],\"Y/F35r\":[\"Create a post with curl:\"],\"YF6zHf\":[\"Site settings updated.\"],\"YdG2RF\":[\"Export Site\"],\"YwhjRx\":[\"Manage Account\"],\"ZDY7Fy\":[\"Syncing…\"],\"ZQKLI1\":[\"Danger Zone\"],\"ZS/CBL\":[\"Delete this navigation link? Visitors won't see it in your site header anymore.\"],\"ZhhOwV\":[\"Quote\"],\"ZiooJI\":[\"API Tokens\"],\"Zm7Qb0\":[\"Backup & Restore Guide\"],\"ZmUkwN\":[\"Add custom link to navigation\"],\"a14mj8\":[\"Unknown device\"],\"a3LDKx\":[\"Security\"],\"aAIQg2\":[\"Appearance\"],\"aFkzVF\":[\"The slug of the target post or collection\"],\"alKG0+\":[\"Font Theme\"],\"anibOb\":[\"About this blog\"],\"any7NR\":[\"Theming guide\"],\"b+/jO6\":[\"301 (Permanent)\"],\"bHOiy1\":[\"Password changes are off in demo mode. Sign in with the shared demo credentials.\"],\"bHYIks\":[\"Sign Out\"],\"bmrL08\":[\"Demo mode hides sessions, password changes, and account deletion. Export still works.\"],\"c3MN2z\":[\"all available endpoints and request formats.\"],\"cSDy01\":[\"Custom CSS updated.\"],\"clzoNp\":[\"Always show the dark version of the theme.\"],\"cnGeoo\":[\"Delete\"],\"d3FRkY\":[\"Could not copy. Try again.\"],\"d5oGUo\":[\"Create a new repository on GitHub\"],\"dEgA5A\":[\"Cancel\"],\"dTXUY+\":[\"Confirm account deletion\"],\"dYKrp3\":[\"Hidden from Latest\"],\"dk7TCH\":[\"Permanently delete all data and reset the blog\"],\"drodVV\":[\"No collections yet. Create one first, then add it to your navigation.\"],\"dsWkIw\":[\"Disconnect from GitHub? The webhook will be removed. Your repository content will not be deleted.\"],\"e/tSI5\":[\"Navigation order updated.\"],\"ePK91l\":[\"Edit\"],\"ebQKK7\":[\"Site\"],\"egK+Yy\":[\"Bearer tokens for scripts and automation\"],\"ehj/zN\":[\"Redirect Type\"],\"eneWvv\":[\"Draft\"],\"erTMh7\":[\"Last synced\"],\"f+m8jj\":[\"Feed URL copied.\"],\"f8fH8W\":[\"Design\"],\"fWYqkz\":[\"Code Injection\"],\"gOWiTY\":[\"Load a serif font optimized for Chinese, Japanese, or Korean content.\"],\"gZ5owP\":[\"Search repositories\"],\"gbqbh6\":[\"Safe to leave this page — syncing continues in the background.\"],\"gkFvVN\":[\"Injected before </body>. Use for chat widgets and scripts that should not block page load.\"],\"gtQsRO\":[\"Create Custom URL\"],\"hBO/y4\":[\"Security token expired. Refresh the page and try again.\"],\"hGmyDl\":[\"Tokens let you access the API from scripts, shortcuts, and other tools without signing in.\"],\"hIHkRy\":[\"Connected via GitHub App\"],\"hdSi1b\":[\"Type \",[\"repo\"],\" to confirm\"],\"he3ygx\":[\"Copy\"],\"i0qMbr\":[\"Home\"],\"iEUzMn\":[\"system\"],\"iSLIjg\":[\"Connect\"],\"iVOMRi\":[\"Home settings updated.\"],\"icB4Cv\":[\"Drag links here to show them under the More menu\"],\"ihn4zD\":[\"Search…\"],\"iiDXZc\":[\"Displayed at the bottom of all posts and pages.\"],\"j4VrG6\":[\"Download Export ZIP\"],\"j5nQL2\":[\"e.g. iOS Shortcuts\"],\"jUV7CU\":[\"Upload Avatar\"],\"jVUmOK\":[\"Markdown supported\"],\"jgBjXJ\":[\"Revoke this token? Any scripts using it will stop working.\"],\"jpctdh\":[\"View\"],\"k1ifdL\":[\"Processing...\"],\"kMXclu\":[\"Download a site export\"],\"kNiQp6\":[\"Pinned\"],\"kRhzWq\":[\"GitHub Sync\"],\"kVQs7s\":[\"Fine-grained styling overrides\"],\"ke1gWS\":[\"Custom URLs\"],\"kfcRb0\":[\"Avatar\"],\"kxDZ2i\":[\"This code runs on every page of your site.\"],\"l2Op2p\":[\"Query Parameters\"],\"lLW3vJ\":[\"Target Slug\"],\"lYHJih\":[\"Revoke this session? That device will need to sign in again.\"],\"mLOk1i\":[\"Push all posts to GitHub right now instead of waiting for the next automatic sync.\"],\"mSNmrX\":[\"List posts:\"],\"nK07ni\":[\"Choose a typographic direction for your site. Each theme changes both the font pairing and the reading rhythm.\"],\"o/vNDE\":[\"lets you override any theme variable.\"],\"oGC9uP\":[\"owner/repo\"],\"oH2JHg\":[\"We'll prefill the name \",[\"name\"],\". The list refreshes on return.\"],\"oKOOsY\":[\"Color Theme\"],\"oL535e\":[\"Not synced yet\"],\"oNA4If\":[\"All collections are already in your navigation.\"],\"pZq3aX\":[\"Upload failed. Please try again.\"],\"pgTIrt\":[\"Choose the GitHub account and repository to sync with this site.\"],\"psoxDF\":[\"That font theme isn't available. Pick another one.\"],\"pvnfJD\":[\"Dark\"],\"q+hNag\":[\"Collection\"],\"r5EW6f\":[\"This repository is already backing up another Jant site (\",[\"host\"],\"). Pick a different repository.\"],\"rEspiY\":[\"Navigation placement updated.\"],\"rFmBG3\":[\"Color theme\"],\"rlonmB\":[\"Couldn't delete. Try again in a moment.\"],\"satWc6\":[\"Main RSS feed\"],\"sgr2wQ\":[\"collection\"],\"sqxcaY\":[\"Created \",[\"date\"]],\"sxkWRg\":[\"Advanced\"],\"t/YqKh\":[\"Remove\"],\"t3hvHq\":[\"Sync Now\"],\"tfDRzk\":[\"Save\"],\"tvgAq5\":[\"No accounts authorized yet\"],\"u1VTd3\":[\"Palette, surface tone, and overall mood\"],\"u3wRF+\":[\"Published\"],\"u6KOjV\":[\"Want more control?\"],\"udPwLB\":[\"Header\"],\"ui6aMF\":[\"These devices are currently signed in to your account. Revoke any session you don't recognize.\"],\"vBEKwo\":[\"Manage this site's active sessions here. Password and hosted access are managed through \",[\"providerLabel\"],\".\"],\"vRldcl\":[\"Typography choices and reading texture\"],\"vSYKYI\":[\"Main feed\"],\"vTuib7\":[\"This controls what /feed returns.\"],\"vXIe7J\":[\"Language\"],\"vmQmHx\":[\"Add custom CSS to override any styles. Use data attributes like [data-page], [data-post], [data-format] to target specific elements.\"],\"vzX5FB\":[\"Delete Account\"],\"w8Rv8T\":[\"Label is required\"],\"wL3cK8\":[\"Latest\"],\"wPmHHc\":[\"Quiet surfaces let writing lead.\"],\"wW6NCp\":[\"Last error\"],\"wc+17X\":[\"/* Your custom CSS here */\"],\"wuLtXn\":[\"No active sessions right now. Signed-in devices show up here.\"],\"xCWek4\":[\"File storage isn't set up. Check your server config.\"],\"xHt036\":[\"Personal Access Token\"],\"xbN8dp\":[\"Soft color should still carry a clear reading rhythm.\"],\"y28hnO\":[\"Post\"],\"y8Md/V\":[\"Language and time updated.\"],\"yNCqOt\":[\"Latest feed\"],\"yQ3kNF\":[\"Type the following phrase to confirm:\"],\"ydq1k2\":[\"Pick an account first\"],\"yjjCV8\":[\"Fixed feed URLs\"],\"yjkELF\":[\"Confirm New Password\"],\"yzF66j\":[\"Link\"],\"z6wakA\":[\"A short intro shown on your home page.\"],\"zEizrk\":[\"Last used \",[\"date\"]],\"zSURJW\":[\"No repositories match.\"],\"zXH2jX\":[\"Language & Time\"],\"zlcDd2\":[\"Delete this custom URL? Visitors using it won't be redirected anymore.\"],\"zwBp5t\":[\"Private\"],\"zxRN6H\":[\"Header links, home feed, and overflow menu\"]}");
|
|
1855
1919
|
//#endregion
|
|
1856
1920
|
//#region src/i18n/locales/settings/zh-Hans.ts
|
|
1857
|
-
var messages$1 = JSON.parse("{\"+9JI/F\":[\"连接后会将你的网站同步到 \",[\"repo\"],\" 的默认分支,并追加到其现有历史之上。Jant 管理路径之外的现有文件会被保留。此操作无法撤销。\"],\"+AXdXp\":[\"标签和 URL 为必填项\"],\"+K0AvT\":[\"断开连接\"],\"+zy2Nq\":[\"类型\"],\"/3H2/s\":[\"此托管站点通过 \",[\"providerLabel\"],\" 登录。请在那里管理密码和托管访问权限。\"],\"/JnyjR\":[\"切换内置导航项。它们的顺序决定页眉显示的内容以及首页显示哪个视图。\"],\"0OGSSc\":[\"头像显示已更新.\"],\"0UzCUX\":[\"更新您用于登录的密码\"],\"10UtuM\":[\"CJK 字体\"],\"14BEca\":[\"了解原因\"],\"1F6Mzc\":[\"当前还没有导航项目。添加链接或在下方启用系统项目。\"],\"1njn7W\":[\"浅色\"],\"2B7t+s\":[\"会话与密码\"],\"2DoBvq\":[\"订阅源\"],\"2FYpfJ\":[\"更多\"],\"2MXb5X\":[\"关于静谧设计的笔记\"],\"2PTjMB\":[\"我想删除 \",[\"siteName\"]],\"2cFU6q\":[\"网站页脚\"],\"2oWZo7\":[\"最近一次提交\"],\"2uuy4H\":[\"通过个人访问令牌连接\"],\"35x8eZ\":[\"显示 \",[\"shown\"],\" 共 \",[\"total\"]],\"3Cw1AI\":[\"添加合集\"],\"3VrybB\":[\"重定向\"],\"3Yvsaz\":[\"302 (临时)\"],\"3n0zbB\":[\"会话管理在演示模式下已关闭。请使用共享的演示会话。\"],\"3sYJi5\":[\"下载一个与 Hugo 兼容的归档 — 将其静态托管或迁移到另一个 Jant。\"],\"3wKq0C\":[\"保存失败。请稍后再试。\"],\"49Bsal\":[\"订阅源设置已更新。\"],\"4Jge8E\":[\"活动会话\"],\"4KIa+q\":[\"导出文件已下载.\"],\"4cEClj\":[\"会话\"],\"4zGJ5E\":[\"永久删除账号\"],\"5QlUIt\":[\"仓库为空。准备连接。\"],\"5VQnR3\":[\"当你想要一个永远不变的订阅源 URL 时使用它们。\"],\"5dpcN1\":[\"输入以搜索全部\"],\"69OXZB\":[\"删除托管站点\"],\"6ArdBh\":[\"将精选文章用于 /feed。\"],\"6DjeBT\":[\"演示站点始终对搜索引擎隐藏。\"],\"6FFB7q\":[\"为 /feed 使用最新的公开帖子。\"],\"6K1Vef\":[\"永久删除此博客?此操作不可撤销。\"],\"6NpNLc\":[\"此仓库已有内容。\"],\"6V3Ea3\":[\"已复制\"],\"746NHh\":[\"此博客\"],\"7811AW\":[\"此仓库已在备份此站点。\"],\"7FaY4u\":[\"用法\"],\"7G9YLi\":[\"允许搜索引擎索引我的网站\"],\"7MZxzw\":[\"密码已更改.\"],\"7vhWI8\":[\"新密码\"],\"7z05Pf\":[\"在 \",[\"providerLabel\"],\" 打开托管站点控制以取消计费或永久删除此站点。\"],\"81nFIS\":[\"密码不匹配。请确保两个字段相同。\"],\"87a/t/\":[\"标签\"],\"89Upyo\":[\"该主题不可用。请选择其他主题。\"],\"8BfEpW\":[\"托管账户\"],\"8N/Mcp\":[\"归档 筛选参数 (例如 format=笔记&view=list)\"],\"8U2Z7f\":[\"新建自定义 URL\"],\"8ZsakT\":[\"密码\"],\"9+vGLh\":[\"自定义 CSS\"],\"9As8Nu\":[\"在 GitHub 上创建一个\"],\"9Lsvt5\":[\"于 \",[\"date\"],\" 登录\"],\"9T7Cwm\":[\"重定向、个性化路径和 URL 控制\"],\"9aUyym\":[\"查看你的登录位置并撤销旧会话\"],\"A1taO8\":[\"搜索\"],\"AeXO77\":[\"账户\"],\"AnY+O9\":[\"在主页底部显示 \\\"Build with Jant\\\"\"],\"ApZDMk\":[\"此图用于您的 favicon 和 apple-touch-icon。为获得最佳效果,请上传至少 512×512 像素、纯色背景的方形 PNG。\"],\"B495Gs\":[\"归档\"],\"B4ESok\":[\"API 参考\"],\"CTAEes\":[\"选择仓库\"],\"CjZZgz\":[\"该仓库已有提交\"],\"DCKkhU\":[\"当前密码\"],\"DKKKeF\":[\"在 \",[\"providerLabel\"],\" 管理密码和托管访问\"],\"
|
|
1921
|
+
var messages$1 = JSON.parse("{\"+9JI/F\":[\"连接后会将你的网站同步到 \",[\"repo\"],\" 的默认分支,并追加到其现有历史之上。Jant 管理路径之外的现有文件会被保留。此操作无法撤销。\"],\"+AXdXp\":[\"标签和 URL 为必填项\"],\"+K0AvT\":[\"断开连接\"],\"+zy2Nq\":[\"类型\"],\"/3H2/s\":[\"此托管站点通过 \",[\"providerLabel\"],\" 登录。请在那里管理密码和托管访问权限。\"],\"/JnyjR\":[\"切换内置导航项。它们的顺序决定页眉显示的内容以及首页显示哪个视图。\"],\"/ODeyS\":[\"声明给读者的内容语言(HTML lang、RSS),同时驱动后台界面的语言。可填任意 BCP 47 标签;没有对应翻译时后台会回退为英文。\"],\"0OGSSc\":[\"头像显示已更新.\"],\"0UzCUX\":[\"更新您用于登录的密码\"],\"10UtuM\":[\"CJK 字体\"],\"14BEca\":[\"了解原因\"],\"1F6Mzc\":[\"当前还没有导航项目。添加链接或在下方启用系统项目。\"],\"1njn7W\":[\"浅色\"],\"2B7t+s\":[\"会话与密码\"],\"2DoBvq\":[\"订阅源\"],\"2FYpfJ\":[\"更多\"],\"2MXb5X\":[\"关于静谧设计的笔记\"],\"2PTjMB\":[\"我想删除 \",[\"siteName\"]],\"2cFU6q\":[\"网站页脚\"],\"2oWZo7\":[\"最近一次提交\"],\"2uuy4H\":[\"通过个人访问令牌连接\"],\"35x8eZ\":[\"显示 \",[\"shown\"],\" 共 \",[\"total\"]],\"3Cw1AI\":[\"添加合集\"],\"3VrybB\":[\"重定向\"],\"3Yvsaz\":[\"302 (临时)\"],\"3n0zbB\":[\"会话管理在演示模式下已关闭。请使用共享的演示会话。\"],\"3sYJi5\":[\"下载一个与 Hugo 兼容的归档 — 将其静态托管或迁移到另一个 Jant。\"],\"3wKq0C\":[\"保存失败。请稍后再试。\"],\"49Bsal\":[\"订阅源设置已更新。\"],\"4Jge8E\":[\"活动会话\"],\"4KIa+q\":[\"导出文件已下载.\"],\"4cEClj\":[\"会话\"],\"4zGJ5E\":[\"永久删除账号\"],\"5QlUIt\":[\"仓库为空。准备连接。\"],\"5VQnR3\":[\"当你想要一个永远不变的订阅源 URL 时使用它们。\"],\"5dpcN1\":[\"输入以搜索全部\"],\"69OXZB\":[\"删除托管站点\"],\"6ArdBh\":[\"将精选文章用于 /feed。\"],\"6DjeBT\":[\"演示站点始终对搜索引擎隐藏。\"],\"6FFB7q\":[\"为 /feed 使用最新的公开帖子。\"],\"6K1Vef\":[\"永久删除此博客?此操作不可撤销。\"],\"6NpNLc\":[\"此仓库已有内容。\"],\"6V3Ea3\":[\"已复制\"],\"746NHh\":[\"此博客\"],\"7811AW\":[\"此仓库已在备份此站点。\"],\"7FaY4u\":[\"用法\"],\"7G9YLi\":[\"允许搜索引擎索引我的网站\"],\"7MZxzw\":[\"密码已更改.\"],\"7vhWI8\":[\"新密码\"],\"7z05Pf\":[\"在 \",[\"providerLabel\"],\" 打开托管站点控制以取消计费或永久删除此站点。\"],\"81nFIS\":[\"密码不匹配。请确保两个字段相同。\"],\"87a/t/\":[\"标签\"],\"89Upyo\":[\"该主题不可用。请选择其他主题。\"],\"8BfEpW\":[\"托管账户\"],\"8N/Mcp\":[\"归档 筛选参数 (例如 format=笔记&view=list)\"],\"8U2Z7f\":[\"新建自定义 URL\"],\"8ZsakT\":[\"密码\"],\"9+vGLh\":[\"自定义 CSS\"],\"9As8Nu\":[\"在 GitHub 上创建一个\"],\"9Lsvt5\":[\"于 \",[\"date\"],\" 登录\"],\"9T7Cwm\":[\"重定向、个性化路径和 URL 控制\"],\"9aUyym\":[\"查看你的登录位置并撤销旧会话\"],\"A1taO8\":[\"搜索\"],\"AeXO77\":[\"账户\"],\"AnY+O9\":[\"在主页底部显示 \\\"Build with Jant\\\"\"],\"ApZDMk\":[\"此图用于您的 favicon 和 apple-touch-icon。为获得最佳效果,请上传至少 512×512 像素、纯色背景的方形 PNG。\"],\"B495Gs\":[\"归档\"],\"B4ESok\":[\"API 参考\"],\"CTAEes\":[\"选择仓库\"],\"CjZZgz\":[\"该仓库已有提交\"],\"DCKkhU\":[\"当前密码\"],\"DKKKeF\":[\"在 \",[\"providerLabel\"],\" 管理密码和托管访问\"],\"EO3I6h\":[\"上传未成功。请稍后再试。\"],\"Enslfm\":[\"目标地址\"],\"F7FKwe\":[\"你在此处粘贴的任何内容都将完全访问访客的浏览器。仅使用来自你信任的来源的代码。\"],\"FkMol5\":[\"精选\"],\"G/1oP+\":[\"移除 webhook 并停止同步。您的仓库内容不会被删除。\"],\"G0qJsQ\":[\"缺少安全令牌。刷新页面后重试。\"],\"G39wnK\":[\"将内容备份并与 GitHub 仓库同步\"],\"GMMWcy\":[\"名称、元数据、语言和搜索默认设置\"],\"GXsAby\":[\"撤销\"],\"GxkJXS\":[\"正在上传...\"],\"GzKzUa\":[\"演示限制\"],\"HKH+W+\":[\"数据\"],\"Hp1l6f\":[\"当前\"],\"HxlY7t\":[\"更改此项会更新订阅者从 /feed 获取的内容。\"],\"HxuOlm\":[\"网站头部\"],\"I6gXOa\":[\"路径\"],\"ID38tA\":[\"演示模式下已禁用账号删除。共享演示会单独重置。\"],\"IF9tPu\":[\"何时使用站点导出、数据库备份和恢复演练。\"],\"IW5PBo\":[\"复制令牌\"],\"IagCbF\":[\"网址\"],\"IreQBq\":[\"仓库\"],\"J6bLeg\":[\"向任意 URL 添加自定义链接\"],\"JL7LF5\":[\"可用的 CSS 变量, 数据属性, 和 示例.\"],\"JTviaO\":[\"管理登录安全、导出和不可逆操作.\"],\"JcD7qf\":[\"更多操作\"],\"JjX0OO\":[\"现在复制您的令牌 — 它不会再次显示。\"],\"JrFTcr\":[\"连接中…\"],\"JuN5GC\":[\"未选择文件。请选择要上传的文件。\"],\"KDw4GX\":[\"重试\"],\"KSgo21\":[\"选择仓库\"],\"KVVYBh\":[\"向导航添加合集\"],\"KiJn9B\":[\"笔记\"],\"L3DEwT\":[\"移除此头像?您的网站图标和页眉图标将恢复为默认设置。\"],\"L4t4/q\":[\"3月14日\"],\"LdyooL\":[\"链接\"],\"M/D8PK\":[\"+ 在其他帐户上安装\"],\"M/haSd\":[\"始终显示浅色主题。\"],\"M2kIWU\":[\"字体主题\"],\"M6CbAU\":[\"切换编辑面板\"],\"Me5t5H\":[\"将 GitHub 仓库连接以自动将您的文章备份为 Markdown 文件。您在 GitHub 上的编辑会同步回您的网站。\"],\"MtENL9\":[\"调整你的网站的外观、阅读体验和运行方式。\"],\"N/8NPV\":[\"在删除之前,请下载站点导出。删除后将无法恢复此账户。\"],\"N7UNHY\":[\"精选订阅源\"],\"NHnUHF\":[\"Favicon 和页眉中的个人标识\"],\"NU2Fqi\":[\"保存 CSS\"],\"Nldjdr\":[\"尚无自定义 URL。创建一个以便为文章添加重定向或自定义路径。\"],\"O7rgs6\":[\"页眉 RSS 指向你的 \",[\"feed\"],\" 源 (/feed)。在 常规 中更改 /feed 返回的内容。\"],\"OSJXFg\":[\"应用于整个站点,包括管理页面。选择一个调色板,然后选择它是随系统变化还是保持固定。\"],\"Ox3+3h\":[\"无匹配结果。\"],\"PEUV5I\":[\"代码注入已更新。\"],\"PZ7HJ8\":[\"博客头像\"],\"Pwqkdw\":[\"正在加载…\"],\"PxJ9W6\":[\"生成令牌\"],\"Q/6Y+2\":[\"需要对目标仓库的 Contents(读/写)和 Webhooks(读/写)。\"],\"Q30z/l\":[\"要从导航中移除此合集吗?合集本身不会被删除。\"],\"Q99OtV\":[\"将合集固定到导航栏。在过去 48 小时内更新的合集旁会出现一个 * 号。\"],\"QZmz0H\":[\"内置链接\"],\"Qnrzvb\":[\"活动令牌\"],\"R6Z4LE\":[\"下载失败。请重试。\"],\"R9Khdg\":[\"自动\"],\"RxsRD6\":[\"时区\"],\"SJmfuf\":[\"站点名称\"],\"SKZhW9\":[\"令牌名称\"],\"SVQQPe\":[\"无法连接。检查错误并重试。\"],\"TpF3v+\":[\"注入到 </head> 之前。用于分析、自定义元标签以及必须尽早加载的样式。\"],\"Tz0i8g\":[\"设置\"],\"UFK415\":[\"用于分析和小部件的全站 HTML\"],\"Uj/btJ\":[\"在我的站点页眉显示头像\"],\"UsODUn\":[\"选择账户\"],\"UxKoFf\":[\"导航\"],\"V+bhUy\":[\"安装 GitHub App\"],\"V4WsyL\":[\"添加链接\"],\"V5pZwT\":[\"搜索设置已更新。\"],\"VXUPla\":[\"使用 GitHub 应用连接\"],\"VhMDMg\":[\"更改密码\"],\"Vn3jYy\":[\"导航项\"],\"VoZYGU\":[\"这将永久删除您所有的数据 — 帖子、媒体、合集、设置和您的账户。您的博客将重置为初始设置状态。此操作不可撤销。\"],\"Weq9zb\":[\"常规\"],\"Wi9i06\":[\"遵循每位访客的系统偏好。\"],\"Wx1M8N\":[\"安装 GitHub App 以在无需管理个人令牌的情况下授予访问权限。权限按仓库范围授予,可在 GitHub 上撤销。\"],\"X+8FMk\":[\"当前密码不正确。请重试。\"],\"X1G9eY\":[\"导航预览\"],\"X9Hujr\":[\"手动推送\"],\"XtBJV8\":[\"正在检查仓库…\"],\"Xtc16w\":[\"刷新仓库列表\"],\"Y/F35r\":[\"使用 curl 创建帖子:\"],\"YF6zHf\":[\"站点设置已更新.\"],\"YdG2RF\":[\"导出站点\"],\"YwhjRx\":[\"管理账户\"],\"ZDY7Fy\":[\"正在同步…\"],\"ZQKLI1\":[\"危险操作\"],\"ZS/CBL\":[\"删除此导航链接? 访客将不再在您网站的页眉中看到它。\"],\"ZhhOwV\":[\"引用 (Jant 的帖子格式之一。)\"],\"ZiooJI\":[\"API 令牌\"],\"Zm7Qb0\":[\"备份与恢复指南\"],\"ZmUkwN\":[\"向导航添加自定义链接\"],\"a14mj8\":[\"未知设备\"],\"a3LDKx\":[\"安全\"],\"aAIQg2\":[\"外观\"],\"aFkzVF\":[\"目标文章或合集的 slug\"],\"alKG0+\":[\"字体主题\"],\"anibOb\":[\"关于本博客\"],\"any7NR\":[\"主题指南\"],\"b+/jO6\":[\"301 (永久)\"],\"bHOiy1\":[\"演示模式下已禁用密码更改。请使用共享的演示凭证登录。\"],\"bHYIks\":[\"退出登录\"],\"bmrL08\":[\"演示模式会隐藏会话、密码更改和账号删除。导出仍然可用.\"],\"c3MN2z\":[\"所有可用的端点和请求格式。\"],\"cSDy01\":[\"自定义 CSS 已更新.\"],\"clzoNp\":[\"始终显示暗色主题.\"],\"cnGeoo\":[\"删除\"],\"d3FRkY\":[\"无法复制。请再试一次。\"],\"d5oGUo\":[\"在 GitHub 上创建新仓库\"],\"dEgA5A\":[\"取消\"],\"dTXUY+\":[\"确认删除账户\"],\"dYKrp3\":[\"从最新中隐藏 (不出现在 Latest 中,但仍可通过固定链接和集合访问的状态。)\"],\"dk7TCH\":[\"永久删除所有数据并重置博客\"],\"drodVV\":[\"还没有合集。请先创建一个,然后将其添加到你的导航中。\"],\"dsWkIw\":[\"要与 GitHub 断开连接吗?该 webhook 将被移除。您的仓库内容不会被删除。\"],\"e/tSI5\":[\"导航顺序已更新。\"],\"ePK91l\":[\"编辑\"],\"ebQKK7\":[\"站点\"],\"egK+Yy\":[\"用于脚本和自动化的 Bearer 令牌\"],\"ehj/zN\":[\"重定向类型\"],\"eneWvv\":[\"草稿\"],\"erTMh7\":[\"上次同步\"],\"f+m8jj\":[\"订阅源 URL 已复制。\"],\"f8fH8W\":[\"设计\"],\"fWYqkz\":[\"代码注入\"],\"gOWiTY\":[\"加载针对中文、日文或韩文内容优化的衬线字体。\"],\"gZ5owP\":[\"搜索仓库\"],\"gbqbh6\":[\"放心离开此页面 — 同步会在后台继续进行。\"],\"gkFvVN\":[\"注入到 </body> 之前。用于聊天小部件和不应阻塞页面加载的脚本。\"],\"gtQsRO\":[\"创建自定义 URL\"],\"hBO/y4\":[\"安全令牌已过期。刷新页面后重试。\"],\"hGmyDl\":[\"令牌让您无需登录即可从脚本、快捷方式和其他工具访问 API。\"],\"hIHkRy\":[\"已通过 GitHub App 连接\"],\"hdSi1b\":[\"输入 \",[\"repo\"],\" 以确认\"],\"he3ygx\":[\"复制\"],\"i0qMbr\":[\"首页\"],\"iEUzMn\":[\"系统\"],\"iSLIjg\":[\"连接\"],\"iVOMRi\":[\"主页设置已更新.\"],\"icB4Cv\":[\"将链接拖到此处以在更多菜单下显示它们\"],\"ihn4zD\":[\"搜索…\"],\"iiDXZc\":[\"显示在所有文章和页面的底部。\"],\"j4VrG6\":[\"下载导出 ZIP\"],\"j5nQL2\":[\"例如 iOS Shortcuts\"],\"jUV7CU\":[\"上传头像\"],\"jVUmOK\":[\"支持 Markdown\"],\"jgBjXJ\":[\"撤销此令牌?任何使用它的脚本将停止工作。\"],\"jpctdh\":[\"查看\"],\"k1ifdL\":[\"处理中...\"],\"kMXclu\":[\"下载网站导出\"],\"kNiQp6\":[\"已置顶\"],\"kRhzWq\":[\"GitHub 同步\"],\"kVQs7s\":[\"细粒度样式覆盖\"],\"ke1gWS\":[\"自定义 URL\"],\"kfcRb0\":[\"头像\"],\"kxDZ2i\":[\"此代码将在您网站的每个页面上运行。\"],\"l2Op2p\":[\"查询参数\"],\"lLW3vJ\":[\"目标 slug\"],\"lYHJih\":[\"撤销此会话? 该设备需要重新登录.\"],\"mLOk1i\":[\"立即将所有文章推送到 GitHub,而不是等待下一次自动同步。\"],\"mSNmrX\":[\"列出帖子:\"],\"nK07ni\":[\"为您的网站选择一种排版方向。每个主题都会同时改变字体搭配和阅读节奏。\"],\"o/vNDE\":[\"允许您覆盖任何主题变量.\"],\"oGC9uP\":[\"owner/repo\"],\"oH2JHg\":[\"我们会预先填充名称 \",[\"name\"],\"。返回时列表会刷新。\"],\"oKOOsY\":[\"颜色主题\"],\"oL535e\":[\"尚未同步\"],\"oNA4If\":[\"所有合集已在您的导航中。\"],\"pZq3aX\":[\"上传失败。请重试。\"],\"pgTIrt\":[\"选择要与此站点同步的 GitHub 账户和仓库。\"],\"psoxDF\":[\"该字体主题不可用。请选择另一个。\"],\"pvnfJD\":[\"深色\"],\"q+hNag\":[\"合集\"],\"r5EW6f\":[\"此仓库已在为另一个 Jant 站点 (\",[\"host\"],\") 进行备份。请选择其他仓库。\"],\"rEspiY\":[\"导航位置已更新.\"],\"rFmBG3\":[\"配色主题\"],\"rlonmB\":[\"删除失败。请稍后再试。\"],\"satWc6\":[\"主 RSS 源\"],\"sgr2wQ\":[\"合集\"],\"sqxcaY\":[\"创建于 \",[\"date\"]],\"sxkWRg\":[\"高级\"],\"t/YqKh\":[\"移除\"],\"t3hvHq\":[\"立即同步\"],\"tfDRzk\":[\"保存\"],\"tvgAq5\":[\"尚未授权任何账户\"],\"u1VTd3\":[\"调色板、表面色调与整体氛围\"],\"u3wRF+\":[\"已发布\"],\"u6KOjV\":[\"想要更多控制?\"],\"udPwLB\":[\"页眉\"],\"ui6aMF\":[\"以下设备当前已登录到您的帐户。撤销任何您不认识的会话。\"],\"vBEKwo\":[\"在此管理本站点的活动会话。密码和托管访问通过 \",[\"providerLabel\"],\" 管理。\"],\"vRldcl\":[\"排版选项与阅读质感\"],\"vSYKYI\":[\"主订阅源\"],\"vTuib7\":[\"这将控制 /feed 返回的内容。\"],\"vXIe7J\":[\"语言\"],\"vmQmHx\":[\"添加自定义 CSS 以覆盖任何样式. 使用数据属性如 [data-page], [data-post], [data-format] 来定位特定元素.\"],\"vzX5FB\":[\"删除账号\"],\"w8Rv8T\":[\"标签为必填项\"],\"wL3cK8\":[\"最新\"],\"wPmHHc\":[\"低调的界面让写作成为焦点.\"],\"wW6NCp\":[\"上次错误\"],\"wc+17X\":[\"/* 在此填写您的自定义 CSS */\"],\"wuLtXn\":[\"当前没有活动会话。 已登录的设备会显示在此处。\"],\"xCWek4\":[\"文件存储尚未设置。请检查服务器配置。\"],\"xHt036\":[\"个人访问令牌\"],\"xbN8dp\":[\"柔和的颜色仍应保持清晰的阅读节奏。\"],\"y28hnO\":[\"文章\"],\"y8Md/V\":[\"语言和时间已更新。\"],\"yNCqOt\":[\"最新订阅源\"],\"yQ3kNF\":[\"输入以下短语以确认:\"],\"ydq1k2\":[\"请先选择一个账号\"],\"yjjCV8\":[\"固定订阅源 URL\"],\"yjkELF\":[\"确认新密码\"],\"yzF66j\":[\"链接\"],\"z6wakA\":[\"在您的主页上显示的简短介绍.\"],\"zEizrk\":[\"上次使用 \",[\"date\"]],\"zSURJW\":[\"没有匹配的仓库。\"],\"zXH2jX\":[\"语言与时间\"],\"zlcDd2\":[\"要删除此自定义 URL 吗?使用它的访问者将不再被重定向。\"],\"zwBp5t\":[\"私有\"],\"zxRN6H\":[\"页眉链接、首页信息流和溢出菜单\"]}");
|
|
1858
1922
|
//#endregion
|
|
1859
1923
|
//#region src/i18n/locales/settings/zh-Hant.ts
|
|
1860
|
-
var messages = JSON.parse("{\"+9JI/F\":[\"連線後會將您的網站同步到 \",[\"repo\"],\" 的預設分支,並疊加在其現有歷史之上。Jant 管理路徑外的既有檔案會保留。此操作無法復原。\"],\"+AXdXp\":[\"標籤與 URL 為必填\"],\"+K0AvT\":[\"解除連線\"],\"+zy2Nq\":[\"類型\"],\"/3H2/s\":[\"此託管網站透過 \",[\"providerLabel\"],\" 登入。請在該處管理密碼與託管存取權限。\"],\"/JnyjR\":[\"切換內建導覽項目。它們的順序決定頁首顯示哪些項目,以及首頁會先開啟哪一個 feed。\"],\"0OGSSc\":[\"頭像顯示已更新.\"],\"0UzCUX\":[\"更新您用來登入的密碼\"],\"10UtuM\":[\"CJK 字體\"],\"14BEca\":[\"瞭解原因\"],\"1F6Mzc\":[\"目前尚無導覽項目。請新增連結或在下方啟用系統項目。\"],\"1njn7W\":[\"淺色\"],\"2B7t+s\":[\"工作階段與密碼\"],\"2DoBvq\":[\"訂閱來源\"],\"2FYpfJ\":[\"更多\"],\"2MXb5X\":[\"關於靜謐設計的實地筆記\"],\"2PTjMB\":[\"我想刪除 \",[\"siteName\"]],\"2cFU6q\":[\"網站頁尾\"],\"2oWZo7\":[\"最近一次提交\"],\"2uuy4H\":[\"已透過個人存取權杖連線\"],\"35x8eZ\":[\"顯示 \",[\"shown\"],\" 共 \",[\"total\"]],\"3Cw1AI\":[\"新增選集\"],\"3VrybB\":[\"重新導向\"],\"3Yvsaz\":[\"302 (暫時)\"],\"3n0zbB\":[\"在示範模式中已停用工作階段管理。請改用共用示範工作階段。\"],\"3sYJi5\":[\"下載與 Hugo 相容的封存 — 以靜態方式託管或移轉到另一個 Jant\"],\"3wKq0C\":[\"無法儲存。請稍後再試。\"],\"49Bsal\":[\"Feed 設定已更新。\"],\"4Jge8E\":[\"目前的工作階段\"],\"4KIa+q\":[\"已下載匯出檔案。\"],\"4cEClj\":[\"工作階段\"],\"4zGJ5E\":[\"永久刪除帳戶\"],\"5QlUIt\":[\"倉庫為空。準備連線。\"],\"5VQnR3\":[\"當你想要一個永遠不會改變的 feed URL 時,請使用這些。\"],\"5dpcN1\":[\"輸入以搜尋全部\"],\"69OXZB\":[\"刪除託管網站\"],\"6ArdBh\":[\"將精選文章用於 /feed.\"],\"6DjeBT\":[\"示範網站會始終對搜尋引擎保持隱藏。\"],\"6FFB7q\":[\"使用最新的公開貼文作為 /feed。\"],\"6K1Vef\":[\"確定要永久刪除此部落格嗎?此動作無法復原。\"],\"6NpNLc\":[\"此儲存庫已有內容。\"],\"6V3Ea3\":[\"已複製\"],\"746NHh\":[\"此部落格\"],\"7811AW\":[\"此儲存庫已在備份本網站。\"],\"7FaY4u\":[\"用法\"],\"7G9YLi\":[\"允許搜尋引擎收錄我的網站\"],\"7MZxzw\":[\"密碼已變更.\"],\"7vhWI8\":[\"新密碼\"],\"7z05Pf\":[\"在 \",[\"providerLabel\"],\" 開啟託管站點控制項以取消計費或永久刪除此站點。\"],\"81nFIS\":[\"密碼不符。請確認兩個欄位相同。\"],\"87a/t/\":[\"標籤\"],\"89Upyo\":[\"該主題目前不可用。請選擇其他主題。\"],\"8BfEpW\":[\"託管帳號\"],\"8N/Mcp\":[\"封存篩選參數 (例如 format=note&view=list)\"],\"8U2Z7f\":[\"新增自訂 URL\"],\"8ZsakT\":[\"密碼\"],\"9+vGLh\":[\"自訂 CSS\"],\"9As8Nu\":[\"在 GitHub 上建立一個\"],\"9Lsvt5\":[\"已於 \",[\"date\"],\" 登入\"],\"9T7Cwm\":[\"重新導向、自訂路徑與網址控制\"],\"9aUyym\":[\"查看您在哪裡已登入,並撤銷舊的工作階段\"],\"A1taO8\":[\"搜尋\"],\"AeXO77\":[\"帳戶\"],\"AnY+O9\":[\"在首頁底部顯示「Build with Jant」\"],\"ApZDMk\":[\"此圖會用於您的 favicon 和 apple-touch-icon。為達最佳效果,請上傳至少 512x512 像素、背景為純色的正方形 PNG。\"],\"B495Gs\":[\"封存\"],\"B4ESok\":[\"API 參考\"],\"CTAEes\":[\"選擇儲存庫\"],\"CjZZgz\":[\"此儲存庫已有提交紀錄\"],\"DCKkhU\":[\"目前密碼\"],\"DKKKeF\":[\"在 \",[\"providerLabel\"],\" 管理密碼與託管存取\"],\"
|
|
1924
|
+
var messages = JSON.parse("{\"+9JI/F\":[\"連線後會將您的網站同步到 \",[\"repo\"],\" 的預設分支,並疊加在其現有歷史之上。Jant 管理路徑外的既有檔案會保留。此操作無法復原。\"],\"+AXdXp\":[\"標籤與 URL 為必填\"],\"+K0AvT\":[\"解除連線\"],\"+zy2Nq\":[\"類型\"],\"/3H2/s\":[\"此託管網站透過 \",[\"providerLabel\"],\" 登入。請在該處管理密碼與託管存取權限。\"],\"/JnyjR\":[\"切換內建導覽項目。它們的順序決定頁首顯示哪些項目,以及首頁會先開啟哪一個 feed。\"],\"/ODeyS\":[\"聲明給讀者的內容語言(HTML lang、RSS),同時驅動後台介面的語言。可填任意 BCP 47 標籤;沒有對應翻譯時後台會回退為英文。\"],\"0OGSSc\":[\"頭像顯示已更新.\"],\"0UzCUX\":[\"更新您用來登入的密碼\"],\"10UtuM\":[\"CJK 字體\"],\"14BEca\":[\"瞭解原因\"],\"1F6Mzc\":[\"目前尚無導覽項目。請新增連結或在下方啟用系統項目。\"],\"1njn7W\":[\"淺色\"],\"2B7t+s\":[\"工作階段與密碼\"],\"2DoBvq\":[\"訂閱來源\"],\"2FYpfJ\":[\"更多\"],\"2MXb5X\":[\"關於靜謐設計的實地筆記\"],\"2PTjMB\":[\"我想刪除 \",[\"siteName\"]],\"2cFU6q\":[\"網站頁尾\"],\"2oWZo7\":[\"最近一次提交\"],\"2uuy4H\":[\"已透過個人存取權杖連線\"],\"35x8eZ\":[\"顯示 \",[\"shown\"],\" 共 \",[\"total\"]],\"3Cw1AI\":[\"新增選集\"],\"3VrybB\":[\"重新導向\"],\"3Yvsaz\":[\"302 (暫時)\"],\"3n0zbB\":[\"在示範模式中已停用工作階段管理。請改用共用示範工作階段。\"],\"3sYJi5\":[\"下載與 Hugo 相容的封存 — 以靜態方式託管或移轉到另一個 Jant\"],\"3wKq0C\":[\"無法儲存。請稍後再試。\"],\"49Bsal\":[\"Feed 設定已更新。\"],\"4Jge8E\":[\"目前的工作階段\"],\"4KIa+q\":[\"已下載匯出檔案。\"],\"4cEClj\":[\"工作階段\"],\"4zGJ5E\":[\"永久刪除帳戶\"],\"5QlUIt\":[\"倉庫為空。準備連線。\"],\"5VQnR3\":[\"當你想要一個永遠不會改變的 feed URL 時,請使用這些。\"],\"5dpcN1\":[\"輸入以搜尋全部\"],\"69OXZB\":[\"刪除託管網站\"],\"6ArdBh\":[\"將精選文章用於 /feed.\"],\"6DjeBT\":[\"示範網站會始終對搜尋引擎保持隱藏。\"],\"6FFB7q\":[\"使用最新的公開貼文作為 /feed。\"],\"6K1Vef\":[\"確定要永久刪除此部落格嗎?此動作無法復原。\"],\"6NpNLc\":[\"此儲存庫已有內容。\"],\"6V3Ea3\":[\"已複製\"],\"746NHh\":[\"此部落格\"],\"7811AW\":[\"此儲存庫已在備份本網站。\"],\"7FaY4u\":[\"用法\"],\"7G9YLi\":[\"允許搜尋引擎收錄我的網站\"],\"7MZxzw\":[\"密碼已變更.\"],\"7vhWI8\":[\"新密碼\"],\"7z05Pf\":[\"在 \",[\"providerLabel\"],\" 開啟託管站點控制項以取消計費或永久刪除此站點。\"],\"81nFIS\":[\"密碼不符。請確認兩個欄位相同。\"],\"87a/t/\":[\"標籤\"],\"89Upyo\":[\"該主題目前不可用。請選擇其他主題。\"],\"8BfEpW\":[\"託管帳號\"],\"8N/Mcp\":[\"封存篩選參數 (例如 format=note&view=list)\"],\"8U2Z7f\":[\"新增自訂 URL\"],\"8ZsakT\":[\"密碼\"],\"9+vGLh\":[\"自訂 CSS\"],\"9As8Nu\":[\"在 GitHub 上建立一個\"],\"9Lsvt5\":[\"已於 \",[\"date\"],\" 登入\"],\"9T7Cwm\":[\"重新導向、自訂路徑與網址控制\"],\"9aUyym\":[\"查看您在哪裡已登入,並撤銷舊的工作階段\"],\"A1taO8\":[\"搜尋\"],\"AeXO77\":[\"帳戶\"],\"AnY+O9\":[\"在首頁底部顯示「Build with Jant」\"],\"ApZDMk\":[\"此圖會用於您的 favicon 和 apple-touch-icon。為達最佳效果,請上傳至少 512x512 像素、背景為純色的正方形 PNG。\"],\"B495Gs\":[\"封存\"],\"B4ESok\":[\"API 參考\"],\"CTAEes\":[\"選擇儲存庫\"],\"CjZZgz\":[\"此儲存庫已有提交紀錄\"],\"DCKkhU\":[\"目前密碼\"],\"DKKKeF\":[\"在 \",[\"providerLabel\"],\" 管理密碼與託管存取\"],\"EO3I6h\":[\"上傳未成功. 請稍後再試.\"],\"Enslfm\":[\"目標網址\"],\"F7FKwe\":[\"你在此處貼上的任何內容都能完全存取訪客的瀏覽器。僅使用來自你信任來源的程式碼。\"],\"FkMol5\":[\"精選\"],\"G/1oP+\":[\"移除 webhook 並停止同步。您的儲存庫內容不會被刪除。\"],\"G0qJsQ\":[\"找不到安全權杖。請重新整理頁面後再試一次。\"],\"G39wnK\":[\"將內容備份並與 GitHub 儲存庫同步\"],\"GMMWcy\":[\"名稱, 中繼資料, 語言, 和 搜尋預設值\"],\"GXsAby\":[\"撤銷\"],\"GxkJXS\":[\"上傳中...\"],\"GzKzUa\":[\"試用限制\"],\"HKH+W+\":[\"資料\"],\"Hp1l6f\":[\"目前\"],\"HxlY7t\":[\"變更此設定會更新訂閱者從 /feed 取得的內容。\"],\"HxuOlm\":[\"網站頁首\"],\"I6gXOa\":[\"路徑\"],\"ID38tA\":[\"示範模式下帳號刪除已停用。共用示範會另行重置。\"],\"IF9tPu\":[\"何時使用網站匯出、資料庫備份與復原演練。\"],\"IW5PBo\":[\"複製權杖\"],\"IagCbF\":[\"URL\"],\"IreQBq\":[\"儲存庫\"],\"J6bLeg\":[\"新增自訂連結到任何 URL\"],\"JL7LF5\":[\"可用的 CSS 變數、data 屬性與範例.\"],\"JTviaO\":[\"管理登入安全、匯出,以及不可逆的操作。\"],\"JcD7qf\":[\"更多操作\"],\"JjX0OO\":[\"請立即複製您的權杖 — 它不會再顯示。\"],\"JrFTcr\":[\"連線中…\"],\"JuN5GC\":[\"未選取檔案。請選擇要上傳的檔案。\"],\"KDw4GX\":[\"重試\"],\"KSgo21\":[\"選擇一個儲存庫\"],\"KVVYBh\":[\"新增選集到導覽\"],\"KiJn9B\":[\"筆記\"],\"L3DEwT\":[\"移除這個頭像?您的 favicon 與頁首圖示會回復為預設。\"],\"L4t4/q\":[\"3月14日\"],\"LdyooL\":[\"連結\"],\"M/D8PK\":[\"+ 安裝到其他帳戶\"],\"M/haSd\":[\"永遠顯示主題的淺色版本。\"],\"M2kIWU\":[\"字型主題\"],\"M6CbAU\":[\"切換編輯面板\"],\"Me5t5H\":[\"連接 GitHub 倉庫,自動將你的文章備份為 Markdown 檔案。GitHub 上的編輯會同步回你的網站。\"],\"MtENL9\":[\"調整您的網站外觀、可讀性與執行效能。\"],\"N/8NPV\":[\"在刪除前,請先下載網站匯出檔案。刪除後無法恢復此帳號。\"],\"N7UNHY\":[\"精選 RSS 來源\"],\"NHnUHF\":[\"頁首上的網站圖示與個人標記\"],\"NU2Fqi\":[\"儲存 CSS\"],\"Nldjdr\":[\"尚未有自訂 URL。建立一個自訂 URL 以為文章新增重新導向或自訂路徑。\"],\"O7rgs6\":[\"頁首 RSS 指向你的 \",[\"feed\"],\" 訂閱 (/feed)。在「一般」中變更 /feed 回傳的內容。\"],\"OSJXFg\":[\"套用於整個網站, 包括管理頁面. 選擇一個調色盤, 然後決定它是跟隨系統還是維持固定.\"],\"Ox3+3h\":[\"無相符結果。\"],\"PEUV5I\":[\"程式碼注入已更新。\"],\"PZ7HJ8\":[\"部落格大頭貼\"],\"Pwqkdw\":[\"載入中…\"],\"PxJ9W6\":[\"產生權杖\"],\"Q/6Y+2\":[\"需要在目標儲存庫上擁有 Contents(讀/寫)和 Webhooks(讀/寫)權限。\"],\"Q30z/l\":[\"要從導覽移除這個選集嗎?選集本身不會被刪除。\"],\"Q99OtV\":[\"將選集釘選到導覽列。最近 48 小時內更新的選集旁會顯示一個 * 號。\"],\"QZmz0H\":[\"內建連結\"],\"Qnrzvb\":[\"已啟用的權杖\"],\"R6Z4LE\":[\"下載失敗。請再試一次。\"],\"R9Khdg\":[\"自動\"],\"RxsRD6\":[\"時區\"],\"SJmfuf\":[\"網站名稱\"],\"SKZhW9\":[\"權杖名稱 (API 權杖名稱欄位。)\"],\"SVQQPe\":[\"無法連線。請檢查錯誤並再試一次。\"],\"TpF3v+\":[\"在 </head> 之前注入。用於分析、自訂 meta 標籤,以及必須提前載入的樣式。\"],\"Tz0i8g\":[\"設定\"],\"UFK415\":[\"用於分析與小工具的網站全域 HTML\"],\"Uj/btJ\":[\"在我的網站頁首顯示大頭貼\"],\"UsODUn\":[\"選擇一個帳戶\"],\"UxKoFf\":[\"導覽\"],\"V+bhUy\":[\"安裝 GitHub App\"],\"V4WsyL\":[\"新增連結\"],\"V5pZwT\":[\"搜尋設定已更新。\"],\"VXUPla\":[\"使用 GitHub App 連線\"],\"VhMDMg\":[\"變更密碼\"],\"Vn3jYy\":[\"導覽項目\"],\"VoZYGU\":[\"這會永久刪除您所有的資料 — 文章、媒體、選集、設定,以及您的帳戶。您的部落格將被重設為初始設定狀態。此操作無法復原。\"],\"Weq9zb\":[\"一般\"],\"Wi9i06\":[\"依照每位訪客的系統偏好。\"],\"Wx1M8N\":[\"安裝 GitHub App,以授予存取權而無需管理個人權杖。權限以每個儲存庫為範圍,並可在 GitHub 上撤銷。\"],\"X+8FMk\":[\"目前的密碼不符。請再試一次。\"],\"X1G9eY\":[\"導覽預覽\"],\"X9Hujr\":[\"手動推送\"],\"XtBJV8\":[\"正在檢查儲存庫…\"],\"Xtc16w\":[\"重新整理儲存庫清單\"],\"Y/F35r\":[\"使用 curl 建立貼文:\"],\"YF6zHf\":[\"網站設定已更新.\"],\"YdG2RF\":[\"匯出網站\"],\"YwhjRx\":[\"管理帳戶\"],\"ZDY7Fy\":[\"同步中…\"],\"ZQKLI1\":[\"危險區域\"],\"ZS/CBL\":[\"刪除此導覽連結?訪客將不再在您的網站頁首看到它。\"],\"ZhhOwV\":[\"引用 (Jant 的貼文格式之一。)\"],\"ZiooJI\":[\"API 權杖\"],\"Zm7Qb0\":[\"備份與還原指南\"],\"ZmUkwN\":[\"新增自訂連結到導覽\"],\"a14mj8\":[\"未知裝置\"],\"a3LDKx\":[\"安全性\"],\"aAIQg2\":[\"外觀\"],\"aFkzVF\":[\"目標文章或選集的 slug\"],\"alKG0+\":[\"字型主題\"],\"anibOb\":[\"關於本部落格\"],\"any7NR\":[\"主題指南\"],\"b+/jO6\":[\"301 (永久)\"],\"bHOiy1\":[\"示範模式已停用變更密碼功能。請使用共用示範帳號登入。\"],\"bHYIks\":[\"登出\"],\"bmrL08\":[\"示範模式會隱藏會話、密碼更改與帳號刪除。匯出功能仍可使用。\"],\"c3MN2z\":[\"所有可用的端點與請求格式。\"],\"cSDy01\":[\"自訂 CSS 已更新.\"],\"clzoNp\":[\"始終顯示深色主題。\"],\"cnGeoo\":[\"刪除\"],\"d3FRkY\":[\"無法複製. 請再試一次.\"],\"d5oGUo\":[\"在 GitHub 建立新儲存庫\"],\"dEgA5A\":[\"取消\"],\"dTXUY+\":[\"確認刪除帳號\"],\"dYKrp3\":[\"從最新中隱藏 (不出現在 Latest 中,但仍可透過固定連結和集合存取的狀態。)\"],\"dk7TCH\":[\"永久刪除所有資料並重設部落格\"],\"drodVV\":[\"目前還沒有選集。請先建立一個,然後將它加入您的導覽。\"],\"dsWkIw\":[\"要與 GitHub 斷開連線嗎? webhook 將會被移除。您的儲存庫內容不會被刪除。\"],\"e/tSI5\":[\"導覽順序已更新。\"],\"ePK91l\":[\"編輯\"],\"ebQKK7\":[\"網站\"],\"egK+Yy\":[\"供腳本與自動化使用的 Bearer 權杖\"],\"ehj/zN\":[\"重新導向類型\"],\"eneWvv\":[\"草稿\"],\"erTMh7\":[\"上次同步\"],\"f+m8jj\":[\"已複製訂閱網址。\"],\"f8fH8W\":[\"設計\"],\"fWYqkz\":[\"程式碼注入\"],\"gOWiTY\":[\"載入為中文、日文或韓文內容最佳化的襯線字型。\"],\"gZ5owP\":[\"搜尋儲存庫\"],\"gbqbh6\":[\"可以放心離開此頁面 — 同步會在背景繼續進行。\"],\"gkFvVN\":[\"在 </body> 之前注入。用於聊天小工具和不應阻塞頁面載入的腳本。\"],\"gtQsRO\":[\"建立自訂網址\"],\"hBO/y4\":[\"安全權杖已過期。請重新整理頁面並再試一次。\"],\"hGmyDl\":[\"權杖讓您從腳本, 捷徑和其他工具存取 API 無需登入\"],\"hIHkRy\":[\"已透過 GitHub 應用程式連線\"],\"hdSi1b\":[\"輸入 \",[\"repo\"],\" 以確認\"],\"he3ygx\":[\"複製\"],\"i0qMbr\":[\"首頁\"],\"iEUzMn\":[\"系統\"],\"iSLIjg\":[\"連接\"],\"iVOMRi\":[\"首頁設定已更新。\"],\"icB4Cv\":[\"將連結拖到此處以顯示於「更多」選單下方\"],\"ihn4zD\":[\"搜尋…\"],\"iiDXZc\":[\"顯示於所有文章與頁面的底部。\"],\"j4VrG6\":[\"下載匯出 ZIP\"],\"j5nQL2\":[\"例如 iOS 捷徑\"],\"jUV7CU\":[\"上傳大頭貼\"],\"jVUmOK\":[\"支援 Markdown\"],\"jgBjXJ\":[\"要撤銷這個權杖嗎?任何使用它的腳本都會停止運作。\"],\"jpctdh\":[\"檢視\"],\"k1ifdL\":[\"處理中...\"],\"kMXclu\":[\"下載網站匯出檔案\"],\"kNiQp6\":[\"已釘選\"],\"kRhzWq\":[\"GitHub 同步\"],\"kVQs7s\":[\"細緻的樣式覆寫\"],\"ke1gWS\":[\"自訂 URL\"],\"kfcRb0\":[\"頭像\"],\"kxDZ2i\":[\"此程式碼會在您網站的每個頁面上執行。\"],\"l2Op2p\":[\"查詢參數\"],\"lLW3vJ\":[\"目標 slug\"],\"lYHJih\":[\"撤銷此工作階段?該裝置將需要重新登入。\"],\"mLOk1i\":[\"立即將所有文章推送到 GitHub,而不是等待下一次自動同步。\"],\"mSNmrX\":[\"列出貼文:\"],\"nK07ni\":[\"為您的網站選擇一種排版風格。每個主題會同時改變字體配對與閱讀節奏。\"],\"o/vNDE\":[\"讓您覆寫任何主題變數。\"],\"oGC9uP\":[\"owner/repo\"],\"oH2JHg\":[\"我們會預先填入名稱 \",[\"name\"],\"。返回時清單會重新整理。\"],\"oKOOsY\":[\"色彩主題\"],\"oL535e\":[\"尚未同步\"],\"oNA4If\":[\"所有選集已經在您的導覽中。\"],\"pZq3aX\":[\"上傳失敗。請再試一次。\"],\"pgTIrt\":[\"選擇要與此網站同步的 GitHub 帳號和儲存庫.\"],\"psoxDF\":[\"該字型主題無法使用. 請選擇其他主題.\"],\"pvnfJD\":[\"深色\"],\"q+hNag\":[\"選集\"],\"r5EW6f\":[\"此儲存庫已在備份另一個 Jant 網站 (\",[\"host\"],\"). 請選擇其他儲存庫.\"],\"rEspiY\":[\"導覽位置已更新。\"],\"rFmBG3\":[\"色彩主題\"],\"rlonmB\":[\"無法刪除。請稍後再試。\"],\"satWc6\":[\"主要 RSS 訂閱\"],\"sgr2wQ\":[\"選集\"],\"sqxcaY\":[\"建立於 \",[\"date\"]],\"sxkWRg\":[\"進階\"],\"t/YqKh\":[\"移除\"],\"t3hvHq\":[\"立即同步\"],\"tfDRzk\":[\"儲存\"],\"tvgAq5\":[\"尚未授權任何帳戶\"],\"u1VTd3\":[\"調色盤、表面色調與整體氛圍\"],\"u3wRF+\":[\"已發佈\"],\"u6KOjV\":[\"想要更細緻的控制?\"],\"udPwLB\":[\"頁首\"],\"ui6aMF\":[\"這些裝置目前已登入您的帳號。撤銷任何您不認識的工作階段。\"],\"vBEKwo\":[\"在此管理本網站的活動工作階段。密碼與託管存取由 \",[\"providerLabel\"],\" 管理。\"],\"vRldcl\":[\"字體選擇與閱讀質感\"],\"vSYKYI\":[\"主要訂閱來源\"],\"vTuib7\":[\"這會控制 /feed 回傳的內容。\"],\"vXIe7J\":[\"語言\"],\"vmQmHx\":[\"新增自訂 CSS 以覆寫任何樣式。使用像 [data-page]、[data-post]、[data-format] 這類資料屬性來選取特定元素。\"],\"vzX5FB\":[\"刪除帳號\"],\"w8Rv8T\":[\"標籤為必填\"],\"wL3cK8\":[\"最新\"],\"wPmHHc\":[\"低調的介面讓文字成為主角。\"],\"wW6NCp\":[\"上次錯誤\"],\"wc+17X\":[\"/* 在此放入您的自訂 CSS */\"],\"wuLtXn\":[\"目前沒有任何活動中的工作階段。已登入的裝置會顯示在此處。\"],\"xCWek4\":[\"檔案儲存尚未設定。請檢查您的伺服器設定。\"],\"xHt036\":[\"個人存取權杖\"],\"xbN8dp\":[\"柔和的色彩仍應保有清晰的閱讀節奏。\"],\"y28hnO\":[\"文章\"],\"y8Md/V\":[\"語言與時間已更新。\"],\"yNCqOt\":[\"最新 RSS 來源\"],\"yQ3kNF\":[\"請輸入以下短語以確認:\"],\"ydq1k2\":[\"請先選擇一個帳戶\"],\"yjjCV8\":[\"固定的 RSS 檔案網址\"],\"yjkELF\":[\"確認新密碼\"],\"yzF66j\":[\"連結 (Jant 的貼文格式之一。)\"],\"z6wakA\":[\"顯示在您的主頁上的簡短介紹。\"],\"zEizrk\":[\"最後使用於 \",[\"date\"]],\"zSURJW\":[\"沒有符合的儲存庫.\"],\"zXH2jX\":[\"語言與時區\"],\"zlcDd2\":[\"刪除此自訂 URL?使用該 URL 的訪客將不會再被重新導向。\"],\"zwBp5t\":[\"私有\"],\"zxRN6H\":[\"頁首連結、首頁動態與更多選單\"]}");
|
|
1861
1925
|
//#endregion
|
|
1862
1926
|
//#region src/i18n/i18n.ts
|
|
1863
1927
|
/**
|
|
@@ -2516,8 +2580,8 @@ var I18nProvider = ({ c, children }) => {
|
|
|
2516
2580
|
*/
|
|
2517
2581
|
/**
|
|
2518
2582
|
* Path prefixes that render the admin/settings surface. Requests to these
|
|
2519
|
-
* paths activate the user's configured
|
|
2520
|
-
* forced to `baseLocale` (English).
|
|
2583
|
+
* paths activate the catalog locale resolved from the user's configured
|
|
2584
|
+
* `SITE_LANGUAGE`; everything else is forced to `baseLocale` (English).
|
|
2521
2585
|
*
|
|
2522
2586
|
* Why: Lingui computes message IDs from `message` text alone (the `comment`
|
|
2523
2587
|
* field is a translator note and does not disambiguate). Shared strings like
|
|
@@ -2533,19 +2597,21 @@ function isAdminPath(path) {
|
|
|
2533
2597
|
* Hono middleware for internationalization.
|
|
2534
2598
|
* Creates a per-request i18n instance to avoid race conditions in concurrent environments.
|
|
2535
2599
|
*
|
|
2536
|
-
*
|
|
2537
|
-
*
|
|
2538
|
-
*
|
|
2539
|
-
* operator
|
|
2540
|
-
*
|
|
2541
|
-
*
|
|
2542
|
-
*
|
|
2543
|
-
* language
|
|
2600
|
+
* Two related-but-distinct values are computed per request:
|
|
2601
|
+
*
|
|
2602
|
+
* - `lang` (used for `<html lang>` and RSS): the verbatim BCP 47 content
|
|
2603
|
+
* language tag the operator configured. Accepts any tag — `fi`, `de`,
|
|
2604
|
+
* `fr-CA`, etc. — independent of whether Jant has a dashboard catalog.
|
|
2605
|
+
* - The active i18n locale: the catalog Jant should render the dashboard in.
|
|
2606
|
+
* Resolved from the content language via a fallback chain (exact catalog
|
|
2607
|
+
* match → language family → `baseLocale`). On non-admin routes it is
|
|
2608
|
+
* always `baseLocale` so public chrome stays English regardless.
|
|
2544
2609
|
*/ function i18nMiddleware() {
|
|
2545
2610
|
return async (c, next) => {
|
|
2546
|
-
const
|
|
2547
|
-
const contentLang =
|
|
2548
|
-
const
|
|
2611
|
+
const rawSetting = c.get("allSettings")?.SITE_LANGUAGE;
|
|
2612
|
+
const contentLang = isValidContentLanguage(rawSetting) ? normalizeContentLanguage(rawSetting) : "en";
|
|
2613
|
+
const catalogLocale = resolveCatalogLocale(contentLang);
|
|
2614
|
+
const i18n = createI18n(isAdminPath(c.req.path) ? catalogLocale : "en");
|
|
2549
2615
|
c.set("lang", contentLang);
|
|
2550
2616
|
c.set("i18n", i18n);
|
|
2551
2617
|
await next();
|
|
@@ -3352,10 +3418,10 @@ function normalizeThemeColorForMeta(color) {
|
|
|
3352
3418
|
* internal paths (e.g. `/_assets/client-HASH.js`) embedded by the Worker build
|
|
3353
3419
|
* from the Vite client manifest. Used only in production (IS_VITE_DEV=false).
|
|
3354
3420
|
*/ var IS_VITE_DEV = typeof __JANT_DEV__ !== "undefined" && __JANT_DEV__ === true;
|
|
3355
|
-
var CORE_VERSION = "0.3.
|
|
3421
|
+
var CORE_VERSION = "0.3.48-5b409c34fc5f0c4a";
|
|
3356
3422
|
var CLIENT_JS_FILE = "/_assets/client-dSfWfMe9.js";
|
|
3357
|
-
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-
|
|
3358
|
-
var CLIENT_CSS_FILE = "/_assets/client-
|
|
3423
|
+
var CLIENT_AUTH_JS_FILE = "/_assets/client-auth-Ce5WEAVS.js";
|
|
3424
|
+
var CLIENT_CSS_FILE = "/_assets/client-BoUn7xBo.css";
|
|
3359
3425
|
var CLIENT_CJK_CSS_FILE = "/_assets/client-cjk-B7Z0snDu.css";
|
|
3360
3426
|
var CLIENT_CJK_TC_CSS_FILE = "/_assets/client-cjk-tc-BesJYrb2.css";
|
|
3361
3427
|
var CLIENT_CJK_JP_CSS_FILE = "/_assets/client-cjk-jp-DZwrTzQC.css";
|
|
@@ -3673,7 +3739,7 @@ var IconSprite = () => {
|
|
|
3673
3739
|
const cjkSerifFont = appConfig?.cjkSerifFont ?? "off";
|
|
3674
3740
|
const cjkStylesheetPath = cjkSerifFont === "zh-Hans" ? IS_VITE_DEV ? assetPath("/src/style-cjk.css") : toPublicAssetPath(CLIENT_CJK_CSS_FILE, assetBasePath) : cjkSerifFont === "zh-Hant" ? IS_VITE_DEV ? assetPath("/src/style-cjk-tc.css") : toPublicAssetPath(CLIENT_CJK_TC_CSS_FILE, assetBasePath) : cjkSerifFont === "ja" ? IS_VITE_DEV ? assetPath("/src/style-cjk-jp.css") : toPublicAssetPath(CLIENT_CJK_JP_CSS_FILE, assetBasePath) : cjkSerifFont === "ko" ? IS_VITE_DEV ? assetPath("/src/style-cjk-kr.css") : toPublicAssetPath(CLIENT_CJK_KR_CSS_FILE, assetBasePath) : null;
|
|
3675
3741
|
const clientScriptPath = IS_VITE_DEV ? resolvedClientBundle === "full" ? assetPath("/src/client-auth.ts") : assetPath("/src/client.ts") : toPublicAssetPath(resolvedClientBundle === "full" ? CLIENT_AUTH_JS_FILE : CLIENT_JS_FILE, assetBasePath);
|
|
3676
|
-
const faviconAssetVersion = resolvedFaviconVersion || "0.3.
|
|
3742
|
+
const faviconAssetVersion = resolvedFaviconVersion || "0.3.48-5b409c34fc5f0c4a";
|
|
3677
3743
|
const resolvedFaviconHref = faviconHref ?? (faviconAssetVersion ? toPublicPath(`/favicon.ico?v=${faviconAssetVersion}`, sitePathPrefix) : toPublicPath("/favicon.ico", sitePathPrefix));
|
|
3678
3744
|
const resolvedAppleTouchHref = appleTouchHref ?? (faviconAssetVersion ? toPublicPath(`/apple-touch-icon.png?v=${faviconAssetVersion}`, sitePathPrefix) : toPublicPath("/apple-touch-icon.png", sitePathPrefix));
|
|
3679
3745
|
const socialImageHref = resolvedSocialImagePath && (isFullUrl(resolvedSocialImagePath) || resolvedSocialImagePath.startsWith("//") ? resolvedSocialImagePath : toAbsoluteSiteUrl(resolvedSocialImagePath, appConfig?.siteUrl || "", sitePathPrefix));
|
|
@@ -5744,6 +5810,7 @@ var signinRoutes = new Hono();
|
|
|
5744
5810
|
signinRoutes.get("/signin", async (c) => {
|
|
5745
5811
|
const rawRedirect = c.req.query("redirect");
|
|
5746
5812
|
const redirect = isSafeInternalRedirect(rawRedirect) ? rawRedirect : void 0;
|
|
5813
|
+
if (c.var.isAuthenticated) return c.redirect(toPublicPath(redirect ?? "/", c.var.appConfig.sitePathPrefix));
|
|
5747
5814
|
const hostedSigninUrl = getHostedControlPlaneSigninUrl(c.env, c.var.publicRequestUrl, redirect);
|
|
5748
5815
|
if (hostedSigninUrl) return c.redirect(hostedSigninUrl);
|
|
5749
5816
|
const i18n = getI18n(c);
|
|
@@ -6005,7 +6072,7 @@ function getPostSigninRedirect(requestUrl) {
|
|
|
6005
6072
|
/**
|
|
6006
6073
|
* Middleware that requires authentication.
|
|
6007
6074
|
* Redirects to signin page if not authenticated.
|
|
6008
|
-
* Session-only — Bearer tokens are not accepted for
|
|
6075
|
+
* Session-only — Bearer tokens are not accepted for settings pages.
|
|
6009
6076
|
*/ function requireAuth(redirectTo = "/signin") {
|
|
6010
6077
|
return async (c, next) => {
|
|
6011
6078
|
const sitePathPrefix = getRuntimeSitePathPrefix({
|
|
@@ -9516,7 +9583,6 @@ var NoteCard = ({ post, mode = "feed", display }) => {
|
|
|
9516
9583
|
const displayHtml = isDetail || !isArticle || showFullBody ? fullBodyHtml : post.summaryHtml;
|
|
9517
9584
|
const hasVisibleRating = !!post.rating && post.rating > 0 && !display?.hideRating;
|
|
9518
9585
|
const showHeaderRating = isDetail && isArticle && hasVisibleRating;
|
|
9519
|
-
const showHeaderActions = !display?.footer?.hideActions;
|
|
9520
9586
|
const footerDisplay = isDetail && isArticle && display?.footer?.hideTimestamp === void 0 ? {
|
|
9521
9587
|
...display?.footer,
|
|
9522
9588
|
hideTimestamp: true
|
|
@@ -9545,13 +9611,10 @@ var NoteCard = ({ post, mode = "feed", display }) => {
|
|
|
9545
9611
|
}),
|
|
9546
9612
|
/* @__PURE__ */ jsxDEV$1("div", {
|
|
9547
9613
|
class: "post-header-meta-row",
|
|
9548
|
-
children:
|
|
9614
|
+
children: /* @__PURE__ */ jsxDEV$1(PostPublishedLink, {
|
|
9549
9615
|
post,
|
|
9550
9616
|
className: "u-url post-header-meta-link"
|
|
9551
|
-
})
|
|
9552
|
-
class: "post-header-actions",
|
|
9553
|
-
children: /* @__PURE__ */ jsxDEV$1(PostMenuTriggerButton, { className: "post-menu-trigger post-header-menu-trigger" })
|
|
9554
|
-
})]
|
|
9617
|
+
})
|
|
9555
9618
|
}),
|
|
9556
9619
|
showHeaderRating && /* @__PURE__ */ jsxDEV$1(StarRating, { rating: post.rating })
|
|
9557
9620
|
]
|
|
@@ -10301,13 +10364,13 @@ var PostPage = ({ post, threadPosts }) => {
|
|
|
10301
10364
|
"data-post-view": true,
|
|
10302
10365
|
"data-post-view-id": post.id,
|
|
10303
10366
|
"data-thread-root-id": post.threadRootId ?? post.id,
|
|
10304
|
-
children: threadPosts && threadPosts.length > 1 ? /* @__PURE__ */ jsxDEV$1(ThreadDetail, {
|
|
10367
|
+
children: [threadPosts && threadPosts.length > 1 ? /* @__PURE__ */ jsxDEV$1(ThreadDetail, {
|
|
10305
10368
|
post,
|
|
10306
10369
|
threadPosts
|
|
10307
10370
|
}) : /* @__PURE__ */ jsxDEV$1(TimelineItemFromPost, {
|
|
10308
10371
|
post,
|
|
10309
10372
|
mode: "detail"
|
|
10310
|
-
})
|
|
10373
|
+
}), /* @__PURE__ */ jsxDEV$1("div", { "data-post-end": true })]
|
|
10311
10374
|
});
|
|
10312
10375
|
};
|
|
10313
10376
|
//#endregion
|
|
@@ -10576,7 +10639,6 @@ var posts$1 = sqliteTable("post", {
|
|
|
10576
10639
|
previewProvider: text("preview_provider"),
|
|
10577
10640
|
replyToId: text("reply_to_id"),
|
|
10578
10641
|
threadId: text("thread_id").notNull(),
|
|
10579
|
-
deletedAt: integer("deleted_at"),
|
|
10580
10642
|
publishedAt: integer("published_at"),
|
|
10581
10643
|
lastActivityAt: integer("last_activity_at"),
|
|
10582
10644
|
createdAt: integer("created_at").notNull(),
|
|
@@ -10600,13 +10662,13 @@ var posts$1 = sqliteTable("post", {
|
|
|
10600
10662
|
foreignColumns: [table.siteId, table.id]
|
|
10601
10663
|
}),
|
|
10602
10664
|
index("idx_post_site_thread_id").on(table.siteId, table.threadId),
|
|
10603
|
-
index("
|
|
10604
|
-
index("
|
|
10605
|
-
index("
|
|
10606
|
-
index("
|
|
10607
|
-
index("
|
|
10608
|
-
index("
|
|
10609
|
-
index("
|
|
10665
|
+
index("idx_post_site_thread_created").on(table.siteId, table.threadId, table.createdAt, table.id),
|
|
10666
|
+
index("idx_post_site_status_published").on(table.siteId, table.status, table.publishedAt),
|
|
10667
|
+
index("idx_post_site_status_activity").on(table.siteId, table.status, table.lastActivityAt),
|
|
10668
|
+
index("idx_post_site_root_published_activity").on(table.siteId, table.lastActivityAt, table.id).where(sql`${table.replyToId} IS NULL AND ${table.status} = 'published'`),
|
|
10669
|
+
index("idx_post_site_root_draft_updated").on(table.siteId, table.updatedAt, table.id).where(sql`${table.replyToId} IS NULL AND ${table.status} = 'draft'`),
|
|
10670
|
+
index("idx_post_site_reply_thread_created").on(table.siteId, table.threadId, table.createdAt, table.id).where(sql`${table.replyToId} IS NOT NULL AND ${table.status} = 'published'`),
|
|
10671
|
+
index("idx_post_site_featured_featured_at").on(table.siteId, table.featuredAt, table.threadId, table.id).where(sql`${table.status} = 'published' AND ${table.featuredAt} IS NOT NULL`)
|
|
10610
10672
|
]);
|
|
10611
10673
|
var media$1 = sqliteTable("media", {
|
|
10612
10674
|
id: text("id").primaryKey(),
|
|
@@ -11131,7 +11193,6 @@ var posts = pgTable("post", {
|
|
|
11131
11193
|
previewProvider: text$1("preview_provider"),
|
|
11132
11194
|
replyToId: text$1("reply_to_id"),
|
|
11133
11195
|
threadId: text$1("thread_id").notNull(),
|
|
11134
|
-
deletedAt: integer$1("deleted_at"),
|
|
11135
11196
|
publishedAt: integer$1("published_at"),
|
|
11136
11197
|
lastActivityAt: integer$1("last_activity_at"),
|
|
11137
11198
|
createdAt: integer$1("created_at").notNull(),
|
|
@@ -11155,15 +11216,15 @@ var posts = pgTable("post", {
|
|
|
11155
11216
|
foreignColumns: [table.siteId, table.id]
|
|
11156
11217
|
}),
|
|
11157
11218
|
index$1("idx_post_site_thread_id").on(table.siteId, table.threadId),
|
|
11158
|
-
index$1("
|
|
11159
|
-
index$1("
|
|
11160
|
-
index$1("
|
|
11161
|
-
index$1("
|
|
11162
|
-
index$1("
|
|
11163
|
-
index$1("
|
|
11164
|
-
index$1("
|
|
11165
|
-
index$1("
|
|
11166
|
-
index$1("
|
|
11219
|
+
index$1("idx_post_site_thread_created").on(table.siteId, table.threadId, table.createdAt, table.id),
|
|
11220
|
+
index$1("idx_post_site_status_published").on(table.siteId, table.status, table.publishedAt),
|
|
11221
|
+
index$1("idx_post_site_status_activity").on(table.siteId, table.status, table.lastActivityAt),
|
|
11222
|
+
index$1("idx_post_site_root_published_activity").on(table.siteId, table.lastActivityAt, table.id).where(sql`${table.replyToId} IS NULL AND ${table.status} = 'published'`),
|
|
11223
|
+
index$1("idx_post_site_root_draft_updated").on(table.siteId, table.updatedAt, table.id).where(sql`${table.replyToId} IS NULL AND ${table.status} = 'draft'`),
|
|
11224
|
+
index$1("idx_post_site_reply_thread_created").on(table.siteId, table.threadId, table.createdAt, table.id).where(sql`${table.replyToId} IS NOT NULL AND ${table.status} = 'published'`),
|
|
11225
|
+
index$1("idx_post_site_featured_featured_at").on(table.siteId, table.featuredAt, table.threadId, table.id).where(sql`${table.status} = 'published' AND ${table.featuredAt} IS NOT NULL`),
|
|
11226
|
+
index$1("idx_post_search_document").using("gin", table.searchDocument),
|
|
11227
|
+
index$1("idx_post_search_text_trgm").using("gin", table.searchText.op("gin_trgm_ops"))
|
|
11167
11228
|
]);
|
|
11168
11229
|
var media = pgTable("media", {
|
|
11169
11230
|
id: text$1("id").primaryKey(),
|
|
@@ -12738,6 +12799,85 @@ function getAtomTitle(post) {
|
|
|
12738
12799
|
*/ function renderRatingHtml(rating) {
|
|
12739
12800
|
return `<p>${"★".repeat(rating)}${"☆".repeat(5 - rating)} ${rating}/5</p>`;
|
|
12740
12801
|
}
|
|
12802
|
+
function formatFeedBytes(bytes) {
|
|
12803
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
12804
|
+
if (bytes < 1024 * 1024) return `${Math.round(bytes / 1024)} KB`;
|
|
12805
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
12806
|
+
}
|
|
12807
|
+
function formatFeedDuration(seconds) {
|
|
12808
|
+
const total = Math.max(0, Math.round(seconds));
|
|
12809
|
+
const m = Math.floor(total / 60);
|
|
12810
|
+
const s = total % 60;
|
|
12811
|
+
return `${m}:${String(s).padStart(2, "0")}`;
|
|
12812
|
+
}
|
|
12813
|
+
function getMediaMeta(item) {
|
|
12814
|
+
const parts = [];
|
|
12815
|
+
if (item.durationSeconds != null && item.durationSeconds > 0) parts.push(formatFeedDuration(item.durationSeconds));
|
|
12816
|
+
if (item.size != null && item.size > 0) parts.push(formatFeedBytes(item.size));
|
|
12817
|
+
return parts.join(" · ");
|
|
12818
|
+
}
|
|
12819
|
+
/**
|
|
12820
|
+
* Strip MIME type parameters like `; charset=utf-8` so the visible label
|
|
12821
|
+
* stays compact (e.g. `text/html` instead of `text/html; charset=utf-8`).
|
|
12822
|
+
*/ function cleanMimeType(mimeType) {
|
|
12823
|
+
const semi = mimeType.indexOf(";");
|
|
12824
|
+
return (semi >= 0 ? mimeType.slice(0, semi) : mimeType).trim();
|
|
12825
|
+
}
|
|
12826
|
+
/**
|
|
12827
|
+
* Build the visible link text for non-visual attachments — paperclip +
|
|
12828
|
+
* MIME-type tag + filename. Marks the line clearly as an attachment so it
|
|
12829
|
+
* doesn't get mistaken for body text.
|
|
12830
|
+
*/ function buildAttachmentLinkText(item, fallbackName) {
|
|
12831
|
+
const name = item.originalName?.trim() || fallbackName;
|
|
12832
|
+
return `📎 [${escapeXml(cleanMimeType(item.mimeType))}] ${escapeXml(name)}`;
|
|
12833
|
+
}
|
|
12834
|
+
/**
|
|
12835
|
+
* Render a single media attachment as HTML for embedding in feed content.
|
|
12836
|
+
*
|
|
12837
|
+
* - Images embed as `<figure><a><img/></a><figcaption/></figure>` with alt
|
|
12838
|
+
* used as caption when present.
|
|
12839
|
+
* - Videos render as a poster thumbnail linked to the file with a caption
|
|
12840
|
+
* describing the action — feed reader support for `<video>` is uneven, so
|
|
12841
|
+
* we never inline the player.
|
|
12842
|
+
* - Audio, text, and document attachments render as plain links with size
|
|
12843
|
+
* and duration metadata when known. Text attachments link to the rendered
|
|
12844
|
+
* preview page when a post permalink is available.
|
|
12845
|
+
*/ function renderMediaItem(item, postPermalinkUrl) {
|
|
12846
|
+
const category = getMediaCategory(item.mimeType);
|
|
12847
|
+
const url = escapeXml(item.url);
|
|
12848
|
+
const name = item.originalName ?? "";
|
|
12849
|
+
const altText = item.altText ?? "";
|
|
12850
|
+
const caption = item.altText?.trim() || "";
|
|
12851
|
+
const meta = getMediaMeta(item);
|
|
12852
|
+
if (category === "image") {
|
|
12853
|
+
const dims = item.width && item.height ? ` width="${item.width}" height="${item.height}"` : "";
|
|
12854
|
+
const figcaption = caption ? `<figcaption>${escapeXml(caption)}</figcaption>` : "";
|
|
12855
|
+
return `<figure><a href="${url}"><img src="${url}" alt="${escapeXml(altText)}"${dims}/></a>${figcaption}</figure>`;
|
|
12856
|
+
}
|
|
12857
|
+
if (category === "video") {
|
|
12858
|
+
const poster = item.posterUrl || item.thumbnailUrl;
|
|
12859
|
+
const dims = item.width && item.height ? ` width="${item.width}" height="${item.height}"` : "";
|
|
12860
|
+
const label = `Watch video${meta ? ` · ${meta}` : ""}`;
|
|
12861
|
+
return `<figure><a href="${url}"><img src="${escapeXml(poster)}" alt="${escapeXml(altText || name)}"${dims}/></a><figcaption>${escapeXml(label)}</figcaption></figure>`;
|
|
12862
|
+
}
|
|
12863
|
+
if (category === "audio") return `<p><a href="${url}">${buildAttachmentLinkText(item, "Audio")}</a>${meta ? ` (${escapeXml(meta)})` : ""}</p>`;
|
|
12864
|
+
if (category === "text") {
|
|
12865
|
+
const previewHref = postPermalinkUrl ? escapeXml(`${postPermalinkUrl}/text/${item.id}`) : url;
|
|
12866
|
+
const linkText = buildAttachmentLinkText(item, "Attached text");
|
|
12867
|
+
const textMeta = typeof item.chars === "number" && item.chars > 0 ? `${item.chars} chars` : meta;
|
|
12868
|
+
const metaSuffix = textMeta ? ` (${escapeXml(textMeta)})` : "";
|
|
12869
|
+
const summary = item.summary?.trim() ?? "";
|
|
12870
|
+
return `<p><a href="${previewHref}">${linkText}</a>${metaSuffix}${summary ? `: ${escapeXml(summary)}` : ""}</p>`;
|
|
12871
|
+
}
|
|
12872
|
+
return `<p><a href="${url}">${buildAttachmentLinkText(item, "Attachment")}</a>${meta ? ` (${escapeXml(meta)})` : ""}</p>`;
|
|
12873
|
+
}
|
|
12874
|
+
/**
|
|
12875
|
+
* Render all media attachments for a post as HTML for embedding in feed
|
|
12876
|
+
* content. Returns an empty string when the post has no media.
|
|
12877
|
+
*/ function renderMediaForFeed(media, postPermalinkUrl) {
|
|
12878
|
+
if (media.length === 0) return "";
|
|
12879
|
+
return media.map((item) => renderMediaItem(item, postPermalinkUrl)).join("\n");
|
|
12880
|
+
}
|
|
12741
12881
|
/**
|
|
12742
12882
|
* Build the HTML content for a single post (root or reply).
|
|
12743
12883
|
*
|
|
@@ -12757,6 +12897,8 @@ function getAtomTitle(post) {
|
|
|
12757
12897
|
}
|
|
12758
12898
|
}
|
|
12759
12899
|
if (post.bodyHtml) parts.push(stripUnsafeFeedHtml(post.bodyHtml));
|
|
12900
|
+
const mediaHtml = renderMediaForFeed(post.media, permalinkUrl);
|
|
12901
|
+
if (mediaHtml) parts.push(mediaHtml);
|
|
12760
12902
|
if (post.rating && post.rating > 0) parts.push(renderRatingHtml(post.rating));
|
|
12761
12903
|
if (parts.length === 0) parts.push(`<p>${escapeXml(getFeedSummaryText(post))}</p>`);
|
|
12762
12904
|
if (post.format === "link" && permalinkUrl) parts.push(`<p><a href="${escapeXml(permalinkUrl)}" title="Permalink"> ★ </a></p>`);
|
|
@@ -12799,15 +12941,20 @@ function getAtomTitle(post) {
|
|
|
12799
12941
|
const publishedAt = post.feedPublishedAt ?? post.publishedAt;
|
|
12800
12942
|
const updatedAt = post.feedUpdatedAt ?? post.updatedAt;
|
|
12801
12943
|
const relatedLink = alternateUrl ? `\n <link href="${escapedPermalink}" rel="related"/>` : "";
|
|
12944
|
+
const enclosureLinks = post.media.map((m) => {
|
|
12945
|
+
const lengthAttr = m.size != null && m.size > 0 ? ` length="${m.size}"` : "";
|
|
12946
|
+
const titleAttr = m.originalName ? ` title="${escapeXml(m.originalName)}"` : "";
|
|
12947
|
+
return `\n <link rel="enclosure" type="${escapeXml(m.mimeType)}" href="${escapeXml(m.url)}"${lengthAttr}${titleAttr}/>`;
|
|
12948
|
+
}).join("");
|
|
12802
12949
|
return `
|
|
12803
12950
|
<entry>
|
|
12804
12951
|
<title>${escapeXml(title)}</title>
|
|
12805
|
-
<link href="${alternateLink}" rel="alternate"/>${relatedLink}
|
|
12952
|
+
<link href="${alternateLink}" rel="alternate"/>${relatedLink}${enclosureLinks}
|
|
12806
12953
|
<id>${escapedPermalink}</id>
|
|
12807
12954
|
<published>${publishedAt}</published>
|
|
12808
12955
|
<updated>${updatedAt}</updated>
|
|
12809
12956
|
<summary type="text">${escapeXml(summary)}</summary>
|
|
12810
|
-
<content type="html"><![CDATA[${escapeCdata(buildFeedContent(post, siteUrl,
|
|
12957
|
+
<content type="html"><![CDATA[${escapeCdata(buildFeedContent(post, siteUrl, permalinkUrl))}]]></content>
|
|
12811
12958
|
</entry>`;
|
|
12812
12959
|
}).join("");
|
|
12813
12960
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13095,7 +13242,7 @@ async function buildArchiveFeedData(c, selfPath) {
|
|
|
13095
13242
|
status: "published",
|
|
13096
13243
|
excludeReplies: true,
|
|
13097
13244
|
excludePrivate: true,
|
|
13098
|
-
excludeLatestHidden:
|
|
13245
|
+
excludeLatestHidden: false,
|
|
13099
13246
|
collectionId: collection?.id,
|
|
13100
13247
|
mediaKinds: params.mediaKinds,
|
|
13101
13248
|
hasMedia: params.hasMedia,
|
|
@@ -17812,19 +17959,29 @@ function SettingsRootContent({ sitePathPrefix = "", demoMode = false }) {
|
|
|
17812
17959
|
}),
|
|
17813
17960
|
/* @__PURE__ */ jsxDEV$1(SettingsDirectorySection, {
|
|
17814
17961
|
title: i18n._({ id: "ebQKK7" }),
|
|
17815
|
-
children: [
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17825
|
-
|
|
17826
|
-
|
|
17827
|
-
|
|
17962
|
+
children: [
|
|
17963
|
+
/* @__PURE__ */ jsxDEV$1(SettingsDirectoryLink, {
|
|
17964
|
+
href: toPublicPath("/settings/general", sitePathPrefix),
|
|
17965
|
+
icon: ICONS$1.settings,
|
|
17966
|
+
tone: "subtle",
|
|
17967
|
+
name: i18n._({ id: "Weq9zb" }),
|
|
17968
|
+
description: i18n._({ id: "GMMWcy" })
|
|
17969
|
+
}),
|
|
17970
|
+
/* @__PURE__ */ jsxDEV$1(SettingsDirectoryLink, {
|
|
17971
|
+
href: toPublicPath("/settings/custom-urls", sitePathPrefix),
|
|
17972
|
+
icon: ICONS$1.arrowRightLeft,
|
|
17973
|
+
tone: "subtle",
|
|
17974
|
+
name: i18n._({ id: "ke1gWS" }),
|
|
17975
|
+
description: i18n._({ id: "9T7Cwm" })
|
|
17976
|
+
}),
|
|
17977
|
+
/* @__PURE__ */ jsxDEV$1(SettingsDirectoryLink, {
|
|
17978
|
+
href: toPublicPath("/settings/github-sync", sitePathPrefix),
|
|
17979
|
+
icon: ICONS$1.gitBranch,
|
|
17980
|
+
tone: "subtle",
|
|
17981
|
+
name: i18n._({ id: "kRhzWq" }),
|
|
17982
|
+
description: i18n._({ id: "G39wnK" })
|
|
17983
|
+
})
|
|
17984
|
+
]
|
|
17828
17985
|
}),
|
|
17829
17986
|
/* @__PURE__ */ jsxDEV$1(SettingsDirectorySection, {
|
|
17830
17987
|
title: i18n._({ id: "aAIQg2" }),
|
|
@@ -17863,16 +18020,6 @@ function SettingsRootContent({ sitePathPrefix = "", demoMode = false }) {
|
|
|
17863
18020
|
})
|
|
17864
18021
|
]
|
|
17865
18022
|
}),
|
|
17866
|
-
/* @__PURE__ */ jsxDEV$1(SettingsDirectorySection, {
|
|
17867
|
-
title: i18n._({ id: "nbfdhU" }),
|
|
17868
|
-
children: /* @__PURE__ */ jsxDEV$1(SettingsDirectoryLink, {
|
|
17869
|
-
href: toPublicPath("/settings/github-sync", sitePathPrefix),
|
|
17870
|
-
icon: ICONS$1.gitBranch,
|
|
17871
|
-
tone: "subtle",
|
|
17872
|
-
name: i18n._({ id: "kRhzWq" }),
|
|
17873
|
-
description: i18n._({ id: "G39wnK" })
|
|
17874
|
-
})
|
|
17875
|
-
}),
|
|
17876
18023
|
/* @__PURE__ */ jsxDEV$1(SettingsDirectorySection, {
|
|
17877
18024
|
title: i18n._({ id: "sxkWRg" }),
|
|
17878
18025
|
children: [/* @__PURE__ */ jsxDEV$1(SettingsDirectoryLink, {
|
|
@@ -17932,7 +18079,9 @@ function SettingsRootContent({ sitePathPrefix = "", demoMode = false }) {
|
|
|
17932
18079
|
aboutBlog: i18n._({ id: "anibOb" }),
|
|
17933
18080
|
aboutBlogHelp: i18n._({ id: "z6wakA" }),
|
|
17934
18081
|
siteLanguage: i18n._({ id: "vXIe7J" }),
|
|
17935
|
-
siteLanguageHelp: i18n._({ id: "
|
|
18082
|
+
siteLanguageHelp: i18n._({ id: "/ODeyS" }),
|
|
18083
|
+
siteLanguageSearchPlaceholder: i18n._({ id: "ihn4zD" }),
|
|
18084
|
+
siteLanguageNoMatches: i18n._({ id: "Ox3+3h" }),
|
|
17936
18085
|
cjkFont: i18n._({ id: "10UtuM" }),
|
|
17937
18086
|
cjkFontHelp: i18n._({ id: "gOWiTY" }),
|
|
17938
18087
|
timeZone: i18n._({ id: "RxsRD6" }),
|
|
@@ -17965,20 +18114,6 @@ function SettingsRootContent({ sitePathPrefix = "", demoMode = false }) {
|
|
|
17965
18114
|
value: tz.value,
|
|
17966
18115
|
label: tz.label
|
|
17967
18116
|
}))).replace(/</g, "\\u003c");
|
|
17968
|
-
const languagesJson = JSON.stringify([
|
|
17969
|
-
{
|
|
17970
|
-
value: "en",
|
|
17971
|
-
label: "English"
|
|
17972
|
-
},
|
|
17973
|
-
{
|
|
17974
|
-
value: "zh-Hans",
|
|
17975
|
-
label: "简体中文 (Simplified Chinese)"
|
|
17976
|
-
},
|
|
17977
|
-
{
|
|
17978
|
-
value: "zh-Hant",
|
|
17979
|
-
label: "繁體中文 (Traditional Chinese)"
|
|
17980
|
-
}
|
|
17981
|
-
]).replace(/</g, "\\u003c");
|
|
17982
18117
|
const cjkFontsJson = JSON.stringify([
|
|
17983
18118
|
{
|
|
17984
18119
|
value: "off",
|
|
@@ -18018,7 +18153,6 @@ function SettingsRootContent({ sitePathPrefix = "", demoMode = false }) {
|
|
|
18018
18153
|
labels,
|
|
18019
18154
|
timezones: timezonesJson,
|
|
18020
18155
|
"cjk-fonts": cjkFontsJson,
|
|
18021
|
-
languages: languagesJson,
|
|
18022
18156
|
"sitename-fallback": siteNameFallback,
|
|
18023
18157
|
"sitedescription-fallback": siteDescriptionFallback,
|
|
18024
18158
|
"main-feed-url": mainFeedUrl,
|
|
@@ -20099,7 +20233,7 @@ async function syncHostedControlPlaneSiteAvatar(input) {
|
|
|
20099
20233
|
return;
|
|
20100
20234
|
}
|
|
20101
20235
|
await markSyncPending(settings);
|
|
20102
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
20236
|
+
const { createGitHubSyncService } = await import("./github-sync-C593r22F.js");
|
|
20103
20237
|
const { getGitHubAppConfig } = await import("./env-CgaH9Mut.js").then((n) => n.t);
|
|
20104
20238
|
const run = runBackgroundSync(settings, createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20105
20239
|
storage: c.var.storage,
|
|
@@ -20867,7 +21001,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
20867
21001
|
if (getGitHubAppConfig(c.env)) return dsToast("This deployment uses GitHub App authentication. Use Install GitHub App instead.", "error");
|
|
20868
21002
|
const body = await c.req.json();
|
|
20869
21003
|
if (!body.token?.trim() || !body.repo?.trim()) return dsToast("Token and repository are required.", "error");
|
|
20870
|
-
const { parseRepoSlug, createGitHubClient } = await import("./github-api-
|
|
21004
|
+
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
20871
21005
|
const parsed = parseRepoSlug(body.repo);
|
|
20872
21006
|
if (!parsed) return dsToast("Invalid repository format. Use owner/repo.", "error");
|
|
20873
21007
|
const client = createGitHubClient(body.token);
|
|
@@ -20886,7 +21020,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
20886
21020
|
await c.var.services.settings.set("GITHUB_SYNC_AUTH_MODE", "pat");
|
|
20887
21021
|
await c.var.services.settings.set("GITHUB_SYNC_APP_INSTALLATION_ID", "");
|
|
20888
21022
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
20889
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21023
|
+
const { createGitHubSyncService } = await import("./github-sync-C593r22F.js");
|
|
20890
21024
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20891
21025
|
storage: c.var.storage,
|
|
20892
21026
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -20905,7 +21039,7 @@ settingsRoutes.post("/github-sync/connect", async (c) => {
|
|
|
20905
21039
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
20906
21040
|
});
|
|
20907
21041
|
settingsRoutes.post("/github-sync/push", async (c) => {
|
|
20908
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21042
|
+
const { createGitHubSyncService } = await import("./github-sync-C593r22F.js");
|
|
20909
21043
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
20910
21044
|
storage: c.var.storage,
|
|
20911
21045
|
githubApp: getGitHubAppConfig(c.env)
|
|
@@ -20925,7 +21059,7 @@ settingsRoutes.post("/github-sync/push", async (c) => {
|
|
|
20925
21059
|
});
|
|
20926
21060
|
});
|
|
20927
21061
|
settingsRoutes.post("/github-sync/disconnect", async (c) => {
|
|
20928
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21062
|
+
const { createGitHubSyncService } = await import("./github-sync-C593r22F.js");
|
|
20929
21063
|
await createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), { githubApp: getGitHubAppConfig(c.env) }).teardownWebhook();
|
|
20930
21064
|
return dsRedirect(publicPath(c, "/settings/github-sync"));
|
|
20931
21065
|
});
|
|
@@ -21113,10 +21247,10 @@ function buildRepoPickerLabels(c) {
|
|
|
21113
21247
|
const repo = String(body.repo ?? "").trim();
|
|
21114
21248
|
const confirmForeign = body.confirmForeign === true || body.confirmForeign === "true";
|
|
21115
21249
|
if (!installationId || !repo) return wantsJson ? c.json({ error: "Missing installationId or repo." }, 400) : c.text("Missing installationId or repo.", 400);
|
|
21116
|
-
const { parseRepoSlug, createGitHubClient } = await import("./github-api-
|
|
21250
|
+
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21117
21251
|
const parsed = parseRepoSlug(repo);
|
|
21118
21252
|
if (!parsed) return wantsJson ? c.json({ error: "Invalid repository format." }, 400) : c.text("Invalid repository format.", 400);
|
|
21119
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21253
|
+
const { classifyRepoForSync } = await import("./github-sync-C593r22F.js");
|
|
21120
21254
|
const ghClient = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21121
21255
|
let classification;
|
|
21122
21256
|
try {
|
|
@@ -21146,7 +21280,7 @@ function buildRepoPickerLabels(c) {
|
|
|
21146
21280
|
await c.var.services.settings.set("GITHUB_SYNC_REPO", repo);
|
|
21147
21281
|
await c.var.services.settings.set("GITHUB_SYNC_TOKEN", "");
|
|
21148
21282
|
await c.var.services.settings.set("GITHUB_SYNC_ENABLED", "true");
|
|
21149
|
-
const { createGitHubSyncService } = await import("./github-sync-
|
|
21283
|
+
const { createGitHubSyncService } = await import("./github-sync-C593r22F.js");
|
|
21150
21284
|
const syncService = createGitHubSyncService(c.var.services, c.var.currentSite.id, await buildSyncSiteConfig(c), {
|
|
21151
21285
|
storage: c.var.storage,
|
|
21152
21286
|
githubApp: app
|
|
@@ -21185,7 +21319,7 @@ function requireGitHubApp(c) {
|
|
|
21185
21319
|
* build a client for classification without adding the helper to the
|
|
21186
21320
|
* top-level imports (the module already lazy-imports github-api).
|
|
21187
21321
|
*/ async function getInstallationTokenFromApp(app, installationId) {
|
|
21188
|
-
const { getInstallationToken } = await import("./github-app-
|
|
21322
|
+
const { getInstallationToken } = await import("./github-app-D0GvNnqp.js").then((n) => n.i);
|
|
21189
21323
|
return getInstallationToken(app, installationId);
|
|
21190
21324
|
}
|
|
21191
21325
|
/** List GitHub App installations authorized for this site. */ settingsRoutes.get("/github-sync/app/installations", async (c) => {
|
|
@@ -21259,10 +21393,10 @@ function requireGitHubApp(c) {
|
|
|
21259
21393
|
const installationId = String(body.installationId ?? "").trim();
|
|
21260
21394
|
const repo = String(body.repo ?? "").trim();
|
|
21261
21395
|
if (!installationId || !repo) return c.json({ error: "Missing installationId or repo." }, 400);
|
|
21262
|
-
const { parseRepoSlug, createGitHubClient } = await import("./github-api-
|
|
21396
|
+
const { parseRepoSlug, createGitHubClient } = await import("./github-api-Bh0PH3zr.js").then((n) => n.n);
|
|
21263
21397
|
const parsed = parseRepoSlug(repo);
|
|
21264
21398
|
if (!parsed) return c.json({ error: "Invalid repository format." }, 400);
|
|
21265
|
-
const { classifyRepoForSync } = await import("./github-sync-
|
|
21399
|
+
const { classifyRepoForSync } = await import("./github-sync-C593r22F.js");
|
|
21266
21400
|
const client = createGitHubClient(() => getInstallationTokenFromApp(app, installationId));
|
|
21267
21401
|
try {
|
|
21268
21402
|
const classification = await classifyRepoForSync(client, parsed.owner, parsed.repo, c.var.currentSite.id);
|
|
@@ -21818,13 +21952,13 @@ function toApiAttachment(media, r2PublicUrl, imageTransformUrl, s3PublicUrl, loc
|
|
|
21818
21952
|
summary: media.summary,
|
|
21819
21953
|
chars: media.chars
|
|
21820
21954
|
};
|
|
21821
|
-
const previewUrl = getImageUrl(url, imageTransformUrl, {
|
|
21955
|
+
const previewUrl = media.mimeType.startsWith("image/") ? getImageUrl(url, imageTransformUrl, {
|
|
21822
21956
|
width: 1200,
|
|
21823
21957
|
height: 768,
|
|
21824
21958
|
quality: 80,
|
|
21825
21959
|
format: "auto",
|
|
21826
21960
|
fit: "scale-down"
|
|
21827
|
-
});
|
|
21961
|
+
}) : url;
|
|
21828
21962
|
const posterUrl = media.posterKey ? getMediaUrl(media.posterKey, publicUrl, sitePathPrefix) : null;
|
|
21829
21963
|
return {
|
|
21830
21964
|
type: "media",
|
|
@@ -22319,7 +22453,10 @@ settingsApiRoutes.post("/avatar", requireAuthApi(), async (c) => {
|
|
|
22319
22453
|
}
|
|
22320
22454
|
});
|
|
22321
22455
|
settingsApiRoutes.delete("/avatar", requireAuthApi(), async (c) => {
|
|
22322
|
-
await c.var.services.settings.removeAvatar(c.var.storage
|
|
22456
|
+
await c.var.services.settings.removeAvatar(c.var.storage, {
|
|
22457
|
+
media: c.var.services.media,
|
|
22458
|
+
storageProvider: c.var.appConfig.storageDriver
|
|
22459
|
+
});
|
|
22323
22460
|
try {
|
|
22324
22461
|
await syncHostedControlPlaneSiteAvatar({
|
|
22325
22462
|
appConfig: c.var.appConfig,
|
|
@@ -26110,28 +26247,30 @@ function setHeaders(ctx, headersToSet) {
|
|
|
26110
26247
|
*
|
|
26111
26248
|
* Design rationale (Jant-specific):
|
|
26112
26249
|
*
|
|
26113
|
-
* - **Public pages** allow `frame-src
|
|
26114
|
-
*
|
|
26115
|
-
*
|
|
26116
|
-
*
|
|
26117
|
-
*
|
|
26118
|
-
*
|
|
26250
|
+
* - **Public pages** allow `frame-src`, `script-src`, `style-src`,
|
|
26251
|
+
* `font-src`, and `connect-src` to load from any `https:` source. The site
|
|
26252
|
+
* author is the only content source — there is no UGC, no untrusted
|
|
26253
|
+
* writer, no public composer. Locking these down would block legitimate
|
|
26254
|
+
* embeds (YouTube, Letterbird, analytics), giscus's stylesheet, and
|
|
26255
|
+
* Google Fonts, and deliver no security benefit Jant doesn't already get
|
|
26256
|
+
* from being single-author. This matches Ghost/WordPress/Bear precedent.
|
|
26119
26257
|
*
|
|
26120
26258
|
* - **Authoring/auth/API routes** (FRAME_PROTECTED_PATH_PREFIXES) keep the
|
|
26121
26259
|
* tight policy: only same-origin scripts, no third-party iframes, and
|
|
26122
26260
|
* `frame-ancestors 'none'`. Compromise of an embed page must not lead
|
|
26123
|
-
* into the
|
|
26261
|
+
* into the settings pages.
|
|
26124
26262
|
*/ function appendUnique(sources, value) {
|
|
26125
26263
|
if (!value || sources.includes(value)) return;
|
|
26126
26264
|
sources.push(value);
|
|
26127
26265
|
}
|
|
26128
26266
|
function buildCspDirectives(input) {
|
|
26129
|
-
const { isFrameProtected, assetOrigin, uploadConnectSources, isDev } = input;
|
|
26267
|
+
const { isFrameProtected, assetOrigin, uploadConnectSources, isDev, allowInlineScript } = input;
|
|
26130
26268
|
const scriptSrc = [
|
|
26131
26269
|
"'self'",
|
|
26132
26270
|
"'unsafe-eval'",
|
|
26133
26271
|
"blob:"
|
|
26134
26272
|
];
|
|
26273
|
+
if (allowInlineScript) scriptSrc.push("'unsafe-inline'");
|
|
26135
26274
|
appendUnique(scriptSrc, assetOrigin);
|
|
26136
26275
|
const styleSrc = ["'self'", "'unsafe-inline'"];
|
|
26137
26276
|
appendUnique(styleSrc, assetOrigin);
|
|
@@ -26143,6 +26282,8 @@ function buildCspDirectives(input) {
|
|
|
26143
26282
|
if (!isFrameProtected) {
|
|
26144
26283
|
frameSrc = ["'self'", "https:"];
|
|
26145
26284
|
appendUnique(scriptSrc, "https:");
|
|
26285
|
+
appendUnique(styleSrc, "https:");
|
|
26286
|
+
appendUnique(fontSrc, "https:");
|
|
26146
26287
|
appendUnique(connectSrc, "https:");
|
|
26147
26288
|
}
|
|
26148
26289
|
const directives = {
|
|
@@ -26200,6 +26341,18 @@ function matchesPathPrefix(path, prefix) {
|
|
|
26200
26341
|
function shouldBlockFraming(path) {
|
|
26201
26342
|
return FRAME_PROTECTED_PATH_PREFIXES.some((prefix) => matchesPathPrefix(path, prefix));
|
|
26202
26343
|
}
|
|
26344
|
+
/**
|
|
26345
|
+
* Paths whose responses are not HTML rendered by `BaseLayout` and therefore
|
|
26346
|
+
* never carry author-pasted `customHeadHtml` / `customBodyEndHtml`. Skipping
|
|
26347
|
+
* the settings lookup for these avoids two DB roundtrips on every static
|
|
26348
|
+
* asset request.
|
|
26349
|
+
*/ function couldRenderCodeInjection(path) {
|
|
26350
|
+
if (shouldBlockFraming(path)) return false;
|
|
26351
|
+
if (path === "/favicon.ico" || path === "/apple-touch-icon.png") return false;
|
|
26352
|
+
if (path === "/healthz" || path === "/readyz") return false;
|
|
26353
|
+
if (path.startsWith("/media/") || path.startsWith("/sites/")) return false;
|
|
26354
|
+
return true;
|
|
26355
|
+
}
|
|
26203
26356
|
function tryGetOrigin(value) {
|
|
26204
26357
|
if (!value) return null;
|
|
26205
26358
|
try {
|
|
@@ -26240,14 +26393,15 @@ function toHonoCspOptions(directives) {
|
|
|
26240
26393
|
if (directives.frameAncestors) result.frameAncestors = directives.frameAncestors;
|
|
26241
26394
|
return result;
|
|
26242
26395
|
}
|
|
26243
|
-
function buildSecureHeadersOptions(path, env) {
|
|
26396
|
+
function buildSecureHeadersOptions(path, env, allowInlineScript) {
|
|
26244
26397
|
return {
|
|
26245
26398
|
contentSecurityPolicy: toHonoCspOptions(buildCspDirectives({
|
|
26246
26399
|
path,
|
|
26247
26400
|
isFrameProtected: shouldBlockFraming(path),
|
|
26248
26401
|
assetOrigin: tryGetOrigin(getEnvString(env, "ASSET_BASE_URL")),
|
|
26249
26402
|
uploadConnectSources: getDirectUploadConnectSources(env),
|
|
26250
|
-
isDev: IS_VITE_DEV
|
|
26403
|
+
isDev: IS_VITE_DEV,
|
|
26404
|
+
allowInlineScript
|
|
26251
26405
|
})),
|
|
26252
26406
|
crossOriginResourcePolicy: false,
|
|
26253
26407
|
crossOriginOpenerPolicy: false,
|
|
@@ -26262,9 +26416,24 @@ function buildSecureHeadersOptions(path, env) {
|
|
|
26262
26416
|
xXssProtection: false
|
|
26263
26417
|
};
|
|
26264
26418
|
}
|
|
26419
|
+
/**
|
|
26420
|
+
* Probe the settings service for any author-saved code injection. Resolves to
|
|
26421
|
+
* `false` whenever the lookup is unavailable (e.g. in unit tests that skip the
|
|
26422
|
+
* runtime middleware) or the path can't render `BaseLayout`.
|
|
26423
|
+
*
|
|
26424
|
+
* Costs two settings reads on public HTML routes; static asset and
|
|
26425
|
+
* frame-protected paths are short-circuited above.
|
|
26426
|
+
*/ async function detectInlineScriptOptIn(path, settings) {
|
|
26427
|
+
if (!settings) return false;
|
|
26428
|
+
if (!couldRenderCodeInjection(path)) return false;
|
|
26429
|
+
const [head, bodyEnd] = await Promise.all([settings.get("CUSTOM_HEAD_HTML"), settings.get("CUSTOM_BODY_END_HTML")]);
|
|
26430
|
+
return Boolean(head?.trim() || bodyEnd?.trim());
|
|
26431
|
+
}
|
|
26265
26432
|
function secureHeadersMiddleware() {
|
|
26266
26433
|
return async (c, next) => {
|
|
26267
|
-
|
|
26434
|
+
const services = c.var.services;
|
|
26435
|
+
const allowInlineScript = await detectInlineScriptOptIn(c.req.path, services?.settings);
|
|
26436
|
+
return secureHeaders(buildSecureHeadersOptions(c.req.path, c.env, allowInlineScript))(c, next);
|
|
26268
26437
|
};
|
|
26269
26438
|
}
|
|
26270
26439
|
//#endregion
|
|
@@ -26975,8 +27144,8 @@ function createHostedHandoffService(db, auth, options) {
|
|
|
26975
27144
|
},
|
|
26976
27145
|
async updateLocaleSettings(data, opts) {
|
|
26977
27146
|
const trimmedLanguage = data.siteLanguage.trim() || "en";
|
|
26978
|
-
if (!
|
|
26979
|
-
await this.set("SITE_LANGUAGE", trimmedLanguage);
|
|
27147
|
+
if (!isValidContentLanguage(trimmedLanguage)) throw new ValidationError("Enter a valid BCP 47 language tag (e.g. en, zh-Hans, fi, ja, fr-CA).");
|
|
27148
|
+
await this.set("SITE_LANGUAGE", normalizeContentLanguage(trimmedLanguage));
|
|
26980
27149
|
const cjkFont = data.cjkSerifFont?.trim() ?? "";
|
|
26981
27150
|
if (cjkFont && isCjkSerifFont(cjkFont) && cjkFont !== "off") await this.set("CJK_SERIF_FONT", cjkFont);
|
|
26982
27151
|
else await this.remove("CJK_SERIF_FONT");
|
|
@@ -27043,16 +27212,30 @@ function createHostedHandoffService(db, auth, options) {
|
|
|
27043
27212
|
}
|
|
27044
27213
|
if (data.appleTouchIcon) {
|
|
27045
27214
|
const appleTouchKey = getSiteStorageKey(siteId, "favicon", "apple-touch-icon.png");
|
|
27215
|
+
const existing = await deps.media.getByStorageKey(appleTouchKey, deps.storageProvider);
|
|
27216
|
+
if (existing) await deps.media.delete(existing.id);
|
|
27046
27217
|
await deps.storage.put(appleTouchKey, new Uint8Array(data.appleTouchIcon), { contentType: "image/png" });
|
|
27218
|
+
await deps.media.create({
|
|
27219
|
+
filename: "apple-touch-icon.png",
|
|
27220
|
+
originalName: "apple-touch-icon.png",
|
|
27221
|
+
mimeType: "image/png",
|
|
27222
|
+
size: data.appleTouchIcon.byteLength,
|
|
27223
|
+
storageKey: appleTouchKey,
|
|
27224
|
+
provider: deps.storageProvider
|
|
27225
|
+
});
|
|
27047
27226
|
await this.set("SITE_FAVICON_APPLE_TOUCH", appleTouchKey);
|
|
27048
27227
|
}
|
|
27049
27228
|
const ts = /* @__PURE__ */ new Date();
|
|
27050
27229
|
const version = String(ts.getUTCFullYear()) + String(ts.getUTCMonth() + 1).padStart(2, "0") + String(ts.getUTCDate()).padStart(2, "0") + String(ts.getUTCHours()).padStart(2, "0") + String(ts.getUTCMinutes()).padStart(2, "0");
|
|
27051
27230
|
await this.set("SITE_FAVICON_VERSION", version);
|
|
27052
27231
|
},
|
|
27053
|
-
async removeAvatar(storage) {
|
|
27232
|
+
async removeAvatar(storage, deps) {
|
|
27054
27233
|
const appleTouchKey = await this.get("SITE_FAVICON_APPLE_TOUCH");
|
|
27055
27234
|
if (storage && appleTouchKey) await storage.delete(appleTouchKey);
|
|
27235
|
+
if (deps?.media && deps.storageProvider && appleTouchKey) {
|
|
27236
|
+
const existing = await deps.media.getByStorageKey(appleTouchKey, deps.storageProvider);
|
|
27237
|
+
if (existing) await deps.media.delete(existing.id);
|
|
27238
|
+
}
|
|
27056
27239
|
await this.remove("SITE_AVATAR");
|
|
27057
27240
|
await this.remove("SITE_FAVICON_ICO");
|
|
27058
27241
|
await this.remove("SITE_FAVICON_APPLE_TOUCH");
|
|
@@ -27219,27 +27402,9 @@ function createPathService(db, siteId, databaseSchema = sqliteSchemaBundle) {
|
|
|
27219
27402
|
function normalizeStoredPath(path) {
|
|
27220
27403
|
return normalizePath(path);
|
|
27221
27404
|
}
|
|
27222
|
-
/**
|
|
27223
|
-
* Removes a path_registry entry for the given normalized path if it belongs
|
|
27224
|
-
* to a soft-deleted post, allowing the path to be reused.
|
|
27225
|
-
*/ async function reclaimDeletedPostPath(normalizedPath, excludePostId) {
|
|
27226
|
-
const conditions = [
|
|
27227
|
-
eq(pathRegistry.siteId, siteId),
|
|
27228
|
-
eq(pathRegistry.path, normalizedPath),
|
|
27229
|
-
isNotNull(pathRegistry.postId),
|
|
27230
|
-
sql`EXISTS (
|
|
27231
|
-
SELECT 1 FROM ${posts}
|
|
27232
|
-
WHERE ${posts.id} = ${pathRegistry.postId}
|
|
27233
|
-
AND ${posts.deletedAt} IS NOT NULL
|
|
27234
|
-
)`
|
|
27235
|
-
];
|
|
27236
|
-
if (excludePostId) conditions.push(ne(pathRegistry.postId, excludePostId));
|
|
27237
|
-
await db.delete(pathRegistry).where(and(...conditions));
|
|
27238
|
-
}
|
|
27239
27405
|
async function insertPath(input) {
|
|
27240
27406
|
const timestamp = now();
|
|
27241
27407
|
const normalizedPath = normalizeStoredPath(input.path);
|
|
27242
|
-
await reclaimDeletedPostPath(normalizedPath);
|
|
27243
27408
|
try {
|
|
27244
27409
|
return toPathRecord((await db.insert(pathRegistry).values({
|
|
27245
27410
|
id: createEntityId("path"),
|
|
@@ -27276,15 +27441,7 @@ function createPathService(db, siteId, databaseSchema = sqliteSchemaBundle) {
|
|
|
27276
27441
|
},
|
|
27277
27442
|
async isPathAvailable(path, excludeId) {
|
|
27278
27443
|
const normalized = normalizeStoredPath(path);
|
|
27279
|
-
const conditions = [
|
|
27280
|
-
eq(pathRegistry.siteId, siteId),
|
|
27281
|
-
eq(pathRegistry.path, normalized),
|
|
27282
|
-
sql`(${pathRegistry.postId} IS NULL OR NOT EXISTS (
|
|
27283
|
-
SELECT 1 FROM ${posts}
|
|
27284
|
-
WHERE ${posts.id} = ${pathRegistry.postId}
|
|
27285
|
-
AND ${posts.deletedAt} IS NOT NULL
|
|
27286
|
-
))`
|
|
27287
|
-
];
|
|
27444
|
+
const conditions = [eq(pathRegistry.siteId, siteId), eq(pathRegistry.path, normalized)];
|
|
27288
27445
|
if (excludeId) conditions.push(ne(pathRegistry.id, excludeId));
|
|
27289
27446
|
return (await db.select({ id: pathRegistry.id }).from(pathRegistry).where(and(...conditions)).limit(1)).length === 0;
|
|
27290
27447
|
},
|
|
@@ -27332,7 +27489,6 @@ function createPathService(db, siteId, databaseSchema = sqliteSchemaBundle) {
|
|
|
27332
27489
|
async updatePostSlug(postId, slug) {
|
|
27333
27490
|
const timestamp = now();
|
|
27334
27491
|
const normalized = normalizeStoredPath(slug);
|
|
27335
|
-
await reclaimDeletedPostPath(normalized, postId);
|
|
27336
27492
|
try {
|
|
27337
27493
|
await db.update(pathRegistry).set({
|
|
27338
27494
|
path: normalized,
|
|
@@ -27388,7 +27544,7 @@ function createPathService(db, siteId, databaseSchema = sqliteSchemaBundle) {
|
|
|
27388
27544
|
title: posts.title,
|
|
27389
27545
|
format: posts.format,
|
|
27390
27546
|
path: pathRegistry.path
|
|
27391
|
-
}).from(pathRegistry).innerJoin(posts, and(eq(posts.id, pathRegistry.postId), eq(posts.siteId, siteId))).where(and(eq(pathRegistry.siteId, siteId), eq(pathRegistry.kind, "slug"), isNotNull(pathRegistry.postId), isNotNull(posts.title),
|
|
27547
|
+
}).from(pathRegistry).innerJoin(posts, and(eq(posts.id, pathRegistry.postId), eq(posts.siteId, siteId))).where(and(eq(pathRegistry.siteId, siteId), eq(pathRegistry.kind, "slug"), isNotNull(pathRegistry.postId), isNotNull(posts.title), eq(posts.format, "note")));
|
|
27392
27548
|
const collectionRows = await db.select({
|
|
27393
27549
|
title: collections.title,
|
|
27394
27550
|
path: pathRegistry.path
|
|
@@ -27572,7 +27728,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27572
27728
|
return (await db.select({ id: pathRegistry.id }).from(pathRegistry).where(and(eq(pathRegistry.siteId, siteId), eq(pathRegistry.path, normalizePath(path)))).limit(1)).length > 0;
|
|
27573
27729
|
}
|
|
27574
27730
|
async function recalculateThreadLastActivity(rootId) {
|
|
27575
|
-
const latestPublishedAt = (await db.select({ latestPublishedAt: sql`MAX(${posts.publishedAt})`.as("latest_published_at") }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, rootId)
|
|
27731
|
+
const latestPublishedAt = (await db.select({ latestPublishedAt: sql`MAX(${posts.publishedAt})`.as("latest_published_at") }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, rootId))))[0]?.latestPublishedAt ?? null;
|
|
27576
27732
|
const root = await db.select({ updatedAt: posts.updatedAt }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.id, rootId))).limit(1);
|
|
27577
27733
|
const lastActivityAt = latestPublishedAt ?? root[0]?.updatedAt ?? now();
|
|
27578
27734
|
await db.update(posts).set({ lastActivityAt }).where(and(eq(posts.siteId, siteId), eq(posts.id, rootId)));
|
|
@@ -27652,7 +27808,6 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27652
27808
|
else if (filters.collectionId !== void 0) conditions.push(buildPostCollectionSubqueryCondition([filters.collectionId]));
|
|
27653
27809
|
if (filters.threadId) conditions.push(eq(posts.threadId, filters.threadId));
|
|
27654
27810
|
if (filters.excludeReplies) conditions.push(isNull(posts.replyToId));
|
|
27655
|
-
if (!filters.includeDeleted) conditions.push(isNull(posts.deletedAt));
|
|
27656
27811
|
if (filters.publishedAfter !== void 0) conditions.push(sql`${posts.publishedAt} >= ${filters.publishedAfter}`);
|
|
27657
27812
|
if (filters.publishedBefore !== void 0) conditions.push(sql`${posts.publishedAt} < ${filters.publishedBefore}`);
|
|
27658
27813
|
if (filters.mediaKinds && filters.mediaKinds.length > 0) {
|
|
@@ -27676,7 +27831,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27676
27831
|
return conditions;
|
|
27677
27832
|
}
|
|
27678
27833
|
async function getLastLivePostIdInThread(threadId) {
|
|
27679
|
-
return (await db.select({ id: posts.id }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, threadId)
|
|
27834
|
+
return (await db.select({ id: posts.id }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, threadId))).orderBy(desc(posts.createdAt), desc(posts.id)).limit(1))[0]?.id ?? null;
|
|
27680
27835
|
}
|
|
27681
27836
|
function getCursorSortTimestamp(row) {
|
|
27682
27837
|
return row.status === "draft" ? row.updatedAt : row.lastActivityAt ?? -1;
|
|
@@ -27842,7 +27997,6 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27842
27997
|
previewProvider: row.previewProvider,
|
|
27843
27998
|
replyToId: row.replyToId,
|
|
27844
27999
|
threadId: row.threadId,
|
|
27845
|
-
deletedAt: row.deletedAt,
|
|
27846
28000
|
publishedAt: row.publishedAt,
|
|
27847
28001
|
lastActivityAt: row.lastActivityAt ?? row.publishedAt ?? row.updatedAt,
|
|
27848
28002
|
createdAt: row.createdAt,
|
|
@@ -27871,7 +28025,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27871
28025
|
const result = /* @__PURE__ */ new Map();
|
|
27872
28026
|
const uniqueIds = [...new Set(ids)];
|
|
27873
28027
|
if (uniqueIds.length === 0) return result;
|
|
27874
|
-
const rows = await batchQueryRows(uniqueIds, (chunk) => db.select().from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.id, chunk), eq(posts.status, "published")
|
|
28028
|
+
const rows = await batchQueryRows(uniqueIds, (chunk) => db.select().from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.id, chunk), eq(posts.status, "published"))));
|
|
27875
28029
|
for (const post of await hydratePosts(rows)) result.set(post.id, post);
|
|
27876
28030
|
return result;
|
|
27877
28031
|
}
|
|
@@ -27887,7 +28041,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27887
28041
|
return result;
|
|
27888
28042
|
}
|
|
27889
28043
|
function buildThreadRootPageConditions(options) {
|
|
27890
|
-
const conditions = [
|
|
28044
|
+
const conditions = [];
|
|
27891
28045
|
const status = options?.status;
|
|
27892
28046
|
if (status) conditions.push(eq(posts.status, status));
|
|
27893
28047
|
if (options?.excludePrivate) conditions.push(sql`${effectiveVisibilityExpr} != 'private'`);
|
|
@@ -27962,7 +28116,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
27962
28116
|
}
|
|
27963
28117
|
return {
|
|
27964
28118
|
async getById(id) {
|
|
27965
|
-
return hydratePost((await db.select().from(posts).where(and(eq(posts.siteId, siteId), eq(posts.id, id)
|
|
28119
|
+
return hydratePost((await db.select().from(posts).where(and(eq(posts.siteId, siteId), eq(posts.id, id))).limit(1))[0]);
|
|
27966
28120
|
},
|
|
27967
28121
|
async getBodyContent(id) {
|
|
27968
28122
|
const post = await this.getById(id);
|
|
@@ -28549,28 +28703,22 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28549
28703
|
if (allMedia.length > 0) await deps.media.deleteByIds(allMedia.map((m) => m.id), deps.storage);
|
|
28550
28704
|
for (const p of affectedPosts) await deletePreviewImage(p.previewImageKey, deps.storage);
|
|
28551
28705
|
}
|
|
28552
|
-
|
|
28553
|
-
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
}).where(and(eq(posts.siteId, siteId), eq(posts.threadId, id)));
|
|
28706
|
+
if (isRoot) if (databaseDialect === "pg") await db.transaction(async (tx) => {
|
|
28707
|
+
await tx.delete(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, id)));
|
|
28708
|
+
});
|
|
28709
|
+
else await db.batch([db.run(sql`PRAGMA defer_foreign_keys = ON`), db.delete(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, id)))]);
|
|
28557
28710
|
else {
|
|
28558
|
-
await db.update(posts).set({
|
|
28559
|
-
|
|
28560
|
-
updatedAt: timestamp
|
|
28561
|
-
}).where(and(eq(posts.siteId, siteId), eq(posts.id, id)));
|
|
28711
|
+
await db.update(posts).set({ replyToId: existing.replyToId }).where(and(eq(posts.siteId, siteId), eq(posts.replyToId, id)));
|
|
28712
|
+
await db.delete(posts).where(and(eq(posts.siteId, siteId), eq(posts.id, id)));
|
|
28562
28713
|
await recalculateThreadLastActivity(existing.threadId);
|
|
28563
28714
|
}
|
|
28564
28715
|
return true;
|
|
28565
28716
|
},
|
|
28566
28717
|
async deleteThreadDraft(id, deps) {
|
|
28567
|
-
|
|
28568
|
-
const threadRows = await db.select({ id: posts.id }).from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, id)));
|
|
28569
|
-
for (const row of threadRows) await resolvedPaths.deleteByPostId(row.id);
|
|
28570
|
-
return true;
|
|
28718
|
+
return this.delete(id, deps);
|
|
28571
28719
|
},
|
|
28572
28720
|
async getThread(rootId) {
|
|
28573
|
-
return hydratePosts(await db.select().from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, rootId)
|
|
28721
|
+
return hydratePosts(await db.select().from(posts).where(and(eq(posts.siteId, siteId), eq(posts.threadId, rootId))).orderBy(posts.createdAt));
|
|
28574
28722
|
},
|
|
28575
28723
|
async updateThreadStatusAndVisibility(rootId, status, visibility) {
|
|
28576
28724
|
const nextStatus = ensurePostStatus(status);
|
|
@@ -28612,7 +28760,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28612
28760
|
const rows = await db.select({
|
|
28613
28761
|
threadId: posts.threadId,
|
|
28614
28762
|
count: sql`CAST(count(*) AS INTEGER)`.as("count")
|
|
28615
|
-
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, postIds), eq(posts.status, "published"), isNotNull(posts.replyToId)
|
|
28763
|
+
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, postIds), eq(posts.status, "published"), isNotNull(posts.replyToId))).groupBy(posts.threadId);
|
|
28616
28764
|
const counts = /* @__PURE__ */ new Map();
|
|
28617
28765
|
for (const row of rows) counts.set(row.threadId, row.count);
|
|
28618
28766
|
return counts;
|
|
@@ -28627,7 +28775,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28627
28775
|
PARTITION BY ${posts.threadId}
|
|
28628
28776
|
ORDER BY ${posts.createdAt}, ${posts.id}
|
|
28629
28777
|
) AS INTEGER)`.as("preview_rank")
|
|
28630
|
-
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, rootIds), eq(posts.status, "published"), isNotNull(posts.replyToId)
|
|
28778
|
+
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, rootIds), eq(posts.status, "published"), isNotNull(posts.replyToId))).as("ranked_replies");
|
|
28631
28779
|
const rankedRows = await db.select({
|
|
28632
28780
|
id: rankedReplies.id,
|
|
28633
28781
|
threadId: rankedReplies.threadId,
|
|
@@ -28663,7 +28811,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28663
28811
|
totalReplyCount: sql`CAST(COUNT(*) OVER (
|
|
28664
28812
|
PARTITION BY ${posts.threadId}
|
|
28665
28813
|
) AS INTEGER)`.as("total_reply_count")
|
|
28666
|
-
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, rootIds), eq(posts.status, "published"), isNotNull(posts.replyToId)
|
|
28814
|
+
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, rootIds), eq(posts.status, "published"), isNotNull(posts.replyToId))).as("ranked_replies");
|
|
28667
28815
|
const contextRows = await db.select({
|
|
28668
28816
|
threadId: rankedReplies.threadId,
|
|
28669
28817
|
id: rankedReplies.id,
|
|
@@ -28778,7 +28926,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28778
28926
|
const result = /* @__PURE__ */ new Map();
|
|
28779
28927
|
if (rootIds.length === 0) return result;
|
|
28780
28928
|
const unique = [...new Set(rootIds)];
|
|
28781
|
-
const rows = await db.select().from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, unique), eq(posts.status, "published")
|
|
28929
|
+
const rows = await db.select().from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, unique), eq(posts.status, "published"))).orderBy(posts.threadId, posts.createdAt, posts.id);
|
|
28782
28930
|
for (const post of await hydratePosts(rows)) {
|
|
28783
28931
|
const thread = result.get(post.threadId);
|
|
28784
28932
|
if (thread) thread.push(post);
|
|
@@ -28795,7 +28943,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28795
28943
|
const rows = await batchQueryRows([...new Set(threadIds)], (chunk) => db.select({
|
|
28796
28944
|
threadId: posts.threadId,
|
|
28797
28945
|
postId: posts.id
|
|
28798
|
-
}).from(posts).innerJoin(postCollections, and(eq(postCollections.siteId, siteId), eq(postCollections.postId, posts.id))).where(and(eq(posts.siteId, siteId), buildCollectionMembershipCondition(collectionIds), inArray(posts.threadId, chunk), eq(posts.status, "published")
|
|
28946
|
+
}).from(posts).innerJoin(postCollections, and(eq(postCollections.siteId, siteId), eq(postCollections.postId, posts.id))).where(and(eq(posts.siteId, siteId), buildCollectionMembershipCondition(collectionIds), inArray(posts.threadId, chunk), eq(posts.status, "published"))).groupBy(posts.threadId, posts.id).orderBy(posts.threadId, posts.createdAt, posts.id));
|
|
28799
28947
|
for (const row of rows) {
|
|
28800
28948
|
const list = result.get(row.threadId);
|
|
28801
28949
|
if (list) list.push(row.postId);
|
|
@@ -28810,7 +28958,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28810
28958
|
const rows = await db.select({
|
|
28811
28959
|
threadId: posts.threadId,
|
|
28812
28960
|
id: posts.id
|
|
28813
|
-
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, unique), eq(posts.status, "published")
|
|
28961
|
+
}).from(posts).where(and(eq(posts.siteId, siteId), inArray(posts.threadId, unique), eq(posts.status, "published"))).orderBy(posts.threadId, desc(posts.createdAt), desc(posts.id));
|
|
28814
28962
|
for (const row of rows) if (!result.has(row.threadId)) result.set(row.threadId, row.id);
|
|
28815
28963
|
return result;
|
|
28816
28964
|
},
|
|
@@ -28823,7 +28971,7 @@ function createPostService(db, config, siteId, paths, databaseSchema = sqliteSch
|
|
|
28823
28971
|
const requested = options.limit ?? 50;
|
|
28824
28972
|
const limit = Math.min(Math.max(Math.trunc(requested), 1), 500);
|
|
28825
28973
|
const cursor = options.cursor;
|
|
28826
|
-
const whereConditions = [eq(posts.siteId, siteId)
|
|
28974
|
+
const whereConditions = [eq(posts.siteId, siteId)];
|
|
28827
28975
|
if (cursor) whereConditions.push(gt(posts.id, cursor));
|
|
28828
28976
|
const rows = await db.select({
|
|
28829
28977
|
id: posts.id,
|
|
@@ -29202,14 +29350,14 @@ function createCollectionService(db, siteId, paths, databaseSchema = sqliteSchem
|
|
|
29202
29350
|
const postCount = sql`
|
|
29203
29351
|
CAST(COUNT(
|
|
29204
29352
|
CASE
|
|
29205
|
-
WHEN ${posts.id} IS NOT NULL
|
|
29353
|
+
WHEN ${posts.id} IS NOT NULL THEN 1
|
|
29206
29354
|
END
|
|
29207
29355
|
) AS INTEGER)
|
|
29208
29356
|
`.as("post_count");
|
|
29209
29357
|
const recentActivityAt = sql`
|
|
29210
29358
|
MAX(
|
|
29211
29359
|
CASE
|
|
29212
|
-
WHEN ${posts.id} IS NOT NULL
|
|
29360
|
+
WHEN ${posts.id} IS NOT NULL
|
|
29213
29361
|
THEN COALESCE(
|
|
29214
29362
|
${posts.lastActivityAt},
|
|
29215
29363
|
${posts.publishedAt},
|
|
@@ -29507,7 +29655,7 @@ function createCollectionService(db, siteId, paths, databaseSchema = sqliteSchem
|
|
|
29507
29655
|
const rows = await db.select({
|
|
29508
29656
|
collectionId: postCollections.collectionId,
|
|
29509
29657
|
count: sql`CAST(count(*) AS INTEGER)`.as("count")
|
|
29510
|
-
}).from(postCollections).innerJoin(sql`post`, sql`post.id = ${postCollections.postId} AND post.
|
|
29658
|
+
}).from(postCollections).innerJoin(sql`post`, sql`post.id = ${postCollections.postId} AND post.site_id = ${siteId}`).where(eq(postCollections.siteId, siteId)).groupBy(postCollections.collectionId);
|
|
29511
29659
|
const counts = /* @__PURE__ */ new Map();
|
|
29512
29660
|
for (const row of rows) counts.set(row.collectionId, row.count);
|
|
29513
29661
|
return counts;
|
|
@@ -29692,7 +29840,6 @@ function createCollectionService(db, siteId, paths, databaseSchema = sqliteSchem
|
|
|
29692
29840
|
previewProvider: null,
|
|
29693
29841
|
replyToId: row.reply_to_id,
|
|
29694
29842
|
threadId: row.thread_id,
|
|
29695
|
-
deletedAt: row.deleted_at,
|
|
29696
29843
|
publishedAt: row.published_at,
|
|
29697
29844
|
lastActivityAt: row.last_activity_at ?? row.published_at ?? row.updated_at,
|
|
29698
29845
|
createdAt: row.created_at,
|
|
@@ -29763,7 +29910,6 @@ function createSearchService(rawQuery, siteId, databaseDialect = "sqlite") {
|
|
|
29763
29910
|
AND path_registry.kind = 'slug'
|
|
29764
29911
|
WHERE post_fts MATCH ?
|
|
29765
29912
|
AND post.site_id = ?
|
|
29766
|
-
AND post.deleted_at IS NULL
|
|
29767
29913
|
AND post.status IN (${statusPlaceholders})
|
|
29768
29914
|
${formatFilter}
|
|
29769
29915
|
ORDER BY post_fts.rank
|
|
@@ -29828,7 +29974,6 @@ function createSearchService(rawQuery, siteId, databaseDialect = "sqlite") {
|
|
|
29828
29974
|
AND path_registry.kind = 'slug'
|
|
29829
29975
|
WHERE post.search_document @@ search_query.tsq
|
|
29830
29976
|
AND post.site_id = ?
|
|
29831
|
-
AND post.deleted_at IS NULL
|
|
29832
29977
|
AND post.status IN (${statusPlaceholders})
|
|
29833
29978
|
${formatFilter}
|
|
29834
29979
|
ORDER BY rank DESC, post.published_at DESC NULLS LAST, post.id DESC
|
|
@@ -29865,7 +30010,6 @@ function createSearchService(rawQuery, siteId, databaseDialect = "sqlite") {
|
|
|
29865
30010
|
AND path_registry.kind = 'slug'
|
|
29866
30011
|
WHERE post.search_text ILIKE ?
|
|
29867
30012
|
AND post.site_id = ?
|
|
29868
|
-
AND post.deleted_at IS NULL
|
|
29869
30013
|
AND post.status IN (${statusPlaceholders})
|
|
29870
30014
|
${formatFilter}
|
|
29871
30015
|
ORDER BY rank DESC, post.published_at DESC NULLS LAST, post.id DESC
|
|
@@ -29894,7 +30038,6 @@ function createSearchService(rawQuery, siteId, databaseDialect = "sqlite") {
|
|
|
29894
30038
|
post.url ${likeOperator} ?
|
|
29895
30039
|
)
|
|
29896
30040
|
AND post.site_id = ?
|
|
29897
|
-
AND post.deleted_at IS NULL
|
|
29898
30041
|
AND post.status IN (${statusPlaceholders})
|
|
29899
30042
|
${formatFilter}
|
|
29900
30043
|
ORDER BY post.published_at DESC
|
|
@@ -30109,14 +30252,12 @@ function createNavItemService(db, siteId, databaseSchema = sqliteSchemaBundle) {
|
|
|
30109
30252
|
}).from(postCollections).innerJoin(posts, and(eq(posts.id, postCollections.postId), eq(posts.siteId, postCollections.siteId))).where(and(eq(postCollections.siteId, siteId), inArray(postCollections.collectionId, collectionIds), sql`(
|
|
30110
30253
|
${postCollections.createdAt} > ${threshold}
|
|
30111
30254
|
OR (${posts.updatedAt} > ${threshold}
|
|
30112
|
-
AND ${posts.deletedAt} IS NULL
|
|
30113
30255
|
AND ${posts.status} = 'published')
|
|
30114
30256
|
OR EXISTS (
|
|
30115
30257
|
SELECT 1 FROM ${posts} reply
|
|
30116
30258
|
WHERE reply.site_id = ${postCollections.siteId}
|
|
30117
30259
|
AND reply.thread_id = ${postCollections.postId}
|
|
30118
30260
|
AND reply.reply_to_id IS NOT NULL
|
|
30119
|
-
AND reply.deleted_at IS NULL
|
|
30120
30261
|
AND reply.status = 'published'
|
|
30121
30262
|
AND reply.created_at > ${threshold}
|
|
30122
30263
|
)
|
|
@@ -30330,7 +30471,7 @@ function createApiTokenService(db, siteId, databaseSchema = sqliteSchemaBundle)
|
|
|
30330
30471
|
await navItems.ensureSystemDefaults();
|
|
30331
30472
|
await settings.set("SITE_NAME", data.siteName.trim());
|
|
30332
30473
|
await settings.set("TIME_ZONE", data.timeZone ?? "UTC");
|
|
30333
|
-
const siteLanguage = data.siteLanguage &&
|
|
30474
|
+
const siteLanguage = data.siteLanguage && isValidContentLanguage(data.siteLanguage) ? normalizeContentLanguage(data.siteLanguage) : "en";
|
|
30334
30475
|
await settings.set("SITE_LANGUAGE", siteLanguage);
|
|
30335
30476
|
if (data.cjkSerifFont && data.cjkSerifFont !== "off") await settings.set("CJK_SERIF_FONT", data.cjkSerifFont);
|
|
30336
30477
|
await settings.completeOnboarding();
|
|
@@ -30578,6 +30719,7 @@ function createSiteAdminService(db, databaseSchema = sqliteSchemaBundle, databas
|
|
|
30578
30719
|
const themeCss = buildThemeStyle(activeTheme, appConfig.themeMode, fontOverrides);
|
|
30579
30720
|
const navItemList = await navItems.list();
|
|
30580
30721
|
const appleTouchKey = allSettings[SETTINGS_KEYS.SITE_FAVICON_APPLE_TOUCH];
|
|
30722
|
+
const { createExportService } = await import("./export-ZBlfKSKm.js").then((n) => n.n);
|
|
30581
30723
|
const exportService = createExportService({
|
|
30582
30724
|
collections,
|
|
30583
30725
|
media: mediaService,
|
|
@@ -31892,4 +32034,4 @@ async function servePublicStorage(c) {
|
|
|
31892
32034
|
return app;
|
|
31893
32035
|
}
|
|
31894
32036
|
//#endregion
|
|
31895
|
-
export {
|
|
32037
|
+
export { NAV_ITEM_TYPES$2 as A, toPostView as C, MAX_MEDIA_ATTACHMENTS as D, FORMATS$2 as E, BUILTIN_COLOR_THEMES as F, getPublicAssetBasePath as I, isAssetPath as L, STATUSES$2 as M, TEXT_ATTACHMENT_CONTENT_FORMATS as N, MAX_PINNED_POSTS as O, buildThemeStyle as P, toNavItemViews as S, toSearchResultView as T, createMediaContext as _, resolveDatabaseDialect as a, toMediaView as b, resolveConfig as c, getFontThemeCssVariables as d, defaultFeedRenderer as f, schema_exports$1 as g, createNodeDatabase as h, createSiteService as i, SORT_ORDERS as j, MEDIA_KINDS as k, BUILTIN_FONT_THEMES as l, sqliteSchemaBundle as m, createNodeCliRuntime as n, getHostBasedStartupConfigurationIssues as o, pgSchemaBundle as p, createNodeRequestRuntime as r, createStorageDriver as s, createApp as t, getCjkSerifCssVariables as u, toArchiveGroups as v, toPostViews as w, toNavItemView as x, toArchiveGroupsWithMedia as y };
|