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
380b34be
Commit
380b34be
authored
Mar 11, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add CustomRoomContent
parent
bcb83f30
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
src/ui/Match/CustomRoomContent/index.module.scss
src/ui/Match/CustomRoomContent/index.module.scss
+11
-0
src/ui/Match/CustomRoomContent/index.tsx
src/ui/Match/CustomRoomContent/index.tsx
+21
-0
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+14
-1
No files found.
src/ui/Match/CustomRoomContent/index.module.scss
0 → 100644
View file @
380b34be
.container
{
display
:
flex
;
flex-direction
:
column
;
font
:
var
(
--
theme-font
);
font-size
:
1rem
;
}
.footer
{
text-align
:
right
;
gap
:
1rem
;
}
src/ui/Match/CustomRoomContent/index.tsx
0 → 100644
View file @
380b34be
import
{
Button
}
from
"
antd
"
;
import
React
from
"
react
"
;
import
styles
from
"
./index.module.scss
"
;
export
const
CustomRoomContent
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
{
styles
.
container
}
>
<
p
>
创建/加入私密房间
</
p
>
</
div
>
);
};
export
const
CustomRoomFooter
:
React
.
FC
=
()
=>
{
return
(
<
div
className=
{
styles
.
footer
}
>
<
Button
>
创建私密房间
</
Button
>
<
Button
>
加入私密房间
</
Button
>
</
div
>
);
};
src/ui/Match/index.tsx
View file @
380b34be
...
@@ -15,6 +15,7 @@ import { useConfig } from "@/config";
...
@@ -15,6 +15,7 @@ import { useConfig } from "@/config";
import
{
accountStore
,
deckStore
,
resetUniverse
,
roomStore
}
from
"
@/stores
"
;
import
{
accountStore
,
deckStore
,
resetUniverse
,
roomStore
}
from
"
@/stores
"
;
import
{
Background
,
IconFont
,
Select
}
from
"
@/ui/Shared
"
;
import
{
Background
,
IconFont
,
Select
}
from
"
@/ui/Shared
"
;
import
{
CustomRoomContent
,
CustomRoomFooter
}
from
"
./CustomRoomContent
"
;
import
styles
from
"
./index.module.scss
"
;
import
styles
from
"
./index.module.scss
"
;
import
{
MatchModal
,
matchStore
}
from
"
./MatchModal
"
;
import
{
MatchModal
,
matchStore
}
from
"
./MatchModal
"
;
import
{
ReplayModal
,
replayOpen
}
from
"
./ReplayModal
"
;
import
{
ReplayModal
,
replayOpen
}
from
"
./ReplayModal
"
;
...
@@ -71,7 +72,19 @@ export const Component: React.FC = () => {
...
@@ -71,7 +72,19 @@ export const Component: React.FC = () => {
const
onEntertainMatch
=
async
()
=>
await
onMatch
(
"
entertain
"
);
const
onEntertainMatch
=
async
()
=>
await
onMatch
(
"
entertain
"
);
// MC自定义房间
// MC自定义房间
const
onMCCustomRoom
=
()
=>
{};
const
onMCCustomRoom
=
()
=>
{
if
(
!
user
)
{
message
.
error
(
"
请先登录萌卡账号
"
);
}
else
{
modal
.
info
({
icon
:
null
,
centered
:
true
,
maskClosable
:
true
,
content
:
<
CustomRoomContent
/>,
footer
:
<
CustomRoomFooter
/>,
});
}
};
// MC观战
// MC观战
const
onMCWatch
=
()
=>
{
const
onMCWatch
=
()
=>
{
...
...
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