thecore_ui_rails_admin 2.7.7 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin/custom/thecore/ui.js +1 -0
- data/app/assets/javascripts/rails_admin/custom/ui.js +6 -9
- data/app/assets/stylesheets/rails_admin/custom/mixins.scss +15 -0
- data/app/assets/stylesheets/rails_admin/custom/thecore/mixins.scss +1 -0
- data/app/assets/stylesheets/rails_admin/custom/thecore/theming.scss +23 -0
- data/app/assets/stylesheets/rails_admin/custom/thecore/variables.scss +1 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +11 -147
- data/app/assets/stylesheets/rails_admin/custom/variables.scss.erb +85 -0
- data/app/views/layouts/_navigation.html.erb +20 -0
- data/app/views/layouts/_navigation_links.html.erb +7 -0
- data/app/views/rails_admin/main/{thecore_sidekiq_monitor.html.erb → active_job_monitor.html.erb} +1 -1
- data/{lib/concerns → config/initializers}/thecore_rails_admin_bulk_delete_concern.rb +0 -0
- data/{lib/concerns → config/initializers}/thecore_rails_admin_export_concern.rb +0 -0
- data/{lib/abilities/thecore_ui_rails_admin.rb → config/initializers/thecore_ui_rails_admin_abilities.rb} +0 -0
- data/config/initializers/thecore_ui_rails_admin_after_initialize.rb +71 -0
- data/config/initializers/thecore_ui_rails_admin_app_configs.rb +0 -12
- data/config/initializers/thecore_ui_rails_admin_assets.rb +9 -0
- data/config/initializers/{thecore_concern.rb → thecore_ui_rails_admin_concern.rb} +3 -3
- data/{lib/concerns/thecore_ui_rails_admin_used_token.rb → config/initializers/thecore_ui_rails_admin_invisible_models_concern.rb} +2 -2
- data/{lib/concerns → config/initializers}/thecore_ui_rails_admin_role.rb +2 -2
- data/config/initializers/thecore_ui_rails_admin_settings_concern.rb +14 -0
- data/{lib/concerns/thecore_ui_rails_admin_user.rb → config/initializers/thecore_ui_rails_admin_user_concern.rb} +2 -1
- data/config/locales/en.index_cards.custom.yml +8 -0
- data/config/locales/en.main.yml +5 -40
- data/config/locales/en.rails_admin.yml +6 -0
- data/config/locales/it.index_cards.custom.yml +20 -0
- data/config/locales/it.main.yml +0 -4
- data/config/locales/it.rails_admin.yml +9 -30
- data/config/routes.rb +3 -4
- data/lib/thecore_ui_rails_admin/engine.rb +1 -0
- data/lib/thecore_ui_rails_admin.rb +0 -27
- metadata +34 -94
- data/app/assets/javascripts/rails_admin/custom/thecore-custom-1.js +0 -1
- data/app/assets/javascripts/rails_admin/custom/thecore-custom-2.js +0 -1
- data/app/assets/javascripts/rails_admin/custom/thecore-custom-3.js +0 -1
- data/app/assets/javascripts/rails_admin/custom/thecore-custom-4.js +0 -1
- data/app/assets/javascripts/rails_admin/custom/thecore-custom-5.js +0 -1
- data/app/assets/javascripts/rails_admin/custom/thecore.js +0 -1
- data/app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js +0 -77
- data/app/assets/stylesheets/rails_admin/custom/theming-custom-1.scss +0 -1
- data/app/assets/stylesheets/rails_admin/custom/theming-custom-2.scss +0 -1
- data/app/assets/stylesheets/rails_admin/custom/theming-custom-3.scss +0 -1
- data/app/assets/stylesheets/rails_admin/custom/theming-custom-4.scss +0 -1
- data/app/assets/stylesheets/rails_admin/custom/theming-custom-5.scss +0 -1
- data/app/assets/stylesheets/rails_admin/custom/variables.scss +0 -21
- data/app/assets/stylesheets/thecore_ui_rails_admin/animate.css +0 -3458
- data/app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss +0 -7
- data/app/assets/stylesheets/thecore_ui_rails_admin/common.scss +0 -43
- data/app/assets/stylesheets/thecore_ui_rails_admin/devise.scss +0 -241
- data/app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss +0 -28
- data/app/assets/stylesheets/thecore_ui_rails_admin/mixins.scss +0 -18
- data/app/assets/stylesheets/thecore_ui_rails_admin/thecore.scss +0 -45
- data/app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss +0 -243
- data/app/assets/stylesheets/thecore_ui_rails_admin/togglable-sidebar.scss +0 -89
- data/app/views/rails_admin/main/thecore_blazer_bi.html.erb +0 -5
- data/app/views/shared/_flash.html.erb +0 -10
- data/config/blazer.yml +0 -79
- data/config/initializers/rails_admin.rb +0 -105
- data/config/initializers/thecore_ui_rails_admin_load_root_actions_for.rb +0 -6
- data/lib/concerns/rails_admin_requirements.rb +0 -19
- data/lib/concerns/thecore_ui_rails_admin_permission.rb +0 -33
- data/lib/iframes/blazer_bi.rb +0 -59
- data/lib/iframes/sidekiq_monitor.rb +0 -59
data/config/locales/it.main.yml
CHANGED
@@ -19,10 +19,6 @@ it:
|
|
19
19
|
object_not_found: "Impossibile trovare il modello %{model} con id '%{id}'"
|
20
20
|
successful: "Azione eseguita con successo: %{action} (%{name})"
|
21
21
|
actions:
|
22
|
-
thecore_sidekiq_monitor:
|
23
|
-
menu: Monitoraggio Attività
|
24
|
-
breadcrumb: Monitoraggio Attività
|
25
|
-
title: Monitoraggio Attività
|
26
22
|
thecore_blazer_bi:
|
27
23
|
menu: Business Intelligence
|
28
24
|
breadcrumb: Business Intelligence
|
@@ -1,34 +1,13 @@
|
|
1
1
|
it:
|
2
2
|
admin:
|
3
3
|
misc:
|
4
|
-
|
4
|
+
reset_filters: Rimuovi i Filtri
|
5
|
+
actions:
|
6
|
+
index:
|
7
|
+
no_records: Nessun record da mostrare
|
8
|
+
active_job_monitor:
|
9
|
+
menu: Worker Monitor
|
10
|
+
title: Worker Monitor
|
11
|
+
breadcrumb: Worker Monitor
|
5
12
|
scopes:
|
6
|
-
|
7
|
-
order_by_name: Ordinato per Nome
|
8
|
-
order_by_insert_date: Ordinato per Data
|
9
|
-
starts_with_a: Inizia con A
|
10
|
-
starts_with_b: Inizia con B
|
11
|
-
starts_with_c: Inizia con C
|
12
|
-
starts_with_d: Inizia con D
|
13
|
-
starts_with_e: Inizia con E
|
14
|
-
starts_with_f: Inizia con F
|
15
|
-
starts_with_g: Inizia con G
|
16
|
-
starts_with_h: Inizia con H
|
17
|
-
starts_with_i: Inizia con I
|
18
|
-
starts_with_j: Inizia con J
|
19
|
-
starts_with_k: Inizia con K
|
20
|
-
starts_with_l: Inizia con L
|
21
|
-
starts_with_m: Inizia con M
|
22
|
-
starts_with_n: Inizia con N
|
23
|
-
starts_with_o: Inizia con O
|
24
|
-
starts_with_p: Inizia conh P
|
25
|
-
starts_with_q: Inizia con Q
|
26
|
-
starts_with_r: Inizia con R
|
27
|
-
starts_with_s: Inizia con S
|
28
|
-
starts_with_t: Inizia con T
|
29
|
-
starts_with_u: Inizia con U
|
30
|
-
starts_with_v: Inizia con V
|
31
|
-
starts_with_w: Inizia con W
|
32
|
-
starts_with_x: Inizia con X
|
33
|
-
starts_with_y: Inizia con Y
|
34
|
-
starts_with_z: Inizia con Z
|
13
|
+
_all: Tutti
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
-
mount RailsAdmin::Engine => '/app', as: 'rails_admin'
|
3
2
|
|
4
3
|
get "home", to: "pages#home", as: "home"
|
5
4
|
get "inside", to: "pages#inside", as: "inside"
|
@@ -11,7 +10,7 @@ Rails.application.routes.draw do
|
|
11
10
|
end
|
12
11
|
|
13
12
|
# Allow any authenticated User with admin capability
|
14
|
-
authenticate :user, lambda { |u| u.admin? } do
|
15
|
-
|
16
|
-
end
|
13
|
+
# authenticate :user, lambda { |u| u.admin? } do
|
14
|
+
# mount Blazer::Engine, at: "blazer"
|
15
|
+
# end
|
17
16
|
end
|
@@ -2,6 +2,7 @@ module ThecoreUiRailsAdmin
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
initializer 'thecore_ui_rails_admin.add_to_migrations' do |app|
|
4
4
|
Thecore::Base.thecore_engines << self.class
|
5
|
+
|
5
6
|
unless app.root.to_s.match root.to_s
|
6
7
|
# APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
|
7
8
|
config.paths['db/migrate'].expanded.each do |expanded_path|
|
@@ -1,37 +1,10 @@
|
|
1
1
|
require 'thecore_ui_commons'
|
2
|
-
# Rails Admin
|
3
|
-
# ENV['RAILS_ADMIN_THEME'] ||= 'rollincode'
|
4
|
-
# require 'rails_admin_rollincode'
|
5
2
|
require 'rails_admin'
|
6
3
|
require 'rails_admin-i18n'
|
7
|
-
# require 'safe_yaml'
|
8
4
|
require 'rails_admin_toggleable'
|
9
|
-
require 'rails_admin_selectize'
|
10
|
-
require 'concerns/rails_admin_requirements'
|
11
|
-
# Abilities
|
12
|
-
require 'abilities/thecore_ui_rails_admin'
|
13
|
-
# Rails Admin Buildups
|
14
|
-
# require 'jquery-ui-rails'
|
15
|
-
require 'bootstrap-sass'
|
16
|
-
|
17
|
-
require 'concerns/thecore_ui_rails_admin_user'
|
18
|
-
require 'concerns/thecore_ui_rails_admin_used_token'
|
19
|
-
require 'concerns/thecore_ui_rails_admin_role'
|
20
|
-
require 'concerns/thecore_ui_rails_admin_permission'
|
21
|
-
require 'concerns/thecore_rails_admin_export_concern'
|
22
|
-
require 'concerns/thecore_rails_admin_bulk_delete_concern'
|
23
|
-
|
24
|
-
require 'blazer'
|
25
5
|
|
26
6
|
require "thecore_ui_rails_admin/engine"
|
27
7
|
|
28
8
|
module ThecoreUiRailsAdmin
|
29
|
-
# Rails Admin Settings
|
30
|
-
# SafeYAML::OPTIONS[:default_mode] = :safe
|
31
|
-
# SafeYAML::OPTIONS[:deserialize_symbols] = false
|
32
9
|
end
|
33
10
|
|
34
|
-
require 'iframes/sidekiq_monitor'
|
35
|
-
|
36
|
-
## Business Intelligence (must be tested)
|
37
|
-
# require 'iframes/blazer_bi'
|
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:
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|
@@ -16,56 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.4'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.4'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: coffee-rails
|
28
|
+
name: rails_admin
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '3.1'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '3.1'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: sassc-rails
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '0'
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rails_admin-i18n
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,34 +80,6 @@ dependencies:
|
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0.7'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rails_admin_selectize
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: blazer
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
83
|
description: Holds all base dependencies and configurations to have a thecore integrated
|
126
84
|
with Rails Admin.
|
127
85
|
email:
|
@@ -134,60 +92,42 @@ files:
|
|
134
92
|
- README.md
|
135
93
|
- Rakefile
|
136
94
|
- app/assets/config/thecore_ui_rails_admin_manifest.js
|
137
|
-
- app/assets/javascripts/rails_admin/custom/thecore
|
138
|
-
- app/assets/javascripts/rails_admin/custom/thecore-custom-2.js
|
139
|
-
- app/assets/javascripts/rails_admin/custom/thecore-custom-3.js
|
140
|
-
- app/assets/javascripts/rails_admin/custom/thecore-custom-4.js
|
141
|
-
- app/assets/javascripts/rails_admin/custom/thecore-custom-5.js
|
142
|
-
- app/assets/javascripts/rails_admin/custom/thecore.js
|
95
|
+
- app/assets/javascripts/rails_admin/custom/thecore/ui.js
|
143
96
|
- app/assets/javascripts/rails_admin/custom/ui.js
|
144
|
-
- app/assets/
|
145
|
-
- app/assets/stylesheets/rails_admin/custom/
|
146
|
-
- app/assets/stylesheets/rails_admin/custom/theming
|
147
|
-
- app/assets/stylesheets/rails_admin/custom/
|
148
|
-
- app/assets/stylesheets/rails_admin/custom/theming-custom-4.scss
|
149
|
-
- app/assets/stylesheets/rails_admin/custom/theming-custom-5.scss
|
97
|
+
- app/assets/stylesheets/rails_admin/custom/mixins.scss
|
98
|
+
- app/assets/stylesheets/rails_admin/custom/thecore/mixins.scss
|
99
|
+
- app/assets/stylesheets/rails_admin/custom/thecore/theming.scss
|
100
|
+
- app/assets/stylesheets/rails_admin/custom/thecore/variables.scss
|
150
101
|
- app/assets/stylesheets/rails_admin/custom/theming.scss
|
151
|
-
- app/assets/stylesheets/rails_admin/custom/variables.scss
|
152
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/animate.css
|
153
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss
|
154
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/common.scss
|
155
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/devise.scss
|
156
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/flashing.scss
|
157
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/mixins.scss
|
158
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/thecore.scss
|
159
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/thecore_rails_admin.scss
|
160
|
-
- app/assets/stylesheets/thecore_ui_rails_admin/togglable-sidebar.scss
|
102
|
+
- app/assets/stylesheets/rails_admin/custom/variables.scss.erb
|
161
103
|
- app/controllers/pages_controller.rb
|
162
104
|
- app/helpers/devise_bootstrap_errors_helper.rb
|
163
105
|
- app/helpers/thecore_helper.rb
|
164
|
-
- app/views/
|
165
|
-
- app/views/
|
166
|
-
- app/views/
|
167
|
-
- config/
|
168
|
-
- config/initializers/
|
169
|
-
- config/initializers/
|
106
|
+
- app/views/layouts/_navigation.html.erb
|
107
|
+
- app/views/layouts/_navigation_links.html.erb
|
108
|
+
- app/views/rails_admin/main/active_job_monitor.html.erb
|
109
|
+
- config/initializers/thecore_rails_admin_bulk_delete_concern.rb
|
110
|
+
- config/initializers/thecore_rails_admin_export_concern.rb
|
111
|
+
- config/initializers/thecore_ui_rails_admin_abilities.rb
|
112
|
+
- config/initializers/thecore_ui_rails_admin_after_initialize.rb
|
170
113
|
- config/initializers/thecore_ui_rails_admin_app_configs.rb
|
171
|
-
- config/initializers/
|
114
|
+
- config/initializers/thecore_ui_rails_admin_assets.rb
|
115
|
+
- config/initializers/thecore_ui_rails_admin_concern.rb
|
116
|
+
- config/initializers/thecore_ui_rails_admin_invisible_models_concern.rb
|
117
|
+
- config/initializers/thecore_ui_rails_admin_role.rb
|
118
|
+
- config/initializers/thecore_ui_rails_admin_settings_concern.rb
|
119
|
+
- config/initializers/thecore_ui_rails_admin_user_concern.rb
|
120
|
+
- config/locales/en.index_cards.custom.yml
|
172
121
|
- config/locales/en.main.yml
|
173
122
|
- config/locales/en.rails_admin.yml
|
174
123
|
- config/locales/en.rollincode.yml
|
124
|
+
- config/locales/it.index_cards.custom.yml
|
175
125
|
- config/locales/it.main.yml
|
176
126
|
- config/locales/it.rails_admin.yml
|
177
127
|
- config/locales/it.rollincode.yml
|
178
128
|
- config/routes.rb
|
179
129
|
- db/migrate/20220124113739_install_blazer.rb
|
180
130
|
- db/seeds.rb
|
181
|
-
- lib/abilities/thecore_ui_rails_admin.rb
|
182
|
-
- lib/concerns/rails_admin_requirements.rb
|
183
|
-
- lib/concerns/thecore_rails_admin_bulk_delete_concern.rb
|
184
|
-
- lib/concerns/thecore_rails_admin_export_concern.rb
|
185
|
-
- lib/concerns/thecore_ui_rails_admin_permission.rb
|
186
|
-
- lib/concerns/thecore_ui_rails_admin_role.rb
|
187
|
-
- lib/concerns/thecore_ui_rails_admin_used_token.rb
|
188
|
-
- lib/concerns/thecore_ui_rails_admin_user.rb
|
189
|
-
- lib/iframes/blazer_bi.rb
|
190
|
-
- lib/iframes/sidekiq_monitor.rb
|
191
131
|
- lib/tasks/thecore_ui_rails_admin_tasks.rake
|
192
132
|
- lib/thecore_ui_rails_admin.rb
|
193
133
|
- lib/thecore_ui_rails_admin/engine.rb
|
@@ -212,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
152
|
- !ruby/object:Gem::Version
|
213
153
|
version: '0'
|
214
154
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
155
|
+
rubygems_version: 3.3.26
|
216
156
|
signing_key:
|
217
157
|
specification_version: 4
|
218
158
|
summary: Thecore2 Backend UI based on Rails Admin.
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Please Override in your application or in a wrapper gem */
|
@@ -1,77 +0,0 @@
|
|
1
|
-
//= require thecore_ui_commons/thecore
|
2
|
-
//= require selectize
|
3
|
-
|
4
|
-
$(document).on('ready pjax:success', function(e) {
|
5
|
-
handleActiveBase();
|
6
|
-
|
7
|
-
function handleActiveBase() {
|
8
|
-
$('.sub-menu').each(function() {
|
9
|
-
if ($(this).hasClass('active')) {
|
10
|
-
$(this).parent().prev().addClass('active');
|
11
|
-
$(this).parent().prev().addClass('open');
|
12
|
-
$(this).parent().slideDown();
|
13
|
-
}
|
14
|
-
});
|
15
|
-
}
|
16
|
-
// home dashboard dark theme
|
17
|
-
if ((new RegExp('app/$').test(e.currentTarget.URL) || new RegExp('app$').test(e.currentTarget.URL)) && !new RegExp('app/app').test(e.currentTarget.URL)) {
|
18
|
-
$('.page-header, .content').addClass('dashboard');
|
19
|
-
} else {
|
20
|
-
$('.page-header, .content').removeClass('dashboard');
|
21
|
-
}
|
22
|
-
});
|
23
|
-
|
24
|
-
$(function() {
|
25
|
-
var array_menu = [];
|
26
|
-
var lvl_1 = null;
|
27
|
-
var count = 0;
|
28
|
-
|
29
|
-
$('.sidebar-nav li').each(function(index, item) {
|
30
|
-
if ($(item).hasClass('dropdown-header')) {
|
31
|
-
lvl_1 = count++;
|
32
|
-
array_menu[lvl_1] = []
|
33
|
-
} else {
|
34
|
-
$(item).addClass('sub-menu sub-menu-' + lvl_1);
|
35
|
-
}
|
36
|
-
});
|
37
|
-
|
38
|
-
for (var i = 0; i <= array_menu.length; i++) {
|
39
|
-
$('.sub-menu-' + i).wrapAll("<div class='sub-menu-container' />");
|
40
|
-
}
|
41
|
-
|
42
|
-
$('.sub-menu-container').hide();
|
43
|
-
|
44
|
-
handleActiveBase();
|
45
|
-
|
46
|
-
function handleActiveBase() {
|
47
|
-
$('.sub-menu').each(function() {
|
48
|
-
if ($(this).hasClass('active')) {
|
49
|
-
$(this).parent().prev().addClass('active');
|
50
|
-
$(this).parent().slideDown();
|
51
|
-
}
|
52
|
-
});
|
53
|
-
}
|
54
|
-
|
55
|
-
$('.dropdown-header').bind('click', function() {
|
56
|
-
$('.dropdown-header').removeClass('open'); //Rimuove tutte le classi open
|
57
|
-
$(this).toggleClass('open'); // Apre la corrente
|
58
|
-
// Se la corrente è già aperta, allora la chiude
|
59
|
-
|
60
|
-
$('.dropdown-header').removeClass('active');
|
61
|
-
$('.sub-menu-container').stop().slideUp();
|
62
|
-
$(this).toggleClass('active');
|
63
|
-
$(this).next('.sub-menu-container').stop().slideDown();
|
64
|
-
});
|
65
|
-
});
|
66
|
-
|
67
|
-
$(document).ready(function () {
|
68
|
-
// All pjax in sidebar-nav make the menu disappear when clicked
|
69
|
-
$(".sidebar-nav a[class=pjax]").on("click", function(){
|
70
|
-
$('#wrapper').toggleClass('toggled');
|
71
|
-
});
|
72
|
-
|
73
|
-
$('#sidebar-collapse').on('click', function() {
|
74
|
-
$('#wrapper').toggleClass('toggled');
|
75
|
-
});
|
76
|
-
|
77
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
// Please override in your application or wrapper engine
|
@@ -1 +0,0 @@
|
|
1
|
-
// Please override in your application or wrapper engine
|
@@ -1 +0,0 @@
|
|
1
|
-
// Please override in your application or wrapper engine
|
@@ -1 +0,0 @@
|
|
1
|
-
// Please override in your application or wrapper engine
|
@@ -1 +0,0 @@
|
|
1
|
-
// Please override in your application or wrapper engine
|
@@ -1,21 +0,0 @@
|
|
1
|
-
$primary: #1f4068 !default;
|
2
|
-
|
3
|
-
$background: lighten($primary, 51%) !default;
|
4
|
-
$shadows: darken($primary, 10%) !default;
|
5
|
-
|
6
|
-
$text: darken($primary, 40%) !default;
|
7
|
-
$text-highlight: lighten($text, 80%) !default;
|
8
|
-
|
9
|
-
$link: $text !default;
|
10
|
-
$link-highlight: lighten($link, 10%) !default;
|
11
|
-
|
12
|
-
$element: $primary !default;
|
13
|
-
$element-text: lighten($element, 40%) !default;
|
14
|
-
$element-text-highlight: lighten($element-text, 10%) !default;
|
15
|
-
$element-border: darken($element, 10%) !default;
|
16
|
-
|
17
|
-
$neutral: #706f6f !default;
|
18
|
-
$success: #37BC9B !default;
|
19
|
-
$info: #3BAFDA !default;
|
20
|
-
$danger: #E9573F !default;
|
21
|
-
$warning: #F6BB42 !default;
|