diff --git a/app/src/config/index.ts b/app/src/config/index.ts
index 7f3e3876c..d16a52600 100644
--- a/app/src/config/index.ts
+++ b/app/src/config/index.ts
@@ -11,6 +11,8 @@ import {keymap} from "./keymap";
import {bazaar} from "./bazaar";
import {query} from "./query";
import {Dialog} from "../dialog";
+import {AI} from "./AI";
+import {card} from "./card";
export const openSetting = () => {
const exitDialog = window.siyuan.dialogs.find((item) => {
@@ -22,7 +24,7 @@ export const openSetting = () => {
if (exitDialog) {
return exitDialog;
}
- const height = Math.min(window.innerHeight * .9 - 42, Math.max(window.innerHeight * .7, 52 * 11));
+ const height = Math.min(window.innerHeight * .9 - 42, Math.max(window.innerHeight * .7, 52 * 13));
const dialog = new Dialog({
content: `
@@ -30,6 +32,8 @@ export const openSetting = () => {
- ${window.siyuan.languages.editor}
- ${window.siyuan.languages.fileTree}
+ - ${window.siyuan.languages.riffCard}
+ - AI
- ${window.siyuan.languages.assets}
- ${window.siyuan.languages.export}
- ${window.siyuan.languages.appearance}
@@ -42,6 +46,8 @@ export const openSetting = () => {
${editor.genHTML()}
+
+
@@ -75,6 +81,16 @@ export const openSetting = () => {
fileTree.element = dialog.element.querySelector('.config__tab-container[data-name="filetree"]');
fileTree.bindEvent();
break;
+ case "AI":
+ containerElement.innerHTML = AI.genHTML();
+ AI.element = dialog.element.querySelector('.config__tab-container[data-name="AI"]');
+ AI.bindEvent();
+ break;
+ case "card":
+ containerElement.innerHTML = card.genHTML();
+ card.element = dialog.element.querySelector('.config__tab-container[data-name="card"]');
+ card.bindEvent();
+ break;
case "image":
containerElement.innerHTML = image.genHTML();
image.element = dialog.element.querySelector('.config__tab-container[data-name="image"]');
diff --git a/app/src/config/search.ts b/app/src/config/search.ts
index 5c1b414ff..fda7f5782 100644
--- a/app/src/config/search.ts
+++ b/app/src/config/search.ts
@@ -25,6 +25,12 @@ export const initConfigSearch = (element: HTMLElement) => {
"fileTree6", "fileTree7", "fileTree8", "fileTree9", "fileTree10", "fileTree12", "fileTree13", "fileTree15",
"fileTree16", "fileTree17"]),
+ // 闪卡
+ getLang(["riffCard"]),
+
+ // AI
+ ["AI"].concat(getLang(["ai"])),
+
// 图片
getLang(["assets", "clearUnused"]),