From a4a7042884667ebaa8daa8c85304ae3107c671af Mon Sep 17 00:00:00 2001 From: Soltus Date: Thu, 12 Jan 2023 01:03:24 +0800 Subject: [PATCH] #12 --- extension/plugin/Export_Helper/README.html | 65 ++++++++++++++----- script/module/CPext.js | 16 ++++- .../extend_CPDialog_container_extension.js | 10 ++- theme.json | 2 +- 4 files changed, 69 insertions(+), 24 deletions(-) diff --git a/extension/plugin/Export_Helper/README.html b/extension/plugin/Export_Helper/README.html index de43b61..690ca19 100644 --- a/extension/plugin/Export_Helper/README.html +++ b/extension/plugin/Export_Helper/README.html @@ -1,16 +1,49 @@ -
-

你好我是导出助手

-

 

-

我可以

-

 

-
    -
  1. 更好地预览导出效果
  2. -
  3. 选择不同的页脚
  4. -
  5. 敬请期待
  6. -
-
\ No newline at end of file +
+

你好我是导出助手

+

 

+

我可以

+

 

+
    +
  1. 更好地预览导出效果
  2. +
  3. 选择不同的页脚
  4. +
  5. 敬请期待
  6. +
+
+
+ +
+ \ No newline at end of file diff --git a/script/module/CPext.js b/script/module/CPext.js index a97b40d..9c1647d 100644 --- a/script/module/CPext.js +++ b/script/module/CPext.js @@ -46,8 +46,8 @@ async function extension_injury() { } }); xyz.forEach((i) => { + let rm = document.querySelector("#SC-CP #configBazaarReadme"); if (i.classList.contains("b3-card")) { - let rm = document.querySelector("#SC-CP #configBazaarReadme"); let rmP = path.join( window.siyuan.config.system.confDir, "appearance", @@ -64,8 +64,22 @@ async function extension_injury() { (err,data)=>{if(err){API.通知(err)}else{rm.querySelector(".item__readme").innerHTML = data}} ); rm.querySelector(".item__preview").style = `background-image: url(${i.querySelector(".b3-card__img>img").attributes["src"].value})`; + rm.querySelector(".item__title").innerHTML = i.attributes["data-name"].value; rm.style.right = "0px"; } + if (i.classList.contains("SC-config-button")) { + let read = rm.querySelector("#read-me"); + let conf = rm.querySelector("#config-me"); + let EVAL = rm.querySelector("#eval-me").innerHTML; + if (conf.classList.contains("fn__none")) { + conf.classList.remove("fn__none"); + read.classList.add("fn__none"); + eval(EVAL); + } else { + read.classList.remove("fn__none"); + conf.classList.add("fn__none"); + } + } }); }); }, 1000); diff --git a/script/module/XML/extend_CPDialog_container_extension.js b/script/module/XML/extend_CPDialog_container_extension.js index 1ef34e0..0ea5a0f 100644 --- a/script/module/XML/extend_CPDialog_container_extension.js +++ b/script/module/XML/extend_CPDialog_container_extension.js @@ -83,14 +83,14 @@ export const CP_container_extension = `
-
暗黑 主题
+
Sofill- + href="https://github.com/Hi-Windom/winsay" target="_blank" class="item__title" title="GitHub Repo">
Made with ❤️ by
-
+
+ style="">
diff --git a/theme.json b/theme.json index b53ba5d..9228427 100644 --- a/theme.json +++ b/theme.json @@ -2,7 +2,7 @@ "name": "Sofill=", "author": "Soltus", "url": "https://github.com/Hi-Windom/lili", - "version": "1.0.10", + "version": "1.1.1", "modes": [ "light" ]