Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Clash Verge
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Clash Verge
Commits
4bf0c0d1
There was an error fetching the commit references. Please try again later.
Commit
4bf0c0d1
authored
3 years ago
by
GyDi
Browse files
Options
Downloads
Patches
Plain Diff
feat: rename profile page
parent
023e7715
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pages/_layout.tsx
+9
-9
9 additions, 9 deletions
src/pages/_layout.tsx
src/pages/profile.tsx
+3
-3
3 additions, 3 deletions
src/pages/profile.tsx
with
12 additions
and
12 deletions
src/pages/_layout.tsx
+
9
−
9
View file @
4bf0c0d1
...
...
@@ -6,12 +6,12 @@ import { createTheme, List, Paper, ThemeProvider } from "@mui/material";
import
{
atomPaletteMode
}
from
"
../states/setting
"
;
import
{
getVergeConfig
}
from
"
../services/command
"
;
import
LogoSvg
from
"
../assets/image/logo.svg
"
;
import
LogPage
from
"
.
./pages
/log
"
;
import
HomePage
from
"
.
./pages
/home
"
;
import
Ru
le
s
Page
from
"
.
.
/p
ages/ru
le
s
"
;
import
ProxyPage
from
"
.
./pages
/proxy
"
;
import
SettingPage
from
"
.
./pages
/setting
"
;
import
ConnectionsPage
from
"
.
./pages
/connections
"
;
import
LogPage
from
"
./log
"
;
import
HomePage
from
"
./home
"
;
import
Profi
lePage
from
"
./p
rofi
le
"
;
import
ProxyPage
from
"
./proxy
"
;
import
SettingPage
from
"
./setting
"
;
import
ConnectionsPage
from
"
./connections
"
;
import
ListItemLink
from
"
../components/list-item-link
"
;
import
Traffic
from
"
../components/traffic
"
;
...
...
@@ -21,8 +21,8 @@ const routers = [
link
:
"
/proxy
"
,
},
{
label
:
"
规则
"
,
link
:
"
/
ru
le
s
"
,
label
:
"
配置
"
,
link
:
"
/
profi
le
"
,
},
{
label
:
"
连接
"
,
...
...
@@ -110,7 +110,7 @@ const Layout = () => {
<
Routes
>
<
Route
path
=
"/"
element
=
{
<
HomePage
/>
}
/>
<
Route
path
=
"/proxy"
element
=
{
<
ProxyPage
/>
}
/>
<
Route
path
=
"/
ru
le
s
"
element
=
{
<
Ru
le
s
Page
/>
}
/>
<
Route
path
=
"/
profi
le"
element
=
{
<
Profi
lePage
/>
}
/>
<
Route
path
=
"/log"
element
=
{
<
LogPage
/>
}
/>
<
Route
path
=
"/connections"
element
=
{
<
ConnectionsPage
/>
}
/>
<
Route
path
=
"/setting"
element
=
{
<
SettingPage
/>
}
/>
...
...
This diff is collapsed.
Click to expand it.
src/pages/
ru
le
s
.tsx
→
src/pages/
profi
le.tsx
+
3
−
3
View file @
4bf0c0d1
...
...
@@ -12,7 +12,7 @@ import ProfileItemComp from "../components/profile-item";
import
useNotice
from
"
../utils/use-notice
"
;
import
noop
from
"
../utils/noop
"
;
const
Ru
le
s
Page
=
()
=>
{
const
Profi
lePage
=
()
=>
{
const
[
url
,
setUrl
]
=
useState
(
""
);
const
[
disabled
,
setDisabled
]
=
useState
(
false
);
const
[
notice
,
noticeElement
]
=
useNotice
();
...
...
@@ -67,7 +67,7 @@ const RulesPage = () => {
return
(
<
Box
sx
=
{
{
width
:
0.9
,
maxWidth
:
"
850px
"
,
mx
:
"
auto
"
,
mb
:
2
}
}
>
<
Typography
variant
=
"h4"
component
=
"h1"
sx
=
{
{
py
:
2
,
mb
:
1
}
}
>
Ru
les
Profi
les
</
Typography
>
<
Box
sx
=
{
{
display
:
"
flex
"
,
mb
:
3
}
}
>
...
...
@@ -108,4 +108,4 @@ const RulesPage = () => {
);
};
export
default
Ru
le
s
Page
;
export
default
Profi
lePage
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment