thecore_ui_rails_admin 2.4.6 → 2.5.0

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
  SHA256:
3
- metadata.gz: 9372fda0392da6eb860ca41efc92ded46766441a7eba46bad550e64a5d08f6a8
4
- data.tar.gz: 498fc2356a2db51a3497f82c7a01db901ddf8c603e8623acc19a2ef29c9c8f96
3
+ metadata.gz: 5a4ff08c7737044e3c475e9c137d747179c7533597d8e694d479fd3cf61d17b6
4
+ data.tar.gz: cd22b05565e8921de834eb368f4cf95cbd1b436077923e4968d885ddecf94842
5
5
  SHA512:
6
- metadata.gz: eed780a5e6d3851934be6941f3f6afa9a17fec04a4377bef579610b5a9ec87bb50060d3ef7d5ae6fa5f92f1d4b59cd8a377fa76e8d74a5f8711acdb7ad79e467
7
- data.tar.gz: 1aca643484ea76ea6166ed9a721684c93fda05bb68e59a727ae5600c6a72c0137830bc2177f0ce2cce7c118d1e88d49fe1566aecc78c1991ea4031b4f4b3bf14
6
+ metadata.gz: 281f5b9c657f42a767f23cc9f0e90a4a8fc3252d4fd1bbb6feb16acef8cd78bf15699b13c18a29a5efdb9f1ec7c610cfcca9dbb57414c518b9f714f2718eab8e
7
+ data.tar.gz: 2fcd899b16c3a9ad3f71da23b11722254dbe3feefc855b7f896c3f86e34fd9f9c2565e02c56f989d8d953dee564ee9eb9fc91296ec00a9a154df5eeac56a2c42
@@ -5,4 +5,24 @@
5
5
  //= require rails_admin/custom/thecore-custom-2
6
6
  //= require rails_admin/custom/thecore-custom-3
7
7
  //= require rails_admin/custom/thecore-custom-4
8
- //= require rails_admin/custom/thecore-custom-5
8
+ //= require rails_admin/custom/thecore-custom-5
9
+
10
+ function hideBreadCrumbAndToolbar() {
11
+ // If the page loaded has a tag like <span class="hide-breadcrumb hide-toolbar"></span>
12
+ // then hide the elements
13
+
14
+ // var actionName = "#{action_name}"
15
+ // var isRoot = "#{RailsAdmin::Config::Actions.find(action_name.to_sym).root?}"
16
+
17
+ // console.log(actionName, isRoot)
18
+
19
+ if($(".hide-breadcrumb").length) $(".breadcrumb").hide()
20
+ else $(".breadcrumb").show()
21
+
22
+ if($(".hide-toolbar").length) $(".breadcrumb + .nav.nav-tabs").hide()
23
+ else $(".breadcrumb + .nav.nav-tabs").show()
24
+ }
25
+
26
+ // Re evaluate at each iteraction
27
+ $(document).off('ready pjax:success', hideBreadCrumbAndToolbar);
28
+ $(document).on('ready pjax:success', hideBreadCrumbAndToolbar);
@@ -7,6 +7,143 @@
7
7
  @import 'rails_admin/custom/theming-custom-4';
8
8
  @import 'rails_admin/custom/theming-custom-5';
9
9
 
10
+ body.rails_admin .sidebar-nav {
11
+ background-color: $shadows !important;
12
+
13
+ a {
14
+
15
+ color: white !important;
16
+
17
+ i,
18
+ span {
19
+ padding-right: .5em !important;
20
+ color: white !important;
21
+ }
22
+ }
23
+ }
24
+
25
+ body.rails_admin .sidebar-nav>.nav-stacked>li>a {
26
+ padding: 6px 15px 6px 25px !important;
27
+
28
+ &:hover,
29
+ &:focus {
30
+ background-color: $text !important;
31
+ }
32
+ }
33
+
34
+ body {
35
+ background-color: $background !important;
36
+ }
37
+
38
+ .navbar-default {
39
+ background-color: $background !important;
40
+ border-color: $background !important;
41
+
42
+ .navbar-brand {
43
+ color: $primary !important;
44
+ font-weight: bold;
45
+ text-transform: uppercase;
46
+ font-size: 2em;
47
+ }
48
+
49
+ }
50
+
51
+ .content {
52
+ padding-right: 1em;
53
+ padding-left: 1em;
54
+ }
55
+
10
56
  .form-control.selectize-control {
11
57
  width: 62%;
12
58
  }
59
+
60
+ #secondary-navigation .navbar-nav li {
61
+ display: none;
62
+
63
+ &:nth-last-of-type(2),
64
+ &:last-of-type {
65
+ display: block !important;
66
+ }
67
+ }
68
+
69
+ #list form .well {
70
+ background-color: transparent;
71
+ border: none;
72
+ -webkit-box-shadow: none;
73
+ box-shadow: none;
74
+ }
75
+
76
+ .row {
77
+ margin-left: 0 !important;
78
+ margin-right: 0.5em !important;
79
+ }
80
+
81
+ .pagination>li>a,
82
+ .pagination>li>span,
83
+ a {
84
+ color: $primary;
85
+ }
86
+
87
+ .pagination>.active>a,
88
+ .pagination>.active>a:hover,
89
+ .pagination>.active>a:focus,
90
+ .pagination>.active>span,
91
+ .pagination>.active>span:hover,
92
+ .pagination>.active>span:focus,
93
+ .btn-primary {
94
+ color: $background;
95
+ background-color: $primary;
96
+ border-color: $primary;
97
+ }
98
+
99
+ .btn-primary:hover {
100
+ background-color: $text;
101
+ border-color: $text;
102
+ }
103
+
104
+ .btn-info {
105
+ color: $background;
106
+ background-color: $shadows;
107
+ border-color: $shadows;
108
+ &:hover {
109
+ background-color: $primary;
110
+ }
111
+ }
112
+
113
+ .open > .btn-info.dropdown-toggle {
114
+ color: $background;
115
+ background-color: darken($shadows, 10%);
116
+ border-color: darken($shadows, 10%);
117
+ }
118
+
119
+ .btn-info.disabled, .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled:active, .btn-info.disabled.active, .btn-info[disabled], .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled]:active, .btn-info.active[disabled], fieldset[disabled] .btn-info, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:active, fieldset[disabled] .btn-info.active {
120
+ background-color: lighten($shadows, 30%);
121
+ border-color: lighten($shadows, 30%);
122
+ }
123
+
124
+ li a .label-danger {
125
+ background-color: $primary;
126
+ margin-right: 1em;
127
+ }
128
+
129
+ .breadcrumb {
130
+ // margin-top: 1em;
131
+ // margin-bottom: 2.5em;
132
+ background-color: $primary;
133
+ text-transform: uppercase;
134
+ color: $background !important;
135
+ border-radius: 2em;
136
+ }
137
+
138
+ .breadcrumb .active, .breadcrumb .active:before {
139
+ color: $background !important;
140
+ }
141
+
142
+ .breadcrumb .false a, .breadcrumb .false:before {
143
+ color: white !important;
144
+ }
145
+
146
+ #fields_to_export .form-group {
147
+ margin-left: 0;
148
+ margin-right: 0;
149
+ }
@@ -69,7 +69,9 @@ RailsAdmin.config do |config|
69
69
 
70
70
  config.actions do
71
71
  # show_in_app
72
- dashboard # mandatory
72
+ dashboard do
73
+ show_in_sidebar true
74
+ end# mandatory
73
75
  index # mandatory
74
76
  new
75
77
  export
@@ -15,6 +15,6 @@ it:
15
15
  add_filter: ⋔
16
16
  add_new: ⋔
17
17
  refresh: Apply Filters
18
- bulk_menu_title: ☰✔
18
+ bulk_menu_title:
19
19
  select:
20
- toggle:
20
+ toggle:
@@ -10,6 +10,8 @@ it:
10
10
  question: Domanda
11
11
  root_actions: "Operazioni"
12
12
  admin:
13
+ misc:
14
+ root_navigation: Azioni
13
15
  flash:
14
16
  error: "Impossibile eseguire l'azione %{action} (%{name})"
15
17
  model_not_found: Impossibile trovare il modello '%{model}'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.6
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons
@@ -141,7 +141,7 @@ files:
141
141
  - app/assets/javascripts/rails_admin/custom/thecore-custom-5.js
142
142
  - app/assets/javascripts/rails_admin/custom/thecore.js
143
143
  - app/assets/javascripts/rails_admin/custom/ui.js
144
- - app/assets/javascripts/rails_admin/ra.widgets.coffee
144
+ - app/assets/javascripts/rails_admin/ra.widgets.coffee.older
145
145
  - app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js
146
146
  - app/assets/stylesheets/rails_admin/custom/theming-custom-1.scss
147
147
  - app/assets/stylesheets/rails_admin/custom/theming-custom-2.scss