Vanessa 2024-12-18 16:53:28 +08:00
parent 25a0e85c98
commit 5c60586b58
15 changed files with 1 additions and 46 deletions

View file

@ -63,14 +63,6 @@ export const about = {
<div class="fn__space"></div>
<input class="b3-switch fn__flex-center" id="googleAnalytics" type="checkbox"${window.siyuan.config.system.disableGoogleAnalytics ? "" : " checked"}>
</label>
<label class="b3-label fn__flex">
<div class="fn__flex-1">
${window.siyuan.languages.about9}
<div class="b3-label__text">${window.siyuan.languages.about10}</div>
</div>
<div class="fn__space"></div>
<input class="b3-switch fn__flex-center" id="uploadErrLog" type="checkbox"${window.siyuan.config.system.uploadErrLog ? " checked" : ""}>
</label>
<label class="b3-label fn__flex">
<div class="fn__flex-1">
${window.siyuan.languages.about11}
@ -368,15 +360,6 @@ ${checkUpdateHTML}
});
});
});
const uploadErrLogElement = about.element.querySelector("#uploadErrLog") as HTMLInputElement;
uploadErrLogElement.addEventListener("change", () => {
fetchPost("/api/system/setUploadErrLog", {uploadErrLog: uploadErrLogElement.checked}, () => {
exportLayout({
errorExit: true,
cb: exitSiYuan
});
});
});
const downloadInstallPkgElement = about.element.querySelector("#downloadInstallPkg") as HTMLInputElement;
downloadInstallPkgElement.addEventListener("change", () => {
fetchPost("/api/system/setDownloadInstallPkg", {downloadInstallPkg: downloadInstallPkgElement.checked}, () => {

View file

@ -95,7 +95,7 @@ export const initConfigSearch = (element: HTMLElement, app: App) => {
// 关于
getLang(["autoLaunch", "autoLaunchTip", "about", "about1", "about2", "about3", "about4", "about5", "about6",
"about7", "about8", "about9", "about10", "about11", "about12", "about13", "about14", "about17", "config",
"about7", "about8", "about11", "about12", "about13", "about14", "about17", "config",
"dataRepoKey", "dataRepoKeyTip1", "dataRepoKeyTip2", "slogan", "currentVer", "checkUpdate", "updatePath",
"systemLog", "importKey", "genKey", "genKeyByPW", "copyKey", "resetRepo", "systemLogTip", "export",
"downloadLatestVer", "safeQuit", "directConnection", "siyuanNote", "key", "password", "copied", "resetRepoTip",

View file

@ -1537,10 +1537,6 @@ declare namespace Config {
* Operating system platform name
*/
osPlatform: string;
/**
* Whether to upload error logs
*/
uploadErrLog: boolean;
/**
* The absolute path of the workspace directory
*/