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
d32a9bf4
Commit
d32a9bf4
authored
Oct 06, 2022
by
Chunchi Che
Committed by
GitHub
Oct 06, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from DarkNeos/dev
Dev
parents
66f0bdaf
7afc3b00
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
56 deletions
+22
-56
src/App.css
src/App.css
+0
-38
src/App.tsx
src/App.tsx
+0
-1
src/JoinRoom.tsx
src/JoinRoom.tsx
+9
-3
src/css/WaitRoom.css
src/css/WaitRoom.css
+13
-0
src/index.css
src/index.css
+0
-13
src/index.tsx
src/index.tsx
+0
-1
No files found.
src/App.css
deleted
100644 → 0
View file @
66f0bdaf
.App
{
text-align
:
center
;
}
.App-logo
{
height
:
40vmin
;
pointer-events
:
none
;
}
@media
(
prefers-reduced-motion
:
no-preference
)
{
.App-logo
{
animation
:
App-logo-spin
infinite
20s
linear
;
}
}
.App-header
{
background-color
:
#282c34
;
min-height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
calc
(
10px
+
2vmin
);
color
:
white
;
}
.App-link
{
color
:
#61dafb
;
}
@keyframes
App-logo-spin
{
from
{
transform
:
rotate
(
0deg
);
}
to
{
transform
:
rotate
(
360deg
);
}
}
src/App.tsx
View file @
d32a9bf4
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
"
./App.css
"
;
import
JoinRoom
from
"
./JoinRoom
"
;
import
JoinRoom
from
"
./JoinRoom
"
;
import
WaitRoom
from
"
./WaitRoom
"
;
import
WaitRoom
from
"
./WaitRoom
"
;
import
ThreeJs
from
"
./ThreeJs
"
;
import
ThreeJs
from
"
./ThreeJs
"
;
...
...
src/JoinRoom.tsx
View file @
d32a9bf4
import
React
,
{
useState
,
ChangeEvent
}
from
"
react
"
;
import
React
,
{
useState
,
ChangeEvent
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
"
./css/WaitRoom.css
"
;
export
default
function
JoinRoom
()
{
export
default
function
JoinRoom
()
{
const
[
player
,
setPlayer
]
=
useState
(
""
);
const
[
player
,
setPlayer
]
=
useState
(
""
);
...
@@ -19,6 +20,7 @@ export default function JoinRoom() {
...
@@ -19,6 +20,7 @@ export default function JoinRoom() {
return
(
return
(
<
div
>
<
div
>
<
p
>
<
p
>
<
label
>
player:
</
label
>
<
input
<
input
type=
"text"
type=
"text"
title=
"player"
title=
"player"
...
@@ -27,6 +29,7 @@ export default function JoinRoom() {
...
@@ -27,6 +29,7 @@ export default function JoinRoom() {
></
input
>
></
input
>
</
p
>
</
p
>
<
p
>
<
p
>
<
label
>
addr:
</
label
>
<
input
<
input
type=
"text"
type=
"text"
title=
"ip"
title=
"ip"
...
@@ -35,6 +38,7 @@ export default function JoinRoom() {
...
@@ -35,6 +38,7 @@ export default function JoinRoom() {
></
input
>
></
input
>
</
p
>
</
p
>
<
p
>
<
p
>
<
label
>
passwd:
</
label
>
<
input
<
input
type=
"text"
type=
"text"
title=
"passwd"
title=
"passwd"
...
@@ -42,9 +46,11 @@ export default function JoinRoom() {
...
@@ -42,9 +46,11 @@ export default function JoinRoom() {
onChange=
{
handlePasswdChange
}
onChange=
{
handlePasswdChange
}
></
input
>
></
input
>
</
p
>
</
p
>
<
button
>
<
p
>
<
Link
to=
{
{
pathname
:
`/${player}/${passWd}/${ip}`
}
}
>
join
</
Link
>
<
button
>
</
button
>
<
Link
to=
{
{
pathname
:
`/${player}/${passWd}/${ip}`
}
}
>
join
</
Link
>
</
button
>
</
p
>
</
div
>
</
div
>
);
);
}
}
src/css/WaitRoom.css
0 → 100644
View file @
d32a9bf4
body
{
margin
:
0
;
justify-content
:
center
;
}
div
{
margin
:
auto
;
padding
:
10%
;
}
p
{
text-align
:
center
;
}
src/index.css
deleted
100644 → 0
View file @
66f0bdaf
body
{
margin
:
0
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
"Roboto"
,
"Oxygen"
,
"Ubuntu"
,
"Cantarell"
,
"Fira Sans"
,
"Droid Sans"
,
"Helvetica Neue"
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
code
{
font-family
:
source-code-pro
,
Menlo
,
Monaco
,
Consolas
,
"Courier New"
,
monospace
;
}
src/index.tsx
View file @
d32a9bf4
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
ReactDOM
from
"
react-dom/client
"
;
import
"
./index.css
"
;
import
App
from
"
./App
"
;
import
App
from
"
./App
"
;
import
reportWebVitals
from
"
./reportWebVitals
"
;
import
reportWebVitals
from
"
./reportWebVitals
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
...
...
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