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
3c91aebc
Commit
3c91aebc
authored
Sep 11, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not work
parent
df47d167
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
21 deletions
+29
-21
README.md
README.md
+1
-0
src/app/app-detail/app-detail.component.css
src/app/app-detail/app-detail.component.css
+1
-1
src/app/ygopro/ygopro.component.css
src/app/ygopro/ygopro.component.css
+11
-0
src/app/ygopro/ygopro.component.html
src/app/ygopro/ygopro.component.html
+10
-4
src/app/ygopro/ygopro.component.ts
src/app/ygopro/ygopro.component.ts
+2
-11
src/index.html
src/index.html
+1
-2
src/styles.scss
src/styles.scss
+3
-3
No files found.
README.md
View file @
3c91aebc
...
...
@@ -4,6 +4,7 @@
download bin from CI
```
npx electron-rebuild
npm start
npm run start:electron
```
...
...
src/app/app-detail/app-detail.component.css
View file @
3c91aebc
...
...
@@ -266,6 +266,6 @@ table.expansions tr:last-child td:last-child{
margin-top
:
.5rem
;
}
#right
.btn-sm
{
#right
.btn-sm
,
#local
.btn-sm
{
margin-right
:
4px
;
}
src/app/ygopro/ygopro.component.css
View file @
3c91aebc
...
...
@@ -62,6 +62,7 @@
margin-right
:
-5px
;
margin-left
:
0px
;
}
.small-gutters
>
.col
,
.small-gutters
>
[
class
*=
"col-"
]
{
padding-right
:
5px
;
padding-left
:
0px
;
...
...
@@ -242,15 +243,19 @@ form {
#game-list
td
.users
{
max-width
:
95px
;
}
#game-list
td
.extra
{
max-width
:
185px
;
}
#game-replay-watch
td
.title
{
max-width
:
360px
;
}
#game-replay-watch
td
.users
{
max-width
:
90px
;
}
#game-replay-watch
td
.extra
{
max-width
:
120px
;
}
...
...
@@ -281,9 +286,11 @@ form {
#watch-filter
{
display
:
inline-block
;
}
#watch-filter
.dropdown-item
{
font-size
:
.875rem
;
}
#watch-filter
.form-check-input
{
margin-left
:
inherit
;
}
...
...
@@ -294,3 +301,7 @@ form {
bottom
:
.75rem
;
width
:
500px
;
}
.btn-sm
{
margin-right
:
4px
;
}
src/app/ygopro/ygopro.component.html
View file @
3c91aebc
...
...
@@ -27,13 +27,19 @@
<div
class=
"col-sm-8 input-group input-group-sm"
>
<label
i18n
class=
"input-group-text"
id=
"basic-addon1"
>
卡组
</label>
<select
class=
"form-select form-select-sm"
id=
"exampleSelect1"
name=
"deck"
[(ngModel)]=
"current_deck"
>
<optgroup
*ngFor=
"let group of deckGroup()"
[label]=
"group[0]"
>
<option
*ngFor=
"let deck of group[1]"
[value]=
"group[0] + '/' + deck"
>
{{deck}}
</option>
<ng-container
*ngFor=
"let group of deckGroup()"
>
<ng-container
*ngIf=
"group[0] == '.'; else #x"
>
</ng-container>
<ng-template
#elseBlock
>
Content to render when condition is false.
</ng-template>
<optgroup
[label]=
"group[0]"
></optgroup>
<option
*ngFor=
"let deck of group[1]"
[value]=
"group[0] + '/' + deck"
>
{{deck}}
</option>
</
optgroup
>
</
ng-container
>
</select>
<span
class=
"input-group-btn"
>
<button
id=
"edit_deck_button"
i18n
[disabled]=
"!appsService.allReady(app)"
class=
"btn btn-secondary btn-sm"
(click)=
"edit_deck(current_deck)"
>
编辑
</button>
</span>
<button
id=
"edit_deck_button"
i18n
[disabled]=
"!appsService.allReady(app)"
class=
"btn btn-secondary btn-sm"
(click)=
"edit_deck(current_deck)"
>
编辑
</button>
</span>
</div>
</div>
...
...
src/app/ygopro/ygopro.component.ts
View file @
3c91aebc
...
...
@@ -137,7 +137,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
@
Output
()
points
:
EventEmitter
<
any
>
=
new
EventEmitter
();
decks
:
string
[]
=
[];
decks_grouped
:
[
string
,
string
[]][]
;
decks_grouped
:
Record
<
string
,
string
[]
>
;
replays
:
string
[]
=
[];
current_deck
:
string
;
system_conf
?:
string
;
...
...
@@ -468,7 +468,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
async
refresh
(
init
?:
boolean
)
{
this
.
decks
=
await
this
.
get_decks
();
this
.
decks_grouped
=
this
.
deckGroup
();
this
.
decks_grouped
=
_
.
mapValues
(
_
.
groupBy
(
this
.
decks
,
(
p
)
=>
path
.
dirname
(
p
)),
(
g
)
=>
g
.
map
((
p
)
=>
path
.
basename
(
p
,
'
.ydk
'
)))
if
(
this
.
lastDeckFormat
)
{
const
systemConfString
=
await
this
.
load_system_conf
();
...
...
@@ -520,15 +520,6 @@ export class YGOProComponent implements OnInit, OnDestroy {
}
}
deckGroup
():
[
string
,
string
[]][]
{
return
Object
.
entries
(
_
.
mapValues
(
_
.
groupBy
(
this
.
decks
,
(
p
)
=>
path
.
dirname
(
p
)),
(
g
)
=>
g
.
map
((
p
)
=>
path
.
basename
(
p
,
'
.ydk
'
))
)
);
}
async
get_replays
():
Promise
<
string
[]
>
{
try
{
let
files
:
string
[]
=
await
fs
.
readdir
(
this
.
app
.
ygoproReplayPath
!
);
...
...
src/index.html
View file @
3c91aebc
...
...
@@ -8,8 +8,7 @@
<body>
<mycard>
<!--<div id="loading">MyCard <span id="version"></span> Loading...</div>-->
<div
id=
'loading-bar'
>
<span
class=
'navbar-brand'
>
MyCard
</span>
<header
class=
'navbar navbar-toggleable-md navbar-light'
id=
'navbar'
>
<i
class=
'fa fa-times close'
i18n=
''
i18n-title=
''
title=
'关闭'
onclick=
'window.close()'
></i>
</div>
...
...
src/styles.scss
View file @
3c91aebc
...
...
@@ -28,9 +28,9 @@
@import
"~bootstrap/scss/bootstrap"
;
@import
"~@fortawesome/fontawesome-free/css/all"
;
.btn-sm
{
line-height
:
1
.25
;
}
//
.btn-sm {
//
line-height: 1.25;
//
}
html
,
body
{
height
:
100%
;
...
...
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