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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
3411517a
Commit
3411517a
authored
Nov 05, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add duel route
parent
f5654819
Pipeline
#17764
passed with stages
in 3 minutes and 35 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
src/ui/Duel/main.tsx
src/ui/Duel/main.tsx
+10
-0
src/ui/Neos.tsx
src/ui/Neos.tsx
+3
-1
No files found.
src/ui/Duel/main.tsx
0 → 100644
View file @
3411517a
/*
* 决斗页面
*
* */
import
React
from
"
react
"
;
export
default
function
Duel
()
{
return
<
div
>
Duel
</
div
>;
}
src/ui/Neos.tsx
View file @
3411517a
...
@@ -5,14 +5,16 @@ import ThreeJs from "./ThreeJs";
...
@@ -5,14 +5,16 @@ import ThreeJs from "./ThreeJs";
import
BabylonJs
from
"
./BabylonJs
"
;
import
BabylonJs
from
"
./BabylonJs
"
;
import
{
Routes
,
Route
}
from
"
react-router-dom
"
;
import
{
Routes
,
Route
}
from
"
react-router-dom
"
;
import
Mora
from
"
./Mora
"
;
import
Mora
from
"
./Mora
"
;
import
Duel
from
"
./Duel/main
"
;
export
default
function
()
{
export
default
function
()
{
// FIXME: 这里Mora路由应该由每个房间指定一个路径
// FIXME: 这里Mora
/Duel
路由应该由每个房间指定一个路径
return
(
return
(
<
Routes
>
<
Routes
>
<
Route
path=
"/"
element=
{
<
JoinRoom
/>
}
/>
<
Route
path=
"/"
element=
{
<
JoinRoom
/>
}
/>
<
Route
path=
"/:player/:passWd/:ip"
element=
{
<
WaitRoom
/>
}
/>
<
Route
path=
"/:player/:passWd/:ip"
element=
{
<
WaitRoom
/>
}
/>
<
Route
path=
"/mora"
element=
{
<
Mora
/>
}
/>
<
Route
path=
"/mora"
element=
{
<
Mora
/>
}
/>
<
Route
path=
"/duel"
element=
{
<
Duel
/>
}
/>
<
Route
path=
"/three"
element=
{
<
ThreeJs
/>
}
/>
<
Route
path=
"/three"
element=
{
<
ThreeJs
/>
}
/>
<
Route
path=
"/babylon"
element=
{
<
BabylonJs
/>
}
/>
<
Route
path=
"/babylon"
element=
{
<
BabylonJs
/>
}
/>
</
Routes
>
</
Routes
>
...
...
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