radius-rails 0.0.2
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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +83 -0
- data/Rakefile +2 -0
- data/app/assets/fonts/BonvenoCF-Light-webfont.eot +0 -0
- data/app/assets/fonts/BonvenoCF-Light-webfont.svg +203 -0
- data/app/assets/fonts/BonvenoCF-Light-webfont.ttf +0 -0
- data/app/assets/fonts/BonvenoCF-Light-webfont.woff +0 -0
- data/app/assets/fonts/nevis-webfont.eot +0 -0
- data/app/assets/fonts/nevis-webfont.svg +143 -0
- data/app/assets/fonts/nevis-webfont.ttf +0 -0
- data/app/assets/fonts/nevis-webfont.woff +0 -0
- data/app/assets/images/corporate-bar-logo.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/favicon.png +0 -0
- data/app/assets/stylesheets/bonveno-webfont.css.scss +12 -0
- data/app/assets/stylesheets/corporate-bar.css.scss +60 -0
- data/app/assets/stylesheets/environment-ribbon.css.scss +21 -0
- data/app/assets/stylesheets/nevis-webfont.css.scss +15 -0
- data/app/assets/stylesheets/normalize.css +423 -0
- data/app/helpers/radius_helper.rb +7 -0
- data/app/views/radius/_corporate_bar.html.erb +30 -0
- data/app/views/radius/_environment_ribbon.html.erb +3 -0
- data/app/views/radius/_ga.html.erb +9 -0
- data/app/views/radius/_zendesk.html.erb +23 -0
- data/lib/radius-rails.rb +1 -0
- data/lib/radius/rails.rb +2 -0
- data/lib/radius/rails/engine.rb +8 -0
- data/lib/radius/rails/version.rb +5 -0
- data/lib/rails/generators/radius/error_pages_generator.rb +13 -0
- data/lib/rails/generators/radius/templates/401.html +198 -0
- data/lib/rails/generators/radius/templates/404.html +198 -0
- data/lib/rails/generators/radius/templates/422.html +198 -0
- data/lib/rails/generators/radius/templates/500.html +198 -0
- data/lib/rails/generators/radius/templates/favicon.ico +0 -0
- data/radius-rails.gemspec +28 -0
- metadata +171 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div id="corporate_bar">
|
|
2
|
+
<div class="corporate-bar-content">
|
|
3
|
+
<span class="corporate-bar-brand">
|
|
4
|
+
<a href="http://www.radiusnetworks.com">
|
|
5
|
+
<img height="15" src="<%= image_path("corporate-bar-logo.png") %>">
|
|
6
|
+
Radius Networks
|
|
7
|
+
</a>
|
|
8
|
+
</span>
|
|
9
|
+
<ul class="corporate-bar-nav" style="float:right;">
|
|
10
|
+
<li>
|
|
11
|
+
<a href="http://store.radiusnetworks.com">
|
|
12
|
+
<i class="fa fa-shopping-cart">
|
|
13
|
+
</i>
|
|
14
|
+
Shop
|
|
15
|
+
</a>
|
|
16
|
+
</li>
|
|
17
|
+
<li>
|
|
18
|
+
<% if current_user %>
|
|
19
|
+
<a href="<%=sign_out_path%>">
|
|
20
|
+
<i class="fa fa-sign-out"></i> Sign Out
|
|
21
|
+
</a>
|
|
22
|
+
<% else %>
|
|
23
|
+
<a href="<%=sign_in_path%>">
|
|
24
|
+
<i class="fa fa-sign-in"></i> Sign In
|
|
25
|
+
</a>
|
|
26
|
+
<% end %>
|
|
27
|
+
</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
5
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
6
|
+
|
|
7
|
+
ga('create', 'UA-44195191-1', 'auto');
|
|
8
|
+
ga('send', 'pageview');
|
|
9
|
+
</script>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<% if Rails.env.production? %>
|
|
2
|
+
<script type="text/javascript" src="//assets.zendesk.com/external/zenbox/v2.6/zenbox.js"></script>
|
|
3
|
+
<style type="text/css" media="screen, projection">
|
|
4
|
+
@import url(//assets.zendesk.com/external/zenbox/v2.6/zenbox.css);
|
|
5
|
+
#zenbox_tab { border: none !important; }
|
|
6
|
+
</style>
|
|
7
|
+
<script type="text/javascript">
|
|
8
|
+
if (typeof(Zenbox) !== "undefined") {
|
|
9
|
+
Zenbox.init({
|
|
10
|
+
<% if current_user %>
|
|
11
|
+
requester_name: "<%= current_user.name %>",
|
|
12
|
+
requester_email: "<%= current_user.email %>",
|
|
13
|
+
<% end %>
|
|
14
|
+
dropboxID: "20090974",
|
|
15
|
+
url: "https://radiusnetworks.zendesk.com",
|
|
16
|
+
tabTooltip: "Support",
|
|
17
|
+
tabImageURL: "https://assets.zendesk.com/external/zenbox/images/tab_support_right.png",
|
|
18
|
+
tabColor: "#3dbeee",
|
|
19
|
+
tabPosition: "Right"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
<% end %>
|
data/lib/radius-rails.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "radius/rails"
|
data/lib/radius/rails.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Radius
|
|
2
|
+
module Generators
|
|
3
|
+
class ErrorPagesGenerator < ::Rails::Generators::Base
|
|
4
|
+
source_root File.expand_path("../templates", __FILE__)
|
|
5
|
+
desc "Copy the error pages to public"
|
|
6
|
+
def create_error_pages
|
|
7
|
+
%w{ 401.html 404.html 422.html 500.html }.each do |file|
|
|
8
|
+
template file, File.join('public', file)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Something went wrong</title>
|
|
6
|
+
<style>
|
|
7
|
+
::-moz-selection {
|
|
8
|
+
background: #b3d4fc;
|
|
9
|
+
text-shadow: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::selection {
|
|
13
|
+
background: #b3d4fc;
|
|
14
|
+
text-shadow: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
padding:0;
|
|
19
|
+
margin:0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html {
|
|
23
|
+
padding: 0;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 1.4;
|
|
26
|
+
color: #737373;
|
|
27
|
+
background: white;
|
|
28
|
+
-webkit-text-size-adjust: 100%;
|
|
29
|
+
-ms-text-size-adjust: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
html,
|
|
33
|
+
input {
|
|
34
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1 {
|
|
38
|
+
font-size: 50px;
|
|
39
|
+
text-shadow: 4px 4px 0px rgba(57,169,213,1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h1 span {
|
|
43
|
+
color: #39A9D5;
|
|
44
|
+
text-shadow: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
h3 {
|
|
48
|
+
margin: 1.5em 0 0.5em;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
p {
|
|
52
|
+
margin: 1em 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
ul {
|
|
56
|
+
padding: 0 0 0 40px;
|
|
57
|
+
margin: 1em 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
color: #E56326;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.container {
|
|
66
|
+
padding: 40px 40px;
|
|
67
|
+
width: 580px;
|
|
68
|
+
margin: 0 auto;
|
|
69
|
+
}
|
|
70
|
+
.title {
|
|
71
|
+
text-align: center;
|
|
72
|
+
background: #eee;
|
|
73
|
+
background: #3FBCEC;
|
|
74
|
+
color: white;
|
|
75
|
+
border-bottom: 10px solid #39A9D5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.search {
|
|
79
|
+
/*background: #ecf9ff;*/
|
|
80
|
+
}
|
|
81
|
+
.links {
|
|
82
|
+
text-align: center;
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
color: #eee;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.links a {
|
|
89
|
+
padding: 20px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* google search */
|
|
93
|
+
|
|
94
|
+
#goog-fixurl ul {
|
|
95
|
+
list-style: none;
|
|
96
|
+
padding: 0;
|
|
97
|
+
margin: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
#goog-fixurl form {
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#goog-wm-qt,
|
|
105
|
+
#goog-wm-sb {
|
|
106
|
+
border: 1px solid #bbb;
|
|
107
|
+
font-size: 16px;
|
|
108
|
+
line-height: normal;
|
|
109
|
+
vertical-align: top;
|
|
110
|
+
color: #444;
|
|
111
|
+
border-radius: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#goog-wm-qt {
|
|
115
|
+
width: 420px;
|
|
116
|
+
height: 20px;
|
|
117
|
+
padding: 5px;
|
|
118
|
+
margin: 5px 10px 0 0;
|
|
119
|
+
box-shadow: inset 0 1px 1px #ccc;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#goog-wm-sb {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
height: 32px;
|
|
125
|
+
padding: 0 10px;
|
|
126
|
+
margin: 5px 0 0;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
background-color: #f5f5f5;
|
|
130
|
+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
131
|
+
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
132
|
+
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
133
|
+
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
134
|
+
-webkit-appearance: none;
|
|
135
|
+
-moz-appearance: none;
|
|
136
|
+
appearance: none;
|
|
137
|
+
*overflow: visible;
|
|
138
|
+
*display: inline;
|
|
139
|
+
*zoom: 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#goog-wm-sb:hover,
|
|
143
|
+
#goog-wm-sb:focus {
|
|
144
|
+
border-color: #aaa;
|
|
145
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
|
146
|
+
background-color: #f8f8f8;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#goog-wm-qt:hover,
|
|
150
|
+
#goog-wm-qt:focus {
|
|
151
|
+
border-color: #105cb6;
|
|
152
|
+
outline: 0;
|
|
153
|
+
color: #222;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
h3.other-things {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
input::-moz-focus-inner {
|
|
161
|
+
padding: 0;
|
|
162
|
+
border: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
</style>
|
|
166
|
+
</head>
|
|
167
|
+
<body>
|
|
168
|
+
<div class="title">
|
|
169
|
+
<div class="container">
|
|
170
|
+
<h1>That's not good <span>:(</span></h1>
|
|
171
|
+
<p>401 Unauthorized</p>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="search">
|
|
175
|
+
<div class="container">
|
|
176
|
+
<script>
|
|
177
|
+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
|
|
178
|
+
</script>
|
|
179
|
+
<script src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="links">
|
|
183
|
+
<div class="container">
|
|
184
|
+
<a href="https://radiusnetworks.zendesk.com/hc/en-us/requests/new">Contact Support</a> | <a href="/">Home</a> | <a href="javascript:window.history.back();">Go Back</a>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</body>
|
|
188
|
+
</html>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
<!--
|
|
195
|
+
|
|
196
|
+
Oh, man, something clearly went wrong. And the worst thing about it is: it went wrong while you were using the command line or and API. That sucks. Sorry.
|
|
197
|
+
|
|
198
|
+
-->
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Something went wrong</title>
|
|
6
|
+
<style>
|
|
7
|
+
::-moz-selection {
|
|
8
|
+
background: #b3d4fc;
|
|
9
|
+
text-shadow: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::selection {
|
|
13
|
+
background: #b3d4fc;
|
|
14
|
+
text-shadow: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
padding:0;
|
|
19
|
+
margin:0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html {
|
|
23
|
+
padding: 0;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 1.4;
|
|
26
|
+
color: #737373;
|
|
27
|
+
background: white;
|
|
28
|
+
-webkit-text-size-adjust: 100%;
|
|
29
|
+
-ms-text-size-adjust: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
html,
|
|
33
|
+
input {
|
|
34
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1 {
|
|
38
|
+
font-size: 50px;
|
|
39
|
+
text-shadow: 4px 4px 0px rgba(57,169,213,1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h1 span {
|
|
43
|
+
color: #39A9D5;
|
|
44
|
+
text-shadow: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
h3 {
|
|
48
|
+
margin: 1.5em 0 0.5em;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
p {
|
|
52
|
+
margin: 1em 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
ul {
|
|
56
|
+
padding: 0 0 0 40px;
|
|
57
|
+
margin: 1em 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
a {
|
|
61
|
+
color: #E56326;
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.container {
|
|
66
|
+
padding: 40px 40px;
|
|
67
|
+
width: 580px;
|
|
68
|
+
margin: 0 auto;
|
|
69
|
+
}
|
|
70
|
+
.title {
|
|
71
|
+
text-align: center;
|
|
72
|
+
background: #eee;
|
|
73
|
+
background: #3FBCEC;
|
|
74
|
+
color: white;
|
|
75
|
+
border-bottom: 10px solid #39A9D5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.search {
|
|
79
|
+
/*background: #ecf9ff;*/
|
|
80
|
+
}
|
|
81
|
+
.links {
|
|
82
|
+
text-align: center;
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
color: #eee;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.links a {
|
|
89
|
+
padding: 20px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* google search */
|
|
93
|
+
|
|
94
|
+
#goog-fixurl ul {
|
|
95
|
+
list-style: none;
|
|
96
|
+
padding: 0;
|
|
97
|
+
margin: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
#goog-fixurl form {
|
|
101
|
+
margin: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
#goog-wm-qt,
|
|
105
|
+
#goog-wm-sb {
|
|
106
|
+
border: 1px solid #bbb;
|
|
107
|
+
font-size: 16px;
|
|
108
|
+
line-height: normal;
|
|
109
|
+
vertical-align: top;
|
|
110
|
+
color: #444;
|
|
111
|
+
border-radius: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#goog-wm-qt {
|
|
115
|
+
width: 420px;
|
|
116
|
+
height: 20px;
|
|
117
|
+
padding: 5px;
|
|
118
|
+
margin: 5px 10px 0 0;
|
|
119
|
+
box-shadow: inset 0 1px 1px #ccc;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#goog-wm-sb {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
height: 32px;
|
|
125
|
+
padding: 0 10px;
|
|
126
|
+
margin: 5px 0 0;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
background-color: #f5f5f5;
|
|
130
|
+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
131
|
+
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
132
|
+
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
133
|
+
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
|
134
|
+
-webkit-appearance: none;
|
|
135
|
+
-moz-appearance: none;
|
|
136
|
+
appearance: none;
|
|
137
|
+
*overflow: visible;
|
|
138
|
+
*display: inline;
|
|
139
|
+
*zoom: 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#goog-wm-sb:hover,
|
|
143
|
+
#goog-wm-sb:focus {
|
|
144
|
+
border-color: #aaa;
|
|
145
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
|
146
|
+
background-color: #f8f8f8;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#goog-wm-qt:hover,
|
|
150
|
+
#goog-wm-qt:focus {
|
|
151
|
+
border-color: #105cb6;
|
|
152
|
+
outline: 0;
|
|
153
|
+
color: #222;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
h3.other-things {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
input::-moz-focus-inner {
|
|
161
|
+
padding: 0;
|
|
162
|
+
border: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
</style>
|
|
166
|
+
</head>
|
|
167
|
+
<body>
|
|
168
|
+
<div class="title">
|
|
169
|
+
<div class="container">
|
|
170
|
+
<h1>That's not good <span>:(</span></h1>
|
|
171
|
+
<p>404 Not Found</p>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="search">
|
|
175
|
+
<div class="container">
|
|
176
|
+
<script>
|
|
177
|
+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
|
|
178
|
+
</script>
|
|
179
|
+
<script src="https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="links">
|
|
183
|
+
<div class="container">
|
|
184
|
+
<a href="https://radiusnetworks.zendesk.com/hc/en-us/requests/new">Contact Support</a> | <a href="/">Home</a> | <a href="javascript:window.history.back();">Go Back</a>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</body>
|
|
188
|
+
</html>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
<!--
|
|
195
|
+
|
|
196
|
+
Oh, man, something clearly went wrong. And the worst thing about it is: it went wrong while you were using the command line or and API. That sucks. Sorry.
|
|
197
|
+
|
|
198
|
+
-->
|