@autono/open-pages 0.6.0 → 0.7.0
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/dist/{build-6hM9Ga2d.js → build-CCoxDxL-.js} +11 -10
- package/dist/cli/bin.d.ts +1 -1
- package/dist/cli/bin.js +427 -30
- package/dist/{config-CBbwLHOo.js → config-D_U_aCQz.js} +484 -460
- package/dist/{config-C-sasGou.d.ts → config-p-TWNXbv.d.ts} +4 -4
- package/dist/{design-C13iz9_4.js → design-Cpqx7SJs.js} +1 -2
- package/dist/{dev-BO0cHiYy.js → dev-CTrB263u.js} +40 -20
- package/dist/{export-DbVwSmKW.js → export-enKL9R7x.js} +7 -10
- package/dist/index.d.ts +6 -8
- package/dist/index.js +2 -3
- package/dist/locale/index.d.ts +8 -14
- package/dist/locale/index.js +67 -32
- package/dist/{open-pages-plugin-C0poXLsx.js → open-pages-plugin-C8cFhMB9.js} +23 -38
- package/dist/preview-Dmzyd1cf.js +24 -0
- package/dist/{sync-ui-CDydLpY4.js → sync-ui-BzRiAGCK.js} +3 -5
- package/dist/{types-BzxkFHhd.d.ts → types-DDdUFUIS.d.ts} +19 -6
- package/dist/{update-D1U8TVwd.js → update-CWaCKlnl.js} +4 -7
- package/dist/{update-package-D9zws9nc.js → update-package-GaNsVdr8.js} +44 -22
- package/dist/{version-B6AiiGvT.js → version-DZrXLoAD.js} +19 -3
- package/dist/vite/index.d.ts +3 -7
- package/dist/vite/index.js +2 -7
- package/package.json +22 -21
- package/src/app/app.tsx +19 -14
- package/src/app/assets/autono-social.png +0 -0
- package/src/app/assets/autono.svg +7 -0
- package/src/app/components/asset-view.tsx +510 -26
- package/src/app/components/command/command-menu.tsx +5 -1
- package/src/app/components/command/command.tsx +4 -2
- package/src/app/components/command/home-command-menu.tsx +6 -6
- package/src/app/components/icon-tooltip.tsx +24 -15
- package/src/app/components/sidebar/folder-item.tsx +46 -19
- package/src/app/components/sidebar/icon-picker.tsx +1 -1
- package/src/app/components/sidebar/sidebar-footer.tsx +18 -7
- package/src/app/components/sidebar/sidebar.tsx +91 -64
- package/src/app/components/theme-toggle.tsx +4 -5
- package/src/app/components/themes/theme-detail.tsx +6 -3
- package/src/app/components/themes/themes-gallery.tsx +12 -7
- package/src/app/index.html +33 -2
- package/src/app/lib/assets.ts +33 -0
- package/src/app/lib/last-home-location.ts +18 -0
- package/src/app/main.tsx +10 -1
- package/src/app/routes/home-shell.tsx +82 -61
- package/src/app/routes/home.tsx +42 -39
- package/src/app/routes/page.tsx +18 -3
- package/src/app/routes/themes.tsx +6 -8
- package/src/app/styles.css +40 -4
- package/src/app/virtual.d.ts +1 -0
- package/src/locale/en.ts +17 -6
- package/src/locale/ja.ts +18 -6
- package/src/locale/types.ts +17 -4
- package/src/locale/zh-cn.ts +19 -8
- package/src/locale/zh-tw.ts +17 -6
- package/src/shared/update-package.ts +193 -0
- package/workspace/deps.json +1 -1
- package/dist/export-BsK6OCpc.js +0 -4
- package/dist/preview-sOKhzyWB.js +0 -21
- package/dist/sync-Be_hxSOF.js +0 -139
- package/dist/sync-lKEXyPOh.js +0 -3
- package/dist/version-CeffgdfZ.js +0 -3
- package/src/app/components/language-toggle.tsx +0 -46
- package/src/app/favicon.ico +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Locale } from "./types-
|
|
2
|
-
|
|
1
|
+
import { t as Locale } from "./types-DDdUFUIS.js";
|
|
3
2
|
//#region src/config.d.ts
|
|
4
3
|
type OpenPagesBuildConfig = {
|
|
5
4
|
showPageBrowser?: boolean;
|
|
@@ -19,5 +18,6 @@ type OpenPagesConfig = {
|
|
|
19
18
|
*/
|
|
20
19
|
locale?: Locale;
|
|
21
20
|
build?: OpenPagesBuildConfig;
|
|
22
|
-
};
|
|
23
|
-
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { OpenPagesConfig as t };
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { DEV_SUPERVISED_ENV, RESTART_EXIT_CODE, createViteConfig } from "./config-CBbwLHOo.js";
|
|
4
|
-
import "./update-package-D9zws9nc.js";
|
|
5
|
-
import "./version-B6AiiGvT.js";
|
|
6
|
-
import chalk from "chalk";
|
|
1
|
+
import { a as printUrls, i as printShortcutsHint, n as formatError, o as shortcutsEnabled, r as printHeader, s as startupDuration, t as createCliLogger } from "./cli/bin.js";
|
|
2
|
+
import { n as DEV_SUPERVISED_ENV, t as createViteConfig } from "./config-D_U_aCQz.js";
|
|
7
3
|
import path from "node:path";
|
|
8
4
|
import { existsSync } from "node:fs";
|
|
9
|
-
import { createServer, mergeConfig } from "vite";
|
|
10
5
|
import { fork } from "node:child_process";
|
|
11
|
-
|
|
6
|
+
import { createServer, mergeConfig } from "vite";
|
|
12
7
|
//#region src/cli/dev.ts
|
|
13
8
|
async function dev(opts = {}) {
|
|
14
|
-
if (process.env[
|
|
9
|
+
if (process.env["OPEN_PAGES_DEV_SUPERVISED"] === "1") {
|
|
15
10
|
await startServer(opts);
|
|
16
11
|
return;
|
|
17
12
|
}
|
|
@@ -19,21 +14,47 @@ async function dev(opts = {}) {
|
|
|
19
14
|
}
|
|
20
15
|
async function startServer(opts) {
|
|
21
16
|
const base = await createViteConfig({ userCwd: process.cwd() });
|
|
22
|
-
const config = mergeConfig(base, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
const config = mergeConfig(base, {
|
|
18
|
+
customLogger: createCliLogger(),
|
|
19
|
+
server: {
|
|
20
|
+
...opts.port !== void 0 ? { port: opts.port } : {},
|
|
21
|
+
...opts.host !== void 0 ? { host: opts.host } : {},
|
|
22
|
+
...opts.open !== void 0 ? { open: opts.open } : {}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
27
25
|
const server = await createServer(config);
|
|
28
26
|
await server.listen();
|
|
29
|
-
|
|
30
|
-
server.
|
|
27
|
+
printHeader(startupDuration());
|
|
28
|
+
printUrls(server.resolvedUrls, opts.host);
|
|
29
|
+
if (shortcutsEnabled()) {
|
|
30
|
+
printShortcutsHint();
|
|
31
|
+
server.bindCLIShortcuts({ customShortcuts: devShortcuts(opts) });
|
|
32
|
+
}
|
|
31
33
|
const address = server.httpServer?.address();
|
|
32
34
|
if (process.send && address && typeof address === "object") process.send({
|
|
33
35
|
type: "open-pages:listening",
|
|
34
36
|
port: address.port
|
|
35
37
|
});
|
|
36
38
|
}
|
|
39
|
+
function devShortcuts(opts) {
|
|
40
|
+
const showUrls = (server) => {
|
|
41
|
+
console.log("");
|
|
42
|
+
printUrls(server.resolvedUrls, opts.host);
|
|
43
|
+
};
|
|
44
|
+
return [{
|
|
45
|
+
key: "r",
|
|
46
|
+
description: "restart the server",
|
|
47
|
+
async action(server) {
|
|
48
|
+
const before = JSON.stringify(server.resolvedUrls);
|
|
49
|
+
await server.restart();
|
|
50
|
+
if (JSON.stringify(server.resolvedUrls) !== before) showUrls(server);
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
key: "u",
|
|
54
|
+
description: "show server url",
|
|
55
|
+
action: showUrls
|
|
56
|
+
}];
|
|
57
|
+
}
|
|
37
58
|
function supervise(opts) {
|
|
38
59
|
const userCwd = process.cwd();
|
|
39
60
|
let port = opts.port;
|
|
@@ -54,7 +75,7 @@ function supervise(opts) {
|
|
|
54
75
|
}
|
|
55
76
|
});
|
|
56
77
|
child.on("error", (err) => {
|
|
57
|
-
process.stderr.write(
|
|
78
|
+
process.stderr.write(formatError(err.message));
|
|
58
79
|
process.exit(1);
|
|
59
80
|
});
|
|
60
81
|
child.on("message", (message) => {
|
|
@@ -64,7 +85,7 @@ function supervise(opts) {
|
|
|
64
85
|
});
|
|
65
86
|
child.on("exit", (code, signal) => {
|
|
66
87
|
if (shuttingDown) process.exit(0);
|
|
67
|
-
if (code ===
|
|
88
|
+
if (code === 52) {
|
|
68
89
|
openBrowser = false;
|
|
69
90
|
spawnChild();
|
|
70
91
|
return;
|
|
@@ -92,6 +113,5 @@ function resolveDevEntry(userCwd) {
|
|
|
92
113
|
if (existsSync(installed)) return installed;
|
|
93
114
|
return process.argv[1];
|
|
94
115
|
}
|
|
95
|
-
|
|
96
116
|
//#endregion
|
|
97
|
-
export { dev };
|
|
117
|
+
export { dev };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
import { mkdir, readFile, realpath, rm, writeFile } from "node:fs/promises";
|
|
1
|
+
import { a as openPagesPlugin, i as loadUserConfig, n as findPages, t as extractMeta } from "./open-pages-plugin-C8cFhMB9.js";
|
|
4
2
|
import path from "node:path";
|
|
3
|
+
import chalk from "chalk";
|
|
5
4
|
import { existsSync } from "node:fs";
|
|
5
|
+
import { mkdir, readFile, realpath, rm, writeFile } from "node:fs/promises";
|
|
6
6
|
import tailwindcss from "@tailwindcss/vite";
|
|
7
7
|
import react from "@vitejs/plugin-react";
|
|
8
8
|
import { build } from "vite";
|
|
9
|
-
|
|
10
9
|
//#region src/cli/export.ts
|
|
11
10
|
function escapeHtml(s) {
|
|
12
11
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """);
|
|
@@ -47,7 +46,7 @@ async function buildPage(opts) {
|
|
|
47
46
|
" </head>",
|
|
48
47
|
" <body>",
|
|
49
48
|
" <div id=\"root\"></div>",
|
|
50
|
-
" <script type=\"module\" src=\"./entry.tsx\"
|
|
49
|
+
" <script type=\"module\" src=\"./entry.tsx\"><\/script>",
|
|
51
50
|
" </body>",
|
|
52
51
|
"</html>",
|
|
53
52
|
""
|
|
@@ -98,8 +97,7 @@ function extractDescription(src) {
|
|
|
98
97
|
const metaStart = src.search(/export\s+const\s+meta\b/);
|
|
99
98
|
if (metaStart === -1) return null;
|
|
100
99
|
const end = src.indexOf("};", metaStart);
|
|
101
|
-
|
|
102
|
-
return body.match(META_DESCRIPTION_RE)?.[1] ?? null;
|
|
100
|
+
return src.slice(metaStart, end === -1 ? void 0 : end).match(META_DESCRIPTION_RE)?.[1] ?? null;
|
|
103
101
|
}
|
|
104
102
|
async function exportPages(opts = {}) {
|
|
105
103
|
const userCwd = process.cwd();
|
|
@@ -112,7 +110,7 @@ async function exportPages(opts = {}) {
|
|
|
112
110
|
const requested = opts.pages && opts.pages.length > 0 ? opts.pages : idsOnDisk;
|
|
113
111
|
const unknown = requested.filter((id) => !idsOnDisk.includes(id));
|
|
114
112
|
if (unknown.length > 0) throw new Error(`Page not found: ${unknown.join(", ")} (available: ${idsOnDisk.join(", ")})`);
|
|
115
|
-
const { readCoreVersion } = await import("./version-
|
|
113
|
+
const { readCoreVersion } = await import("./version-DZrXLoAD.js").then((n) => n.i);
|
|
116
114
|
const coreVersion = readCoreVersion();
|
|
117
115
|
await mkdir(outDir, { recursive: true });
|
|
118
116
|
for (const id of requested) {
|
|
@@ -133,6 +131,5 @@ async function exportPages(opts = {}) {
|
|
|
133
131
|
const n = requested.length;
|
|
134
132
|
process.stdout.write(chalk.dim(`${n} ${n === 1 ? "page" : "pages"} → ${path.relative(userCwd, outDir)}/\n`));
|
|
135
133
|
}
|
|
136
|
-
|
|
137
134
|
//#endregion
|
|
138
|
-
export { buildPage, exportPages };
|
|
135
|
+
export { buildPage, exportPages };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OpenPagesConfig } from "./config-
|
|
1
|
+
import { n as Plural, t as Locale } from "./types-DDdUFUIS.js";
|
|
2
|
+
import { t as OpenPagesConfig } from "./config-p-TWNXbv.js";
|
|
3
3
|
import { ComponentType } from "react";
|
|
4
|
-
|
|
5
4
|
//#region src/app/lib/design.d.ts
|
|
6
5
|
type DesignPalette = {
|
|
7
6
|
bg: string;
|
|
@@ -22,9 +21,9 @@ type DesignSystem = {
|
|
|
22
21
|
typeScale: DesignTypeScale;
|
|
23
22
|
radius: number;
|
|
24
23
|
};
|
|
25
|
-
declare function designToCssVars(d: DesignSystem): Record<string, string>;
|
|
26
|
-
declare function cssVarsToString(vars: Record<string, string>): string;
|
|
27
|
-
declare const defaultDesign: DesignSystem;
|
|
24
|
+
export declare function designToCssVars(d: DesignSystem): Record<string, string>;
|
|
25
|
+
export declare function cssVarsToString(vars: Record<string, string>): string;
|
|
26
|
+
export declare const defaultDesign: DesignSystem;
|
|
28
27
|
//#endregion
|
|
29
28
|
//#region src/app/lib/sdk.d.ts
|
|
30
29
|
/**
|
|
@@ -51,6 +50,5 @@ type PageModule = {
|
|
|
51
50
|
meta?: PageMeta;
|
|
52
51
|
design?: DesignSystem;
|
|
53
52
|
};
|
|
54
|
-
|
|
55
53
|
//#endregion
|
|
56
|
-
export { DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, Locale, OpenPagesConfig, PageComponent, PageKind, PageMeta, PageModule, Plural
|
|
54
|
+
export type { DesignFonts, DesignPalette, DesignSystem, DesignTypeScale, Locale, OpenPagesConfig, PageComponent, PageKind, PageMeta, PageModule, Plural };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { cssVarsToString, defaultDesign, designToCssVars };
|
|
1
|
+
import { n as defaultDesign, r as designToCssVars, t as cssVarsToString } from "./design-Cpqx7SJs.js";
|
|
2
|
+
export { cssVarsToString, defaultDesign, designToCssVars };
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { n as Plural, t as Locale } from "../types-DDdUFUIS.js";
|
|
3
2
|
//#region src/locale/en.d.ts
|
|
4
|
-
declare const en: Locale;
|
|
5
|
-
|
|
3
|
+
export declare const en: Locale;
|
|
6
4
|
//#endregion
|
|
7
5
|
//#region src/locale/format.d.ts
|
|
8
|
-
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
9
|
-
declare function plural(count: number, forms: Plural): string;
|
|
10
|
-
|
|
6
|
+
export declare function format(template: string, vars: Record<string, string | number>): string;
|
|
7
|
+
export declare function plural(count: number, forms: Plural): string;
|
|
11
8
|
//#endregion
|
|
12
9
|
//#region src/locale/ja.d.ts
|
|
13
|
-
declare const ja: Locale;
|
|
14
|
-
|
|
10
|
+
export declare const ja: Locale;
|
|
15
11
|
//#endregion
|
|
16
12
|
//#region src/locale/zh-cn.d.ts
|
|
17
|
-
declare const zhCN: Locale;
|
|
18
|
-
|
|
13
|
+
export declare const zhCN: Locale;
|
|
19
14
|
//#endregion
|
|
20
15
|
//#region src/locale/zh-tw.d.ts
|
|
21
|
-
declare const zhTW: Locale;
|
|
22
|
-
|
|
16
|
+
export declare const zhTW: Locale;
|
|
23
17
|
//#endregion
|
|
24
|
-
export { Locale, Plural
|
|
18
|
+
export type { Locale, Plural };
|
package/dist/locale/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const en = {
|
|
|
17
17
|
title: "Page not found"
|
|
18
18
|
},
|
|
19
19
|
home: {
|
|
20
|
-
appTitle: "
|
|
20
|
+
appTitle: "Autono",
|
|
21
21
|
draft: "Draft",
|
|
22
22
|
duplicate: "Duplicate",
|
|
23
23
|
themes: "Themes",
|
|
@@ -27,7 +27,7 @@ const en = {
|
|
|
27
27
|
menu: "Menu",
|
|
28
28
|
newFolder: "New folder",
|
|
29
29
|
folderName: "Folder name",
|
|
30
|
-
updateAvailable: "
|
|
30
|
+
updateAvailable: "Autono {version} is available",
|
|
31
31
|
updatePackage: "Update",
|
|
32
32
|
updatingPackage: "Updating",
|
|
33
33
|
updatePackageDone: "Updated. Restart the dev server to use the new version.",
|
|
@@ -121,6 +121,7 @@ const en = {
|
|
|
121
121
|
noMatchingAssetsHint: "Try adjusting your search or filters.",
|
|
122
122
|
clearFilters: "Clear filters",
|
|
123
123
|
searchLogos: "Search logos",
|
|
124
|
+
searchFonts: "Search fonts",
|
|
124
125
|
upload: "Upload",
|
|
125
126
|
dropToUpload: "Drop to upload",
|
|
126
127
|
loading: "Loading…",
|
|
@@ -158,6 +159,18 @@ const en = {
|
|
|
158
159
|
logoSearchEmptyHintSuffix: ".",
|
|
159
160
|
logoVariantLight: "Light",
|
|
160
161
|
logoVariantDark: "Dark",
|
|
162
|
+
fontSearchTitle: "Search Google Fonts",
|
|
163
|
+
fontSearchPoweredByPrefix: "Powered by ",
|
|
164
|
+
fontSearchPlaceholder: "Search font families…",
|
|
165
|
+
fontSearchPreviewPlaceholder: "Preview text",
|
|
166
|
+
fontSearchErrorTitle: "Couldn't reach Google Fonts",
|
|
167
|
+
fontSearchErrorBody: "Check your connection and try again.",
|
|
168
|
+
fontSearchNoResults: "No fonts for \"{query}\"",
|
|
169
|
+
fontSearchEmpty: "No fonts available",
|
|
170
|
+
fontSearchEmptyHintPrefix: "Try a different family name, or browse the full catalog at ",
|
|
171
|
+
fontSearchEmptyHintSuffix: ".",
|
|
172
|
+
fontWeightLabel: "Weight",
|
|
173
|
+
fontPreviewSample: "The quick brown fox jumps over the lazy dog 0123456789",
|
|
161
174
|
toastUploadFailed: "Upload failed ({status})",
|
|
162
175
|
toastReplaced: "Replaced {name}",
|
|
163
176
|
toastUploadedAs: "Uploaded as {name}",
|
|
@@ -167,6 +180,7 @@ const en = {
|
|
|
167
180
|
toastDeleteFailed: "Delete failed ({status})",
|
|
168
181
|
toastDeleted: "Deleted {name}",
|
|
169
182
|
toastDownloadFailed: "Failed to download logo",
|
|
183
|
+
toastFontDownloadFailed: "Failed to download font",
|
|
170
184
|
toastSearchFailed: "Search failed"
|
|
171
185
|
},
|
|
172
186
|
commandMenu: {
|
|
@@ -193,10 +207,6 @@ const en = {
|
|
|
193
207
|
dark: "Dark",
|
|
194
208
|
system: "System"
|
|
195
209
|
},
|
|
196
|
-
languageToggle: {
|
|
197
|
-
toggleAria: "Change language",
|
|
198
|
-
title: "Language"
|
|
199
|
-
},
|
|
200
210
|
themes: {
|
|
201
211
|
title: "Themes",
|
|
202
212
|
noThemesTitle: "No themes yet",
|
|
@@ -213,7 +223,6 @@ const en = {
|
|
|
213
223
|
collapsePromptAria: "Collapse prompt"
|
|
214
224
|
}
|
|
215
225
|
};
|
|
216
|
-
|
|
217
226
|
//#endregion
|
|
218
227
|
//#region src/locale/format.ts
|
|
219
228
|
function format(template, vars) {
|
|
@@ -225,7 +234,6 @@ function format(template, vars) {
|
|
|
225
234
|
function plural(count, forms) {
|
|
226
235
|
return count === 1 ? forms.one : forms.other;
|
|
227
236
|
}
|
|
228
|
-
|
|
229
237
|
//#endregion
|
|
230
238
|
//#region src/locale/ja.ts
|
|
231
239
|
const ja = {
|
|
@@ -246,7 +254,7 @@ const ja = {
|
|
|
246
254
|
title: "ページが見つかりません"
|
|
247
255
|
},
|
|
248
256
|
home: {
|
|
249
|
-
appTitle: "
|
|
257
|
+
appTitle: "Autono",
|
|
250
258
|
draft: "下書き",
|
|
251
259
|
duplicate: "複製",
|
|
252
260
|
themes: "テーマ",
|
|
@@ -256,7 +264,7 @@ const ja = {
|
|
|
256
264
|
menu: "メニュー",
|
|
257
265
|
newFolder: "新規フォルダ",
|
|
258
266
|
folderName: "フォルダ名",
|
|
259
|
-
updateAvailable: "
|
|
267
|
+
updateAvailable: "Autono {version} が利用可能です",
|
|
260
268
|
updatePackage: "更新",
|
|
261
269
|
updatingPackage: "更新中",
|
|
262
270
|
updatePackageDone: "更新しました。新しいバージョンを使うには dev server を再起動してください。",
|
|
@@ -350,6 +358,7 @@ const ja = {
|
|
|
350
358
|
noMatchingAssetsHint: "検索条件またはフィルターを調整してください。",
|
|
351
359
|
clearFilters: "フィルターをクリア",
|
|
352
360
|
searchLogos: "ロゴを検索",
|
|
361
|
+
searchFonts: "フォントを検索",
|
|
353
362
|
upload: "アップロード",
|
|
354
363
|
dropToUpload: "ドロップでアップロード",
|
|
355
364
|
loading: "読み込み中…",
|
|
@@ -387,6 +396,18 @@ const ja = {
|
|
|
387
396
|
logoSearchEmptyHintSuffix: "。",
|
|
388
397
|
logoVariantLight: "ライト",
|
|
389
398
|
logoVariantDark: "ダーク",
|
|
399
|
+
fontSearchTitle: "Google Fonts を検索",
|
|
400
|
+
fontSearchPoweredByPrefix: "Powered by ",
|
|
401
|
+
fontSearchPlaceholder: "フォントファミリーで検索…",
|
|
402
|
+
fontSearchPreviewPlaceholder: "プレビューテキスト",
|
|
403
|
+
fontSearchErrorTitle: "Google Fonts に接続できません",
|
|
404
|
+
fontSearchErrorBody: "接続を確認して再試行してください。",
|
|
405
|
+
fontSearchNoResults: "「{query}」のフォントは見つかりません",
|
|
406
|
+
fontSearchEmpty: "利用可能なフォントはありません",
|
|
407
|
+
fontSearchEmptyHintPrefix: "別のファミリー名を試すか、次のサイトでカタログ全体を閲覧してください: ",
|
|
408
|
+
fontSearchEmptyHintSuffix: "。",
|
|
409
|
+
fontWeightLabel: "ウェイト",
|
|
410
|
+
fontPreviewSample: "いろはにほへと 永遠 ABCabc 0123456789",
|
|
390
411
|
toastUploadFailed: "アップロードに失敗しました ({status})",
|
|
391
412
|
toastReplaced: "{name} を置き換えました",
|
|
392
413
|
toastUploadedAs: "{name} としてアップロードしました",
|
|
@@ -396,6 +417,7 @@ const ja = {
|
|
|
396
417
|
toastDeleteFailed: "削除に失敗しました ({status})",
|
|
397
418
|
toastDeleted: "{name} を削除しました",
|
|
398
419
|
toastDownloadFailed: "ロゴのダウンロードに失敗しました",
|
|
420
|
+
toastFontDownloadFailed: "フォントのダウンロードに失敗しました",
|
|
399
421
|
toastSearchFailed: "検索に失敗しました"
|
|
400
422
|
},
|
|
401
423
|
commandMenu: {
|
|
@@ -422,10 +444,6 @@ const ja = {
|
|
|
422
444
|
dark: "ダーク",
|
|
423
445
|
system: "システム"
|
|
424
446
|
},
|
|
425
|
-
languageToggle: {
|
|
426
|
-
toggleAria: "言語を切り替え",
|
|
427
|
-
title: "言語"
|
|
428
|
-
},
|
|
429
447
|
themes: {
|
|
430
448
|
title: "テーマ",
|
|
431
449
|
noThemesTitle: "テーマがまだありません",
|
|
@@ -442,7 +460,6 @@ const ja = {
|
|
|
442
460
|
collapsePromptAria: "プロンプトを折りたたむ"
|
|
443
461
|
}
|
|
444
462
|
};
|
|
445
|
-
|
|
446
463
|
//#endregion
|
|
447
464
|
//#region src/locale/zh-cn.ts
|
|
448
465
|
const zhCN = {
|
|
@@ -463,7 +480,7 @@ const zhCN = {
|
|
|
463
480
|
title: "未找到页面"
|
|
464
481
|
},
|
|
465
482
|
home: {
|
|
466
|
-
appTitle: "
|
|
483
|
+
appTitle: "Autono",
|
|
467
484
|
draft: "草稿",
|
|
468
485
|
duplicate: "复制",
|
|
469
486
|
themes: "主题",
|
|
@@ -471,9 +488,9 @@ const zhCN = {
|
|
|
471
488
|
folders: "頁面夹",
|
|
472
489
|
pages: "幻灯片",
|
|
473
490
|
menu: "菜单",
|
|
474
|
-
newFolder: "
|
|
475
|
-
folderName: "
|
|
476
|
-
updateAvailable: "
|
|
491
|
+
newFolder: "新建文件夹",
|
|
492
|
+
folderName: "文件夹名称",
|
|
493
|
+
updateAvailable: "Autono {version} 已发布",
|
|
477
494
|
updatePackage: "更新",
|
|
478
495
|
updatingPackage: "更新中",
|
|
479
496
|
updatePackageDone: "已更新。请重启 dev server 以使用新版本。",
|
|
@@ -567,6 +584,7 @@ const zhCN = {
|
|
|
567
584
|
noMatchingAssetsHint: "请调整搜索或筛选条件。",
|
|
568
585
|
clearFilters: "清除筛选",
|
|
569
586
|
searchLogos: "搜索 Logo",
|
|
587
|
+
searchFonts: "搜索字体",
|
|
570
588
|
upload: "上传",
|
|
571
589
|
dropToUpload: "拖入即可上传",
|
|
572
590
|
loading: "加载中…",
|
|
@@ -604,6 +622,18 @@ const zhCN = {
|
|
|
604
622
|
logoSearchEmptyHintSuffix: "。",
|
|
605
623
|
logoVariantLight: "浅色",
|
|
606
624
|
logoVariantDark: "深色",
|
|
625
|
+
fontSearchTitle: "搜索 Google Fonts",
|
|
626
|
+
fontSearchPoweredByPrefix: "由 ",
|
|
627
|
+
fontSearchPlaceholder: "搜索字体家族…",
|
|
628
|
+
fontSearchPreviewPlaceholder: "预览文字",
|
|
629
|
+
fontSearchErrorTitle: "无法连接至 Google Fonts",
|
|
630
|
+
fontSearchErrorBody: "请检查网络连接后重试。",
|
|
631
|
+
fontSearchNoResults: "找不到「{query}」的字体",
|
|
632
|
+
fontSearchEmpty: "无可用字体",
|
|
633
|
+
fontSearchEmptyHintPrefix: "试试其他字体家族名,或在以下网站浏览完整目录: ",
|
|
634
|
+
fontSearchEmptyHintSuffix: "。",
|
|
635
|
+
fontWeightLabel: "字重",
|
|
636
|
+
fontPreviewSample: "永和九年 岁在癸丑 ABCabc 0123456789",
|
|
607
637
|
toastUploadFailed: "上传失败 ({status})",
|
|
608
638
|
toastReplaced: "已替换 {name}",
|
|
609
639
|
toastUploadedAs: "已以 {name} 上传",
|
|
@@ -613,6 +643,7 @@ const zhCN = {
|
|
|
613
643
|
toastDeleteFailed: "删除失败 ({status})",
|
|
614
644
|
toastDeleted: "已删除 {name}",
|
|
615
645
|
toastDownloadFailed: "下载 Logo 失败",
|
|
646
|
+
toastFontDownloadFailed: "下载字体失败",
|
|
616
647
|
toastSearchFailed: "搜索失败"
|
|
617
648
|
},
|
|
618
649
|
commandMenu: {
|
|
@@ -639,10 +670,6 @@ const zhCN = {
|
|
|
639
670
|
dark: "深色",
|
|
640
671
|
system: "系统"
|
|
641
672
|
},
|
|
642
|
-
languageToggle: {
|
|
643
|
-
toggleAria: "切换语言",
|
|
644
|
-
title: "语言"
|
|
645
|
-
},
|
|
646
673
|
themes: {
|
|
647
674
|
title: "主题",
|
|
648
675
|
noThemesTitle: "尚无主题",
|
|
@@ -659,7 +686,6 @@ const zhCN = {
|
|
|
659
686
|
collapsePromptAria: "收起 prompt"
|
|
660
687
|
}
|
|
661
688
|
};
|
|
662
|
-
|
|
663
689
|
//#endregion
|
|
664
690
|
//#region src/locale/zh-tw.ts
|
|
665
691
|
const zhTW = {
|
|
@@ -680,7 +706,7 @@ const zhTW = {
|
|
|
680
706
|
title: "找不到頁面"
|
|
681
707
|
},
|
|
682
708
|
home: {
|
|
683
|
-
appTitle: "
|
|
709
|
+
appTitle: "Autono",
|
|
684
710
|
draft: "草稿",
|
|
685
711
|
duplicate: "複製",
|
|
686
712
|
themes: "主題",
|
|
@@ -690,7 +716,7 @@ const zhTW = {
|
|
|
690
716
|
menu: "選單",
|
|
691
717
|
newFolder: "新增資料夾",
|
|
692
718
|
folderName: "資料夾名稱",
|
|
693
|
-
updateAvailable: "
|
|
719
|
+
updateAvailable: "Autono {version} 已發布",
|
|
694
720
|
updatePackage: "更新",
|
|
695
721
|
updatingPackage: "更新中",
|
|
696
722
|
updatePackageDone: "已更新。請重新啟動 dev server 以使用新版本。",
|
|
@@ -784,6 +810,7 @@ const zhTW = {
|
|
|
784
810
|
noMatchingAssetsHint: "請調整搜尋或篩選條件。",
|
|
785
811
|
clearFilters: "清除篩選",
|
|
786
812
|
searchLogos: "搜尋 Logo",
|
|
813
|
+
searchFonts: "搜尋字型",
|
|
787
814
|
upload: "上傳",
|
|
788
815
|
dropToUpload: "拖入即可上傳",
|
|
789
816
|
loading: "載入中…",
|
|
@@ -821,6 +848,18 @@ const zhTW = {
|
|
|
821
848
|
logoSearchEmptyHintSuffix: "。",
|
|
822
849
|
logoVariantLight: "淺色",
|
|
823
850
|
logoVariantDark: "深色",
|
|
851
|
+
fontSearchTitle: "搜尋 Google Fonts",
|
|
852
|
+
fontSearchPoweredByPrefix: "由 ",
|
|
853
|
+
fontSearchPlaceholder: "搜尋字型家族…",
|
|
854
|
+
fontSearchPreviewPlaceholder: "預覽文字",
|
|
855
|
+
fontSearchErrorTitle: "無法連線至 Google Fonts",
|
|
856
|
+
fontSearchErrorBody: "請檢查網路連線後重試。",
|
|
857
|
+
fontSearchNoResults: "找不到「{query}」的字型",
|
|
858
|
+
fontSearchEmpty: "沒有可用的字型",
|
|
859
|
+
fontSearchEmptyHintPrefix: "試試其他字型家族名稱,或在以下網站瀏覽完整目錄: ",
|
|
860
|
+
fontSearchEmptyHintSuffix: "。",
|
|
861
|
+
fontWeightLabel: "字重",
|
|
862
|
+
fontPreviewSample: "永和九年 歲在癸丑 ABCabc 0123456789",
|
|
824
863
|
toastUploadFailed: "上傳失敗 ({status})",
|
|
825
864
|
toastReplaced: "已取代 {name}",
|
|
826
865
|
toastUploadedAs: "已以 {name} 上傳",
|
|
@@ -830,6 +869,7 @@ const zhTW = {
|
|
|
830
869
|
toastDeleteFailed: "刪除失敗 ({status})",
|
|
831
870
|
toastDeleted: "已刪除 {name}",
|
|
832
871
|
toastDownloadFailed: "下載 Logo 失敗",
|
|
872
|
+
toastFontDownloadFailed: "下載字型失敗",
|
|
833
873
|
toastSearchFailed: "搜尋失敗"
|
|
834
874
|
},
|
|
835
875
|
commandMenu: {
|
|
@@ -856,10 +896,6 @@ const zhTW = {
|
|
|
856
896
|
dark: "深色",
|
|
857
897
|
system: "系統"
|
|
858
898
|
},
|
|
859
|
-
languageToggle: {
|
|
860
|
-
toggleAria: "切換語言",
|
|
861
|
-
title: "語言"
|
|
862
|
-
},
|
|
863
899
|
themes: {
|
|
864
900
|
title: "主題",
|
|
865
901
|
noThemesTitle: "尚無主題",
|
|
@@ -876,6 +912,5 @@ const zhTW = {
|
|
|
876
912
|
collapsePromptAria: "收合 prompt"
|
|
877
913
|
}
|
|
878
914
|
};
|
|
879
|
-
|
|
880
915
|
//#endregion
|
|
881
|
-
export { en, format, ja, plural, zhCN, zhTW };
|
|
916
|
+
export { en, format, ja, plural, zhCN, zhTW };
|