Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
syntax_j
mycard
Commits
38b0ad61
Commit
38b0ad61
authored
Jul 16, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dropdown menu
parent
9bff4db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
25 deletions
+42
-25
app/ygopro.component.html
app/ygopro.component.html
+25
-25
app/ygopro.component.ts
app/ygopro.component.ts
+17
-0
No files found.
app/ygopro.component.html
View file @
38b0ad61
...
...
@@ -227,37 +227,37 @@
<th
class=
"mode"
>
<!--<span i18n>游戏模式</span>-->
<div
id=
"watch-filter"
class=
"dropdown"
>
<button
i18n
class=
"btn btn-secondary dropdown-toggle btn-sm"
type=
"button"
id=
"
dropdownMenuButton"
data-toggle=
"dropdow
n"
aria-haspopup=
"true"
aria-expanded=
"false"
>
<button
i18n
class=
"btn btn-secondary dropdown-toggle btn-sm"
type=
"button"
id=
"
watchDropdownMenuButto
n"
aria-haspopup=
"true"
aria-expanded=
"false"
>
游戏模式
</button>
<div
class=
"dropdown-menu"
>
<h6
i18n
class=
"dropdown-header"
>
匹配
</h6>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-athletic"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.athletic"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-athletic"
class=
"form-check-label"
>
竞技匹配
</label>
</
div
>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-entertain"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.entertain"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-entertain"
class=
"form-check-label"
>
娱乐匹配
</label>
</
div
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.athletic
"
>
竞技匹配
</
label
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.entertain
"
>
娱乐匹配
</
label
>
<h6
i18n
class=
"dropdown-header"
>
自定义游戏
</h6>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-single"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.single"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-single"
class=
"form-check-label"
>
单局模式
</label>
</
div
>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-match"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.match"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-match"
class=
"form-check-label"
>
比赛模式
</label>
</
div
>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-tag"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.tag"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-tag"
class=
"form-check-label"
>
TAG
</label>
</
div
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.single
"
>
单局模式
</
label
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.match
"
>
比赛模式
</
label
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.tag
"
>
TAG
</
label
>
<h6
i18n
class=
"dropdown-header"
>
单人模式
</h6>
<
div
class=
"form-check dropdown-item"
>
<input
id=
"filter-windbot"
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.windbot"
(change)=
"refresh_replay_rooms()
"
>
<label
i18n
for=
"filter-windbot"
class=
"form-check-label"
>
单人模式
</label>
</
div
>
<
label
i18n
class=
"form-check dropdown-item"
>
<input
type=
"checkbox"
class=
"form-check-input"
[(ngModel)]=
"replay_rooms_filter.windbot
"
>
单人模式
</
label
>
</div>
</div>
</th>
...
...
app/ygopro.component.ts
View file @
38b0ad61
...
...
@@ -388,6 +388,23 @@ export class YGOProComponent implements OnInit, OnDestroy {
this
.
replay_connections
=
[];
});
let
watchDropdownMenu
=
$
(
'
#watch-filter
'
);
watchDropdownMenu
.
on
(
"
change
"
,
"
input[type='checkbox']
"
,
(
event
)
=>
{
//$(event.target).closest("label").toggleClass("active", (<HTMLInputElement> event.target).checked);
this
.
refresh_replay_rooms
();
});
replay_modal
.
on
(
'
click
'
,
(
event
)
=>
{
if
(
!
watchDropdownMenu
.
is
(
event
.
target
)
&&
!
watchDropdownMenu
.
has
(
event
.
target
).
length
)
{
watchDropdownMenu
.
removeClass
(
'
show
'
);
}
});
$
(
'
#watchDropdownMenuButton
'
).
on
(
'
click
'
,
()
=>
{
watchDropdownMenu
.
toggleClass
(
'
show
'
);
});
remote
.
ipcMain
.
on
(
'
YGOPro
'
,
(
e
:
any
,
type
:
string
)
=>
{
console
.
log
(
'
rrrrr
'
);
this
.
request_match
(
type
);
...
...
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