|
1 | 1 | export const snapshot = {}; |
2 | 2 |
|
3 | 3 | snapshot[`MyComponent 1`] = ` |
4 | | -'<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"><title></title><script type="importmap"> |
5 | | -{ |
6 | | - "imports": { |
7 | | - "preact": "https://esm.sh/[email protected]", |
8 | | - "preact/hooks": "https://esm.sh/[email protected]/hooks", |
9 | | - "react": "https://esm.sh/[email protected]", |
10 | | - "react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime", |
11 | | - "preact/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime", |
12 | | - "react-dom": "https://esm.sh/[email protected]/compat/", |
13 | | - "react-dom/*": "https://esm.sh/[email protected]/compat/*", |
14 | | - "htm/preact": "https://esm.sh/[email protected]/preact?external=preact", |
15 | | - "preact-iso": "https://esm.sh/preact-iso?external=preact", |
16 | | - "preact-iso/prerender": "/fullsoak", |
17 | | - "fullsoak/preact-iso": "https://esm.sh/preact-iso?external=preact", |
18 | | - "@fullsoak/fullsoak/preact-iso": "https://esm.sh/preact-iso?external=preact", |
19 | | - "fullsoak": "/fullsoak", |
20 | | - "@fullsoak/fullsoak": "/fullsoak" |
21 | | - } |
22 | | -} |
23 | | -</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props 'foo' is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props 'baz' is 0</span></section><footer><span>source code of this website:</span> <a href="https://github.com/fullsoak/deno-examples">https://github.com/fullsoak/deno-examples</a></footer></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script type="module" src="/js/MyComponent/mount.js"></script></body></html>' |
| 4 | +'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><title></title><script type="importmap">{ |
| 5 | + "imports": { |
| 6 | + "preact": "https://esm.sh/[email protected]", |
| 7 | + "preact/hooks": "https://esm.sh/[email protected]/hooks", |
| 8 | + "react": "https://esm.sh/[email protected]", |
| 9 | + "react/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime", |
| 10 | + "preact/jsx-runtime": "https://esm.sh/[email protected]/jsx-runtime", |
| 11 | + "react-dom": "https://esm.sh/[email protected]/compat/", |
| 12 | + "react-dom/*": "https://esm.sh/[email protected]/compat/*", |
| 13 | + "htm/preact": "https://esm.sh/[email protected]/preact?external=preact", |
| 14 | + "preact-iso": "https://esm.sh/preact-iso@^2.9.0?external=preact", |
| 15 | + "preact-iso/prerender": "/fullsoak", |
| 16 | + "fullsoak/preact-iso": "https://esm.sh/preact-iso@^2.9.0?external=preact", |
| 17 | + "@fullsoak/fullsoak/preact-iso": "https://esm.sh/preact-iso@^2.9.0?external=preact", |
| 18 | + "fullsoak": "/fullsoak", |
| 19 | + "@fullsoak/fullsoak": "/fullsoak" |
| 20 | + } |
| 21 | + }</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props 'foo' is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props 'baz' is 0</span></section><footer><span>source code of this website:</span> <a href="https://github.com/fullsoak/deno-examples">https://github.com/fullsoak/deno-examples</a></footer></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script type="module" src="/components/MyComponent/mount"></script></body></html>' |
24 | 22 | `; |
0 commit comments