Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llm-train
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
llm-train
Commits
cea5fbbd
Commit
cea5fbbd
authored
Apr 07, 2024
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZXsdf
parent
ee2bdc2c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
12 deletions
+83
-12
schema.prisma
prisma/schema.prisma
+2
-1
1674969615895-1712481443623-683805211.jpeg
...ads/2024-04-07/1674969615895-1712481443623-683805211.jpeg
+0
-0
page.jsx
src/app/login/page.jsx
+77
-0
providers.jsx
src/app/providers.jsx
+3
-1
index.js
src/pages/api/demo/index.js
+1
-10
No files found.
prisma/schema.prisma
View file @
cea5fbbd
...
...
@@ -19,4 +19,5 @@ model Folder {
poster
String
createdAt
DateTime
@
default
(
now
())
updatedAt
DateTime
@
updatedAt
}
\ No newline at end of file
}
public/uploads/2024-04-07/1674969615895-1712481443623-683805211.jpeg
0 → 100644
View file @
cea5fbbd
177 KB
src/app/login/page.jsx
0 → 100644
View file @
cea5fbbd
export
default
function
Login
()
{
return
(
<>
<
div
className=
"flex min-h-full flex-1 flex-col justify-center px-6 py-12 lg:px-8"
>
<
div
className=
"sm:mx-auto sm:w-full sm:max-w-sm"
>
<
img
className=
"mx-auto h-10 w-auto"
src=
"https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=600"
alt=
"Your Company"
/>
<
h2
className=
"mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900"
>
Sign in to your account
</
h2
>
</
div
>
<
div
className=
"mt-10 sm:mx-auto sm:w-full sm:max-w-sm"
>
<
form
className=
"space-y-6"
action=
"#"
method=
"POST"
>
<
div
>
<
label
htmlFor=
"email"
className=
"block text-sm font-medium leading-6 text-gray-900"
>
Email address
</
label
>
<
div
className=
"mt-2"
>
<
input
id=
"email"
name=
"email"
type=
"email"
autoComplete=
"email"
required
className=
"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</
div
>
</
div
>
<
div
>
<
div
className=
"flex items-center justify-between"
>
<
label
htmlFor=
"password"
className=
"block text-sm font-medium leading-6 text-gray-900"
>
Password
</
label
>
<
div
className=
"text-sm"
>
<
a
href=
"#"
className=
"font-semibold text-indigo-600 hover:text-indigo-500"
>
Forgot password?
</
a
>
</
div
>
</
div
>
<
div
className=
"mt-2"
>
<
input
id=
"password"
name=
"password"
type=
"password"
autoComplete=
"current-password"
required
className=
"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/>
</
div
>
</
div
>
<
div
>
<
button
type=
"submit"
className=
"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
>
Sign in
</
button
>
</
div
>
</
form
>
<
p
className=
"mt-10 text-center text-sm text-gray-500"
>
Not a member?
{
' '
}
<
a
href=
"#"
className=
"font-semibold leading-6 text-indigo-600 hover:text-indigo-500"
>
Start a 14 day free trial
</
a
>
</
p
>
</
div
>
</
div
>
</>
)
}
src/app/providers.jsx
View file @
cea5fbbd
...
...
@@ -28,7 +28,9 @@ export function Providers({ children }) {
}
}
>
<
Tab
key=
"/"
title=
{
"首页"
}
></
Tab
>
<
Tab
key=
"/detail"
title=
{
"DOC"
}
></
Tab
>
<
Tab
key=
"/login"
title=
{
"login"
}
></
Tab
>
<
Tab
key=
"/detail"
title=
{
"detail"
}
></
Tab
>
</
Tabs
>
</
div
>
{
/* <Link href="/">首页</Link>
...
...
src/pages/api/demo/index.js
View file @
cea5fbbd
...
...
@@ -9,18 +9,9 @@ export default async function handler(req, res) {
switch
(
method
)
{
case
"GET"
:
const
folders
=
await
prisma
.
folder
.
findMany
({
// where: { published: true },
// include: {
// author: {
// select: { name: true },
// },
// },
});
res
.
status
(
200
).
json
({
code
:
0
,
data
:
folders
,
data
:
[]
,
success
:
true
,
});
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment