mno-enterprise-frontend 3.3.2 → 3.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 062c00ed02c8c9f493d108b224f941cb967ef28c
4
- data.tar.gz: a6a130c7bf655737bcd48931bebaa1a472521707
3
+ metadata.gz: cd77cf86d4acf93ac4c1186ff0561599b24fe138
4
+ data.tar.gz: 1d78e7a98129331b60cff109c7de35391d584b57
5
5
  SHA512:
6
- metadata.gz: 172b1dab46d005ba870cff96b8a69e241b6c1b4aec47471e6afc88765e9196ea06484d03ac59026d0074f4ec4cd928f307409f4ab2bd882f4822cd4fffc1f293
7
- data.tar.gz: e938dfd24d6fe5815f26436765bbc82297ffbd4c27ab53c151ff96132cd0b46ebefa95362a3afbccc3be830419e6a1bb3f18408121d0d13ef19355de7defd8ed
6
+ metadata.gz: 1709dadd0b6ba3b6e48df2311a257c2132fd3ec0930dc64b9b56e2f5df86cea510ec33986364ac48f4c753bc5f10c8ab74f22442bb981ca45fee48d3b1d7f28f
7
+ data.tar.gz: 279d210ca1b342ef976d5eb256b8a845c209ac4672e234e2b366aa1307e74de76f4b09c5ce83dd5503580f1b14adb0ac7f9536fa5ab3acd74936824b8745ab39
@@ -0,0 +1,147 @@
1
+ .error-page {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: block;
5
+ background-color: @login-bg-color;
6
+ position: relative;
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: baseline;
10
+ }
11
+
12
+ .error-page when (isstring(@login-bg-img)) {
13
+ background-image: asset-url(@login-bg-img);
14
+ background-size: cover;
15
+ }
16
+
17
+ .error-page .container {
18
+ border-radius: 6px;
19
+ text-align: center;
20
+ box-shadow: 0 0 20px rgba(0,0,0,.2);
21
+ padding: 50px;
22
+ background-color: @error-bg-color;
23
+ margin-top: 150px;
24
+ width: 90%;
25
+ max-width: 525px;
26
+ position: relative;
27
+
28
+ @media (max-width: @screen-xs-max) {
29
+ margin-top: 50px;
30
+ padding: 30px 10px;
31
+ }
32
+
33
+ .error-code {
34
+ transition: color .2s linear;
35
+ font-size: 40px;
36
+ line-height: 60px;
37
+ letter-spacing: -1px;
38
+ margin-bottom: 5px;
39
+ color: @error-status-code-color;
40
+ }
41
+ .error-title {
42
+ transition: color .2s linear;
43
+ font-size: 36px;
44
+ line-height: 46px;
45
+ color: @error-title-color;
46
+
47
+ @media (max-width: @screen-xs-max) {
48
+ font-size: 26px;
49
+ line-height: 30px;
50
+ }
51
+ }
52
+
53
+ .error-context {
54
+ transition: color .2s linear;
55
+ font-size: 18px;
56
+ line-height: 27px;
57
+ color: @error-context-color;
58
+ }
59
+
60
+ hr {
61
+ height: 1px;
62
+ background-color: @error-hr-bg-color;
63
+ width: 60%;
64
+ max-width: 250px;
65
+ margin: 35px auto;
66
+
67
+ @media (max-width: @screen-xs-max) {
68
+ margin: 25px auto;
69
+ }
70
+ }
71
+
72
+ .error-button {
73
+ margin-top: 35px;
74
+ overflow: hidden;
75
+
76
+ button {
77
+ border-radius: @error-btn-border-radius;
78
+ position: relative;
79
+ border: none;
80
+ background-color: @error-btn-bg-color;
81
+ width: 50%;
82
+ display: flex;
83
+ justify-content: center;
84
+ align-items: center;
85
+ margin: auto;
86
+ transition: background-color .2s linear;
87
+
88
+ @media (max-width: @screen-xs-max) {
89
+ width: 70%;
90
+ max-width: 250px;
91
+ }
92
+
93
+ &:hover {
94
+ background-color: darken(#2ecc71, 5%);
95
+ }
96
+
97
+ a {
98
+ text-indent: 0px;
99
+ font-size: 14px;
100
+ text-transform: uppercase;
101
+ text-decoration: none;
102
+ color: @error-btn-text-color;
103
+ padding: 12px 0 13px;
104
+ text-align: center;
105
+ display: inline-block;
106
+ overflow: hidden;
107
+ position: relative;
108
+ transition: text-indent .2s ease-out, color .2s linear;
109
+ width: 100%;
110
+
111
+ @media (max-width: @screen-xs-max) {
112
+ text-indent: 15px;
113
+ padding: 10px 0;
114
+ }
115
+
116
+ &:hover {
117
+ text-indent: 15px;
118
+
119
+ i {
120
+ left: 0;
121
+ }
122
+ }
123
+
124
+ i {
125
+ transition: left .2s ease-out;
126
+ position: absolute;
127
+ left: -50px;
128
+ font-size: 17px;
129
+
130
+ @media (max-width: @screen-xs-max) {
131
+ left: 0;
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+
138
+ #error-loader {
139
+ padding: 5px 0 5px 0;
140
+ color: @error-loader-text-color;
141
+ position: absolute;
142
+ left: 15px;
143
+ bottom: 10px;
144
+ right: 15px;
145
+ transition: 5s;
146
+ }
147
+ }
@@ -8,6 +8,7 @@
8
8
  @import "variables.less"; // Modify this for custom colors, font-sizes, etc
9
9
  @import "twitter-bootstrap/mixins.less";
10
10
  @import "mixins.less"; // Modify this for custom mixins
11
+ @import "error-page.less";
11
12
 
12
13
  // Reset and dependencies
13
14
  @import "twitter-bootstrap/normalize.less";
@@ -26,6 +26,18 @@
26
26
  @public-page-header-logo-img: "mno_enterprise/main-logo.png";
27
27
  @public-page-header-logo: { min-height: 61px; max-width: 160px; max-height: 130px; margin: 17px auto 5px auto; };
28
28
 
29
+ /*-----------------------------------------------------------------------*/
30
+ /* Error Page */
31
+ /*-----------------------------------------------------------------------*/
32
+ @error-bg-color: #fff;
33
+ @error-title-color: #000;
34
+ @error-status-code-color: #AAA;
35
+ @error-context-color: #AAA;
36
+ @error-hr-bg-color: #ddd;
37
+ @error-btn-bg-color: #2ecc71;
38
+ @error-btn-text-color: #fff;
39
+ @error-btn-border-radius: 99px;
40
+ @error-loader-text-color: #b5b5b5;
29
41
  /*-----------------------------------------------------------------------*/
30
42
  /* Login Page */
31
43
  /*-----------------------------------------------------------------------*/
@@ -0,0 +1,7 @@
1
+ module MnoEnterprise
2
+ class Webhook::OAuthController < ApplicationController
3
+ include MnoEnterprise::Concerns::Controllers::Webhook::OAuthController
4
+ layout 'mno_enterprise/public', only: [:authorize]
5
+ end
6
+ end
7
+
@@ -0,0 +1,13 @@
1
+ !!!
2
+ %html#ng-app{ 'ng-app' => 'maestrano' }
3
+ %head
4
+ %title= @meta[:title]
5
+ %meta{ :name => 'description', :content => @meta[:description] }
6
+ %meta{ 'http-equiv'=>"X-UA-Compatible", content:"IE=edge" }
7
+ %meta{ 'name'=>"viewport", 'content'=>"width=device-width, initial-scale=1" }
8
+ = render 'layouts/mno_enterprise/header_files'
9
+
10
+ %body
11
+ = yield
12
+
13
+ = render partial: 'layouts/mno_enterprise/footer_files'
@@ -0,0 +1,24 @@
1
+ require 'rails_helper'
2
+
3
+ module MnoEnterprise
4
+ describe PagesController, type: :controller do
5
+ render_views
6
+ routes { MnoEnterprise::Engine.routes }
7
+
8
+ describe 'GET #error' do
9
+ subject { get :error, error_code: error_code }
10
+
11
+ context '503 error' do
12
+ let(:error_code) { 503 }
13
+ it { is_expected.to have_http_status(:service_unavailable) }
14
+ it { expect(subject.body).to match /Looks like we're having some server issues./ }
15
+ end
16
+
17
+ context '429 error' do
18
+ let(:error_code) { 429 }
19
+ it { is_expected.to have_http_status(:too_many_requests) }
20
+ it { expect(subject.body).to match /Too many requests./ }
21
+ end
22
+ end
23
+ end
24
+ end
@@ -35,6 +35,7 @@ module MnoEnterprise
35
35
 
36
36
  it { subject; expect(response).to be_success }
37
37
  it { subject; expect(assigns(:redirect_to)).to eq(redirect_url) }
38
+ it { subject; expect(response).to render_template('mno_enterprise/public') }
38
39
 
39
40
  Webhook::OAuthController::PROVIDERS_WITH_OPTIONS.each do |provider|
40
41
  describe "#{provider.capitalize} provider" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-09 00:00:00.000000000 Z
12
+ date: 2018-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.3.2
20
+ version: 3.3.3
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.3.2
27
+ version: 3.3.3
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mno-enterprise-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.3.2
34
+ version: 3.3.3
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.3.2
41
+ version: 3.3.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -182,6 +182,7 @@ files:
182
182
  - app/assets/stylesheets/mno_enterprise/custom/views/registration.less
183
183
  - app/assets/stylesheets/mno_enterprise/custom/views/templates/notification-widget.less
184
184
  - app/assets/stylesheets/mno_enterprise/custom/views/templates/password-strength.less
185
+ - app/assets/stylesheets/mno_enterprise/error-page.less
185
186
  - app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-regular.less
186
187
  - app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome-sprockets.less
187
188
  - app/assets/stylesheets/mno_enterprise/font-awesome/font-awesome.less
@@ -280,12 +281,14 @@ files:
280
281
  - app/assets/templates/mno_enterprise/maestrano-components/notification-widget.html
281
282
  - app/assets/templates/mno_enterprise/maestrano-components/password.html
282
283
  - app/controllers/mno_enterprise/invoices_controller.rb
284
+ - app/controllers/mno_enterprise/webhook/o_auth_controller.rb
283
285
  - app/views/layouts/mno_enterprise/_application_js.html.haml
284
286
  - app/views/layouts/mno_enterprise/_common_cdn_lib_js.html.haml
285
287
  - app/views/layouts/mno_enterprise/_footer_files.html.haml
286
288
  - app/views/layouts/mno_enterprise/_header_files.html.haml
287
289
  - app/views/layouts/mno_enterprise/_public_page_header.html.haml
288
290
  - app/views/layouts/mno_enterprise/application.html.haml
291
+ - app/views/layouts/mno_enterprise/public.html.haml
289
292
  - app/views/layouts/mno_enterprise/third_party/_google_tag_container.html.haml
290
293
  - app/views/mno_enterprise/pages/app_access_unauthorized.html.haml
291
294
  - app/views/mno_enterprise/pages/app_logout.html.haml
@@ -310,6 +313,7 @@ files:
310
313
  - lib/tasks/templates/package.json
311
314
  - spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb
312
315
  - spec/controllers/mno_enterprise/invoices_controller_spec.rb
316
+ - spec/controllers/mno_enterprise/pages_controller_spec.rb
313
317
  - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
314
318
  - spec/lib/mno_enterprise/locales_generator_spec.rb
315
319
  - spec/lib/tasks/mnoe_locales_rake_spec.rb
@@ -336,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
340
  version: '0'
337
341
  requirements: []
338
342
  rubyforge_project:
339
- rubygems_version: 2.6.8
343
+ rubygems_version: 2.6.14
340
344
  signing_key:
341
345
  specification_version: 4
342
346
  summary: Maestrano Enterprise - Frontend
@@ -346,6 +350,7 @@ test_files:
346
350
  - spec/lib/tasks/mnoe_locales_rake_spec.rb
347
351
  - spec/lib/mno_enterprise/locales_generator_spec.rb
348
352
  - spec/rails_helper.rb
353
+ - spec/controllers/mno_enterprise/pages_controller_spec.rb
349
354
  - spec/controllers/mno_enterprise/webhook/o_auth_controller_spec.rb
350
355
  - spec/controllers/mno_enterprise/auth/confirmations_controller_spec.rb
351
356
  - spec/controllers/mno_enterprise/invoices_controller_spec.rb