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
f100852d
Commit
f100852d
authored
Aug 17, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Side.tsx
parent
6c492c78
Pipeline
#23175
passed with stages
in 11 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
1 deletion
+41
-1
src/ui/BuildDeck/index.tsx
src/ui/BuildDeck/index.tsx
+1
-1
src/ui/NeosRouter.tsx
src/ui/NeosRouter.tsx
+4
-0
src/ui/Side/index.tsx
src/ui/Side/index.tsx
+36
-0
No files found.
src/ui/BuildDeck/index.tsx
View file @
f100852d
...
...
@@ -147,7 +147,7 @@ export const Component: React.FC = () => {
Component
.
displayName
=
"
Build
"
;
/** 正在编辑的卡组 */
const
DeckEditor
:
React
.
FC
<
{
export
const
DeckEditor
:
React
.
FC
<
{
deck
:
IDeck
;
onClear
:
()
=>
void
;
onReset
:
()
=>
void
;
...
...
src/ui/NeosRouter.tsx
View file @
f100852d
...
...
@@ -28,6 +28,10 @@ const router = createBrowserRouter([
path
:
"
/duel
"
,
lazy
:
()
=>
import
(
"
./Duel/Main
"
),
},
{
path
:
"
/side
"
,
lazy
:
()
=>
import
(
"
./Side
"
),
},
],
},
]);
...
...
src/ui/Side/index.tsx
0 → 100644
View file @
f100852d
import
{
App
,
Button
,
Modal
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
{
DndProvider
}
from
"
react-dnd
"
;
import
{
HTML5Backend
}
from
"
react-dnd-html5-backend
"
;
import
{
deckStore
}
from
"
@/stores
"
;
import
{
DeckEditor
}
from
"
../BuildDeck
"
;
import
{
editDeckStore
}
from
"
../BuildDeck/store
"
;
import
{
iDeckToEditingDeck
}
from
"
../BuildDeck/utils
"
;
import
{
Background
}
from
"
../Shared
"
;
export
const
Component
:
React
.
FC
=
()
=>
{
const
deck
=
deckStore
.
decks
[
0
];
const
{
message
}
=
App
.
useApp
();
return
(
<
Modal
title=
"请选择更换副卡组"
open=
{
true
}
width=
{
700
}
footer=
{
<
Button
onClick=
{
()
=>
{}
}
>
副卡组更换完毕
</
Button
>
}
>
<
DndProvider
backend=
{
HTML5Backend
}
>
<
Background
/>
<
DeckEditor
deck=
{
deck
}
onClear=
{
()
=>
message
.
info
(
"
对局中清空卡组不怕找不回来吗?!
"
)
}
onSave=
{
()
=>
message
.
info
(
"
点击右下角按钮确认副卡组更换完毕
"
)
}
onReset=
{
async
()
=>
{
editDeckStore
.
set
(
await
iDeckToEditingDeck
(
deck
));
}
}
/>
</
DndProvider
>
</
Modal
>
);
};
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