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
9be8fb1b
Commit
9be8fb1b
authored
Apr 19, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
92406c66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
47 deletions
+18
-47
.idea/workspace.xml
.idea/workspace.xml
+15
-43
src/routes/AppDetail.js
src/routes/AppDetail.js
+3
-4
No files found.
.idea/workspace.xml
View file @
9be8fb1b
...
...
@@ -3,11 +3,7 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"7dc474d0-9fc0-4b76-8c2f-3c98df702116"
name=
"Default"
comment=
""
>
<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/index.js"
afterPath=
"$PROJECT_DIR$/src/index.js"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/routes/AppDetail.js"
afterPath=
"$PROJECT_DIR$/src/routes/AppDetail.js"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/services/Packages.js"
afterPath=
"$PROJECT_DIR$/src/services/Packages.js"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/yarn.lock"
afterPath=
"$PROJECT_DIR$/yarn.lock"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.tmp/"
/>
<ignored
path=
"$PROJECT_DIR$/temp/"
/>
...
...
@@ -24,34 +20,10 @@
<favorites_list
name=
"moecube-console-web"
/>
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"Packages.js"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/services/Packages.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"271"
>
<caret
line=
"26"
column=
"32"
lean-forward=
"false"
selection-start-line=
"26"
selection-start-column=
"32"
selection-end-line=
"26"
selection-end-column=
"32"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"AppDetail.js"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/routes/AppDetail.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"223"
>
<caret
line=
"849"
column=
"37"
lean-forward=
"true"
selection-start-line=
"849"
selection-start-column=
"37"
selection-end-line=
"849"
selection-end-column=
"37"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
/>
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
isMoun
</find>
<find>
isMounte
</find>
<find>
isMounted
</find>
<find>
isdanger
</find>
...
...
@@ -81,6 +53,7 @@
<find>
urlUpload
</find>
<find>
url
</find>
<find>
disable
</find>
<find>
delete
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -325,16 +298,15 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1492397512644
</updated>
<workItem
from=
"1492397516564"
duration=
"4541000"
/>
<workItem
from=
"1492407287300"
duration=
"4
7582
000"
/>
<workItem
from=
"1492407287300"
duration=
"4
8898
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"5
2123
000"
/>
<option
name=
"totallyTimeSpent"
value=
"5
3439
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"296"
y=
"23"
width=
"1383"
height=
"968"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<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=
"DB Browser"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32966226"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -343,7 +315,7 @@
<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.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"npm"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32966226"
sideWeight=
"0.5"
order=
"2"
side_tool=
"true"
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.32990867"
sideWeight=
"0.5"
order=
"2"
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.33333334"
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=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.33333334"
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.33"
sideWeight=
"0.5"
order=
"-1"
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.2572707"
sideWeight=
"0.49315068"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Hierarchy"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.24981357"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"combo"
/>
...
...
@@ -797,21 +769,21 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/
services/Packages
.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/
routes/AppDetail
.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"271"
>
<caret
line=
"26"
column=
"32"
lean-forward=
"false"
selection-start-line=
"26"
selection-start-column=
"32"
selection-end-line=
"26"
selection-end-column=
"32"
/>
<folding
/>
<state
relative-caret-position=
"355"
>
<caret
line=
"704"
column=
"26"
lean-forward=
"true"
selection-start-line=
"704"
selection-start-column=
"26"
selection-end-line=
"704"
selection-end-column=
"26"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"false"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/
routes/AppDetail
.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/
services/Packages
.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"223"
>
<caret
line=
"849"
column=
"37"
lean-forward=
"true"
selection-start-line=
"849"
selection-start-column=
"37"
selection-end-line=
"849"
selection-end-column=
"37"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"271"
>
<caret
line=
"26"
column=
"32"
lean-forward=
"false"
selection-start-line=
"26"
selection-start-column=
"32"
selection-end-line=
"26"
selection-end-column=
"32"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
src/routes/AppDetail.js
View file @
9be8fb1b
...
...
@@ -299,6 +299,7 @@ class AppDetail extends React.Component {
form
.
validateFieldsAndScroll
((
err
,
values
)
=>
{
if
(
!
err
)
{
console
.
log
(
'
Received values of form:
'
,
values
);
let
{
upload
:
{
packages
}}
=
values
const
_package
=
packages
.
find
(
p
=>
p
.
id
==
pack
.
id
)
...
...
@@ -375,7 +376,7 @@ class AppDetail extends React.Component {
return
(
<
Spin
spinning
=
{
loading
.
global
}
>
<
Tabs
defaultActiveKey
=
"
1
"
className
=
"
app-detail-nav
"
>
<
Tabs
defaultActiveKey
=
"
1
"
className
=
"
app-detail-nav
"
type
=
"
card
"
>
<
TabPane
tab
=
{
<
span
><
Icon
type
=
"
setting
"
/>
基本信息
<
/span>} key="1"
>
<
div
className
=
{
styles
.
form
}
>
<
Form
onSubmit
=
{
this
.
onSubmitBase
}
>
...
...
@@ -770,15 +771,13 @@ class AppDetail extends React.Component {
)}
<
/FormItem
>
{
pack
[
"
status
"
]
!==
'
uploaded
'
&&
<
FormItem
{...
formItemLayout
}
help
=
"
id
"
style
=
{{
display
:
"
none
"
}}
>
<
FormItem
{...
formItemLayout
}
help
=
"
status
"
style
=
{{
display
:
"
none
"
}}
>
{
getFieldDecorator
(
`upload["packages"][
${
i
}
]["_id"]`
,
{
initialValue
:
pack
[
"
_id
"
]
})(
<
Input
addonBefore
=
{
<
Icon
type
=
"
info-circle-o
"
/>
}
placeholder
=
"
_id
"
disabled
/>
)}
<
/FormItem
>
}
<
FormItem
{...
formItemLayout
}
help
=
"
name
"
>
{
getFieldDecorator
(
`upload["packages"][
${
i
}
]["name"]`
,
{
...
...
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