Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
d7674a33
Commit
d7674a33
authored
Oct 23, 2017
by
Jaden DIEFENBAUGH
Browse files
refactor - clarify store-connected imports (containers) vs unconnected (components)
parent
61586737
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/EntityDetail.jsx
View file @
d7674a33
...
...
@@ -27,10 +27,10 @@ import {
import
type
{
BeatObject
}
from
'
@helpers/beat
'
;
import
ValidSchemaBadge
from
'
./ValidSchemaBadge.jsx
'
;
import
DataformatEditor
from
'
./DataformatEditor.jsx
'
;
import
AlgorithmEditor
from
'
./AlgorithmEditor.jsx
'
;
import
LibraryEditor
from
'
./LibraryEditor.jsx
'
;
import
DatabaseEditor
from
'
./DatabaseEditor.jsx
'
;
import
DataformatEditor
Container
from
'
./DataformatEditor.jsx
'
;
import
AlgorithmEditor
Container
from
'
./AlgorithmEditor.jsx
'
;
import
LibraryEditor
Container
from
'
./LibraryEditor.jsx
'
;
import
DatabaseEditor
Container
from
'
./DatabaseEditor.jsx
'
;
type
Props
=
{
match
:
any
,
...
...
@@ -113,28 +113,28 @@ export class EntityDetail extends React.Component<Props, State> {
<
TabPane
tabId
=
'0'
>
{
this
.
props
.
match
.
params
.
entity
===
'
algorithm
'
&&
<
AlgorithmEditor
<
AlgorithmEditor
Container
data
=
{
this
.
props
.
getEntityObject
()
}
saveFunc
=
{
this
.
saveChanges
}
/>
}
{
this
.
props
.
match
.
params
.
entity
===
'
dataformat
'
&&
<
DataformatEditor
<
DataformatEditor
Container
data
=
{
this
.
props
.
getEntityObject
()
}
saveFunc
=
{
this
.
saveChanges
}
/>
}
{
this
.
props
.
match
.
params
.
entity
===
'
library
'
&&
<
LibraryEditor
<
LibraryEditor
Container
data
=
{
this
.
props
.
getEntityObject
()
}
saveFunc
=
{
this
.
saveChanges
}
/>
}
{
this
.
props
.
match
.
params
.
entity
===
'
database
'
&&
<
DatabaseEditor
<
DatabaseEditor
Container
data
=
{
this
.
props
.
getEntityObject
()
}
saveFunc
=
{
this
.
saveChanges
}
/>
...
...
src/components/EntityHome.jsx
View file @
d7674a33
...
...
@@ -21,9 +21,9 @@ import {
import
type
{
BeatEntity
}
from
'
@helpers/beat.js
'
;
import
{
pluralize
}
from
'
@helpers/beat.js
'
;
import
EntityList
from
'
./EntityList.jsx
'
;
import
EntityList
Container
from
'
./EntityList.jsx
'
;
import
NewEntityModal
from
'
./NewEntityModal.jsx
'
;
import
EntityDetail
from
'
./EntityDetail.jsx
'
;
import
EntityDetail
Container
from
'
./EntityDetail.jsx
'
;
type
Props
=
{
entity
:
BeatEntity
,
...
...
@@ -47,7 +47,7 @@ class EntityHome extends React.Component<Props, State> {
render
()
{
return
(
<
Switch
>
<
Route
exact
path
=
{
'
/:entity/:name+
'
}
component
=
{
EntityDetail
}
/>
<
Route
exact
path
=
{
'
/:entity/:name+
'
}
component
=
{
EntityDetail
Container
}
/>
<
Route
>
<
Container
>
<
Row
className
=
'mb-3'
>
...
...
@@ -67,7 +67,7 @@ class EntityHome extends React.Component<Props, State> {
</
Row
>
<
Row
>
<
Col
>
<
EntityList
entity
=
{
this
.
props
.
entity
}
/>
<
EntityList
Container
entity
=
{
this
.
props
.
entity
}
/>
</
Col
>
</
Row
>
</
Container
>
...
...
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