diff --git a/.env b/.env
deleted file mode 100644
index 41b358c..0000000
--- a/.env
+++ /dev/null
@@ -1,19 +0,0 @@
-# When adding additional environment variables, the schema in "/src/env.js"
-# should be updated accordingly.
-
-# Next Auth
-# You can generate a new secret on the command line with:
-# npx auth secret
-# https://next-auth.js.org/configuration/options#secret
-AUTH_SECRET="3s/7AKiCKcO5sfJLpP304y43i6mfE6T+LUkeglCxzns=" # Generated by create-t3-app.
-
-# Next Auth Discord Provider
-AUTH_DISCORD_ID="hackrobot"
-AUTH_DISCORD_SECRET="Xiao4669805"
-
-# Prisma
-# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
-DATABASE_URL="file:./db.sqlite"
-
-
-PORT=3001
diff --git a/.env.example b/.env.example
deleted file mode 100644
index 6dc5614..0000000
--- a/.env.example
+++ /dev/null
@@ -1,24 +0,0 @@
-# Since the ".env" file is gitignored, you can use the ".env.example" file to
-# build a new ".env" file when you clone the repo. Keep this file up-to-date
-# when you add new variables to `.env`.
-
-# This file will be committed to version control, so make sure not to have any
-# secrets in it. If you are cloning this repo, create a copy of this file named
-# ".env" and populate it with your secrets.
-
-# When adding additional environment variables, the schema in "/src/env.js"
-# should be updated accordingly.
-
-# Next Auth
-# You can generate a new secret on the command line with:
-# npx auth secret
-# https://next-auth.js.org/configuration/options#secret
-AUTH_SECRET=""
-
-# Next Auth Discord Provider
-AUTH_DISCORD_ID=""
-AUTH_DISCORD_SECRET=""
-
-# Prisma
-# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
-DATABASE_URL="file:./db.sqlite"
diff --git a/.gitignore b/.gitignore
index 6dc30a6..5ef6a52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,20 +3,19 @@
# dependencies
/node_modules
/.pnp
-.pnp.js
+.pnp.*
+.yarn/*
+!.yarn/patches
+!.yarn/plugins
+!.yarn/releases
+!.yarn/versions
# testing
/coverage
-# database
-/prisma/db.sqlite
-/prisma/db.sqlite-journal
-db.sqlite
-
# next.js
/.next/
/out/
-next-env.d.ts
# production
/build
@@ -31,16 +30,12 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
-# local env files
-# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
-# .env
-.env*.local
+# env files (can opt-in for committing if needed)
+.env*
# vercel
.vercel
# typescript
*.tsbuildinfo
-
-# idea files
-.idea
\ No newline at end of file
+next-env.d.ts
diff --git a/README.md b/README.md
index 05d010d..e215bc4 100644
--- a/README.md
+++ b/README.md
@@ -1,92 +1,36 @@
-# nomadro
+This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
+## Getting Started
+First, run the development server:
-## Getting started
-
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
-
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin http://gitlab.yidooplanet.com/gitlab-instance-0a899031/nomadro.git
-git branch -M main
-git push -uf origin main
+```bash
+npm run dev
+# or
+yarn dev
+# or
+pnpm dev
+# or
+bun dev
```
-## Integrate with your tools
+Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-- [ ] [Set up project integrations](http://gitlab.yidooplanet.com/gitlab-instance-0a899031/nomadro/-/settings/integrations)
+You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
-## Collaborate with your team
+This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
+## Learn More
-## Test and Deploy
+To learn more about Next.js, take a look at the following resources:
-Use the built-in continuous integration in GitLab.
+- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
+- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
+You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
-***
+## Deploy on Vercel
-# Editing this README
+The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
+Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
diff --git a/app/about/page.tsx b/app/about/page.tsx
new file mode 100644
index 0000000..fdb565c
--- /dev/null
+++ b/app/about/page.tsx
@@ -0,0 +1,25 @@
+import Link from "next/link";
+import { SiteHeader } from "~/components/layout/site-header";
+import { SiteFooter } from "~/components/layout/site-footer";
+
+export default function AboutPage() {
+ return (
+
+
+
+ 关于 Nomadro
+
+ Nomadro 是中文数字游民操作系统,致力于帮助更多人从固定工位走向自由生活与自由收入。
+ 我们提供城市探索、学习路径、会员社区三大核心模块,从地点、技能、工具到社群,构建完整的数字游民支持体系。
+
+
+ ← 返回首页
+
+
+
+
+ );
+}
diff --git a/app/contact/page.tsx b/app/contact/page.tsx
new file mode 100644
index 0000000..9ded534
--- /dev/null
+++ b/app/contact/page.tsx
@@ -0,0 +1,32 @@
+import Link from "next/link";
+import { SiteHeader } from "~/components/layout/site-header";
+import { SiteFooter } from "~/components/layout/site-footer";
+
+export default function ContactPage() {
+ return (
+
+
+
+ 联系我们
+
+ 加入数字游民社群,获取最新动态与交流机会。
+
+
+ 加入社群
+
+
+ ← 返回首页
+
+
+
+
+ );
+}
diff --git a/app/favicon.ico b/app/favicon.ico
new file mode 100644
index 0000000..718d6fe
Binary files /dev/null and b/app/favicon.ico differ
diff --git a/app/globals.css b/app/globals.css
new file mode 100644
index 0000000..6ea7b2f
--- /dev/null
+++ b/app/globals.css
@@ -0,0 +1,20 @@
+@import "tailwindcss";
+
+:root {
+ --background: #ffffff;
+ --foreground: #171717;
+}
+
+@theme inline {
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, "PingFang SC",
+ "Microsoft YaHei", sans-serif;
+ --font-mono: var(--font-geist-mono), ui-monospace, monospace;
+}
+
+body {
+ background: var(--background);
+ color: var(--foreground);
+ font-family: var(--font-sans);
+}
diff --git a/app/layout.tsx b/app/layout.tsx
new file mode 100644
index 0000000..7140935
--- /dev/null
+++ b/app/layout.tsx
@@ -0,0 +1,48 @@
+import "./globals.css";
+
+import { type Metadata } from "next";
+import { Geist, Geist_Mono } from "next/font/google";
+
+export const metadata: Metadata = {
+ title: "Nomadro | 中文数字游民操作系统",
+ description:
+ "从城市、技能、工具到社群,一站开始你的数字游民生活。探索城市、学习路径、会员社区,帮你从固定工位走向自由生活与自由收入。",
+ keywords: [
+ "数字游民",
+ "远程工作",
+ "旅居",
+ "自由职业",
+ "城市探索",
+ "学习路径",
+ "会员社区",
+ ],
+ openGraph: {
+ title: "Nomadro | 中文数字游民操作系统",
+ description:
+ "从城市、技能、工具到社群,一站开始你的数字游民生活。",
+ type: "website",
+ },
+ icons: [{ rel: "icon", url: "/nomadro.ico" }],
+};
+
+const geist = Geist({
+ subsets: ["latin"],
+ variable: "--font-geist-sans",
+});
+
+const geistMono = Geist_Mono({
+ subsets: ["latin"],
+ variable: "--font-geist-mono",
+});
+
+export default function RootLayout({
+ children,
+}: Readonly<{ children: React.ReactNode }>) {
+ return (
+
+
+ {children}
+
+
+ );
+}
diff --git a/app/page.tsx b/app/page.tsx
new file mode 100644
index 0000000..1d3fe6a
--- /dev/null
+++ b/app/page.tsx
@@ -0,0 +1,31 @@
+import { SiteHeader } from "~/components/layout/site-header";
+import { SiteFooter } from "~/components/layout/site-footer";
+import { Hero } from "~/components/sections/hero";
+import { ValueGrid } from "~/components/sections/value-grid";
+import { EntryGrid } from "~/components/sections/entry-grid";
+import { Methodology } from "~/components/sections/methodology";
+import { Scenarios } from "~/components/sections/scenarios";
+import { Ecosystem } from "~/components/sections/ecosystem";
+import { ContentPreview } from "~/components/sections/content-preview";
+import { Trust } from "~/components/sections/trust";
+import { FinalCta } from "~/components/sections/final-cta";
+
+export default function HomePage() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/components/layout/site-footer.tsx b/components/layout/site-footer.tsx
new file mode 100644
index 0000000..70aeb69
--- /dev/null
+++ b/components/layout/site-footer.tsx
@@ -0,0 +1,78 @@
+import Link from "next/link";
+import { NAV_LINKS, ENTRY_PATHS } from "~/lib/data";
+
+export function SiteFooter() {
+ return (
+
+
+
+
+
+ Nomadro
+
+
+ 中文数字游民操作系统。从城市、技能、工具到社群,一站开始你的自由生活与自由收入。
+
+
+
+
+ 核心入口
+
+
+ {ENTRY_PATHS.map((path) => (
+
+
+ {path.title}
+
+
+ ))}
+
+
+
+
+ 关于
+
+
+
+
+ 关于我们
+
+
+
+
+ 联系我们
+
+
+
+
+ 加入社群
+
+
+
+
+
+
+
+ © {new Date().getFullYear()} Nomadro. Digital Nomad OS · 数字游民操作系统
+
+
+
+
+ );
+}
diff --git a/components/layout/site-header.tsx b/components/layout/site-header.tsx
new file mode 100644
index 0000000..966a120
--- /dev/null
+++ b/components/layout/site-header.tsx
@@ -0,0 +1,116 @@
+"use client";
+
+import Link from "next/link";
+import { useState, useEffect } from "react";
+import { Menu, X } from "lucide-react";
+import { motion, AnimatePresence } from "framer-motion";
+import { NAV_LINKS } from "~/lib/data";
+import { Button } from "~/components/ui/button";
+
+export function SiteHeader() {
+ const [mobileOpen, setMobileOpen] = useState(false);
+ const [scrolled, setScrolled] = useState(false);
+
+ useEffect(() => {
+ const onScroll = () => setScrolled(window.scrollY > 20);
+ window.addEventListener("scroll", onScroll, { passive: true });
+ return () => window.removeEventListener("scroll", onScroll);
+ }, []);
+
+ return (
+
+ );
+}
diff --git a/components/sections/content-preview.tsx b/components/sections/content-preview.tsx
new file mode 100644
index 0000000..1b45416
--- /dev/null
+++ b/components/sections/content-preview.tsx
@@ -0,0 +1,75 @@
+"use client";
+
+import Link from "next/link";
+import { ArrowRight } from "lucide-react";
+import { motion } from "framer-motion";
+import { CONTENT_PREVIEW_ITEMS } from "~/lib/data";
+
+const TAG_COLORS: Record = {
+ 城市: "bg-blue-50 text-blue-700",
+ 专题: "bg-emerald-50 text-emerald-700",
+ 工具: "bg-amber-50 text-amber-700",
+ 活动: "bg-rose-50 text-rose-700",
+ 学习路径: "bg-violet-50 text-violet-700",
+ 会员: "bg-neutral-100 text-neutral-700",
+};
+
+export function ContentPreview() {
+ return (
+
+
+
+ 本周精选
+
+
+ 城市、专题、工具、活动,持续更新
+
+
+
+ {CONTENT_PREVIEW_ITEMS.map((item, i) => (
+
+
+
+ {item.tag}
+
+
+ {item.title}
+
+ {item.summary}
+
+ 查看详情
+
+
+
+
+ ))}
+
+
+
+ );
+}
diff --git a/components/sections/ecosystem.tsx b/components/sections/ecosystem.tsx
new file mode 100644
index 0000000..525c69d
--- /dev/null
+++ b/components/sections/ecosystem.tsx
@@ -0,0 +1,63 @@
+"use client";
+
+import { MapPin, BookOpen, Crown } from "lucide-react";
+import { motion } from "framer-motion";
+import { ECOSYSTEM_COLUMNS } from "~/lib/data";
+
+const ICON_MAP = [MapPin, BookOpen, Crown] as const;
+
+export function Ecosystem() {
+ return (
+
+
+
+ 已有完整生态
+
+
+ 不是从零开始,而是已经搭建好的体系
+
+
+
+ {ECOSYSTEM_COLUMNS.map((col, i) => {
+ const Icon = ICON_MAP[i];
+ return (
+
+
+
+ {col.title}
+
+
+ {col.items.map((item) => (
+
+ {item}
+
+ ))}
+
+
+ );
+ })}
+
+
+
+ );
+}
diff --git a/components/sections/entry-grid.tsx b/components/sections/entry-grid.tsx
new file mode 100644
index 0000000..1720208
--- /dev/null
+++ b/components/sections/entry-grid.tsx
@@ -0,0 +1,78 @@
+"use client";
+
+import Link from "next/link";
+import { MapPin, BookOpen, Crown, ArrowRight } from "lucide-react";
+import { motion } from "framer-motion";
+import { ENTRY_PATHS } from "~/lib/data";
+
+const ICON_MAP = {
+ MapPin,
+ BookOpen,
+ Crown,
+} as const;
+
+const ACCENT_STYLES = {
+ blue: "border-l-blue-500/80 hover:border-l-blue-500",
+ green: "border-l-emerald-500/80 hover:border-l-emerald-500",
+ amber: "border-l-amber-500/80 hover:border-l-amber-500",
+} as const;
+
+export function EntryGrid() {
+ return (
+
+
+
+ 选择你的入口
+
+
+ 三大路径,对应不同的需求和阶段
+
+
+
+ {ENTRY_PATHS.map((path, i) => {
+ const Icon = ICON_MAP[path.icon];
+ const accent = ACCENT_STYLES[path.accent];
+ return (
+
+
+
+
+ {path.title}
+
+
+ {path.description}
+
+
+ {path.cta}
+
+
+
+
+ );
+ })}
+
+
+
+ );
+}
diff --git a/components/sections/final-cta.tsx b/components/sections/final-cta.tsx
new file mode 100644
index 0000000..e9b1fec
--- /dev/null
+++ b/components/sections/final-cta.tsx
@@ -0,0 +1,63 @@
+"use client";
+
+import Link from "next/link";
+import { MapPin, BookOpen, Crown } from "lucide-react";
+import { motion } from "framer-motion";
+import { FINAL_CTAS } from "~/lib/data";
+import { Button } from "~/components/ui/button";
+
+const ICONS = [MapPin, BookOpen, Crown] as const;
+
+export function FinalCta() {
+ return (
+
+
+
+ 从这里开始你的数字游民路径
+
+
+ 先选择最适合你的入口,然后开始行动。
+
+
+
+ {FINAL_CTAS.map((cta, i) => {
+ const Icon = ICONS[i];
+ return (
+
+
+
+ {cta.label}
+
+
+ );
+ })}
+
+
+
+ );
+}
diff --git a/components/sections/hero.tsx b/components/sections/hero.tsx
new file mode 100644
index 0000000..8b28586
--- /dev/null
+++ b/components/sections/hero.tsx
@@ -0,0 +1,141 @@
+"use client";
+
+import Link from "next/link";
+import { MapPin, BookOpen, Crown } from "lucide-react";
+import { motion } from "framer-motion";
+import { HERO_TAGS } from "~/lib/data";
+import { Button } from "~/components/ui/button";
+
+const HERO_CARDS = [
+ {
+ title: "探索城市",
+ desc: "找到适合远程生活的地方",
+ icon: MapPin,
+ href: "https://meetup.hackrobot.cn",
+ },
+ {
+ title: "学习专题",
+ desc: "从零搭建你的技能与收入结构",
+ icon: BookOpen,
+ href: "https://digital.hackrobot.cn",
+ },
+ {
+ title: "会员社区",
+ desc: "进入更高密度的人脉与资源网络",
+ icon: Crown,
+ href: "https://vip.hackrobot.cn",
+ },
+];
+
+export function Hero() {
+ return (
+
+
+
+
+
+
+ 中文数字游民操作系统
+
+
+ 从城市、技能、工具到社群,一站开始
+
+
+ 帮你从固定工位,走向自由生活与自由收入
+
+
+
+
+ 数字游民不只是旅行,而是「地点自由 + 收入结构 + 系统工具 + 社群连接」的组合。
+
+
+
+
+
+ 开始你的数字游民路径
+
+
+
+
+ 探索适合你的城市
+
+
+
+
+ 查看学习专题
+
+
+
+
+
+ {HERO_TAGS.map((tag, i) => (
+
+ {tag}
+
+ ))}
+
+
+
+
+
+ {HERO_CARDS.map((card, i) => (
+
+
+
+ {card.title}
+
+
{card.desc}
+
+ ))}
+
+
+
+
+
+ );
+}
diff --git a/components/sections/methodology.tsx b/components/sections/methodology.tsx
new file mode 100644
index 0000000..f1fcd33
--- /dev/null
+++ b/components/sections/methodology.tsx
@@ -0,0 +1,70 @@
+"use client";
+
+import { MapPin, Wallet, Wrench, Users } from "lucide-react";
+import { motion } from "framer-motion";
+import { METHODOLOGY_SYSTEMS } from "~/lib/data";
+
+const ICON_MAP = {
+ location: MapPin,
+ income: Wallet,
+ tools: Wrench,
+ community: Users,
+} as const;
+
+export function Methodology() {
+ return (
+
+
+
+ 数字游民,不只是旅行
+
+
+ 真正的数字游民,由四个系统组成
+
+
+
+ {METHODOLOGY_SYSTEMS.map((sys, i) => {
+ const Icon = ICON_MAP[sys.id];
+ return (
+
+
+
+ {sys.title}
+
+
+ {sys.description}
+
+
+ );
+ })}
+
+
+
+ 从选择城市,到建立收入,再到搭建系统和进入社群,这才是数字游民真正可持续的底层结构。
+
+
+
+ );
+}
diff --git a/components/sections/scenarios.tsx b/components/sections/scenarios.tsx
new file mode 100644
index 0000000..553fe7a
--- /dev/null
+++ b/components/sections/scenarios.tsx
@@ -0,0 +1,57 @@
+"use client";
+
+import Link from "next/link";
+import { ArrowRight } from "lucide-react";
+import { motion } from "framer-motion";
+import { SCENARIOS } from "~/lib/data";
+
+export function Scenarios() {
+ return (
+
+
+
+ 找到你的场景
+
+
+ 不同阶段,不同需求,都有对应路径
+
+
+
+ {SCENARIOS.map((s, i) => (
+
+
+ {s.pain}
+ {s.path}
+
+ {s.cta}
+
+
+
+
+ ))}
+
+
+
+ );
+}
diff --git a/components/sections/trust.tsx b/components/sections/trust.tsx
new file mode 100644
index 0000000..129d1da
--- /dev/null
+++ b/components/sections/trust.tsx
@@ -0,0 +1,56 @@
+"use client";
+
+import { Target, Layers, Handshake } from "lucide-react";
+import { motion } from "framer-motion";
+import { TRUST_PRINCIPLES } from "~/lib/data";
+
+const ICON_MAP = [Target, Layers, Handshake] as const;
+
+export function Trust() {
+ return (
+
+
+
+ 我们的原则
+
+
+ 不吹嘘,不夸大,只说清楚我们相信什么
+
+
+
+ {TRUST_PRINCIPLES.map((p, i) => {
+ const Icon = ICON_MAP[i];
+ return (
+
+
+
+ {p.title}
+
+
+ {p.description}
+
+
+ );
+ })}
+
+
+
+ );
+}
diff --git a/components/sections/value-grid.tsx b/components/sections/value-grid.tsx
new file mode 100644
index 0000000..e67ff56
--- /dev/null
+++ b/components/sections/value-grid.tsx
@@ -0,0 +1,61 @@
+"use client";
+
+import { MapPin, TrendingUp, Zap, Users } from "lucide-react";
+import { motion } from "framer-motion";
+import { VALUE_PROPOSITIONS } from "~/lib/data";
+
+const ICON_MAP = {
+ MapPin,
+ TrendingUp,
+ Zap,
+ Users,
+} as const;
+
+export function ValueGrid() {
+ return (
+
+
+
+ 你能在这里获得什么
+
+
+ 不是功能列表,而是实实在在的结果
+
+
+
+ {VALUE_PROPOSITIONS.map((item, i) => {
+ const Icon = ICON_MAP[item.icon];
+ return (
+
+
+
+ {item.title}
+
+
+ {item.description}
+
+
+ );
+ })}
+
+
+
+ );
+}
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
new file mode 100644
index 0000000..5bdf491
--- /dev/null
+++ b/components/ui/button.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+
+export interface ButtonProps
+ extends React.ButtonHTMLAttributes {
+ variant?: "default" | "outline" | "ghost" | "link";
+ size?: "default" | "sm" | "lg";
+ asChild?: boolean;
+}
+
+const Button = React.forwardRef(
+ ({ className = "", variant = "default", size = "default", ...props }, ref) => {
+ const base =
+ "inline-flex items-center justify-center whitespace-nowrap rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50";
+ const variants = {
+ default:
+ "bg-neutral-900 text-white hover:bg-neutral-800 focus-visible:ring-neutral-900",
+ outline:
+ "border border-neutral-200 bg-transparent hover:bg-neutral-50 focus-visible:ring-neutral-400",
+ ghost: "hover:bg-neutral-100 focus-visible:ring-neutral-400",
+ link: "text-neutral-900 underline-offset-4 hover:underline focus-visible:ring-neutral-400",
+ };
+ const sizes = {
+ default: "h-10 px-4 py-2 text-sm",
+ sm: "h-8 px-3 text-xs",
+ lg: "h-12 px-6 text-base",
+ };
+ return (
+
+ );
+ }
+);
+Button.displayName = "Button";
+
+export { Button };
diff --git a/eslint.config.js b/eslint.config.js
deleted file mode 100644
index 9106304..0000000
--- a/eslint.config.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import { FlatCompat } from "@eslint/eslintrc";
-import tseslint from 'typescript-eslint';
-
-const compat = new FlatCompat({
- baseDirectory: import.meta.dirname,
-});
-
-export default tseslint.config(
- {
- ignores: ['.next']
- },
- ...compat.extends("next/core-web-vitals"),
- {
- files: ['**/*.ts', '**/*.tsx'],
- extends: [
- ...tseslint.configs.recommended,
- ...tseslint.configs.recommendedTypeChecked,
- ...tseslint.configs.stylisticTypeChecked
- ],
- rules: {
- "@typescript-eslint/array-type": "off",
- "@typescript-eslint/consistent-type-definitions": "off",
- "@typescript-eslint/consistent-type-imports": [
- "warn",
- { prefer: "type-imports", fixStyle: "inline-type-imports" },
- ],
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
- "@typescript-eslint/require-await": "off",
- "@typescript-eslint/no-misused-promises": [
- "error",
- { checksVoidReturn: { attributes: false } },
- ],
- },
- },
- {
- linterOptions: {
- reportUnusedDisableDirectives: true
- },
- languageOptions: {
- parserOptions: {
- projectService: true
- }
- }
- }
-)
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..05e726d
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,18 @@
+import { defineConfig, globalIgnores } from "eslint/config";
+import nextVitals from "eslint-config-next/core-web-vitals";
+import nextTs from "eslint-config-next/typescript";
+
+const eslintConfig = defineConfig([
+ ...nextVitals,
+ ...nextTs,
+ // Override default ignores of eslint-config-next.
+ globalIgnores([
+ // Default ignores of eslint-config-next:
+ ".next/**",
+ "out/**",
+ "build/**",
+ "next-env.d.ts",
+ ]),
+]);
+
+export default eslintConfig;
diff --git a/generated/prisma/client.d.ts b/generated/prisma/client.d.ts
deleted file mode 100644
index bc20c6c..0000000
--- a/generated/prisma/client.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./index"
\ No newline at end of file
diff --git a/generated/prisma/client.js b/generated/prisma/client.js
deleted file mode 100644
index 6ac8a81..0000000
--- a/generated/prisma/client.js
+++ /dev/null
@@ -1,5 +0,0 @@
-
-/* !!! This is code generated by Prisma. Do not edit directly. !!!
-/* eslint-disable */
-// biome-ignore-all lint: generated file
-module.exports = { ...require('.') }
\ No newline at end of file
diff --git a/generated/prisma/default.d.ts b/generated/prisma/default.d.ts
deleted file mode 100644
index bc20c6c..0000000
--- a/generated/prisma/default.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./index"
\ No newline at end of file
diff --git a/generated/prisma/default.js b/generated/prisma/default.js
deleted file mode 100644
index eb55675..0000000
--- a/generated/prisma/default.js
+++ /dev/null
@@ -1,5 +0,0 @@
-
-/* !!! This is code generated by Prisma. Do not edit directly. !!!
-/* eslint-disable */
-// biome-ignore-all lint: generated file
-module.exports = { ...require('#main-entry-point') }
\ No newline at end of file
diff --git a/generated/prisma/edge.d.ts b/generated/prisma/edge.d.ts
deleted file mode 100644
index 274b8fa..0000000
--- a/generated/prisma/edge.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./default"
\ No newline at end of file
diff --git a/generated/prisma/edge.js b/generated/prisma/edge.js
deleted file mode 100644
index 48e859c..0000000
--- a/generated/prisma/edge.js
+++ /dev/null
@@ -1,228 +0,0 @@
-
-/* !!! This is code generated by Prisma. Do not edit directly. !!!
-/* eslint-disable */
-// biome-ignore-all lint: generated file
-
-Object.defineProperty(exports, "__esModule", { value: true });
-
-const {
- PrismaClientKnownRequestError,
- PrismaClientUnknownRequestError,
- PrismaClientRustPanicError,
- PrismaClientInitializationError,
- PrismaClientValidationError,
- getPrismaClient,
- sqltag,
- empty,
- join,
- raw,
- skip,
- Decimal,
- Debug,
- objectEnumValues,
- makeStrictEnum,
- Extensions,
- warnOnce,
- defineDmmfProperty,
- Public,
- getRuntime,
- createParam,
-} = require('./runtime/edge.js')
-
-
-const Prisma = {}
-
-exports.Prisma = Prisma
-exports.$Enums = {}
-
-/**
- * Prisma Client JS version: 6.19.0
- * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773
- */
-Prisma.prismaVersion = {
- client: "6.19.0",
- engine: "2ba551f319ab1df4bc874a89965d8b3641056773"
-}
-
-Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
-Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
-Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
-Prisma.PrismaClientInitializationError = PrismaClientInitializationError
-Prisma.PrismaClientValidationError = PrismaClientValidationError
-Prisma.Decimal = Decimal
-
-/**
- * Re-export of sql-template-tag
- */
-Prisma.sql = sqltag
-Prisma.empty = empty
-Prisma.join = join
-Prisma.raw = raw
-Prisma.validator = Public.validator
-
-/**
-* Extensions
-*/
-Prisma.getExtensionContext = Extensions.getExtensionContext
-Prisma.defineExtension = Extensions.defineExtension
-
-/**
- * Shorthand utilities for JSON filtering
- */
-Prisma.DbNull = objectEnumValues.instances.DbNull
-Prisma.JsonNull = objectEnumValues.instances.JsonNull
-Prisma.AnyNull = objectEnumValues.instances.AnyNull
-
-Prisma.NullTypes = {
- DbNull: objectEnumValues.classes.DbNull,
- JsonNull: objectEnumValues.classes.JsonNull,
- AnyNull: objectEnumValues.classes.AnyNull
-}
-
-
-
-
-
-/**
- * Enums
- */
-exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
- Serializable: 'Serializable'
-});
-
-exports.Prisma.PostScalarFieldEnum = {
- id: 'id',
- name: 'name',
- createdAt: 'createdAt',
- updatedAt: 'updatedAt',
- createdById: 'createdById'
-};
-
-exports.Prisma.AccountScalarFieldEnum = {
- id: 'id',
- userId: 'userId',
- type: 'type',
- provider: 'provider',
- providerAccountId: 'providerAccountId',
- refresh_token: 'refresh_token',
- access_token: 'access_token',
- expires_at: 'expires_at',
- token_type: 'token_type',
- scope: 'scope',
- id_token: 'id_token',
- session_state: 'session_state',
- refresh_token_expires_in: 'refresh_token_expires_in'
-};
-
-exports.Prisma.SessionScalarFieldEnum = {
- id: 'id',
- sessionToken: 'sessionToken',
- userId: 'userId',
- expires: 'expires'
-};
-
-exports.Prisma.UserScalarFieldEnum = {
- id: 'id',
- name: 'name',
- email: 'email',
- emailVerified: 'emailVerified',
- image: 'image'
-};
-
-exports.Prisma.VerificationTokenScalarFieldEnum = {
- identifier: 'identifier',
- token: 'token',
- expires: 'expires'
-};
-
-exports.Prisma.SortOrder = {
- asc: 'asc',
- desc: 'desc'
-};
-
-exports.Prisma.NullsOrder = {
- first: 'first',
- last: 'last'
-};
-
-
-exports.Prisma.ModelName = {
- Post: 'Post',
- Account: 'Account',
- Session: 'Session',
- User: 'User',
- VerificationToken: 'VerificationToken'
-};
-/**
- * Create the Client
- */
-const config = {
- "generator": {
- "name": "client",
- "provider": {
- "fromEnvVar": null,
- "value": "prisma-client-js"
- },
- "output": {
- "value": "C:\\project\\nomadro\\generated\\prisma",
- "fromEnvVar": null
- },
- "config": {
- "engineType": "library"
- },
- "binaryTargets": [
- {
- "fromEnvVar": null,
- "value": "windows",
- "native": true
- }
- ],
- "previewFeatures": [],
- "sourceFilePath": "C:\\project\\nomadro\\prisma\\schema.prisma",
- "isCustomOutput": true
- },
- "relativeEnvPaths": {
- "rootEnvPath": null,
- "schemaEnvPath": "../../.env"
- },
- "relativePath": "../../prisma",
- "clientVersion": "6.19.0",
- "engineVersion": "2ba551f319ab1df4bc874a89965d8b3641056773",
- "datasourceNames": [
- "db"
- ],
- "activeProvider": "sqlite",
- "postinstall": false,
- "inlineDatasources": {
- "db": {
- "url": {
- "fromEnvVar": "DATABASE_URL",
- "value": null
- }
- }
- },
- "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n // NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below\n // Further reading:\n // https://next-auth.js.org/adapters/prisma#create-the-prisma-schema\n // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string\n url = env(\"DATABASE_URL\")\n}\n\nmodel Post {\n id Int @id @default(autoincrement())\n name String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n createdBy User @relation(fields: [createdById], references: [id])\n createdById String\n\n @@index([name])\n}\n\n// Necessary for Next auth\nmodel Account {\n id String @id @default(cuid())\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String? // @db.Text\n access_token String? // @db.Text\n expires_at Int?\n token_type String?\n scope String?\n id_token String? // @db.Text\n session_state String?\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n refresh_token_expires_in Int?\n\n @@unique([provider, providerAccountId])\n}\n\nmodel Session {\n id String @id @default(cuid())\n sessionToken String @unique\n userId String\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String? @unique\n emailVerified DateTime?\n image String?\n accounts Account[]\n sessions Session[]\n posts Post[]\n}\n\nmodel VerificationToken {\n identifier String\n token String @unique\n expires DateTime\n\n @@unique([identifier, token])\n}\n",
- "inlineSchemaHash": "2379fe619003a4532e1317ec33324f5549ff669a85866549ae71a5b6c8c7fc10",
- "copyEngine": true
-}
-config.dirname = '/'
-
-config.runtimeDataModel = JSON.parse("{\"models\":{\"Post\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"nativeType\":null,\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"createdBy\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"PostToUser\",\"relationFromFields\":[\"createdById\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdById\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Account\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"provider\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"id_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"session_state\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AccountToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token_expires_in\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"provider\",\"providerAccountId\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"provider\",\"providerAccountId\"]}],\"isGenerated\":false},\"Session\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"SessionToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"image\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accounts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Account\",\"nativeType\":null,\"relationName\":\"AccountToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sessions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Session\",\"nativeType\":null,\"relationName\":\"SessionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"posts\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Post\",\"nativeType\":null,\"relationName\":\"PostToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"VerificationToken\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"expires\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"identifier\",\"token\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"identifier\",\"token\"]}],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
-defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
-config.engineWasm = undefined
-config.compilerWasm = undefined
-
-config.injectableEdgeEnv = () => ({
- parsed: {
- DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
- }
-})
-
-if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
- Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
-}
-
-const PrismaClient = getPrismaClient(config)
-exports.PrismaClient = PrismaClient
-Object.assign(exports, Prisma)
-
diff --git a/generated/prisma/index-browser.js b/generated/prisma/index-browser.js
deleted file mode 100644
index 8725c4e..0000000
--- a/generated/prisma/index-browser.js
+++ /dev/null
@@ -1,214 +0,0 @@
-
-/* !!! This is code generated by Prisma. Do not edit directly. !!!
-/* eslint-disable */
-// biome-ignore-all lint: generated file
-
-Object.defineProperty(exports, "__esModule", { value: true });
-
-const {
- Decimal,
- objectEnumValues,
- makeStrictEnum,
- Public,
- getRuntime,
- skip
-} = require('./runtime/index-browser.js')
-
-
-const Prisma = {}
-
-exports.Prisma = Prisma
-exports.$Enums = {}
-
-/**
- * Prisma Client JS version: 6.19.0
- * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773
- */
-Prisma.prismaVersion = {
- client: "6.19.0",
- engine: "2ba551f319ab1df4bc874a89965d8b3641056773"
-}
-
-Prisma.PrismaClientKnownRequestError = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)};
-Prisma.PrismaClientUnknownRequestError = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.PrismaClientRustPanicError = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.PrismaClientInitializationError = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.PrismaClientValidationError = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.Decimal = Decimal
-
-/**
- * Re-export of sql-template-tag
- */
-Prisma.sql = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.empty = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.join = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.raw = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.validator = Public.validator
-
-/**
-* Extensions
-*/
-Prisma.getExtensionContext = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-Prisma.defineExtension = () => {
- const runtimeName = getRuntime().prettyName;
- throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
-In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
-)}
-
-/**
- * Shorthand utilities for JSON filtering
- */
-Prisma.DbNull = objectEnumValues.instances.DbNull
-Prisma.JsonNull = objectEnumValues.instances.JsonNull
-Prisma.AnyNull = objectEnumValues.instances.AnyNull
-
-Prisma.NullTypes = {
- DbNull: objectEnumValues.classes.DbNull,
- JsonNull: objectEnumValues.classes.JsonNull,
- AnyNull: objectEnumValues.classes.AnyNull
-}
-
-
-
-/**
- * Enums
- */
-
-exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
- Serializable: 'Serializable'
-});
-
-exports.Prisma.PostScalarFieldEnum = {
- id: 'id',
- name: 'name',
- createdAt: 'createdAt',
- updatedAt: 'updatedAt',
- createdById: 'createdById'
-};
-
-exports.Prisma.AccountScalarFieldEnum = {
- id: 'id',
- userId: 'userId',
- type: 'type',
- provider: 'provider',
- providerAccountId: 'providerAccountId',
- refresh_token: 'refresh_token',
- access_token: 'access_token',
- expires_at: 'expires_at',
- token_type: 'token_type',
- scope: 'scope',
- id_token: 'id_token',
- session_state: 'session_state',
- refresh_token_expires_in: 'refresh_token_expires_in'
-};
-
-exports.Prisma.SessionScalarFieldEnum = {
- id: 'id',
- sessionToken: 'sessionToken',
- userId: 'userId',
- expires: 'expires'
-};
-
-exports.Prisma.UserScalarFieldEnum = {
- id: 'id',
- name: 'name',
- email: 'email',
- emailVerified: 'emailVerified',
- image: 'image'
-};
-
-exports.Prisma.VerificationTokenScalarFieldEnum = {
- identifier: 'identifier',
- token: 'token',
- expires: 'expires'
-};
-
-exports.Prisma.SortOrder = {
- asc: 'asc',
- desc: 'desc'
-};
-
-exports.Prisma.NullsOrder = {
- first: 'first',
- last: 'last'
-};
-
-
-exports.Prisma.ModelName = {
- Post: 'Post',
- Account: 'Account',
- Session: 'Session',
- User: 'User',
- VerificationToken: 'VerificationToken'
-};
-
-/**
- * This is a stub Prisma Client that will error at runtime if called.
- */
-class PrismaClient {
- constructor() {
- return new Proxy(this, {
- get(target, prop) {
- let message
- const runtime = getRuntime()
- if (runtime.isEdge) {
- message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
-- Use Prisma Accelerate: https://pris.ly/d/accelerate
-- Use Driver Adapters: https://pris.ly/d/driver-adapters
-`;
- } else {
- message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
- }
-
- message += `
-If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
-
- throw new Error(message)
- }
- })
- }
-}
-
-exports.PrismaClient = PrismaClient
-
-Object.assign(exports, Prisma)
diff --git a/generated/prisma/index.d.ts b/generated/prisma/index.d.ts
deleted file mode 100644
index a6dc46f..0000000
--- a/generated/prisma/index.d.ts
+++ /dev/null
@@ -1,8671 +0,0 @@
-
-/**
- * Client
-**/
-
-import * as runtime from './runtime/library.js';
-import $Types = runtime.Types // general types
-import $Public = runtime.Types.Public
-import $Utils = runtime.Types.Utils
-import $Extensions = runtime.Types.Extensions
-import $Result = runtime.Types.Result
-
-export type PrismaPromise = $Public.PrismaPromise
-
-
-/**
- * Model Post
- *
- */
-export type Post = $Result.DefaultSelection
-/**
- * Model Account
- *
- */
-export type Account = $Result.DefaultSelection
-/**
- * Model Session
- *
- */
-export type Session = $Result.DefaultSelection
-/**
- * Model User
- *
- */
-export type User = $Result.DefaultSelection
-/**
- * Model VerificationToken
- *
- */
-export type VerificationToken = $Result.DefaultSelection
-
-/**
- * ## Prisma Client ʲˢ
- *
- * Type-safe database client for TypeScript & Node.js
- * @example
- * ```
- * const prisma = new PrismaClient()
- * // Fetch zero or more Posts
- * const posts = await prisma.post.findMany()
- * ```
- *
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
- */
-export class PrismaClient<
- ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
- const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never,
- ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
-> {
- [K: symbol]: { types: Prisma.TypeMap['other'] }
-
- /**
- * ## Prisma Client ʲˢ
- *
- * Type-safe database client for TypeScript & Node.js
- * @example
- * ```
- * const prisma = new PrismaClient()
- * // Fetch zero or more Posts
- * const posts = await prisma.post.findMany()
- * ```
- *
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
- */
-
- constructor(optionsArg ?: Prisma.Subset);
- $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
-
- /**
- * Connect with the database
- */
- $connect(): $Utils.JsPromise;
-
- /**
- * Disconnect from the database
- */
- $disconnect(): $Utils.JsPromise;
-
-/**
- * Executes a prepared raw query and returns the number of affected rows.
- * @example
- * ```
- * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
- */
- $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise;
-
- /**
- * Executes a raw query and returns the number of affected rows.
- * Susceptible to SQL injections, see documentation.
- * @example
- * ```
- * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
- */
- $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise;
-
- /**
- * Performs a prepared raw query and returns the `SELECT` data.
- * @example
- * ```
- * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
- */
- $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise;
-
- /**
- * Performs a raw query and returns the `SELECT` data.
- * Susceptible to SQL injections, see documentation.
- * @example
- * ```
- * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
- */
- $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise;
-
-
- /**
- * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
- * @example
- * ```
- * const [george, bob, alice] = await prisma.$transaction([
- * prisma.user.create({ data: { name: 'George' } }),
- * prisma.user.create({ data: { name: 'Bob' } }),
- * prisma.user.create({ data: { name: 'Alice' } }),
- * ])
- * ```
- *
- * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
- */
- $transaction[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise>
-
- $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise
-
-
- $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, {
- extArgs: ExtArgs
- }>>
-
- /**
- * `prisma.post`: Exposes CRUD operations for the **Post** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Posts
- * const posts = await prisma.post.findMany()
- * ```
- */
- get post(): Prisma.PostDelegate;
-
- /**
- * `prisma.account`: Exposes CRUD operations for the **Account** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Accounts
- * const accounts = await prisma.account.findMany()
- * ```
- */
- get account(): Prisma.AccountDelegate;
-
- /**
- * `prisma.session`: Exposes CRUD operations for the **Session** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Sessions
- * const sessions = await prisma.session.findMany()
- * ```
- */
- get session(): Prisma.SessionDelegate;
-
- /**
- * `prisma.user`: Exposes CRUD operations for the **User** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more Users
- * const users = await prisma.user.findMany()
- * ```
- */
- get user(): Prisma.UserDelegate;
-
- /**
- * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
- * Example usage:
- * ```ts
- * // Fetch zero or more VerificationTokens
- * const verificationTokens = await prisma.verificationToken.findMany()
- * ```
- */
- get verificationToken(): Prisma.VerificationTokenDelegate;
-}
-
-export namespace Prisma {
- export import DMMF = runtime.DMMF
-
- export type PrismaPromise = $Public.PrismaPromise
-
- /**
- * Validator
- */
- export import validator = runtime.Public.validator
-
- /**
- * Prisma Errors
- */
- export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
- export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
- export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
- export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
- export import PrismaClientValidationError = runtime.PrismaClientValidationError
-
- /**
- * Re-export of sql-template-tag
- */
- export import sql = runtime.sqltag
- export import empty = runtime.empty
- export import join = runtime.join
- export import raw = runtime.raw
- export import Sql = runtime.Sql
-
-
-
- /**
- * Decimal.js
- */
- export import Decimal = runtime.Decimal
-
- export type DecimalJsLike = runtime.DecimalJsLike
-
- /**
- * Metrics
- */
- export type Metrics = runtime.Metrics
- export type Metric = runtime.Metric
- export type MetricHistogram = runtime.MetricHistogram
- export type MetricHistogramBucket = runtime.MetricHistogramBucket
-
- /**
- * Extensions
- */
- export import Extension = $Extensions.UserArgs
- export import getExtensionContext = runtime.Extensions.getExtensionContext
- export import Args = $Public.Args
- export import Payload = $Public.Payload
- export import Result = $Public.Result
- export import Exact = $Public.Exact
-
- /**
- * Prisma Client JS version: 6.19.0
- * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773
- */
- export type PrismaVersion = {
- client: string
- }
-
- export const prismaVersion: PrismaVersion
-
- /**
- * Utility Types
- */
-
-
- export import Bytes = runtime.Bytes
- export import JsonObject = runtime.JsonObject
- export import JsonArray = runtime.JsonArray
- export import JsonValue = runtime.JsonValue
- export import InputJsonObject = runtime.InputJsonObject
- export import InputJsonArray = runtime.InputJsonArray
- export import InputJsonValue = runtime.InputJsonValue
-
- /**
- * Types of the values used to represent different kinds of `null` values when working with JSON fields.
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- namespace NullTypes {
- /**
- * Type of `Prisma.DbNull`.
- *
- * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- class DbNull {
- private DbNull: never
- private constructor()
- }
-
- /**
- * Type of `Prisma.JsonNull`.
- *
- * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- class JsonNull {
- private JsonNull: never
- private constructor()
- }
-
- /**
- * Type of `Prisma.AnyNull`.
- *
- * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- class AnyNull {
- private AnyNull: never
- private constructor()
- }
- }
-
- /**
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const DbNull: NullTypes.DbNull
-
- /**
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const JsonNull: NullTypes.JsonNull
-
- /**
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
- *
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
- */
- export const AnyNull: NullTypes.AnyNull
-
- type SelectAndInclude = {
- select: any
- include: any
- }
-
- type SelectAndOmit = {
- select: any
- omit: any
- }
-
- /**
- * Get the type of the value, that the Promise holds.
- */
- export type PromiseType> = T extends PromiseLike ? U : T;
-
- /**
- * Get the return type of a function which returns a Promise.
- */
- export type PromiseReturnType $Utils.JsPromise> = PromiseType>
-
- /**
- * From T, pick a set of properties whose keys are in the union K
- */
- type Prisma__Pick = {
- [P in K]: T[P];
- };
-
-
- export type Enumerable = T | Array;
-
- export type RequiredKeys = {
- [K in keyof T]-?: {} extends Prisma__Pick ? never : K
- }[keyof T]
-
- export type TruthyKeys = keyof {
- [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
- }
-
- export type TrueKeys = TruthyKeys>>
-
- /**
- * Subset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
- */
- export type Subset = {
- [key in keyof T]: key extends keyof U ? T[key] : never;
- };
-
- /**
- * SelectSubset
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
- * Additionally, it validates, if both select and include are present. If the case, it errors.
- */
- export type SelectSubset = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- (T extends SelectAndInclude
- ? 'Please either choose `select` or `include`.'
- : T extends SelectAndOmit
- ? 'Please either choose `select` or `omit`.'
- : {})
-
- /**
- * Subset + Intersection
- * @desc From `T` pick properties that exist in `U` and intersect `K`
- */
- export type SubsetIntersection = {
- [key in keyof T]: key extends keyof U ? T[key] : never
- } &
- K
-
- type Without = { [P in Exclude]?: never };
-
- /**
- * XOR is needed to have a real mutually exclusive union type
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
- */
- type XOR =
- T extends object ?
- U extends object ?
- (Without & U) | (Without & T)
- : U : T
-
-
- /**
- * Is T a Record?
- */
- type IsObject = T extends Array
- ? False
- : T extends Date
- ? False
- : T extends Uint8Array
- ? False
- : T extends BigInt
- ? False
- : T extends object
- ? True
- : False
-
-
- /**
- * If it's T[], return T
- */
- export type UnEnumerate = T extends Array ? U : T
-
- /**
- * From ts-toolbelt
- */
-
- type __Either = Omit &
- {
- // Merge all but K
- [P in K]: Prisma__Pick // With K possibilities
- }[K]
-
- type EitherStrict = Strict<__Either>
-
- type EitherLoose = ComputeRaw<__Either>
-
- type _Either<
- O extends object,
- K extends Key,
- strict extends Boolean
- > = {
- 1: EitherStrict
- 0: EitherLoose
- }[strict]
-
- type Either<
- O extends object,
- K extends Key,
- strict extends Boolean = 1
- > = O extends unknown ? _Either : never
-
- export type Union = any
-
- type PatchUndefined = {
- [K in keyof O]: O[K] extends undefined ? At : O[K]
- } & {}
-
- /** Helper Types for "Merge" **/
- export type IntersectOf = (
- U extends unknown ? (k: U) => void : never
- ) extends (k: infer I) => void
- ? I
- : never
-
- export type Overwrite = {
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
- } & {};
-
- type _Merge = IntersectOf;
- }>>;
-
- type Key = string | number | symbol;
- type AtBasic = K extends keyof O ? O[K] : never;
- type AtStrict = O[K & keyof O];
- type AtLoose = O extends unknown ? AtStrict : never;
- export type At = {
- 1: AtStrict;
- 0: AtLoose;
- }[strict];
-
- export type ComputeRaw = A extends Function ? A : {
- [K in keyof A]: A[K];
- } & {};
-
- export type OptionalFlat = {
- [K in keyof O]?: O[K];
- } & {};
-
- type _Record = {
- [P in K]: T;
- };
-
- // cause typescript not to expand types and preserve names
- type NoExpand = T extends unknown ? T : never;
-
- // this type assumes the passed object is entirely optional
- type AtLeast = NoExpand<
- O extends unknown
- ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
- | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
- : never>;
-
- type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never;
-
- export type Strict = ComputeRaw<_Strict>;
- /** End Helper Types for "Merge" **/
-
- export type Merge = ComputeRaw<_Merge>>;
-
- /**
- A [[Boolean]]
- */
- export type Boolean = True | False
-
- // /**
- // 1
- // */
- export type True = 1
-
- /**
- 0
- */
- export type False = 0
-
- export type Not = {
- 0: 1
- 1: 0
- }[B]
-
- export type Extends = [A1] extends [never]
- ? 0 // anything `never` is false
- : A1 extends A2
- ? 1
- : 0
-
- export type Has = Not<
- Extends, U1>
- >
-
- export type Or = {
- 0: {
- 0: 0
- 1: 1
- }
- 1: {
- 0: 1
- 1: 1
- }
- }[B1][B2]
-
- export type Keys = U extends unknown ? keyof U : never
-
- type Cast = A extends B ? A : B;
-
- export const type: unique symbol;
-
-
-
- /**
- * Used by group by
- */
-
- export type GetScalarType = O extends object ? {
- [P in keyof T]: P extends keyof O
- ? O[P]
- : never
- } : never
-
- type FieldPaths<
- T,
- U = Omit
- > = IsObject extends True ? U : T
-
- type GetHavingFields = {
- [K in keyof T]: Or<
- Or, Extends<'AND', K>>,
- Extends<'NOT', K>
- > extends True
- ? // infer is only needed to not hit TS limit
- // based on the brilliant idea of Pierre-Antoine Mills
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
- T[K] extends infer TK
- ? GetHavingFields extends object ? Merge> : never>
- : never
- : {} extends FieldPaths
- ? never
- : K
- }[keyof T]
-
- /**
- * Convert tuple to union
- */
- type _TupleToUnion = T extends (infer E)[] ? E : never
- type TupleToUnion = _TupleToUnion
- type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T
-
- /**
- * Like `Pick`, but additionally can also accept an array of keys
- */
- type PickEnumerable | keyof T> = Prisma__Pick>
-
- /**
- * Exclude all keys with underscores
- */
- type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T
-
-
- export type FieldRef = runtime.FieldRef
-
- type FieldRefInputType = Model extends never ? never : FieldRef
-
-
- export const ModelName: {
- Post: 'Post',
- Account: 'Account',
- Session: 'Session',
- User: 'User',
- VerificationToken: 'VerificationToken'
- };
-
- export type ModelName = (typeof ModelName)[keyof typeof ModelName]
-
-
- export type Datasources = {
- db?: Datasource
- }
-
- interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> {
- returns: Prisma.TypeMap
- }
-
- export type TypeMap = {
- globalOmitOptions: {
- omit: GlobalOmitOptions
- }
- meta: {
- modelProps: "post" | "account" | "session" | "user" | "verificationToken"
- txIsolationLevel: Prisma.TransactionIsolationLevel
- }
- model: {
- Post: {
- payload: Prisma.$PostPayload
- fields: Prisma.PostFieldRefs
- operations: {
- findUnique: {
- args: Prisma.PostFindUniqueArgs
- result: $Utils.PayloadToResult | null
- }
- findUniqueOrThrow: {
- args: Prisma.PostFindUniqueOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findFirst: {
- args: Prisma.PostFindFirstArgs
- result: $Utils.PayloadToResult | null
- }
- findFirstOrThrow: {
- args: Prisma.PostFindFirstOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findMany: {
- args: Prisma.PostFindManyArgs
- result: $Utils.PayloadToResult[]
- }
- create: {
- args: Prisma.PostCreateArgs
- result: $Utils.PayloadToResult
- }
- createMany: {
- args: Prisma.PostCreateManyArgs
- result: BatchPayload
- }
- createManyAndReturn: {
- args: Prisma.PostCreateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- delete: {
- args: Prisma.PostDeleteArgs
- result: $Utils.PayloadToResult
- }
- update: {
- args: Prisma.PostUpdateArgs
- result: $Utils.PayloadToResult
- }
- deleteMany: {
- args: Prisma.PostDeleteManyArgs
- result: BatchPayload
- }
- updateMany: {
- args: Prisma.PostUpdateManyArgs
- result: BatchPayload
- }
- updateManyAndReturn: {
- args: Prisma.PostUpdateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- upsert: {
- args: Prisma.PostUpsertArgs
- result: $Utils.PayloadToResult
- }
- aggregate: {
- args: Prisma.PostAggregateArgs
- result: $Utils.Optional
- }
- groupBy: {
- args: Prisma.PostGroupByArgs
- result: $Utils.Optional[]
- }
- count: {
- args: Prisma.PostCountArgs
- result: $Utils.Optional | number
- }
- }
- }
- Account: {
- payload: Prisma.$AccountPayload
- fields: Prisma.AccountFieldRefs
- operations: {
- findUnique: {
- args: Prisma.AccountFindUniqueArgs
- result: $Utils.PayloadToResult | null
- }
- findUniqueOrThrow: {
- args: Prisma.AccountFindUniqueOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findFirst: {
- args: Prisma.AccountFindFirstArgs
- result: $Utils.PayloadToResult | null
- }
- findFirstOrThrow: {
- args: Prisma.AccountFindFirstOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findMany: {
- args: Prisma.AccountFindManyArgs
- result: $Utils.PayloadToResult[]
- }
- create: {
- args: Prisma.AccountCreateArgs
- result: $Utils.PayloadToResult
- }
- createMany: {
- args: Prisma.AccountCreateManyArgs
- result: BatchPayload
- }
- createManyAndReturn: {
- args: Prisma.AccountCreateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- delete: {
- args: Prisma.AccountDeleteArgs
- result: $Utils.PayloadToResult
- }
- update: {
- args: Prisma.AccountUpdateArgs
- result: $Utils.PayloadToResult
- }
- deleteMany: {
- args: Prisma.AccountDeleteManyArgs
- result: BatchPayload
- }
- updateMany: {
- args: Prisma.AccountUpdateManyArgs
- result: BatchPayload
- }
- updateManyAndReturn: {
- args: Prisma.AccountUpdateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- upsert: {
- args: Prisma.AccountUpsertArgs
- result: $Utils.PayloadToResult
- }
- aggregate: {
- args: Prisma.AccountAggregateArgs
- result: $Utils.Optional
- }
- groupBy: {
- args: Prisma.AccountGroupByArgs
- result: $Utils.Optional[]
- }
- count: {
- args: Prisma.AccountCountArgs
- result: $Utils.Optional | number
- }
- }
- }
- Session: {
- payload: Prisma.$SessionPayload
- fields: Prisma.SessionFieldRefs
- operations: {
- findUnique: {
- args: Prisma.SessionFindUniqueArgs
- result: $Utils.PayloadToResult | null
- }
- findUniqueOrThrow: {
- args: Prisma.SessionFindUniqueOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findFirst: {
- args: Prisma.SessionFindFirstArgs
- result: $Utils.PayloadToResult | null
- }
- findFirstOrThrow: {
- args: Prisma.SessionFindFirstOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findMany: {
- args: Prisma.SessionFindManyArgs
- result: $Utils.PayloadToResult[]
- }
- create: {
- args: Prisma.SessionCreateArgs
- result: $Utils.PayloadToResult
- }
- createMany: {
- args: Prisma.SessionCreateManyArgs
- result: BatchPayload
- }
- createManyAndReturn: {
- args: Prisma.SessionCreateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- delete: {
- args: Prisma.SessionDeleteArgs
- result: $Utils.PayloadToResult
- }
- update: {
- args: Prisma.SessionUpdateArgs
- result: $Utils.PayloadToResult
- }
- deleteMany: {
- args: Prisma.SessionDeleteManyArgs
- result: BatchPayload
- }
- updateMany: {
- args: Prisma.SessionUpdateManyArgs
- result: BatchPayload
- }
- updateManyAndReturn: {
- args: Prisma.SessionUpdateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- upsert: {
- args: Prisma.SessionUpsertArgs
- result: $Utils.PayloadToResult
- }
- aggregate: {
- args: Prisma.SessionAggregateArgs
- result: $Utils.Optional
- }
- groupBy: {
- args: Prisma.SessionGroupByArgs
- result: $Utils.Optional[]
- }
- count: {
- args: Prisma.SessionCountArgs
- result: $Utils.Optional | number
- }
- }
- }
- User: {
- payload: Prisma.$UserPayload
- fields: Prisma.UserFieldRefs
- operations: {
- findUnique: {
- args: Prisma.UserFindUniqueArgs
- result: $Utils.PayloadToResult | null
- }
- findUniqueOrThrow: {
- args: Prisma.UserFindUniqueOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findFirst: {
- args: Prisma.UserFindFirstArgs
- result: $Utils.PayloadToResult | null
- }
- findFirstOrThrow: {
- args: Prisma.UserFindFirstOrThrowArgs
- result: $Utils.PayloadToResult
- }
- findMany: {
- args: Prisma.UserFindManyArgs
- result: $Utils.PayloadToResult[]
- }
- create: {
- args: Prisma.UserCreateArgs
- result: $Utils.PayloadToResult
- }
- createMany: {
- args: Prisma.UserCreateManyArgs
- result: BatchPayload
- }
- createManyAndReturn: {
- args: Prisma.UserCreateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- delete: {
- args: Prisma.UserDeleteArgs
- result: $Utils.PayloadToResult
- }
- update: {
- args: Prisma.UserUpdateArgs
- result: $Utils.PayloadToResult
- }
- deleteMany: {
- args: Prisma.UserDeleteManyArgs
- result: BatchPayload
- }
- updateMany: {
- args: Prisma.UserUpdateManyArgs
- result: BatchPayload
- }
- updateManyAndReturn: {
- args: Prisma.UserUpdateManyAndReturnArgs
- result: $Utils.PayloadToResult[]
- }
- upsert: {
- args: Prisma.UserUpsertArgs
- result: $Utils.PayloadToResult