bandshell 0.0.21 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bandshell/application/app.rb +10 -10
  3. data/lib/bandshell/application/public/images/elements/logomark.png +0 -0
  4. data/lib/bandshell/application/public/images/layout/pagebg.gif +0 -0
  5. data/lib/bandshell/application/public/images/layout/pagebg@2x.gif +0 -0
  6. data/lib/bandshell/application/public/{authenticate.js → javascripts/authenticate.js} +0 -0
  7. data/lib/bandshell/application/public/{network.js → javascripts/network.js} +2 -2
  8. data/lib/bandshell/application/public/{problem.js → javascripts/problem.js} +0 -0
  9. data/lib/bandshell/application/public/stylesheets/README +3 -0
  10. data/lib/bandshell/application/public/stylesheets/concerto-styles.css +5387 -0
  11. data/lib/bandshell/application/public/stylesheets/sass/common/concertocons.scss +122 -0
  12. data/lib/bandshell/application/public/stylesheets/sass/common/font-awesome.scss +1273 -0
  13. data/lib/bandshell/application/public/stylesheets/sass/common/mixins.scss +284 -0
  14. data/lib/bandshell/application/public/stylesheets/sass/common/reset.scss +125 -0
  15. data/lib/bandshell/application/public/stylesheets/sass/common/variables.scss +139 -0
  16. data/lib/bandshell/application/public/stylesheets/sass/components/alerts-badges.scss +145 -0
  17. data/lib/bandshell/application/public/stylesheets/sass/components/bootstrap-modals.scss +115 -0
  18. data/lib/bandshell/application/public/stylesheets/sass/components/button-groups.scss +129 -0
  19. data/lib/bandshell/application/public/stylesheets/sass/components/buttons.scss +236 -0
  20. data/lib/bandshell/application/public/stylesheets/sass/components/datepicker.scss +337 -0
  21. data/lib/bandshell/application/public/stylesheets/sass/components/display-blocks.scss +194 -0
  22. data/lib/bandshell/application/public/stylesheets/sass/components/forms.scss +486 -0
  23. data/lib/bandshell/application/public/stylesheets/sass/components/jquery.qtip2.scss +259 -0
  24. data/lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.css +8 -0
  25. data/lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.scss +8 -0
  26. data/lib/bandshell/application/public/stylesheets/sass/components/lists-grid-stacked.scss +265 -0
  27. data/lib/bandshell/application/public/stylesheets/sass/components/navs.scss +465 -0
  28. data/lib/bandshell/application/public/stylesheets/sass/components/pagination.scss +64 -0
  29. data/lib/bandshell/application/public/stylesheets/sass/components/scaffolding.scss +75 -0
  30. data/lib/bandshell/application/public/stylesheets/sass/components/screenmodel.scss +66 -0
  31. data/lib/bandshell/application/public/stylesheets/sass/components/sliders.scss +98 -0
  32. data/lib/bandshell/application/public/stylesheets/sass/components/tables.scss +243 -0
  33. data/lib/bandshell/application/public/stylesheets/sass/components/tiles.scss +169 -0
  34. data/lib/bandshell/application/public/stylesheets/sass/components/topmenu.scss +218 -0
  35. data/lib/bandshell/application/public/stylesheets/sass/components/type.scss +259 -0
  36. data/lib/bandshell/application/public/stylesheets/sass/index-manifest.scss +32 -0
  37. data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-1200px-min.scss +31 -0
  38. data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-767px-max.scss +178 -0
  39. data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-768px-979px.scss +21 -0
  40. data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-utilities.scss +41 -0
  41. data/lib/bandshell/application/public/stylesheets/sass/views/setup.scss +5 -0
  42. data/lib/bandshell/application/public/stylesheets/sass/views/submissions.scss +36 -0
  43. data/lib/bandshell/application/public/stylesheets/sass/views/users.scss +15 -0
  44. data/lib/bandshell/application/views/authenticate.erb +15 -0
  45. data/lib/bandshell/application/views/main.erb +55 -0
  46. data/lib/bandshell/application/views/main.haml +2 -1
  47. data/lib/bandshell/application/views/netsettings.erb +147 -0
  48. data/lib/bandshell/application/views/netsettings.haml +1 -1
  49. data/lib/bandshell/application/views/password.erb +23 -0
  50. data/lib/bandshell/application/views/player_status.erb +16 -0
  51. data/lib/bandshell/application/views/problem.erb +20 -0
  52. data/lib/bandshell/application/views/setup.erb +58 -0
  53. metadata +52 -8
  54. data/lib/bandshell/application/public/stylesheet.css +0 -3
@@ -0,0 +1,147 @@
1
+ <script src="/javascripts/network.js"></script>
2
+
3
+ <div class="clearfix">
4
+ <ul class="nav nav-tabs">
5
+ <li><a href="/setup">Basic Setup</a></li>
6
+ <li class="active"><a href="/netconfig">Network Settings</a></li>
7
+ <li><a href="/password">Configuration Password</a></li>
8
+ </ul>
9
+ </div>
10
+
11
+ <div>
12
+
13
+ <form method="post">
14
+ <fieldset>
15
+ <legend><span>Connection Type</span></legend>
16
+
17
+ <div class="clearfix">
18
+ <select id="connection_type" name="connection_type">
19
+ <!-- list out our available connection methods as options set the html selected flag on the one that is currently selected in the config -->
20
+ <% CONNECTION_METHODS.each do |cm| %>
21
+ <option <%= cm==connection_method.class ? 'selected' : '' %> value="<%= cm.basename %>">
22
+ <%= cm.description %>
23
+ </option>
24
+ <% end %>
25
+ </select>
26
+ </div>
27
+
28
+ <div id="connection">
29
+ <div id="WiredConnection" class="clearfix">
30
+
31
+ <div class="clearfix">
32
+ <label for="WiredConnection_interface_name">Interface Name</label>
33
+ <div class="input">
34
+ <select id="interface_name" name="WiredConnection/interface_name">
35
+ <!-- list out available interfaces and their MAC addresses - preselect one if there was one chosen in config -->
36
+ <option value="">Auto Select</option>
37
+ <% Bandshell::WiredConnection.interfaces.each do |iface| %>
38
+ <option <%= value_from(connection_method, :interface_name)==iface.name ? 'selected' : '' %> value="<%= iface.name %>">
39
+ <%= iface.name %> - <%= iface.mac %>
40
+ </option>
41
+ <% end %>
42
+ </select>
43
+ </div>
44
+ </div>
45
+
46
+ </div>
47
+
48
+ <div id="WirelessConnection" class="clearfix">
49
+ <div class="row-fluid">
50
+ <div class="span6">
51
+
52
+ <div class="clearfix">
53
+ <label for="WirelessConnection_interface_name">Interface Name</label>
54
+ <div class="input">
55
+ <select id="interface_name" name="WirelessConnection/interface_name">
56
+ <!-- same as above but with the wireless interfaces -->
57
+ <option value="">Auto Select</option>
58
+ <% Bandshell::WirelessConnection.interfaces.each do |iface| %>
59
+ <option <%= value_from(connection_method, :interface_name) == iface.name ? 'selected' : '' %> value="<%= iface.name %>">
60
+ <%= iface.name %> - <%= iface.mac %>
61
+ </option>
62
+ <% end %>
63
+ </select>
64
+ </div>
65
+ </div>
66
+
67
+ </div>
68
+ <div class="span6">
69
+
70
+ <div class="clearfix">
71
+ <label for="WirelessConnection_ssid">SSID</label>
72
+ <div class="input">
73
+ <input name="WirelessConnection/ssid" type="text" class="fillWidth" value="<%= value_from(connection_method, :ssid) %>"></input>
74
+ </div>
75
+ </div>
76
+
77
+ </div>
78
+ </div>
79
+
80
+ </div>
81
+ </div>
82
+ </fieldset>
83
+
84
+ <fieldset>
85
+ <legend><span>IP Address</span></legend>
86
+
87
+ <div class="clearfix">
88
+ <select id="addressing_type" name="addressing_type">
89
+ <% ADDRESSING_METHODS.each do |am| %>
90
+ <option <%= am==addressing_method.class ? 'selected' : '' %> value="<%= am.basename %>">
91
+ <%= am.description %>
92
+ </option>
93
+ <% end %>
94
+ </select>
95
+ </div>
96
+
97
+ <div id="address">
98
+ <div id="DHCPAddressing" class="clearfix"></div>
99
+ <div id="StaticAddressing" class="clearfix">
100
+ <div class="row-fluid">
101
+ <div class="span6">
102
+
103
+ <div class="clearfix">
104
+ <label for="StaticAddressing_address">Address</label>
105
+ <div class="input">
106
+ <input name="StaticAddressing/address" type="text" class="fillWidth" value="<%= value_from(addressing_method, :address) %>"></input>
107
+ </div>
108
+ </div>
109
+
110
+ <div class="clearfix">
111
+ <label for="StaticAddressing_netmask">Netmask</label>
112
+ <div class="input">
113
+ <input name="StaticAddressing/netmask" type="text" class="fillWidth" value="<%= value_from(addressing_method, :netmask) %>"></input>
114
+ </div>
115
+ </div>
116
+
117
+ </div><!-- end .span6 -->
118
+ <div class="span6">
119
+
120
+ <div class="clearfix">
121
+ <label for="StaticAddressing_gateway">Gateway</label>
122
+ <div class="input">
123
+ <input name="StaticAddressing/gateway" type="text" class="fillWidth" value="<%= value_from(addressing_method, :gateway) %>"></input>
124
+ </div>
125
+ </div>
126
+
127
+ <div class="clearfix">
128
+ <label for="StaticAddressing_address">Nameservers (separate with commas or spaces)</label>
129
+ <div class="input">
130
+ <input name="StaticAddressing/nameservers_flat" type="text" class="fillWidth" value="<%= value_from(addressing_method, :nameservers_flat) %>"></input>
131
+ </div>
132
+ </div>
133
+
134
+ </div><!-- end .span6 -->
135
+
136
+ </div><!-- end .row-fluid -->
137
+
138
+ </div>
139
+ </div>
140
+ </fieldset>
141
+
142
+ <div class="default-padding" style="padding: 18px;">
143
+ <input type="submit" class="btn btn-primary"></input>
144
+ </div>
145
+
146
+ </form>
147
+ </div>
@@ -1,4 +1,4 @@
1
- %script{:src=>"network.js"}
1
+ %script{:src=>"/javascripts/network.js"}
2
2
  %a{:href=>"/setup"}="Back to setup"
3
3
  %h1="Concerto Player Network Configuration"
4
4
  %form{:method=>"post"}
@@ -0,0 +1,23 @@
1
+ <div class="clearfix">
2
+ <ul class="nav nav-tabs">
3
+ <li><a href="/setup">Basic Setup</a></li>
4
+ <li><a href="/netconfig">Network Settings</a></li>
5
+ <li class="active"><a href="/password">Configuration Password</a></li>
6
+ </ul>
7
+ </div>
8
+
9
+ <div class="default-padding">
10
+ <form method="post">
11
+ <p>
12
+ <label for="newpass">New Password</label>
13
+ <input class="input-large" name="newpass" type="password"></input>
14
+ </p>
15
+ <p>
16
+ <label for="newpass_confirm">Confirm Password</label>
17
+ <input class="input-large" name="newpass_confirm" type="password"></input>
18
+ </p>
19
+ <p>
20
+ <input type="submit" class="btn btn-primary" value="Change Password"></input>
21
+ </p>
22
+ </form>
23
+ </div>
@@ -0,0 +1,16 @@
1
+ <p>System Uptime: <%= Uptime.uptime %></p>
2
+ <p>System Processes:</p>
3
+ <ul>
4
+ <% for p in @proctable %>
5
+ <li>
6
+ <b>
7
+ <%= p.comm %>
8
+ </b>
9
+ (PID <%= p.pid.to_s %>)
10
+ </li>
11
+ <% end %>
12
+ </ul>
13
+ <p>Screen on/off rules:</p>
14
+ <pre>
15
+ <%= JSON.pretty_generate(@on_off_rules) %>
16
+ </pre>
@@ -0,0 +1,20 @@
1
+ <script src="/javascripts/problem.js"></script>
2
+ <div class="error">
3
+ <p>
4
+ <img src="/trollface.png"/>
5
+ </p>
6
+ <h1>Problem?</h1>
7
+ <p>
8
+ Due to technical difficulties, this Concerto screen is currently not
9
+ operational. Please check again soon.
10
+ </p>
11
+ <p>
12
+ The Concerto installation at <%= concerto_url %> could not be reached.
13
+ </p>
14
+ <p>
15
+ If the URL needs to be changed, go back to
16
+ <a href="/setup">
17
+ Player Configuration
18
+ </a>
19
+ </p>
20
+ </div>
@@ -0,0 +1,58 @@
1
+ <% unless @errors.nil? %>
2
+ <% @errors.each do |error| %>
3
+ <p style="color:red">
4
+ <%= error %>
5
+ </p>
6
+ <% end %>
7
+ <% end %>
8
+
9
+ <div class="clearfix">
10
+ <ul class="nav nav-tabs">
11
+ <li class="active"><a href="/setup">Basic Setup</a></li>
12
+ <li><a href="/netconfig">Network Settings</a></li>
13
+ <li><a href="/password">Configuration Password</a></li>
14
+ </ul>
15
+ </div>
16
+
17
+ <div class="default-padding">
18
+ <h3>We need the URL of your Concerto instance before we can get up and running.</h3>
19
+ <br />
20
+
21
+ <form method="post">
22
+ <fieldset style="padding: 0px;">
23
+ <div class="row-fluid">
24
+ <div class="span10">
25
+ <input id="url" name="url" placeholder="Enter URL (e.g. http://10.0.0.1)" class="fillWidth" style="margin-bottom: 6px;" type="text" value="<%= @url %>" />
26
+ </div>
27
+ <div class="span2">
28
+ <input type="submit" class="btn large btn-primary" value="Get Started" />
29
+ </div>
30
+ </div>
31
+ </fieldset>
32
+ </form>
33
+
34
+ <br />
35
+
36
+ <div class="alert alert-block alert-zero">
37
+ <table style="margin: 0px;" cellpadding="0" cellspacing="0" border="0">
38
+ <tbody>
39
+ <tr>
40
+ <td><p>IP Address:</p></td>
41
+ <td><p><b class="pronounced"><%= my_ip %></b></p></td>
42
+ </tr>
43
+ <tr>
44
+ <td><p>Default Username:</p></td>
45
+ <td><p><b class="pronounced">root</b></p></td>
46
+ </tr>
47
+ <tr>
48
+ <td><p>Default Password:</p></td>
49
+ <td><p><b class="pronounced">default</b></p></td>
50
+ </tr>
51
+ <tr>
52
+ <td><p>Access this page with URL:</p></td>
53
+ <td><p><b class="pronounced"><a href="http://<%= my_ip %>:<%= my_port %>/setup">http://<%= my_ip %>:<%= my_port %>/setup</a></b></p></td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
57
+ </div>
58
+ </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandshell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
- - Andrew Armenia
7
+ - Concerto Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-08 00:00:00.000000000 Z
11
+ date: 2013-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Client-side tools for Concerto digital signage
98
- email: andrew@asquaredlabs.com
98
+ email: team@concerto-signage.org
99
99
  executables:
100
100
  - concerto_netsetup
101
101
  - bandshelld
@@ -104,17 +104,61 @@ extra_rdoc_files: []
104
104
  files:
105
105
  - lib/bandshell/application/app.rb
106
106
  - lib/bandshell/application/config.ru
107
- - lib/bandshell/application/public/authenticate.js
108
- - lib/bandshell/application/public/network.js
109
- - lib/bandshell/application/public/problem.js
110
- - lib/bandshell/application/public/stylesheet.css
107
+ - lib/bandshell/application/public/images/elements/logomark.png
108
+ - lib/bandshell/application/public/images/layout/pagebg.gif
109
+ - lib/bandshell/application/public/images/layout/pagebg@2x.gif
110
+ - lib/bandshell/application/public/javascripts/authenticate.js
111
+ - lib/bandshell/application/public/javascripts/network.js
112
+ - lib/bandshell/application/public/javascripts/problem.js
113
+ - lib/bandshell/application/public/stylesheets/README
114
+ - lib/bandshell/application/public/stylesheets/concerto-styles.css
115
+ - lib/bandshell/application/public/stylesheets/sass/common/concertocons.scss
116
+ - lib/bandshell/application/public/stylesheets/sass/common/font-awesome.scss
117
+ - lib/bandshell/application/public/stylesheets/sass/common/mixins.scss
118
+ - lib/bandshell/application/public/stylesheets/sass/common/reset.scss
119
+ - lib/bandshell/application/public/stylesheets/sass/common/variables.scss
120
+ - lib/bandshell/application/public/stylesheets/sass/components/alerts-badges.scss
121
+ - lib/bandshell/application/public/stylesheets/sass/components/bootstrap-modals.scss
122
+ - lib/bandshell/application/public/stylesheets/sass/components/button-groups.scss
123
+ - lib/bandshell/application/public/stylesheets/sass/components/buttons.scss
124
+ - lib/bandshell/application/public/stylesheets/sass/components/datepicker.scss
125
+ - lib/bandshell/application/public/stylesheets/sass/components/display-blocks.scss
126
+ - lib/bandshell/application/public/stylesheets/sass/components/forms.scss
127
+ - lib/bandshell/application/public/stylesheets/sass/components/jquery.qtip2.scss
128
+ - lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.css
129
+ - lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.scss
130
+ - lib/bandshell/application/public/stylesheets/sass/components/lists-grid-stacked.scss
131
+ - lib/bandshell/application/public/stylesheets/sass/components/navs.scss
132
+ - lib/bandshell/application/public/stylesheets/sass/components/pagination.scss
133
+ - lib/bandshell/application/public/stylesheets/sass/components/scaffolding.scss
134
+ - lib/bandshell/application/public/stylesheets/sass/components/screenmodel.scss
135
+ - lib/bandshell/application/public/stylesheets/sass/components/sliders.scss
136
+ - lib/bandshell/application/public/stylesheets/sass/components/tables.scss
137
+ - lib/bandshell/application/public/stylesheets/sass/components/tiles.scss
138
+ - lib/bandshell/application/public/stylesheets/sass/components/topmenu.scss
139
+ - lib/bandshell/application/public/stylesheets/sass/components/type.scss
140
+ - lib/bandshell/application/public/stylesheets/sass/index-manifest.scss
141
+ - lib/bandshell/application/public/stylesheets/sass/responsive/responsive-1200px-min.scss
142
+ - lib/bandshell/application/public/stylesheets/sass/responsive/responsive-767px-max.scss
143
+ - lib/bandshell/application/public/stylesheets/sass/responsive/responsive-768px-979px.scss
144
+ - lib/bandshell/application/public/stylesheets/sass/responsive/responsive-utilities.scss
145
+ - lib/bandshell/application/public/stylesheets/sass/views/setup.scss
146
+ - lib/bandshell/application/public/stylesheets/sass/views/submissions.scss
147
+ - lib/bandshell/application/public/stylesheets/sass/views/users.scss
111
148
  - lib/bandshell/application/public/trollface.png
149
+ - lib/bandshell/application/views/authenticate.erb
112
150
  - lib/bandshell/application/views/authenticate.haml
151
+ - lib/bandshell/application/views/main.erb
113
152
  - lib/bandshell/application/views/main.haml
153
+ - lib/bandshell/application/views/netsettings.erb
114
154
  - lib/bandshell/application/views/netsettings.haml
155
+ - lib/bandshell/application/views/password.erb
115
156
  - lib/bandshell/application/views/password.haml
157
+ - lib/bandshell/application/views/player_status.erb
116
158
  - lib/bandshell/application/views/player_status.haml
159
+ - lib/bandshell/application/views/problem.erb
117
160
  - lib/bandshell/application/views/problem.haml
161
+ - lib/bandshell/application/views/setup.erb
118
162
  - lib/bandshell/application/views/setup.haml
119
163
  - lib/bandshell/config_store.rb
120
164
  - lib/bandshell/hardware_api.rb
@@ -1,3 +0,0 @@
1
- .error {
2
- text-align: center;
3
- }