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
9
Issues
9
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
mycard
Commits
14110e7c
Commit
14110e7c
authored
Jun 08, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
71612118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
+17
-18
app/apps.service.ts
app/apps.service.ts
+13
-14
package.json
package.json
+4
-4
No files found.
app/apps.service.ts
View file @
14110e7c
import
{
ApplicationRef
,
EventEmitter
,
Injectable
,
NgZone
}
from
'
@angular/core
'
;
import
{
ApplicationRef
,
EventEmitter
,
Injectable
,
NgZone
}
from
'
@angular/core
'
;
import
{
Http
}
from
'
@angular/http
'
;
import
{
Http
}
from
'
@angular/http
'
;
import
*
as
crypto
from
'
crypto
'
;
import
{
Action
,
App
,
AppStatus
}
from
'
./app
'
;
import
{
SettingsService
}
from
'
./settings.sevices
'
;
import
*
as
fs
from
'
fs
'
;
import
{
createReadStream
,
createWriteStream
}
from
'
fs
'
;
import
*
as
path
from
'
path
'
;
import
*
as
child_process
from
'
child_process
'
;
import
*
as
child_process
from
'
child_process
'
;
import
{
ChildProcess
}
from
'
child_process
'
;
import
{
ChildProcess
}
from
'
child_process
'
;
import
*
as
crypto
from
'
crypto
'
;
import
{
remote
}
from
'
electron
'
;
import
{
remote
}
from
'
electron
'
;
import
'
rxjs/Rx
'
;
import
*
as
fs
from
'
fs
'
;
import
*
as
readline
from
'
readline
'
;
import
{
AppLocal
}
from
'
./app-local
'
;
import
*
as
glob
from
'
glob
'
;
import
*
as
glob
from
'
glob
'
;
import
*
as
ini
from
'
ini
'
;
import
*
as
ini
from
'
ini
'
;
import
*
as
path
from
'
path
'
;
import
*
as
readline
from
'
readline
'
;
import
'
rxjs/Rx
'
;
import
{
Observable
,
Observer
}
from
'
rxjs/Rx
'
;
import
{
Action
,
App
,
AppStatus
}
from
'
./app
'
;
import
{
AppLocal
}
from
'
./app-local
'
;
import
{
DownloadService
,
DownloadStatus
}
from
'
./download.service
'
;
import
{
DownloadService
,
DownloadStatus
}
from
'
./download.service
'
;
import
{
InstallOption
}
from
'
./install-option
'
;
import
{
InstallOption
}
from
'
./install-option
'
;
import
{
ComparableSet
}
from
'
./shared/ComparableSet
'
;
import
{
Observable
,
Observer
}
from
'
rxjs/Rx
'
;
import
{
LoginService
}
from
'
./login.service
'
;
import
{
LoginService
}
from
'
./login.service
'
;
import
{
SettingsService
}
from
'
./settings.sevices
'
;
import
{
ComparableSet
}
from
'
./shared/ComparableSet
'
;
import
Timer
=
NodeJS
.
Timer
;
import
Timer
=
NodeJS
.
Timer
;
import
ReadableStream
=
NodeJS
.
ReadableStream
;
import
ReadableStream
=
NodeJS
.
ReadableStream
;
const
sudo
=
require
(
'
electron-sudo
'
)
;
import
*
as
sudo
from
'
electron-sudo
'
;
const
Logger
=
{
const
Logger
=
{
info
:
(...
message
:
any
[])
=>
{
info
:
(...
message
:
any
[])
=>
{
console
.
log
(
'
AppService [INFO]:
'
,
...
message
);
console
.
log
(
'
AppService [INFO]:
'
,
...
message
);
...
@@ -345,9 +344,9 @@ export class AppsService {
...
@@ -345,9 +344,9 @@ export class AppsService {
async
copyFile
(
src
:
string
,
dst
:
string
):
Promise
<
any
>
{
async
copyFile
(
src
:
string
,
dst
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
readable
=
createReadStream
(
src
);
let
readable
=
fs
.
createReadStream
(
src
);
readable
.
on
(
'
open
'
,
()
=>
{
readable
.
on
(
'
open
'
,
()
=>
{
let
writable
=
createWriteStream
(
dst
);
let
writable
=
fs
.
createWriteStream
(
dst
);
writable
.
on
(
'
error
'
,
reject
);
writable
.
on
(
'
error
'
,
reject
);
writable
.
on
(
'
close
'
,
resolve
);
writable
.
on
(
'
close
'
,
resolve
);
readable
.
pipe
(
writable
);
readable
.
pipe
(
writable
);
...
...
package.json
View file @
14110e7c
...
@@ -59,12 +59,12 @@
...
@@ -59,12 +59,12 @@
"devDependencies"
:
{
"devDependencies"
:
{
"
@angular/compiler-cli
"
:
"
latest
"
,
"
@angular/compiler-cli
"
:
"
latest
"
,
"
@angular/platform-server
"
:
"
latest
"
,
"
@angular/platform-server
"
:
"
latest
"
,
"
@types/bootstrap
"
:
"
latest
"
,
"
@types/glob
"
:
"
latest
"
,
"
@types/glob
"
:
"
latest
"
,
"
@types/ini
"
:
"
latest
"
,
"
@types/ini
"
:
"
latest
"
,
"
@types/node
"
:
"
latest
"
,
"
@types/bootstrap
"
:
"
latest
"
,
"
@types/jquery
"
:
"
latest
"
,
"
@types/jquery
"
:
"
latest
"
,
"
@types/marked
"
:
"
latest
"
,
"
@types/marked
"
:
"
latest
"
,
"
@types/node
"
:
"
latest
"
,
"
@types/raven-js
"
:
"
latest
"
,
"
@types/raven-js
"
:
"
latest
"
,
"
@types/tether
"
:
"
latest
"
,
"
@types/tether
"
:
"
latest
"
,
"
@types/typeahead
"
:
"
latest
"
,
"
@types/typeahead
"
:
"
latest
"
,
...
@@ -75,8 +75,8 @@
...
@@ -75,8 +75,8 @@
"
rollup-plugin-commonjs
"
:
"
latest
"
,
"
rollup-plugin-commonjs
"
:
"
latest
"
,
"
rollup-plugin-node-resolve
"
:
"
latest
"
,
"
rollup-plugin-node-resolve
"
:
"
latest
"
,
"
rollup-plugin-uglify
"
:
"
latest
"
,
"
rollup-plugin-uglify
"
:
"
latest
"
,
"
t
ypescript
"
:
"
latest
"
,
"
t
slint
"
:
"
^3.15.1
"
,
"
t
slint
"
:
"
^3.15.1
"
"
t
ypescript
"
:
"
latest
"
},
},
"build"
:
{
"build"
:
{
"productName"
:
"MyCard"
,
"productName"
:
"MyCard"
,
...
...
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