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
0d6af302
Commit
0d6af302
authored
Aug 18, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
89281266
Pipeline
#23190
passed with stages
in 11 minutes and 15 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
9 deletions
+40
-9
src/stores/sideStore.ts
src/stores/sideStore.ts
+0
-2
src/ui/Duel/Main.tsx
src/ui/Duel/Main.tsx
+2
-1
src/ui/Side/MoraTpModal/index.tsx
src/ui/Side/MoraTpModal/index.tsx
+0
-5
src/ui/Side/TpModal/index.module.scss
src/ui/Side/TpModal/index.module.scss
+5
-0
src/ui/Side/TpModal/index.tsx
src/ui/Side/TpModal/index.tsx
+32
-0
src/ui/Side/index.tsx
src/ui/Side/index.tsx
+1
-1
No files found.
src/stores/sideStore.ts
View file @
0d6af302
...
@@ -7,8 +7,6 @@ export enum SideStage {
...
@@ -7,8 +7,6 @@ export enum SideStage {
NONE
=
0
,
// 没有进入SIDE阶段
NONE
=
0
,
// 没有进入SIDE阶段
SIDE_CHANGING
=
1
,
// 正在更换副卡组
SIDE_CHANGING
=
1
,
// 正在更换副卡组
SIDE_CHANGED
=
2
,
// 副卡组更换完毕
SIDE_CHANGED
=
2
,
// 副卡组更换完毕
HAND_SELECTING
=
3
,
// 选择猜拳中
HAND_SELECTED
=
4
,
// 猜拳选择完毕
TP_SELECTING
=
5
,
// 正在选边
TP_SELECTING
=
5
,
// 正在选边
TP_SELECTED
=
6
,
// 选边完成
TP_SELECTED
=
6
,
// 选边完成
DUEL_START
=
7
,
// 决斗开始
DUEL_START
=
7
,
// 决斗开始
...
...
src/ui/Duel/Main.tsx
View file @
0d6af302
...
@@ -2,7 +2,7 @@ import React, { useEffect } from "react";
...
@@ -2,7 +2,7 @@ import React, { useEffect } from "react";
import
{
resetUniverse
}
from
"
@/stores
"
;
import
{
resetUniverse
}
from
"
@/stores
"
;
import
{
ChangeSideModal
}
from
"
../Side
"
;
import
{
ChangeSideModal
,
TpModal
}
from
"
../Side
"
;
import
{
import
{
Alert
,
Alert
,
AnnounceModal
,
AnnounceModal
,
...
@@ -48,6 +48,7 @@ export const Component: React.FC = () => {
...
@@ -48,6 +48,7 @@ export const Component: React.FC = () => {
<
SimpleSelectCardsModal
/>
<
SimpleSelectCardsModal
/>
<
EndModal
/>
<
EndModal
/>
<
ChangeSideModal
/>
<
ChangeSideModal
/>
<
TpModal
/>
</>
</>
);
);
};
};
...
...
src/ui/Side/MoraTpModal/index.tsx
deleted
100644 → 0
View file @
89281266
import
React
from
"
react
"
;
export
const
MoraTpModal
:
React
.
FC
=
()
=>
{
return
<></>;
};
src/ui/Side/TpModal/index.module.scss
0 → 100644
View file @
0d6af302
.container
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
}
src/ui/Side/TpModal/index.tsx
0 → 100644
View file @
0d6af302
import
{
Modal
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
sendTpResult
}
from
"
@/api
"
;
import
{
SideStage
,
sideStore
}
from
"
@/stores
"
;
import
{
IconFont
}
from
"
@/ui/Shared
"
;
import
{
Tp
,
TpPopover
}
from
"
@/ui/WaitRoom/Popover
"
;
import
styles
from
"
./index.module.scss
"
;
export
const
TpModal
:
React
.
FC
=
()
=>
{
const
{
stage
}
=
useSnapshot
(
sideStore
);
return
(
<
Modal
centered
open=
{
stage
===
SideStage
.
TP_SELECTING
}
>
<
div
className=
{
styles
.
container
}
>
<
TpPopover
onSelect=
{
(
tp
)
=>
{
sendTpResult
(
tp
===
Tp
.
First
);
sideStore
.
stage
=
SideStage
.
TP_SELECTED
;
}
}
>
<>
<
IconFont
type=
"icon-one"
size=
{
18
}
/>
<
span
>
请选择先后手
</
span
>
</>
</
TpPopover
>
</
div
>
</
Modal
>
);
};
src/ui/Side/index.tsx
View file @
0d6af302
export
*
from
"
./ChangeSideModal
"
;
export
*
from
"
./ChangeSideModal
"
;
export
*
from
"
./
Mora
TpModal
"
;
export
*
from
"
./TpModal
"
;
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