An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: Speed up boot animation
Daniel1ce24404d42d
diff --git a/app/appearance/boot/index.html b/app/appearance/boot/index.htmlindex c8c74d4de5..aa9686c8f7 100644--- a/app/appearance/boot/index.html+++ b/app/appearance/boot/index.html@@ -36,8 +36,8 @@opacity: 0;transform-box: fill-box;transform-origin: center;- animation: bootStreakConverge 1.8s cubic-bezier(0.33, 0, 0.2, 1) var(--delay, 0s) forwards,- bootStreakFade 0.6s ease 1.6s forwards;+ animation: bootStreakConverge 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--delay, 0s) forwards,+ bootStreakFade 0.5s ease 1.5s forwards;}@keyframes bootStreakConverge {@@ -66,7 +66,7 @@transform-box: fill-box;transform-origin: center;transform: scale(0.94);- animation: bootLogoForm 1s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;+ animation: bootLogoForm 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;}@keyframes bootLogoForm {@@ -187,7 +187,7 @@const dist = 600 + Math.random() * 800;line.style.setProperty("--dx", Math.cos(angle) * dist + "px");line.style.setProperty("--dy", Math.sin(angle) * dist + "px");- line.style.setProperty("--delay", (Math.random() * 0.6) + "s");+ line.style.setProperty("--delay", (Math.random() * 0.4) + "s");streaksG.appendChild(line);}});@@ -248,7 +248,7 @@es.close()if (navigator.userAgent.indexOf('Electron') === -1) {// 内核完成后尽快结束动画,把剩余动画快进到终态(200ms 收尾)- const animTotalMs = 2500+ const animTotalMs = 2000const elapsed = Date.now() - bootShowStartconst remaining = animTotalMs - elapsedconst bootSvg = document.querySelector("#bg svg")diff --git a/app/electron/boot.html b/app/electron/boot.htmlindex ba069d2e14..8ce0eea90a 100644--- a/app/electron/boot.html+++ b/app/electron/boot.html@@ -39,8 +39,8 @@}#bg svg.started .streak {- animation: bootStreakConverge 2.5s cubic-bezier(0.33, 0, 0.2, 1) var(--delay, 0s) forwards,- bootStreakFade 0.85s ease 2.2s forwards;+ animation: bootStreakConverge 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--delay, 0s) forwards,+ bootStreakFade 0.5s ease 1.5s forwards;}@keyframes bootStreakConverge {@@ -72,7 +72,7 @@}#bg svg.started .logo path {- animation: bootLogoForm 1s cubic-bezier(0.22, 1, 0.36, 1) 2.1s forwards;+ animation: bootLogoForm 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards;}@keyframes bootLogoForm {@@ -206,7 +206,7 @@const dist = 600 + Math.random() * 800;line.style.setProperty("--dx", Math.cos(angle) * dist + "px");line.style.setProperty("--dy", Math.sin(angle) * dist + "px");- line.style.setProperty("--delay", (Math.random() * 0.6) + "s");+ line.style.setProperty("--delay", (Math.random() * 0.4) + "s");streaksG.appendChild(line);}});@@ -248,7 +248,7 @@es.close()// 内核完成后尽快结束动画,把剩余动画快进到终态if (animStart > 0) {- const animTotalMs = 3100+ const animTotalMs = 2000const elapsed = Date.now() - animStartconst remaining = animTotalMs - elapsedif (remaining > 0) {