dataclips 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/dataclips/application.js +1 -0
  3. data/app/assets/javascripts/dataclips/record.js.coffee +0 -25
  4. data/app/assets/javascripts/dataclips/records.js.coffee +23 -0
  5. data/app/assets/stylesheets/dataclips/application.css +2 -1
  6. data/app/controllers/dataclips/application_controller.rb +9 -4
  7. data/app/controllers/dataclips/clips_controller.rb +22 -25
  8. data/app/controllers/dataclips/insights_controller.rb +1 -1
  9. data/app/views/dataclips/clips/{edit.html.erb → require_variables.html.erb} +0 -0
  10. data/lib/dataclips/engine.rb +0 -13
  11. data/lib/dataclips/version.rb +1 -1
  12. metadata +27 -100
  13. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  14. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +0 -288
  15. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  16. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  17. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  18. data/app/assets/stylesheets/bootstrap/_alerts.scss +0 -68
  19. data/app/assets/stylesheets/bootstrap/_badges.scss +0 -63
  20. data/app/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -26
  21. data/app/assets/stylesheets/bootstrap/_button-groups.scss +0 -243
  22. data/app/assets/stylesheets/bootstrap/_buttons.scss +0 -160
  23. data/app/assets/stylesheets/bootstrap/_carousel.scss +0 -267
  24. data/app/assets/stylesheets/bootstrap/_close.scss +0 -35
  25. data/app/assets/stylesheets/bootstrap/_code.scss +0 -69
  26. data/app/assets/stylesheets/bootstrap/_component-animations.scss +0 -38
  27. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +0 -213
  28. data/app/assets/stylesheets/bootstrap/_forms.scss +0 -548
  29. data/app/assets/stylesheets/bootstrap/_glyphicons.scss +0 -234
  30. data/app/assets/stylesheets/bootstrap/_grid.scss +0 -84
  31. data/app/assets/stylesheets/bootstrap/_input-groups.scss +0 -166
  32. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +0 -49
  33. data/app/assets/stylesheets/bootstrap/_labels.scss +0 -66
  34. data/app/assets/stylesheets/bootstrap/_list-group.scss +0 -124
  35. data/app/assets/stylesheets/bootstrap/_media.scss +0 -47
  36. data/app/assets/stylesheets/bootstrap/_mixins.scss +0 -39
  37. data/app/assets/stylesheets/bootstrap/_modals.scss +0 -148
  38. data/app/assets/stylesheets/bootstrap/_navbar.scss +0 -662
  39. data/app/assets/stylesheets/bootstrap/_navs.scss +0 -244
  40. data/app/assets/stylesheets/bootstrap/_normalize.scss +0 -427
  41. data/app/assets/stylesheets/bootstrap/_pager.scss +0 -54
  42. data/app/assets/stylesheets/bootstrap/_pagination.scss +0 -88
  43. data/app/assets/stylesheets/bootstrap/_panels.scss +0 -261
  44. data/app/assets/stylesheets/bootstrap/_popovers.scss +0 -135
  45. data/app/assets/stylesheets/bootstrap/_print.scss +0 -107
  46. data/app/assets/stylesheets/bootstrap/_progress-bars.scss +0 -87
  47. data/app/assets/stylesheets/bootstrap/_responsive-embed.scss +0 -35
  48. data/app/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -174
  49. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +0 -150
  50. data/app/assets/stylesheets/bootstrap/_tables.scss +0 -234
  51. data/app/assets/stylesheets/bootstrap/_theme.scss +0 -272
  52. data/app/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
  53. data/app/assets/stylesheets/bootstrap/_tooltip.scss +0 -103
  54. data/app/assets/stylesheets/bootstrap/_type.scss +0 -298
  55. data/app/assets/stylesheets/bootstrap/_utilities.scss +0 -56
  56. data/app/assets/stylesheets/bootstrap/_variables.scss +0 -864
  57. data/app/assets/stylesheets/bootstrap/_wells.scss +0 -29
  58. data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -14
  59. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -11
  60. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
  61. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -52
  62. data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  63. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
  64. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -88
  65. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -58
  66. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  67. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
  68. data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  69. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +0 -33
  70. data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  71. data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +0 -31
  72. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  73. data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  74. data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -8
  75. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -23
  76. data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -24
  77. data/app/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -10
  78. data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  79. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
  80. data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -21
  81. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
  82. data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  83. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
  84. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -11
  85. data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -8
  86. data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  87. data/app/assets/stylesheets/dataclips/_bootstrap.scss +0 -53
@@ -1,107 +0,0 @@
1
- /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
2
-
3
- // ==========================================================================
4
- // Print styles.
5
- // Inlined to avoid the additional HTTP request: h5bp.com/r
6
- // ==========================================================================
7
-
8
- @media print {
9
- *,
10
- *:before,
11
- *:after {
12
- background: transparent !important;
13
- color: #000 !important; // Black prints faster: h5bp.com/s
14
- box-shadow: none !important;
15
- text-shadow: none !important;
16
- }
17
-
18
- a,
19
- a:visited {
20
- text-decoration: underline;
21
- }
22
-
23
- a[href]:after {
24
- content: " (" attr(href) ")";
25
- }
26
-
27
- abbr[title]:after {
28
- content: " (" attr(title) ")";
29
- }
30
-
31
- // Don't show links that are fragment identifiers,
32
- // or use the `javascript:` pseudo protocol
33
- a[href^="#"]:after,
34
- a[href^="javascript:"]:after {
35
- content: "";
36
- }
37
-
38
- pre,
39
- blockquote {
40
- border: 1px solid #999;
41
- page-break-inside: avoid;
42
- }
43
-
44
- thead {
45
- display: table-header-group; // h5bp.com/t
46
- }
47
-
48
- tr,
49
- img {
50
- page-break-inside: avoid;
51
- }
52
-
53
- img {
54
- max-width: 100% !important;
55
- }
56
-
57
- p,
58
- h2,
59
- h3 {
60
- orphans: 3;
61
- widows: 3;
62
- }
63
-
64
- h2,
65
- h3 {
66
- page-break-after: avoid;
67
- }
68
-
69
- // Bootstrap specific changes start
70
- //
71
- // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
72
- // Once fixed, we can just straight up remove this.
73
- select {
74
- background: #fff !important;
75
- }
76
-
77
- // Bootstrap components
78
- .navbar {
79
- display: none;
80
- }
81
- .btn,
82
- .dropup > .btn {
83
- > .caret {
84
- border-top-color: #000 !important;
85
- }
86
- }
87
- .label {
88
- border: 1px solid #000;
89
- }
90
-
91
- .table {
92
- border-collapse: collapse !important;
93
-
94
- td,
95
- th {
96
- background-color: #fff !important;
97
- }
98
- }
99
- .table-bordered {
100
- th,
101
- td {
102
- border: 1px solid #ddd !important;
103
- }
104
- }
105
-
106
- // Bootstrap specific changes end
107
- }
@@ -1,87 +0,0 @@
1
- //
2
- // Progress bars
3
- // --------------------------------------------------
4
-
5
-
6
- // Bar animations
7
- // -------------------------
8
-
9
- // WebKit
10
- @-webkit-keyframes progress-bar-stripes {
11
- from { background-position: 40px 0; }
12
- to { background-position: 0 0; }
13
- }
14
-
15
- // Spec and IE10+
16
- @keyframes progress-bar-stripes {
17
- from { background-position: 40px 0; }
18
- to { background-position: 0 0; }
19
- }
20
-
21
-
22
- // Bar itself
23
- // -------------------------
24
-
25
- // Outer container
26
- .progress {
27
- overflow: hidden;
28
- height: $line-height-computed;
29
- margin-bottom: $line-height-computed;
30
- background-color: $progress-bg;
31
- border-radius: $progress-border-radius;
32
- @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
33
- }
34
-
35
- // Bar of progress
36
- .progress-bar {
37
- float: left;
38
- width: 0%;
39
- height: 100%;
40
- font-size: $font-size-small;
41
- line-height: $line-height-computed;
42
- color: $progress-bar-color;
43
- text-align: center;
44
- background-color: $progress-bar-bg;
45
- @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
46
- @include transition(width .6s ease);
47
- }
48
-
49
- // Striped bars
50
- //
51
- // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
52
- // `.progress-bar-striped` class, which you just add to an existing
53
- // `.progress-bar`.
54
- .progress-striped .progress-bar,
55
- .progress-bar-striped {
56
- @include gradient-striped;
57
- background-size: 40px 40px;
58
- }
59
-
60
- // Call animation for the active one
61
- //
62
- // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
63
- // `.progress-bar.active` approach.
64
- .progress.active .progress-bar,
65
- .progress-bar.active {
66
- @include animation(progress-bar-stripes 2s linear infinite);
67
- }
68
-
69
-
70
- // Variations
71
- // -------------------------
72
-
73
- .progress-bar-success {
74
- @include progress-bar-variant($progress-bar-success-bg);
75
- }
76
-
77
- .progress-bar-info {
78
- @include progress-bar-variant($progress-bar-info-bg);
79
- }
80
-
81
- .progress-bar-warning {
82
- @include progress-bar-variant($progress-bar-warning-bg);
83
- }
84
-
85
- .progress-bar-danger {
86
- @include progress-bar-variant($progress-bar-danger-bg);
87
- }
@@ -1,35 +0,0 @@
1
- // Embeds responsive
2
- //
3
- // Credit: Nicolas Gallagher and SUIT CSS.
4
-
5
- .embed-responsive {
6
- position: relative;
7
- display: block;
8
- height: 0;
9
- padding: 0;
10
- overflow: hidden;
11
-
12
- .embed-responsive-item,
13
- iframe,
14
- embed,
15
- object,
16
- video {
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- bottom: 0;
21
- height: 100%;
22
- width: 100%;
23
- border: 0;
24
- }
25
-
26
- // Modifier class for 16:9 aspect ratio
27
- &.embed-responsive-16by9 {
28
- padding-bottom: 56.25%;
29
- }
30
-
31
- // Modifier class for 4:3 aspect ratio
32
- &.embed-responsive-4by3 {
33
- padding-bottom: 75%;
34
- }
35
- }
@@ -1,174 +0,0 @@
1
- //
2
- // Responsive: Utility classes
3
- // --------------------------------------------------
4
-
5
-
6
- // IE10 in Windows (Phone) 8
7
- //
8
- // Support for responsive views via media queries is kind of borked in IE10, for
9
- // Surface/desktop in split view and for Windows Phone 8. This particular fix
10
- // must be accompanied by a snippet of JavaScript to sniff the user agent and
11
- // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
12
- // our Getting Started page for more information on this bug.
13
- //
14
- // For more information, see the following:
15
- //
16
- // Issue: https://github.com/twbs/bootstrap/issues/10497
17
- // Docs: http://getbootstrap.com/getting-started/#support-ie10-width
18
- // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
19
- // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
20
-
21
- @-ms-viewport {
22
- width: device-width;
23
- }
24
-
25
-
26
- // Visibility utilities
27
- // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
28
-
29
- @include responsive-invisibility('.visible-xs, .visible-sm, .visible-md, .visible-lg');
30
-
31
- .visible-xs-block,
32
- .visible-xs-inline,
33
- .visible-xs-inline-block,
34
- .visible-sm-block,
35
- .visible-sm-inline,
36
- .visible-sm-inline-block,
37
- .visible-md-block,
38
- .visible-md-inline,
39
- .visible-md-inline-block,
40
- .visible-lg-block,
41
- .visible-lg-inline,
42
- .visible-lg-inline-block {
43
- display: none !important;
44
- }
45
-
46
- @media (max-width: $screen-xs-max) {
47
- @include responsive-visibility('.visible-xs');
48
- }
49
- .visible-xs-block {
50
- @media (max-width: $screen-xs-max) {
51
- display: block !important;
52
- }
53
- }
54
- .visible-xs-inline {
55
- @media (max-width: $screen-xs-max) {
56
- display: inline !important;
57
- }
58
- }
59
- .visible-xs-inline-block {
60
- @media (max-width: $screen-xs-max) {
61
- display: inline-block !important;
62
- }
63
- }
64
-
65
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
66
- @include responsive-visibility('.visible-sm');
67
- }
68
- .visible-sm-block {
69
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
70
- display: block !important;
71
- }
72
- }
73
- .visible-sm-inline {
74
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
75
- display: inline !important;
76
- }
77
- }
78
- .visible-sm-inline-block {
79
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
80
- display: inline-block !important;
81
- }
82
- }
83
-
84
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
85
- @include responsive-visibility('.visible-md');
86
- }
87
- .visible-md-block {
88
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
89
- display: block !important;
90
- }
91
- }
92
- .visible-md-inline {
93
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
94
- display: inline !important;
95
- }
96
- }
97
- .visible-md-inline-block {
98
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
99
- display: inline-block !important;
100
- }
101
- }
102
-
103
- @media (min-width: $screen-lg-min) {
104
- @include responsive-visibility('.visible-lg');
105
- }
106
- .visible-lg-block {
107
- @media (min-width: $screen-lg-min) {
108
- display: block !important;
109
- }
110
- }
111
- .visible-lg-inline {
112
- @media (min-width: $screen-lg-min) {
113
- display: inline !important;
114
- }
115
- }
116
- .visible-lg-inline-block {
117
- @media (min-width: $screen-lg-min) {
118
- display: inline-block !important;
119
- }
120
- }
121
-
122
- @media (max-width: $screen-xs-max) {
123
- @include responsive-invisibility('.hidden-xs');
124
- }
125
-
126
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
127
- @include responsive-invisibility('.hidden-sm');
128
- }
129
-
130
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
131
- @include responsive-invisibility('.hidden-md');
132
- }
133
-
134
- @media (min-width: $screen-lg-min) {
135
- @include responsive-invisibility('.hidden-lg');
136
- }
137
-
138
-
139
- // Print utilities
140
- //
141
- // Media queries are placed on the inside to be mixin-friendly.
142
-
143
- // Note: Deprecated .visible-print as of v3.2.0
144
-
145
- @include responsive-invisibility('.visible-print');
146
-
147
- @media print {
148
- @include responsive-visibility('.visible-print');
149
- }
150
- .visible-print-block {
151
- display: none !important;
152
-
153
- @media print {
154
- display: block !important;
155
- }
156
- }
157
- .visible-print-inline {
158
- display: none !important;
159
-
160
- @media print {
161
- display: inline !important;
162
- }
163
- }
164
- .visible-print-inline-block {
165
- display: none !important;
166
-
167
- @media print {
168
- display: inline-block !important;
169
- }
170
- }
171
-
172
- @media print {
173
- @include responsive-invisibility('.hidden-print');
174
- }
@@ -1,150 +0,0 @@
1
- //
2
- // Scaffolding
3
- // --------------------------------------------------
4
-
5
-
6
- // Reset the box-sizing
7
- //
8
- // Heads up! This reset may cause conflicts with some third-party widgets.
9
- // For recommendations on resolving such conflicts, see
10
- // http://getbootstrap.com/getting-started/#third-box-sizing
11
- * {
12
- @include box-sizing(border-box);
13
- }
14
- *:before,
15
- *:after {
16
- @include box-sizing(border-box);
17
- }
18
-
19
-
20
- // Body reset
21
-
22
- html {
23
- font-size: 10px;
24
- -webkit-tap-highlight-color: rgba(0,0,0,0);
25
- }
26
-
27
- body {
28
- font-family: $font-family-base;
29
- font-size: $font-size-base;
30
- line-height: $line-height-base;
31
- color: $text-color;
32
- background-color: $body-bg;
33
- }
34
-
35
- // Reset fonts for relevant elements
36
- input,
37
- button,
38
- select,
39
- textarea {
40
- font-family: inherit;
41
- font-size: inherit;
42
- line-height: inherit;
43
- }
44
-
45
-
46
- // Links
47
-
48
- a {
49
- color: $link-color;
50
- text-decoration: none;
51
-
52
- &:hover,
53
- &:focus {
54
- color: $link-hover-color;
55
- text-decoration: $link-hover-decoration;
56
- }
57
-
58
- &:focus {
59
- @include tab-focus;
60
- }
61
- }
62
-
63
-
64
- // Figures
65
- //
66
- // We reset this here because previously Normalize had no `figure` margins. This
67
- // ensures we don't break anyone's use of the element.
68
-
69
- figure {
70
- margin: 0;
71
- }
72
-
73
-
74
- // Images
75
-
76
- img {
77
- vertical-align: middle;
78
- }
79
-
80
- // Responsive images (ensure images don't scale beyond their parents)
81
- .img-responsive {
82
- @include img-responsive;
83
- }
84
-
85
- // Rounded corners
86
- .img-rounded {
87
- border-radius: $border-radius-large;
88
- }
89
-
90
- // Image thumbnails
91
- //
92
- // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
93
- .img-thumbnail {
94
- padding: $thumbnail-padding;
95
- line-height: $line-height-base;
96
- background-color: $thumbnail-bg;
97
- border: 1px solid $thumbnail-border;
98
- border-radius: $thumbnail-border-radius;
99
- @include transition(all .2s ease-in-out);
100
-
101
- // Keep them at most 100% wide
102
- @include img-responsive(inline-block);
103
- }
104
-
105
- // Perfect circle
106
- .img-circle {
107
- border-radius: 50%; // set radius in percents
108
- }
109
-
110
-
111
- // Horizontal rules
112
-
113
- hr {
114
- margin-top: $line-height-computed;
115
- margin-bottom: $line-height-computed;
116
- border: 0;
117
- border-top: 1px solid $hr-border;
118
- }
119
-
120
-
121
- // Only display content to screen readers
122
- //
123
- // See: http://a11yproject.com/posts/how-to-hide-content/
124
-
125
- .sr-only {
126
- position: absolute;
127
- width: 1px;
128
- height: 1px;
129
- margin: -1px;
130
- padding: 0;
131
- overflow: hidden;
132
- clip: rect(0,0,0,0);
133
- border: 0;
134
- }
135
-
136
- // Use in conjunction with .sr-only to only display content when it's focused.
137
- // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
138
- // Credit: HTML5 Boilerplate
139
-
140
- .sr-only-focusable {
141
- &:active,
142
- &:focus {
143
- position: static;
144
- width: auto;
145
- height: auto;
146
- margin: 0;
147
- overflow: visible;
148
- clip: auto;
149
- }
150
- }