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
29f1a5a8
Commit
29f1a5a8
authored
Apr 26, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix request
parent
1652968b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
67 deletions
+123
-67
.idea/workspace.xml
.idea/workspace.xml
+113
-59
package/main.ts
package/main.ts
+9
-7
src/routes/app.ts
src/routes/app.ts
+1
-1
No files found.
.idea/workspace.xml
View file @
29f1a5a8
...
...
@@ -3,7 +3,8 @@
<component
name=
"ChangeListManager"
>
<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$/src/models/App.ts"
afterPath=
"$PROJECT_DIR$/src/models/App.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/package/main.ts"
afterPath=
"$PROJECT_DIR$/package/main.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/app.ts"
afterPath=
"$PROJECT_DIR$/src/routes/app.ts"
/>
</list>
<ignored
path=
"mycard-console-backend.iws"
/>
<ignored
path=
".idea/workspace.xml"
/>
...
...
@@ -49,8 +50,8 @@
<file
leaf-file-name=
"app.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/app.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
90
"
>
<caret
line=
"
7"
column=
"51"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"2"
selection-end-line=
"7"
selection-end-column=
"51
"
/>
<state
relative-caret-position=
"
282
"
>
<caret
line=
"
46"
column=
"30"
lean-forward=
"false"
selection-start-line=
"46"
selection-start-column=
"30"
selection-end-line=
"46"
selection-end-column=
"30
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -59,17 +60,51 @@
<file
leaf-file-name=
"App.ts"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/models/App.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"257"
>
<caret
line=
"117"
column=
"0"
lean-forward=
"false"
selection-start-line=
"117"
selection-start-column=
"0"
selection-end-line=
"118"
selection-end-column=
"0"
/>
<state
relative-caret-position=
"167"
>
<caret
line=
"49"
column=
"26"
lean-forward=
"true"
selection-start-line=
"49"
selection-start-column=
"26"
selection-end-line=
"49"
selection-end-column=
"26"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"package.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/package.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1098"
>
<caret
line=
"66"
column=
"0"
lean-forward=
"false"
selection-start-line=
"66"
selection-start-column=
"0"
selection-end-line=
"67"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#39#74#0"
expanded=
"true"
/>
</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=
"1764"
>
<caret
line=
"110"
column=
"34"
lean-forward=
"false"
selection-start-line=
"110"
selection-start-column=
"34"
selection-end-line=
"110"
selection-end-column=
"34"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"main.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"432"
>
<caret
line=
"27"
column=
"40"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"40"
selection-end-line=
"27"
selection-end-column=
"40"
/>
<folding>
<element
signature=
"e#0#29#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"Instance.d.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/node_modules/iridium/dist/lib/Instance.d.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
119
"
>
<state
relative-caret-position=
"
558
"
>
<caret
line=
"40"
column=
"21"
lean-forward=
"false"
selection-start-line=
"40"
selection-start-column=
"13"
selection-end-line=
"40"
selection-end-column=
"21"
/>
<folding
/>
</state>
...
...
@@ -79,7 +114,7 @@
<file
leaf-file-name=
"Package.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/models/Package.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-671
"
>
<state
relative-caret-position=
"
54
"
>
<caret
line=
"3"
column=
"0"
lean-forward=
"false"
selection-start-line=
"3"
selection-start-column=
"0"
selection-end-line=
"4"
selection-end-column=
"0"
/>
<folding
/>
</state>
...
...
@@ -129,7 +164,6 @@
<find>
dep
</find>
<find>
fullPath
</find>
<find>
onFile
</find>
<find>
full
</find>
<find>
up
</find>
<find>
Iridium
</find>
<find>
iridium
</find>
...
...
@@ -137,6 +171,9 @@
<find>
bus
</find>
<find>
_original
</find>
<find>
original
</find>
<find>
full
</find>
<find>
Can not change AppID
</find>
<find>
release
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -159,7 +196,6 @@
<option
value=
"$PROJECT_DIR$/config.ts"
/>
<option
value=
"$PROJECT_DIR$/views/update.hbs"
/>
<option
value=
"$PROJECT_DIR$/.tslint"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/package/utils.ts"
/>
<option
value=
"$PROJECT_DIR$/.editorconfig"
/>
<option
value=
"$PROJECT_DIR$/tslint.json"
/>
...
...
@@ -173,12 +209,13 @@
<option
value=
"$PROJECT_DIR$/src/routes/package.ts"
/>
<option
value=
"$PROJECT_DIR$/server.ts"
/>
<option
value=
"$PROJECT_DIR$/package.json"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<option
value=
"$PROJECT_DIR$/entrypoint.sh"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.js"
/>
<option
value=
"$PROJECT_DIR$/Dockerfile"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
</list>
</option>
</component>
...
...
@@ -198,8 +235,8 @@
<handled-path
value=
"$PROJECT_DIR$/node_modules"
/>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"2
00
"
/>
<option
name=
"y"
value=
"12
52
"
/>
<option
name=
"x"
value=
"2
28
"
/>
<option
name=
"y"
value=
"12
31
"
/>
<option
name=
"width"
value=
"1232"
/>
<option
name=
"height"
value=
"777"
/>
</component>
...
...
@@ -222,6 +259,7 @@
</navigator>
<panes>
<pane
id=
"Scratches"
/>
<pane
id=
"Scope"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<PATH>
...
...
@@ -266,9 +304,22 @@
<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>
</pane>
<pane
id=
"Scope"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -438,12 +489,13 @@
<workItem
from=
"1493024480737"
duration=
"12252000"
/>
<workItem
from=
"1493107593448"
duration=
"867000"
/>
<workItem
from=
"1493174892830"
duration=
"25000"
/>
<workItem
from=
"1493174934848"
duration=
"2517000"
/>
<workItem
from=
"1493174934848"
duration=
"6205000"
/>
<workItem
from=
"1493198225466"
duration=
"1212000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"1
475
38000"
/>
<option
name=
"totallyTimeSpent"
value=
"1
524
38000"
/>
</component>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
...
...
@@ -455,7 +507,7 @@
</todo-panel>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"2
00"
y=
"1252
"
width=
"1232"
height=
"777"
extended-state=
"0"
/>
<frame
x=
"2
28"
y=
"1231
"
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"
/>
...
...
@@ -464,19 +516,19 @@
<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 Execution Console"
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=
"8"
side_tool=
"false"
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=
"true"
show_stripe_button=
"true"
weight=
"0.32846716"
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=
"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=
"false"
show_stripe_button=
"true"
weight=
"0.3620438"
sideWeight=
"0.5"
order=
"7"
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=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
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"
/>
<window_info
id=
"Message"
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=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Commander"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Inspection"
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=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Thumbnails"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32990867"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Hierarchy"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.091216214"
sideWeight=
"0.5"
order=
"2"
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.328
76712
"
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.328
46716
"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Ant Build"
active=
"false"
anchor=
"right"
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"
/>
</layout>
</component>
...
...
@@ -641,13 +693,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"231"
>
<caret
line=
"61"
column=
"44"
lean-forward=
"true"
selection-start-line=
"61"
selection-start-column=
"44"
selection-end-line=
"61"
selection-end-column=
"44"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/utils.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"72"
>
...
...
@@ -693,13 +738,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/package.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"36"
>
<caret
line=
"2"
column=
"42"
lean-forward=
"true"
selection-start-line=
"2"
selection-start-column=
"42"
selection-end-line=
"2"
selection-end-column=
"42"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/yarn.lock"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
...
...
@@ -742,13 +780,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"191"
>
<caret
line=
"27"
column=
"2"
lean-forward=
"true"
selection-start-line=
"27"
selection-start-column=
"2"
selection-end-line=
"27"
selection-end-column=
"2"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"216"
>
...
...
@@ -760,10 +791,6 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"18"
>
<caret
line=
"50"
column=
"3"
lean-forward=
"false"
selection-start-line=
"50"
selection-start-column=
"3"
selection-end-line=
"50"
selection-end-column=
"3"
/>
<folding>
<element
signature=
"e#77#104#0"
expanded=
"false"
/>
<element
signature=
"e#387#427#0"
expanded=
"false"
/>
</folding>
</state>
</provider>
</entry>
...
...
@@ -791,17 +818,9 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/app.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"7"
column=
"51"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"2"
selection-end-line=
"7"
selection-end-column=
"51"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/models/Package.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-671
"
>
<state
relative-caret-position=
"
54
"
>
<caret
line=
"3"
column=
"0"
lean-forward=
"false"
selection-start-line=
"3"
selection-start-column=
"0"
selection-end-line=
"4"
selection-end-column=
"0"
/>
<folding
/>
</state>
...
...
@@ -811,7 +830,6 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"137"
>
<caret
line=
"998"
column=
"4"
lean-forward=
"false"
selection-start-line=
"998"
selection-start-column=
"4"
selection-end-line=
"998"
selection-end-column=
"4"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -825,16 +843,52 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/node_modules/iridium/dist/lib/Instance.d.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
119
"
>
<state
relative-caret-position=
"
558
"
>
<caret
line=
"40"
column=
"21"
lean-forward=
"false"
selection-start-line=
"40"
selection-start-column=
"13"
selection-end-line=
"40"
selection-end-column=
"21"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1764"
>
<caret
line=
"110"
column=
"34"
lean-forward=
"false"
selection-start-line=
"110"
selection-start-column=
"34"
selection-end-line=
"110"
selection-end-column=
"34"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"432"
>
<caret
line=
"27"
column=
"40"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"40"
selection-end-line=
"27"
selection-end-column=
"40"
/>
<folding>
<element
signature=
"e#0#29#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/package.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1098"
>
<caret
line=
"66"
column=
"0"
lean-forward=
"false"
selection-start-line=
"66"
selection-start-column=
"0"
selection-end-line=
"67"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#39#74#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/app.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"282"
>
<caret
line=
"46"
column=
"30"
lean-forward=
"false"
selection-start-line=
"46"
selection-start-column=
"30"
selection-end-line=
"46"
selection-end-column=
"30"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/models/App.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
25
7"
>
<caret
line=
"
117"
column=
"0"
lean-forward=
"false"
selection-start-line=
"117"
selection-start-column=
"0"
selection-end-line=
"118"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"
16
7"
>
<caret
line=
"
49"
column=
"26"
lean-forward=
"true"
selection-start-line=
"49"
selection-start-column=
"26"
selection-end-line=
"49"
selection-end-column=
"26
"
/>
<folding
/>
</state>
</provider>
...
...
package/main.ts
View file @
29f1a5a8
...
...
@@ -20,12 +20,14 @@ export async function bundle(...args) {
const
archive_path
=
path
.
join
(
release_path
,
'
downloads
'
,
package_id
);
const
package_path
=
path
.
join
(
app_path
,
package_id
);
const
uploadFile_path
=
path
.
join
(
upload_path
,
package_id
);
const
full_path
=
path
.
join
(
archive_path
,
'
full
'
);
const
sand_path
=
path
.
join
(
archive_path
,
'
sand
'
);
// const full_path = path.join(archive_path, 'full');
// const sand_path = path.join(archive_path, 'sand');
const
dist_path
=
path
.
join
(
archive_path
,
'
dist
'
);
await
fs
.
ensureDirAsync
(
archive_path
);
await
fs
.
ensureDirAsync
(
package_path
);
await
fs
.
ensureDirAsync
(
full_path
);
await
fs
.
ensureDirAsync
(
sand_path
);
// await fs.ensureDirAsync(full_path);
// await fs.ensureDirAsync(sand_path);
await
fs
.
ensureDirAsync
(
dist_path
);
// untar upload package
await
untar
(
uploadFile_path
,
package_path
);
...
...
@@ -45,14 +47,14 @@ export async function bundle(...args) {
size
:
(
await
fs
.
statAsync
(
file
)).
size
});
let
sand_file
=
path
.
join
(
sand
_path
,
`
${
file_hash
}
.tar.gz`
);
let
sand_file
=
path
.
join
(
dist
_path
,
`
${
file_hash
}
.tar.gz`
);
await
archiveSingle
(
sand_file
,
[
file
],
package_path
);
let
sand_hash
=
await
caculateSHA256
(
sand_file
);
archives
.
set
(
sand_file
,
{
path
:
path
.
relative
(
sand
_path
,
sand_file
),
path
:
path
.
relative
(
dist
_path
,
sand_file
),
hash
:
sand_hash
,
size
:
(
await
fs
.
statAsync
(
sand_file
)).
size
});
...
...
@@ -66,7 +68,7 @@ export async function bundle(...args) {
},
});
let
filePath
=
path
.
join
(
full
_path
,
`
${
package_id
}
.tar.gz`
);
let
filePath
=
path
.
join
(
dist
_path
,
`
${
package_id
}
.tar.gz`
);
await
fs
.
removeAsync
(
filePath
);
await
archive
(
filePath
,
await
fs
.
readdirAsync
(
package_path
),
package_path
);
...
...
src/routes/app.ts
View file @
29f1a5a8
...
...
@@ -49,7 +49,7 @@ router.patch('/v1/app/:id', async (ctx: Context, next) => {
if
(
!
app
)
{
return
ctx
.
throw
(
400
,
`App
${
ctx
.
params
.
id
}
Not Found `
);
}
if
(
ctx
.
request
.
body
.
id
||
ctx
.
request
.
body
.
id
!==
app
!
.
id
)
{
if
(
!
ctx
.
request
.
body
.
id
||
ctx
.
request
.
body
.
id
!==
app
.
id
)
{
ctx
.
throw
(
400
,
`Can not change AppID`
);
}
...
...
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