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
bcb83f30
Commit
bcb83f30
authored
Mar 11, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rerange code
parent
6b74f77c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
7 deletions
+17
-7
src/ui/Match/MatchModal/index.module.scss
src/ui/Match/MatchModal/index.module.scss
+0
-0
src/ui/Match/MatchModal/index.tsx
src/ui/Match/MatchModal/index.tsx
+2
-2
src/ui/Match/ReplayModal/index.tsx
src/ui/Match/ReplayModal/index.tsx
+2
-2
src/ui/Match/WatchContent/index.module.scss
src/ui/Match/WatchContent/index.module.scss
+0
-0
src/ui/Match/WatchContent/index.tsx
src/ui/Match/WatchContent/index.tsx
+2
-2
src/ui/Match/index.module.scss
src/ui/Match/index.module.scss
+1
-1
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+10
-0
No files found.
src/ui/Match/MatchModal.module.scss
→
src/ui/Match/MatchModal
/index
.module.scss
View file @
bcb83f30
File moved
src/ui/Match/MatchModal.tsx
→
src/ui/Match/MatchModal
/index
.tsx
View file @
bcb83f30
...
@@ -7,8 +7,8 @@ import { useConfig } from "@/config";
...
@@ -7,8 +7,8 @@ import { useConfig } from "@/config";
import
{
accountStore
,
roomStore
}
from
"
@/stores
"
;
import
{
accountStore
,
roomStore
}
from
"
@/stores
"
;
import
{
Select
}
from
"
@/ui/Shared
"
;
import
{
Select
}
from
"
@/ui/Shared
"
;
import
styles
from
"
./MatchModal.module.scss
"
;
import
{
connectSrvpro
}
from
"
../util
"
;
import
{
connectSrvpro
}
from
"
./util
"
;
import
styles
from
"
./index.module.scss
"
;
const
NeosConfig
=
useConfig
();
const
NeosConfig
=
useConfig
();
const
serverConfig
=
NeosConfig
.
servers
;
const
serverConfig
=
NeosConfig
.
servers
;
...
...
src/ui/Match/ReplayModal.tsx
→
src/ui/Match/ReplayModal
/index
.tsx
View file @
bcb83f30
...
@@ -5,8 +5,8 @@ import { proxy, useSnapshot } from "valtio";
...
@@ -5,8 +5,8 @@ import { proxy, useSnapshot } from "valtio";
import
{
replayStore
}
from
"
@/stores
"
;
import
{
replayStore
}
from
"
@/stores
"
;
import
{
Uploader
}
from
"
../Shared
"
;
import
{
Uploader
}
from
"
../
../
Shared
"
;
import
{
connectSrvpro
}
from
"
./util
"
;
import
{
connectSrvpro
}
from
"
.
.
/util
"
;
const
localStore
=
proxy
({
const
localStore
=
proxy
({
open
:
false
,
open
:
false
,
...
...
src/ui/Match/WatchContent.module.scss
→
src/ui/Match/WatchContent
/index
.module.scss
View file @
bcb83f30
File moved
src/ui/Match/WatchContent.tsx
→
src/ui/Match/WatchContent
/index
.tsx
View file @
bcb83f30
...
@@ -8,8 +8,8 @@ import { proxy, useSnapshot } from "valtio";
...
@@ -8,8 +8,8 @@ import { proxy, useSnapshot } from "valtio";
import
{
getUserInfo
,
Room
}
from
"
@/api
"
;
import
{
getUserInfo
,
Room
}
from
"
@/api
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
ScrollableArea
}
from
"
../Shared
"
;
import
{
ScrollableArea
}
from
"
../
../
Shared
"
;
import
styles
from
"
./
WatchContent
.module.scss
"
;
import
styles
from
"
./
index
.module.scss
"
;
const
{
athleticWatchUrl
}
=
useConfig
();
const
{
athleticWatchUrl
}
=
useConfig
();
...
...
src/ui/Match/index.module.scss
View file @
bcb83f30
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
.mode-select
{
.mode-select
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1fr
);
grid-template-columns
:
repeat
(
4
,
1fr
);
grid-template-rows
:
repeat
(
2
,
1fr
);
/* 自动调整行高 */
grid-template-rows
:
repeat
(
2
,
1fr
);
/* 自动调整行高 */
width
:
55rem
;
width
:
55rem
;
// height: 33rem;
// height: 33rem;
...
...
src/ui/Match/index.tsx
View file @
bcb83f30
import
{
import
{
BulbOutlined
,
EditOutlined
,
EditOutlined
,
LoadingOutlined
,
LoadingOutlined
,
PlayCircleFilled
,
PlayCircleFilled
,
...
@@ -69,6 +70,9 @@ export const Component: React.FC = () => {
...
@@ -69,6 +70,9 @@ export const Component: React.FC = () => {
// 娱乐匹配
// 娱乐匹配
const
onEntertainMatch
=
async
()
=>
await
onMatch
(
"
entertain
"
);
const
onEntertainMatch
=
async
()
=>
await
onMatch
(
"
entertain
"
);
// MC自定义房间
const
onMCCustomRoom
=
()
=>
{};
// MC观战
// MC观战
const
onMCWatch
=
()
=>
{
const
onMCWatch
=
()
=>
{
if
(
!
user
)
{
if
(
!
user
)
{
...
@@ -196,6 +200,12 @@ export const Component: React.FC = () => {
...
@@ -196,6 +200,12 @@ export const Component: React.FC = () => {
}
}
onClick=
{
onEntertainMatch
}
onClick=
{
onEntertainMatch
}
/>
/>
<
Mode
title=
"MC服自定义房间"
desc=
"在MC服务器上创建或者加入自定义房间,与牌友约战。"
icon=
{
<
BulbOutlined
/>
}
onClick=
{
onMCCustomRoom
}
/>
<
Mode
<
Mode
title=
"MC观战列表"
title=
"MC观战列表"
desc=
"观看萌卡MyCard上正在进行的决斗。"
desc=
"观看萌卡MyCard上正在进行的决斗。"
...
...
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