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
c1ba2a38
Commit
c1ba2a38
authored
Apr 19, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3341614e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
31 deletions
+24
-31
.idea/workspace.xml
.idea/workspace.xml
+20
-27
src/routes/app.ts
src/routes/app.ts
+4
-4
No files found.
.idea/workspace.xml
View file @
c1ba2a38
...
@@ -2,14 +2,7 @@
...
@@ -2,14 +2,7 @@
<project
version=
"4"
>
<project
version=
"4"
>
<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=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/config.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/package.json"
afterPath=
"$PROJECT_DIR$/package.json"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/models/App.ts"
afterPath=
"$PROJECT_DIR$/src/models/App.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/models/Package.ts"
afterPath=
"$PROJECT_DIR$/src/models/Package.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/app.ts"
afterPath=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/app.ts"
afterPath=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/upload.ts"
afterPath=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/yarn.lock"
afterPath=
"$PROJECT_DIR$/yarn.lock"
/>
</list>
</list>
<ignored
path=
"mycard-console-backend.iws"
/>
<ignored
path=
"mycard-console-backend.iws"
/>
<ignored
path=
".idea/workspace.xml"
/>
<ignored
path=
".idea/workspace.xml"
/>
...
@@ -32,11 +25,11 @@
...
@@ -32,11 +25,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=
"app.ts"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"app.ts"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/app.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=
"
163
"
>
<state
relative-caret-position=
"
351
"
>
<caret
line=
"1
55"
column=
"57"
lean-forward=
"false"
selection-start-line=
"155"
selection-start-column=
"57"
selection-end-line=
"155"
selection-end-column=
"57
"
/>
<caret
line=
"1
68"
column=
"25"
lean-forward=
"false"
selection-start-line=
"168"
selection-start-column=
"25"
selection-end-line=
"168"
selection-end-column=
"25
"
/>
<folding>
<folding>
<element
signature=
"e#39#73#0"
expanded=
"true"
/>
<element
signature=
"e#39#73#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -74,11 +67,11 @@
...
@@ -74,11 +67,11 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"upload.ts"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"upload.ts"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<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=
"
-158
"
>
<state
relative-caret-position=
"
256
"
>
<caret
line=
"1
44"
column=
"21"
lean-forward=
"false"
selection-start-line=
"144"
selection-start-column=
"21"
selection-end-line=
"144"
selection-end-column=
"21
"
/>
<caret
line=
"1
67"
column=
"0"
lean-forward=
"false"
selection-start-line=
"167"
selection-start-column=
"0"
selection-end-line=
"168"
selection-end-column=
"0
"
/>
<folding>
<folding>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
<element
signature=
"e#0#28#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -142,10 +135,10 @@
...
@@ -142,10 +135,10 @@
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/package/main.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/Package.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/Package.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/src/models/App.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
<option
value=
"$PROJECT_DIR$/.env"
/>
<option
value=
"$PROJECT_DIR$/.env"
/>
<option
value=
"$PROJECT_DIR$/src/routes/config.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/config.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/upload.ts"
/>
<option
value=
"$PROJECT_DIR$/src/routes/app.ts"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -165,8 +158,8 @@
...
@@ -165,8 +158,8 @@
<handled-path
value=
"$PROJECT_DIR$/node_modules"
/>
<handled-path
value=
"$PROJECT_DIR$/node_modules"
/>
</component>
</component>
<component
name=
"ProjectFrameBounds"
>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
325
"
/>
<option
name=
"x"
value=
"
422
"
/>
<option
name=
"y"
value=
"
7
4"
/>
<option
name=
"y"
value=
"
35
4"
/>
<option
name=
"width"
value=
"1492"
/>
<option
name=
"width"
value=
"1492"
/>
<option
name=
"height"
value=
"968"
/>
<option
name=
"height"
value=
"968"
/>
</component>
</component>
...
@@ -381,12 +374,12 @@
...
@@ -381,12 +374,12 @@
<workItem
from=
"1490063627839"
duration=
"296000"
/>
<workItem
from=
"1490063627839"
duration=
"296000"
/>
<workItem
from=
"1492397500450"
duration=
"9337000"
/>
<workItem
from=
"1492397500450"
duration=
"9337000"
/>
<workItem
from=
"1492407479780"
duration=
"11530000"
/>
<workItem
from=
"1492407479780"
duration=
"11530000"
/>
<workItem
from=
"1492482951965"
duration=
"
49105
000"
/>
<workItem
from=
"1492482951965"
duration=
"
50292
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"8
1707
000"
/>
<option
name=
"totallyTimeSpent"
value=
"8
2894
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -398,7 +391,7 @@
...
@@ -398,7 +391,7 @@
</todo-panel>
</todo-panel>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
325"
y=
"7
4"
width=
"1492"
height=
"968"
extended-state=
"0"
/>
<frame
x=
"
422"
y=
"35
4"
width=
"1492"
height=
"968"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<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"
/>
...
@@ -789,22 +782,22 @@
...
@@ -789,22 +782,22 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/
app
.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=
"
163
"
>
<state
relative-caret-position=
"
256
"
>
<caret
line=
"1
55"
column=
"57"
lean-forward=
"false"
selection-start-line=
"155"
selection-start-column=
"57"
selection-end-line=
"155"
selection-end-column=
"57
"
/>
<caret
line=
"1
67"
column=
"0"
lean-forward=
"false"
selection-start-line=
"167"
selection-start-column=
"0"
selection-end-line=
"168"
selection-end-column=
"0
"
/>
<folding>
<folding>
<element
signature=
"e#
39#73
#0"
expanded=
"true"
/>
<element
signature=
"e#
0#28
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/routes/
upload
.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=
"
-158
"
>
<state
relative-caret-position=
"
351
"
>
<caret
line=
"1
44"
column=
"21"
lean-forward=
"false"
selection-start-line=
"144"
selection-start-column=
"21"
selection-end-line=
"144"
selection-end-column=
"21
"
/>
<caret
line=
"1
68"
column=
"25"
lean-forward=
"false"
selection-start-line=
"168"
selection-start-column=
"25"
selection-end-line=
"168"
selection-end-column=
"25
"
/>
<folding>
<folding>
<element
signature=
"e#
0#28
#0"
expanded=
"true"
/>
<element
signature=
"e#
39#73
#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
src/routes/app.ts
View file @
c1ba2a38
...
@@ -128,10 +128,10 @@ router.post('/packages', async (ctx: Context, next) => {
...
@@ -128,10 +128,10 @@ router.post('/packages', async (ctx: Context, next) => {
if
(
!
_p
.
id
)
{
if
(
!
_p
.
id
)
{
ctx
.
throw
(
400
,
`id 参数缺失:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`id 参数缺失:
${
_p
.
id
}
`
)
}
}
if
(
!
_p
.
platforms
)
{
if
(
!
_p
.
platforms
||
_p
.
platforms
.
length
==
0
)
{
ctx
.
throw
(
400
,
`请填写支持的平台:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`请填写支持的平台:
${
_p
.
id
}
`
)
}
}
else
if
(
!
_p
.
locales
)
{
else
if
(
!
_p
.
locales
||
_p
.
locales
.
length
==
0
)
{
ctx
.
throw
(
400
,
`请填写支持的语言:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`请填写支持的语言:
${
_p
.
id
}
`
)
}
}
else
if
(
!
_p
.
version
)
{
else
if
(
!
_p
.
version
)
{
...
@@ -160,10 +160,10 @@ router.patch('/packages', async (ctx: Context, next) => {
...
@@ -160,10 +160,10 @@ router.patch('/packages', async (ctx: Context, next) => {
if
(
!
_p
.
id
)
{
if
(
!
_p
.
id
)
{
ctx
.
throw
(
400
,
`id 参数缺失:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`id 参数缺失:
${
_p
.
id
}
`
)
}
}
if
(
!
_p
.
platforms
)
{
if
(
!
_p
.
platforms
||
_p
.
platforms
.
length
==
0
)
{
ctx
.
throw
(
400
,
`请填写支持的平台:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`请填写支持的平台:
${
_p
.
id
}
`
)
}
}
else
if
(
!
_p
.
locales
)
{
else
if
(
!
_p
.
locales
||
_p
.
locales
.
length
==
0
)
{
ctx
.
throw
(
400
,
`请填写支持的语言:
${
_p
.
id
}
`
)
ctx
.
throw
(
400
,
`请填写支持的语言:
${
_p
.
id
}
`
)
}
}
else
if
(
!
_p
.
version
)
{
else
if
(
!
_p
.
version
)
{
...
...
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