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
a7df0c1c
Commit
a7df0c1c
authored
Jul 29, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: hidden bugs founded by fmt
parent
0df22e5a
Pipeline
#22848
passed with stages
in 13 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+5
-5
src/ui/Home/index.tsx
src/ui/Home/index.tsx
+2
-2
No files found.
src/ui/Duel/PlayMat/Card/index.tsx
View file @
a7df0c1c
...
...
@@ -186,10 +186,10 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
key
:
nonEffectItem
.
length
,
label
:
interactTypeToString
(
InteractType
.
ACTIVATE
),
onClick
:
async
()
=>
{
let
c
ard
:
CardType
;
let
tmpC
ard
:
CardType
;
if
(
!
isField
)
{
// 单卡: 直接发动这个卡的效果
c
ard
=
cards
[
0
];
tmpC
ard
=
cards
[
0
];
}
else
{
// 场地: 选择卡片
// TODO: hint
...
...
@@ -208,11 +208,11 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
card
,
})),
});
c
ard
=
option
[
0
].
card
!
as
any
;
// 一定会有的,有输入则定有输出
tmpC
ard
=
option
[
0
].
card
!
as
any
;
// 一定会有的,有输入则定有输出
}
// 选择发动哪个效果
handleEffectActivation
(
c
ard
.
idleInteractivities
tmpC
ard
.
idleInteractivities
.
filter
(
({
interactType
})
=>
interactType
===
InteractType
.
ACTIVATE
)
...
...
@@ -221,7 +221,7 @@ export const Card: React.FC<{ idx: number }> = React.memo(({ idx }) => {
response
:
x
.
response
,
effectCode
:
x
.
activateIndex
,
})),
c
ard
.
meta
tmpC
ard
.
meta
);
},
};
...
...
src/ui/Home/index.tsx
View file @
a7df0c1c
...
...
@@ -12,12 +12,12 @@ const NeosConfig = useConfig();
const
DefaultUserName
=
"
Guest
"
;
const
Home
:
React
.
FC
=
()
=>
{
const
user
=
useSnapshot
(
accountStore
).
user
;
const
{
user
}
=
useSnapshot
(
accountStore
)
;
const
navigate
=
useNavigate
();
const
onLogout
=
()
=>
{};
// TODO
const
onMatchAI
=
()
=>
{
const
username
=
user
?.
username
??
DefaultUserName
;
const
username
=
accountStore
.
user
?.
username
??
DefaultUserName
;
navigate
(
`/room/
${
username
}
/
${
encodeURIComponent
(
"
AI
"
)}
/
${
NeosConfig
.
servers
[
0
].
ip
...
...
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