Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"fullsoak": "jsr:@fullsoak/fullsoak@0.16.0-alpha.1",
"fullsoak": "jsr:@fullsoak/fullsoak@0.16.0-alpha.2",
"preact": "npm:preact@10.26.4",
"preact-iso": "npm:preact-iso@2.9.0",
"@std/testing": "jsr:@std/testing@^1.0.9"
Expand Down
8 changes: 4 additions & 4 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/__snapshots__/MyComponent.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const snapshot = {};

snapshot[`MyComponent 1`] = `
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><link rel="preload" href="/components/MyComponent/mount" as="script" type="text/javascript"/><link rel="preload" href="/components/MyComponent/index.tsx" as="script" type="text/javascript"/><script type="importmap">{
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><script type="importmap">{
"imports": {
"preact": "https://esm.sh/preact@10.26.4",
"preact/hooks": "https://esm.sh/preact@10.26.4/hooks",
Expand All @@ -21,5 +21,5 @@ snapshot[`MyComponent 1`] = `
"fullsoak": "/fullsoak",
"@fullsoak/fullsoak": "/fullsoak"
}
}</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; 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 &#39;baz&#39; 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 defer type="module" src="/components/MyComponent/mount"></script></body></html>'
}</script><link rel="modulepreload" href="/components/MyComponent/mount" as="script" type="text/javascript"/><link rel="modulepreload" href="/components/MyComponent/index.tsx" as="script" type="text/javascript"/><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; 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 &#39;baz&#39; 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 defer type="module" src="/components/MyComponent/mount"></script></body></html>'
`;
4 changes: 2 additions & 2 deletions tests/__snapshots__/MyRouteAwareComponent.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const snapshot = {};

snapshot[`MyRouteAwareComponent 1`] = `
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><link rel="preload" href="/components/MyRouteAwareComponent/mount" as="script" type="text/javascript"/><link rel="preload" href="/components/MyRouteAwareComponent/index.tsx" as="script" type="text/javascript"/><script type="importmap">{
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><script type="importmap">{
"imports": {
"preact": "https://esm.sh/preact@10.26.4",
"preact/hooks": "https://esm.sh/preact@10.26.4/hooks",
Expand All @@ -21,5 +21,5 @@ snapshot[`MyRouteAwareComponent 1`] = `
"fullsoak": "/fullsoak",
"@fullsoak/fullsoak": "/fullsoak"
}
}</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><main><h1>NotFound</h1><a href="/app">Back</a></main></main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script defer type="module" src="/components/MyRouteAwareComponent/mount"></script></body></html>'
}</script><link rel="modulepreload" href="/components/MyRouteAwareComponent/mount" as="script" type="text/javascript"/><link rel="modulepreload" href="/components/MyRouteAwareComponent/index.tsx" as="script" type="text/javascript"/><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><main><h1>NotFound</h1><a href="/app">Back</a></main></main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script defer type="module" src="/components/MyRouteAwareComponent/mount"></script></body></html>'
`;
Loading