This commit is contained in:
UltraLionFr
2025-08-20 17:42:45 +02:00
parent 673119679e
commit c8a473a572
13 changed files with 10 additions and 62 deletions
-36
View File
@@ -1,36 +0,0 @@
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:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
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.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [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.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy on Vercel
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.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
+2 -2
View File
@@ -10,8 +10,8 @@ import 'prismjs/themes/prism-tomorrow.css';
import AuthSection from '@/components/paste-form/AuthSection'; import AuthSection from '@/components/paste-form/AuthSection';
import CodeViewer from '@/components/paste/CodeViewer'; import CodeViewer from '@/components/paste/CodeViewer';
import LoadingPaste from '@/components/paste/LoadingPaste'; import LoadingPaste from '@/components/paste/LoadingPaste';
import PasswordForm from '@/components/paste/PasswordForm'; import PasswordForm from '@/components/paste/Password';
import PasteSidebar from '@/components/paste/PasteSidebar'; import PasteSidebar from '@/components/paste/Sidebar';
import { Paste } from '@/types/paste'; import { Paste } from '@/types/paste';
async function loadLanguage(lang: string) { async function loadLanguage(lang: string) {
+2 -2
View File
@@ -1,5 +1,5 @@
import AuthProvider from '@/components/SessionProvider'; import AuthProvider from '@/components/providers/SessionProvider';
import ToasterProvider from '@/components/ui/ToasterProvider'; import ToasterProvider from '@/components/providers/ToasterProvider';
import { ReactNode } from 'react'; import { ReactNode } from 'react';
import './globals.css'; import './globals.css';
+1 -1
View File
@@ -2,7 +2,7 @@
import AuthSection from "@/components/paste-form/AuthSection"; import AuthSection from "@/components/paste-form/AuthSection";
import Editor from "@/components/paste-form/Editor"; import Editor from "@/components/paste-form/Editor";
import SidebarPanel from "@/components/paste-form/SidebarPanel"; import SidebarPanel from "@/components/paste-form/Sidebar";
import { useSession } from "next-auth/react"; import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
import { useCallback, useEffect, useState } from "react"; import { useCallback, useEffect, useState } from "react";
BIN
View File
Binary file not shown.
@@ -1,12 +0,0 @@
-- CreateTable
CREATE TABLE "Paste" (
"id" TEXT NOT NULL PRIMARY KEY,
"title" TEXT,
"content" TEXT NOT NULL,
"password" TEXT,
"maxViews" INTEGER,
"views" INTEGER NOT NULL DEFAULT 0,
"size" INTEGER,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"createdBy" TEXT
);
-3
View File
@@ -1,3 +0,0 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "sqlite"
+4 -5
View File
@@ -3,8 +3,8 @@ generator client {
} }
datasource db { datasource db {
provider = "sqlite" provider = "postgresql"
url = "file:./altbin.db" url = env("DATABASE_URL")
} }
model Paste { model Paste {
@@ -17,9 +17,8 @@ model Paste {
size Int? size Int?
createdAt DateTime @default(now()) createdAt DateTime @default(now())
createdBy String? createdBy String?
dummyId String?
dummyId String? dummy Dummy? @relation(fields: [dummyId], references: [id])
dummy Dummy? @relation(fields: [dummyId], references: [id])
} }
model Dummy { model Dummy {