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
love_飞影
Neos
Commits
673b2fa0
Commit
673b2fa0
authored
Aug 23, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust text in match
parent
7a9e9f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
27 deletions
+11
-27
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+11
-27
No files found.
src/ui/Match/index.tsx
View file @
673b2fa0
...
...
@@ -24,9 +24,7 @@ const NeosConfig = useConfig();
export
const
Component
:
React
.
FC
=
()
=>
{
const
{
message
}
=
App
.
useApp
();
const
serverList
=
NeosConfig
.
servers
;
const
[
server
,
setServer
]
=
useState
(
`
${
serverList
[
0
].
ip
}
:
${
serverList
[
0
].
port
}
`
,
);
const
server
=
`
${
serverList
[
0
].
ip
}
:
${
serverList
[
0
].
port
}
`
;
const
{
decks
}
=
deckStore
;
const
[
deckName
,
setDeckName
]
=
useState
(
decks
.
at
(
0
)?.
deckName
??
""
);
const
user
=
accountStore
.
user
;
...
...
@@ -90,20 +88,6 @@ export const Component: React.FC = () => {
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
wrap
}
>
<
Space
size=
{
16
}
>
<
Select
title=
"服务器"
showSearch
value=
{
server
}
style=
{
{
width
:
200
}
}
onChange=
{
// @ts-ignore
(
value
)
=>
setServer
(
value
)
}
options=
{
serverList
.
map
((
item
)
=>
({
value
:
`${item.ip}:${item.port}`
,
label
:
item
.
name
,
}))
}
/>
<
Select
title=
"卡组"
showSearch
...
...
@@ -134,13 +118,13 @@ export const Component: React.FC = () => {
</
Space
>
<
div
className=
{
styles
[
"
mode-select
"
]
}
>
<
Mode
title=
"竞技匹配"
desc=
"与天梯其他数万名玩家激战,力争最强。每月最后一天22点结算,公布排名并获取奖励。"
title=
"
MC
竞技匹配"
desc=
"与
MyCard
天梯其他数万名玩家激战,力争最强。每月最后一天22点结算,公布排名并获取奖励。"
icon=
{
<
IconFont
type=
"icon-battle"
size=
{
32
}
/>
}
onClick=
{
onCompetitiveMatch
}
/>
<
Mode
title=
"娱乐匹配"
title=
"
MC
娱乐匹配"
desc=
"暂且搁置胜负,享受决斗的乐趣。过去一周竞技匹配使用数最多的20个卡组将被禁用。"
icon=
{
matchLoading
?
(
...
...
@@ -151,9 +135,15 @@ export const Component: React.FC = () => {
}
onClick=
{
onEntertainMatch
}
/>
<
Mode
title=
"MC观战列表"
desc=
"观看萌卡MyCard上正在进行的决斗。"
icon=
{
<
PlayCircleFilled
/>
}
onClick=
{
onWatchList
}
/>
<
Mode
title=
"单人模式"
desc=
"开启一场与AI的决斗,验证自己的卡组,或者只是打发时间。"
desc=
"
在Koishi 7210服务器上
开启一场与AI的决斗,验证自己的卡组,或者只是打发时间。"
icon=
{
singleLoading
?
(
<
LoadingOutlined
/>
...
...
@@ -175,12 +165,6 @@ export const Component: React.FC = () => {
icon=
{
<
IconFont
type=
"icon-record"
size=
{
24
}
/>
}
onClick=
{
replayOpen
}
/>
<
Mode
title=
"观战列表"
desc=
"观看萌卡MyCard上正在进行的决斗。"
icon=
{
<
PlayCircleFilled
/>
}
onClick=
{
onWatchList
}
/>
</
div
>
</
div
>
</
div
>
...
...
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