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
xiaoye
mycard
Commits
2786c34b
Commit
2786c34b
authored
Jul 07, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
so far works
parent
563f37d3
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3941 additions
and
18 deletions
+3941
-18
.gitignore
.gitignore
+1
-1
app/app-detail.component.ts
app/app-detail.component.ts
+1
-1
app/app.ts
app/app.ts
+1
-1
app/apps.service.ts
app/apps.service.ts
+12
-12
app/download.service.ts
app/download.service.ts
+1
-1
app/shared/ComparableSet.ts
app/shared/ComparableSet.ts
+1
-1
app/ygopro.component.ts
app/ygopro.component.ts
+1
-1
package-lock.json
package-lock.json
+3922
-0
tsconfig-aot.json
tsconfig-aot.json
+1
-0
No files found.
.gitignore
View file @
2786c34b
...
@@ -17,4 +17,4 @@ Thumbs.db
...
@@ -17,4 +17,4 @@ Thumbs.db
messages.xlf
messages.xlf
messages.xlf.bak
messages.xlf.bak
locale/*.xlf.bak
locale/*.xlf.bak
/package-lock.json
#
/package-lock.json
app/app-detail.component.ts
View file @
2786c34b
...
@@ -94,7 +94,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
...
@@ -94,7 +94,7 @@ export class AppDetailComponent implements OnInit, OnChanges {
this
.
availableLibraries
.
push
(
currentVolume
);
this
.
availableLibraries
.
push
(
currentVolume
);
}
}
}
}
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
...
app/app.ts
View file @
2786c34b
...
@@ -193,7 +193,7 @@ export class App {
...
@@ -193,7 +193,7 @@ export class App {
findDependencies
():
App
[]
{
findDependencies
():
App
[]
{
if
(
this
.
dependencies
&&
this
.
dependencies
.
size
>
0
)
{
if
(
this
.
dependencies
&&
this
.
dependencies
.
size
>
0
)
{
let
set
=
new
Set
();
let
set
=
new
Set
<
App
>
();
for
(
let
dependency
of
this
.
dependencies
.
values
())
{
for
(
let
dependency
of
this
.
dependencies
.
values
())
{
dependency
.
findDependencies
()
dependency
.
findDependencies
()
.
forEach
((
value
)
=>
{
.
forEach
((
value
)
=>
{
...
...
app/apps.service.ts
View file @
2786c34b
...
@@ -368,7 +368,7 @@ export class AppsService {
...
@@ -368,7 +368,7 @@ export class AppsService {
checksumFiles
.
set
(
file
,
'
DO_NOT_CARE_HASH
'
);
checksumFiles
.
set
(
file
,
'
DO_NOT_CARE_HASH
'
);
}
}
}
}
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
@@ -404,7 +404,7 @@ export class AppsService {
...
@@ -404,7 +404,7 @@ export class AppsService {
}
}
}
}
}
}
resolve
();
resolve
(
null
);
}
catch
(
e
)
{
}
catch
(
e
)
{
reject
(
e
);
reject
(
e
);
}
}
...
@@ -455,7 +455,7 @@ export class AppsService {
...
@@ -455,7 +455,7 @@ export class AppsService {
result
.
set
(
file
,
sha256sum
);
result
.
set
(
file
,
sha256sum
);
}
}
callback
();
callback
();
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
@@ -492,7 +492,7 @@ export class AppsService {
...
@@ -492,7 +492,7 @@ export class AppsService {
localFiles
=
await
this
.
verifyFiles
(
app
,
latestFiles
,
()
=>
{
localFiles
=
await
this
.
verifyFiles
(
app
,
latestFiles
,
()
=>
{
app
.
status
.
progress
+=
1
;
app
.
status
.
progress
+=
1
;
});
});
resolve
();
resolve
(
null
);
}
catch
(
e
)
{
}
catch
(
e
)
{
reject
(
e
);
reject
(
e
);
}
}
...
@@ -524,7 +524,7 @@ export class AppsService {
...
@@ -524,7 +524,7 @@ export class AppsService {
ignoreFiles
.
add
(
file
);
ignoreFiles
.
add
(
file
);
}
}
}
}
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
@@ -652,7 +652,7 @@ export class AppsService {
...
@@ -652,7 +652,7 @@ export class AppsService {
},
(
error
)
=>
{
},
(
error
)
=>
{
reject
(
error
);
reject
(
error
);
},
()
=>
{
},
()
=>
{
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
@@ -674,7 +674,7 @@ export class AppsService {
...
@@ -674,7 +674,7 @@ export class AppsService {
await
new
Promise
((
resolve
,
reject
)
=>
{
await
new
Promise
((
resolve
,
reject
)
=>
{
this
.
eventEmitter
.
subscribe
(()
=>
{
this
.
eventEmitter
.
subscribe
(()
=>
{
if
(
task
.
app
.
readyForInstall
())
{
if
(
task
.
app
.
readyForInstall
())
{
resolve
();
resolve
(
null
);
}
else
if
(
task
.
app
.
findDependencies
().
find
((
dependency
:
App
)
=>
!
dependency
.
isInstalled
()))
{
}
else
if
(
task
.
app
.
findDependencies
().
find
((
dependency
:
App
)
=>
!
dependency
.
isInstalled
()))
{
reject
(
'
Dependencies failed
'
);
reject
(
'
Dependencies failed
'
);
}
}
...
@@ -784,7 +784,7 @@ export class AppsService {
...
@@ -784,7 +784,7 @@ export class AppsService {
if
(
error
)
{
if
(
error
)
{
reject
(
error
);
reject
(
error
);
}
else
{
}
else
{
resolve
();
resolve
(
null
);
}
}
});
});
});
});
...
@@ -824,7 +824,7 @@ export class AppsService {
...
@@ -824,7 +824,7 @@ export class AppsService {
if
(
error
)
{
if
(
error
)
{
reject
(
error
);
reject
(
error
);
}
else
{
}
else
{
resolve
();
resolve
(
null
);
}
}
});
});
});
});
...
@@ -988,7 +988,7 @@ export class AppsService {
...
@@ -988,7 +988,7 @@ export class AppsService {
await
this
.
backupFiles
(
app
.
parent
!
.
local
!
.
path
,
backupPath
,
conflictFiles
,
(
n
)
=>
{
await
this
.
backupFiles
(
app
.
parent
!
.
local
!
.
path
,
backupPath
,
conflictFiles
,
(
n
)
=>
{
app
.
status
.
progress
+=
1
;
app
.
status
.
progress
+=
1
;
});
});
resolve
();
resolve
(
null
);
}
catch
(
e
)
{
}
catch
(
e
)
{
reject
(
e
);
reject
(
e
);
}
}
...
@@ -1009,7 +1009,7 @@ export class AppsService {
...
@@ -1009,7 +1009,7 @@ export class AppsService {
reject
(
error
);
reject
(
error
);
},
},
()
=>
{
()
=>
{
resolve
();
resolve
(
null
);
});
});
});
});
}
}
...
@@ -1263,7 +1263,7 @@ export class AppsService {
...
@@ -1263,7 +1263,7 @@ export class AppsService {
await
this
.
restoreFiles
(
appDir
,
backupDir
,
Array
.
from
(
difference
));
await
this
.
restoreFiles
(
appDir
,
backupDir
,
Array
.
from
(
difference
));
}
}
}
}
resolve
();
resolve
(
null
);
}
catch
(
e
)
{
}
catch
(
e
)
{
reject
(
e
);
reject
(
e
);
}
}
...
...
app/download.service.ts
View file @
2786c34b
...
@@ -171,7 +171,7 @@ export class DownloadService {
...
@@ -171,7 +171,7 @@ export class DownloadService {
if
(
allStatus
.
status
===
'
error
'
)
{
if
(
allStatus
.
status
===
'
error
'
)
{
throw
`Download Error: code
${
allStatus
.
errorCode
}
, message:
${
allStatus
.
errorMessage
}
`
;
throw
`Download Error: code
${
allStatus
.
errorCode
}
, message:
${
allStatus
.
errorMessage
}
`
;
}
else
if
(
allStatus
.
status
===
'
complete
'
)
{
}
else
if
(
allStatus
.
status
===
'
complete
'
)
{
resolve
();
resolve
(
null
);
subscription
.
unsubscribe
();
subscription
.
unsubscribe
();
}
else
{
}
else
{
callback
(
allStatus
);
callback
(
allStatus
);
...
...
app/shared/ComparableSet.ts
View file @
2786c34b
...
@@ -28,7 +28,7 @@ export class ComparableSet<T> extends Set<T> {
...
@@ -28,7 +28,7 @@ export class ComparableSet<T> extends Set<T> {
}
}
intersection
(
setB
:
Set
<
T
>
):
Set
<
T
>
{
intersection
(
setB
:
Set
<
T
>
):
Set
<
T
>
{
let
intersection
=
new
Set
();
let
intersection
=
new
Set
<
T
>
();
for
(
let
elem
of
setB
)
{
for
(
let
elem
of
setB
)
{
if
(
this
.
has
(
elem
))
{
if
(
this
.
has
(
elem
))
{
intersection
.
add
(
elem
);
intersection
.
add
(
elem
);
...
...
app/ygopro.component.ts
View file @
2786c34b
...
@@ -530,7 +530,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
...
@@ -530,7 +530,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
child
.
on
(
'
exit
'
,
async
(
code
,
signal
)
=>
{
child
.
on
(
'
exit
'
,
async
(
code
,
signal
)
=>
{
// error 触发之后还可能会触发exit,但是Promise只承认首次状态转移,因此这里无需重复判断是否已经error过。
// error 触发之后还可能会触发exit,但是Promise只承认首次状态转移,因此这里无需重复判断是否已经error过。
await
this
.
refresh
();
await
this
.
refresh
();
resolve
();
resolve
(
null
);
win
.
restore
();
win
.
restore
();
});
});
try
{
try
{
...
...
package-lock.json
0 → 100644
View file @
2786c34b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
tsconfig-aot.json
View file @
2786c34b
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"noImplicitAny"
:
true
,
"noImplicitAny"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
,
"strictNullChecks"
:
false
,
"strictNullChecks"
:
false
,
"strict"
:
false
,
"skipLibCheck"
:
true
"skipLibCheck"
:
true
},
},
"files"
:
[
"files"
:
[
...
...
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