@batijs/cli 0.0.274 → 0.0.276
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/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +1 -0
- package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +1 -0
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +5 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +1 -0
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +7 -20
- package/dist/boilerplates/@batijs/react/files/assets/logo.svg +62 -31
- package/dist/boilerplates/@batijs/react/files/{layouts/HeadDefault.tsx → pages/+Head.tsx} +2 -8
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +8 -4
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+data.ts +11 -1
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/index/+data.ts +11 -1
- package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +3 -2
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +2 -3
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +1 -0
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +1 -0
- package/dist/boilerplates/@batijs/shared-todo/files/{vike.d.ts → global.d.ts} +2 -0
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+config.ts +1 -3
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.ts +1 -2
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +7 -20
- package/dist/boilerplates/@batijs/solid/files/assets/logo.svg +62 -31
- package/dist/boilerplates/@batijs/solid/files/{layouts/HeadDefault.tsx → pages/+Head.tsx} +1 -7
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +8 -4
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+data.ts +11 -1
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/index/+data.ts +11 -1
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +2 -3
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +1 -0
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -0
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +1 -0
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +0 -14
- package/dist/boilerplates/@batijs/vue/files/assets/logo.svg +62 -31
- package/dist/boilerplates/@batijs/vue/files/{layouts/HeadDefault.vue → pages/+Head.vue} +1 -3
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +8 -4
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+data.ts +11 -1
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/index/+data.ts +11 -1
- package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +1 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+title.ts +0 -7
- package/dist/boilerplates/@batijs/react/files/pages/star-wars/index/+title.ts +0 -7
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+title.d.ts +0 -3
- package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+title.d.ts +0 -3
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+title.ts +0 -7
- package/dist/boilerplates/@batijs/solid/files/pages/star-wars/index/+title.ts +0 -7
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+title.d.ts +0 -3
- package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+title.d.ts +0 -3
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+title.ts +0 -7
- package/dist/boilerplates/@batijs/vue/files/pages/star-wars/index/+title.ts +0 -7
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+title.d.ts +0 -3
- package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+title.d.ts +0 -3
- /package/dist/boilerplates/@batijs/auth0/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/d1/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/express/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/fastify/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/firebase-auth/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/h3/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/hono/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/lucia-auth/files/{vike.d.ts → global.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/react/types/{layouts/HeadDefault.d.ts → pages/+Head.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/solid/types/{layouts/HeadDefault.d.ts → pages/+Head.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/telefunc/files/{vike.d.ts → global.d.ts} +0 -0
|
@@ -1,36 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
<svg width="175" height="175" fill="none" version="1.1" viewBox="0 0 175 175" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
3
|
-
<metadata>
|
|
4
|
-
<rdf:RDF>
|
|
5
|
-
<cc:Work rdf:about="">
|
|
6
|
-
<dc:format>image/svg+xml</dc:format>
|
|
7
|
-
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
|
8
|
-
<dc:title/>
|
|
9
|
-
</cc:Work>
|
|
10
|
-
</rdf:RDF>
|
|
11
|
-
</metadata>
|
|
1
|
+
<svg class="hammer" width="41.217" height="41.217" version="1.1" viewBox="-50 -50 41.217 41.217" xmlns="http://www.w3.org/2000/svg">
|
|
12
2
|
<defs>
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<stop stop-color="#FFEA83" offset="0"/>
|
|
20
|
-
<stop stop-color="#FFDD35" offset=".083333"/>
|
|
21
|
-
<stop stop-color="#FFA800" offset="1"/>
|
|
22
|
-
</linearGradient>
|
|
23
|
-
<linearGradient id="paint0_linear-6" x1="-1.4492" x2="116.62" y1="-5.8123" y2="137.08" gradientTransform="translate(-2.832e-5)" gradientUnits="userSpaceOnUse">
|
|
24
|
-
<stop stop-color="#41D1FF" offset="0"/>
|
|
25
|
-
<stop stop-color="#BD34FE" offset="1"/>
|
|
3
|
+
<mask id="mask111">
|
|
4
|
+
<rect x="-19.21" y="-25.7" width="46.217" height="41.217" fill="url(#linearGradient115)"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<linearGradient id="linearGradient115" x1="-25.395" x2="-25.395" y1="-9.3005" y2="-18.03" gradientTransform="matrix(1.0589 0 0 .94436 30.79 24.3)" gradientUnits="userSpaceOnUse">
|
|
7
|
+
<stop offset="0"/>
|
|
8
|
+
<stop stop-color="#fff" offset="1"/>
|
|
26
9
|
</linearGradient>
|
|
27
10
|
</defs>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
<g transform="translate(-33.29,-24.3)" mask="url(#mask111)">
|
|
12
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
13
|
+
<path d="m-8.511-10.449 1.126 4.064 2.707-2.765z" fill="#ababab"/>
|
|
14
|
+
<path d="m-2.273-24.496-6.238 14.047 3.833 1.299 6.238-14.048z" fill="#949494"/>
|
|
15
|
+
<path d="m-2.273-24.496 3.465-1.204.368 2.502z" fill="#ababab"/>
|
|
16
|
+
<path d="m17.511 4.674-2.707 2.766-22.189-13.825 2.707-2.765z" fill="#949494"/>
|
|
17
|
+
</g>
|
|
18
|
+
<g stroke="#878787">
|
|
19
|
+
<path d="m-9.045 20.369-1.169 2.634" stroke-width="9.6"/>
|
|
20
|
+
<path d="m-12.418 23.191c-1.85-1.153-2.326-2.132-1.086-2.238 1.239-.106 3.642.709 5.493 1.862s2.326 2.132 1.087 2.238c-1.24.106-3.643-.709-5.494-1.862" fill="#878787" stroke-linecap="round" stroke-linejoin="round"/>
|
|
21
|
+
<path d="m-11.248 20.557c1.851 1.153 4.254 1.968 5.493 1.862 1.24-.106.764-1.085-1.086-2.238-1.851-1.153-4.254-1.968-5.494-1.862-1.239.106-.764 1.085 1.087 2.238" fill="#878787" stroke-linecap="round" stroke-linejoin="round"/>
|
|
22
|
+
</g>
|
|
23
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
24
|
+
<path d="m-16.71-9.748 8.199-.701 1.126 4.064-8.199.701z" fill="#949494"/>
|
|
25
|
+
<path d="m23.749-9.373-6.238 14.047-22.189-13.824 6.238-14.048z" fill="#757575"/>
|
|
26
|
+
<path d="m10.271-16.073 3.751 3.534c.062.058.083.156.052.238l-1.95 5.128c-.046.121-.18.153-.268.065l-1.024-1.03c-.095-.096-.242-.048-.275.091l-.516 2.152c-.034.145-.191.19-.284.082 0 0-.606-.696-.606-.696-.094-.108-.25-.063-.285.082l-.803 3.384c-.05.212-.317.178-.336-.043l-.014-.147s.058-9.892.058-9.892c.001-.165.165-.253.277-.148l1.077 1.009c.101.095.25.034.274-.111l.597-3.587c.025-.146.174-.206.275-.111z" fill="#fbbf28" stroke="#fbbf28" stroke-width=".6"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g stroke="#808080">
|
|
29
|
+
<path d="m-8.362 18.833-.39.878" stroke-width="9.1"/>
|
|
30
|
+
<path d="m-10.956 19.899c-1.85-1.153-2.326-2.132-1.086-2.238 1.239-.106 3.642.708 5.493 1.861s2.326 2.132 1.087 2.238c-1.24.106-3.643-.708-5.494-1.861" fill="#808080" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
31
|
+
<path d="m-10.566 19.021c1.851 1.153 4.254 1.967 5.494 1.861 1.239-.106.764-1.085-1.087-2.238s-4.254-1.967-5.494-1.861c-1.239.106-.764 1.085 1.087 2.238" fill="#808080" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
32
|
+
</g>
|
|
33
|
+
<path d="m-16.71-9.748 8.199-.701 6.238-14.047-8.199.701z" fill="#757575" stroke-linecap="round" stroke-linejoin="round"/>
|
|
34
|
+
<path d="m-1.754 3.951-6.511 14.662" stroke="#91512b" stroke-width="8.6"/>
|
|
35
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
36
|
+
<path d="m-10.468 18.801c-1.851-1.153-2.327-2.132-1.087-2.238 1.239-.106 3.643.709 5.493 1.862 1.851 1.153 2.327 2.132 1.087 2.238-1.239.106-3.643-.708-5.493-1.862" fill="#91512b"/>
|
|
37
|
+
<path d="m-3.958 4.139c1.851 1.153 4.254 1.968 5.494 1.862 1.239-.106.764-1.086-1.087-2.239s-4.254-1.967-5.493-1.861c-1.24.106-.764 1.085 1.086 2.238" fill="#91512b"/>
|
|
38
|
+
<path d="m1.192-25.7.368 2.502 22.189 13.825-.368-2.503z" fill="#949494"/>
|
|
39
|
+
<path d="m-10.472-23.795 8.199-.701 3.465-1.204-8.199.701z" fill="#949494"/>
|
|
40
|
+
</g>
|
|
41
|
+
<g stroke="#6e6e6e">
|
|
42
|
+
<path d="m-.487 1.097-1.17 2.634" stroke-width="9.1"/>
|
|
43
|
+
<path d="m-3.86 3.92c-1.851-1.153-2.326-2.132-1.087-2.238s3.643.708 5.493 1.861c1.851 1.153 2.327 2.132 1.087 2.238-1.239.106-3.643-.708-5.493-1.861" fill="#6e6e6e" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
44
|
+
<path d="m-2.691 1.286c1.851 1.153 4.254 1.967 5.494 1.861 1.239-.106.764-1.085-1.087-2.238s-4.254-1.967-5.493-1.861c-1.24.106-.764 1.085 1.086 2.238" fill="#6e6e6e" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
45
|
+
</g>
|
|
46
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
47
|
+
<path d="m18.269 6.236-3.465 1.204 2.707-2.766z" fill="#ababab"/>
|
|
48
|
+
<path d="m14.804 7.44-8.199.701-22.189-13.825 8.199-.701z" fill="#757575"/>
|
|
49
|
+
<path d="m-16.71-9.748 1.126 4.064-.367-2.502z" fill="#ababab"/>
|
|
50
|
+
<path d="m24.507-7.812-6.238 14.048-.758-1.562 6.238-14.047z" fill="#949494"/>
|
|
51
|
+
<path d="m-10.472-23.795-6.238 14.047.759 1.562 6.237-14.048z" fill="#949494"/>
|
|
52
|
+
<path d="m24.507-7.812-1.126-4.064.368 2.503z" fill="#ababab"/>
|
|
53
|
+
<path d="m23.381-11.876-8.199.701-22.189-13.824 8.199-.701z" fill="#757575"/>
|
|
54
|
+
<path d="m-10.472-23.795 3.465-1.204-2.707 2.765z" fill="#ababab"/>
|
|
55
|
+
<path d="m18.269 6.236-8.199.701-3.465 1.204 8.199-.701z" fill="#949494"/>
|
|
56
|
+
<path d="m-15.951-8.186.367 2.502 22.189 13.825-.367-2.503z" fill="#949494"/>
|
|
57
|
+
<path d="m18.269 6.236-8.199.701 6.238-14.048 8.199-.701z" fill="#757575"/>
|
|
58
|
+
<path d="m-9.714-22.234-6.237 14.048 22.189 13.824 6.237-14.047z" fill="#757575"/>
|
|
59
|
+
<path d="m2.545-12.79-4.583-1.659c-.076-.027-.156.008-.195.085 0 0-2.463 4.808-2.463 4.808-.058.114-.005.263.107.298l1.296.416c.122.039.171.21.093.321 0 0-1.205 1.722-1.205 1.722-.081.116-.024.294.105.325l.827.196c.128.031.186.209.104.325 0 0-1.899 2.701-1.899 2.701-.118.169.056.41.22.304l.11-.07 6.849-5.661c.115-.095.083-.304-.054-.354l-1.312-.48c-.123-.045-.165-.224-.078-.331 0 0 2.157-2.615 2.157-2.615.087-.106.045-.286-.079-.331z" fill="#fbbf28" stroke="#fbbf28" stroke-width=".6"/>
|
|
60
|
+
<path d="m24.507-7.812-8.199.701-1.126-4.064 8.199-.701z" fill="#949494"/>
|
|
61
|
+
<path d="m15.182-11.175-2.707 2.766-22.189-13.825 2.707-2.765z" fill="#949494"/>
|
|
62
|
+
<path d="m10.07 6.937-3.465 1.204-.367-2.503z" fill="#ababab"/>
|
|
63
|
+
<path d="m16.308-7.111-6.238 14.048-3.832-1.299 6.237-14.047z" fill="#949494"/>
|
|
64
|
+
<path d="m16.308-7.111-1.126-4.064-2.707 2.766z" fill="#ababab"/>
|
|
65
|
+
</g>
|
|
33
66
|
</g>
|
|
34
|
-
<path d="m128.48 88.913-24.027 4.6784c-0.39475 0.07685-0.68766 0.40944-0.71076 0.80849l-1.4782 24.805c-0.0347 0.58371 0.50497 1.0372 1.0792 0.90602l6.6886-1.5338c0.62676-0.14383 1.1916 0.40419 1.0635 1.0299l-1.9874 9.6702c-0.13438 0.65091 0.48084 1.2073 1.1202 1.0142l4.1322-1.2472c0.64041-0.19317 1.2556 0.36535 1.1202 1.0162l-3.158 15.191c-0.19842 0.95011 1.074 1.4677 1.6042 0.653l0.35485-0.54382 19.578-38.827c0.32755-0.64985-0.23727-1.391-0.95641-1.2535l-6.8849 1.3207c-0.6467 0.12389-1.1979-0.47453-1.0152-1.1034l4.4944-15.482c0.18266-0.63012-0.36955-1.2295-1.0173-1.1034z" fill="url(#linearGradient880)" stroke-width="1.0498"/>
|
|
35
|
-
<rect x="3" y="3" width="169" height="169" rx="84.5" stroke="url(#paint2_linear)" stroke-width="6" style="mix-blend-mode:soft-light"/>
|
|
36
67
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable solid/no-innerhtml */
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// https://vike.dev/Head
|
|
4
4
|
|
|
5
5
|
import logoUrl from "../assets/logo.svg";
|
|
6
6
|
|
|
@@ -8,8 +8,6 @@ export default function HeadDefault() {
|
|
|
8
8
|
if (BATI.has("plausible.io")) {
|
|
9
9
|
return (
|
|
10
10
|
<>
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<meta name="description" content="Demo showcasing Vike" />
|
|
13
11
|
<link rel="icon" href={logoUrl} />
|
|
14
12
|
{/* See https://plausible.io/docs/plausible-script */}
|
|
15
13
|
{/* TODO: update data-domain */}
|
|
@@ -19,8 +17,6 @@ export default function HeadDefault() {
|
|
|
19
17
|
} else if (BATI.has("google-analytics")) {
|
|
20
18
|
return (
|
|
21
19
|
<>
|
|
22
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
23
|
-
<meta name="description" content="Demo showcasing Vike" />
|
|
24
20
|
<script
|
|
25
21
|
async
|
|
26
22
|
src={`https://www.googletagmanager.com/gtag/js?id=${import.meta.env.PUBLIC_ENV__GOOGLE_ANALYTICS}`}
|
|
@@ -37,8 +33,6 @@ export default function HeadDefault() {
|
|
|
37
33
|
} else {
|
|
38
34
|
return (
|
|
39
35
|
<>
|
|
40
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
41
|
-
<meta name="description" content="Demo showcasing Vike" />
|
|
42
36
|
<link rel="icon" href={logoUrl} />
|
|
43
37
|
</>
|
|
44
38
|
);
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import vikeSolid from "vike-solid/config";
|
|
2
2
|
import type { Config } from "vike/types";
|
|
3
|
-
import Head from "../layouts/HeadDefault.js";
|
|
4
3
|
import Layout from "../layouts/LayoutDefault.js";
|
|
5
4
|
|
|
6
5
|
// Default config (can be overridden by pages)
|
|
6
|
+
// https://vike.dev/config
|
|
7
|
+
|
|
7
8
|
export default {
|
|
9
|
+
// https://vike.dev/Layout
|
|
8
10
|
Layout,
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
// https://vike.dev/head-tags
|
|
13
|
+
title: "My Vike App",
|
|
14
|
+
description: "Demo showcasing Vike",
|
|
15
|
+
|
|
10
16
|
//# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs") || BATI.has("lucia-auth")
|
|
11
17
|
passToClient: ["user"],
|
|
12
|
-
// <title>
|
|
13
|
-
title: "My Vike App",
|
|
14
18
|
extends: vikeSolid,
|
|
15
19
|
} satisfies Config;
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
2
|
|
|
3
|
-
import fetch from "cross-fetch";
|
|
4
3
|
import type { PageContextServer } from "vike/types";
|
|
5
4
|
import type { MovieDetails } from "../types.js";
|
|
5
|
+
import { useConfig } from "vike-solid/useConfig";
|
|
6
6
|
|
|
7
7
|
export type Data = Awaited<ReturnType<typeof data>>;
|
|
8
8
|
|
|
9
9
|
export const data = async (pageContext: PageContextServer) => {
|
|
10
|
+
// https://vike.dev/useConfig
|
|
11
|
+
const config = useConfig();
|
|
12
|
+
|
|
10
13
|
const response = await fetch(`https://brillout.github.io/star-wars/api/films/${pageContext.routeParams.id}.json`);
|
|
11
14
|
let movie = (await response.json()) as MovieDetails;
|
|
15
|
+
|
|
16
|
+
config({
|
|
17
|
+
// Set <title>
|
|
18
|
+
title: movie.title,
|
|
19
|
+
});
|
|
20
|
+
|
|
12
21
|
// We remove data we don't need because the data is passed to
|
|
13
22
|
// the client; we should minimize what is sent over the network.
|
|
14
23
|
movie = minimize(movie);
|
|
24
|
+
|
|
15
25
|
return movie;
|
|
16
26
|
};
|
|
17
27
|
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
2
|
|
|
3
|
-
import fetch from "cross-fetch";
|
|
4
3
|
import type { Movie, MovieDetails } from "../types.js";
|
|
4
|
+
import { useConfig } from "vike-solid/useConfig";
|
|
5
5
|
|
|
6
6
|
export type Data = Awaited<ReturnType<typeof data>>;
|
|
7
7
|
|
|
8
8
|
export const data = async () => {
|
|
9
|
+
// https://vike.dev/useConfig
|
|
10
|
+
const config = useConfig();
|
|
11
|
+
|
|
9
12
|
const response = await fetch("https://brillout.github.io/star-wars/api/films.json");
|
|
10
13
|
const moviesData = (await response.json()) as MovieDetails[];
|
|
14
|
+
|
|
15
|
+
config({
|
|
16
|
+
// Set <title>
|
|
17
|
+
title: `${moviesData.length} Star Wars Movies`,
|
|
18
|
+
});
|
|
19
|
+
|
|
11
20
|
// We remove data we don't need because the data is passed to the client; we should
|
|
12
21
|
// minimize what is sent over the network.
|
|
13
22
|
const movies = minimize(moviesData);
|
|
23
|
+
|
|
14
24
|
return movies;
|
|
15
25
|
};
|
|
16
26
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import Head from "../layouts/HeadDefault.js";
|
|
2
1
|
import Layout from "../layouts/LayoutDefault.js";
|
|
3
2
|
declare const _default: {
|
|
4
3
|
Layout: typeof Layout;
|
|
5
|
-
Head: typeof Head;
|
|
6
|
-
passToClient: string[];
|
|
7
4
|
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
passToClient: string[];
|
|
8
7
|
extends: {
|
|
9
8
|
name: string;
|
|
10
9
|
require: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// https://telefunc.com
|
|
1
|
+
// We use Telefunc (https://telefunc.com) for data mutations. Being able to use Telefunc for fetching initial data is work-in-progress (https://vike.dev/data-fetching#tools).
|
|
2
2
|
|
|
3
3
|
import { todos } from "@batijs/shared-no-db/database/todoItems";
|
|
4
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { telefunc } from "telefunc";
|
|
2
|
+
// TODO: stop using universal-middleware and directly integrate server middlewares instead. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
2
3
|
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
3
4
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
4
5
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
import { appRouter } from "../trpc/server";
|
|
3
|
+
// TODO: stop using universal-middleware and directly integrate server middlewares instead. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
3
4
|
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
4
5
|
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
|
|
2
2
|
import { contract } from "../ts-rest/contract";
|
|
3
|
+
// TODO: stop using universal-middleware and directly integrate server middlewares instead. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
|
|
3
4
|
import { Get, UniversalHandler } from "@universal-middleware/core";
|
|
4
5
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
6
|
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
@@ -34,7 +34,7 @@ SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all yo
|
|
|
34
34
|
|
|
35
35
|
### HTML Streaming
|
|
36
36
|
|
|
37
|
-
You can enable/disable [HTML streaming](https://vike.dev/
|
|
37
|
+
You can enable/disable [HTML streaming](https://vike.dev/stream) for all your pages, or only for some pages while still using it for others.`;
|
|
38
38
|
content.addAbout(about);
|
|
39
39
|
return content.finalize();
|
|
40
40
|
}
|
|
@@ -46,7 +46,6 @@ var require_package = __commonJS({
|
|
|
46
46
|
"@vitejs/plugin-vue": "^5.1.3",
|
|
47
47
|
"@vue/compiler-sfc": "^3.5.6",
|
|
48
48
|
"@vue/server-renderer": "^3.5.6",
|
|
49
|
-
"cross-fetch": "^4.0.0",
|
|
50
49
|
tailwindcss: "^3.4.11",
|
|
51
50
|
typescript: "^5.6.2",
|
|
52
51
|
"unplugin-vue-markdown": "^0.26.2",
|
|
@@ -86,14 +85,8 @@ var require_package = __commonJS({
|
|
|
86
85
|
"./pages/star-wars/@id/+data": {
|
|
87
86
|
types: "./dist/types/pages/star-wars/@id/+data.d.ts"
|
|
88
87
|
},
|
|
89
|
-
"./pages/star-wars/@id/+title": {
|
|
90
|
-
types: "./dist/types/pages/star-wars/@id/+title.d.ts"
|
|
91
|
-
},
|
|
92
88
|
"./pages/star-wars/index/+data": {
|
|
93
89
|
types: "./dist/types/pages/star-wars/index/+data.d.ts"
|
|
94
|
-
},
|
|
95
|
-
"./pages/star-wars/index/+title": {
|
|
96
|
-
types: "./dist/types/pages/star-wars/index/+title.d.ts"
|
|
97
90
|
}
|
|
98
91
|
},
|
|
99
92
|
typesVersions: {
|
|
@@ -116,14 +109,8 @@ var require_package = __commonJS({
|
|
|
116
109
|
"pages/star-wars/@id/+data": [
|
|
117
110
|
"./dist/types/pages/star-wars/@id/+data.d.ts"
|
|
118
111
|
],
|
|
119
|
-
"pages/star-wars/@id/+title": [
|
|
120
|
-
"./dist/types/pages/star-wars/@id/+title.d.ts"
|
|
121
|
-
],
|
|
122
112
|
"pages/star-wars/index/+data": [
|
|
123
113
|
"./dist/types/pages/star-wars/index/+data.d.ts"
|
|
124
|
-
],
|
|
125
|
-
"pages/star-wars/index/+title": [
|
|
126
|
-
"./dist/types/pages/star-wars/index/+title.d.ts"
|
|
127
114
|
]
|
|
128
115
|
}
|
|
129
116
|
}
|
|
@@ -146,7 +133,6 @@ async function getPackageJson(props) {
|
|
|
146
133
|
"@vitejs/plugin-vue",
|
|
147
134
|
"@vue/compiler-sfc",
|
|
148
135
|
"@vue/server-renderer",
|
|
149
|
-
"cross-fetch",
|
|
150
136
|
"unplugin-vue-markdown",
|
|
151
137
|
"vike-vue",
|
|
152
138
|
"vike",
|
|
@@ -1,36 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
<svg width="175" height="175" fill="none" version="1.1" viewBox="0 0 175 175" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
3
|
-
<metadata>
|
|
4
|
-
<rdf:RDF>
|
|
5
|
-
<cc:Work rdf:about="">
|
|
6
|
-
<dc:format>image/svg+xml</dc:format>
|
|
7
|
-
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
|
8
|
-
<dc:title/>
|
|
9
|
-
</cc:Work>
|
|
10
|
-
</rdf:RDF>
|
|
11
|
-
</metadata>
|
|
1
|
+
<svg class="hammer" width="41.217" height="41.217" version="1.1" viewBox="-50 -50 41.217 41.217" xmlns="http://www.w3.org/2000/svg">
|
|
12
2
|
<defs>
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<stop stop-color="#FFEA83" offset="0"/>
|
|
20
|
-
<stop stop-color="#FFDD35" offset=".083333"/>
|
|
21
|
-
<stop stop-color="#FFA800" offset="1"/>
|
|
22
|
-
</linearGradient>
|
|
23
|
-
<linearGradient id="paint0_linear-6" x1="-1.4492" x2="116.62" y1="-5.8123" y2="137.08" gradientTransform="translate(-2.832e-5)" gradientUnits="userSpaceOnUse">
|
|
24
|
-
<stop stop-color="#41D1FF" offset="0"/>
|
|
25
|
-
<stop stop-color="#BD34FE" offset="1"/>
|
|
3
|
+
<mask id="mask111">
|
|
4
|
+
<rect x="-19.21" y="-25.7" width="46.217" height="41.217" fill="url(#linearGradient115)"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<linearGradient id="linearGradient115" x1="-25.395" x2="-25.395" y1="-9.3005" y2="-18.03" gradientTransform="matrix(1.0589 0 0 .94436 30.79 24.3)" gradientUnits="userSpaceOnUse">
|
|
7
|
+
<stop offset="0"/>
|
|
8
|
+
<stop stop-color="#fff" offset="1"/>
|
|
26
9
|
</linearGradient>
|
|
27
10
|
</defs>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
<g transform="translate(-33.29,-24.3)" mask="url(#mask111)">
|
|
12
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
13
|
+
<path d="m-8.511-10.449 1.126 4.064 2.707-2.765z" fill="#ababab"/>
|
|
14
|
+
<path d="m-2.273-24.496-6.238 14.047 3.833 1.299 6.238-14.048z" fill="#949494"/>
|
|
15
|
+
<path d="m-2.273-24.496 3.465-1.204.368 2.502z" fill="#ababab"/>
|
|
16
|
+
<path d="m17.511 4.674-2.707 2.766-22.189-13.825 2.707-2.765z" fill="#949494"/>
|
|
17
|
+
</g>
|
|
18
|
+
<g stroke="#878787">
|
|
19
|
+
<path d="m-9.045 20.369-1.169 2.634" stroke-width="9.6"/>
|
|
20
|
+
<path d="m-12.418 23.191c-1.85-1.153-2.326-2.132-1.086-2.238 1.239-.106 3.642.709 5.493 1.862s2.326 2.132 1.087 2.238c-1.24.106-3.643-.709-5.494-1.862" fill="#878787" stroke-linecap="round" stroke-linejoin="round"/>
|
|
21
|
+
<path d="m-11.248 20.557c1.851 1.153 4.254 1.968 5.493 1.862 1.24-.106.764-1.085-1.086-2.238-1.851-1.153-4.254-1.968-5.494-1.862-1.239.106-.764 1.085 1.087 2.238" fill="#878787" stroke-linecap="round" stroke-linejoin="round"/>
|
|
22
|
+
</g>
|
|
23
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
24
|
+
<path d="m-16.71-9.748 8.199-.701 1.126 4.064-8.199.701z" fill="#949494"/>
|
|
25
|
+
<path d="m23.749-9.373-6.238 14.047-22.189-13.824 6.238-14.048z" fill="#757575"/>
|
|
26
|
+
<path d="m10.271-16.073 3.751 3.534c.062.058.083.156.052.238l-1.95 5.128c-.046.121-.18.153-.268.065l-1.024-1.03c-.095-.096-.242-.048-.275.091l-.516 2.152c-.034.145-.191.19-.284.082 0 0-.606-.696-.606-.696-.094-.108-.25-.063-.285.082l-.803 3.384c-.05.212-.317.178-.336-.043l-.014-.147s.058-9.892.058-9.892c.001-.165.165-.253.277-.148l1.077 1.009c.101.095.25.034.274-.111l.597-3.587c.025-.146.174-.206.275-.111z" fill="#fbbf28" stroke="#fbbf28" stroke-width=".6"/>
|
|
27
|
+
</g>
|
|
28
|
+
<g stroke="#808080">
|
|
29
|
+
<path d="m-8.362 18.833-.39.878" stroke-width="9.1"/>
|
|
30
|
+
<path d="m-10.956 19.899c-1.85-1.153-2.326-2.132-1.086-2.238 1.239-.106 3.642.708 5.493 1.861s2.326 2.132 1.087 2.238c-1.24.106-3.643-.708-5.494-1.861" fill="#808080" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
31
|
+
<path d="m-10.566 19.021c1.851 1.153 4.254 1.967 5.494 1.861 1.239-.106.764-1.085-1.087-2.238s-4.254-1.967-5.494-1.861c-1.239.106-.764 1.085 1.087 2.238" fill="#808080" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
32
|
+
</g>
|
|
33
|
+
<path d="m-16.71-9.748 8.199-.701 6.238-14.047-8.199.701z" fill="#757575" stroke-linecap="round" stroke-linejoin="round"/>
|
|
34
|
+
<path d="m-1.754 3.951-6.511 14.662" stroke="#91512b" stroke-width="8.6"/>
|
|
35
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
36
|
+
<path d="m-10.468 18.801c-1.851-1.153-2.327-2.132-1.087-2.238 1.239-.106 3.643.709 5.493 1.862 1.851 1.153 2.327 2.132 1.087 2.238-1.239.106-3.643-.708-5.493-1.862" fill="#91512b"/>
|
|
37
|
+
<path d="m-3.958 4.139c1.851 1.153 4.254 1.968 5.494 1.862 1.239-.106.764-1.086-1.087-2.239s-4.254-1.967-5.493-1.861c-1.24.106-.764 1.085 1.086 2.238" fill="#91512b"/>
|
|
38
|
+
<path d="m1.192-25.7.368 2.502 22.189 13.825-.368-2.503z" fill="#949494"/>
|
|
39
|
+
<path d="m-10.472-23.795 8.199-.701 3.465-1.204-8.199.701z" fill="#949494"/>
|
|
40
|
+
</g>
|
|
41
|
+
<g stroke="#6e6e6e">
|
|
42
|
+
<path d="m-.487 1.097-1.17 2.634" stroke-width="9.1"/>
|
|
43
|
+
<path d="m-3.86 3.92c-1.851-1.153-2.326-2.132-1.087-2.238s3.643.708 5.493 1.861c1.851 1.153 2.327 2.132 1.087 2.238-1.239.106-3.643-.708-5.493-1.861" fill="#6e6e6e" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
44
|
+
<path d="m-2.691 1.286c1.851 1.153 4.254 1.967 5.494 1.861 1.239-.106.764-1.085-1.087-2.238s-4.254-1.967-5.493-1.861c-1.24.106-.764 1.085 1.086 2.238" fill="#6e6e6e" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"/>
|
|
45
|
+
</g>
|
|
46
|
+
<g stroke-linecap="round" stroke-linejoin="round">
|
|
47
|
+
<path d="m18.269 6.236-3.465 1.204 2.707-2.766z" fill="#ababab"/>
|
|
48
|
+
<path d="m14.804 7.44-8.199.701-22.189-13.825 8.199-.701z" fill="#757575"/>
|
|
49
|
+
<path d="m-16.71-9.748 1.126 4.064-.367-2.502z" fill="#ababab"/>
|
|
50
|
+
<path d="m24.507-7.812-6.238 14.048-.758-1.562 6.238-14.047z" fill="#949494"/>
|
|
51
|
+
<path d="m-10.472-23.795-6.238 14.047.759 1.562 6.237-14.048z" fill="#949494"/>
|
|
52
|
+
<path d="m24.507-7.812-1.126-4.064.368 2.503z" fill="#ababab"/>
|
|
53
|
+
<path d="m23.381-11.876-8.199.701-22.189-13.824 8.199-.701z" fill="#757575"/>
|
|
54
|
+
<path d="m-10.472-23.795 3.465-1.204-2.707 2.765z" fill="#ababab"/>
|
|
55
|
+
<path d="m18.269 6.236-8.199.701-3.465 1.204 8.199-.701z" fill="#949494"/>
|
|
56
|
+
<path d="m-15.951-8.186.367 2.502 22.189 13.825-.367-2.503z" fill="#949494"/>
|
|
57
|
+
<path d="m18.269 6.236-8.199.701 6.238-14.048 8.199-.701z" fill="#757575"/>
|
|
58
|
+
<path d="m-9.714-22.234-6.237 14.048 22.189 13.824 6.237-14.047z" fill="#757575"/>
|
|
59
|
+
<path d="m2.545-12.79-4.583-1.659c-.076-.027-.156.008-.195.085 0 0-2.463 4.808-2.463 4.808-.058.114-.005.263.107.298l1.296.416c.122.039.171.21.093.321 0 0-1.205 1.722-1.205 1.722-.081.116-.024.294.105.325l.827.196c.128.031.186.209.104.325 0 0-1.899 2.701-1.899 2.701-.118.169.056.41.22.304l.11-.07 6.849-5.661c.115-.095.083-.304-.054-.354l-1.312-.48c-.123-.045-.165-.224-.078-.331 0 0 2.157-2.615 2.157-2.615.087-.106.045-.286-.079-.331z" fill="#fbbf28" stroke="#fbbf28" stroke-width=".6"/>
|
|
60
|
+
<path d="m24.507-7.812-8.199.701-1.126-4.064 8.199-.701z" fill="#949494"/>
|
|
61
|
+
<path d="m15.182-11.175-2.707 2.766-22.189-13.825 2.707-2.765z" fill="#949494"/>
|
|
62
|
+
<path d="m10.07 6.937-3.465 1.204-.367-2.503z" fill="#ababab"/>
|
|
63
|
+
<path d="m16.308-7.111-6.238 14.048-3.832-1.299 6.237-14.047z" fill="#949494"/>
|
|
64
|
+
<path d="m16.308-7.111-1.126-4.064-2.707 2.766z" fill="#ababab"/>
|
|
65
|
+
</g>
|
|
33
66
|
</g>
|
|
34
|
-
<path d="m128.48 88.913-24.027 4.6784c-0.39475 0.07685-0.68766 0.40944-0.71076 0.80849l-1.4782 24.805c-0.0347 0.58371 0.50497 1.0372 1.0792 0.90602l6.6886-1.5338c0.62676-0.14383 1.1916 0.40419 1.0635 1.0299l-1.9874 9.6702c-0.13438 0.65091 0.48084 1.2073 1.1202 1.0142l4.1322-1.2472c0.64041-0.19317 1.2556 0.36535 1.1202 1.0162l-3.158 15.191c-0.19842 0.95011 1.074 1.4677 1.6042 0.653l0.35485-0.54382 19.578-38.827c0.32755-0.64985-0.23727-1.391-0.95641-1.2535l-6.8849 1.3207c-0.6467 0.12389-1.1979-0.47453-1.0152-1.1034l4.4944-15.482c0.18266-0.63012-0.36955-1.2295-1.0173-1.1034z" fill="url(#linearGradient880)" stroke-width="1.0498"/>
|
|
35
|
-
<rect x="3" y="3" width="169" height="169" rx="84.5" stroke="url(#paint2_linear)" stroke-width="6" style="mix-blend-mode:soft-light"/>
|
|
36
67
|
</svg>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- https://vike.dev/Head -->
|
|
2
2
|
|
|
3
3
|
<template>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
5
|
-
<meta name="description" content="Demo showcasing Vike" />
|
|
6
4
|
<link rel="icon" :href="logoUrl" />
|
|
7
5
|
|
|
8
6
|
<!-- BATI.has("plausible.io") -->
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import vikeVue from "vike-vue/config";
|
|
2
2
|
import type { Config } from "vike/types";
|
|
3
|
-
import Head from "../layouts/HeadDefault.vue";
|
|
4
3
|
import Layout from "../layouts/LayoutDefault.vue";
|
|
5
4
|
|
|
6
5
|
// Default config (can be overridden by pages)
|
|
6
|
+
// https://vike.dev/config
|
|
7
|
+
|
|
7
8
|
export default {
|
|
9
|
+
// https://vike.dev/Layout
|
|
8
10
|
Layout,
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
// https://vike.dev/head-tags
|
|
13
|
+
title: "My Vike App",
|
|
14
|
+
description: "Demo showcasing Vike",
|
|
15
|
+
|
|
10
16
|
//# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs") || BATI.has("lucia-auth")
|
|
11
17
|
passToClient: ["user"],
|
|
12
|
-
// <title>
|
|
13
|
-
title: "My Vike App",
|
|
14
18
|
extends: vikeVue as typeof vikeVue,
|
|
15
19
|
} satisfies Config;
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
2
|
|
|
3
|
-
import fetch from "cross-fetch";
|
|
4
3
|
import type { PageContextServer } from "vike/types";
|
|
5
4
|
import type { MovieDetails } from "../types.js";
|
|
5
|
+
import { useConfig } from "vike-vue/useConfig";
|
|
6
6
|
|
|
7
7
|
export type Data = Awaited<ReturnType<typeof data>>;
|
|
8
8
|
|
|
9
9
|
export const data = async (pageContext: PageContextServer) => {
|
|
10
|
+
// https://vike.dev/useConfig
|
|
11
|
+
const config = useConfig();
|
|
12
|
+
|
|
10
13
|
const response = await fetch(`https://brillout.github.io/star-wars/api/films/${pageContext.routeParams.id}.json`);
|
|
11
14
|
let movie = (await response.json()) as MovieDetails;
|
|
15
|
+
|
|
16
|
+
config({
|
|
17
|
+
// Set <title>
|
|
18
|
+
title: movie.title,
|
|
19
|
+
});
|
|
20
|
+
|
|
12
21
|
// We remove data we don't need because the data is passed to
|
|
13
22
|
// the client; we should minimize what is sent over the network.
|
|
14
23
|
movie = minimize(movie);
|
|
24
|
+
|
|
15
25
|
return movie;
|
|
16
26
|
};
|
|
17
27
|
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
2
|
|
|
3
|
-
import fetch from "cross-fetch";
|
|
4
3
|
import type { Movie, MovieDetails } from "../types.js";
|
|
4
|
+
import { useConfig } from "vike-vue/useConfig";
|
|
5
5
|
|
|
6
6
|
export type Data = Awaited<ReturnType<typeof data>>;
|
|
7
7
|
|
|
8
8
|
export const data = async () => {
|
|
9
|
+
// https://vike.dev/useConfig
|
|
10
|
+
const config = useConfig();
|
|
11
|
+
|
|
9
12
|
const response = await fetch("https://brillout.github.io/star-wars/api/films.json");
|
|
10
13
|
const moviesData = (await response.json()) as MovieDetails[];
|
|
14
|
+
|
|
15
|
+
config({
|
|
16
|
+
// Set <title>
|
|
17
|
+
title: `${moviesData.length} Star Wars Movies`,
|
|
18
|
+
});
|
|
19
|
+
|
|
11
20
|
// We remove data we don't need because the data is passed to the client; we should
|
|
12
21
|
// minimize what is sent over the network.
|
|
13
22
|
const movies = minimize(moviesData);
|
|
23
|
+
|
|
14
24
|
return { data: movies };
|
|
15
25
|
};
|
|
16
26
|
|
package/dist/index.js
CHANGED
|
@@ -1677,7 +1677,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
1677
1677
|
// package.json
|
|
1678
1678
|
var package_default = {
|
|
1679
1679
|
name: "@batijs/cli",
|
|
1680
|
-
version: "0.0.
|
|
1680
|
+
version: "0.0.276",
|
|
1681
1681
|
type: "module",
|
|
1682
1682
|
scripts: {
|
|
1683
1683
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.276",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"typescript": "^5.6.2",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.0.5",
|
|
22
22
|
"vite": "^5.4.5",
|
|
23
|
-
"@batijs/build": "0.0.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
23
|
+
"@batijs/build": "0.0.276",
|
|
24
|
+
"@batijs/compile": "0.0.276"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.276",
|
|
28
|
+
"@batijs/features": "0.0.276"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|