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
8cd7aa95
Commit
8cd7aa95
authored
Oct 01, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update small
parent
10799a04
Pipeline
#23644
passed with stages
in 14 minutes and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
neos.config.json
neos.config.json
+1
-1
src/ui/Match/WatchContent.tsx
src/ui/Match/WatchContent.tsx
+1
-0
src/ui/Match/index.tsx
src/ui/Match/index.tsx
+2
-1
No files found.
neos.config.json
View file @
8cd7aa95
...
...
@@ -7,7 +7,7 @@
"port"
:
"7211"
},
{
"name"
:
"mycard"
,
"name"
:
"mycard
-athletic
"
,
"ip"
:
"tiramisu.moecube.com"
,
"port"
:
"8912"
}
...
...
src/ui/Match/WatchContent.tsx
View file @
8cd7aa95
...
...
@@ -38,6 +38,7 @@ export const WatchContent: React.FC<{
}
>
=
({
setWatchID
})
=>
{
const
[
rooms
,
setRooms
]
=
useState
<
Room
[]
>
([]);
const
{
message
}
=
App
.
useApp
();
// 暂时只支持竞技匹配的观战,TODO:后面需要加上娱乐匹配的支持
const
url
=
new
URL
(
athleticWatchUrl
);
url
.
searchParams
.
set
(
"
filter
"
,
"
started
"
);
...
...
src/ui/Match/index.tsx
View file @
8cd7aa95
...
...
@@ -76,8 +76,9 @@ export const Component: React.FC = () => {
if
(
watchID
)
{
setWatchLoading
(
true
);
// 找到MC竞技匹配的Server
const
mcServer
=
serverList
.
find
(
(
server
)
=>
server
.
name
===
"
mycard
"
,
(
server
)
=>
server
.
name
===
"
mycard
-athletic
"
,
);
if
(
mcServer
)
{
const
passWd
=
getEncryptedPasswd
(
watchID
,
user
);
...
...
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