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
2ced21ca
Commit
2ced21ca
authored
Apr 14, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: rename components' names
parent
356becaf
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
44 additions
and
44 deletions
+44
-44
src/ui/Duel/Message/checkCardModal.tsx
src/ui/Duel/Message/checkCardModal.tsx
+1
-1
src/ui/Duel/Message/checkCardModalV2.tsx
src/ui/Duel/Message/checkCardModalV2.tsx
+1
-1
src/ui/Duel/Message/checkCardModalV3.tsx
src/ui/Duel/Message/checkCardModalV3.tsx
+1
-1
src/ui/Duel/Message/checkCounterModal.tsx
src/ui/Duel/Message/checkCounterModal.tsx
+1
-1
src/ui/Duel/Message/optionModal.tsx
src/ui/Duel/Message/optionModal.tsx
+1
-1
src/ui/Duel/Message/positionModal.tsx
src/ui/Duel/Message/positionModal.tsx
+1
-1
src/ui/Duel/Message/yesNoModal.tsx
src/ui/Duel/Message/yesNoModal.tsx
+1
-1
src/ui/Duel/PlayMat/BanishedZone.tsx
src/ui/Duel/PlayMat/BanishedZone.tsx
+1
-1
src/ui/Duel/PlayMat/Graveyard.tsx
src/ui/Duel/PlayMat/Graveyard.tsx
+3
-3
src/ui/Duel/PlayMat/deck.tsx
src/ui/Duel/PlayMat/deck.tsx
+1
-1
src/ui/Duel/PlayMat/extraDeck.tsx
src/ui/Duel/PlayMat/extraDeck.tsx
+1
-1
src/ui/Duel/PlayMat/field.tsx
src/ui/Duel/PlayMat/field.tsx
+2
-2
src/ui/Duel/PlayMat/magics.tsx
src/ui/Duel/PlayMat/magics.tsx
+1
-1
src/ui/Duel/PlayMat/monsters.tsx
src/ui/Duel/PlayMat/monsters.tsx
+1
-1
src/ui/Duel/main.tsx
src/ui/Duel/main.tsx
+26
-26
src/ui/Neos.tsx
src/ui/Neos.tsx
+1
-1
No files found.
src/ui/Duel/Message/checkCardModal.tsx
View file @
2ced21ca
...
@@ -21,7 +21,7 @@ import {
...
@@ -21,7 +21,7 @@ import {
}
from
"
@/api/ocgcore/ocgHelper
"
;
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
ThunderboltOutlined
}
from
"
@ant-design/icons
"
;
import
{
ThunderboltOutlined
}
from
"
@ant-design/icons
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
const
CheckCardModal
=
()
=>
{
const
CheckCardModal
=
()
=>
{
...
...
src/ui/Duel/Message/checkCardModalV2.tsx
View file @
2ced21ca
...
@@ -19,7 +19,7 @@ import {
...
@@ -19,7 +19,7 @@ import {
setCheckCardModalV2ResponseAble
,
setCheckCardModalV2ResponseAble
,
}
from
"
@/reducers/duel/mod
"
;
}
from
"
@/reducers/duel/mod
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
const
CheckCardModalV2
=
()
=>
{
const
CheckCardModalV2
=
()
=>
{
...
...
src/ui/Duel/Message/checkCardModalV3.tsx
View file @
2ced21ca
...
@@ -11,7 +11,7 @@ import {
...
@@ -11,7 +11,7 @@ import {
}
from
"
@/reducers/duel/mod
"
;
}
from
"
@/reducers/duel/mod
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
{
selectCheckCardModalV3
}
from
"
@/reducers/duel/modal/checkCardModalV3Slice
"
;
import
{
selectCheckCardModalV3
}
from
"
@/reducers/duel/modal/checkCardModalV3Slice
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
const
CheckCardModalV3
=
()
=>
{
const
CheckCardModalV3
=
()
=>
{
...
...
src/ui/Duel/Message/checkCounterModal.tsx
View file @
2ced21ca
...
@@ -6,7 +6,7 @@ import { useAppSelector } from "@/hook";
...
@@ -6,7 +6,7 @@ import { useAppSelector } from "@/hook";
import
{
clearCheckCounter
}
from
"
@/reducers/duel/mod
"
;
import
{
clearCheckCounter
}
from
"
@/reducers/duel/mod
"
;
import
{
selectCheckCounterModal
}
from
"
@/reducers/duel/modal/checkCounterModalSlice
"
;
import
{
selectCheckCounterModal
}
from
"
@/reducers/duel/modal/checkCounterModalSlice
"
;
import
{
store
}
from
"
@/store
"
;
import
{
store
}
from
"
@/store
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
const
CheckCounterModal
=
()
=>
{
const
CheckCounterModal
=
()
=>
{
...
...
src/ui/Duel/Message/optionModal.tsx
View file @
2ced21ca
...
@@ -9,7 +9,7 @@ import {
...
@@ -9,7 +9,7 @@ import {
}
from
"
@/reducers/duel/modal/mod
"
;
}
from
"
@/reducers/duel/modal/mod
"
;
import
{
sendSelectOptionResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
sendSelectOptionResponse
}
from
"
@/api/ocgcore/ocgHelper
"
;
import
{
resetOptionModal
,
setOptionModalIsOpen
}
from
"
@/reducers/duel/mod
"
;
import
{
resetOptionModal
,
setOptionModalIsOpen
}
from
"
@/reducers/duel/mod
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
const
OptionModal
=
()
=>
{
const
OptionModal
=
()
=>
{
const
dispatch
=
store
.
dispatch
;
const
dispatch
=
store
.
dispatch
;
...
...
src/ui/Duel/Message/positionModal.tsx
View file @
2ced21ca
...
@@ -13,7 +13,7 @@ import {
...
@@ -13,7 +13,7 @@ import {
setPositionModalIsOpen
,
setPositionModalIsOpen
,
}
from
"
@/reducers/duel/mod
"
;
}
from
"
@/reducers/duel/mod
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
const
PositionModal
=
()
=>
{
const
PositionModal
=
()
=>
{
const
dispatch
=
store
.
dispatch
;
const
dispatch
=
store
.
dispatch
;
...
...
src/ui/Duel/Message/yesNoModal.tsx
View file @
2ced21ca
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
selectYesNOModalMsg
,
selectYesNOModalMsg
,
}
from
"
@/reducers/duel/modal/mod
"
;
}
from
"
@/reducers/duel/modal/mod
"
;
import
{
setYesNoModalIsOpen
}
from
"
@/reducers/duel/mod
"
;
import
{
setYesNoModalIsOpen
}
from
"
@/reducers/duel/mod
"
;
import
DragModal
from
"
./
d
ragModal
"
;
import
DragModal
from
"
./
D
ragModal
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
import
{
selectHint
}
from
"
@/reducers/duel/hintSlice
"
;
const
YesNoModal
=
()
=>
{
const
YesNoModal
=
()
=>
{
...
...
src/ui/Duel/PlayMat/
exclusion
.tsx
→
src/ui/Duel/PlayMat/
BanishedZone
.tsx
View file @
2ced21ca
...
@@ -4,7 +4,7 @@ import {
...
@@ -4,7 +4,7 @@ import {
selectMeExclusion
,
selectMeExclusion
,
selectopExclusion
,
selectopExclusion
,
}
from
"
@/reducers/duel/exclusionSlice
"
;
}
from
"
@/reducers/duel/exclusionSlice
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
s
ingleSlot
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
S
ingleSlot
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
...
...
src/ui/Duel/PlayMat/
cemetery
.tsx
→
src/ui/Duel/PlayMat/
Graveyard
.tsx
View file @
2ced21ca
...
@@ -4,11 +4,11 @@ import {
...
@@ -4,11 +4,11 @@ import {
selectOpCemetery
,
selectOpCemetery
,
}
from
"
@/reducers/duel/cemeretySlice
"
;
}
from
"
@/reducers/duel/cemeretySlice
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
s
ingleSlot
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
S
ingleSlot
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
const
Cemeteries
=
()
=>
{
const
Graveyard
=
()
=>
{
const
meCemetery
=
useAppSelector
(
selectMeCemetery
).
inner
;
const
meCemetery
=
useAppSelector
(
selectMeCemetery
).
inner
;
const
opCemetery
=
useAppSelector
(
selectOpCemetery
).
inner
;
const
opCemetery
=
useAppSelector
(
selectOpCemetery
).
inner
;
...
@@ -36,4 +36,4 @@ const cemeteryPosition = (player: number, cemeteryLength: number) => {
...
@@ -36,4 +36,4 @@ const cemeteryPosition = (player: number, cemeteryLength: number) => {
return
new
BABYLON
.
Vector3
(
x
,
y
,
z
);
return
new
BABYLON
.
Vector3
(
x
,
y
,
z
);
};
};
export
default
Cemeteries
;
export
default
Graveyard
;
src/ui/Duel/PlayMat/deck.tsx
View file @
2ced21ca
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectMeDeck
,
selectOpDeck
}
from
"
@/reducers/duel/deckSlice
"
;
import
{
selectMeDeck
,
selectOpDeck
}
from
"
@/reducers/duel/deckSlice
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
s
ingleSlot
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
S
ingleSlot
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
...
...
src/ui/Duel/PlayMat/extraDeck.tsx
View file @
2ced21ca
import
SingleSlot
,
{
Depth
}
from
"
./
s
ingleSlot
"
;
import
SingleSlot
,
{
Depth
}
from
"
./
S
ingleSlot
"
;
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
import
{
...
...
src/ui/Duel/PlayMat/field.tsx
View file @
2ced21ca
...
@@ -2,8 +2,8 @@ import * as BABYLON from "@babylonjs/core";
...
@@ -2,8 +2,8 @@ import * as BABYLON from "@babylonjs/core";
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
selectMeMagics
,
selectOpMagics
}
from
"
@/reducers/duel/magicSlice
"
;
import
{
selectMeMagics
,
selectOpMagics
}
from
"
@/reducers/duel/magicSlice
"
;
import
{
clearMagicPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
{
clearMagicPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
FixedSlot
from
"
./
f
ixedSlot
"
;
import
FixedSlot
from
"
./
F
ixedSlot
"
;
import
{
Depth
}
from
"
./
s
ingleSlot
"
;
import
{
Depth
}
from
"
./
S
ingleSlot
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
import
{
cardSlotRotation
}
from
"
../utils
"
;
...
...
src/ui/Duel/PlayMat/magics.tsx
View file @
2ced21ca
...
@@ -3,7 +3,7 @@ import { selectMeMagics, selectOpMagics } from "@/reducers/duel/magicSlice";
...
@@ -3,7 +3,7 @@ import { selectMeMagics, selectOpMagics } from "@/reducers/duel/magicSlice";
import
{
CardState
}
from
"
@/reducers/duel/generic
"
;
import
{
CardState
}
from
"
@/reducers/duel/generic
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
useAppSelector
}
from
"
@/hook
"
;
import
{
zip
,
cardSlotRotation
}
from
"
../utils
"
;
import
{
zip
,
cardSlotRotation
}
from
"
../utils
"
;
import
FixedSlot
from
"
./
f
ixedSlot
"
;
import
FixedSlot
from
"
./
F
ixedSlot
"
;
import
{
clearMagicPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
{
clearMagicPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
...
...
src/ui/Duel/PlayMat/monsters.tsx
View file @
2ced21ca
...
@@ -7,7 +7,7 @@ import {
...
@@ -7,7 +7,7 @@ import {
selectOpMonsters
,
selectOpMonsters
,
}
from
"
@/reducers/duel/monstersSlice
"
;
}
from
"
@/reducers/duel/monstersSlice
"
;
import
{
zip
,
cardSlotRotation
,
cardSlotDefenceRotation
}
from
"
../utils
"
;
import
{
zip
,
cardSlotRotation
,
cardSlotDefenceRotation
}
from
"
../utils
"
;
import
FixedSlot
from
"
./
f
ixedSlot
"
;
import
FixedSlot
from
"
./
F
ixedSlot
"
;
import
{
clearMonsterPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
{
clearMonsterPlaceInteractivities
}
from
"
@/reducers/duel/mod
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../../neos.config.json
"
;
...
...
src/ui/Duel/main.tsx
View file @
2ced21ca
...
@@ -2,33 +2,33 @@ import React from "react";
...
@@ -2,33 +2,33 @@ import React from "react";
import
{
Engine
,
Scene
}
from
"
react-babylonjs
"
;
import
{
Engine
,
Scene
}
from
"
react-babylonjs
"
;
import
{
ReactReduxContext
,
Provider
}
from
"
react-redux
"
;
import
{
ReactReduxContext
,
Provider
}
from
"
react-redux
"
;
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
*
as
BABYLON
from
"
@babylonjs/core
"
;
import
Hands
from
"
./PlayMat/
h
ands
"
;
import
Hands
from
"
./PlayMat/
H
ands
"
;
import
Monsters
from
"
./PlayMat/
m
onsters
"
;
import
Monsters
from
"
./PlayMat/
M
onsters
"
;
import
CardModal
from
"
./Message/
c
ardModal
"
;
import
CardModal
from
"
./Message/
C
ardModal
"
;
import
HintNotification
from
"
./Message/
h
intNotification
"
;
import
HintNotification
from
"
./Message/
H
intNotification
"
;
import
Magics
from
"
./PlayMat/
m
agics
"
;
import
Magics
from
"
./PlayMat/
M
agics
"
;
import
Field
from
"
./PlayMat/
f
ield
"
;
import
Field
from
"
./PlayMat/
F
ield
"
;
import
CommonDeck
from
"
./PlayMat/
d
eck
"
;
import
CommonDeck
from
"
./PlayMat/
D
eck
"
;
import
Exclusion
from
"
./PlayMat/
exclusion
"
;
import
Exclusion
from
"
./PlayMat/
BanishedZone
"
;
import
Cemeteries
from
"
./PlayMat/cemetery
"
;
import
Graveyard
from
"
./PlayMat/Graveyard
"
;
import
CardListModal
from
"
./Message/
c
ardListModal
"
;
import
CardListModal
from
"
./Message/
C
ardListModal
"
;
import
CheckCardModal
from
"
./Message/
c
heckCardModal
"
;
import
CheckCardModal
from
"
./Message/
C
heckCardModal
"
;
import
YesNoModal
from
"
./Message/
y
esNoModal
"
;
import
YesNoModal
from
"
./Message/
Y
esNoModal
"
;
import
PositionModal
from
"
./Message/
p
ositionModal
"
;
import
PositionModal
from
"
./Message/
P
ositionModal
"
;
import
OptionModal
from
"
./Message/
o
ptionModal
"
;
import
OptionModal
from
"
./Message/
O
ptionModal
"
;
import
Phase
from
"
./Message/
p
hase
"
;
import
Phase
from
"
./Message/
P
hase
"
;
import
CheckCardModalV2
from
"
./Message/
c
heckCardModalV2
"
;
import
CheckCardModalV2
from
"
./Message/
C
heckCardModalV2
"
;
import
ExtraDeck
from
"
./PlayMat/
e
xtraDeck
"
;
import
ExtraDeck
from
"
./PlayMat/
E
xtraDeck
"
;
import
NeosLayout
from
"
./
l
ayout
"
;
import
NeosLayout
from
"
./
L
ayout
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
DuelTimeLine
from
"
./Message/
t
imeLine
"
;
import
DuelTimeLine
from
"
./Message/
T
imeLine
"
;
import
{
Row
}
from
"
antd
"
;
import
{
Row
}
from
"
antd
"
;
import
SendBox
from
"
./Message/
s
endBox
"
;
import
SendBox
from
"
./Message/
S
endBox
"
;
import
PlayerStatus
from
"
./Message/
s
tatus
"
;
import
PlayerStatus
from
"
./Message/
S
tatus
"
;
import
Alert
from
"
./Message/
a
lert
"
;
import
Alert
from
"
./Message/
A
lert
"
;
import
CheckCardModalV3
from
"
./Message/
c
heckCardModalV3
"
;
import
CheckCardModalV3
from
"
./Message/
C
heckCardModalV3
"
;
import
CheckCounterModal
from
"
./Message/
c
heckCounterModal
"
;
import
CheckCounterModal
from
"
./Message/
C
heckCounterModal
"
;
import
SortCardModal
from
"
./Message/
s
ortCardModal
"
;
import
SortCardModal
from
"
./Message/
S
ortCardModal
"
;
// Ref: https://github.com/brianzinn/react-babylonjs/issues/126
// Ref: https://github.com/brianzinn/react-babylonjs/issues/126
const
NeosDuel
=
()
=>
{
const
NeosDuel
=
()
=>
{
...
@@ -81,7 +81,7 @@ const NeosCanvas = () => (
...
@@ -81,7 +81,7 @@ const NeosCanvas = () => (
<
Field
/>
<
Field
/>
<
CommonDeck
/>
<
CommonDeck
/>
<
ExtraDeck
/>
<
ExtraDeck
/>
<
Cemeteries
/>
<
Graveyard
/>
<
Exclusion
/>
<
Exclusion
/>
<
Field
/>
<
Field
/>
<
Ground
/>
<
Ground
/>
...
...
src/ui/Neos.tsx
View file @
2ced21ca
...
@@ -5,7 +5,7 @@ import LazyLoad, { Loading } from "./LazyLoad";
...
@@ -5,7 +5,7 @@ import LazyLoad, { Loading } from "./LazyLoad";
const
Login
=
React
.
lazy
(()
=>
import
(
"
./Login
"
));
const
Login
=
React
.
lazy
(()
=>
import
(
"
./Login
"
));
const
WaitRoom
=
React
.
lazy
(()
=>
import
(
"
./WaitRoom
"
));
const
WaitRoom
=
React
.
lazy
(()
=>
import
(
"
./WaitRoom
"
));
const
Mora
=
React
.
lazy
(()
=>
import
(
"
./Mora
"
));
const
Mora
=
React
.
lazy
(()
=>
import
(
"
./Mora
"
));
const
NeosDuel
=
React
.
lazy
(()
=>
import
(
"
./Duel/
m
ain
"
));
const
NeosDuel
=
React
.
lazy
(()
=>
import
(
"
./Duel/
M
ain
"
));
export
default
function
()
{
export
default
function
()
{
return
(
return
(
...
...
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