flammarion 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +62 -1
- data/Readme.md +91 -5
- data/electron/preload.coffee +3 -5
- data/electron/preload.js +6 -0
- data/lib/flammarion.rb +0 -6
- data/lib/flammarion/about.rb +3 -0
- data/lib/flammarion/pane.rb +2 -1
- data/lib/flammarion/version.rb +3 -3
- data/lib/flammarion/writeable.rb +4 -2
- data/lib/html/build/index.html +1 -1
- data/lib/html/build/javascripts/actions.js +24 -143
- data/lib/html/build/javascripts/all.js +177 -101
- data/lib/html/build/javascripts/input.js +372 -0
- data/lib/html/build/javascripts/map.js +20 -7
- data/lib/html/build/javascripts/searchbar.js +28 -0
- data/lib/html/build/javascripts/websocket.js +20 -7
- data/lib/html/build/stylesheets/all.css +20 -0
- data/lib/html/build/stylesheets/frontend.css +5 -0
- data/lib/html/build/stylesheets/searchbar.css +15 -0
- data/lib/html/source/index.html.slim +3 -1
- data/lib/html/source/javascripts/actions.coffee +4 -100
- data/lib/html/source/javascripts/input.coffee +117 -0
- data/lib/html/source/javascripts/searchbar.coffee +19 -0
- data/lib/html/source/javascripts/websocket.coffee +7 -4
- data/lib/html/source/stylesheets/buttons.styl +1 -2
- data/lib/html/source/stylesheets/frontend.styl +5 -0
- data/lib/html/source/stylesheets/searchbar.styl +16 -0
- metadata +7 -1
@@ -41,19 +41,22 @@ class WSClient
|
|
41
41
|
target = $('#panes')
|
42
42
|
|
43
43
|
allPanes = target.find('> .pane')
|
44
|
-
height = (100.0 / allPanes.size()).toFixed(0) + "%"
|
45
44
|
if target.hasClass('horizontal')
|
46
45
|
orientation = 'horizontal'
|
47
46
|
else
|
48
47
|
orientation = 'vertical'
|
49
48
|
|
50
|
-
|
49
|
+
total_weight = ((parseFloat($(i).attr('pane-weight') || 1.0)) for i in allPanes).reduce (t,s) -> t + s
|
50
|
+
# total_weight = (allPanes.map((i) -> parseFloat(i[].attr('pane-weight')))).reduce (t, s) -> t + s
|
51
|
+
|
52
|
+
p_height = (pane) -> (parseFloat($(pane).attr('pane-weight') || 1.0) / total_weight * 100).toFixed(0) + "%"
|
53
|
+
console.log target, allPanes.size(), 100.0 / allPanes.size(), total_weight, orientation
|
51
54
|
for pane in allPanes
|
52
55
|
if orientation is 'horizontal'
|
53
|
-
$(pane).css "width",
|
56
|
+
$(pane).css "width", p_height(pane)
|
54
57
|
$(pane).css "height", '100%'
|
55
58
|
else
|
56
|
-
$(pane).css "height",
|
59
|
+
$(pane).css "height", p_height(pane)
|
57
60
|
$(pane).css "width", '100%'
|
58
61
|
|
59
62
|
escape: (text, input_options) ->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@import 'colors.styl'
|
2
|
+
@import 'mixins.styl'
|
3
|
+
|
4
|
+
#searchbar
|
5
|
+
position absolute
|
6
|
+
right 10%
|
7
|
+
top 0px
|
8
|
+
padding 5px
|
9
|
+
padding-top 0px
|
10
|
+
background-color $bg-color
|
11
|
+
border $normal-border
|
12
|
+
border-top 0px
|
13
|
+
border-radius 0 0 4px 4px
|
14
|
+
drop-shadow()
|
15
|
+
& > input
|
16
|
+
margin-left 1em
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flammarion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/html/source/stylesheets/markdown.styl
|
200
200
|
- lib/html/source/stylesheets/table.styl
|
201
201
|
- lib/html/source/stylesheets/map.styl
|
202
|
+
- lib/html/source/stylesheets/searchbar.styl
|
202
203
|
- lib/html/source/images/marker-shadow.png
|
203
204
|
- lib/html/source/images/layers-2x.png
|
204
205
|
- lib/html/source/images/marker-icon-2x.png
|
@@ -218,6 +219,8 @@ files:
|
|
218
219
|
- lib/html/source/javascripts/vendor/highlight.pack.js
|
219
220
|
- lib/html/source/javascripts/websocket.coffee
|
220
221
|
- lib/html/source/javascripts/plot.coffee
|
222
|
+
- lib/html/source/javascripts/searchbar.coffee
|
223
|
+
- lib/html/source/javascripts/input.coffee
|
221
224
|
- lib/html/source/javascripts/status.coffee
|
222
225
|
- lib/html/source/javascripts/map.coffee
|
223
226
|
- lib/html/source/javascripts/querystring.coffee
|
@@ -232,6 +235,7 @@ files:
|
|
232
235
|
- lib/html/build/stylesheets/scrollbar.css
|
233
236
|
- lib/html/build/stylesheets/leaflet.css
|
234
237
|
- lib/html/build/stylesheets/dialog.css
|
238
|
+
- lib/html/build/stylesheets/searchbar.css
|
235
239
|
- lib/html/build/stylesheets/colors.css
|
236
240
|
- lib/html/build/stylesheets/frontend.css
|
237
241
|
- lib/html/build/stylesheets/markdown.css
|
@@ -265,9 +269,11 @@ files:
|
|
265
269
|
- lib/html/build/javascripts/vendor/leaflet.js
|
266
270
|
- lib/html/build/javascripts/vendor/ansi_up.js
|
267
271
|
- lib/html/build/javascripts/vendor/highlight.pack.js
|
272
|
+
- lib/html/build/javascripts/searchbar.js
|
268
273
|
- lib/html/build/javascripts/status.js
|
269
274
|
- lib/html/build/javascripts/map.js
|
270
275
|
- lib/html/build/javascripts/actions.js
|
276
|
+
- lib/html/build/javascripts/input.js
|
271
277
|
- lib/html/build/javascripts/querystring.js
|
272
278
|
- lib/html/build/fonts/fontawesome-webfont.eot
|
273
279
|
- lib/html/build/fonts/fontawesome-webfont.woff2
|