@batijs/cli 0.0.444 → 0.0.446
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/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -7
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -13
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +0 -35
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +0 -35
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +0 -35
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +0 -35
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +0 -35
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +1 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +0 -1
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/gitignore +1 -4
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +0 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -13
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/schema/all.ts +0 -2
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.ts +0 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +0 -2
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/boilerplates.json +0 -118
- package/dist/{chunk-HYBBK3CW.js → chunk-ZDDQD2BO.js} +9848 -9848
- package/dist/index.js +17 -64
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/lucia-auth.ts +0 -29
- package/dist/boilerplates/@batijs/d1-sqlite/files/database/migrations/lucia-auth.sql +0 -20
- package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/lucia-auth.d.ts +0 -5
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/lucia-auth.ts +0 -56
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/schema/lucia-auth.ts +0 -41
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/lucia-auth.d.ts +0 -25
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/lucia-auth.d.ts +0 -190
- package/dist/boilerplates/@batijs/express/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/fastify/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +0 -24
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +0 -39
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +0 -133
- package/dist/boilerplates/@batijs/firebase-auth/files/firebase/$service-account.json.js +0 -26
- package/dist/boilerplates/@batijs/firebase-auth/files/global.d.ts +0 -11
- package/dist/boilerplates/@batijs/firebase-auth/files/libs/firebaseAdmin.ts +0 -15
- package/dist/boilerplates/@batijs/firebase-auth/files/libs/firebaseUI.ts +0 -31
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/+client.ts +0 -30
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/login/+config.ts +0 -6
- package/dist/boilerplates/@batijs/firebase-auth/files/pages/login/+guard.ts +0 -11
- package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +0 -71
- package/dist/boilerplates/@batijs/firebase-auth/types/libs/firebaseAdmin.d.ts +0 -5
- package/dist/boilerplates/@batijs/firebase-auth/types/libs/firebaseUI.d.ts +0 -5
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/+client.d.ts +0 -1
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/login/+config.d.ts +0 -4
- package/dist/boilerplates/@batijs/firebase-auth/types/pages/login/+guard.d.ts +0 -3
- package/dist/boilerplates/@batijs/firebase-auth/types/server/firebase-auth-middleware.d.ts +0 -4
- package/dist/boilerplates/@batijs/h3/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/hono/files/global.d.ts +0 -10
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +0 -32
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +0 -38
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +0 -113
- package/dist/boilerplates/@batijs/lucia-auth/files/global.d.ts +0 -11
- package/dist/boilerplates/@batijs/lucia-auth/files/lib/lucia-auth.ts +0 -136
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/+guard.ts +0 -11
- package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/style.css +0 -94
- package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +0 -401
- package/dist/boilerplates/@batijs/lucia-auth/types/lib/lucia-auth.d.ts +0 -63
- package/dist/boilerplates/@batijs/lucia-auth/types/pages/login/+guard.d.ts +0 -3
- package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +0 -65
- package/dist/boilerplates/@batijs/react-firebase-auth/files/pages/login/+Page.tsx +0 -52
- package/dist/boilerplates/@batijs/react-firebase-auth/types/pages/login/+Page.d.ts +0 -3
- package/dist/boilerplates/@batijs/react-lucia-auth/files/pages/login/+Page.tsx +0 -97
- package/dist/boilerplates/@batijs/react-lucia-auth/types/pages/login/+Page.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid-firebase-auth/files/pages/login/+Page.tsx +0 -52
- package/dist/boilerplates/@batijs/solid-firebase-auth/types/pages/login/+Page.d.ts +0 -3
- package/dist/boilerplates/@batijs/solid-lucia-auth/files/pages/login/+Page.tsx +0 -97
- package/dist/boilerplates/@batijs/solid-lucia-auth/types/pages/login/+Page.d.ts +0 -2
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/queries/lucia-auth.ts +0 -27
- package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/schema/lucia-auth.ts +0 -32
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/lucia-auth.d.ts +0 -5
- package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/lucia-auth.d.ts +0 -1
- package/dist/boilerplates/@batijs/vue-firebase-auth/files/pages/login/+Page.vue +0 -51
- package/dist/boilerplates/@batijs/vue-lucia-auth/files/pages/login/+Page.vue +0 -88
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
cst,
|
|
10
10
|
export_which,
|
|
11
11
|
wds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZDDQD2BO.js";
|
|
13
13
|
import "./chunk-V7W2TXCE.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -13808,7 +13808,7 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13808
13808
|
}
|
|
13809
13809
|
}
|
|
13810
13810
|
|
|
13811
|
-
// ../features/dist/chunk-
|
|
13811
|
+
// ../features/dist/chunk-KR6CA6DD.js
|
|
13812
13812
|
var features = [
|
|
13813
13813
|
// Vike
|
|
13814
13814
|
{
|
|
@@ -14037,43 +14037,6 @@ var features = [
|
|
|
14037
14037
|
}
|
|
14038
14038
|
]
|
|
14039
14039
|
},
|
|
14040
|
-
{
|
|
14041
|
-
category: "Auth",
|
|
14042
|
-
label: "Firebase",
|
|
14043
|
-
flag: "firebase-auth",
|
|
14044
|
-
image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIwLjczZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjU2IDM1MSI+PGRlZnM+PGZpbHRlciBpZD0ibG9nb3NGaXJlYmFzZTAiIHdpZHRoPSIyMDAlIiBoZWlnaHQ9IjIwMCUiIHg9Ii01MCUiIHk9Ii01MCUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PGZlR2F1c3NpYW5CbHVyIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dCbHVySW5uZXIxIiBzdGREZXZpYXRpb249IjE3LjUiLz48ZmVPZmZzZXQgaW49InNoYWRvd0JsdXJJbm5lcjEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0SW5uZXIxIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRJbm5lcjEiIGluMj0iU291cmNlQWxwaGEiIGsyPSItMSIgazM9IjEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiByZXN1bHQ9InNoYWRvd0lubmVySW5uZXIxIi8+PGZlQ29sb3JNYXRyaXggaW49InNoYWRvd0lubmVySW5uZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDYgMCIvPjwvZmlsdGVyPjxmaWx0ZXIgaWQ9ImxvZ29zRmlyZWJhc2UxIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIiB4PSItNTAlIiB5PSItNTAlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxmZUdhdXNzaWFuQmx1ciBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0ic2hhZG93Qmx1cklubmVyMSIgc3RkRGV2aWF0aW9uPSIzLjUiLz48ZmVPZmZzZXQgZHg9IjEiIGR5PSItOSIgaW49InNoYWRvd0JsdXJJbm5lcjEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0SW5uZXIxIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRJbm5lcjEiIGluMj0iU291cmNlQWxwaGEiIGsyPSItMSIgazM9IjEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiByZXN1bHQ9InNoYWRvd0lubmVySW5uZXIxIi8+PGZlQ29sb3JNYXRyaXggaW49InNoYWRvd0lubmVySW5uZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDkgMCIvPjwvZmlsdGVyPjxwYXRoIGlkPSJsb2dvc0ZpcmViYXNlMiIgZD0ibTEuMjUzIDI4MC43MzJsMS42MDUtMy4xMzFsOTkuMzUzLTE4OC41MThsLTQ0LjE1LTgzLjQ3NUM1NC4zOTItMS4yODMgNDUuMDc0LjQ3NCA0My44NyA4LjE4OEwxLjI1MyAyODAuNzMyWiIvPjxwYXRoIGlkPSJsb2dvc0ZpcmViYXNlMyIgZD0ibTEzNC40MTcgMTQ4Ljk3NGwzMi4wMzktMzIuODEybC0zMi4wMzktNjEuMDA3Yy0zLjA0Mi01Ljc5MS0xMC40MzMtNi4zOTgtMTMuNDQzLS41OWwtMTcuNzA1IDM0LjEwOWwtLjUzIDEuNzQ0bDMxLjY3OCA1OC41NTZaIi8+PC9kZWZzPjxwYXRoIGZpbGw9IiNGRkMyNEEiIGQ9Im0wIDI4Mi45OThsMi4xMjMtMi45NzJMMTAyLjUyNyA4OS41MTJsLjIxMi0yLjAxN0w1OC40OCA0LjM1OEM1NC43Ny0yLjYwNiA0NC4zMy0uODQ1IDQzLjExNCA2Ljk1MUwwIDI4Mi45OThaIi8+PHVzZSBmaWxsPSIjRkZBNzEyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGhyZWY9IiNsb2dvc0ZpcmViYXNlMiIvPjx1c2UgZmlsdGVyPSJ1cmwoI2xvZ29zRmlyZWJhc2UwKSIgaHJlZj0iI2xvZ29zRmlyZWJhc2UyIi8+PHBhdGggZmlsbD0iI0Y0QkQ2MiIgZD0ibTEzNS4wMDUgMTUwLjM4bDMyLjk1NS0zMy43NWwtMzIuOTY1LTYyLjkzYy0zLjEyOS01Ljk1Ny0xMS44NjYtNS45NzUtMTQuOTYyIDBMMTAyLjQyIDg3LjI4N3YyLjg2bDMyLjU4NCA2MC4yMzNaIi8+PHVzZSBmaWxsPSIjRkZBNTBFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGhyZWY9IiNsb2dvc0ZpcmViYXNlMyIvPjx1c2UgZmlsdGVyPSJ1cmwoI2xvZ29zRmlyZWJhc2UxKSIgaHJlZj0iI2xvZ29zRmlyZWJhc2UzIi8+PHBhdGggZmlsbD0iI0Y2ODIwQyIgZD0ibTAgMjgyLjk5OGwuOTYyLS45NjhsMy40OTYtMS40MmwxMjguNDc3LTEyOGwxLjYyOC00LjQzMWwtMzIuMDUtNjEuMDc0eiIvPjxwYXRoIGZpbGw9IiNGREUwNjgiIGQ9Im0xMzkuMTIxIDM0Ny41NTFsMTE2LjI3NS02NC44NDdsLTMzLjIwNC0yMDQuNDk1Yy0xLjAzOS02LjM5OC04Ljg4OC04LjkyNy0xMy40NjgtNC4zNEwwIDI4Mi45OThsMTE1LjYwOCA2NC41NDhhMjQuMTI2IDI0LjEyNiAwIDAgMCAyMy41MTMuMDA1Ii8+PHBhdGggZmlsbD0iI0ZDQ0EzRiIgZD0iTTI1NC4zNTQgMjgyLjE2TDIyMS40MDIgNzkuMjE4Yy0xLjAzLTYuMzUtNy41NTgtOC45NzctMTIuMTAzLTQuNDI0TDEuMjkgMjgyLjZsMTE0LjMzOSA2My45MDhhMjMuOTQzIDIzLjk0MyAwIDAgMCAyMy4zMzQuMDA2bDExNS4zOTItNjQuMzU1WiIvPjxwYXRoIGZpbGw9IiNFRUFCMzciIGQ9Ik0xMzkuMTIgMzQ1LjY0YTI0LjEyNiAyNC4xMjYgMCAwIDEtMjMuNTEyLS4wMDVMLjkzMSAyODIuMDE1bC0uOTMuOTgzbDExNS42MDcgNjQuNTQ4YTI0LjEyNiAyNC4xMjYgMCAwIDAgMjMuNTEzLjAwNWwxMTYuMjc1LTY0Ljg0N2wtLjI4NS0xLjc1MmwtMTE1Ljk5IDY0LjY4OVoiLz48L3N2Zz4=",
|
|
14045
|
-
url: "https://firebase.google.com",
|
|
14046
|
-
tagline: "Firebase Authentication aims to make building secure authentication systems easy, while improving the sign-in and onboarding experience for end users",
|
|
14047
|
-
links: [
|
|
14048
|
-
{
|
|
14049
|
-
label: "Getting started",
|
|
14050
|
-
href: "https://firebase.google.com/docs/web/setup"
|
|
14051
|
-
},
|
|
14052
|
-
{
|
|
14053
|
-
label: "API",
|
|
14054
|
-
href: "https://firebase.google.com/docs/reference"
|
|
14055
|
-
}
|
|
14056
|
-
]
|
|
14057
|
-
},
|
|
14058
|
-
{
|
|
14059
|
-
category: "Auth",
|
|
14060
|
-
label: "Lucia",
|
|
14061
|
-
flag: "lucia-auth",
|
|
14062
|
-
image: "data:image/svg+xml;base64,PHN2ZyBpZD0nV2Fyc3R3YV8xJyBkYXRhLW5hbWU9J1dhcnN0d2EgMScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB4bWxuczp4bGluaz0naHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluaycgdmlld0JveD0nMCAwIDIwMDAgMjAwMCc+PHBhdGggZmlsbD0nIzVmNTdmZicgZD0nbTE2NDcuNjYsMTY3My4zNkwxMDAwLDcyLjczLDM1Mi4zNCwxNjczLjM2bC0xMDIuNzQsMjUzLjkxaDE1MDAuOGwtMTAyLjc0LTI1My45MVptLTY0Ny42Ni01NDlsLTQ0Mi44Miw1NDUuMzksOTkuNTUtMjQ2LjA0LDM0My4yNy04NDguMzUsMzQzLjI2LDg0OC4zNSw5OS41NSwyNDYuMDQtNDQyLjgxLTU0NS4zOVonIC8+PC9zdmc+",
|
|
14063
|
-
url: "https://lucia-auth.com",
|
|
14064
|
-
spectrum: "bleeding_edge",
|
|
14065
|
-
tagline: "Lucia is an auth library for your server that abstracts away the complexity of handling sessions",
|
|
14066
|
-
links: [
|
|
14067
|
-
{
|
|
14068
|
-
label: "Getting started",
|
|
14069
|
-
href: "https://lucia-auth.com/getting-started/"
|
|
14070
|
-
},
|
|
14071
|
-
{
|
|
14072
|
-
label: "API reference",
|
|
14073
|
-
href: "https://lucia-auth.com/reference/main/"
|
|
14074
|
-
}
|
|
14075
|
-
]
|
|
14076
|
-
},
|
|
14077
14040
|
// RPC
|
|
14078
14041
|
{
|
|
14079
14042
|
category: "Data fetching",
|
|
@@ -14436,14 +14399,13 @@ var RulesMessage = /* @__PURE__ */ ((RulesMessage2) => {
|
|
|
14436
14399
|
RulesMessage2[RulesMessage2["ERROR_COMPILED_R_REACT"] = 1] = "ERROR_COMPILED_R_REACT";
|
|
14437
14400
|
RulesMessage2[RulesMessage2["ERROR_DRIZZLE_R_SERVER"] = 2] = "ERROR_DRIZZLE_R_SERVER";
|
|
14438
14401
|
RulesMessage2[RulesMessage2["ERROR_DATA_R_SERVER"] = 3] = "ERROR_DATA_R_SERVER";
|
|
14439
|
-
RulesMessage2[RulesMessage2["
|
|
14440
|
-
RulesMessage2[RulesMessage2["
|
|
14441
|
-
RulesMessage2[RulesMessage2["
|
|
14442
|
-
RulesMessage2[RulesMessage2["
|
|
14443
|
-
RulesMessage2[RulesMessage2["
|
|
14444
|
-
RulesMessage2[RulesMessage2["
|
|
14445
|
-
RulesMessage2[RulesMessage2["
|
|
14446
|
-
RulesMessage2[RulesMessage2["INFO_STACKBLITZ_COMPAT"] = 11] = "INFO_STACKBLITZ_COMPAT";
|
|
14402
|
+
RulesMessage2[RulesMessage2["ERROR_CLOUDFLARE_R_COMPAT_SERVER"] = 4] = "ERROR_CLOUDFLARE_R_COMPAT_SERVER";
|
|
14403
|
+
RulesMessage2[RulesMessage2["ERROR_AWS_R_COMPAT_SERVER"] = 5] = "ERROR_AWS_R_COMPAT_SERVER";
|
|
14404
|
+
RulesMessage2[RulesMessage2["ERROR_MANTINE_R_REACT"] = 6] = "ERROR_MANTINE_R_REACT";
|
|
14405
|
+
RulesMessage2[RulesMessage2["ERROR_SHADCN_R_REACT"] = 7] = "ERROR_SHADCN_R_REACT";
|
|
14406
|
+
RulesMessage2[RulesMessage2["WARN_SHADCN_R_TAILWINDCSS"] = 8] = "WARN_SHADCN_R_TAILWINDCSS";
|
|
14407
|
+
RulesMessage2[RulesMessage2["INFO_HATTIP"] = 9] = "INFO_HATTIP";
|
|
14408
|
+
RulesMessage2[RulesMessage2["INFO_STACKBLITZ_COMPAT"] = 10] = "INFO_STACKBLITZ_COMPAT";
|
|
14447
14409
|
return RulesMessage2;
|
|
14448
14410
|
})(RulesMessage || {});
|
|
14449
14411
|
function requires(message, ifPresent, mustAlsoInclude) {
|
|
@@ -14469,10 +14431,10 @@ function prepare(fts) {
|
|
|
14469
14431
|
var rules_default = [
|
|
14470
14432
|
requires(0, "Auth", ["Server"]),
|
|
14471
14433
|
requires(1, "compiled-css", ["react"]),
|
|
14472
|
-
includes(
|
|
14434
|
+
includes(9, "hattip"),
|
|
14473
14435
|
requires(2, "drizzle", ["Server"]),
|
|
14474
14436
|
requires(3, "Data fetching", ["Server"]),
|
|
14475
|
-
filter(
|
|
14437
|
+
filter(4, (fts) => {
|
|
14476
14438
|
if (fts.has("cloudflare")) {
|
|
14477
14439
|
if (fts.has("hono") || fts.has("hattip")) {
|
|
14478
14440
|
return false;
|
|
@@ -14481,7 +14443,7 @@ var rules_default = [
|
|
|
14481
14443
|
}
|
|
14482
14444
|
return false;
|
|
14483
14445
|
}),
|
|
14484
|
-
filter(
|
|
14446
|
+
filter(5, (fts) => {
|
|
14485
14447
|
if (fts.has("aws")) {
|
|
14486
14448
|
if (fts.has("hono") || fts.has("hattip")) {
|
|
14487
14449
|
return false;
|
|
@@ -14490,31 +14452,25 @@ var rules_default = [
|
|
|
14490
14452
|
}
|
|
14491
14453
|
return false;
|
|
14492
14454
|
}),
|
|
14493
|
-
filter(
|
|
14494
|
-
if (fts.has("lucia-auth")) {
|
|
14495
|
-
return !(fts.has("sqlite") || fts.has("drizzle"));
|
|
14496
|
-
}
|
|
14497
|
-
return false;
|
|
14498
|
-
}),
|
|
14499
|
-
filter(7, (fts) => {
|
|
14455
|
+
filter(6, (fts) => {
|
|
14500
14456
|
if (fts.has("mantine")) {
|
|
14501
14457
|
return fts.has("vue") || fts.has("solid");
|
|
14502
14458
|
}
|
|
14503
14459
|
return false;
|
|
14504
14460
|
}),
|
|
14505
|
-
filter(
|
|
14461
|
+
filter(7, (fts) => {
|
|
14506
14462
|
if (fts.has("shadcn-ui")) {
|
|
14507
14463
|
return fts.has("vue") || fts.has("solid");
|
|
14508
14464
|
}
|
|
14509
14465
|
return false;
|
|
14510
14466
|
}),
|
|
14511
|
-
filter(
|
|
14467
|
+
filter(8, (fts) => {
|
|
14512
14468
|
if (fts.has("shadcn-ui")) {
|
|
14513
14469
|
return fts.has("daisyui") || fts.has("compiled-css");
|
|
14514
14470
|
}
|
|
14515
14471
|
return false;
|
|
14516
14472
|
}),
|
|
14517
|
-
filter(
|
|
14473
|
+
filter(10, (fts) => {
|
|
14518
14474
|
return fts.has("drizzle") || fts.has("sqlite") || fts.has("cloudflare");
|
|
14519
14475
|
})
|
|
14520
14476
|
];
|
|
@@ -16987,7 +16943,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16987
16943
|
// package.json
|
|
16988
16944
|
var package_default = {
|
|
16989
16945
|
name: "@batijs/cli",
|
|
16990
|
-
version: "0.0.
|
|
16946
|
+
version: "0.0.446",
|
|
16991
16947
|
type: "module",
|
|
16992
16948
|
scripts: {
|
|
16993
16949
|
"check-types": "tsc --noEmit",
|
|
@@ -17071,9 +17027,6 @@ var rulesMessages = {
|
|
|
17071
17027
|
`${inverse(bold("Cloudflare"))} is only compatible with ${inverse(bold("Hono"))} or ${inverse(bold("HatTip"))}.
|
|
17072
17028
|
Choose one of them, or simply remove selected Server`
|
|
17073
17029
|
),
|
|
17074
|
-
[RulesMessage.ERROR_LUCIA_R_COMPAT_DATABASE]: error(
|
|
17075
|
-
`${inverse(bold("Lucia"))} requires a ${inverse(bold("Database"))}, and is only compatible with ${inverse(bold("SQLite"))} or ${inverse(bold("Drizzle"))}`
|
|
17076
|
-
),
|
|
17077
17030
|
[RulesMessage.ERROR_AWS_R_COMPAT_SERVER]: error(
|
|
17078
17031
|
`${inverse(bold("AWS"))} deployment is only compatible with ${inverse(bold("Hono"))} or ${inverse(bold("HatTip"))}. Please pick one`
|
|
17079
17032
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.446",
|
|
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.8.3",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
22
22
|
"vite": "^6.3.5",
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
24
|
-
"@batijs/build": "0.0.
|
|
23
|
+
"@batijs/compile": "0.0.446",
|
|
24
|
+
"@batijs/build": "0.0.446"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.446",
|
|
28
|
+
"@batijs/features": "0.0.446"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*# BATI include-if-imported #*/
|
|
2
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
3
|
-
|
|
4
|
-
export function getExistingUser<T>(db: D1Database, username: string) {
|
|
5
|
-
return db.prepare("SELECT * FROM users WHERE username = ?").bind(username).first<T>();
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function getExistingAccount<T>(db: D1Database, providerId: string, providerUserId: number) {
|
|
9
|
-
return db
|
|
10
|
-
.prepare("SELECT * FROM oauth_accounts WHERE provider_id = ? AND provider_user_id = ?")
|
|
11
|
-
.bind(providerId, providerUserId)
|
|
12
|
-
.first<T>();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function signupWithGithub(db: D1Database, userId: string, username: string, githubUserId: number) {
|
|
16
|
-
return db.batch([
|
|
17
|
-
db.prepare("INSERT INTO users (id, username) VALUES (?, ?)").bind(userId, username),
|
|
18
|
-
db
|
|
19
|
-
.prepare("INSERT INTO oauth_accounts (provider_id, provider_user_id, user_id) VALUES (?, ?, ?)")
|
|
20
|
-
.bind("github", githubUserId, userId),
|
|
21
|
-
]);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function signupWithCredentials(db: D1Database, userId: string, username: string, passwordHash: string) {
|
|
25
|
-
return db
|
|
26
|
-
.prepare("INSERT INTO users (id, username, password) VALUES(?, ?, ?)")
|
|
27
|
-
.bind(userId, username, passwordHash)
|
|
28
|
-
.run();
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
CREATE TABLE IF NOT EXISTS users (
|
|
2
|
-
id TEXT NOT NULL PRIMARY KEY,
|
|
3
|
-
username TEXT NOT NULL UNIQUE,
|
|
4
|
-
password TEXT
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
CREATE TABLE IF NOT EXISTS oauth_accounts (
|
|
8
|
-
provider_id TEXT NOT NULL,
|
|
9
|
-
provider_user_id INTEGER NOT NULL,
|
|
10
|
-
user_id TEXT NOT NULL,
|
|
11
|
-
PRIMARY KEY (provider_id, provider_user_id),
|
|
12
|
-
FOREIGN KEY (user_id) REFERENCES users(id) ON UPDATE cascade ON DELETE cascade
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
CREATE TABLE IF NOT EXISTS sessions (
|
|
16
|
-
id TEXT NOT NULL PRIMARY KEY,
|
|
17
|
-
expires_at INTEGER NOT NULL,
|
|
18
|
-
user_id TEXT NOT NULL,
|
|
19
|
-
FOREIGN KEY (user_id) REFERENCES users(id) ON UPDATE cascade ON DELETE cascade
|
|
20
|
-
);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
2
|
-
export declare function getExistingUser<T>(db: D1Database, username: string): Promise<T | null>;
|
|
3
|
-
export declare function getExistingAccount<T>(db: D1Database, providerId: string, providerUserId: number): Promise<T | null>;
|
|
4
|
-
export declare function signupWithGithub(db: D1Database, userId: string, username: string, githubUserId: number): Promise<import("@cloudflare/workers-types").D1Result<unknown>[]>;
|
|
5
|
-
export declare function signupWithCredentials(db: D1Database, userId: string, username: string, passwordHash: string): Promise<import("@cloudflare/workers-types").D1Result<Record<string, unknown>>>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*# BATI include-if-imported #*/
|
|
2
|
-
import { dbD1, dbSqlite } from "../db";
|
|
3
|
-
import { oauthAccountTable, userTable } from "../schema/lucia-auth";
|
|
4
|
-
import { and, eq } from "drizzle-orm";
|
|
5
|
-
|
|
6
|
-
export async function getExistingUser(
|
|
7
|
-
db: BATI.If<{
|
|
8
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
9
|
-
_: ReturnType<typeof dbD1>;
|
|
10
|
-
}>,
|
|
11
|
-
username: string,
|
|
12
|
-
) {
|
|
13
|
-
return db.select().from(userTable).where(eq(userTable.username, username)).get();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export async function getExistingAccount(
|
|
17
|
-
db: BATI.If<{
|
|
18
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
19
|
-
_: ReturnType<typeof dbD1>;
|
|
20
|
-
}>,
|
|
21
|
-
providerId: string,
|
|
22
|
-
providerUserId: number,
|
|
23
|
-
) {
|
|
24
|
-
return db
|
|
25
|
-
.select()
|
|
26
|
-
.from(oauthAccountTable)
|
|
27
|
-
.where(and(eq(oauthAccountTable.providerId, providerId), eq(oauthAccountTable.providerUserId, providerUserId)))
|
|
28
|
-
.get();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export async function signupWithGithub(
|
|
32
|
-
db: BATI.If<{
|
|
33
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
34
|
-
_: ReturnType<typeof dbD1>;
|
|
35
|
-
}>,
|
|
36
|
-
userId: string,
|
|
37
|
-
username: string,
|
|
38
|
-
githubUserId: number,
|
|
39
|
-
) {
|
|
40
|
-
return db.transaction(async (tx) => {
|
|
41
|
-
await tx.insert(userTable).values({ id: userId, username: username });
|
|
42
|
-
await tx.insert(oauthAccountTable).values({ providerId: "github", providerUserId: githubUserId, userId });
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export async function signupWithCredentials(
|
|
47
|
-
db: BATI.If<{
|
|
48
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
49
|
-
_: ReturnType<typeof dbD1>;
|
|
50
|
-
}>,
|
|
51
|
-
userId: string,
|
|
52
|
-
username: string,
|
|
53
|
-
passwordHash: string,
|
|
54
|
-
) {
|
|
55
|
-
return db.insert(userTable).values({ id: userId, username, password: passwordHash }).run();
|
|
56
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*# BATI include-if-imported #*/
|
|
2
|
-
import { int, integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
3
|
-
|
|
4
|
-
export const userTable = sqliteTable("users", {
|
|
5
|
-
id: text("id").notNull().primaryKey(),
|
|
6
|
-
username: text("username").notNull().unique(),
|
|
7
|
-
password: text("password"),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const oauthAccountTable = sqliteTable(
|
|
11
|
-
"oauth_accounts",
|
|
12
|
-
{
|
|
13
|
-
providerId: text("provider_id").notNull(),
|
|
14
|
-
providerUserId: int("provider_user_id").notNull(),
|
|
15
|
-
userId: text("user_id")
|
|
16
|
-
.notNull()
|
|
17
|
-
.references(() => userTable.id, {
|
|
18
|
-
onUpdate: "cascade",
|
|
19
|
-
onDelete: "cascade",
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
(table) => {
|
|
23
|
-
return {
|
|
24
|
-
pk: primaryKey({ columns: [table.providerId, table.providerUserId] }),
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export const sessionTable = sqliteTable("sessions", {
|
|
30
|
-
id: text("id").notNull().primaryKey(),
|
|
31
|
-
userId: text("user_id")
|
|
32
|
-
.notNull()
|
|
33
|
-
.references(() => userTable.id, {
|
|
34
|
-
onUpdate: "cascade",
|
|
35
|
-
onDelete: "cascade",
|
|
36
|
-
}),
|
|
37
|
-
expiresAt: integer("expires_at").notNull(),
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
export type UserItem = typeof userTable.$inferSelect;
|
|
41
|
-
export type UserInsert = typeof userTable.$inferInsert;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { dbD1, dbSqlite } from "../db";
|
|
2
|
-
export declare function getExistingUser(db: BATI.If<{
|
|
3
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
4
|
-
_: ReturnType<typeof dbD1>;
|
|
5
|
-
}>, username: string): Promise<{
|
|
6
|
-
id: string;
|
|
7
|
-
username: string;
|
|
8
|
-
password: string | null;
|
|
9
|
-
} | undefined>;
|
|
10
|
-
export declare function getExistingAccount(db: BATI.If<{
|
|
11
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
12
|
-
_: ReturnType<typeof dbD1>;
|
|
13
|
-
}>, providerId: string, providerUserId: number): Promise<{
|
|
14
|
-
providerId: string;
|
|
15
|
-
providerUserId: number;
|
|
16
|
-
userId: string;
|
|
17
|
-
} | undefined>;
|
|
18
|
-
export declare function signupWithGithub(db: BATI.If<{
|
|
19
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
20
|
-
_: ReturnType<typeof dbD1>;
|
|
21
|
-
}>, userId: string, username: string, githubUserId: number): Promise<void>;
|
|
22
|
-
export declare function signupWithCredentials(db: BATI.If<{
|
|
23
|
-
"!BATI.hasD1": ReturnType<typeof dbSqlite>;
|
|
24
|
-
_: ReturnType<typeof dbD1>;
|
|
25
|
-
}>, userId: string, username: string, passwordHash: string): Promise<import("better-sqlite3").RunResult>;
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
export declare const userTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2
|
-
name: "users";
|
|
3
|
-
schema: undefined;
|
|
4
|
-
columns: {
|
|
5
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
6
|
-
name: "id";
|
|
7
|
-
tableName: "users";
|
|
8
|
-
dataType: "string";
|
|
9
|
-
columnType: "SQLiteText";
|
|
10
|
-
data: string;
|
|
11
|
-
driverParam: string;
|
|
12
|
-
notNull: true;
|
|
13
|
-
hasDefault: false;
|
|
14
|
-
isPrimaryKey: true;
|
|
15
|
-
isAutoincrement: false;
|
|
16
|
-
hasRuntimeDefault: false;
|
|
17
|
-
enumValues: [string, ...string[]];
|
|
18
|
-
baseColumn: never;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}, {}, {
|
|
22
|
-
length: number | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
username: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
25
|
-
name: "username";
|
|
26
|
-
tableName: "users";
|
|
27
|
-
dataType: "string";
|
|
28
|
-
columnType: "SQLiteText";
|
|
29
|
-
data: string;
|
|
30
|
-
driverParam: string;
|
|
31
|
-
notNull: true;
|
|
32
|
-
hasDefault: false;
|
|
33
|
-
isPrimaryKey: false;
|
|
34
|
-
isAutoincrement: false;
|
|
35
|
-
hasRuntimeDefault: false;
|
|
36
|
-
enumValues: [string, ...string[]];
|
|
37
|
-
baseColumn: never;
|
|
38
|
-
identity: undefined;
|
|
39
|
-
generated: undefined;
|
|
40
|
-
}, {}, {
|
|
41
|
-
length: number | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
password: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
44
|
-
name: "password";
|
|
45
|
-
tableName: "users";
|
|
46
|
-
dataType: "string";
|
|
47
|
-
columnType: "SQLiteText";
|
|
48
|
-
data: string;
|
|
49
|
-
driverParam: string;
|
|
50
|
-
notNull: false;
|
|
51
|
-
hasDefault: false;
|
|
52
|
-
isPrimaryKey: false;
|
|
53
|
-
isAutoincrement: false;
|
|
54
|
-
hasRuntimeDefault: false;
|
|
55
|
-
enumValues: [string, ...string[]];
|
|
56
|
-
baseColumn: never;
|
|
57
|
-
identity: undefined;
|
|
58
|
-
generated: undefined;
|
|
59
|
-
}, {}, {
|
|
60
|
-
length: number | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
};
|
|
63
|
-
dialect: "sqlite";
|
|
64
|
-
}>;
|
|
65
|
-
export declare const oauthAccountTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
66
|
-
name: "oauth_accounts";
|
|
67
|
-
schema: undefined;
|
|
68
|
-
columns: {
|
|
69
|
-
providerId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
70
|
-
name: "provider_id";
|
|
71
|
-
tableName: "oauth_accounts";
|
|
72
|
-
dataType: "string";
|
|
73
|
-
columnType: "SQLiteText";
|
|
74
|
-
data: string;
|
|
75
|
-
driverParam: string;
|
|
76
|
-
notNull: true;
|
|
77
|
-
hasDefault: false;
|
|
78
|
-
isPrimaryKey: false;
|
|
79
|
-
isAutoincrement: false;
|
|
80
|
-
hasRuntimeDefault: false;
|
|
81
|
-
enumValues: [string, ...string[]];
|
|
82
|
-
baseColumn: never;
|
|
83
|
-
identity: undefined;
|
|
84
|
-
generated: undefined;
|
|
85
|
-
}, {}, {
|
|
86
|
-
length: number | undefined;
|
|
87
|
-
}>;
|
|
88
|
-
providerUserId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
89
|
-
name: "provider_user_id";
|
|
90
|
-
tableName: "oauth_accounts";
|
|
91
|
-
dataType: "number";
|
|
92
|
-
columnType: "SQLiteInteger";
|
|
93
|
-
data: number;
|
|
94
|
-
driverParam: number;
|
|
95
|
-
notNull: true;
|
|
96
|
-
hasDefault: false;
|
|
97
|
-
isPrimaryKey: false;
|
|
98
|
-
isAutoincrement: false;
|
|
99
|
-
hasRuntimeDefault: false;
|
|
100
|
-
enumValues: undefined;
|
|
101
|
-
baseColumn: never;
|
|
102
|
-
identity: undefined;
|
|
103
|
-
generated: undefined;
|
|
104
|
-
}, {}, {}>;
|
|
105
|
-
userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
106
|
-
name: "user_id";
|
|
107
|
-
tableName: "oauth_accounts";
|
|
108
|
-
dataType: "string";
|
|
109
|
-
columnType: "SQLiteText";
|
|
110
|
-
data: string;
|
|
111
|
-
driverParam: string;
|
|
112
|
-
notNull: true;
|
|
113
|
-
hasDefault: false;
|
|
114
|
-
isPrimaryKey: false;
|
|
115
|
-
isAutoincrement: false;
|
|
116
|
-
hasRuntimeDefault: false;
|
|
117
|
-
enumValues: [string, ...string[]];
|
|
118
|
-
baseColumn: never;
|
|
119
|
-
identity: undefined;
|
|
120
|
-
generated: undefined;
|
|
121
|
-
}, {}, {
|
|
122
|
-
length: number | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
};
|
|
125
|
-
dialect: "sqlite";
|
|
126
|
-
}>;
|
|
127
|
-
export declare const sessionTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
128
|
-
name: "sessions";
|
|
129
|
-
schema: undefined;
|
|
130
|
-
columns: {
|
|
131
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
132
|
-
name: "id";
|
|
133
|
-
tableName: "sessions";
|
|
134
|
-
dataType: "string";
|
|
135
|
-
columnType: "SQLiteText";
|
|
136
|
-
data: string;
|
|
137
|
-
driverParam: string;
|
|
138
|
-
notNull: true;
|
|
139
|
-
hasDefault: false;
|
|
140
|
-
isPrimaryKey: true;
|
|
141
|
-
isAutoincrement: false;
|
|
142
|
-
hasRuntimeDefault: false;
|
|
143
|
-
enumValues: [string, ...string[]];
|
|
144
|
-
baseColumn: never;
|
|
145
|
-
identity: undefined;
|
|
146
|
-
generated: undefined;
|
|
147
|
-
}, {}, {
|
|
148
|
-
length: number | undefined;
|
|
149
|
-
}>;
|
|
150
|
-
userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
151
|
-
name: "user_id";
|
|
152
|
-
tableName: "sessions";
|
|
153
|
-
dataType: "string";
|
|
154
|
-
columnType: "SQLiteText";
|
|
155
|
-
data: string;
|
|
156
|
-
driverParam: string;
|
|
157
|
-
notNull: true;
|
|
158
|
-
hasDefault: false;
|
|
159
|
-
isPrimaryKey: false;
|
|
160
|
-
isAutoincrement: false;
|
|
161
|
-
hasRuntimeDefault: false;
|
|
162
|
-
enumValues: [string, ...string[]];
|
|
163
|
-
baseColumn: never;
|
|
164
|
-
identity: undefined;
|
|
165
|
-
generated: undefined;
|
|
166
|
-
}, {}, {
|
|
167
|
-
length: number | undefined;
|
|
168
|
-
}>;
|
|
169
|
-
expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
170
|
-
name: "expires_at";
|
|
171
|
-
tableName: "sessions";
|
|
172
|
-
dataType: "number";
|
|
173
|
-
columnType: "SQLiteInteger";
|
|
174
|
-
data: number;
|
|
175
|
-
driverParam: number;
|
|
176
|
-
notNull: true;
|
|
177
|
-
hasDefault: false;
|
|
178
|
-
isPrimaryKey: false;
|
|
179
|
-
isAutoincrement: false;
|
|
180
|
-
hasRuntimeDefault: false;
|
|
181
|
-
enumValues: undefined;
|
|
182
|
-
baseColumn: never;
|
|
183
|
-
identity: undefined;
|
|
184
|
-
generated: undefined;
|
|
185
|
-
}, {}, {}>;
|
|
186
|
-
};
|
|
187
|
-
dialect: "sqlite";
|
|
188
|
-
}>;
|
|
189
|
-
export type UserItem = typeof userTable.$inferSelect;
|
|
190
|
-
export type UserInsert = typeof userTable.$inferInsert;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
-
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
bta
|
|
7
|
-
} from "../../../../chunk-HYBBK3CW.js";
|
|
8
|
-
import "../../../../chunk-V7W2TXCE.js";
|
|
9
|
-
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
|
-
|
|
11
|
-
// ../../boilerplates/firebase-auth/dist/files/$.env.js
|
|
12
|
-
async function getEnv(props) {
|
|
13
|
-
const envContent = await props.readfile?.();
|
|
14
|
-
return bta(
|
|
15
|
-
envContent,
|
|
16
|
-
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
17
|
-
"firebase/service-account.json",
|
|
18
|
-
`Location of Your Firebase service account (use for firebase-admin).
|
|
19
|
-
Download the file from https://console.firebase.google.com/u/0/project/{firebase-project-id}/settings/serviceaccounts/adminsdk`
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
getEnv as default
|
|
24
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
-
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
ita
|
|
7
|
-
} from "../../../../chunk-HYBBK3CW.js";
|
|
8
|
-
import "../../../../chunk-V7W2TXCE.js";
|
|
9
|
-
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
|
-
|
|
11
|
-
// ../../boilerplates/firebase-auth/dist/files/$README.md.js
|
|
12
|
-
async function getReadme(props) {
|
|
13
|
-
const content = await ita(props);
|
|
14
|
-
const todo = `
|
|
15
|
-
## *Firebase*
|
|
16
|
-
- You first need to **[Create a Firebase project](https://firebase.google.com/docs/web/setup#create-project)**.
|
|
17
|
-
- Then register your app in the firebase console. **[Register your app](https://firebase.google.com/docs/web/setup#register-app)**
|
|
18
|
-
- Copy Your web app's Firebase configuration and paste in \`/pages/+client.ts\` Example :
|
|
19
|
-
\`\`\`ts
|
|
20
|
-
const firebaseConfig = {
|
|
21
|
-
apiKey: "",
|
|
22
|
-
authDomain: "",
|
|
23
|
-
projectId: "",
|
|
24
|
-
storageBucket: "",
|
|
25
|
-
messagingSenderId: "",
|
|
26
|
-
appId: "",
|
|
27
|
-
};
|
|
28
|
-
\`\`\`
|
|
29
|
-
- Download Your Firebase service account from [Your Firebase Project Settings > Service accounts](https://console.firebase.google.com/u/0/project/{firebase-project-id}/settings/serviceaccounts/adminsdk)
|
|
30
|
-
- Rename to service-account.json and move it to folder \`/firebase/\`.
|
|
31
|
-
- Read more about Firebase Auth at official [firebase auth docs](https://firebase.google.com/docs/auth)
|
|
32
|
-
- Read FirebaseUI at [firebaseui-web docs](https://github.com/firebase/firebaseui-web?tab=readme-ov-file#using-firebaseui-for-authentication)
|
|
33
|
-
`;
|
|
34
|
-
content.addMarkdownFeature(todo, "firebase-auth");
|
|
35
|
-
return content;
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
getReadme as default
|
|
39
|
-
};
|