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
d8b7b157
Commit
d8b7b157
authored
Apr 28, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1d3da742
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
126 additions
and
68 deletions
+126
-68
.idea/workspace.xml
.idea/workspace.xml
+116
-50
config.ts
config.ts
+1
-1
migrate.ts
migrate.ts
+8
-4
package/main.ts
package/main.ts
+1
-1
src/routes/upload.ts
src/routes/upload.ts
+0
-1
views/update.hbs
views/update.hbs
+0
-11
No files found.
.idea/workspace.xml
View file @
d8b7b157
...
@@ -5,7 +5,11 @@
...
@@ -5,7 +5,11 @@
</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=
"DELETED"
beforePath=
"$PROJECT_DIR$/views/update.hbs"
afterPath=
""
/>
<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$/migrate.ts"
afterPath=
"$PROJECT_DIR$/migrate.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/migrate.ts"
afterPath=
"$PROJECT_DIR$/migrate.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 +33,11 @@
...
@@ -29,11 +33,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=
"
-369
"
>
<state
relative-caret-position=
"
182
"
>
<caret
line=
"
27"
column=
"9"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"9"
selection-end-line=
"27"
selection-end-column=
"9
"
/>
<caret
line=
"
119"
column=
"62"
lean-forward=
"true"
selection-start-line=
"119"
selection-start-column=
"62"
selection-end-line=
"119"
selection-end-column=
"62
"
/>
<folding>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -51,11 +55,11 @@
...
@@ -51,11 +55,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"test.ts"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"test.ts"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/test.ts"
>
<entry
file=
"file://$PROJECT_DIR$/test.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
288
"
>
<state
relative-caret-position=
"
0
"
>
<caret
line=
"
16"
column=
"82"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"82"
selection-end-line=
"16"
selection-end-column=
"82
"
/>
<caret
line=
"
0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"1"
selection-end-column=
"0
"
/>
<folding>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
...
@@ -64,6 +68,48 @@
...
@@ -64,6 +68,48 @@
</provider>
</provider>
</entry>
</entry>
</file>
</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=
"231"
>
<caret
line=
"211"
column=
"5"
lean-forward=
"false"
selection-start-line=
"211"
selection-start-column=
"5"
selection-end-line=
"211"
selection-end-column=
"5"
/>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"config.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/config.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"126"
>
<caret
line=
"7"
column=
"66"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"66"
selection-end-line=
"7"
selection-end-column=
"66"
/>
<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=
"679"
>
<caret
line=
"82"
column=
"36"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"36"
selection-end-line=
"82"
selection-end-column=
"36"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"utils.ts"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/utils.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"34"
>
<caret
line=
"23"
column=
"19"
lean-forward=
"false"
selection-start-line=
"23"
selection-start-column=
"19"
selection-end-line=
"23"
selection-end-column=
"19"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
</leaf>
</leaf>
</component>
</component>
<component
name=
"FileTemplateManagerImpl"
>
<component
name=
"FileTemplateManagerImpl"
>
...
@@ -77,7 +123,6 @@
...
@@ -77,7 +123,6 @@
</component>
</component>
<component
name=
"FindInProjectRecents"
>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<findStrings>
<find>
original
</find>
<find>
full
</find>
<find>
full
</find>
<find>
Can not change AppID
</find>
<find>
Can not change AppID
</find>
<find>
release
</find>
<find>
release
</find>
...
@@ -96,7 +141,6 @@
...
@@ -96,7 +141,6 @@
<find>
old
</find>
<find>
old
</find>
<find>
metalink
</find>
<find>
metalink
</find>
<find>
old_meta
</find>
<find>
old_meta
</find>
<find>
console.log
</find>
<find>
language
</find>
<find>
language
</find>
<find>
languagepa
</find>
<find>
languagepa
</find>
<find>
dow
</find>
<find>
dow
</find>
...
@@ -105,8 +149,10 @@
...
@@ -105,8 +149,10 @@
<find>
ext
</find>
<find>
ext
</find>
<find>
。gz
</find>
<find>
。gz
</find>
<find>
.gz
</find>
<find>
.gz
</find>
<find>
remove
</find>
<find>
unlink
</find>
<find>
unlink
</find>
<find>
console.log
</find>
<find>
fs.remove
</find>
<find>
remove
</find>
</findStrings>
</findStrings>
</component>
</component>
<component
name=
"Git.Settings"
>
<component
name=
"Git.Settings"
>
...
@@ -147,12 +193,12 @@
...
@@ -147,12 +193,12 @@
<option
value=
"$PROJECT_DIR$/test.ts"
/>
<option
value=
"$PROJECT_DIR$/test.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/config.ts"
/>
<option
value=
"$PROJECT_DIR$/package/main.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$/migrate.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>
...
@@ -219,7 +265,25 @@
...
@@ -219,7 +265,25 @@
<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_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"package"
/>
<option
name=
"myItemId"
value=
"test"
/>
<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=
"test"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"release"
/>
<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>
...
@@ -397,12 +461,12 @@
...
@@ -397,12 +461,12 @@
<workItem
from=
"1493174934848"
duration=
"6205000"
/>
<workItem
from=
"1493174934848"
duration=
"6205000"
/>
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493198225466"
duration=
"47067000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493371982129"
duration=
"6000"
/>
<workItem
from=
"1493372010655"
duration=
"
1782
000"
/>
<workItem
from=
"1493372010655"
duration=
"
3317
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"20
0081
000"
/>
<option
name=
"totallyTimeSpent"
value=
"20
1616
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -415,10 +479,9 @@
...
@@ -415,10 +479,9 @@
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"376"
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>
<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"
/>
<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"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.1577209"
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=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.1577209"
sideWeight=
"0.49384886"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<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"
/>
<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=
"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"
/>
...
@@ -426,7 +489,7 @@
...
@@ -426,7 +489,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=
"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=
"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=
"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=
"
fals
e"
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=
"Terminal"
active=
"
tru
e"
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=
"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=
"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=
"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"
/>
...
@@ -719,13 +782,6 @@
...
@@ -719,13 +782,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"234"
>
<caret
line=
"13"
column=
"26"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"26"
selection-end-line=
"13"
selection-end-column=
"26"
/>
</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"
>
...
@@ -775,13 +831,6 @@
...
@@ -775,13 +831,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"142"
>
<caret
line=
"82"
column=
"36"
lean-forward=
"true"
selection-start-line=
"82"
selection-start-column=
"36"
selection-end-line=
"82"
selection-end-column=
"36"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/utils.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=
"162"
>
<state
relative-caret-position=
"162"
>
...
@@ -804,13 +853,6 @@
...
@@ -804,13 +853,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"216"
>
<caret
line=
"12"
column=
"51"
lean-forward=
"false"
selection-start-line=
"12"
selection-start-column=
"51"
selection-end-line=
"12"
selection-end-column=
"51"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/node_modules/@types/mime/index.d.ts"
>
<entry
file=
"file://$PROJECT_DIR$/node_modules/@types/mime/index.d.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"144"
>
<state
relative-caret-position=
"144"
>
...
@@ -833,33 +875,57 @@
...
@@ -833,33 +875,57 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
migrate
.ts"
>
<entry
file=
"file://$PROJECT_DIR$/
test
.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-369
"
>
<state
relative-caret-position=
"
0
"
>
<caret
line=
"
27"
column=
"9"
lean-forward=
"false"
selection-start-line=
"27"
selection-start-column=
"9"
selection-end-line=
"27"
selection-end-column=
"9
"
/>
<caret
line=
"
0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"1"
selection-end-column=
"0
"
/>
<folding>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"126"
>
<caret
line=
"7"
column=
"66"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"66"
selection-end-line=
"7"
selection-end-column=
"66"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/package/main.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"679"
>
<caret
line=
"82"
column=
"36"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"36"
selection-end-line=
"82"
selection-end-column=
"36"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.ts"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"34"
>
<caret
line=
"23"
column=
"19"
lean-forward=
"false"
selection-start-line=
"23"
selection-start-column=
"19"
selection-end-line=
"23"
selection-end-column=
"19"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/upload.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=
"2
57
"
>
<state
relative-caret-position=
"2
31
"
>
<caret
line=
"
119"
column=
"51"
lean-forward=
"true"
selection-start-line=
"119"
selection-start-column=
"51"
selection-end-line=
"119"
selection-end-column=
"51
"
/>
<caret
line=
"
211"
column=
"5"
lean-forward=
"false"
selection-start-line=
"211"
selection-start-column=
"5"
selection-end-line=
"211"
selection-end-column=
"5
"
/>
<folding>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
test
.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=
"
288
"
>
<state
relative-caret-position=
"
182
"
>
<caret
line=
"1
6"
column=
"82"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"82"
selection-end-line=
"16"
selection-end-column=
"8
2"
/>
<caret
line=
"1
19"
column=
"62"
lean-forward=
"true"
selection-start-line=
"119"
selection-start-column=
"62"
selection-end-line=
"119"
selection-end-column=
"6
2"
/>
<folding>
<folding>
<element
signature=
"n#!!doc"
expanded=
"true"
/>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
<element
signature=
"e#44#86#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
config.ts
View file @
d8b7b157
...
@@ -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
:
`
${
test
Url
}
/v1/upload/packageUrl`
,
upload_url
:
`
${
base
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
}
`
,
...
...
migrate.ts
View file @
d8b7b157
...
@@ -103,17 +103,21 @@ async function updateApp(app) {
...
@@ -103,17 +103,21 @@ async function updateApp(app) {
async
function
main
()
{
async
function
main
()
{
let
{
data
}
=
await
axios
.
get
(
config
.
old_apps_json
);
let
{
data
}
=
await
axios
.
get
(
config
.
old_apps_json
);
let
newApps
=
await
axios
.
get
(
config
.
new_apps_json
);
newApps
.
data
.
map
(
app
=>
{
apps
[
app
[
'
id
'
]]
=
app
;
})
try
{
try
{
for
(
let
app
of
data
)
{
for
(
let
app
of
data
)
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
])
&&
!
apps
[
app
[
'
id
'
]])
{
apps
[
app
[
'
id
'
]]
=
app
;
await
createApp
(
app
)
await
createApp
(
app
)
}
}
}
}
for
(
let
app
of
_
.
sampleSize
(
data
,
2
))
{
for
(
let
app
of
_
.
sampleSize
(
data
,
1
))
{
if
(
!
[
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
if
([
'
ygopro
'
,
'
desmume
'
,
'
test
'
].
includes
(
app
[
'
id
'
]))
{
await
updateApp
(
app
);
await
updateApp
(
app
);
}
}
}
}
...
...
package/main.ts
View file @
d8b7b157
...
@@ -70,7 +70,6 @@ export async function bundle(...args) {
...
@@ -70,7 +70,6 @@ export async function bundle(...args) {
let
filePath
=
path
.
join
(
dist_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
);
await
archive
(
filePath
,
await
fs
.
readdirAsync
(
package_path
),
package_path
);
const
fullHash
=
await
caculateSHA256
(
filePath
);
const
fullHash
=
await
caculateSHA256
(
filePath
);
...
@@ -79,6 +78,7 @@ export async function bundle(...args) {
...
@@ -79,6 +78,7 @@ export async function bundle(...args) {
let
fullPath
=
path
.
join
(
path
.
dirname
(
filePath
),
`
${
fullHash
}
.tar.gz`
);
let
fullPath
=
path
.
join
(
path
.
dirname
(
filePath
),
`
${
fullHash
}
.tar.gz`
);
await
fs
.
renameAsync
(
filePath
,
fullPath
);
await
fs
.
renameAsync
(
filePath
,
fullPath
);
await
fs
.
removeAsync
(
filePath
);
await
fs
.
removeAsync
(
uploadFile_path
)
await
fs
.
removeAsync
(
uploadFile_path
)
await
fs
.
removeAsync
(
package_path
)
await
fs
.
removeAsync
(
package_path
)
...
...
src/routes/upload.ts
View file @
d8b7b157
...
@@ -183,7 +183,6 @@ const uploadPackageUrl = async (ctx: Context) => {
...
@@ -183,7 +183,6 @@ const uploadPackageUrl = async (ctx: Context) => {
// 上传完,干掉本地目录
// 上传完,干掉本地目录
await
fs
.
removeAsync
(
bundled
.
distPath
);
await
fs
.
removeAsync
(
bundled
.
distPath
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
pack
!
.
status
=
'
failed
'
;
pack
!
.
status
=
'
failed
'
;
...
...
views/update.hbs
deleted
100644 → 0
View file @
1d3da742
<?xml version="1.0" encoding="UTF-8"?>
<metalink
xmlns=
"urn:ietf:params:xml:ns:metalink"
>
{{#
files
}}
<file
name=
"
{{
name
}}
"
>
<size>
{{
size
}}
</size>
<hash
type=
"sha-256"
>
{{
hash
}}
</hash>
<url
priority=
"1"
>
https://cdn01.moecube.com/test-release/
{{
hash
}}
.tar.gz
</url>
<url
priority=
"1"
>
https://cdn01.moecube.com/test-release/
{{
hash
}}
.tar.gz
</url>
</file>
{{/
files
}}
</metalink>
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