An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle:
Vanessae81649e3e8ef
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.tsindex e2b7558cf9..f9b718ade2 100644--- a/app/src/dialog/processSystem.ts+++ b/app/src/dialog/processSystem.ts@@ -20,7 +20,6 @@ import {App} from "../index";import {saveScroll} from "../protyle/scroll/saveScroll";import {isInAndroid, isInHarmony, isInIOS, setStorageVal} from "../protyle/util/compatibility";import {Plugin} from "../plugin";-import {getWorkspaceName} from "../util/processTitle";export const setRefDynamicText = (data: {"blockID": string,@@ -359,26 +358,6 @@ export const bootSync = () => {});};-export const setTitle = (title: string, showVersionTitle = false) => {- const dragElement = document.getElementById("drag");- const workspaceName = getWorkspaceName();- if (showVersionTitle) {- const versionTitle = `${workspaceName} - ${window.siyuan.languages.siyuanNote} v${Constants.SIYUAN_VERSION}`;- document.title = versionTitle;- if (!window.siyuan.config.appearance.hideToolbar && dragElement) {- dragElement.textContent = versionTitle;- dragElement.setAttribute("title", versionTitle);- }- } else {- title = title.trim() || window.siyuan.languages["_kernel"][16];- document.title = `${title} - ${workspaceName} - ${window.siyuan.languages.siyuanNote} v${Constants.SIYUAN_VERSION}`;- if (!window.siyuan.config.appearance.hideToolbar && dragElement) {- dragElement.setAttribute("title", title);- dragElement.innerHTML = escapeHtml(title);- }- }-};-export const downloadProgress = (data: { id: string, percent: number }) => {const bazaarSideElement = document.querySelector("#configBazaarReadme .item__side");if (!bazaarSideElement) {diff --git a/app/src/util/processTitle.ts b/app/src/util/processTitle.tsindex aeb5cdc9b9..67f578768f 100644--- a/app/src/util/processTitle.ts+++ b/app/src/util/processTitle.ts@@ -7,25 +7,21 @@ export const getWorkspaceName = () => {};export const setTitle = (title: string, showVersionTitle = false) => {- if (window.siyuan.config.appearance.hideToolbar) {- return;- }const dragElement = document.getElementById("drag");const workspaceName = getWorkspaceName();if (showVersionTitle) {const versionTitle = `${workspaceName} - ${window.siyuan.languages.siyuanNote} v${Constants.SIYUAN_VERSION}`;document.title = versionTitle;- if (dragElement) {+ if (!window.siyuan.config.appearance.hideToolbar && dragElement) {dragElement.textContent = versionTitle;dragElement.setAttribute("title", versionTitle);}} else {title = title.trim() || window.siyuan.languages["_kernel"][16];document.title = `${title} - ${workspaceName} - ${window.siyuan.languages.siyuanNote} v${Constants.SIYUAN_VERSION}`;- if (!dragElement) {- return;+ if (!window.siyuan.config.appearance.hideToolbar && dragElement) {+ dragElement.setAttribute("title", title);+ dragElement.innerHTML = escapeHtml(title);}- dragElement.setAttribute("title", title);- dragElement.innerHTML = escapeHtml(title);}};