@batijs/cli 0.0.243 → 0.0.245
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/$package.json.js +92 -0
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +14 -13
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +4 -2
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/drizzle/files/database/{db.ts → drizzleDb.ts} +1 -2
- package/dist/boilerplates/@batijs/drizzle/files/database/seed.ts +4 -3
- package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -1
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzleDb.d.ts +1 -0
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/express/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +31 -9
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +33 -45
- package/dist/boilerplates/@batijs/fastify/types/fastify-entry.d.ts +0 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +5 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +16 -18
- package/dist/boilerplates/@batijs/firebase-auth/types/server/firebase-auth-middleware.d.ts +8 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -2
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +33 -24
- package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +0 -4
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +5 -3
- package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +33 -24
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +7 -15
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +31 -9
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +23 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +29 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +135 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/database/auth-actions.ts +54 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/database/schema/auth.ts +41 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/database/sqliteDb.ts +30 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/lib/lucia-auth.ts +96 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/+guard.ts +11 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/style.css +94 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +340 -0
- package/dist/boilerplates/@batijs/lucia-auth/files/vike.d.ts +11 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/database/auth-actions.d.ts +9 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/database/schema/auth.d.ts +167 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/database/sqliteDb.d.ts +2 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/lib/lucia-auth.d.ts +43 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/pages/login/+guard.d.ts +3 -0
- package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +58 -0
- package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +1 -0
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/react-lucia-auth/files/pages/login/+Page.tsx +96 -0
- package/dist/boilerplates/@batijs/react-lucia-auth/types/pages/login/+Page.d.ts +2 -0
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +103 -0
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +6 -8
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +3 -5
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/shared-server/types/server/vike-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +1 -0
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/solid-lucia-auth/files/pages/login/+Page.tsx +96 -0
- package/dist/boilerplates/@batijs/solid-lucia-auth/types/pages/login/+Page.d.ts +2 -0
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -3
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -5
- package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -3
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +6 -9
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +6 -0
- package/dist/boilerplates/@batijs/vue-lucia-auth/files/pages/login/+Page.vue +87 -0
- package/dist/boilerplates/boilerplates.json +59 -0
- package/dist/{chunk-MFJ4ET44.js → chunk-FWD3UPBV.js} +5 -5
- package/dist/index.js +14 -14
- package/dist/{prompt-SUR66HP4.js → prompt-EYFUFJSI.js} +4 -4
- package/package.json +8 -8
- package/dist/boilerplates/@batijs/drizzle/types/database/db.d.ts +0 -2
- /package/dist/boilerplates/@batijs/drizzle/files/database/{schema.ts → schema/todos.ts} +0 -0
- /package/dist/boilerplates/@batijs/drizzle/types/database/{schema.d.ts → schema/todos.d.ts} +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import { navigate } from "vike/client/router";
|
|
4
|
+
|
|
5
|
+
type ValidationError = { username: string | null; password: string | null; invalid?: string };
|
|
6
|
+
|
|
7
|
+
export default function Page() {
|
|
8
|
+
const [formData, setFormData] = useState({
|
|
9
|
+
username: "",
|
|
10
|
+
password: "",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const [error, setError] = useState<ValidationError>({
|
|
14
|
+
username: null,
|
|
15
|
+
password: null,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const handleOnChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
19
|
+
const { name, value } = e.target;
|
|
20
|
+
setFormData((prev) => ({ ...prev, [name]: value }));
|
|
21
|
+
};
|
|
22
|
+
const handleOnSubmit = async (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, action: "login" | "signup") => {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
try {
|
|
25
|
+
const response = await fetch(`/api/${action}`, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
body: JSON.stringify(formData),
|
|
28
|
+
headers: { "Content-Type": "application/json" },
|
|
29
|
+
});
|
|
30
|
+
const result = await response.json();
|
|
31
|
+
if ("error" in result) {
|
|
32
|
+
console.error("A validation error has occurred :", result.error);
|
|
33
|
+
setError(result.error);
|
|
34
|
+
} else {
|
|
35
|
+
await navigate("/");
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
console.error("An unknown error has occurred :", err);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<div className="form">
|
|
44
|
+
<div className="form-content">
|
|
45
|
+
<header>Login / Sign Up</header>
|
|
46
|
+
<form>
|
|
47
|
+
<div className="field">
|
|
48
|
+
<input
|
|
49
|
+
id="username"
|
|
50
|
+
type="text"
|
|
51
|
+
name="username"
|
|
52
|
+
value={formData.username}
|
|
53
|
+
onChange={handleOnChange}
|
|
54
|
+
placeholder="Username"
|
|
55
|
+
autoComplete="username"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
{error.username && <span className="field-error">{error.username}</span>}
|
|
59
|
+
|
|
60
|
+
<div className="field">
|
|
61
|
+
<input
|
|
62
|
+
id="password"
|
|
63
|
+
type="password"
|
|
64
|
+
name="password"
|
|
65
|
+
value={formData.password}
|
|
66
|
+
onChange={handleOnChange}
|
|
67
|
+
placeholder="Password"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
{error.password && <span className="field-error">{error.password}</span>}
|
|
71
|
+
{error.invalid && <span className="field-error">{error.invalid}</span>}
|
|
72
|
+
|
|
73
|
+
<div className="field button-group">
|
|
74
|
+
<button type="button" className="button-field signup-button" onClick={(e) => handleOnSubmit(e, "signup")}>
|
|
75
|
+
Sign Up
|
|
76
|
+
</button>
|
|
77
|
+
<button type="submit" className="button-field login-button" onClick={(e) => handleOnSubmit(e, "login")}>
|
|
78
|
+
Login
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div className="media-options">
|
|
85
|
+
<a href="/api/login/github" className="field github">
|
|
86
|
+
<img
|
|
87
|
+
src="data:image/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
+
</a>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
// package.json
|
|
28
|
+
var require_package = __commonJS({
|
|
29
|
+
"package.json"(exports, module) {
|
|
30
|
+
module.exports = {
|
|
31
|
+
name: "@batijs/shared-server",
|
|
32
|
+
private: true,
|
|
33
|
+
version: "0.0.1",
|
|
34
|
+
description: "",
|
|
35
|
+
type: "module",
|
|
36
|
+
types: "./dist/index.d.ts",
|
|
37
|
+
scripts: {
|
|
38
|
+
"check-types": "tsc --noEmit",
|
|
39
|
+
build: "bati-compile-boilerplate"
|
|
40
|
+
},
|
|
41
|
+
keywords: [],
|
|
42
|
+
author: "",
|
|
43
|
+
license: "MIT",
|
|
44
|
+
devDependencies: {
|
|
45
|
+
"@batijs/compile": "workspace:*",
|
|
46
|
+
"@batijs/core": "workspace:*",
|
|
47
|
+
"@batijs/drizzle": "workspace:*",
|
|
48
|
+
"@batijs/features": "workspace:*",
|
|
49
|
+
"@batijs/shared-no-db": "workspace:*",
|
|
50
|
+
"@types/node": "^18.19.14",
|
|
51
|
+
"@universal-middleware/core": "^0.2.3",
|
|
52
|
+
vike: "^0.4.187",
|
|
53
|
+
vite: "^5.4.1"
|
|
54
|
+
},
|
|
55
|
+
files: [
|
|
56
|
+
"dist/"
|
|
57
|
+
],
|
|
58
|
+
bati: {
|
|
59
|
+
if: {
|
|
60
|
+
flag: {
|
|
61
|
+
$in: [
|
|
62
|
+
"h3",
|
|
63
|
+
"hattip",
|
|
64
|
+
"hono",
|
|
65
|
+
"express",
|
|
66
|
+
"fastify"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
exports: {
|
|
72
|
+
"./server/create-todo-handler": {
|
|
73
|
+
types: "./dist/types/server/create-todo-handler.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./server/vike-handler": {
|
|
76
|
+
types: "./dist/types/server/vike-handler.d.ts"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
typesVersions: {
|
|
80
|
+
"*": {
|
|
81
|
+
"server/create-todo-handler": [
|
|
82
|
+
"./dist/types/server/create-todo-handler.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"server/vike-handler": [
|
|
85
|
+
"./dist/types/server/vike-handler.d.ts"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// files/$package.json.ts
|
|
94
|
+
import { addDependency, loadAsJson } from "@batijs/core";
|
|
95
|
+
async function getPackageJson(props) {
|
|
96
|
+
const packageJson = await loadAsJson(props);
|
|
97
|
+
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
98
|
+
dependencies: ["@universal-middleware/core"]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
getPackageJson as default
|
|
103
|
+
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
1
|
+
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
2
|
+
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
-
request: Request,
|
|
6
|
-
_context?: Context,
|
|
7
|
-
): Promise<Response> {
|
|
5
|
+
export const createTodoHandler: Get<[], UniversalHandler> = () => async (request) => {
|
|
8
6
|
// In a real case, user-provided data should ALWAYS be validated with tools like zod
|
|
9
7
|
const newTodo = (await request.json()) as { text: string };
|
|
10
8
|
|
|
11
9
|
if (BATI.has("drizzle")) {
|
|
12
|
-
await
|
|
10
|
+
await drizzleDb.insert(todoTable).values({ text: newTodo.text });
|
|
13
11
|
} else {
|
|
14
12
|
// This is where you'd persist the data
|
|
15
13
|
console.log("Received new todo", newTodo);
|
|
@@ -21,4 +19,4 @@ export async function createTodoHandler<Context extends Record<string | number |
|
|
|
21
19
|
"content-type": "application/json",
|
|
22
20
|
},
|
|
23
21
|
});
|
|
24
|
-
}
|
|
22
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
/// <reference lib="webworker" />
|
|
3
3
|
import { renderPage } from "vike/server";
|
|
4
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
-
request: Request,
|
|
7
|
-
context?: Context,
|
|
8
|
-
): Promise<Response> {
|
|
6
|
+
export const vikeHandler: Get<[], UniversalHandler> = () => async (request, context) => {
|
|
9
7
|
const pageContextInit = { ...context, urlOriginal: request.url, headersOriginal: request.headers };
|
|
10
8
|
const pageContext = await renderPage(pageContextInit);
|
|
11
9
|
const response = pageContext.httpResponse;
|
|
@@ -18,4 +16,4 @@ export async function vikeHandler<Context extends Record<string | number | symbo
|
|
|
18
16
|
status: response?.statusCode,
|
|
19
17
|
headers: response?.headers,
|
|
20
18
|
});
|
|
21
|
-
}
|
|
19
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const createTodoHandler: Get<[], UniversalHandler>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const vikeHandler: Get<[], UniversalHandler>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// https://vike.dev/data
|
|
2
|
-
import {
|
|
3
|
-
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
2
|
+
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
3
|
+
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
4
4
|
import { todos } from "@batijs/shared-no-db/database/todoItems";
|
|
5
5
|
|
|
6
6
|
export type Data = {
|
|
@@ -9,7 +9,7 @@ export type Data = {
|
|
|
9
9
|
|
|
10
10
|
export default async function data(): Promise<Data> {
|
|
11
11
|
if (BATI.has("drizzle")) {
|
|
12
|
-
const todo =
|
|
12
|
+
const todo = drizzleDb.select().from(todoTable).all();
|
|
13
13
|
|
|
14
14
|
return { todo };
|
|
15
15
|
} else {
|
|
@@ -49,12 +49,12 @@ var require_package = __commonJS({
|
|
|
49
49
|
"@batijs/ts-rest": "workspace:*",
|
|
50
50
|
"@types/node": "^18.19.14",
|
|
51
51
|
"cross-fetch": "^4.0.0",
|
|
52
|
-
"solid-js": "^1.8.
|
|
53
|
-
tailwindcss: "^3.4.
|
|
52
|
+
"solid-js": "^1.8.21",
|
|
53
|
+
tailwindcss: "^3.4.10",
|
|
54
54
|
typescript: "^5.5.4",
|
|
55
|
-
vike: "^0.4.
|
|
56
|
-
"vike-solid": "^0.7.
|
|
57
|
-
vite: "^5.4.
|
|
55
|
+
vike: "^0.4.187",
|
|
56
|
+
"vike-solid": "^0.7.2",
|
|
57
|
+
vite: "^5.4.1",
|
|
58
58
|
"vite-plugin-solid": "^2.10.2"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
@@ -22,6 +22,7 @@ export default function LayoutDefault(props: { children?: JSX.Element }) {
|
|
|
22
22
|
<Link href="/">Welcome</Link>
|
|
23
23
|
<Link href="/todo">Todo</Link>
|
|
24
24
|
<Link href="/star-wars">Data Fetching</Link>
|
|
25
|
+
{BATI.has("firebase-auth") || BATI.has("lucia-auth") ? <Link href="/login">Login</Link> : ""}
|
|
25
26
|
</Sidebar>
|
|
26
27
|
<Content>{props.children}</Content>
|
|
27
28
|
</div>
|
|
@@ -7,7 +7,7 @@ import Layout from "../layouts/LayoutDefault.js";
|
|
|
7
7
|
export default {
|
|
8
8
|
Layout,
|
|
9
9
|
Head,
|
|
10
|
-
//# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs")
|
|
10
|
+
//# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs") || BATI.has("lucia-auth")
|
|
11
11
|
passToClient: ["user"],
|
|
12
12
|
// <title>
|
|
13
13
|
title: "My Vike App",
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
import { createSignal, untrack } from "solid-js";
|
|
3
|
+
import { navigate } from "vike/client/router";
|
|
4
|
+
|
|
5
|
+
type ValidationError = { username: string | null; password: string | null; invalid?: string };
|
|
6
|
+
|
|
7
|
+
export function Page() {
|
|
8
|
+
const [formData, setFormData] = createSignal({
|
|
9
|
+
username: "",
|
|
10
|
+
password: "",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const [error, setError] = createSignal<ValidationError>({
|
|
14
|
+
username: null,
|
|
15
|
+
password: null,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const handleOnChange = (e: Event) => {
|
|
19
|
+
const { name, value } = e.currentTarget as HTMLInputElement;
|
|
20
|
+
setFormData((prev) => ({ ...prev, [name]: value }));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const handleOnSubmit = async (e: Event, action: "login" | "signup") => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
try {
|
|
26
|
+
const response = await fetch(`/api/${action}`, {
|
|
27
|
+
method: "POST",
|
|
28
|
+
body: JSON.stringify(untrack(formData)),
|
|
29
|
+
headers: { "Content-Type": "application/json" },
|
|
30
|
+
});
|
|
31
|
+
const result = await response.json();
|
|
32
|
+
if ("error" in result) {
|
|
33
|
+
console.error("A validation error has occurred :", result.error);
|
|
34
|
+
setError(result.error);
|
|
35
|
+
} else {
|
|
36
|
+
await navigate("/");
|
|
37
|
+
}
|
|
38
|
+
} catch (err) {
|
|
39
|
+
console.error("An unknown error has occurred :", err);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return (
|
|
43
|
+
<div class="form">
|
|
44
|
+
<div class="form-content">
|
|
45
|
+
<header>Login / Sign Up</header>
|
|
46
|
+
<form>
|
|
47
|
+
<div class="field">
|
|
48
|
+
<input
|
|
49
|
+
id="username"
|
|
50
|
+
type="text"
|
|
51
|
+
name="username"
|
|
52
|
+
value={formData().username}
|
|
53
|
+
onChange={handleOnChange}
|
|
54
|
+
placeholder="Username"
|
|
55
|
+
autocomplete="username"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
{error().username && <span class="field-error">{error().username}</span>}
|
|
59
|
+
|
|
60
|
+
<div class="field">
|
|
61
|
+
<input
|
|
62
|
+
id="password"
|
|
63
|
+
type="password"
|
|
64
|
+
name="password"
|
|
65
|
+
value={formData().password}
|
|
66
|
+
onChange={handleOnChange}
|
|
67
|
+
placeholder="Password"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
{error().password && <span class="field-error">{error().password}</span>}
|
|
71
|
+
{error().invalid && <span class="field-error">{error().invalid}</span>}
|
|
72
|
+
|
|
73
|
+
<div class="field button-group">
|
|
74
|
+
<button type="button" class="button-field signup-button" onClick={(e) => handleOnSubmit(e, "signup")}>
|
|
75
|
+
Sign Up
|
|
76
|
+
</button>
|
|
77
|
+
<button type="submit" class="button-field login-button" onClick={(e) => handleOnSubmit(e, "login")}>
|
|
78
|
+
Login
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
</form>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div class="media-options">
|
|
85
|
+
<a href="/api/login/github" class="field github">
|
|
86
|
+
<img
|
|
87
|
+
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA0OTYgNTEyJz48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0nTTE2NS45IDM5Ny40YzAgMi0yLjMgMy42LTUuMiAzLjYtMy4zIC4zLTUuNi0xLjMtNS42LTMuNiAwLTIgMi4zLTMuNiA1LjItMy42IDMtLjMgNS42IDEuMyA1LjYgMy42em0tMzEuMS00LjVjLS43I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DI0NC44IDh6TTk3LjIgMzUyLjljLTEuMyAxLTEgMy4zIC43IDUuMiAxLjYgMS42IDMuOSAyLjMgNS4yIDEgMS4zLTEgMS0zLjMtLjctNS4yLTEuNi0xLjYtMy45LTIuMy01LjItMXptLTEwLjgtOC4xYy0uNyAxLjMgLjMgMi45IDIuMyAzLjkgMS42IDEgMy42IC43IDQuMy0uNyAuNy0xLjMtLjMtMi45LTIuMy0zLjktMi0uNi0zLjYtLjMtNC4zIC43em0zMi40IDM1LjZjLTEuNiAxLjMtMSA0LjMgMS4zIDYuMiAyLjMgMi4zIDUuMiAyLjYgNi41IDEgMS4zLTEuMyAuNy00LjMtMS4zLTYuMi0yLjItMi4zLTUuMi0yLjYtNi41LTF6bS0xMS40LTE0LjdjLTEuNiAxLTEuNiAzLjYgMCA1LjkgMS42IDIuMyA0LjMgMy4zIDUuNiAyLjMgMS42LTEuMyAxLjYtMy45IDAtNi4yLTEuNC0yLjMtNC0zLjMtNS42LTJ6Jy8+PC9zdmc+"
|
|
88
|
+
class="github-icon"
|
|
89
|
+
alt=""
|
|
90
|
+
/>
|
|
91
|
+
<span>Login with Github</span>
|
|
92
|
+
</a>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -46,9 +46,9 @@ var require_package = __commonJS({
|
|
|
46
46
|
autoprefixer: "^10.4.20",
|
|
47
47
|
daisyui: "^4.12.10",
|
|
48
48
|
postcss: "^8.4.41",
|
|
49
|
-
tailwindcss: "^3.4.
|
|
50
|
-
vike: "^0.4.
|
|
51
|
-
vite: "^5.4.
|
|
49
|
+
tailwindcss: "^3.4.10",
|
|
50
|
+
vike: "^0.4.187",
|
|
51
|
+
vite: "^5.4.1"
|
|
52
52
|
},
|
|
53
53
|
dependencies: {
|
|
54
54
|
"@batijs/core": "workspace:*"
|
|
@@ -46,9 +46,10 @@ var require_package = __commonJS({
|
|
|
46
46
|
"@batijs/shared-no-db": "workspace:*",
|
|
47
47
|
"@batijs/shared-todo": "workspace:*",
|
|
48
48
|
"@types/node": "^18.19.14",
|
|
49
|
+
"@universal-middleware/core": "^0.2.3",
|
|
49
50
|
telefunc: "^0.1.76",
|
|
50
|
-
vike: "^0.4.
|
|
51
|
-
vite: "^5.4.
|
|
51
|
+
vike: "^0.4.187",
|
|
52
|
+
vite: "^5.4.1"
|
|
52
53
|
},
|
|
53
54
|
dependencies: {
|
|
54
55
|
"@batijs/core": "workspace:*"
|
|
@@ -88,7 +89,7 @@ import { addDependency, loadAsJson } from "@batijs/core";
|
|
|
88
89
|
async function getPackageJson(props) {
|
|
89
90
|
const packageJson = await loadAsJson(props);
|
|
90
91
|
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
91
|
-
dependencies: ["telefunc"]
|
|
92
|
+
dependencies: ["telefunc", "@universal-middleware/core"]
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
1
|
+
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
2
|
+
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
3
|
|
|
4
4
|
export async function onNewTodo({ text }: { text: string }) {
|
|
5
5
|
if (BATI.has("drizzle")) {
|
|
6
|
-
await
|
|
6
|
+
await drizzleDb.insert(todoTable).values({ text });
|
|
7
7
|
} else {
|
|
8
8
|
// This is where you'd persist the data
|
|
9
9
|
console.log("Received new todo", { text });
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { telefunc } from "telefunc";
|
|
2
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
request: Request,
|
|
5
|
-
context?: Context,
|
|
6
|
-
): Promise<Response> {
|
|
4
|
+
export const telefuncHandler: Get<[], UniversalHandler> = () => async (request, context) => {
|
|
7
5
|
const httpResponse = await telefunc({
|
|
8
6
|
url: request.url.toString(),
|
|
9
7
|
method: request.method,
|
|
@@ -17,4 +15,4 @@ export async function telefuncHandler<Context extends Record<string | number | s
|
|
|
17
15
|
"content-type": contentType,
|
|
18
16
|
},
|
|
19
17
|
});
|
|
20
|
-
}
|
|
18
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const telefuncHandler: Get<[], UniversalHandler>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
1
|
+
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
2
|
+
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
3
|
import { initTRPC } from "@trpc/server";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -28,7 +28,7 @@ export const appRouter = router({
|
|
|
28
28
|
})
|
|
29
29
|
.mutation(async (opts) => {
|
|
30
30
|
if (BATI.has("drizzle")) {
|
|
31
|
-
await
|
|
31
|
+
await drizzleDb.insert(todoTable).values({ text: opts.input });
|
|
32
32
|
} else {
|
|
33
33
|
// This is where you'd persist the data
|
|
34
34
|
console.log("Received new todo", { text: opts.input });
|
|
@@ -44,9 +44,10 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@batijs/drizzle": "workspace:*",
|
|
46
46
|
"@batijs/shared-no-db": "workspace:*",
|
|
47
|
-
"@ts-rest/core": "^3.
|
|
48
|
-
"@ts-rest/serverless": "^3.
|
|
47
|
+
"@ts-rest/core": "^3.50.0",
|
|
48
|
+
"@ts-rest/serverless": "^3.50.0",
|
|
49
49
|
"@types/node": "^18.19.14",
|
|
50
|
+
"@universal-middleware/core": "^0.2.3",
|
|
50
51
|
zod: "^3.23.8"
|
|
51
52
|
},
|
|
52
53
|
dependencies: {
|
|
@@ -93,7 +94,7 @@ import { addDependency, loadAsJson } from "@batijs/core";
|
|
|
93
94
|
async function getPackageJson(props) {
|
|
94
95
|
const packageJson = await loadAsJson(props);
|
|
95
96
|
addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
96
|
-
dependencies: ["@ts-rest/core", "@ts-rest/serverless"],
|
|
97
|
+
dependencies: ["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"],
|
|
97
98
|
devDependencies: ["zod"]
|
|
98
99
|
});
|
|
99
100
|
packageJson.devDependencies.typescript = "~5.4.5";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { todoTable } from "@batijs/drizzle/database/schema";
|
|
1
|
+
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
2
|
+
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
3
|
import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
|
|
4
4
|
import { contract } from "../ts-rest/contract";
|
|
5
|
+
import { Get, UniversalHandler } from "@universal-middleware/core";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* ts-rest route
|
|
@@ -19,7 +20,7 @@ const router = tsr.router(contract, {
|
|
|
19
20
|
},
|
|
20
21
|
createTodo: async ({ body }) => {
|
|
21
22
|
if (BATI.has("drizzle")) {
|
|
22
|
-
await
|
|
23
|
+
await drizzleDb.insert(todoTable).values({ text: body.text });
|
|
23
24
|
} else {
|
|
24
25
|
// This is where you'd persist the data
|
|
25
26
|
console.log("Received new todo", { text: body.text });
|
|
@@ -33,14 +34,10 @@ const router = tsr.router(contract, {
|
|
|
33
34
|
},
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
_context?: Context,
|
|
39
|
-
): Promise<Response> {
|
|
40
|
-
return fetchRequestHandler({
|
|
37
|
+
export const tsRestHandler: Get<[], UniversalHandler> = () => async (request) =>
|
|
38
|
+
fetchRequestHandler({
|
|
41
39
|
request: new Request(request.url, request),
|
|
42
40
|
contract,
|
|
43
41
|
router,
|
|
44
42
|
options: {},
|
|
45
43
|
});
|
|
46
|
-
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const tsRestHandler: Get<[], UniversalHandler>;
|
|
@@ -43,10 +43,10 @@ var require_package = __commonJS({
|
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
|
-
"@vite-plugin-vercel/vike": "^8.0.
|
|
47
|
-
vike: "^0.4.
|
|
48
|
-
vite: "^5.4.
|
|
49
|
-
"vite-plugin-vercel": "^8.0.
|
|
46
|
+
"@vite-plugin-vercel/vike": "^8.0.1",
|
|
47
|
+
vike: "^0.4.187",
|
|
48
|
+
vite: "^5.4.1",
|
|
49
|
+
"vite-plugin-vercel": "^8.0.1"
|
|
50
50
|
},
|
|
51
51
|
dependencies: {
|
|
52
52
|
"@batijs/core": "workspace:*"
|
|
@@ -49,16 +49,16 @@ var require_package = __commonJS({
|
|
|
49
49
|
"@batijs/ts-rest": "workspace:*",
|
|
50
50
|
"@types/node": "^18.19.14",
|
|
51
51
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
52
|
-
"@vue/compiler-sfc": "^3.4.
|
|
53
|
-
"@vue/server-renderer": "^3.4.
|
|
52
|
+
"@vue/compiler-sfc": "^3.4.38",
|
|
53
|
+
"@vue/server-renderer": "^3.4.38",
|
|
54
54
|
"cross-fetch": "^4.0.0",
|
|
55
|
-
tailwindcss: "^3.4.
|
|
55
|
+
tailwindcss: "^3.4.10",
|
|
56
56
|
typescript: "^5.5.4",
|
|
57
57
|
"unplugin-vue-markdown": "^0.26.2",
|
|
58
|
-
vike: "^0.4.
|
|
59
|
-
"vike-vue": "^0.8.
|
|
60
|
-
vite: "^5.4.
|
|
61
|
-
vue: "^3.4.
|
|
58
|
+
vike: "^0.4.187",
|
|
59
|
+
"vike-vue": "^0.8.2",
|
|
60
|
+
vite: "^5.4.1",
|
|
61
|
+
vue: "^3.4.38",
|
|
62
62
|
"vue-gtag": "^2.0.1"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|