Skip to content

Commit d36bb5b

Browse files
committed
Update meta, language
1 parent 500b69b commit d36bb5b

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
<meta property="description" content="A web editor for skap maps" />
77
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
88
<link rel="stylesheet" href="/index.css" />
9+
910
<meta property="og:title" content="SkapEdit" />
11+
<meta property="og:description" content="A web editor for skap maps, by NKY5223" />
1012
<meta property="og:type" content="website" />
1113
<meta property="og:url" content="https://nky5223.github.io/SkapEdit" />
12-
<meta property="og:image" content="https://nky5223.github.io/SkapEdit/logo.svg" />
14+
<meta property="og:image" content="https://nky5223.github.io/SkapEdit/logo-transparency.png" />
15+
<meta property="theme-color" content="#2080ff" />
1316
<title>SkapEdit</title>
1417
</head>
1518
<body>

public/logo-transparency.png

5.47 KB
Loading

public/logo-transparency.svg

Lines changed: 28 additions & 0 deletions
Loading

src/components/editor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { defaultLayoutTree, defaultMap } from "./default.tsx";
99
import { SelectionProvider } from "./selection.ts";
1010
import { LayoutRoot } from "@components/layout/Layout.tsx";
1111
import { TranslationProvider } from "@components/translate/TranslationProvider.tsx";
12-
// import { translator_en_US } from "@components/translate/translation/en_US.ts";
12+
import { translator_en_US } from "@components/translate/translation/en_US.ts";
1313
import { translator_zh_Hans } from "@components/translate/translation/zh_Hans.ts";
1414

1515
type EditorProps = {
@@ -21,7 +21,7 @@ export const Editor: FC<EditorProps> = ({
2121
return (
2222
<ErrorBoundary location="Editor">
2323
<ThemeProvider>
24-
<TranslationProvider value={translator_zh_Hans}>
24+
<TranslationProvider value={translator_en_US}>
2525
<ContextMenuProvider>
2626
<SkapMapProvider initialValue={defaultMap}>
2727
<SelectionProvider initialValue={null}>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from "node:path";
66
export default defineConfig(({mode}) => {
77
const env = loadEnv(mode, "./");
88
console.log("env:", env);
9-
console.log("GITHUB:", env.VITE_IS_GITHUB);
9+
console.log("VITE_GITHUB_REPO_NAME:", env.VITE_GITHUB_REPO_NAME);
1010

1111
const base = env.VITE_GITHUB_REPO_NAME !== undefined
1212
? `/${env.VITE_GITHUB_REPO_NAME}/`

0 commit comments

Comments
 (0)