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
102164ea
Commit
102164ea
authored
Nov 04, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
window control
parent
6bc198db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
app/mycard.component.html
app/mycard.component.html
+5
-5
app/mycard.component.ts
app/mycard.component.ts
+3
-4
No files found.
app/mycard.component.html
View file @
102164ea
...
...
@@ -22,11 +22,11 @@
<a
href=
"#"
class=
"profile item"
id=
"username"
>
{{loginService.user.username}}
</a>
<a
href=
"#"
(click)=
"loginService.logout()"
class=
"item"
>
切换账号
</a>
</div>
<div
id=
"window-buttons"
[hidden]=
"platform =
= 'darwin'"
>
<i
id=
"minimize
"
class=
"fa fa-minus"
aria-hidden=
"true"
></i>
<i
id=
"maximize
"
class=
"fa fa-expand"
aria-hidden=
"true"
></i>
<i
id=
"restore"
class=
"fa fa-clone"
hidden
aria-hidden=
"true"
></i>
<i
id=
"close
"
class=
"fa fa-times"
aria-hidden=
"true"
></i>
<div
id=
"window-buttons"
*ngIf=
"platform !
= 'darwin'"
>
<i
(click)=
"currentWindow.minimize()
"
class=
"fa fa-minus"
aria-hidden=
"true"
></i>
<i
*ngIf=
"!currentWindow.isMaximized()"
(click)=
"currentWindow.maximize()
"
class=
"fa fa-expand"
aria-hidden=
"true"
></i>
<i
*ngIf=
"currentWindow.isMaximized()"
(click)=
"currentWindow.unmaximize()"
class=
"fa fa-clone"
aria-hidden=
"true"
></i>
<i
(click)=
"window.close()
"
class=
"fa fa-times"
aria-hidden=
"true"
></i>
</div>
</div>
</nav>
...
...
app/mycard.component.ts
View file @
102164ea
...
...
@@ -3,6 +3,7 @@ import {TranslateService} from "ng2-translate";
import
{
remote
}
from
"
electron
"
;
import
{
LoginService
}
from
"
./login.service
"
;
@
Component
({
selector
:
'
mycard
'
,
templateUrl
:
'
app/mycard.component.html
'
,
...
...
@@ -14,6 +15,8 @@ export class MyCardComponent {
currentPage
:
string
=
"
lobby
"
;
platform
=
process
.
platform
;
currentWindow
=
remote
.
getCurrentWindow
();
window
=
window
;
constructor
(
private
renderer
:
Renderer
,
private
translate
:
TranslateService
,
private
loginService
:
LoginService
)
{
renderer
.
listenGlobal
(
'
window
'
,
'
message
'
,
(
event
)
=>
{
...
...
@@ -29,8 +32,4 @@ export class MyCardComponent {
}
refresh
()
{
remote
.
getCurrentWindow
().
reload
()
}
}
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