Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
d471a72e
Commit
d471a72e
authored
Oct 17, 2017
by
Sascha Herzinger
Browse files
Enabling CI for this project
parent
b8f82cb2
Pipeline
#2441
failed with stage
in 60 minutes and 4 seconds
Changes
16
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
.eslintrc
View file @
d471a72e
...
...
@@ -3,5 +3,8 @@
"env": {
"jasmine": true
},
"plugins": ["html"]
"plugins": ["html"],
"rules": {
"no-extra-semi": "warn"
}
}
\ No newline at end of file
.gitlab-ci.yml
0 → 100644
View file @
d471a72e
image
:
centos:latest
before_script
:
# add epel-repo to centos
-
yum install -y epel-release
-
yum update -y
# install dependencies
-
yum install -y npm
-
npm install
test
:
script
:
-
npm test
karma.config.js
View file @
d471a72e
const
webpackConfig
=
require
(
'
./webpack.config.js
'
)
process
.
env
.
CHROME_BIN
=
require
(
'
puppeteer
'
).
executablePath
()
module
.
exports
=
config
=>
{
config
.
set
({
frameworks
:
[
'
jasmine
'
],
files
:
[
{
pattern
:
'
test/**/*-test.js
'
}
],
browsers
:
[
'
Chrome
'
],
browsers
:
[
'
Chrome
Headless
'
],
preprocessors
:
{
'
test/**/*-test.js
'
:
[
'
webpack
'
,
'
sourcemap
'
]
},
...
...
package-lock.json
View file @
d471a72e
This diff is collapsed.
Click to expand it.
package.json
View file @
d471a72e
...
...
@@ -20,15 +20,15 @@
"main"
:
"lib/fractal.min.js"
,
"dependencies"
:
{
"
axios
"
:
"
^0.16.1
"
,
"
d3
"
:
"
^4.1
0
.0
"
,
"
d3
"
:
"
^4.1
1
.0
"
,
"
deep-freeze-strict
"
:
"
^1.1.1
"
,
"
gsap
"
:
"
^1.20.
2
"
,
"
gsap
"
:
"
^1.20.
3
"
,
"
jquery
"
:
"
^3.2.1
"
,
"
tippy.js
"
:
"
^1.
2
.0
"
,
"
tippy.js
"
:
"
^1.
3
.0
"
,
"
uuid
"
:
"
^3.1.0
"
,
"
vue
"
:
"
^2.
4
.2
"
,
"
vue-template-compiler
"
:
"
^2.
4
.2
"
,
"
vuex
"
:
"
^2.
4
.0
"
"
vue
"
:
"
^2.
5
.2
"
,
"
vue-template-compiler
"
:
"
^2.
5
.2
"
,
"
vuex
"
:
"
^2.
5
.0
"
},
"devDependencies"
:
{
"
babel-core
"
:
"
7.0.0-alpha.3
"
,
...
...
@@ -39,24 +39,25 @@
"
eslint
"
:
"
^3.17.1
"
,
"
eslint-config-standard
"
:
"
^7.0.1
"
,
"
eslint-plugin-html
"
:
"
^2.0.1
"
,
"
eslint-plugin-promise
"
:
"
^3.
5
.0
"
,
"
eslint-plugin-promise
"
:
"
^3.
6
.0
"
,
"
eslint-plugin-standard
"
:
"
^2.1.1
"
,
"
file-loader
"
:
"
^0.11.1
"
,
"
jasmine-core
"
:
"
^2.8.0
"
,
"
jsdoc
"
:
"
^3.5.4
"
,
"
karma
"
:
"
^1.5.0
"
,
"
jsdoc
"
:
"
^3.5.5
"
,
"
puppeteer
"
:
"
^0.12.0
"
,
"
devbridge-autocomplete
"
:
"
^1.4.3
"
,
"
karma
"
:
"
^1.7.1
"
,
"
karma-chrome-launcher
"
:
"
^2.2.0
"
,
"
karma-jasmine
"
:
"
^1.1.0
"
,
"
karma-phantomjs-launcher
"
:
"
^1.0.4
"
,
"
karma-sourcemap-loader
"
:
"
^0.3.7
"
,
"
karma-webpack
"
:
"
^2.0.
4
"
,
"
karma-webpack
"
:
"
^2.0.
5
"
,
"
node-sass
"
:
"
^4.5.2
"
,
"
sass-loader
"
:
"
^6.0.6
"
,
"
style-loader
"
:
"
^0.17.0
"
,
"
url-loader
"
:
"
^0.5.8
"
,
"
vue-loader
"
:
"
^12.2.2
"
,
"
webpack
"
:
"
^2.7.0
"
,
"
webpack-dev-server
"
:
"
^2.
7.1
"
,
"
webpack-dev-server
"
:
"
^2.
9.2
"
,
"
yargs
"
:
"
^7.0.2
"
}
}
src/vue/charts/Boxplot.vue
View file @
d471a72e
...
...
@@ -389,7 +389,7 @@
</
script
>
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./
../../../
src/assets/base.sass'
svg
.fjs-box
...
...
src/vue/charts/CorrelationAnalysis.vue
View file @
d471a72e
...
...
@@ -403,7 +403,7 @@
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./
../../../
src/assets/base.sass'
.fjs-control-panel
.fjs-correlation-method
...
...
src/vue/charts/Heatmap.vue
View file @
d471a72e
...
...
@@ -470,8 +470,7 @@
</
script
>
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./../../../src/assets/base.sass'
.fjs-control-panel
.fjs-param-header
text-align
:
center
...
...
src/vue/charts/PCA.vue
View file @
d471a72e
...
...
@@ -344,7 +344,8 @@
</
script
>
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./../../../src/assets/base.sass'
svg
.fjs-loadings
stroke
:
#f00
...
...
src/vue/components/ControlPanel.vue
View file @
d471a72e
...
...
@@ -109,7 +109,7 @@
</
script
>
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./
../../../
src/assets/base.sass'
.fjs-control-panel
background
:
rgba
(
0
,
0
,
0
,
0
.5
)
...
...
src/vue/components/DataBox.vue
View file @
d471a72e
...
...
@@ -7,7 +7,9 @@
v-for=
"item in items"
>
<div
class=
"fjs-data-entry-header"
>
<input
type=
"checkbox"
:checked=
"!!~selectedIDs.indexOf(item.task_id)"
/>
<input
type=
"checkbox"
:data-id=
"item.task_id"
:checked=
"!!~selectedIDs.indexOf(item.task_id)"
/>
<span
:data-id=
"item.task_id"
:data-state=
"item.etl_state"
class=
"fjs-data-label"
...
...
src/vue/components/TaskView.vue
View file @
d471a72e
...
...
@@ -40,7 +40,7 @@
</
script
>
<
style
lang=
"sass"
scoped
>
@import
'./src/assets/base.sass'
@import
'./
../../../
src/assets/base.sass'
.fjs-task-view
display
:
flex
...
...
test/charts/multi/multi-chart.html
View file @
d471a72e
<!doctype html>
<meta
charset=
"UTF-8"
>
<head>
<script
src=
"http://localhost:8080/credentials.js"
></script>
...
...
@@ -35,7 +36,7 @@
thisBaseURL
:
'
http://127.0.0.1:5000
'
,
fractalisBaseURL
:
'
http://127.0.0.1:5000
'
,
getAuth
()
{
return
credentials1
return
{
user
:
''
,
passwd
:
''
}
}
})
fjs
.
setSubsets
([
...
...
test/data-box-test.js
View file @
d471a72e
...
...
@@ -44,7 +44,7 @@ describe('DataBox', () => {
const
data
=
{
selectedIDs
:
[
'
A
'
]}
const
vm
=
new
Component
({
propsData
,
data
}).
$mount
()
expect
(
vm
.
$el
.
querySelectorAll
(
'
.fjs-data-entry-header
'
).
length
).
toBe
(
2
)
expect
(
vm
.
$el
.
querySelector
(
`#
fjs-
checkbox-A-
${
vm
.
_uid
}
`
).
checked
).
toBeTruthy
()
expect
(
vm
.
$el
.
querySelector
(
`#
fjs-
checkbox-B-
${
vm
.
_uid
}
`
).
checked
).
toBeFalsy
()
expect
(
vm
.
$el
.
querySelector
(
'
.
fjs-
data-entry-header input[data-id="A"]
'
).
checked
).
toBeTruthy
()
expect
(
vm
.
$el
.
querySelector
(
'
.
fjs-
data-entry-header input[data-id="B"]
'
).
checked
).
toBeFalsy
()
})
})
test/request-handling-test.js
View file @
d471a72e
import
r
equestHandling
from
'
../src/vue/mixins/run-analysis
'
import
r
unAnalysis
from
'
../src/vue/mixins/run-analysis
'
import
RequestManager
from
'
../src/services/request-manager
'
import
store
from
'
../src/store/store
'
describe
(
'
runAnalysis method
'
,
()
=>
{
const
runAnalysis
=
requestHandling
.
methods
.
runAnalysis
beforeEach
(()
=>
{
const
requestManager
=
new
RequestManager
(
{
handler
:
''
,
thisBaseURL
:
''
,
fractalisBaseURL
:
''
,
getAuth
:
()
=>
{}})
...
...
webpack.config.js
View file @
d471a72e
...
...
@@ -25,7 +25,7 @@ module.exports = {
devServer
:
{
hot
:
true
,
inline
:
true
,
publicPath
:
'
http://
localhost
:8080/
'
,
publicPath
:
'
http://
127.0.0.1
:8080/
'
,
headers
:
{
'
Access-Control-Allow-Origin
'
:
'
*
'
}
},
plugins
:
plugins
,
...
...
@@ -46,7 +46,7 @@ module.exports = {
loader
:
'
vue-loader
'
,
options
:
{
loaders
:
{
sass
:
'
vue-style-loader!css-loader!sass-loader?indentedSyntax
'
// <style lang="sass">
sass
:
'
vue-style-loader!css-loader!sass-loader?indentedSyntax
'
}
}
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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