Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
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
MyCard
console
Commits
1d3da742
Commit
1d3da742
authored
Apr 28, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use removeAsync
parent
d64292d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
43 deletions
+36
-43
.idea/workspace.xml
.idea/workspace.xml
+28
-40
migrate.ts
migrate.ts
+6
-1
src/routes/upload.ts
src/routes/upload.ts
+2
-2
No files found.
.idea/workspace.xml
View file @
1d3da742
...
...
@@ -32,8 +32,8 @@
<file
leaf-file-name=
"migrate.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
250
"
>
<caret
line=
"
71"
column=
"7"
lean-forward=
"true"
selection-start-line=
"71"
selection-start-column=
"7"
selection-end-line=
"71"
selection-end-column=
"7
"
/>
<state
relative-caret-position=
"
-369
"
>
<caret
line=
"
27"
column=
"9"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"9"
selection-end-line=
"27"
selection-end-column=
"9
"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
...
...
@@ -51,11 +51,11 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"test.ts"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"test.ts"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/test.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-767
"
>
<caret
line=
"
25"
column=
"72"
lean-forward=
"false"
selection-start-line=
"25"
selection-start-column=
"72"
selection-end-line=
"25"
selection-end-column=
"7
2"
/>
<state
relative-caret-position=
"
288
"
>
<caret
line=
"
16"
column=
"82"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"82"
selection-end-line=
"16"
selection-end-column=
"8
2"
/>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
...
...
@@ -64,18 +64,6 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"upload.ts"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"256"
>
<caret
line=
"185"
column=
"0"
lean-forward=
"true"
selection-start-line=
"185"
selection-start-column=
"0"
selection-end-line=
"185"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component
name=
"FileTemplateManagerImpl"
>
...
...
@@ -89,7 +77,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
_original
</find>
<find>
original
</find>
<find>
full
</find>
<find>
Can not change AppID
</find>
...
...
@@ -119,6 +106,7 @@
<find>
。gz
</find>
<find>
.gz
</find>
<find>
remove
</find>
<find>
unlink
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -184,7 +172,7 @@
<handled-path
value=
"$PROJECT_DIR$/node_modules"
/>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
228
"
/>
<option
name=
"x"
value=
"
376
"
/>
<option
name=
"y"
value=
"1103"
/>
<option
name=
"width"
value=
"1232"
/>
<option
name=
"height"
value=
"777"
/>
...
...
@@ -409,12 +397,12 @@
<workItem
from=
"1493174934848"
duration=
"6205000"
/>
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493372010655"
duration=
"1
27
2000"
/>
<workItem
from=
"1493372010655"
duration=
"1
78
2000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
19957
1000"
/>
<option
name=
"totallyTimeSpent"
value=
"
20008
1000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -426,7 +414,7 @@
</todo-panel>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
228
"
y=
"1103"
width=
"1232"
height=
"777"
extended-state=
"0"
/>
<frame
x=
"
376
"
y=
"1103"
width=
"1232"
height=
"777"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"TypeScript"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32846716"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -438,7 +426,7 @@
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32975295"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.43941605"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.3620438"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.3620438"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.23725356"
sideWeight=
"0.50615114"
order=
"2"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -837,41 +825,41 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
test
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
node_modules/@types/fs-extra-promise/index.d
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-767"
>
<caret
line=
"25"
column=
"72"
lean-forward=
"false"
selection-start-line=
"25"
selection-start-column=
"72"
selection-end-line=
"25"
selection-end-column=
"72"
/>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"220"
>
<caret
line=
"64"
column=
"24"
lean-forward=
"false"
selection-start-line=
"64"
selection-start-column=
"24"
selection-end-line=
"64"
selection-end-column=
"24"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
250
"
>
<caret
line=
"
71"
column=
"7"
lean-forward=
"true"
selection-start-line=
"71"
selection-start-column=
"7"
selection-end-line=
"71"
selection-end-column=
"7
"
/>
<state
relative-caret-position=
"
-369
"
>
<caret
line=
"
27"
column=
"9"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"9"
selection-end-line=
"27"
selection-end-column=
"9
"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
node_modules/@types/fs-extra-promise/index.
d.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
src/routes/uploa
d.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"64"
column=
"24"
lean-forward=
"false"
selection-start-line=
"64"
selection-start-column=
"24"
selection-end-line=
"64"
selection-end-column=
"24"
/>
<folding
/>
<state
relative-caret-position=
"257"
>
<caret
line=
"119"
column=
"51"
lean-forward=
"true"
selection-start-line=
"119"
selection-start-column=
"51"
selection-end-line=
"119"
selection-end-column=
"51"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
src/routes/upload
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
test
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
56
"
>
<caret
line=
"1
85"
column=
"0"
lean-forward=
"true"
selection-start-line=
"185"
selection-start-column=
"0"
selection-end-line=
"185"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"2
88
"
>
<caret
line=
"1
6"
column=
"82"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"82"
selection-end-line=
"16"
selection-end-column=
"82
"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
migrate.ts
View file @
1d3da742
...
...
@@ -105,10 +105,15 @@ async function main() {
let
{
data
}
=
await
axios
.
get
(
config
.
old_apps_json
);
try
{
for
(
let
app
of
_
.
sampleSize
(
data
,
2
)
)
{
for
(
let
app
of
data
)
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
apps
[
app
[
'
id
'
]]
=
app
;
await
createApp
(
app
)
}
}
for
(
let
app
of
_
.
sampleSize
(
data
,
2
))
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
await
updateApp
(
app
);
}
}
...
...
src/routes/upload.ts
View file @
1d3da742
...
...
@@ -117,7 +117,7 @@ export const UploadPackage = async (ctx: Context) => {
await
pack
!
.
save
();
// 上传完,干掉本地目录
await
fs
.
unlink
Async
(
bundled
.
distPath
);
await
fs
.
remove
Async
(
bundled
.
distPath
);
}
catch
(
e
)
{
...
...
@@ -182,7 +182,7 @@ const uploadPackageUrl = async (ctx: Context) => {
await
pack
!
.
save
();
// 上传完,干掉本地目录
await
fs
.
unlink
Async
(
bundled
.
distPath
);
await
fs
.
remove
Async
(
bundled
.
distPath
);
}
catch
(
e
)
{
console
.
log
(
e
);
...
...
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