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
3c10708d
Commit
3c10708d
authored
Mar 12, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cardListModal slice
parent
220041bd
Pipeline
#20606
passed with stages
in 5 minutes and 50 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
src/reducers/duel/modal/cardListModalSlice.ts
src/reducers/duel/modal/cardListModalSlice.ts
+2
-3
src/reducers/duel/modal/mod.ts
src/reducers/duel/modal/mod.ts
+1
-3
src/ui/Duel/cardListModal.tsx
src/ui/Duel/cardListModal.tsx
+7
-3
src/ui/Duel/singleSlot.tsx
src/ui/Duel/singleSlot.tsx
+1
-3
No files found.
src/reducers/duel/modal/cardListModalSlice.ts
View file @
3c10708d
import
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
../../../store
"
;
import
{
CardMeta
}
from
"
../../../api/cards
"
;
// 更新卡牌列表弹窗打开状态
export
const
setCardListModalIsOpenImpl
:
CaseReducer
<
...
...
@@ -15,9 +16,7 @@ export const setCardListModalInfoImpl: CaseReducer<
DuelState
,
PayloadAction
<
{
name
?:
string
;
desc
?:
string
;
imgUrl
?:
string
;
meta
?:
CardMeta
;
interactivies
:
{
desc
:
string
;
response
:
number
}[];
}[]
>
...
...
src/reducers/duel/modal/mod.ts
View file @
3c10708d
...
...
@@ -12,9 +12,7 @@ export interface ModalState {
cardListModal
:
{
isOpen
:
boolean
;
list
:
{
name
?:
string
;
desc
?:
string
;
imgUrl
?:
string
;
meta
?:
CardMeta
;
interactivies
:
{
desc
:
string
;
response
:
number
}[];
}[];
};
...
...
src/ui/Duel/cardListModal.tsx
View file @
3c10708d
...
...
@@ -11,6 +11,7 @@ import {
}
from
"
../../reducers/duel/mod
"
;
import
{
Drawer
,
List
,
Button
}
from
"
antd
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
CARD_WIDTH
=
100
;
...
...
@@ -45,13 +46,16 @@ const CardListModal = () => {
))
}
extra=
{
<
img
alt=
{
item
.
name
}
src=
{
item
.
imgUrl
}
alt=
{
item
.
meta
?.
text
.
name
}
src=
{
`${NeosConfig.cardImgUrl}/${item.meta?.id}.jpg`
}
style=
{
{
width
:
CARD_WIDTH
}
}
/>
}
>
<
List
.
Item
.
Meta
title=
{
item
.
name
}
description=
{
item
.
desc
}
/>
<
List
.
Item
.
Meta
title=
{
item
.
meta
?.
text
.
name
}
description=
{
item
.
meta
?.
text
.
desc
}
/>
</
List
.
Item
>
)
}
></
List
>
...
...
src/ui/Duel/singleSlot.tsx
View file @
3c10708d
...
...
@@ -38,9 +38,7 @@ const SingleSlot = (props: {
)
.
map
((
item
)
=>
{
return
{
name
:
item
.
occupant
?.
text
.
name
,
desc
:
item
.
occupant
?.
text
.
desc
,
imgUrl
:
`
${
NeosConfig
.
cardImgUrl
}
/
${
item
.
occupant
?.
id
}.
jpg
`,
meta
:
item
.
occupant
,
interactivies
:
item
.
idleInteractivities
.
map
((
interactivy
)
=>
{
return
{
desc
:
interactTypeToString
(
interactivy
.
interactType
),
...
...
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