svelte-action.html 1.0 KB

12345678910111213141516171819202122232425262728
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Flyfish Viewer Svelte Action Demo</title>
  7. <link rel="stylesheet" href="/src/styles.css" />
  8. </head>
  9. <body>
  10. <main class="app-shell">
  11. <header class="topbar">
  12. <div>
  13. <h1>Svelte Action Component</h1>
  14. <p>使用 <code>fileViewer(node, options)</code> action 语义挂载同一个 native viewer。</p>
  15. </div>
  16. <nav class="topbar-actions" aria-label="Demo links">
  17. <a href="/">Component demo</a>
  18. <a href="/jquery.html">jQuery</a>
  19. <a href="/manual-iife.html">Script tag</a>
  20. </nav>
  21. </header>
  22. <section class="single-viewer-shell" aria-label="Svelte action component preview">
  23. <div id="svelte-viewer" class="viewer-host" data-testid="svelte-viewer-host"></div>
  24. </section>
  25. </main>
  26. <script type="module" src="/src/svelte-action-demo.ts"></script>
  27. </body>
  28. </html>