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
a242332e
Commit
a242332e
authored
Jun 03, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused component
parent
cc7fafa5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
131 deletions
+0
-131
src/ui/Duel/Message/SendBox.tsx
src/ui/Duel/Message/SendBox.tsx
+0
-35
src/ui/Duel/Message/Status.tsx
src/ui/Duel/Message/Status.tsx
+0
-64
src/ui/Duel/Message/TimeLine.tsx
src/ui/Duel/Message/TimeLine.tsx
+0
-29
src/ui/Duel/Message/index.ts
src/ui/Duel/Message/index.ts
+0
-3
No files found.
src/ui/Duel/Message/SendBox.tsx
deleted
100644 → 0
View file @
cc7fafa5
import
{
SendOutlined
}
from
"
@ant-design/icons
"
;
import
{
Button
,
Col
,
Input
,
Row
}
from
"
antd
"
;
import
React
,
{
useState
}
from
"
react
"
;
import
{
sendChat
}
from
"
@/api
"
;
export
const
SendBox
=
()
=>
{
const
[
content
,
setContent
]
=
useState
(
""
);
return
(
<>
<
Row
>
<
Input
.
TextArea
placeholder=
"Message to sent..."
autoSize=
{
{
minRows
:
3
,
maxRows
:
4
}
}
value=
{
content
}
onChange=
{
(
e
)
=>
{
setContent
(
e
.
target
.
value
);
}
}
/>
</
Row
>
<
Row
>
<
Col
>
<
Button
icon=
{
<
SendOutlined
/>
}
onClick=
{
()
=>
{
sendChat
(
content
);
setContent
(
""
);
}
}
disabled=
{
!
content
}
/>
</
Col
>
</
Row
>
</>
);
};
src/ui/Duel/Message/Status.tsx
deleted
100644 → 0
View file @
cc7fafa5
import
{
UserOutlined
}
from
"
@ant-design/icons
"
;
import
{
CheckCard
}
from
"
@ant-design/pro-components
"
;
import
{
Avatar
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
{
useConfig
}
from
"
@/config
"
;
const
NeosConfig
=
useConfig
();
const
Config
=
NeosConfig
.
ui
.
status
;
const
avatarSize
=
40
;
const
ME_VALUE
=
"
myself
"
;
const
OP_VALUE
=
"
opponent
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
matStore
}
from
"
@/stores
"
;
export
const
PlayerStatus
=
()
=>
{
const
meInfo
=
useSnapshot
(
matStore
.
initInfo
.
me
);
const
opInfo
=
useSnapshot
(
matStore
.
initInfo
.
op
);
const
waiting
=
useSnapshot
(
matStore
).
waiting
;
return
(
<
CheckCard
.
Group
bordered
style=
{
{
height
:
`${NeosConfig.ui.layout.header.height}`
}
}
value=
{
waiting
?
OP_VALUE
:
ME_VALUE
}
>
<
CheckCard
avatar=
{
<
Avatar
size=
{
avatarSize
}
style=
{
{
backgroundColor
:
Config
.
opAvatarColor
}
}
icon=
{
<
UserOutlined
/>
}
/>
}
title=
{
OP_VALUE
}
description=
{
`Lp: ${opInfo?.life || 0}`
}
value=
{
OP_VALUE
}
style=
{
{
position
:
"
absolute
"
,
left
:
`${NeosConfig.ui.layout.sider.width}px`
,
}
}
/>
<
CheckCard
avatar=
{
<
Avatar
size=
{
avatarSize
}
style=
{
{
backgroundColor
:
Config
.
meAvatarColor
}
}
icon=
{
<
UserOutlined
/>
}
/>
}
title=
{
ME_VALUE
}
description=
{
`Lp: ${meInfo?.life || 0}`
}
value=
{
ME_VALUE
}
style=
{
{
position
:
"
absolute
"
,
right
:
"
0px
"
,
}
}
/>
</
CheckCard
.
Group
>
);
};
src/ui/Duel/Message/TimeLine.tsx
deleted
100644 → 0
View file @
cc7fafa5
import
{
MessageOutlined
}
from
"
@ant-design/icons
"
;
import
{
Timeline
,
TimelineItemProps
}
from
"
antd
"
;
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
chatStore
}
from
"
@/stores
"
;
export
const
DuelTimeLine
=
()
=>
{
const
[
items
,
setItems
]
=
useState
<
TimelineItemProps
[]
>
([]);
const
stateChat
=
chatStore
;
const
snapChat
=
useSnapshot
(
stateChat
);
const
chat
=
snapChat
.
message
;
useEffect
(()
=>
{
setItems
((
prev
)
=>
prev
.
concat
([
{
dot
:
<
MessageOutlined
/>,
children
:
chat
,
color
:
"
green
"
,
},
])
);
},
[
chat
]);
return
<
Timeline
items=
{
items
}
/>;
};
src/ui/Duel/Message/index.ts
View file @
a242332e
...
@@ -8,8 +8,5 @@ export * from "./HintNotification";
...
@@ -8,8 +8,5 @@ export * from "./HintNotification";
export
*
from
"
./OptionModal
"
;
export
*
from
"
./OptionModal
"
;
export
*
from
"
./PositionModal
"
;
export
*
from
"
./PositionModal
"
;
export
*
from
"
./SelectActionsModal
"
;
export
*
from
"
./SelectActionsModal
"
;
export
*
from
"
./SendBox
"
;
export
*
from
"
./SortCardModal
"
;
export
*
from
"
./SortCardModal
"
;
export
*
from
"
./Status
"
;
export
*
from
"
./TimeLine
"
;
export
*
from
"
./YesNoModal
"
;
export
*
from
"
./YesNoModal
"
;
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