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
e633a532
Commit
e633a532
authored
Jul 27, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix/duel end v2
parent
17edc027
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
5 deletions
+21
-5
src/infra/stream.ts
src/infra/stream.ts
+4
-0
src/ui/BuildDeck/DeckDatabase/index.tsx
src/ui/BuildDeck/DeckDatabase/index.tsx
+1
-1
src/ui/Duel/Message/AnnounceModal/index.tsx
src/ui/Duel/Message/AnnounceModal/index.tsx
+1
-1
src/ui/Duel/Message/EndModal/index.tsx
src/ui/Duel/Message/EndModal/index.tsx
+12
-0
src/ui/Duel/PlayMat/ChatBox/index.tsx
src/ui/Duel/PlayMat/ChatBox/index.tsx
+1
-1
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+1
-1
src/ui/WaitRoom/Chat.tsx
src/ui/WaitRoom/Chat.tsx
+1
-1
No files found.
src/infra/stream.ts
View file @
e633a532
...
...
@@ -84,4 +84,8 @@ export class WebSocketStream {
close
()
{
this
.
ws
.
close
();
}
isClosed
():
boolean
{
return
this
.
ws
.
readyState
===
WebSocket
.
CLOSED
;
}
}
src/ui/BuildDeck/DeckDatabase/index.tsx
View file @
e633a532
...
...
@@ -127,7 +127,7 @@ export const DeckDatabase: React.FC = () => {
<
Space
className=
{
styles
.
title
}
direction=
"horizontal"
>
<
Input
placeholder=
{
i18n
(
"
KeywordsPlaceholder
"
)
}
bordered=
{
false
}
variant=
"borderless"
suffix=
{
<
Button
type=
"text"
...
...
src/ui/Duel/Message/AnnounceModal/index.tsx
View file @
e633a532
...
...
@@ -74,7 +74,7 @@ export const AnnounceModal: React.FC = () => {
<
Input
className=
{
styles
.
input
}
placeholder=
"请输入宣言卡名(或关键字)"
bordered=
{
false
}
variant=
"borderless"
value=
{
searchWord
}
onChange=
{
(
e
)
=>
setSearchWord
(
e
.
target
.
value
)
}
suffix=
{
...
...
src/ui/Duel/Message/EndModal/index.tsx
View file @
e633a532
import
{
App
}
from
"
antd
"
;
import
React
,
{
CSSProperties
}
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
proxy
,
useSnapshot
}
from
"
valtio
"
;
import
{
fetchStrings
,
Region
}
from
"
@/api
"
;
import
{
getUIContainer
}
from
"
@/container/compat
"
;
import
{
replayStore
,
resetDuel
}
from
"
@/stores
"
;
import
{
NeosModal
}
from
"
../NeosModal
"
;
...
...
@@ -21,12 +24,21 @@ const defaultProps: EndProps = {
const
localStore
=
proxy
(
defaultProps
);
export
const
EndModal
:
React
.
FC
=
()
=>
{
const
container
=
getUIContainer
();
const
{
message
}
=
App
.
useApp
();
const
{
isOpen
,
isWin
,
reason
}
=
useSnapshot
(
localStore
);
const
{
isReplay
}
=
useSnapshot
(
replayStore
);
const
navigate
=
useNavigate
();
const
onReturn
=
()
=>
{
resetDuel
();
rs
();
if
(
container
.
conn
.
isClosed
())
{
message
.
info
(
"
服务器关闭了连接,返回匹配页。
"
);
navigate
(
"
/match
"
);
}
};
return
(
...
...
src/ui/Duel/PlayMat/ChatBox/index.tsx
View file @
e633a532
...
...
@@ -39,7 +39,7 @@ export const ChatBox: React.FC = () => {
</
ScrollableArea
>
<
div
className=
{
styles
.
input
}
>
<
Input
.
TextArea
bordered=
{
false
}
variant=
"borderless"
value=
{
input
}
onChange=
{
(
event
)
=>
setInput
(
event
.
target
.
value
)
}
autoSize
...
...
src/ui/Layout/index.tsx
View file @
e633a532
...
...
@@ -28,6 +28,7 @@ import {
import
{
useConfig
}
from
"
@/config
"
;
import
{
accountStore
}
from
"
@/stores
"
;
import
{
setCssProperties
}
from
"
../Duel/PlayMat/css
"
;
import
{
Setting
}
from
"
../Setting
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
...
...
@@ -40,7 +41,6 @@ import {
initSuper
,
initWASM
,
}
from
"
./utils
"
;
import
{
setCssProperties
}
from
"
../Duel/PlayMat/css
"
;
const
NeosConfig
=
useConfig
();
...
...
src/ui/WaitRoom/Chat.tsx
View file @
e633a532
...
...
@@ -23,7 +23,7 @@ export const Chat: React.FC = () => {
</
ScrollableArea
>
<
div
className=
{
styles
.
input
}
>
<
Input
.
TextArea
bordered=
{
false
}
variant=
"borderless"
value=
{
input
}
onChange=
{
(
event
)
=>
setInput
(
event
.
target
.
value
)
}
autoSize
...
...
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