Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baichixing
Neos
Commits
994ce1cb
Commit
994ce1cb
authored
Jun 21, 2024
by
BBeretta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat/language-translation (Prettier fixes)
parent
82912fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
18 deletions
+52
-18
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+52
-18
No files found.
src/ui/Layout/index.tsx
View file @
994ce1cb
import
{
DatabaseFilled
,
FullscreenOutlined
,
LoginOutlined
,
LogoutOutlined
,
SettingFilled
,
TeamOutlined
,
UserOutlined
,
}
from
"
@ant-design/icons
"
;
import
{
App
,
Avatar
,
Dropdown
}
from
"
antd
"
;
import
classNames
from
"
classnames
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
...
...
@@ -32,16 +41,6 @@ import {
initWASM
,
}
from
"
./utils
"
;
import
{
LoginOutlined
,
LogoutOutlined
,
FullscreenOutlined
,
DatabaseFilled
,
UserOutlined
,
TeamOutlined
,
SettingFilled
}
from
"
@ant-design/icons
"
;
const
NeosConfig
=
useConfig
();
export
const
loader
:
LoaderFunction
=
async
()
=>
{
...
...
@@ -125,14 +124,20 @@ export const Component = () => {
{
label
:
(
<
a
href=
{
NeosConfig
.
profileUrl
}
target=
"_blank"
>
<><
UserOutlined
style=
{
{
fontSize
:
'
16px
'
}
}
/>
<
strong
>
{
i18n
(
"
PersonalCenter
"
)
}
</
strong
></>
<>
<
UserOutlined
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
<
strong
>
{
i18n
(
"
PersonalCenter
"
)
}
</
strong
>
</>
</
a
>
),
},
{
label
:
(
<
a
href=
"https://ygobbs.com"
target=
"_blank"
>
<><
TeamOutlined
style=
{
{
fontSize
:
'
16px
'
}
}
/>
<
strong
>
{
i18n
(
"
MyCardCommunity
"
)
}
</
strong
></>
<>
<
TeamOutlined
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
<
strong
>
{
i18n
(
"
MyCardCommunity
"
)
}
</
strong
>
</>
</
a
>
),
},
...
...
@@ -142,15 +147,27 @@ export const Component = () => {
href=
"https://mycard.moe/ygopro/arena/#/"
target=
"_blank"
>
<><
DatabaseFilled
style=
{
{
fontSize
:
'
16px
'
}
}
/>
<
strong
>
{
i18n
(
"
DuelDatabase
"
)
}
</
strong
></>
<>
<
DatabaseFilled
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
<
strong
>
{
i18n
(
"
DuelDatabase
"
)
}
</
strong
>
</>
</
a
>
),
},
{
label
:
<><
SettingFilled
/>
<
strong
>
{
i18n
(
"
SystemSettings
"
)
}
</
strong
></>,
label
:
(
<>
<
SettingFilled
/>
{
"
"
}
<
strong
>
{
i18n
(
"
SystemSettings
"
)
}
</
strong
>
</>
),
onClick
:
()
=>
{
modal
.
info
({
content
:
<><
Setting
/></>,
content
:
(
<>
<
Setting
/>
</>
),
centered
:
true
,
maskClosable
:
true
,
icon
:
null
,
...
...
@@ -159,11 +176,28 @@ export const Component = () => {
},
},
{
label
:
<><
strong
style=
{
{
color
:
'
#1890ff
'
}
}
><
FullscreenOutlined
style=
{
{
fontSize
:
'
16px
'
}
}
/>
{
i18n
(
"
Fullscreen
"
)
}
</
strong
></>,
onClick
:
()
=>
document
.
documentElement
.
requestFullscreen
(),
label
:
(
<>
<
strong
style=
{
{
color
:
"
#1890ff
"
}
}
>
<
FullscreenOutlined
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
{
i18n
(
"
Fullscreen
"
)
}
</
strong
>
</>
),
onClick
:
()
=>
document
.
documentElement
.
requestFullscreen
(),
},
{
label
:
logined
?
<><
LogoutOutlined
style=
{
{
fontSize
:
'
16px
'
}
}
/>
<
strong
>
{
i18n
(
"
LogOut
"
)
}
</
strong
></>
:
<><
LoginOutlined
style=
{
{
fontSize
:
'
16px
'
}
}
/>
<
strong
>
{
i18n
(
"
Login
"
)
}
</
strong
></>,
label
:
logined
?
(
<>
<
LogoutOutlined
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
<
strong
>
{
i18n
(
"
LogOut
"
)
}
</
strong
>
</>
)
:
(
<>
<
LoginOutlined
style=
{
{
fontSize
:
"
16px
"
}
}
/>
{
"
"
}
<
strong
>
{
i18n
(
"
Login
"
)
}
</
strong
>
</>
),
onClick
:
logined
?
onLogout
:
onLogin
,
danger
:
logined
?
true
:
false
,
},
...
...
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