Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Mobile
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
GaiaXalter
Mycard Mobile
Commits
6fe166b3
Commit
6fe166b3
authored
Aug 24, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still problems
parent
ca10bacf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/app/ygopro.service.ts
src/app/ygopro.service.ts
+5
-1
No files found.
src/app/ygopro.service.ts
View file @
6fe166b3
...
@@ -425,6 +425,9 @@ export class YGOProService {
...
@@ -425,6 +425,9 @@ export class YGOProService {
alert
(
JSON
.
stringify
({
method
:
'
share
'
,
params
:
[
text
]
}));
alert
(
JSON
.
stringify
({
method
:
'
share
'
,
params
:
[
text
]
}));
}
}
}
}
isRoomAvailableToDisplay
(
r
:
Room
)
{
return
(
r
.
arena
&&
this
.
currentServer
&&
this
.
currentServer
.
id
===
'
tiramisu
'
)
||
r
.
server
===
this
.
currentServer
;
}
}
}
type
Message
=
type
Message
=
...
@@ -472,7 +475,8 @@ export class RoomListDataSource extends DataSource<Room> {
...
@@ -472,7 +475,8 @@ export class RoomListDataSource extends DataSource<Room> {
// 筛选一下房间,只扔进去当前房间或者竞技匹配的
// 筛选一下房间,只扔进去当前房间或者竞技匹配的
// 房间排序
// 房间排序
map
(
rooms
=>
map
(
rooms
=>
sortBy
(
rooms
.
filter
(
r
=>
(
r
.
arena
&&
this
.
ygopro
.
currentServer
&&
this
.
ygopro
.
currentServer
.
id
===
'
tiramisu
'
)
||
r
.
server
===
this
.
ygopro
.
currentServer
),
room
=>
{
// TODO: reload server on change
sortBy
(
rooms
.
filter
(
r
=>
this
.
ygopro
.
isRoomAvailableToDisplay
(
r
)),
room
=>
{
if
(
room
.
arena
===
'
athletic
'
)
{
if
(
room
.
arena
===
'
athletic
'
)
{
return
0
;
return
0
;
}
else
if
(
room
.
arena
===
'
entertain
'
)
{
}
else
if
(
room
.
arena
===
'
entertain
'
)
{
...
...
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