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
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
Changes
4
Hide 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
{
PayloadAction
,
CaseReducer
}
from
"
@reduxjs/toolkit
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
DuelState
}
from
"
../mod
"
;
import
{
RootState
}
from
"
../../../store
"
;
import
{
RootState
}
from
"
../../../store
"
;
import
{
CardMeta
}
from
"
../../../api/cards
"
;
// 更新卡牌列表弹窗打开状态
// 更新卡牌列表弹窗打开状态
export
const
setCardListModalIsOpenImpl
:
CaseReducer
<
export
const
setCardListModalIsOpenImpl
:
CaseReducer
<
...
@@ -15,9 +16,7 @@ export const setCardListModalInfoImpl: CaseReducer<
...
@@ -15,9 +16,7 @@ export const setCardListModalInfoImpl: CaseReducer<
DuelState
,
DuelState
,
PayloadAction
<
PayloadAction
<
{
{
name
?:
string
;
meta
?:
CardMeta
;
desc
?:
string
;
imgUrl
?:
string
;
interactivies
:
{
desc
:
string
;
response
:
number
}[];
interactivies
:
{
desc
:
string
;
response
:
number
}[];
}[]
}[]
>
>
...
...
src/reducers/duel/modal/mod.ts
View file @
3c10708d
...
@@ -12,9 +12,7 @@ export interface ModalState {
...
@@ -12,9 +12,7 @@ export interface ModalState {
cardListModal
:
{
cardListModal
:
{
isOpen
:
boolean
;
isOpen
:
boolean
;
list
:
{
list
:
{
name
?:
string
;
meta
?:
CardMeta
;
desc
?:
string
;
imgUrl
?:
string
;
interactivies
:
{
desc
:
string
;
response
:
number
}[];
interactivies
:
{
desc
:
string
;
response
:
number
}[];
}[];
}[];
};
};
...
...
src/ui/Duel/cardListModal.tsx
View file @
3c10708d
...
@@ -11,6 +11,7 @@ import {
...
@@ -11,6 +11,7 @@ import {
}
from
"
../../reducers/duel/mod
"
;
}
from
"
../../reducers/duel/mod
"
;
import
{
Drawer
,
List
,
Button
}
from
"
antd
"
;
import
{
Drawer
,
List
,
Button
}
from
"
antd
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
{
sendSelectIdleCmdResponse
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
CARD_WIDTH
=
100
;
const
CARD_WIDTH
=
100
;
...
@@ -45,13 +46,16 @@ const CardListModal = () => {
...
@@ -45,13 +46,16 @@ const CardListModal = () => {
))
}
))
}
extra=
{
extra=
{
<
img
<
img
alt=
{
item
.
name
}
alt=
{
item
.
meta
?.
text
.
name
}
src=
{
item
.
imgUrl
}
src=
{
`${NeosConfig.cardImgUrl}/${item.meta?.id}.jpg`
}
style=
{
{
width
:
CARD_WIDTH
}
}
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
.
Item
>
)
}
)
}
></
List
>
></
List
>
...
...
src/ui/Duel/singleSlot.tsx
View file @
3c10708d
...
@@ -38,9 +38,7 @@ const SingleSlot = (props: {
...
@@ -38,9 +38,7 @@ const SingleSlot = (props: {
)
)
.
map
((
item
)
=>
{
.
map
((
item
)
=>
{
return
{
return
{
name
:
item
.
occupant
?.
text
.
name
,
meta
:
item
.
occupant
,
desc
:
item
.
occupant
?.
text
.
desc
,
imgUrl
:
`
${
NeosConfig
.
cardImgUrl
}
/
${
item
.
occupant
?.
id
}.
jpg
`,
interactivies
:
item
.
idleInteractivities
.
map
((
interactivy
)
=>
{
interactivies
:
item
.
idleInteractivities
.
map
((
interactivy
)
=>
{
return
{
return
{
desc
:
interactTypeToString
(
interactivy
.
interactType
),
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