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
3db0c16a
Commit
3db0c16a
authored
Feb 12, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add waitroom template
parent
522ad723
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
src/ui/Neos.tsx
src/ui/Neos.tsx
+2
-0
src/ui/WaitRoomV2.tsx
src/ui/WaitRoomV2.tsx
+80
-0
No files found.
src/ui/Neos.tsx
View file @
3db0c16a
import
React
from
"
react
"
;
import
JoinRoom
from
"
./JoinRoom
"
;
import
WaitRoom
from
"
./WaitRoom
"
;
import
WaitRoomV2
from
"
./WaitRoomV2
"
;
import
{
Routes
,
Route
}
from
"
react-router-dom
"
;
import
Mora
from
"
./Mora
"
;
import
NeosDuel
from
"
./Duel/main
"
;
...
...
@@ -13,6 +14,7 @@ export default function () {
<
Route
path=
"/:player/:passWd/:ip"
element=
{
<
WaitRoom
/>
}
/>
<
Route
path=
"/mora"
element=
{
<
Mora
/>
}
/>
<
Route
path=
"/duel"
element=
{
<
NeosDuel
/>
}
/>
<
Route
path=
"/waitroomv2"
element=
{
<
WaitRoomV2
/>
}
/>
</
Routes
>
);
}
src/ui/WaitRoomV2.tsx
0 → 100644
View file @
3db0c16a
import
{
Modal
,
Checkbox
,
Avatar
,
Space
,
Button
,
Dropdown
}
from
"
antd
"
;
import
{
UserOutlined
,
CheckCircleFilled
,
LoginOutlined
,
LogoutOutlined
,
SendOutlined
,
DownOutlined
,
}
from
"
@ant-design/icons
"
;
import
type
{
MenuProps
}
from
"
antd
"
;
const
WaitRoom
=
()
=>
{
const
items
:
MenuProps
[
"
items
"
]
=
[
{
label
:
"
卡组1
"
,
key
:
"
1
"
,
},
{
label
:
"
卡组2
"
,
key
:
"
2
"
,
},
{
label
:
"
卡组3
"
,
key
:
"
3
"
,
},
];
return
(
<
Modal
title=
"单局房间"
open=
{
true
}
footer=
{
<>
<
Space
direction=
"vertical"
size=
{
10
}
>
<
Space
wrap
size=
{
10
}
>
<
Avatar
size=
{
25
}
icon=
{
<
CheckCircleFilled
/>
}
/>
<
Button
>
决斗准备
</
Button
>
</
Space
>
<
Space
wrap
size=
{
10
}
>
<
Avatar
size=
{
25
}
icon=
{
<
LoginOutlined
/>
}
/>
<
Button
>
到决斗者
</
Button
>
</
Space
>
<
Space
wrap
size=
{
10
}
>
<
Avatar
size=
{
25
}
icon=
{
<
LogoutOutlined
/>
}
/>
<
Button
>
到旁观者
</
Button
>
</
Space
>
<
Space
wrap
size=
{
10
}
>
<
Avatar
size=
{
25
}
icon=
{
<
SendOutlined
/>
}
/>
<
Button
>
开始游戏
</
Button
>
</
Space
>
</
Space
>
</>
}
>
<
Space
direction=
"vertical"
size=
{
16
}
>
<
Space
wrap
size=
{
16
}
>
<
Avatar
size=
{
30
}
icon=
{
<
UserOutlined
/>
}
/>
<
Checkbox
defaultChecked=
{
false
}
checked=
{
true
}
disabled
>
sktt1ryze
</
Checkbox
>
</
Space
>
<
Space
wrap
size=
{
16
}
>
<
Avatar
size=
{
30
}
icon=
{
<
UserOutlined
/>
}
/>
<
Checkbox
defaultChecked=
{
false
}
checked=
{
true
}
disabled
>
sktt1faker
</
Checkbox
>
</
Space
>
<
Dropdown
menu=
{
{
items
,
onClick
:
({
key
})
=>
{}
}
}
>
<
a
onClick=
{
(
e
)
=>
e
.
preventDefault
()
}
>
<
Space
>
卡组选择
<
DownOutlined
/>
</
Space
>
</
a
>
</
Dropdown
>
</
Space
>
</
Modal
>
);
};
export
default
WaitRoom
;
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