diff --git a/component/sign-in/sign-in.js b/component/sign-in/sign-in.js
new file mode 100644
index 0000000..b419508
--- /dev/null
+++ b/component/sign-in/sign-in.js
@@ -0,0 +1,259 @@
+const signTemplate = document.createElement("template");
+signTemplate.innerHTML = `
-
fi88yrHXiDSj
+
fi88yrHXiDSj

@@ -483,6 +483,7 @@
+
diff --git a/js/details.js b/js/details.js
index 64706e7..09c218d 100644
--- a/js/details.js
+++ b/js/details.js
@@ -15,6 +15,9 @@ const appSectionIndex = createApp({
setup() {
onMounted(() => {
getUserInfoWin();
+ setTimeout(() => {
+ signInBox._init();
+ }, 3000);
});
let isLogin = ref(false);
@@ -176,8 +179,8 @@ const appSectionIndex = createApp({
let html = formattedText;
- html = html.replaceAll('
', "[b]");
- html = html.replaceAll('', "[/b]");
+ html = html.replaceAll("
", "[b]");
+ html = html.replaceAll("", "[/b]");
// 1. 还原换行符为
标签
html = html.replace(/\n/g, "
");
diff --git a/js/save.js b/js/save.js
index 3ca5e83..f00a368 100644
--- a/js/save.js
+++ b/js/save.js
@@ -32,6 +32,9 @@ const watchList = {
// 监听 item-project.txt,同步到 item-project.js
"../component/item-project/item-project.txt": "../component/item-project/item-project.js",
+ // 监听 sign-in.txt,同步到 sign-in.js
+ "../component/sign-in/sign-in.txt": "../component/sign-in/sign-in.js",
+
// 监听 bi.txt,同步到 bi.js
"../component/bi/bi.txt": "../component/bi/bi.js",
@@ -61,8 +64,7 @@ function syncContent(txtPath, jsPath) {
// 匹配 template: `...` 结构,替换反引号内的内容
const templateRegex = /(template:\s*)(`[^`]*`)/;
- // 匹配 template.innerHTML = `...` 结构
- const innerHTMLRegex = /(template\.innerHTML\s*=\s*)(`[^`]*`)/;
+ const innerHTMLRegex = /((?:[A-Za-z_\$][\w\$]*Template|template)\.innerHTML\s*=\s*)(`[^`]*`)/;
if (templateRegex.test(jsContent)) {
jsContent = jsContent.replace(templateRegex, `$1\`${txtContent}\``);