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
baichixing
Neos
Commits
6616280f
Commit
6616280f
authored
Mar 19, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix alert
parent
bc5a3760
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
+2
-4
src/ui/Duel/alert.tsx
src/ui/Duel/alert.tsx
+5
-1
src/ui/Duel/main.tsx
src/ui/Duel/main.tsx
+1
-1
No files found.
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/mod.ts
View file @
6616280f
...
...
@@ -149,10 +149,8 @@ export default class GameMsgAdapter implements StocAdapter {
break
;
}
default
:
{
gameMsg
.
unimplemented
=
new
ygopro
.
StocGameMessage
({
unimplemented
:
new
ygopro
.
StocGameMessage
.
MsgUnimplemented
({
command
:
func
,
}),
gameMsg
.
unimplemented
=
new
ygopro
.
StocGameMessage
.
MsgUnimplemented
({
command
:
func
,
});
break
;
...
...
src/ui/Duel/alert.tsx
View file @
6616280f
import
{
Alert
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
sendSurrender
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
useAppSelector
}
from
"
../../hook
"
;
import
{
selectUnimplemented
}
from
"
../../reducers/duel/mod
"
;
import
{
Alert
}
from
"
antd
"
;
const
NeosAlert
=
()
=>
{
const
unimplemented
=
useAppSelector
(
selectUnimplemented
);
...
...
@@ -17,7 +18,10 @@ const NeosAlert = () => {
showIcon
type=
"error"
closable
banner
afterClose=
{
()
=>
{
// 发送投降信号
sendSurrender
();
navigate
(
"
/
"
);
}
}
/>
...
...
src/ui/Duel/main.tsx
View file @
6616280f
...
...
@@ -31,6 +31,7 @@ import Alert from "./alert";
const
NeosDuel
=
()
=>
{
return
(
<>
<
Alert
/>
<
NeosLayout
sider=
{
<
NeosSider
/>
}
header=
{
<
PlayerStatus
/>
}
...
...
@@ -45,7 +46,6 @@ const NeosDuel = () => {
<
PositionModal
/>
<
OptionModal
/>
<
CheckCardModalV2
/>
<
Alert
/>
</>
);
};
...
...
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