Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: pdf

Vanessa4a343c127e88
diff --git a/app/src/assets/scss/export.scss b/app/src/assets/scss/export.scss
index 4b596f4b78..2044d18e50 100644
--- a/app/src/assets/scss/export.scss
+++ b/app/src/assets/scss/export.scss
@@ -8,6 +8,7 @@
@import "switch";
@import "slider";
@import "dialog";
+@import "keyframes";
.protyle-wysiwyg a {
color: var(--b3-protyle-inline-link-color);
diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts
index 20b4a16ec8..6fa027da7c 100644
--- a/app/src/protyle/export/index.ts
+++ b/app/src/protyle/export/index.ts
@@ -408,11 +408,12 @@ const renderPDF = (id: string) => {
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>
+ <link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}/appearance/themes/${window.siyuan.config.appearance.themeLight}/${window.siyuan.config.appearance.customCSS ? "custom" : "theme"}.css?${Constants.SIYUAN_VERSION}"/>
</head>
-<body
- <div id="loading" class="b3-dialog b3-dialog--open">
- <div class="b3-dialog__scrim" style="background-color: #212224"></div>
- <img style="position: absolute;width: 36vh;" src="${servePath}/stage/icon.png">
+<body>
+ <div class="b3-dialog__scrim" style="opacity: 1"></div>
+ <div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:#fff;z-index:400;">
+ <div style="margin: 8px 0;height: 8px;border-radius: 4px;overflow: hidden;background-color:#fff;"><div style="background-color: var(--b3-theme-primary);height: 8px;background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);animation: stripMove 450ms linear infinite;background-size: 50px 50px;"></div></div>
</div>
</body></html>`));
fetchPost("/api/export/exportPreviewHTML", {
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 7cae8a15d2..6fa1c3e782 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -124,7 +124,7 @@ export class Toolbar {
});
const types = this.getCurrentType();
types.forEach(item => {
- if (["a", "block-ref", "text", "file-annotation-ref", "inline-math"].includes(item)) {
+ if (["a", "block-ref", "text", "file-annotation-ref", "inline-math", ""].includes(item)) {
return;
}
this.element.querySelector(`[data-type="${item}"]`).classList.add("protyle-toolbar__item--current");
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts
index 5923679b74..586e1ea48b 100644
--- a/app/src/util/onGetConfig.ts
+++ b/app/src/util/onGetConfig.ts
@@ -148,7 +148,6 @@ export const onGetConfig = (isStart: boolean) => {
resizeDrag();
}, 200);
});
-
if (window.siyuan.config.newbie) {
mountHelp();
}