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
a3edc4c6
Commit
a3edc4c6
authored
Jul 15, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix small
parent
385774df
Pipeline
#22697
passed with stages
in 11 minutes and 29 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/stores/index.ts
src/stores/index.ts
+1
-1
src/stores/matStore/store.ts
src/stores/matStore/store.ts
+1
-1
src/stores/moraStore.ts
src/stores/moraStore.ts
+1
-1
src/stores/playerStore.ts
src/stores/playerStore.ts
+1
-1
src/ui/Duel/Message/EndModal/index.tsx
src/ui/Duel/Message/EndModal/index.tsx
+1
-1
No files found.
src/stores/index.ts
View file @
a3edc4c6
...
...
@@ -34,7 +34,7 @@ export const resetUniverse = () => {
joinStore
.
reset
();
matStore
.
reset
();
moraStore
.
reset
();
pla
yer
Store
.
reset
();
pla
ce
Store
.
reset
();
playerStore
.
reset
();
replayStore
.
reset
();
};
src/stores/matStore/store.ts
View file @
a3edc4c6
...
...
@@ -98,7 +98,7 @@ const initialState: Omit<MatState, "reset"> = {
export
const
matStore
:
MatState
=
proxy
<
MatState
>
({
...
initialState
,
reset
()
{
Object
.
entrie
s
(
initialState
).
forEach
((
key
)
=>
{
Object
.
key
s
(
initialState
).
forEach
((
key
)
=>
{
// @ts-ignore
matStore
[
key
]
=
initialState
[
key
];
});
...
...
src/stores/moraStore.ts
View file @
a3edc4c6
...
...
@@ -17,7 +17,7 @@ const initialState = {
export
const
moraStore
=
proxy
<
MoraState
>
({
...
initialState
,
reset
()
{
Object
.
entrie
s
(
initialState
).
forEach
((
key
)
=>
{
Object
.
key
s
(
initialState
).
forEach
((
key
)
=>
{
// @ts-ignore
moraStore
[
key
]
=
initialState
[
key
];
});
...
...
src/stores/playerStore.ts
View file @
a3edc4c6
...
...
@@ -47,7 +47,7 @@ export const playerStore = proxy<PlayerState>({
return
this
.
player0
;
},
reset
()
{
Object
.
entrie
s
(
initialState
).
forEach
((
key
)
=>
{
Object
.
key
s
(
initialState
).
forEach
((
key
)
=>
{
// @ts-ignore
playerStore
[
key
]
=
initialState
[
key
];
});
...
...
src/ui/Duel/Message/EndModal/index.tsx
View file @
a3edc4c6
...
...
@@ -28,8 +28,8 @@ export const EndModal: React.FC = () => {
const
navigate
=
useNavigate
();
const
onReturn
=
()
=>
{
rs
();
resetUniverse
();
rs
();
navigate
(
"
/
"
);
};
...
...
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