memory-eternal 0.14.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/index.html CHANGED
@@ -37,10 +37,24 @@
37
37
  }
38
38
  html, body { margin: 0; padding: 0; height: 100%; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-family: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif; }
39
39
  #root { height: 100vh; }
40
+ /* 首屏加载提示(用户群反馈:点开「记忆」先是白屏,不知道有没有在加载)。
41
+ app.js 约 460KB:下载 → 解析 → 执行 → 首轮接口请求都要时间,这段纯空白会被当成「坏了」。
42
+ 这里是纯 HTML/CSS(不依赖任何 JS,app.js 挂了也照样显示),React 挂载后由 src/web/index.jsx 移除。 */
43
+ #boot { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-secondary); font-size: 13px; letter-spacing: .02em; }
44
+ /* 不确定进度条(首屏不知道剩多少,横向流动表示"在动");WebView/Electron 都支持纯 CSS 动画 */
45
+ #boot .me-boot-bar { width: 220px; max-width: 70vw; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(127,127,127,.22); }
46
+ #boot .me-boot-bar-fill { display: block; width: 38%; height: 100%; border-radius: 999px; background: var(--dsw-alias-brand-primary); animation: me-boot-slide 1.15s ease-in-out infinite; }
47
+ #boot .me-boot-tip { opacity: .72; }
48
+ @keyframes me-boot-slide { 0% { transform: translateX(-105%); } 100% { transform: translateX(270%); } }
49
+ @media (prefers-reduced-motion: reduce) { #boot .me-boot-bar-fill { animation-duration: 2.6s; } }
40
50
  </style>
41
51
  </head>
42
52
  <body>
43
53
  <div id="root"></div>
54
+ <div id="boot" role="status" aria-live="polite">
55
+ <div class="me-boot-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-label="加载进度"><span class="me-boot-bar-fill"></span></div>
56
+ <div class="me-boot-tip">加载记忆中…</div>
57
+ </div>
44
58
  <script src="app.js"></script>
45
59
  </body>
46
60
  </html>