thecore_ui_rails_admin 2.1.4 → 2.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/{rails_admin/custom/ui.js → thecore_ui_rails_admin/thecore_rails_admin.js} +2 -39
  3. data/app/assets/stylesheets/thecore_ui_rails_admin/animate.css +3458 -0
  4. data/app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss +7 -0
  5. data/app/assets/stylesheets/thecore_ui_rails_admin/colors.scss +13 -0
  6. data/app/assets/stylesheets/thecore_ui_rails_admin/common.scss +43 -0
  7. data/app/assets/stylesheets/thecore_ui_rails_admin/devise.scss +241 -0
  8. data/app/assets/stylesheets/{rails_admin/custom → thecore_ui_rails_admin}/flashing.scss +3 -3
  9. data/app/assets/stylesheets/thecore_ui_rails_admin/mixins.scss +18 -0
  10. data/app/assets/stylesheets/{rails_admin/custom/theming.scss → thecore_ui_rails_admin/thecore.scss} +60 -53
  11. data/app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss +27 -0
  12. data/app/assets/stylesheets/{rails_admin/custom → thecore_ui_rails_admin}/togglable-sidebar.scss +4 -26
  13. data/app/controllers/pages_controller.rb +43 -0
  14. data/app/helpers/devise_bootstrap_errors_helper.rb +20 -0
  15. data/app/helpers/thecore_helper.rb +54 -0
  16. data/app/views/layouts/rails_admin/_secondary_navigation.html.haml +1 -1
  17. data/app/views/layouts/rails_admin/_user_navigation.html.haml +2 -2
  18. data/app/views/layouts/rails_admin/application.html.haml +2 -2
  19. data/app/views/rails_admin/main/dashboard.html.haml +20 -7
  20. data/config/initializers/rails_admin.rb +32 -8
  21. data/config/initializers/thecore_concern.rb +6 -1
  22. data/config/initializers/thecore_ui_rails_admin_app_configs.rb +17 -0
  23. data/config/locales/thecore_settings.en.yml +31 -0
  24. data/config/locales/thecore_settings.it.yml +31 -0
  25. data/db/migrate/20161227101954_create_rails_admin_settings.rb +25 -0
  26. data/db/migrate/20161227101956_add_app_name.rb +5 -0
  27. data/lib/abilities/thecore_ui_rails_admin.rb +12 -0
  28. data/lib/concerns/rails_admin_requirements.rb +19 -0
  29. data/lib/concerns/thecore_rails_admin_bulk_delete_concern.rb +16 -0
  30. data/lib/concerns/thecore_rails_admin_export_concern.rb +16 -0
  31. data/lib/concerns/thecore_ui_rails_admin_permission.rb +32 -0
  32. data/lib/concerns/thecore_ui_rails_admin_role.rb +36 -0
  33. data/lib/concerns/thecore_ui_rails_admin_user.rb +75 -0
  34. data/lib/thecore_ui_rails_admin.rb +18 -3
  35. data/lib/thecore_ui_rails_admin/engine.rb +0 -7
  36. data/lib/thecore_ui_rails_admin/version.rb +1 -1
  37. metadata +112 -52
  38. data/app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee +0 -7
  39. data/app/assets/javascripts/rails_admin/custom/timer.js +0 -135
  40. data/app/views/contact_mailer/contact_message.html.erb +0 -5
  41. data/app/views/devise/confirmations/new.html.erb +0 -16
  42. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -5
  43. data/app/views/devise/mailer/password_change.html.erb +0 -5
  44. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  45. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  46. data/app/views/devise/menu/_login_items.html.erb +0 -7
  47. data/app/views/devise/passwords/edit.html.erb +0 -25
  48. data/app/views/devise/passwords/new.html.erb +0 -18
  49. data/app/views/devise/registrations/edit.html.erb +0 -45
  50. data/app/views/devise/registrations/new.html.erb +0 -29
  51. data/app/views/devise/sessions/new.html.erb +0 -28
  52. data/app/views/devise/shared/_links.html.erb +0 -25
  53. data/app/views/devise/unlocks/new.html.erb +0 -16
  54. data/app/views/home/index.html.erb +0 -5
  55. data/app/views/kaminari/_first_page.html.erb +0 -3
  56. data/app/views/kaminari/_gap.html.erb +0 -3
  57. data/app/views/kaminari/_last_page.html.erb +0 -3
  58. data/app/views/kaminari/_next_page.html.erb +0 -3
  59. data/app/views/kaminari/_page.html.erb +0 -9
  60. data/app/views/kaminari/_paginator.html.erb +0 -15
  61. data/app/views/kaminari/_prev_page.html.erb +0 -3
  62. data/app/views/layouts/_footer.html.erb +0 -3
  63. data/app/views/layouts/_messages.html.erb +0 -9
  64. data/app/views/layouts/_navigation.html.erb +0 -20
  65. data/app/views/layouts/_navigation_links.html.erb +0 -7
  66. data/app/views/layouts/mailer.html.erb +0 -6
  67. data/app/views/layouts/mailer.text.erb +0 -1
  68. data/app/views/layouts/thecore.html.erb +0 -42
  69. data/app/views/pages/contact.html.erb +0 -54
  70. data/app/views/pages/home.html.erb +0 -2
  71. data/app/views/pages/inside.html.erb +0 -4
  72. data/app/views/users/confirmations/new.html.erb +0 -16
  73. data/app/views/users/mailer/confirmation_instructions.html.erb +0 -5
  74. data/app/views/users/mailer/password_change.html.erb +0 -3
  75. data/app/views/users/mailer/reset_password_instructions.html.erb +0 -8
  76. data/app/views/users/mailer/unlock_instructions.html.erb +0 -7
  77. data/app/views/users/passwords/edit.html.erb +0 -19
  78. data/app/views/users/passwords/new.html.erb +0 -15
  79. data/app/views/users/registrations/edit.html.erb +0 -27
  80. data/app/views/users/registrations/new.html.erb +0 -17
  81. data/app/views/users/sessions/new.html.erb +0 -37
  82. data/app/views/users/shared/_links.html.erb +0 -26
  83. data/app/views/users/unlocks/new.html.erb +0 -16
@@ -0,0 +1,7 @@
1
+ .apexcharts-menu-item {
2
+ color: black
3
+ }
4
+ .apexcharts-tooltip {
5
+ background: #f3f3f3;
6
+ color: orange;
7
+ }
@@ -0,0 +1,13 @@
1
+ $RAbackground: #435761;
2
+ $RAelements: #303e45;
3
+ $RAtext: #dfe5e8;
4
+ $RAborder: #607d8b;
5
+ $RAlight: lighten( $RAbackground, 10% );
6
+ $RAdark: darken( $RAbackground, 10% );
7
+ $RAhighlight: lighten( $RAtext, 30% );
8
+
9
+ $RAclear: #706f6f;
10
+ $RAsuccess: #37BC9B;
11
+ $RAinfo: #3BAFDA;
12
+ $RAdanger: #E9573F;
13
+ $RAwarnig: #F6BB42;
@@ -0,0 +1,43 @@
1
+ body {
2
+ height: 100vh;
3
+ // background: linear-gradient(-20deg, #09b7b9 30%, #1c51a4 100%);
4
+ background-color: $RAbackground;
5
+ }
6
+
7
+ .jumbotron {
8
+ background-color: $RAbackground;
9
+ color: $RAtext;
10
+ }
11
+
12
+ .vertical-center {
13
+ min-height: 100%;
14
+ /* Fallback for browsers do NOT support vh unit */
15
+ min-height: 100vh;
16
+ /* These two lines are counted as one :-) */
17
+ display: flex;
18
+ align-items: center;
19
+ }
20
+
21
+ #up-arrow {
22
+ bottom: -2em;
23
+ margin-right: auto;
24
+ margin-left: auto;
25
+ opacity: 0.2;
26
+ filter: alpha(opacity=20);
27
+ /* For IE8 and earlier */
28
+ }
29
+
30
+ .fa-pencil:before,
31
+ .icon-pencil:before {
32
+ content: "\f044";
33
+ }
34
+
35
+ #new_user div.checkbox:hover {
36
+ color: $RAhighlight
37
+ }
38
+
39
+ #new_user div.actions input.btn {
40
+ width: 100%;
41
+ background-color: $RAelements;
42
+ border-color: $RAborder;
43
+ }
@@ -0,0 +1,241 @@
1
+ .devise {
2
+ font-family: 'Raleway', sans-serif;
3
+ height: 100vh;
4
+ .container-fluid-admin {
5
+ height: 100vh;
6
+ }
7
+
8
+ .container-fluid-devise {
9
+ height: 100vh;
10
+ overflow: auto;
11
+ }
12
+ }
13
+
14
+ .bckg-dark {
15
+ background-color:$RAbackground;
16
+ }
17
+
18
+ .bckg-login {
19
+ background-color:$RAbackground;
20
+ }
21
+
22
+ .logo {
23
+ display: inline-block;
24
+ margin: 0 auto;
25
+ width: 130px;
26
+ }
27
+
28
+ .app-logo {
29
+ margin: 50px 0 25px;
30
+ width: 70%;
31
+ }
32
+
33
+ .bckg-dark-light {
34
+ background: $RAtext;
35
+ }
36
+
37
+ .bckg-blue {
38
+ background: $RAinfo;
39
+ }
40
+
41
+ .centered {
42
+ left: 50%;
43
+ position: fixed;
44
+ top: 50%;
45
+ transform: translate(-50%, -50%);
46
+ }
47
+
48
+ .login-form-user {
49
+ width: 25%;
50
+ color: $RAlight;
51
+ margin: 0 auto;
52
+ margin-bottom: 25px;
53
+
54
+ .content-width {
55
+ width: 90%;
56
+ padding-top: 1px;
57
+ padding-bottom: 1px;
58
+ }
59
+
60
+ .lost_id {
61
+ color: $RAlight;
62
+ margin-bottom: 15px;
63
+ display: block;
64
+ font-size: .9em;
65
+ width: 90%;
66
+ }
67
+
68
+ .form-actions {
69
+ display: inline-block;
70
+ width: 90%;
71
+ margin-bottom: 10px;
72
+ .col-sm-6 {
73
+ padding: 0;
74
+ }
75
+ input {
76
+ float: left;
77
+ .label {
78
+ float: left;
79
+ }
80
+ }
81
+ input[type="checkbox"] {
82
+ margin-top: 0;
83
+ }
84
+ .input-group {
85
+ float: left;
86
+ }
87
+ .checkbox {
88
+ margin: 0;
89
+ margin-top: 10px;
90
+ float: left;
91
+ label {
92
+ font-size: .8em;
93
+ }
94
+ }
95
+ }
96
+ form {
97
+ margin-top: 30px;
98
+ }
99
+ .input-group {
100
+ width: 90%;
101
+ margin-bottom: 15px;
102
+ }
103
+ input {
104
+ border: 0;
105
+ }
106
+ input[type="submit"] {
107
+ background: $RAclear;
108
+ border: 0;
109
+ border-radius: 0;
110
+ cursor: pointer;
111
+ float: right;
112
+ color:$RAlight;
113
+ width:100%;
114
+ }
115
+ h2 {
116
+ background: $RAclear;
117
+ display: block;
118
+ padding: 10px 15px;
119
+ text-align: left;
120
+ font-size: 1.3em;
121
+ }
122
+ }
123
+
124
+ .login-form {
125
+ color:$RAlight;
126
+ width: 30%;
127
+
128
+ .links-form {
129
+ a {
130
+ color:$RAlight;
131
+ text-decoration: none;
132
+ &:hover {
133
+ color: $RAhighlight;
134
+ }
135
+ }
136
+ }
137
+
138
+ i {
139
+ font-size: 1.5em;
140
+ }
141
+
142
+ .form-control {
143
+ box-shadow: none;
144
+ }
145
+
146
+ .input-group {
147
+ margin-bottom: 20px;
148
+ }
149
+
150
+ h2 {
151
+ margin-top: 15px;
152
+ margin-bottom: 50px;
153
+ }
154
+
155
+ .content {
156
+ padding: 35px;
157
+ }
158
+
159
+ .content-login {
160
+ padding: inherit;
161
+ }
162
+
163
+ .input-group-addon {
164
+ border-radius: 0;
165
+ padding-bottom: 15px;
166
+ }
167
+
168
+ input[type="submit"] {
169
+ cursor: pointer;
170
+ background: $RAborder;
171
+ color:$RAlight;
172
+ border-radius: 3px;
173
+ border: 0;
174
+ display: block;
175
+ padding: 15px;
176
+ margin-bottom: 45px;
177
+ margin-top: 55px;
178
+ width: 100%;
179
+ &:hover {
180
+ background: darken($RAborder, 5%);
181
+ }
182
+ }
183
+
184
+ input[type="text"], input[type="email"], input[type="password"] {
185
+ background-color: transparent;
186
+ border: 0;
187
+ border-bottom: 1px solid $RAlight;
188
+ color:$RAlight;
189
+ margin-top: 15px;
190
+ padding-bottom: 15px;
191
+ }
192
+
193
+ .input-group-addon {
194
+ background-color: transparent;
195
+ border: 0;
196
+ border-bottom: 1px solid $RAlight;
197
+ color:$RAlight;
198
+ margin-top: 15px;
199
+ padding-bottom: 15px;
200
+ padding-top: 12px;
201
+ }
202
+ }
203
+
204
+ /* Small devices (tablets, 768px and up) */
205
+ @media (min-width: 768px) {
206
+ .login-form-user {
207
+ width: 45%;
208
+ }
209
+ }
210
+
211
+ /* Medium devices (desktops, 992px and up) */
212
+ @media (min-width: 992px) {
213
+ .login-form-user {
214
+ width: 45%;
215
+ }
216
+ }
217
+
218
+ /* Large devices (large desktops, 1200px and up) */
219
+ @media (min-width: 1200px) {
220
+ .login-form-user {
221
+ width: 26%;
222
+ input[type="submit"] {
223
+ width: 100%;
224
+ }
225
+ }
226
+ .app-logo {
227
+ margin: 50px 0 25px;
228
+ }
229
+ }
230
+
231
+ @media (min-width: 1600px) {
232
+ .login-form-user {
233
+ width: 15%;
234
+ input[type="submit"] {
235
+ width: 100%;
236
+ }
237
+ }
238
+ .app-logo {
239
+ margin: 50px 0 25px;
240
+ }
241
+ }
@@ -11,18 +11,18 @@
11
11
 
12
12
  @-webkit-keyframes flash {
13
13
  0% { background-color: none; }
14
- 50% { background-color: #fbf8b2; }
14
+ 50% { background-color: $RAhighlight; }
15
15
  100% { background-color: none; }
16
16
  }
17
17
 
18
18
  @-moz-keyframes flash {
19
19
  0% { background-color: none; }
20
- 50% { background-color: #fbf8b2; }
20
+ 50% { background-color: $RAhighlight; }
21
21
  100% { background-color: none; }
22
22
  }
23
23
 
24
24
  @-ms-keyframes flash {
25
25
  0% { background-color: none; }
26
- 50% { background-color: #fbf8b2; }
26
+ 50% { background-color: $RAhighlight; }
27
27
  100% { background-color: none; }
28
28
  }
@@ -0,0 +1,18 @@
1
+ @mixin transition($time) {
2
+ -webkit-transition: all $time ease-in;
3
+ -moz-transition: all $time ease-in;
4
+ -o-transition: all $time ease-in;
5
+ transition: all $time ease-in;
6
+ }
7
+
8
+ @mixin lol() {
9
+ .row {
10
+ display: table;
11
+ }
12
+
13
+ [class*="col-"] {
14
+ float: none;
15
+ display: table-cell;
16
+ vertical-align: top;
17
+ }
18
+ }
@@ -1,47 +1,51 @@
1
- @import "selectize";
2
- @import "selectize.bootstrap3";
3
- @import "togglable-sidebar";
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= required _colors
14
+ *= require thecore_ui_commons/thecore
15
+ *= require rails_admin/rails_admin
16
+ *= require rails_admin_selectize/index
17
+ *= require_self
18
+ */
19
+ @import "jquery-ui";
20
+ @import "jquery-ui/dialog";
21
+ @import 'bootstrap-sprockets';
22
+ @import 'bootstrap';
23
+ @import 'colors';
24
+ @import 'common';
4
25
  @import "flashing";
5
- // Froala
6
- @import "froala_editor.min";
7
- @import "froala_style.min";
8
- // @import "font-awesome-sprockets";
9
- // @import 'font-awesome';
10
- // @import 'plugins/char_counter.min.css';
11
- // @import 'plugins/colors.min.css';
12
- // @import 'plugins/lists.min.css';
13
- // @import 'plugins/line_breaker.min.css';
14
- // @import 'plugins/special_characters.min.css';
15
-
16
- // @import 'rails_admin/bootstrap/_variables';
17
- // @import "rails_admin/bootstrap-datetimepicker-build";
18
-
19
- $RAprimary: #1c2c41;
20
- $RAgreen: #37BC9B;
21
- $RAblue: #3BAFDA;
22
- $RAred: #E9573F;
23
- $RAyellow: #F6BB42;
24
-
25
- body {
26
- background: rgb(59, 78, 89);
27
- }
26
+ @import 'devise';
27
+ @import 'animate';
28
+ @import 'mixins';
29
+ @import 'apexcharts';
30
+ @import 'thecore_ui_commons/thecore';
31
+ @import "togglable-sidebar";
28
32
 
29
33
  .page-header.dashboard {
30
- border-color: $RAprimary;
34
+ border-color: $RAbackground;
31
35
  }
32
36
 
33
37
  .breadcrumb {
34
- background: $RAblue;
38
+ background: $RAinfo;
35
39
  .false a, .false:before {
36
- color: darken($RAblue, 30%) !important;
40
+ color: darken($RAinfo, 30%) !important;
37
41
  }
38
42
  .active, .active:before {
39
- color: #FFF;
43
+ color: $RAlight;
40
44
  }
41
45
  }
42
46
 
43
47
  .table-striped {
44
- border-top-color: $RAblue;
48
+ border-top-color: $RAinfo;
45
49
  .links ul li {
46
50
  padding-right: 0;
47
51
  a {
@@ -53,9 +57,9 @@ body {
53
57
  .content {
54
58
  margin: 0px 0 15px 0;
55
59
  padding: 8px;
56
- background: rgb(59, 78, 89);
60
+ background: $RAbackground;
57
61
  &.dashboard {
58
- background: rgb(59, 78, 89);
62
+ background: $RAbackground;
59
63
  }
60
64
  .page-header {
61
65
  display: none;
@@ -63,20 +67,20 @@ body {
63
67
  }
64
68
 
65
69
  a.delete {
66
- color: #FFF;
70
+ color: $RAlight;
67
71
  }
68
72
 
69
73
  .box {
70
74
  padding: 15px;
71
75
  margin-bottom: 30px;
72
- border: 1px solid $RAprimary;
76
+ border: 1px solid $RAbackground;
73
77
  position: relative;
74
78
  min-height: 170px;
75
79
  transition: all 0.3s ease;
76
- color: rgba(255,255,255,0.7);
80
+ color: rgba($RAlight,0.7);
77
81
  overflow: hidden;
78
82
  &:hover, &:focus {
79
- border-color: #FFF;
83
+ border-color: $RAlight;
80
84
  .icon-bg {
81
85
  transform: scale(1.5) rotate(20deg);
82
86
  }
@@ -87,14 +91,14 @@ a.delete {
87
91
  font-weight: 600;
88
92
  a.btn {
89
93
  border-radius: 3px;
90
- color: rgba(255,255,255,0.7) !important;
94
+ color: rgba($RAlight,0.7) !important;
91
95
  display: inline-block;
92
96
  margin-bottom: 0;
93
97
  font-weight: normal;
94
98
  text-align: center;
95
99
  vertical-align: middle;
96
100
  cursor: pointer;
97
- background-color: rgba(0, 0, 0, 0.19);
101
+ background-color: rgba($RAdark, 0.19);
98
102
  border: 1px solid transparent;
99
103
  white-space: nowrap;
100
104
  padding: 6px 12px;
@@ -116,22 +120,25 @@ a.delete {
116
120
  right: 0;
117
121
  bottom: 0;
118
122
  font-size: 100px;
119
- color: #000;
123
+ color: $RAdark;
120
124
  opacity: 0.08;
121
125
  filter: alpha(opacity=8);
122
126
  transition: all 1s ease;
123
127
  }
124
128
  &.bg-info {
125
- background-color: $RAblue;
129
+ background-color: $RAinfo;
126
130
  }
127
131
  &.bg-success {
128
- background-color: $RAgreen;
132
+ background-color: $RAsuccess;
129
133
  }
130
134
  &.bg-warning {
131
- background-color: $RAyellow;
135
+ background-color: $RAwarnig;
132
136
  }
133
137
  &.bg-danger {
134
- background-color: $RAred;
138
+ background-color: $RAdanger;
139
+ }
140
+ &.bg-clear {
141
+ background-color: $RAclear;
135
142
  }
136
143
  }
137
144
 
@@ -140,14 +147,14 @@ a.delete {
140
147
  max-width: 300px;
141
148
  padding: 19px 29px 29px;
142
149
  margin: 0 auto 20px;
143
- background-color: #fff;
144
- border: 1px solid #e5e5e5;
150
+ background-color: $RAlight;
151
+ border: 1px solid $RAborder;
145
152
  -webkit-border-radius: 5px;
146
153
  -moz-border-radius: 5px;
147
154
  border-radius: 5px;
148
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
149
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
150
- box-shadow: 0 1px 2px rgba(0,0,0,.05);
155
+ -webkit-box-shadow: 0 1px 2px rgba($RAdark,.05);
156
+ -moz-box-shadow: 0 1px 2px rgba($RAdark,.05);
157
+ box-shadow: 0 1px 2px rgba($RAdark,.05);
151
158
  }
152
159
  .border-form-div .form-signin-heading,
153
160
  .border-form-div .checkbox {
@@ -166,13 +173,13 @@ a.delete {
166
173
  background-color: transparent;
167
174
  background-image: none;
168
175
  border: 1px solid transparent;
169
- color: #888;
176
+ color: $RAclear;
170
177
  }
171
178
  #sidebar-collapse:focus {
172
179
  outline: 0;
173
180
  }
174
181
  #sidebar-collapse:hover {
175
- color: white;
182
+ color:$RAlight;
176
183
  }
177
184
 
178
185
  .exit-button {
@@ -185,12 +192,12 @@ a.delete {
185
192
 
186
193
  #app-name {
187
194
  font-size: 2em;
188
- color: #888;
195
+ color: $RAclear;
189
196
  font-family: 'Raleway', sans-serif;
190
197
  word-wrap: normal;
191
198
  }
192
199
  #app-name:hover {
193
- color: white;
200
+ color: $RAlight;
194
201
  text-decoration: none;
195
202
  }
196
203