An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/9242
Vanessa5e8ed05ec529
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex c50b4b7ad2..d7a34d4772 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -20,6 +20,7 @@ import {hideElements} from "../ui/hideElements";import {genAssetHTML} from "../../asset/renderAssets";import {unicode2Emoji} from "../../emoji";import {avRender} from "../render/av/render";+import {needSubscribe} from "../../util/needSubscribe";export const hintSlash = (key: string, protyle: IProtyle) => {const allList: IHintData[] = [{@@ -46,11 +47,15 @@ export const hintSlash = (key: string, protyle: IProtyle) => {filter: ["ai chat"],value: Constants.ZWSP + 5,html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',- }, {- filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],- value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',- html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,- }, {+ }]+ if (!needSubscribe("")) {+ allList.push({+ filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],+ value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',+ html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,+ })+ }+ [{filter: ["文档", "子文档", "wendang", "wd", "ziwendang", "zwd", "xjwd"],value: Constants.ZWSP + 4,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span><span class="b3-menu__accelerator">${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</span></div>`,@@ -246,7 +251,9 @@ export const hintSlash = (key: string, protyle: IProtyle) => {filter: ["移除样式", "yichuyangshi", "ycys", "remove style"],value: `style${Constants.ZWSP}`,html: `<div class="b3-list-item__first"><div class="color__square">A</div><span class="b3-list-item__text">${window.siyuan.languages.clearFontStyle}</span></div>`,- }];+ }].forEach(item => {+ allList.push(item);+ });allList.push({value: "",html: "separator",