From 4bf95d0ca4859f29b9e8f260d636cb4353838c3b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 8 Dec 2022 20:56:51 +0800 Subject: [PATCH 1/3] :art: Clean code --- app/stage/auth.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index 38ddc65ba..9e79793b0 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -397,7 +397,7 @@ exitSiYuan() }) } catch (e) { - console.log(e) + // console.log(e) } const exitApp = () => { @@ -495,6 +495,7 @@ }, 6000) }) } + // 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099 new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=auth`); From edfe0bdb77dca4c97f75dc71029eb756df6cc05f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 8 Dec 2022 22:19:36 +0800 Subject: [PATCH 2/3] =?UTF-8?q?:art:=20=E8=AE=BF=E9=97=AE=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E9=A1=B5=E5=BF=98=E8=AE=B0=E6=8E=88=E6=9D=83=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88=20Fix=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/6822?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stage/auth.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index 9e79793b0..f2af24149 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -135,6 +135,18 @@ a:hover { text-decoration: underline; } + + .b3-code { + padding: 0.2em 0.4em; + margin: 0; + font-size: 85%; + border-radius: 3px; + font-family: var(--b3-font-family-code); + word-break: break-word; + background-size: 20px 20px; + white-space: pre-wrap; + background-color: var(--b3-protyle-code-background); + } 解锁 Unlock
- 如果你在使用中遇到问题,请到这里反馈
- If you encounter problems, please report it on GitHub + 如果你忘记了授权码,可在工作空间
conf/conf.json 文件中搜索 accessAuthCode

+ If you forget the authorization code, you can search
for accessAuthCode in the workspace conf/conf.json
From a6f1eae9e16fbb693350d5e60005936b10593cd6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 8 Dec 2022 22:20:45 +0800 Subject: [PATCH 3/3] =?UTF-8?q?:art:=20=E8=AE=BF=E9=97=AE=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E9=A1=B5=E5=BF=98=E8=AE=B0=E6=8E=88=E6=9D=83=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88=20Fix=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/6822?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stage/auth.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/stage/auth.html b/app/stage/auth.html index f2af24149..79bf4f02f 100644 --- a/app/stage/auth.html +++ b/app/stage/auth.html @@ -141,11 +141,11 @@ margin: 0; font-size: 85%; border-radius: 3px; - font-family: var(--b3-font-family-code); + font-family: "JetBrainsMono-Regular", mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; word-break: break-word; background-size: 20px 20px; white-space: pre-wrap; - background-color: var(--b3-protyle-code-background); + background-color: rgba(27, 31, 35, .05); }