Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
cb16362e
Commit
cb16362e
authored
Apr 27, 2017
by
Sascha Herzinger
Browse files
failed or loading data etls are now specially marked
parent
1585fffa
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/components/DataBox.vue
View file @
cb16362e
...
...
@@ -2,13 +2,19 @@
<div
id=
"data-box"
>
<label
for=
"data-container"
:tooltip=
"tooltip"
>
{{
header
}}
</label>
<div
id=
"data-container"
style=
"height: 80%;"
>
<div
class=
"data-item"
v-for=
"(item, index) in items"
>
<div
class=
"data-item"
:data-state=
"item.state"
v-for=
"item in items"
>
<input
type=
"checkbox"
:id=
"'data-check-' + i
ndex
"
:id=
"'data-check-' + i
tem.data_id
"
:value=
"item.data_id"
v-model=
"selectedIDs"
@
click=
"updateSelected"
/>
<label
:for=
"'data-check-' + index"
>
{{
item
.
description
}}
</label>
@
click=
"updateSelected"
v-if=
"item.state == 'SUCCESS'"
/>
<div
class=
"info-box"
v-if=
"item.state == 'FAILURE'"
>
i
</div>
<label
:for=
"'data-check-' + item.data_id"
>
{{
item
.
description
}}
</label>
</div>
</div>
</div>
...
...
@@ -46,6 +52,9 @@
updateSelected
()
{
this
.
$emit
(
'
update
'
,
this
.
selectedIDs
)
}
},
components
:
{
}
}
</
script
>
...
...
@@ -63,7 +72,40 @@
padding
:
5px
5px
5px
5px
;
}
#data-container
.data-item
:nth-child
(
odd
)
{
background
:
#ddd
;
.data-item
{
background
:
#eee
;
padding
:
2px
;
display
:
inline-block
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
width
:
98%
;
}
.data-item
label
{
width
:
80%
}
.data-item
:nth-child
(
odd
)[
data-state
=
"SUCCESS"
]
{
}
.data-item
[
data-state
=
"FAILURE"
]
{
background
:
#ffcbcb
;
}
.data-item
[
data-state
=
"PENDING"
]
{
color
:
#bbb
;
}
.info-box
{
font-style
:
italic
;
float
:
left
;
margin
:
0
3px
0
3px
;
height
:
15px
;
width
:
15px
;
background
:
white
;
border-radius
:
10px
;
text-align
:
center
;
}
</
style
>
\ No newline at end of file
</
style
>
src/components/charts/CorrelationAnalysis.vue
View file @
cb16362e
...
...
@@ -70,14 +70,14 @@
r=
"4"
:data-idx=
"idx"
v-for=
"(point, idx) in shownPoints.all"
v-tooltip=
"point.tooltip"
>
v-
svg
tooltip=
"point.tooltip"
>
</circle>
<line
id=
"lin-reg-line"
:x1=
"tweened.regLine.x1"
:x2=
"tweened.regLine.x2"
:y1=
"tweened.regLine.y1"
:y2=
"tweened.regLine.y2"
v-tooltip=
"regLine.tooltip"
>
v-
svg
tooltip=
"regLine.tooltip"
>
</line>
<rect
class=
"histogram-rect"
:x=
"attr.x"
...
...
@@ -105,7 +105,7 @@
import
DataBox
from
'
../DataBox.vue
'
import
requestHandling
from
'
../mixins/request-handling
'
import
*
as
d3
from
'
d3
'
import
tooltip
from
'
../directives/v-tooltip
'
import
tooltip
from
'
../directives/v-
svg
tooltip
'
import
{
TweenLite
}
from
'
gsap
'
export
default
{
name
:
'
correlation-analysis
'
,
...
...
src/components/directives/v-tooltip.js
→
src/components/directives/v-
svg
tooltip.js
View file @
cb16362e
File moved
src/store/actions.js
View file @
cb16362e
...
...
@@ -9,8 +9,7 @@ export default {
},
updateData
:
context
=>
{
context
.
getters
.
requestManager
.
getAllDataStatus
().
then
(
response
=>
{
const
data
=
response
.
data
context
.
commit
(
types
.
SET_DATA
,
data
)
context
.
commit
(
types
.
SET_DATA
,
response
.
data
.
data_states
)
}).
catch
(
error
=>
{
console
.
error
(
error
)
// TODO: Notify user about this
}).
then
(()
=>
{
// finally
...
...
test/charts/test-chart.html
View file @
cb16362e
...
...
@@ -15,7 +15,7 @@
const
fjs
=
fractal
.
init
({
handler
:
'
ada
'
,
thisBaseURL
:
'
http://10.79.2.192:8080
'
,
fractalisBaseURL
:
'
http://1
0.240.6.46:808
0
'
,
fractalisBaseURL
:
'
http://1
27.0.0.1:500
0
'
,
getAuth
()
{
return
credentials
}
...
...
@@ -44,6 +44,14 @@
get
description
()
{
return
`
${
this
.
projection
}
(
${
this
.
data_set
}
)`
}
},
{
data_type
:
'
Enum
'
,
data_set
:
'
foo
'
,
projection
:
'
baraaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
'
,
get
description
()
{
return
`
${
this
.
projection
}
(
${
this
.
data_set
}
)`
}
}
])
fjs
.
setChart
({
chart
:
'
correlation-analysis
'
,
selector
:
'
#placeholder
'
})
...
...
webpack.config.js
View file @
cb16362e
...
...
@@ -25,7 +25,8 @@ module.exports = {
devServer
:
{
hot
:
true
,
inline
:
true
,
publicPath
:
'
http://localhost:8080/
'
publicPath
:
'
http://localhost:8080/
'
,
headers
:
{
'
Access-Control-Allow-Origin
'
:
'
*
'
}
},
plugins
:
plugins
,
output
:
{
...
...
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