mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 00:14:07 +01:00
This commit is contained in:
parent
1715b150a2
commit
9de0fe0d93
11 changed files with 1 additions and 53 deletions
|
|
@ -57,14 +57,6 @@ export const about = {
|
|||
<div class="fn__space"></div>
|
||||
<input class="b3-switch fn__flex-center" id="networkServe" type="checkbox"${window.siyuan.config.system.networkServe ? " checked" : ""}>
|
||||
</label>
|
||||
<label class="b3-label fn__flex">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.useFixedPort}
|
||||
<div class="b3-label__text">${window.siyuan.languages.useFixedPortTip}</div>
|
||||
</div>
|
||||
<div class="fn__space"></div>
|
||||
<input class="b3-switch fn__flex-center" id="fixedPort" type="checkbox"${window.siyuan.config.system.fixedPort ? " checked" : ""}>
|
||||
</label>
|
||||
<label class="b3-label${isBrowser() ? " fn__none" : " fn__flex"}">
|
||||
<div class="fn__flex-1">
|
||||
${window.siyuan.languages.about2}
|
||||
|
|
@ -369,14 +361,6 @@ export const about = {
|
|||
});
|
||||
});
|
||||
});
|
||||
const fixedPortElement = about.element.querySelector("#fixedPort") as HTMLInputElement;
|
||||
fixedPortElement.addEventListener("change", () => {
|
||||
fetchPost("/api/system/setFixedPort", {fixedPort: fixedPortElement.checked}, () => {
|
||||
exportLayout(false, () => {
|
||||
exitSiYuan();
|
||||
});
|
||||
});
|
||||
});
|
||||
const googleAnalyticsElement = about.element.querySelector("#googleAnalytics") as HTMLInputElement;
|
||||
googleAnalyticsElement.addEventListener("change", () => {
|
||||
fetchPost("/api/system/setGoogleAnalytics", {googleAnalytics: googleAnalyticsElement.checked}, () => {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export const initConfigSearch = (element: HTMLElement) => {
|
|||
"importKey", "genKey", "genKeyByPW", "copyKey", "resetRepo", "systemLogTip", "export", "visitAnnouncements",
|
||||
"safeQuit", "directConnection", "siyuanNote", "key", "password", "copied", "resetRepoTip",
|
||||
"autoDownloadUpdatePkg", "autoDownloadUpdatePkgTip", "networkProxy", "keyPlaceholder", "initRepoKeyTip",
|
||||
"useFixedPort", "useFixedPortTip", "googleAnalytics", "googleAnalyticsTip"]),
|
||||
"googleAnalytics", "googleAnalyticsTip"]),
|
||||
];
|
||||
const inputElement = element.querySelector(".b3-form__icon input") as HTMLInputElement;
|
||||
/// #if !BROWSER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue