create-waku 0.6.2 → 0.6.3
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/package.json +5 -3
- package/template/01_counter/package.json +4 -4
- package/template/02_async/package.json +4 -4
- package/template/03_promise/package.json +4 -4
- package/template/04_callserver/package.json +4 -4
- package/template/05_mutation/package.json +4 -4
- package/template/06_nesting/package.json +4 -4
- package/template/07_router/package.json +4 -4
- package/template/08_cookies/db/items.json +12 -0
- package/template/08_cookies/package.json +4 -4
- package/template/08_cookies/src/components/App.tsx +2 -1
- package/template/08_cookies/src/entries.tsx +13 -1
- package/template/09_cssmodules/package.json +4 -4
- package/template/10_dynamicroute/package.json +4 -4
- package/template/11_form/package.json +4 -4
- package/template/01_counter/dist/components/App.js +0 -6
- package/template/01_counter/dist/components/Counter.js +0 -7
- package/template/01_counter/dist/entries.js +0 -32
- package/template/01_counter/dist/main.js +0 -11
- package/template/02_async/dist/components/App.js +0 -13
- package/template/02_async/dist/components/Counter.js +0 -7
- package/template/02_async/dist/entries.js +0 -32
- package/template/02_async/dist/main.js +0 -11
- package/template/03_promise/dist/components/App.js +0 -9
- package/template/03_promise/dist/components/Counter.js +0 -8
- package/template/03_promise/dist/entries.js +0 -32
- package/template/03_promise/dist/main.js +0 -11
- package/template/04_callserver/dist/components/App.js +0 -7
- package/template/04_callserver/dist/components/Counter.js +0 -15
- package/template/04_callserver/dist/components/TextBox.js +0 -6
- package/template/04_callserver/dist/components/funcs.js +0 -2
- package/template/04_callserver/dist/entries.js +0 -32
- package/template/04_callserver/dist/main.js +0 -11
- package/template/05_mutation/dist/components/App.js +0 -8
- package/template/05_mutation/dist/components/Counter.js +0 -13
- package/template/05_mutation/dist/components/funcs.js +0 -9
- package/template/05_mutation/dist/entries.js +0 -32
- package/template/05_mutation/dist/main.js +0 -11
- package/template/06_nesting/dist/components/App.js +0 -6
- package/template/06_nesting/dist/components/Counter.js +0 -24
- package/template/06_nesting/dist/components/InnerApp.js +0 -6
- package/template/06_nesting/dist/entries.js +0 -46
- package/template/06_nesting/dist/main.js +0 -11
- package/template/07_router/dist/node/tsconfig.node.tsbuildinfo +0 -1
- package/template/07_router/dist/node/vite.config.d.ts +0 -15
- package/template/07_router/dist/node/vite.config.js +0 -19
- package/template/07_router/dist/src/components/Counter.d.ts +0 -1
- package/template/07_router/dist/src/components/Counter.js +0 -8
- package/template/07_router/dist/src/components/ErrorBoundary.d.ts +0 -7
- package/template/07_router/dist/src/components/ErrorBoundary.js +0 -17
- package/template/07_router/dist/src/entries.d.ts +0 -6
- package/template/07_router/dist/src/entries.js +0 -29
- package/template/07_router/dist/src/main.d.ts +0 -1
- package/template/07_router/dist/src/main.js +0 -12
- package/template/07_router/dist/src/routes/bar/page.d.ts +0 -2
- package/template/07_router/dist/src/routes/bar/page.js +0 -4
- package/template/07_router/dist/src/routes/foo/page.d.ts +0 -2
- package/template/07_router/dist/src/routes/foo/page.js +0 -4
- package/template/07_router/dist/src/routes/layout.d.ts +0 -5
- package/template/07_router/dist/src/routes/layout.js +0 -9
- package/template/07_router/dist/src/routes/nested/baz/page.d.ts +0 -2
- package/template/07_router/dist/src/routes/nested/baz/page.js +0 -3
- package/template/07_router/dist/src/routes/nested/layout.d.ts +0 -5
- package/template/07_router/dist/src/routes/nested/layout.js +0 -4
- package/template/07_router/dist/src/routes/nested/qux/page.d.ts +0 -2
- package/template/07_router/dist/src/routes/nested/qux/page.js +0 -3
- package/template/07_router/dist/src/routes/page.d.ts +0 -2
- package/template/07_router/dist/src/routes/page.js +0 -3
- package/template/07_router/dist/tsconfig.tsbuildinfo +0 -1
- package/template/08_cookies/dist/components/App.js +0 -8
- package/template/08_cookies/dist/components/Counter.js +0 -7
- package/template/08_cookies/dist/entries.js +0 -35
- package/template/08_cookies/dist/main.js +0 -11
- package/template/09_cssmodules/dist/components/App.js +0 -8
- package/template/09_cssmodules/dist/components/Counter.js +0 -7
- package/template/09_cssmodules/dist/entries.js +0 -32
- package/template/09_cssmodules/dist/main.js +0 -11
- package/template/10_dynamicroute/dist/node/tsconfig.node.tsbuildinfo +0 -1
- package/template/10_dynamicroute/dist/node/vite.config.d.ts +0 -15
- package/template/10_dynamicroute/dist/node/vite.config.js +0 -19
- package/template/10_dynamicroute/dist/src/entries.d.ts +0 -6
- package/template/10_dynamicroute/dist/src/entries.js +0 -61
- package/template/10_dynamicroute/dist/src/main.d.ts +0 -1
- package/template/10_dynamicroute/dist/src/main.js +0 -11
- package/template/10_dynamicroute/dist/src/routes/[name]/page.d.ts +0 -4
- package/template/10_dynamicroute/dist/src/routes/[name]/page.js +0 -3
- package/template/10_dynamicroute/dist/src/routes/layout.d.ts +0 -5
- package/template/10_dynamicroute/dist/src/routes/layout.js +0 -4
- package/template/10_dynamicroute/dist/src/routes/page.d.ts +0 -2
- package/template/10_dynamicroute/dist/src/routes/page.js +0 -3
- package/template/10_dynamicroute/dist/tsconfig.tsbuildinfo +0 -1
- package/template/11_form/dist/components/App.js +0 -8
- package/template/11_form/dist/components/Counter.js +0 -13
- package/template/11_form/dist/components/Form.js +0 -10
- package/template/11_form/dist/components/funcs.js +0 -10
- package/template/11_form/dist/entries.js +0 -32
- package/template/11_form/dist/main.js +0 -11
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { lazy } from 'react';
|
|
3
|
-
import { defineEntries } from 'waku/server';
|
|
4
|
-
import { Slot } from 'waku/client';
|
|
5
|
-
const App = lazy(() => import('./components/App.js'));
|
|
6
|
-
export default defineEntries(
|
|
7
|
-
// renderEntries
|
|
8
|
-
async (input) => {
|
|
9
|
-
return {
|
|
10
|
-
App: _jsx(App, { name: input || 'Waku' }),
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
// getBuildConfig
|
|
14
|
-
async () => {
|
|
15
|
-
return {
|
|
16
|
-
'/': {
|
|
17
|
-
entries: [['']],
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
// getSsrConfig
|
|
22
|
-
async (pathStr) => {
|
|
23
|
-
switch (pathStr) {
|
|
24
|
-
case '/':
|
|
25
|
-
return {
|
|
26
|
-
input: '',
|
|
27
|
-
unstable_render: () => _jsx(Slot, { id: "App" }),
|
|
28
|
-
};
|
|
29
|
-
default:
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StrictMode } from 'react';
|
|
3
|
-
import { createRoot, hydrateRoot } from 'react-dom/client';
|
|
4
|
-
import { Root, Slot } from 'waku/client';
|
|
5
|
-
const rootElement = (_jsx(StrictMode, { children: _jsx(Root, { children: _jsx(Slot, { id: "App" }) }) }));
|
|
6
|
-
if (globalThis.__WAKU_SSR_ENABLED__) {
|
|
7
|
-
hydrateRoot(document.getElementById('root'), rootElement);
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
createRoot(document.getElementById('root')).render(rootElement);
|
|
11
|
-
}
|