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
b2c1b370
Commit
b2c1b370
authored
May 02, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete
parent
34a9559e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
64 deletions
+114
-64
.idea/workspace.xml
.idea/workspace.xml
+108
-61
config.ts
config.ts
+1
-1
package/main.ts
package/main.ts
+1
-0
src/routes/upload.ts
src/routes/upload.ts
+4
-2
No files found.
.idea/workspace.xml
View file @
b2c1b370
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f0cbce64-0ebc-4f60-8c2d-2fe9e214a8c0"
name=
"Default"
comment=
""
>
<list
default=
"true"
id=
"f0cbce64-0ebc-4f60-8c2d-2fe9e214a8c0"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/config.ts"
afterPath=
"$PROJECT_DIR$/config.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/package/main.ts"
afterPath=
"$PROJECT_DIR$/package/main.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/upload.ts"
afterPath=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/upload.ts"
afterPath=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
</list>
</list>
<ignored
path=
"mycard-console-backend.iws"
/>
<ignored
path=
"mycard-console-backend.iws"
/>
...
@@ -29,11 +30,11 @@
...
@@ -29,11 +30,11 @@
</component>
</component>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"migrate.ts"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"migrate.ts"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
732
"
>
<state
relative-caret-position=
"
239
"
>
<caret
line=
"1
34"
column=
"14"
lean-forward=
"false"
selection-start-line=
"134"
selection-start-column=
"14"
selection-end-line=
"134"
selection-end-column=
"14
"
/>
<caret
line=
"1
25"
column=
"63"
lean-forward=
"true"
selection-start-line=
"125"
selection-start-column=
"63"
selection-end-line=
"125"
selection-end-column=
"63
"
/>
<folding>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -44,30 +45,40 @@
...
@@ -44,30 +45,40 @@
<file
leaf-file-name=
"server.ts"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"server.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/server.ts"
>
<entry
file=
"file://$PROJECT_DIR$/server.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-320
"
>
<state
relative-caret-position=
"
436
"
>
<caret
line=
"
31"
column=
"7"
lean-forward=
"false"
selection-start-line=
"31"
selection-start-column=
"7"
selection-end-line=
"31"
selection-end-column=
"7
"
/>
<caret
line=
"
73"
column=
"0"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"0"
selection-end-line=
"73"
selection-end-column=
"0
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"
main
.ts"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"
utils
.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/package/
main
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/package/
utils
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"409"
>
<state
relative-caret-position=
"-1473"
>
<caret
line=
"85"
column=
"21"
lean-forward=
"false"
selection-start-line=
"85"
selection-start-column=
"21"
selection-end-line=
"85"
selection-end-column=
"21"
/>
<caret
line=
"12"
column=
"15"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"15"
selection-end-line=
"12"
selection-end-column=
"15"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"upload.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-69"
>
<caret
line=
"207"
column=
"31"
lean-forward=
"false"
selection-start-line=
"207"
selection-start-column=
"31"
selection-end-line=
"207"
selection-end-column=
"31"
/>
<folding>
<folding>
<element
signature=
"e#0#2
9
#0"
expanded=
"true"
/>
<element
signature=
"e#0#2
8
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"u
pload.ts"
pinned=
"false"
current-in-tab=
"tru
e"
>
<file
leaf-file-name=
"u
tils.ts"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/
routes/upload
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/src/
utils
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"29
8
"
>
<state
relative-caret-position=
"29
1
"
>
<caret
line=
"
201"
column=
"28"
lean-forward=
"true"
selection-start-line=
"201"
selection-start-column=
"28"
selection-end-line=
"201"
selection-end-column=
"28
"
/>
<caret
line=
"
32"
column=
"7"
lean-forward=
"true"
selection-start-line=
"32"
selection-start-column=
"7"
selection-end-line=
"32"
selection-end-column=
"7
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
...
@@ -86,7 +97,6 @@
...
@@ -86,7 +97,6 @@
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find>
parent
</find>
<find>
tags
</find>
<find>
tags
</find>
<find>
tag
</find>
<find>
tag
</find>
<find>
old
</find>
<find>
old
</find>
...
@@ -111,11 +121,12 @@
...
@@ -111,11 +121,12 @@
<find>
uploadFile_
</find>
<find>
uploadFile_
</find>
<find>
fs.stat
</find>
<find>
fs.stat
</find>
<find>
fs.rename
</find>
<find>
fs.rename
</find>
<find>
console.log
</find>
<find>
fs
</find>
<find>
fs
</find>
<find>
fs.
</find>
<find>
fs.
</find>
<find>
close
</find>
<find>
close
</find>
<find>
ctx
</find>
<find>
ctx
</find>
<find>
console.log
</find>
<find>
dist_path
</find>
</findStrings>
</findStrings>
</component>
</component>
<component
name=
"Git.Settings"
>
<component
name=
"Git.Settings"
>
...
@@ -157,12 +168,12 @@
...
@@ -157,12 +168,12 @@
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/package/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/package/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/aria2.conf"
/>
<option
value=
"$PROJECT_DIR$/aria2.conf"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/src/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/src/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/src/serives/download.ts"
/>
<option
value=
"$PROJECT_DIR$/src/serives/download.ts"
/>
<option
value=
"$PROJECT_DIR$/migrate.ts"
/>
<option
value=
"$PROJECT_DIR$/config.ts"
/>
<option
value=
"$PROJECT_DIR$/config.ts"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/migrate.ts"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -233,6 +244,38 @@
...
@@ -233,6 +244,38 @@
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH_ELEMENT>
</PATH>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"moecube-console"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"moecube-console"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"src"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"routes"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"moecube-console"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"moecube-console"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"package"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
</subPane>
</subPane>
</pane>
</pane>
</panes>
</panes>
...
@@ -408,12 +451,12 @@
...
@@ -408,12 +451,12 @@
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493372010655"
duration=
"3472000"
/>
<workItem
from=
"1493372010655"
duration=
"3472000"
/>
<workItem
from=
"1493692283332"
duration=
"
18515
000"
/>
<workItem
from=
"1493692283332"
duration=
"
20546
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"22
0286
000"
/>
<option
name=
"totallyTimeSpent"
value=
"22
2317
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -426,6 +469,7 @@
...
@@ -426,6 +469,7 @@
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"55"
y=
"23"
width=
"1377"
height=
"872"
extended-state=
"0"
/>
<frame
x=
"55"
y=
"23"
width=
"1377"
height=
"872"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<layout>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"DB Browser"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"DB Browser"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
...
@@ -433,7 +477,7 @@
...
@@ -433,7 +477,7 @@
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"true"
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=
"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=
"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=
"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=
"Terminal"
active=
"
tru
e"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.31794873"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
fals
e"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.31794873"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"TypeScript"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32820514"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"TypeScript"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32820514"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.14011799"
sideWeight=
"0.49384886"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.14011799"
sideWeight=
"0.49384886"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Find"
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=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Find"
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=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
...
@@ -669,13 +713,6 @@
...
@@ -669,13 +713,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/app.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"240"
>
<caret
line=
"81"
column=
"17"
lean-forward=
"true"
selection-start-line=
"81"
selection-start-column=
"17"
selection-end-line=
"81"
selection-end-column=
"17"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/inversify.config.ts"
>
<entry
file=
"file://$PROJECT_DIR$/src/inversify.config.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<state
relative-caret-position=
"90"
>
...
@@ -774,81 +811,91 @@
...
@@ -774,81 +811,91 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/s
erver
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/s
rc/routes/package
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-320
"
>
<state
relative-caret-position=
"
187
"
>
<caret
line=
"
31"
column=
"7"
lean-forward=
"false"
selection-start-line=
"31"
selection-start-column=
"7"
selection-end-line=
"31"
selection-end-column=
"7
"
/>
<caret
line=
"
209"
column=
"36"
lean-forward=
"false"
selection-start-line=
"209"
selection-start-column=
"36"
selection-end-line=
"209"
selection-end-column=
"36
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
package/main
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
src/serives/Queue
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"409"
>
<state
relative-caret-position=
"-51"
>
<caret
line=
"85"
column=
"21"
lean-forward=
"false"
selection-start-line=
"85"
selection-start-column=
"21"
selection-end-line=
"85"
selection-end-column=
"21"
/>
<caret
line=
"11"
column=
"3"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"3"
selection-end-line=
"11"
selection-end-column=
"3"
/>
<folding>
<folding
/>
<element
signature=
"e#0#29#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
src/routes/package
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
config
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
187
"
>
<state
relative-caret-position=
"
216
"
>
<caret
line=
"
209"
column=
"36"
lean-forward=
"false"
selection-start-line=
"209"
selection-start-column=
"36"
selection-end-line=
"209"
selection-end-column=
"36
"
/>
<caret
line=
"
12"
column=
"51"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"51"
selection-end-line=
"12"
selection-end-column=
"51
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/
utils
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/src/
routes/app
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
18
"
>
<state
relative-caret-position=
"
402
"
>
<caret
line=
"
2"
column=
"0"
lean-forward=
"true"
selection-start-line=
"2"
selection-start-column=
"0"
selection-end-line=
"2"
selection-end-column=
"0
"
/>
<caret
line=
"
90"
column=
"25"
lean-forward=
"false"
selection-start-line=
"90"
selection-start-column=
"25"
selection-end-line=
"90"
selection-end-column=
"25
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/
utils
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/package/
main
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"162"
>
<state
relative-caret-position=
"337"
>
<caret
line=
"12"
column=
"15"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"15"
selection-end-line=
"12"
selection-end-column=
"15"
/>
<caret
line=
"83"
column=
"10"
lean-forward=
"true"
selection-start-line=
"83"
selection-start-column=
"10"
selection-end-line=
"83"
selection-end-column=
"10"
/>
<folding
/>
<folding>
<element
signature=
"e#0#29#0"
expanded=
"true"
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/s
rc/serives/Queue
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/s
erver
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-51
"
>
<state
relative-caret-position=
"
436
"
>
<caret
line=
"
11"
column=
"3"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"3"
selection-end-line=
"11"
selection-end-column=
"3
"
/>
<caret
line=
"
73"
column=
"0"
lean-forward=
"true"
selection-start-line=
"73"
selection-start-column=
"0"
selection-end-line=
"73"
selection-end-column=
"0
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
migrate
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
src/routes/upload
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
732
"
>
<state
relative-caret-position=
"
-69
"
>
<caret
line=
"
134"
column=
"14"
lean-forward=
"false"
selection-start-line=
"134"
selection-start-column=
"14"
selection-end-line=
"134"
selection-end-column=
"14
"
/>
<caret
line=
"
207"
column=
"31"
lean-forward=
"false"
selection-start-line=
"207"
selection-start-column=
"31"
selection-end-line=
"207"
selection-end-column=
"31
"
/>
<folding>
<folding>
<element
signature=
"e#0#2
6
#0"
expanded=
"true"
/>
<element
signature=
"e#0#2
8
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
config
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
src/utils
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
16
"
>
<state
relative-caret-position=
"2
91
"
>
<caret
line=
"
12"
column=
"51"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"51"
selection-end-line=
"12"
selection-end-column=
"51
"
/>
<caret
line=
"
32"
column=
"7"
lean-forward=
"true"
selection-start-line=
"32"
selection-start-column=
"7"
selection-end-line=
"32"
selection-end-column=
"7
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
src/routes/upload
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
package/utils
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
298
"
>
<state
relative-caret-position=
"
-1473
"
>
<caret
line=
"
201"
column=
"28"
lean-forward=
"true"
selection-start-line=
"201"
selection-start-column=
"28"
selection-end-line=
"201"
selection-end-column=
"28
"
/>
<caret
line=
"
12"
column=
"15"
lean-forward=
"true"
selection-start-line=
"12"
selection-start-column=
"15"
selection-end-line=
"12"
selection-end-column=
"15
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/migrate.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"239"
>
<caret
line=
"125"
column=
"63"
lean-forward=
"true"
selection-start-line=
"125"
selection-start-column=
"63"
selection-end-line=
"125"
selection-end-column=
"63"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
</component>
</project>
</project>
\ No newline at end of file
config.ts
View file @
b2c1b370
...
@@ -7,7 +7,7 @@ export default {
...
@@ -7,7 +7,7 @@ export default {
upload_path
:
path
.
join
(
__dirname
,
'
./test/upload
'
),
upload_path
:
path
.
join
(
__dirname
,
'
./test/upload
'
),
download_path
:
path
.
join
(
__dirname
,
'
./test/release/downloads
'
),
download_path
:
path
.
join
(
__dirname
,
'
./test/release/downloads
'
),
new_apps_json
:
`
${
baseUrl
}
/v2/apps`
,
new_apps_json
:
`
${
baseUrl
}
/v2/apps`
,
upload_url
:
`
${
base
Url
}
/v1/upload/packageUrl`
,
upload_url
:
`
${
test
Url
}
/v1/upload/packageUrl`
,
old_apps_json
:
'
https://api.moecube.com/apps.json
'
,
old_apps_json
:
'
https://api.moecube.com/apps.json
'
,
new_package
:
`
${
baseUrl
}
/v1/package/`
,
new_package
:
`
${
baseUrl
}
/v1/package/`
,
new_app
:
(
appId
)
=>
`
${
baseUrl
}
/v1/app/
${
appId
}
`
,
new_app
:
(
appId
)
=>
`
${
baseUrl
}
/v1/app/
${
appId
}
`
,
...
...
package/main.ts
View file @
b2c1b370
...
@@ -82,6 +82,7 @@ export async function bundle(...args) {
...
@@ -82,6 +82,7 @@ export async function bundle(...args) {
await
fs
.
removeAsync
(
package_path
);
await
fs
.
removeAsync
(
package_path
);
return
{
return
{
archivePath
:
archive_path
,
distPath
:
dist_path
,
distPath
:
dist_path
,
files
:
Array
.
from
(
files
.
values
()),
files
:
Array
.
from
(
files
.
values
()),
archives
:
Array
.
from
(
archives
.
values
()),
archives
:
Array
.
from
(
archives
.
values
()),
...
...
src/routes/upload.ts
View file @
b2c1b370
...
@@ -117,7 +117,7 @@ export const UploadPackage = async (ctx: Context) => {
...
@@ -117,7 +117,7 @@ export const UploadPackage = async (ctx: Context) => {
await
pack
!
.
save
();
await
pack
!
.
save
();
// 上传完,干掉本地目录
// 上传完,干掉本地目录
await
fs
.
removeAsync
(
bundled
.
dist
Path
);
await
fs
.
removeAsync
(
bundled
.
archive
Path
);
}
catch
(
e
)
{
}
catch
(
e
)
{
...
@@ -187,12 +187,13 @@ const uploadPackageUrl = async (ctx: Context) => {
...
@@ -187,12 +187,13 @@ const uploadPackageUrl = async (ctx: Context) => {
await
pack
!
.
save
();
await
pack
!
.
save
();
// 上传完,干掉本地目录
// 上传完,干掉本地目录
await
fs
.
removeAsync
(
bundled
.
dist
Path
);
await
fs
.
removeAsync
(
bundled
.
archive
Path
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
trace
(
e
);
console
.
trace
(
e
);
pack
!
.
status
=
'
failed
'
;
pack
!
.
status
=
'
failed
'
;
await
pack
!
.
save
();
await
pack
!
.
save
();
}
}
await
downloader
.
close
();
}
}
};
};
...
@@ -204,6 +205,7 @@ const uploadPackageUrl = async (ctx: Context) => {
...
@@ -204,6 +205,7 @@ const uploadPackageUrl = async (ctx: Context) => {
if
(
ctx
.
request
.
body
.
url
==
url
.
uri
)
{
if
(
ctx
.
request
.
body
.
url
==
url
.
uri
)
{
pack
!
.
status
=
'
failed
'
;
pack
!
.
status
=
'
failed
'
;
await
pack
!
.
save
();
await
pack
!
.
save
();
await
downloader
.
close
();
console
.
log
(
err
);
console
.
log
(
err
);
}
}
};
};
...
...
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