attractor 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/Guardfile +1 -0
- data/Rakefile +6 -1
- data/app/assets/javascripts/index.js.erb +1 -100
- data/app/assets/javascripts/index.pack.js +1 -0
- data/app/views/index.html.erb +1 -2
- data/attractor.gemspec +1 -1
- data/lib/attractor/reporters/reporter.rb +6 -0
- data/lib/attractor/version.rb +1 -1
- data/package-lock.json +5658 -0
- data/package.json +34 -0
- data/webpack.config.js +20 -0
- metadata +6 -3
- data/app/assets/stylesheets/main.scss +0 -98
data/package.json
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"name": "attractor",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "![image](https://user-images.githubusercontent.com/4352208/65392349-4419d800-dd74-11e9-8dad-d84e21da09e3.png)",
|
5
|
+
"directories": {
|
6
|
+
"lib": "lib"
|
7
|
+
},
|
8
|
+
"scripts": {
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
10
|
+
"build": "webpack --mode production"
|
11
|
+
},
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+https://github.com/julianrubisch/attractor.git"
|
15
|
+
},
|
16
|
+
"keywords": [],
|
17
|
+
"author": "",
|
18
|
+
"license": "ISC",
|
19
|
+
"bugs": {
|
20
|
+
"url": "https://github.com/julianrubisch/attractor/issues"
|
21
|
+
},
|
22
|
+
"homepage": "https://github.com/julianrubisch/attractor#readme",
|
23
|
+
"devDependencies": {
|
24
|
+
"@babel/core": "^7.6.2",
|
25
|
+
"@babel/preset-env": "^7.6.2",
|
26
|
+
"@babel/preset-react": "^7.0.0",
|
27
|
+
"babel-loader": "^8.0.6",
|
28
|
+
"d3": "^5.12.0",
|
29
|
+
"d3-regression": "^1.2.4",
|
30
|
+
"terser-webpack-plugin": "^2.1.0",
|
31
|
+
"webpack": "^4.41.0",
|
32
|
+
"webpack-cli": "^3.3.9"
|
33
|
+
}
|
34
|
+
}
|
data/webpack.config.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
const path = require('path');
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
entry: './src/javascript/index.js',
|
5
|
+
output: {
|
6
|
+
filename: 'index.pack.js',
|
7
|
+
path: path.resolve(__dirname, 'app/assets/javascripts')
|
8
|
+
},
|
9
|
+
module: {
|
10
|
+
rules: [
|
11
|
+
{
|
12
|
+
test: /\.(js|jsx)$/,
|
13
|
+
exclude: /node_modules/,
|
14
|
+
use: {
|
15
|
+
loader: "babel-loader"
|
16
|
+
}
|
17
|
+
}
|
18
|
+
]
|
19
|
+
}
|
20
|
+
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Rubisch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: churn
|
@@ -330,8 +330,8 @@ files:
|
|
330
330
|
- app/assets/images/attractor_logo.svg
|
331
331
|
- app/assets/images/attractor_logo@2x.png
|
332
332
|
- app/assets/javascripts/index.js.erb
|
333
|
+
- app/assets/javascripts/index.pack.js
|
333
334
|
- app/assets/stylesheets/main.css
|
334
|
-
- app/assets/stylesheets/main.scss
|
335
335
|
- app/views/index.html.erb
|
336
336
|
- attractor.gemspec
|
337
337
|
- bin/console
|
@@ -347,6 +347,9 @@ files:
|
|
347
347
|
- lib/attractor/value.rb
|
348
348
|
- lib/attractor/version.rb
|
349
349
|
- lib/attractor/watcher.rb
|
350
|
+
- package-lock.json
|
351
|
+
- package.json
|
352
|
+
- webpack.config.js
|
350
353
|
homepage: https://github.com/julianrubisch/attractor
|
351
354
|
licenses: []
|
352
355
|
metadata:
|
@@ -1,98 +0,0 @@
|
|
1
|
-
$font-family-sans-serif: 'Red Hat Text';
|
2
|
-
$headings-font-family: 'Red Hat Display';
|
3
|
-
$primary: #4E0754;
|
4
|
-
$secondary: #F9703E;
|
5
|
-
|
6
|
-
$font-size-lg: 1.5rem;
|
7
|
-
|
8
|
-
$gray-100: #F0F4F8 !default;
|
9
|
-
$gray-200: #D9E2EC !default;
|
10
|
-
$gray-300: #9FB3C8 !default;
|
11
|
-
$gray-400: #627D98 !default;
|
12
|
-
// $gray-500: #adb5bd !default;
|
13
|
-
// $gray-600: #6c757d !default;
|
14
|
-
// $gray-700: #495057 !default;
|
15
|
-
$gray-800: #102A43 !default;
|
16
|
-
|
17
|
-
$text-muted: $gray-400;
|
18
|
-
|
19
|
-
$navbar-light-color: $gray-800 !default;
|
20
|
-
$navbar-light-hover-color: $gray-800 !default;
|
21
|
-
$navbar-light-active-color: $gray-800 !default;
|
22
|
-
$navbar-light-disabled-color: $gray-800 !default;
|
23
|
-
// $navbar-light-toggler-icon-bg: str-replace(url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"), "#", "%23") !default;
|
24
|
-
// $navbar-light-toggler-border-color: rgba($black, .1) !default;
|
25
|
-
|
26
|
-
$navbar-light-brand-color: $navbar-light-active-color !default;
|
27
|
-
$navbar-light-brand-hover-color: $navbar-light-active-color !default;
|
28
|
-
|
29
|
-
$border-radius: 4px;
|
30
|
-
$border-width: 1px;
|
31
|
-
$border-color: $gray-200 !default;
|
32
|
-
|
33
|
-
$enable-shadows: true;
|
34
|
-
|
35
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap-grid';
|
36
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/vendor/_rfs';
|
37
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_border-radius';
|
38
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_box-shadow';
|
39
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_deprecate';
|
40
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_hover';
|
41
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_lists';
|
42
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_table-row';
|
43
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_text-emphasis';
|
44
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_text-hide';
|
45
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/mixins/_text-truncate';
|
46
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/utilities/_position';
|
47
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/utilities/_text';
|
48
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_card';
|
49
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_nav';
|
50
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_navbar';
|
51
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_reboot';
|
52
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_tables';
|
53
|
-
@import 'tmp/bootstrap-4.3.1/assets/stylesheets/bootstrap/_type';
|
54
|
-
|
55
|
-
body {
|
56
|
-
background: $gray-100;
|
57
|
-
|
58
|
-
& > .container {
|
59
|
-
margin-top: 3rem !important;
|
60
|
-
margin-bottom: 5rem !important;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
nav.navbar-light {
|
65
|
-
position: fixed !important;
|
66
|
-
background: white;
|
67
|
-
box-shadow: 0 2px 2px 0 rgba(188,204,220,0.8);
|
68
|
-
}
|
69
|
-
|
70
|
-
footer {
|
71
|
-
background: $dark;
|
72
|
-
color: $light;
|
73
|
-
a {
|
74
|
-
color: $light;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
.card {
|
79
|
-
@include box-shadow(0 2px 4px 0 rgba(16,42,67,0.5));
|
80
|
-
}
|
81
|
-
|
82
|
-
.card-body {
|
83
|
-
h5.card-title {
|
84
|
-
font-size: 1.2rem;
|
85
|
-
font-weight: bold;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
#graph {
|
90
|
-
width: 600px;
|
91
|
-
height: 600px;
|
92
|
-
margin: 0 auto;
|
93
|
-
}
|
94
|
-
|
95
|
-
.regression {
|
96
|
-
stroke: $dark;
|
97
|
-
fill: none;
|
98
|
-
}
|