megatron 0.2.36 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/{README.rdoc → README.md} +3 -3
- data/app/assets/images/{400.svg → megatron/400.svg} +0 -0
- data/app/assets/images/{403.svg → megatron/403.svg} +0 -0
- data/app/assets/images/{404.svg → megatron/404.svg} +0 -0
- data/app/assets/images/{408.svg → megatron/408.svg} +0 -0
- data/app/assets/images/{422.svg → megatron/422.svg} +0 -0
- data/app/assets/images/{500.svg → megatron/500.svg} +0 -0
- data/app/assets/images/{502.svg → megatron/502.svg} +0 -0
- data/app/assets/images/{503.svg → megatron/503.svg} +0 -0
- data/app/assets/images/{504.svg → megatron/504.svg} +0 -0
- data/app/assets/images/{888.svg → megatron/888.svg} +0 -0
- data/{public/assets → app/assets/images}/megatron/favicon.ico +0 -0
- data/{public/assets → app/assets/images}/megatron/logo.svg +0 -0
- data/app/assets/javascripts/megatron/_svg.js +55 -0
- data/app/assets/javascripts/megatron/{index.js → megatron.js} +4 -2
- data/app/assets/javascripts/megatron/vendor/bugsnag.js +1256 -0
- data/app/assets/{esvg → svgs}/megatron/account-circle-fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/account-circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/alerts.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/api.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/arrow_left_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/arrow_left_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/arrow_right_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/arrow_right_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/backups.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/bell.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/bubble.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/bubble_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/check.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/check_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/check_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/check_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/chevron.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/chevron_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/circle-fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/cli.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/clock_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/clock_line.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/cluster-hosts.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/cluster.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/collections.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/copy.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/dash_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/dash_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/dash_circle_fill_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/dash_circle_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/database_small.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/databases.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/databases_line.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-beta-line.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-cassandra.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-disque.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-elasticsearch.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-etcd.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-influxdb.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-mongodb-classic.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-mongodb.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-mysql.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-postgresql.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-rabbitmq.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-redis.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-rethinkdb.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment-scylladb.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployment.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/deployments.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/download.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/eye.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/eye_closed.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/face-disappointed.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/face-happy.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/gear.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/gear_line.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/gear_round.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/globe.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/help.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/home.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/hourglass.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/info.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/jobs.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/keys.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/lock.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/locked.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/logs.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/minus.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/monitoring.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/payment.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/plus.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/plus_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/plus_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/power.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/processing.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/puzzle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/question-line.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/question_full.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/restore.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/rocket.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/sandbox.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/scale.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/star.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/tools.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/transporter.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/unlocked.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/users-circle-fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/users-circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/users.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/warning-circle-fill-thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/warning.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/warning_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/warning_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/warning_circle_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/watch.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/x.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/x_circle.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/x_circle_fill.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/x_circle_fill_thin.svg +0 -0
- data/app/assets/{esvg → svgs}/megatron/x_circle_thin.svg +0 -0
- data/app/controllers/megatron/errors_controller.rb +3 -0
- data/app/helpers/megatron/application_helper.rb +0 -95
- data/app/helpers/megatron/icon_helper.rb +11 -7
- data/app/helpers/megatron/layout_helper.rb +2 -10
- data/app/views/layouts/megatron/default.html.slim +76 -0
- data/app/views/layouts/megatron/errors.html.slim +8 -8
- data/app/views/megatron/shared/_flash_messages.html.slim +6 -0
- data/app/views/megatron/shared/_head.html.slim +23 -0
- data/app/views/megatron/shared/_main_content.html.slim +6 -3
- data/lib/megatron/engine.rb +0 -7
- data/lib/megatron/slim_code_filter.rb +21 -0
- data/lib/megatron/version.rb +1 -1
- data/lib/megatron.rb +10 -6
- data/public/{assets/megatron/megatron-0.2.36.css → megatron-0.3.0.css} +1825 -1879
- data/public/megatron-0.3.0.css.gz +0 -0
- data/public/{assets/megatron/megatron-0.2.36.js → megatron-0.3.0.js} +7 -7
- data/public/megatron-0.3.0.js.gz +0 -0
- data/public/megatron-0.3.0.map.json +1 -0
- data/public/megatron-error-pages-0.3.0.css +901 -0
- data/public/megatron-error-pages-0.3.0.css.gz +0 -0
- metadata +149 -135
- data/MIT-LICENSE +0 -20
- data/Rakefile +0 -209
- data/app/assets/javascripts/megatron/esvg.js +0 -55
- data/app/views/layouts/megatron/application.html.slim +0 -67
- data/config/esvg.yml +0 -8
- data/config/routes.rb +0 -2
- data/public/assets/megatron/megatron-0.2.36.css.gz +0 -0
- data/public/assets/megatron/megatron-0.2.36.css.map +0 -7
- data/public/assets/megatron/megatron-0.2.36.js.gz +0 -0
- data/public/assets/megatron/megatron-0.2.36.map.json +0 -1
- data/public/assets/megatron/megatron-error-pages-0.2.36.css +0 -1
- data/public/assets/megatron/megatron-error-pages-0.2.36.css.gz +0 -0
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,8 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: cyborg
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
14
28
|
- !ruby/object:Gem::Dependency
|
15
29
|
name: block_helpers
|
16
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -43,16 +57,16 @@ dependencies:
|
|
43
57
|
name: slim-rails
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
|
-
- - "
|
60
|
+
- - "~>"
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
62
|
+
version: '3.1'
|
49
63
|
type: :runtime
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
|
-
- - "
|
67
|
+
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
69
|
+
version: '3.1'
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: rails
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,124 +123,24 @@ executables: []
|
|
109
123
|
extensions: []
|
110
124
|
extra_rdoc_files: []
|
111
125
|
files:
|
112
|
-
-
|
113
|
-
- README.
|
114
|
-
- Rakefile
|
115
|
-
- app/assets/esvg/megatron/account-circle-fill.svg
|
116
|
-
- app/assets/esvg/megatron/account-circle.svg
|
117
|
-
- app/assets/esvg/megatron/alerts.svg
|
118
|
-
- app/assets/esvg/megatron/api.svg
|
119
|
-
- app/assets/esvg/megatron/arrow_left_circle.svg
|
120
|
-
- app/assets/esvg/megatron/arrow_left_circle_fill.svg
|
121
|
-
- app/assets/esvg/megatron/arrow_right_circle.svg
|
122
|
-
- app/assets/esvg/megatron/arrow_right_circle_fill.svg
|
123
|
-
- app/assets/esvg/megatron/backups.svg
|
124
|
-
- app/assets/esvg/megatron/bell.svg
|
125
|
-
- app/assets/esvg/megatron/bubble.svg
|
126
|
-
- app/assets/esvg/megatron/bubble_fill.svg
|
127
|
-
- app/assets/esvg/megatron/check.svg
|
128
|
-
- app/assets/esvg/megatron/check_circle.svg
|
129
|
-
- app/assets/esvg/megatron/check_circle_fill.svg
|
130
|
-
- app/assets/esvg/megatron/check_thin.svg
|
131
|
-
- app/assets/esvg/megatron/chevron.svg
|
132
|
-
- app/assets/esvg/megatron/chevron_thin.svg
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.md
|
133
128
|
- app/assets/esvg/megatron/chip.svg
|
134
|
-
- app/assets/esvg/megatron/circle-fill.svg
|
135
|
-
- app/assets/esvg/megatron/circle.svg
|
136
|
-
- app/assets/esvg/megatron/cli.svg
|
137
|
-
- app/assets/esvg/megatron/clock_fill.svg
|
138
|
-
- app/assets/esvg/megatron/clock_line.svg
|
139
|
-
- app/assets/esvg/megatron/cluster-hosts.svg
|
140
|
-
- app/assets/esvg/megatron/cluster.svg
|
141
|
-
- app/assets/esvg/megatron/collections.svg
|
142
|
-
- app/assets/esvg/megatron/copy.svg
|
143
|
-
- app/assets/esvg/megatron/dash_circle.svg
|
144
|
-
- app/assets/esvg/megatron/dash_circle_fill.svg
|
145
|
-
- app/assets/esvg/megatron/dash_circle_fill_thin.svg
|
146
|
-
- app/assets/esvg/megatron/dash_circle_thin.svg
|
147
|
-
- app/assets/esvg/megatron/database_small.svg
|
148
|
-
- app/assets/esvg/megatron/databases.svg
|
149
|
-
- app/assets/esvg/megatron/databases_line.svg
|
150
|
-
- app/assets/esvg/megatron/deployment-beta-line.svg
|
151
|
-
- app/assets/esvg/megatron/deployment-cassandra.svg
|
152
|
-
- app/assets/esvg/megatron/deployment-disque.svg
|
153
|
-
- app/assets/esvg/megatron/deployment-elasticsearch.svg
|
154
|
-
- app/assets/esvg/megatron/deployment-etcd.svg
|
155
129
|
- app/assets/esvg/megatron/deployment-graph.svg
|
156
|
-
- app/assets/
|
157
|
-
- app/assets/
|
158
|
-
- app/assets/
|
159
|
-
- app/assets/
|
160
|
-
- app/assets/
|
161
|
-
- app/assets/
|
162
|
-
- app/assets/
|
163
|
-
- app/assets/
|
164
|
-
- app/assets/
|
165
|
-
- app/assets/
|
166
|
-
- app/assets/
|
167
|
-
- app/assets/
|
168
|
-
- app/assets/
|
169
|
-
- app/assets/
|
170
|
-
- app/assets/esvg/megatron/face-disappointed.svg
|
171
|
-
- app/assets/esvg/megatron/face-happy.svg
|
172
|
-
- app/assets/esvg/megatron/gear.svg
|
173
|
-
- app/assets/esvg/megatron/gear_line.svg
|
174
|
-
- app/assets/esvg/megatron/gear_round.svg
|
175
|
-
- app/assets/esvg/megatron/globe.svg
|
176
|
-
- app/assets/esvg/megatron/help.svg
|
177
|
-
- app/assets/esvg/megatron/home.svg
|
178
|
-
- app/assets/esvg/megatron/hourglass.svg
|
179
|
-
- app/assets/esvg/megatron/info.svg
|
180
|
-
- app/assets/esvg/megatron/jobs.svg
|
181
|
-
- app/assets/esvg/megatron/keys.svg
|
182
|
-
- app/assets/esvg/megatron/lock.svg
|
183
|
-
- app/assets/esvg/megatron/locked.svg
|
184
|
-
- app/assets/esvg/megatron/logs.svg
|
185
|
-
- app/assets/esvg/megatron/minus.svg
|
186
|
-
- app/assets/esvg/megatron/monitoring.svg
|
187
|
-
- app/assets/esvg/megatron/payment.svg
|
188
|
-
- app/assets/esvg/megatron/plus.svg
|
189
|
-
- app/assets/esvg/megatron/plus_circle.svg
|
190
|
-
- app/assets/esvg/megatron/plus_circle_fill.svg
|
191
|
-
- app/assets/esvg/megatron/power.svg
|
192
|
-
- app/assets/esvg/megatron/processing.svg
|
193
|
-
- app/assets/esvg/megatron/puzzle.svg
|
194
|
-
- app/assets/esvg/megatron/question-line.svg
|
195
|
-
- app/assets/esvg/megatron/question_full.svg
|
196
|
-
- app/assets/esvg/megatron/restore.svg
|
197
|
-
- app/assets/esvg/megatron/rocket.svg
|
198
|
-
- app/assets/esvg/megatron/sandbox.svg
|
199
|
-
- app/assets/esvg/megatron/scale.svg
|
200
|
-
- app/assets/esvg/megatron/star.svg
|
201
|
-
- app/assets/esvg/megatron/tools.svg
|
202
|
-
- app/assets/esvg/megatron/transporter.svg
|
203
|
-
- app/assets/esvg/megatron/unlocked.svg
|
204
|
-
- app/assets/esvg/megatron/users-circle-fill.svg
|
205
|
-
- app/assets/esvg/megatron/users-circle.svg
|
206
|
-
- app/assets/esvg/megatron/users.svg
|
207
|
-
- app/assets/esvg/megatron/warning-circle-fill-thin.svg
|
208
|
-
- app/assets/esvg/megatron/warning.svg
|
209
|
-
- app/assets/esvg/megatron/warning_circle.svg
|
210
|
-
- app/assets/esvg/megatron/warning_circle_fill.svg
|
211
|
-
- app/assets/esvg/megatron/warning_circle_thin.svg
|
212
|
-
- app/assets/esvg/megatron/watch.svg
|
213
|
-
- app/assets/esvg/megatron/x.svg
|
214
|
-
- app/assets/esvg/megatron/x_circle.svg
|
215
|
-
- app/assets/esvg/megatron/x_circle_fill.svg
|
216
|
-
- app/assets/esvg/megatron/x_circle_fill_thin.svg
|
217
|
-
- app/assets/esvg/megatron/x_circle_thin.svg
|
218
|
-
- app/assets/images/400.svg
|
219
|
-
- app/assets/images/403.svg
|
220
|
-
- app/assets/images/404.svg
|
221
|
-
- app/assets/images/408.svg
|
222
|
-
- app/assets/images/422.svg
|
223
|
-
- app/assets/images/500.svg
|
224
|
-
- app/assets/images/502.svg
|
225
|
-
- app/assets/images/503.svg
|
226
|
-
- app/assets/images/504.svg
|
227
|
-
- app/assets/images/888.svg
|
228
|
-
- app/assets/javascripts/megatron/esvg.js
|
229
|
-
- app/assets/javascripts/megatron/index.js
|
130
|
+
- app/assets/images/megatron/400.svg
|
131
|
+
- app/assets/images/megatron/403.svg
|
132
|
+
- app/assets/images/megatron/404.svg
|
133
|
+
- app/assets/images/megatron/408.svg
|
134
|
+
- app/assets/images/megatron/422.svg
|
135
|
+
- app/assets/images/megatron/500.svg
|
136
|
+
- app/assets/images/megatron/502.svg
|
137
|
+
- app/assets/images/megatron/503.svg
|
138
|
+
- app/assets/images/megatron/504.svg
|
139
|
+
- app/assets/images/megatron/888.svg
|
140
|
+
- app/assets/images/megatron/favicon.ico
|
141
|
+
- app/assets/images/megatron/logo.svg
|
142
|
+
- app/assets/javascripts/megatron/_svg.js
|
143
|
+
- app/assets/javascripts/megatron/megatron.js
|
230
144
|
- app/assets/javascripts/megatron/shims/classlist.js
|
231
145
|
- app/assets/javascripts/megatron/utils/activate-nav-items.js
|
232
146
|
- app/assets/javascripts/megatron/utils/auto-navigate.js
|
@@ -237,6 +151,7 @@ files:
|
|
237
151
|
- app/assets/javascripts/megatron/utils/messages.js
|
238
152
|
- app/assets/javascripts/megatron/utils/progress-bar.js
|
239
153
|
- app/assets/javascripts/megatron/utils/text-helpers.js
|
154
|
+
- app/assets/javascripts/megatron/vendor/bugsnag.js
|
240
155
|
- app/assets/stylesheets/megatron/error-pages/_animations.scss
|
241
156
|
- app/assets/stylesheets/megatron/error-pages/_csi.scss
|
242
157
|
- app/assets/stylesheets/megatron/error-pages/_waves.scss
|
@@ -328,6 +243,107 @@ files:
|
|
328
243
|
- app/assets/stylesheets/megatron/modules/tables/_responsive-table.scss
|
329
244
|
- app/assets/stylesheets/megatron/modules/widgets/_index.scss
|
330
245
|
- app/assets/stylesheets/megatron/modules/widgets/_time-switch.scss
|
246
|
+
- app/assets/svgs/megatron/account-circle-fill.svg
|
247
|
+
- app/assets/svgs/megatron/account-circle.svg
|
248
|
+
- app/assets/svgs/megatron/alerts.svg
|
249
|
+
- app/assets/svgs/megatron/api.svg
|
250
|
+
- app/assets/svgs/megatron/arrow_left_circle.svg
|
251
|
+
- app/assets/svgs/megatron/arrow_left_circle_fill.svg
|
252
|
+
- app/assets/svgs/megatron/arrow_right_circle.svg
|
253
|
+
- app/assets/svgs/megatron/arrow_right_circle_fill.svg
|
254
|
+
- app/assets/svgs/megatron/backups.svg
|
255
|
+
- app/assets/svgs/megatron/bell.svg
|
256
|
+
- app/assets/svgs/megatron/bubble.svg
|
257
|
+
- app/assets/svgs/megatron/bubble_fill.svg
|
258
|
+
- app/assets/svgs/megatron/check.svg
|
259
|
+
- app/assets/svgs/megatron/check_circle.svg
|
260
|
+
- app/assets/svgs/megatron/check_circle_fill.svg
|
261
|
+
- app/assets/svgs/megatron/check_thin.svg
|
262
|
+
- app/assets/svgs/megatron/chevron.svg
|
263
|
+
- app/assets/svgs/megatron/chevron_thin.svg
|
264
|
+
- app/assets/svgs/megatron/circle-fill.svg
|
265
|
+
- app/assets/svgs/megatron/circle.svg
|
266
|
+
- app/assets/svgs/megatron/cli.svg
|
267
|
+
- app/assets/svgs/megatron/clock_fill.svg
|
268
|
+
- app/assets/svgs/megatron/clock_line.svg
|
269
|
+
- app/assets/svgs/megatron/cluster-hosts.svg
|
270
|
+
- app/assets/svgs/megatron/cluster.svg
|
271
|
+
- app/assets/svgs/megatron/collections.svg
|
272
|
+
- app/assets/svgs/megatron/copy.svg
|
273
|
+
- app/assets/svgs/megatron/dash_circle.svg
|
274
|
+
- app/assets/svgs/megatron/dash_circle_fill.svg
|
275
|
+
- app/assets/svgs/megatron/dash_circle_fill_thin.svg
|
276
|
+
- app/assets/svgs/megatron/dash_circle_thin.svg
|
277
|
+
- app/assets/svgs/megatron/database_small.svg
|
278
|
+
- app/assets/svgs/megatron/databases.svg
|
279
|
+
- app/assets/svgs/megatron/databases_line.svg
|
280
|
+
- app/assets/svgs/megatron/deployment-beta-line.svg
|
281
|
+
- app/assets/svgs/megatron/deployment-cassandra.svg
|
282
|
+
- app/assets/svgs/megatron/deployment-disque.svg
|
283
|
+
- app/assets/svgs/megatron/deployment-elasticsearch.svg
|
284
|
+
- app/assets/svgs/megatron/deployment-etcd.svg
|
285
|
+
- app/assets/svgs/megatron/deployment-influxdb.svg
|
286
|
+
- app/assets/svgs/megatron/deployment-mongodb-classic.svg
|
287
|
+
- app/assets/svgs/megatron/deployment-mongodb.svg
|
288
|
+
- app/assets/svgs/megatron/deployment-mysql.svg
|
289
|
+
- app/assets/svgs/megatron/deployment-postgresql.svg
|
290
|
+
- app/assets/svgs/megatron/deployment-rabbitmq.svg
|
291
|
+
- app/assets/svgs/megatron/deployment-redis.svg
|
292
|
+
- app/assets/svgs/megatron/deployment-rethinkdb.svg
|
293
|
+
- app/assets/svgs/megatron/deployment-scylladb.svg
|
294
|
+
- app/assets/svgs/megatron/deployment.svg
|
295
|
+
- app/assets/svgs/megatron/deployments.svg
|
296
|
+
- app/assets/svgs/megatron/download.svg
|
297
|
+
- app/assets/svgs/megatron/eye.svg
|
298
|
+
- app/assets/svgs/megatron/eye_closed.svg
|
299
|
+
- app/assets/svgs/megatron/face-disappointed.svg
|
300
|
+
- app/assets/svgs/megatron/face-happy.svg
|
301
|
+
- app/assets/svgs/megatron/gear.svg
|
302
|
+
- app/assets/svgs/megatron/gear_line.svg
|
303
|
+
- app/assets/svgs/megatron/gear_round.svg
|
304
|
+
- app/assets/svgs/megatron/globe.svg
|
305
|
+
- app/assets/svgs/megatron/help.svg
|
306
|
+
- app/assets/svgs/megatron/home.svg
|
307
|
+
- app/assets/svgs/megatron/hourglass.svg
|
308
|
+
- app/assets/svgs/megatron/info.svg
|
309
|
+
- app/assets/svgs/megatron/jobs.svg
|
310
|
+
- app/assets/svgs/megatron/keys.svg
|
311
|
+
- app/assets/svgs/megatron/lock.svg
|
312
|
+
- app/assets/svgs/megatron/locked.svg
|
313
|
+
- app/assets/svgs/megatron/logs.svg
|
314
|
+
- app/assets/svgs/megatron/minus.svg
|
315
|
+
- app/assets/svgs/megatron/monitoring.svg
|
316
|
+
- app/assets/svgs/megatron/payment.svg
|
317
|
+
- app/assets/svgs/megatron/plus.svg
|
318
|
+
- app/assets/svgs/megatron/plus_circle.svg
|
319
|
+
- app/assets/svgs/megatron/plus_circle_fill.svg
|
320
|
+
- app/assets/svgs/megatron/power.svg
|
321
|
+
- app/assets/svgs/megatron/processing.svg
|
322
|
+
- app/assets/svgs/megatron/puzzle.svg
|
323
|
+
- app/assets/svgs/megatron/question-line.svg
|
324
|
+
- app/assets/svgs/megatron/question_full.svg
|
325
|
+
- app/assets/svgs/megatron/restore.svg
|
326
|
+
- app/assets/svgs/megatron/rocket.svg
|
327
|
+
- app/assets/svgs/megatron/sandbox.svg
|
328
|
+
- app/assets/svgs/megatron/scale.svg
|
329
|
+
- app/assets/svgs/megatron/star.svg
|
330
|
+
- app/assets/svgs/megatron/tools.svg
|
331
|
+
- app/assets/svgs/megatron/transporter.svg
|
332
|
+
- app/assets/svgs/megatron/unlocked.svg
|
333
|
+
- app/assets/svgs/megatron/users-circle-fill.svg
|
334
|
+
- app/assets/svgs/megatron/users-circle.svg
|
335
|
+
- app/assets/svgs/megatron/users.svg
|
336
|
+
- app/assets/svgs/megatron/warning-circle-fill-thin.svg
|
337
|
+
- app/assets/svgs/megatron/warning.svg
|
338
|
+
- app/assets/svgs/megatron/warning_circle.svg
|
339
|
+
- app/assets/svgs/megatron/warning_circle_fill.svg
|
340
|
+
- app/assets/svgs/megatron/warning_circle_thin.svg
|
341
|
+
- app/assets/svgs/megatron/watch.svg
|
342
|
+
- app/assets/svgs/megatron/x.svg
|
343
|
+
- app/assets/svgs/megatron/x_circle.svg
|
344
|
+
- app/assets/svgs/megatron/x_circle_fill.svg
|
345
|
+
- app/assets/svgs/megatron/x_circle_fill_thin.svg
|
346
|
+
- app/assets/svgs/megatron/x_circle_thin.svg
|
331
347
|
- app/controllers/megatron/errors_controller.rb
|
332
348
|
- app/helpers/megatron/application_helper.rb
|
333
349
|
- app/helpers/megatron/box_helper.rb
|
@@ -341,7 +357,7 @@ files:
|
|
341
357
|
- app/helpers/megatron/navigation_helper.rb
|
342
358
|
- app/helpers/megatron/progress_helper.rb
|
343
359
|
- app/helpers/megatron/tab_helper.rb
|
344
|
-
- app/views/layouts/megatron/
|
360
|
+
- app/views/layouts/megatron/default.html.slim
|
345
361
|
- app/views/layouts/megatron/errors.html.slim
|
346
362
|
- app/views/megatron/errors/bad_request.html.slim
|
347
363
|
- app/views/megatron/errors/forbidden.html.slim
|
@@ -353,25 +369,23 @@ files:
|
|
353
369
|
- app/views/megatron/errors/unauthorized.html.slim
|
354
370
|
- app/views/megatron/errors/unprocessable_entity.html.slim
|
355
371
|
- app/views/megatron/shared/_box_message.html.slim
|
372
|
+
- app/views/megatron/shared/_flash_messages.html.slim
|
373
|
+
- app/views/megatron/shared/_head.html.slim
|
356
374
|
- app/views/megatron/shared/_main_content.html.slim
|
357
375
|
- app/views/megatron/shared/_primary_nav.html.slim
|
358
|
-
- config/esvg.yml
|
359
|
-
- config/routes.rb
|
360
376
|
- lib/megatron.rb
|
361
377
|
- lib/megatron/engine.rb
|
362
378
|
- lib/megatron/form.rb
|
363
379
|
- lib/megatron/helper.rb
|
380
|
+
- lib/megatron/slim_code_filter.rb
|
364
381
|
- lib/megatron/version.rb
|
365
|
-
- public/
|
366
|
-
- public/
|
367
|
-
- public/
|
368
|
-
- public/
|
369
|
-
- public/
|
370
|
-
- public/
|
371
|
-
- public/
|
372
|
-
- public/assets/megatron/megatron-0.2.36.map.json
|
373
|
-
- public/assets/megatron/megatron-error-pages-0.2.36.css
|
374
|
-
- public/assets/megatron/megatron-error-pages-0.2.36.css.gz
|
382
|
+
- public/megatron-0.3.0.css
|
383
|
+
- public/megatron-0.3.0.css.gz
|
384
|
+
- public/megatron-0.3.0.js
|
385
|
+
- public/megatron-0.3.0.js.gz
|
386
|
+
- public/megatron-0.3.0.map.json
|
387
|
+
- public/megatron-error-pages-0.3.0.css
|
388
|
+
- public/megatron-error-pages-0.3.0.css.gz
|
375
389
|
homepage: https://www.compose.io
|
376
390
|
licenses:
|
377
391
|
- MIT
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2015 Jerome Gravel-Niquet
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
@@ -1,209 +0,0 @@
|
|
1
|
-
$stdout.sync = true
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'bundler/setup'
|
5
|
-
rescue LoadError
|
6
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
-
end
|
8
|
-
|
9
|
-
require 'rdoc/task'
|
10
|
-
|
11
|
-
begin
|
12
|
-
require 'rspec/core/rake_task'
|
13
|
-
RSpec::Core::RakeTask.new(:spec)
|
14
|
-
rescue LoadError
|
15
|
-
end
|
16
|
-
|
17
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
18
|
-
rdoc.rdoc_dir = 'rdoc'
|
19
|
-
rdoc.title = 'Megatron'
|
20
|
-
rdoc.options << '--line-numbers'
|
21
|
-
rdoc.rdoc_files.include('README.rdoc')
|
22
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
|
-
end
|
24
|
-
|
25
|
-
task :start do
|
26
|
-
ENV['LOCAL_DEV'] = "TRUE"
|
27
|
-
system 'foreman start'
|
28
|
-
end
|
29
|
-
|
30
|
-
task :watch do
|
31
|
-
system 'foreman start -c svg=1,js=1,css=1'
|
32
|
-
end
|
33
|
-
|
34
|
-
Bundler::GemHelper.install_tasks
|
35
|
-
|
36
|
-
namespace :megatron do
|
37
|
-
|
38
|
-
require 'megatron'
|
39
|
-
require 's3'
|
40
|
-
|
41
|
-
task :upload do
|
42
|
-
|
43
|
-
bucket = S3::Service.new(access_key_id: ENV['AWS_KEY'], secret_access_key: ENV['AWS_SECRET']).buckets.find('megatron-assets')
|
44
|
-
|
45
|
-
Dir.glob('public/assets/megatron/*') do |file|
|
46
|
-
name = file.split('/').last
|
47
|
-
obj = bucket.objects.build("assets/megatron/#{name}")
|
48
|
-
|
49
|
-
obj.acl = :public_read
|
50
|
-
|
51
|
-
obj.content_type = if name.end_with?('.js') || name.end_with?('.js.gz')
|
52
|
-
'application/javascript'
|
53
|
-
elsif name.end_with?('.css') || name.end_with?('.css.gz')
|
54
|
-
'text/css'
|
55
|
-
elsif name.end_with?('.json') || name.end_with?('.map')
|
56
|
-
'application/json'
|
57
|
-
elsif name.end_with?('.ico')
|
58
|
-
'image/x-icon'
|
59
|
-
elsif name.end_with?('.svg')
|
60
|
-
'image/svg+xml'
|
61
|
-
else
|
62
|
-
'text/plain'
|
63
|
-
end
|
64
|
-
|
65
|
-
obj.content_encoding = 'gzip' if name.end_with?('.gz')
|
66
|
-
obj.content = open(file)
|
67
|
-
|
68
|
-
puts "Uploading #{file} to megatron-assets on S3..."
|
69
|
-
|
70
|
-
if obj.save
|
71
|
-
puts "Success!"
|
72
|
-
else
|
73
|
-
puts "Failure :("
|
74
|
-
exit 1
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
end
|
79
|
-
|
80
|
-
namespace :js do
|
81
|
-
task :watch do
|
82
|
-
system "./node_modules/.bin/watchify app/assets/javascripts/megatron/index.js --poll --debug -t babelify -o public/assets/megatron/megatron-#{Megatron::VERSION}.js -v"
|
83
|
-
end
|
84
|
-
|
85
|
-
task :build do
|
86
|
-
build_js
|
87
|
-
end
|
88
|
-
|
89
|
-
task :gzip do
|
90
|
-
gzip("public/assets/megatron/*.js")
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
namespace :css do
|
95
|
-
|
96
|
-
task :watch do
|
97
|
-
|
98
|
-
require 'listen'
|
99
|
-
|
100
|
-
listener = Listen.to('app/assets/stylesheets/megatron/', only: /\.scss$/) do |modified, added, removed|
|
101
|
-
build_megatron_css
|
102
|
-
end
|
103
|
-
|
104
|
-
build_megatron_css
|
105
|
-
|
106
|
-
puts "Initial CSS build, done. Listening for changes..."
|
107
|
-
|
108
|
-
listener.start # not blocking
|
109
|
-
sleep
|
110
|
-
|
111
|
-
end
|
112
|
-
|
113
|
-
task :build do
|
114
|
-
build_megatron_css
|
115
|
-
end
|
116
|
-
|
117
|
-
task :gzip do
|
118
|
-
gzip("public/assets/megatron/*.css")
|
119
|
-
end
|
120
|
-
|
121
|
-
end
|
122
|
-
|
123
|
-
namespace :svg do
|
124
|
-
require 'esvg'
|
125
|
-
|
126
|
-
task :watch do
|
127
|
-
require 'listen'
|
128
|
-
|
129
|
-
listener = Listen.to('app/assets/esvg/megatron/', only: /\.svg$/) do |modified, added, removed|
|
130
|
-
build_svg
|
131
|
-
end
|
132
|
-
|
133
|
-
build_svg
|
134
|
-
|
135
|
-
puts "Initial SVG build, done. Listening for changes..."
|
136
|
-
|
137
|
-
listener.start # not blocking
|
138
|
-
sleep
|
139
|
-
|
140
|
-
end
|
141
|
-
|
142
|
-
task :build do
|
143
|
-
build_svg
|
144
|
-
end
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
# Run the server first, then run this rake task to write error messages to disk
|
149
|
-
#
|
150
|
-
task :build_errors do
|
151
|
-
dir = 'server/tmp/error_pages'
|
152
|
-
zip = 'error_pages.zip'
|
153
|
-
FileUtils.mkdir_p(dir)
|
154
|
-
FileUtils.rm(zip) if File.exist?(zip)
|
155
|
-
[408, 502, 503, 504].each do |code|
|
156
|
-
system "curl http://localhost:5000/errors/#{code} > #{dir}/#{code}.html"
|
157
|
-
system "zip -r -X #{zip} #{dir}"
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
end
|
162
|
-
|
163
|
-
def build_megatron_css
|
164
|
-
build_css("megatron")
|
165
|
-
build_css('megatron-error-pages', 'compressed', 'none')
|
166
|
-
end
|
167
|
-
|
168
|
-
def build_css(file, style='nested', sourcemap='auto')
|
169
|
-
style = "compressed" if ENV['CI']
|
170
|
-
destination = "public/assets/megatron/#{file}-#{Megatron::VERSION}.css"
|
171
|
-
system "bundle exec sass app/assets/stylesheets/megatron/#{file}.scss:#{destination} --style #{style} --sourcemap=#{sourcemap}"
|
172
|
-
system "./node_modules/postcss-cli/bin/postcss --use autoprefixer #{destination} -o #{destination}"
|
173
|
-
puts "Built: #{destination}"
|
174
|
-
end
|
175
|
-
|
176
|
-
def build_js
|
177
|
-
system "./node_modules/.bin/browserify app/assets/javascripts/megatron/index.js -t babelify --standalone Megatron -o public/assets/megatron/megatron-#{Megatron::VERSION}.js -d -p [ minifyify --map megatron-#{Megatron::VERSION}.map.json --output public/assets/megatron/megatron-#{Megatron::VERSION}.map.json ]"
|
178
|
-
end
|
179
|
-
|
180
|
-
def build_svg
|
181
|
-
if @svg.nil?
|
182
|
-
@svg = Esvg::SVG.new
|
183
|
-
else
|
184
|
-
@svg.read_files
|
185
|
-
end
|
186
|
-
|
187
|
-
@svg.write
|
188
|
-
end
|
189
|
-
|
190
|
-
ZIP_TYPES = /\.(?:css|html|js|otf|svg|txt|xml)$/
|
191
|
-
|
192
|
-
def gzip(glob)
|
193
|
-
Dir["#{Dir.pwd}/#{glob}"].each do |f|
|
194
|
-
next unless f =~ ZIP_TYPES
|
195
|
-
|
196
|
-
mtime = File.mtime(f)
|
197
|
-
gz_file = "#{f}.gz"
|
198
|
-
next if File.exist?(gz_file) && File.mtime(gz_file) >= mtime
|
199
|
-
|
200
|
-
File.open(gz_file, "wb") do |dest|
|
201
|
-
gz = Zlib::GzipWriter.new(dest, Zlib::BEST_COMPRESSION)
|
202
|
-
gz.mtime = mtime.to_i
|
203
|
-
IO.copy_stream(open(f), gz)
|
204
|
-
gz.close
|
205
|
-
end
|
206
|
-
|
207
|
-
File.utime(mtime, mtime, gz_file)
|
208
|
-
end
|
209
|
-
end
|