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: Move daily note and flashcard top bar buttons before the back button https://github.com/siyuan-note/siyuan/issues/19304
Danield67c263a63d9
diff --git a/app/src/config/entryVisibility/catalog.test.ts b/app/src/config/entryVisibility/catalog.test.tsindex efeefb0b71..2f7c8a2241 100644--- a/app/src/config/entryVisibility/catalog.test.ts+++ b/app/src/config/entryVisibility/catalog.test.ts@@ -133,10 +133,10 @@ test("top bar catalog includes a fixed drag boundary in built-in DOM order", ()assert.equal(TOP_BAR_ROOT_PATH, "topBar");assert.deepEqual(getEntryCatalogChildren(TOP_BAR_ROOT_PATH).map((item) => item.key), ["barSync",- "barBack",- "barForward","barDailyNote","barRiffCard",+ "barBack",+ "barForward","drag","toolbarVIP","toolbarTitle",@@ -248,7 +248,7 @@ test("top bar catalog inserts plugin entries on their declared side of the fixed}]);const children = getEntryCatalogChildren(TOP_BAR_ROOT_PATH);const keys = children.map((item) => item.key);- assert.deepEqual(keys.slice(0, 7), ["barSync", "barBack", "barForward", "barDailyNote", "barRiffCard", leftKey, "drag"]);+ assert.deepEqual(keys.slice(0, 7), ["barSync", "barDailyNote", "barRiffCard", "barBack", "barForward", leftKey, "drag"]);assert.deepEqual(keys.slice(keys.indexOf("toolbarTitle"), keys.indexOf("barCommand")), ["toolbarTitle",rightKey,diff --git a/app/src/config/entryVisibility/catalog.ts b/app/src/config/entryVisibility/catalog.tsindex 371dec8348..5a8d839808 100644--- a/app/src/config/entryVisibility/catalog.ts+++ b/app/src/config/entryVisibility/catalog.ts@@ -586,8 +586,6 @@ const statusBarCatalogSection: IEntryCatalogSection = {const topBarBuiltinChildren = [node("barSync", lang("syncNow")),- node("barBack", lang("goBack")),- node("barForward", lang("goForward")),node("barDailyNote", lang("dailyNote"), true, undefined, undefined, {defaultVisible: () => false,simpleDefaultVisible: true,@@ -598,6 +596,8 @@ const topBarBuiltinChildren = [simpleDefaultVisible: true,customDefaultVisible: false,}),+ node("barBack", lang("goBack")),+ node("barForward", lang("goForward")),fixed("drag", lang("entryTopBarDrag")),node("toolbarVIP", lang("accountDisplayVIP"), true, undefined, undefined, {defaultVisible: () => window.siyuan.config.account.displayVIP,diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.tsindex c45f709676..8b518be8cc 100644--- a/app/src/layout/topBar.ts+++ b/app/src/layout/topBar.ts@@ -83,18 +83,18 @@ export const initBar = (app: App) => {<div id="barSync" data-topbar-entry="barSync" class="ariaLabel toolbar__item${window.siyuan.config.readonly ? " fn__none" : ""}"><svg><use xlink:href="#iconCloudSucc"></use></svg></div>-<button id="barBack" data-topbar-entry="barBack" class="ariaLabel toolbar__item toolbar__item--disabled" aria-label="${window.siyuan.languages.goBack} ${updateHotkeyTip(window.siyuan.config.keymap.general.goBack.custom)}">- <svg><use xlink:href="#iconBack"></use></svg>-</button>-<button id="barForward" data-topbar-entry="barForward" class="ariaLabel toolbar__item toolbar__item--disabled" aria-label="${window.siyuan.languages.goForward} ${updateHotkeyTip(window.siyuan.config.keymap.general.goForward.custom)}">- <svg><use xlink:href="#iconForward"></use></svg>-</button><button id="barDailyNote" data-topbar-entry="barDailyNote" class="ariaLabel toolbar__item${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.dailyNote} ${updateHotkeyTip(window.siyuan.config.keymap.general.dailyNote.custom)}"><svg><use xlink:href="#iconCalendar"></use></svg></button><button id="barRiffCard" data-topbar-entry="barRiffCard" class="ariaLabel toolbar__item${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.riffCard} ${updateHotkeyTip(window.siyuan.config.keymap.general.riffCard.custom)}"><svg><use xlink:href="#iconRiffCard"></use></svg></button>+<button id="barBack" data-topbar-entry="barBack" class="ariaLabel toolbar__item toolbar__item--disabled" aria-label="${window.siyuan.languages.goBack} ${updateHotkeyTip(window.siyuan.config.keymap.general.goBack.custom)}">+ <svg><use xlink:href="#iconBack"></use></svg>+</button>+<button id="barForward" data-topbar-entry="barForward" class="ariaLabel toolbar__item toolbar__item--disabled" aria-label="${window.siyuan.languages.goForward} ${updateHotkeyTip(window.siyuan.config.keymap.general.goForward.custom)}">+ <svg><use xlink:href="#iconForward"></use></svg>+</button><div class="fn__flex-1 fn__ellipsis" id="drag"><span class="fn__none">开发版,使用前请进行备份 Development version, please backup before use</span></div><div id="toolbarVIP" data-topbar-entry="toolbarVIP" class="fn__flex${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.accountDisplayVIP}"></div><div id="toolbarTitle" data-topbar-entry="toolbarTitle" class="fn__flex${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.languages.accountDisplayTitle}"></div>