进一步的网页国际化支持

This commit is contained in:
mofeng-git
2024-08-12 20:58:48 +08:00
parent 4a6fbce485
commit 0af0e2b4d0
13 changed files with 124 additions and 77 deletions

View File

@@ -32,23 +32,10 @@ export function main() {
initWindowManager();
if (checkBrowser(null, null)) {
__setAppText();
__loadKvmdInfo();
}
}
function __setAppText() {
$("app-text").innerHTML = `
<span class="code-comment"># On Linux using Chromium/Chrome via any terminal:<br>
$</span> \`which chromium 2>/dev/null || which chrome 2>/dev/null || which google-chrome\` --app="${window.location.href}"<br>
<br>
<span class="code-comment"># On MacOS using Terminal application:<br>
$</span> /Applications/Google&bsol; Chrome.app/Contents/MacOS/Google&bsol; Chrome --app="${window.location.href}"<br>
<br>
<span class="code-comment"># On Windows via cmd.exe:<br>
C:&bsol;&gt;</span> start chrome --app="${window.location.href}"
`;
}
function __loadKvmdInfo() {
tools.httpGet("/api/info?fields=auth,meta,extras", function(http) {