Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
img-manager
Project
Overview
Details
Activity
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
Ivan Lan
img-manager
Commits
5495beb5
Commit
5495beb5
authored
Mar 09, 2025
by
Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix layout
parent
fff3f6c5
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
24 additions
and
24 deletions
+24
-24
Home.jsx
app/frontend/pages/Home.jsx
+3
-3
Layout.jsx
app/frontend/pages/Layout.jsx
+2
-2
Dashboard.jsx
app/frontend/pages/admin/Dashboard.jsx
+1
-1
Index.jsx
app/frontend/pages/admin/images/Index.jsx
+1
-1
Index.jsx
app/frontend/pages/admin/tags/Index.jsx
+1
-1
Index.jsx
app/frontend/pages/admin/tags/images/Index.jsx
+1
-1
New.jsx
app/frontend/pages/admin/tags/images/New.jsx
+1
-1
Index.jsx
app/frontend/pages/admin/users/Index.jsx
+2
-2
Edit.jsx
app/frontend/pages/images/Edit.jsx
+1
-1
New.jsx
app/frontend/pages/images/New.jsx
+1
-1
Search.jsx
app/frontend/pages/images/Search.jsx
+1
-1
Show.jsx
app/frontend/pages/profile/Show.jsx
+4
-4
Index.jsx
app/frontend/pages/sessions/Index.jsx
+1
-1
Security.jsx
app/frontend/pages/sessions/Security.jsx
+1
-1
Edit.jsx
app/frontend/pages/tags/Edit.jsx
+1
-1
Index.jsx
app/frontend/pages/tags/Index.jsx
+1
-1
New.jsx
app/frontend/pages/tags/New.jsx
+1
-1
No files found.
app/frontend/pages/Home.jsx
View file @
5495beb5
...
...
@@ -3,7 +3,7 @@ import Layout from './Layout'
export
default
function
Home
({
auth
,
featured_images
=
[]
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Welcome"
/>
<
div
className=
"relative bg-white overflow-hidden"
>
...
...
@@ -32,7 +32,7 @@ export default function Home({ auth, featured_images = [] }) {
Organize with tags, search with ease, and collaborate with others.
</
p
>
<
div
className=
"mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start"
>
{
auth
.
user
?
(
{
auth
?
(
<
div
className=
"rounded-md shadow"
>
<
Link
href=
"/images"
...
...
@@ -222,7 +222,7 @@ export default function Home({ auth, featured_images = [] }) {
<
span
className=
"block text-indigo-600"
>
Create your account today.
</
span
>
</
h2
>
<
div
className=
"mt-8 flex lg:mt-0 lg:flex-shrink-0"
>
{
auth
.
user
?
(
{
auth
?
(
<
div
className=
"inline-flex rounded-md shadow"
>
<
Link
href=
"/images/new"
...
...
app/frontend/pages/Layout.jsx
View file @
5495beb5
...
...
@@ -33,7 +33,7 @@ export default function Layout({ children, user, title }) {
)
}
{
user
?.
roles
.
includes
(
'admin'
)
&&
(
<
Link
href=
"/admin"
href=
"/admin
/images
"
className=
"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium"
>
管理员
...
...
@@ -156,7 +156,7 @@ export default function Layout({ children, user, title }) {
)
}
{
user
?.
roles
?.
includes
(
'admin'
)
&&
(
<
Link
href=
"/admin"
href=
"/admin
/images
"
className=
"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium"
>
管理员
...
...
app/frontend/pages/admin/Dashboard.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import { Link } from '@inertiajs/react'
export
default
function
AdminDashboard
({
stats
,
auth
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Admin Dashboard"
/>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
<
div
className=
"px-4 py-5 sm:px-6"
>
...
...
app/frontend/pages/admin/images/Index.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import ComImageIndex from '../../../components/images/ComImageIndex'
export
default
function
AdminImagesIndex
({
auth
,
images
,
pagination
,
filters
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"图片管理"
/>
<
ComImageIndex
auth=
{
auth
}
...
...
app/frontend/pages/admin/tags/Index.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import ComTagsIndex from '../../../components/tags/ComTagsIndex'
export
default
function
AdminTagsIndex
({
tags
,
auth
,
errors
=
{}
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"标签管理"
/>
<
ComTagsIndex
title=
"标签管理"
...
...
app/frontend/pages/admin/tags/images/Index.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import ComImageIndex from '../../../../components/images/ComImageIndex'
export
default
function
TagsImagesIndex
({
auth
,
tag
,
images
,
pagination
,
filters
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
{
`${tag.name} - 标签图片`
}
/>
<
ComImageIndex
auth=
{
auth
}
...
...
app/frontend/pages/admin/tags/images/New.jsx
View file @
5495beb5
...
...
@@ -31,7 +31,7 @@ export default function New({ auth, tag, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
{
`添加图片到标签: ${tag.name}`
}
/>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
<
div
className=
"px-4 py-5 sm:px-6"
>
...
...
app/frontend/pages/admin/users/Index.jsx
View file @
5495beb5
...
...
@@ -60,7 +60,7 @@ export default function AdminUsersIndex({ users, auth, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Admin - Manage Users"
/>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
<
div
className=
"px-4 py-5 sm:px-6 flex justify-between items-center"
>
...
...
@@ -160,7 +160,7 @@ export default function AdminUsersIndex({ users, auth, errors = {} }) {
>
Edit
</
button
>
{
user
.
id
!==
auth
.
user
.
id
&&
(
{
user
.
id
!==
auth
.
id
&&
(
<
Link
href=
{
`/admin/users/${user.id}`
}
method=
"delete"
...
...
app/frontend/pages/images/Edit.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import ComImageEdit from '../../components/images/ComImageEdit'
export
default
function
Edit
({
image
,
tags
,
auth
,
errors
=
{}
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
{
`Edit ${image.title}`
}
/>
<
ComImageEdit
image=
{
image
}
...
...
app/frontend/pages/images/New.jsx
View file @
5495beb5
...
...
@@ -32,7 +32,7 @@ export default function New({ auth, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"上传新图片"
/>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
<
div
className=
"px-4 py-5 sm:px-6"
>
...
...
app/frontend/pages/images/Search.jsx
View file @
5495beb5
...
...
@@ -37,7 +37,7 @@ export default function Search({ images, filters, tags, auth }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Search Images"
/>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
<
div
className=
"px-4 py-5 sm:px-6"
>
...
...
app/frontend/pages/profile/Show.jsx
View file @
5495beb5
...
...
@@ -6,8 +6,8 @@ import * as Tabs from '@radix-ui/react-tabs'
export
default
function
ProfileShow
({
auth
,
user_stats
,
errors
=
{}
})
{
const
{
data
,
setData
,
patch
,
processing
,
reset
}
=
useForm
({
name
:
auth
.
user
.
name
||
''
,
email_address
:
auth
.
user
.
email_address
||
''
,
name
:
auth
.
name
||
''
,
email_address
:
auth
.
email_address
||
''
,
current_password
:
''
,
password
:
''
,
password_confirmation
:
''
,
...
...
@@ -23,7 +23,7 @@ export default function ProfileShow({ auth, user_stats, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"My Profile"
/>
<
Tabs
.
Root
defaultValue=
"profile"
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
...
...
@@ -182,7 +182,7 @@ export default function ProfileShow({ auth, user_stats, errors = {} }) {
<
div
className=
"py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"
>
<
dt
className=
"text-sm font-medium text-gray-500"
>
Account created
</
dt
>
<
dd
className=
"mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2"
>
{
new
Date
(
auth
.
user
.
created_at
).
toLocaleDateString
()
}
{
new
Date
(
auth
.
created_at
).
toLocaleDateString
()
}
</
dd
>
</
div
>
<
div
className=
"py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"
>
...
...
app/frontend/pages/sessions/Index.jsx
View file @
5495beb5
...
...
@@ -28,7 +28,7 @@ export default function SessionsIndex({ auth, sessions, flash }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Active Sessions"
/>
<
div
className=
"max-w-7xl mx-auto py-6 sm:px-6 lg:px-8"
>
...
...
app/frontend/pages/sessions/Security.jsx
View file @
5495beb5
...
...
@@ -20,7 +20,7 @@ export default function SessionsSecurity({ auth, security_settings, flash }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Session Security"
/>
<
div
className=
"max-w-7xl mx-auto py-6 sm:px-6 lg:px-8"
>
...
...
app/frontend/pages/tags/Edit.jsx
View file @
5495beb5
...
...
@@ -15,7 +15,7 @@ export default function TagsEdit({ tag, auth, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Edit Tag"
/>
<
div
className=
"max-w-2xl mx-auto py-6 sm:px-6 lg:px-8"
>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
...
...
app/frontend/pages/tags/Index.jsx
View file @
5495beb5
...
...
@@ -4,7 +4,7 @@ import ComTagsIndex from '../../components/tags/ComTagsIndex'
export
default
function
TagsIndex
({
tags
,
auth
})
{
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Tags"
/>
<
ComTagsIndex
title=
"Tags"
...
...
app/frontend/pages/tags/New.jsx
View file @
5495beb5
...
...
@@ -15,7 +15,7 @@ export default function TagsNew({ auth, errors = {} }) {
}
return
(
<
Layout
user=
{
auth
.
user
}
>
<
Layout
user=
{
auth
}
>
<
Head
title=
"Create New Tag"
/>
<
div
className=
"max-w-2xl mx-auto py-6 sm:px-6 lg:px-8"
>
<
div
className=
"bg-white shadow overflow-hidden sm:rounded-lg"
>
...
...
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