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
530358c9
Commit
530358c9
authored
Dec 06, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v3' of github.com:mycard/mycard into v3
parents
6dacbd23
da3a1104
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
315 additions
and
330 deletions
+315
-330
app/app-detail.component.ts
app/app-detail.component.ts
+8
-6
app/apps.service.ts
app/apps.service.ts
+306
-4
app/install.service.ts
app/install.service.ts
+0
-315
app/lobby.component.ts
app/lobby.component.ts
+1
-3
app/mycard.module.ts
app/mycard.module.ts
+0
-2
No files found.
app/app-detail.component.ts
View file @
530358c9
...
...
@@ -7,7 +7,6 @@ import {DownloadService} from "./download.service";
import
{
clipboard
,
remote
}
from
"
electron
"
;
import
*
as
path
from
"
path
"
;
import
*
as
fs
from
'
fs
'
;
import
{
InstallService
}
from
"
./install.service
"
;
import
mkdirp
=
require
(
"
mkdirp
"
);
declare
const
Notification
:
any
;
...
...
@@ -30,8 +29,7 @@ export class AppDetailComponent implements OnInit {
referencesInstall
:
{[
id
:
string
]:
boolean
};
constructor
(
private
appsService
:
AppsService
,
private
settingsService
:
SettingsService
,
private
downloadService
:
DownloadService
,
private
installService
:
InstallService
,
private
ref
:
ChangeDetectorRef
)
{
private
downloadService
:
DownloadService
,
private
ref
:
ChangeDetectorRef
)
{
}
// public File[] listRoots() {
...
...
@@ -103,8 +101,12 @@ export class AppDetailComponent implements OnInit {
async
uninstall
(
app
:
App
)
{
if
(
confirm
(
"
确认删除?
"
))
{
await
this
.
installService
.
uninstall
(
app
);
try
{
await
this
.
appsService
.
uninstall
(
app
);
app
.
status
.
status
=
"
init
"
;
}
catch
(
e
)
{
alert
(
e
);
}
}
}
...
...
@@ -131,7 +133,7 @@ export class AppDetailComponent implements OnInit {
let
volume
=
this
.
installOption
.
installLibrary
.
slice
(
7
);
let
library
=
path
.
join
(
volume
,
"
MyCardLibrary
"
);
try
{
await
this
.
install
Service
.
createDirectory
(
library
);
await
this
.
apps
Service
.
createDirectory
(
library
);
this
.
installOption
.
installLibrary
=
library
;
this
.
settingsService
.
addLibrary
(
library
,
true
);
}
catch
(
e
)
{
...
...
app/apps.service.ts
View file @
530358c9
This diff is collapsed.
Click to expand it.
app/install.service.ts
deleted
100644 → 0
View file @
6dacbd23
This diff is collapsed.
Click to expand it.
app/lobby.component.ts
View file @
530358c9
...
...
@@ -6,7 +6,6 @@ import {AppsService} from "./apps.service";
import
{
LoginService
}
from
"
./login.service
"
;
import
{
App
,
Category
}
from
"
./app
"
;
import
{
DownloadService
}
from
"
./download.service
"
;
import
{
InstallService
}
from
"
./install.service
"
;
import
{
Http
,
URLSearchParams
}
from
"
@angular/http
"
;
import
{
shell
}
from
"
electron
"
;
import
WebViewElement
=
Electron
.
WebViewElement
;
...
...
@@ -25,8 +24,7 @@ export class LobbyComponent implements OnInit {
currentApp
:
App
;
private
apps
:
Map
<
string
,
App
>
;
constructor
(
private
appsService
:
AppsService
,
private
loginService
:
LoginService
,
private
downloadService
:
DownloadService
,
private
installService
:
InstallService
,
private
http
:
Http
)
{
constructor
(
private
appsService
:
AppsService
,
private
loginService
:
LoginService
)
{
}
async
ngOnInit
()
{
...
...
app/mycard.module.ts
View file @
530358c9
...
...
@@ -14,7 +14,6 @@ import {AppsService} from "./apps.service";
import
{
SettingsService
}
from
"
./settings.sevices
"
;
import
{
LoginService
}
from
"
./login.service
"
;
import
{
DownloadService
}
from
"
./download.service
"
;
import
{
InstallService
}
from
"
./install.service
"
;
@
NgModule
({
imports
:
[
BrowserModule
,
FormsModule
,
ReactiveFormsModule
,
HttpModule
],
...
...
@@ -25,7 +24,6 @@ import {InstallService} from "./install.service";
bootstrap
:
[
MyCardComponent
],
providers
:
[
AppsService
,
SettingsService
,
LoginService
,
DownloadService
,
InstallService
],
schemas
:
[
NO_ERRORS_SCHEMA
]
})
...
...
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