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: 改变非移动端前端编译目标为 `es2021` (#7770)
阿良仔26c5e53c53df
diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex 0f2ae296c7..16044ff07a 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -163,7 +163,7 @@ const renderViewItem = (blocks: IBlock[], title: string, deckType: string) => {pathArray.splice(0, 1);blocks.forEach((item: IBlock) => {if (item.type) {- let hPath+ let hPath;if (deckType === "") {hPath = getNotebookName(item.box) + getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false);} else {diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.tsindex fa7342245d..0a42f2b6df 100644--- a/app/src/layout/Wnd.ts+++ b/app/src/layout/Wnd.ts@@ -12,7 +12,7 @@ import {Tab} from "./Tab";import {Model} from "./Model";import {Editor} from "../editor";import {Graph} from "./dock/Graph";-import {hasClosestByAttribute, hasClosestByClassName, hasClosestByTag} from "../protyle/util/hasClosest";+import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";import {Constants} from "../constants";/// #if !BROWSERimport {webFrame, ipcRenderer} from "electron";diff --git a/app/tsconfig.json b/app/tsconfig.jsonindex 05f6b94ca7..3add41bd01 100644--- a/app/tsconfig.json+++ b/app/tsconfig.json@@ -3,7 +3,7 @@"outDir": "./dist/","noImplicitAny": true,"module": "commonjs",- "target": "es6",+ "target": "es2021","typeRoots": ["./node_modules/@types"],diff --git a/app/webpack.config.js b/app/webpack.config.jsindex c9c6895fd5..edb85e9f6a 100644--- a/app/webpack.config.js+++ b/app/webpack.config.js@@ -48,6 +48,9 @@ module.exports = (env, argv) => {use: [{loader: "esbuild-loader",+ options: {+ target: "es2021",+ },},{loader: "ifdef-loader", options: {