thecore_ui_rails_admin 2.4.2 → 2.4.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 +4 -4
- data/app/assets/javascripts/rails_admin/custom/ui.js +1 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +6 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_navigation.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_secondary_navigation.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_sidebar_navigation.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_style_common.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_style_override.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/_user_navigation.html.haml +0 -0
- data/app/views/{layouts → layouts.old}/rails_admin/application.html.haml +5 -7
- data/app/views/{layouts → layouts.old}/rails_admin/pjax.html.haml +1 -1
- data/app/views/{rails_admin → rails_admin.old}/main/_card.html.haml +0 -0
- data/app/views/{rails_admin → rails_admin.old}/main/_dashboard_block.html.haml +0 -0
- data/app/views/{rails_admin → rails_admin.old}/main/_modal_interaction.html.erb +0 -0
- data/app/views/{rails_admin → rails_admin.old}/main/dashboard.html.haml +0 -0
- data/app/views/{rails_admin → rails_admin.old}/main/index.html.haml +0 -0
- data/config/initializers/thecore_ui_rails_admin_app_configs.rb +1 -1
- data/lib/abilities/thecore_ui_rails_admin.rb +3 -3
- data/lib/concerns/rails_admin_requirements.rb +1 -1
- data/lib/thecore_ui_rails_admin.rb +2 -2
- metadata +17 -31
- data/config/locales/thecore_settings.en.yml +0 -31
- data/config/locales/thecore_settings.it.yml +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f742f063e5493a754e1ed5986469072828eab6b56e4010f47a590b14e53788ea
|
4
|
+
data.tar.gz: d294bf1efcc345e73c919d77e2f41683f5b84740516d216e50f04e544a2d5258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b2fe54852594f3896777869d9cd17df703b82d143c3f0351f72a67e2848fe6aff35c4156c3c09d1576e91bbe341ad72c3c3e2b1565138db090eda7aab0044b3
|
7
|
+
data.tar.gz: f185205ca2a05e139d8e5b8d4ccb0f22361ac2feb22f4f02000c54bb3b2be57c54cb3034e45da2511e31ac1571602df843c7c0ad0e5ed92a2ade43b1d421eee7
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require selectize
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,17 +2,15 @@
|
|
2
2
|
%html{lang: I18n.locale}
|
3
3
|
%head
|
4
4
|
%title= Settings.app_name rescue "Thecore"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
=
|
5
|
+
|
6
|
+
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => 'reload'
|
7
|
+
= javascript_pack_tag 'application', 'data-turbolinks-track' => 'reload'
|
8
|
+
|
9
|
+
= render "layouts/rails_admin/head"
|
10
10
|
|
11
11
|
= render "layouts/rails_admin/style_common"
|
12
12
|
= render "layouts/rails_admin/style_override"
|
13
13
|
|
14
|
-
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => 'reload'
|
15
|
-
= javascript_pack_tag 'application', 'data-turbolinks-track' => 'reload'
|
16
14
|
/ Getting all the assets needed by thecore_ui_rails_admin from all the gems and the application level
|
17
15
|
= get_asset_tags_for("thecore_rails_admin")
|
18
16
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$('.nav.nav-pills li[data-model="#{@abstract_model.to_param}"]').addClass('active');
|
4
4
|
$(window).off('keydown');
|
5
5
|
|
6
|
-
- # Integration of the
|
6
|
+
- # Integration of the thecore_settings gem, if not available, it rescues to the normal naming
|
7
7
|
%title= "#{(@abstract_model.try(:pretty_name) || @page_name)} | #{Settings.app_name rescue ([_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' '))}"
|
8
8
|
.page-header
|
9
9
|
%h1= @page_name
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -9,7 +9,7 @@ Rails.application.configure do
|
|
9
9
|
config.after_initialize do
|
10
10
|
RailsAdmin::Config::Actions::Export.send(:include, ExportConcern)
|
11
11
|
RailsAdmin::Config::Actions::BulkDelete.send(:include, BulkDeleteConcern)
|
12
|
-
|
12
|
+
ThecoreSettings::Setting.send(:include, ThecoreSettings::RailsAdminExtensionConfig)
|
13
13
|
User.send(:include, ThecoreUiRailsAdminUser)
|
14
14
|
UsedToken.send(:include, ThecoreUiRailsAdminUsedToken)
|
15
15
|
Role.send(:include, ThecoreUiRailsAdminRole)
|
@@ -4,9 +4,9 @@ module Abilities
|
|
4
4
|
def initialize user
|
5
5
|
# No one is allowed to add or destroy settings
|
6
6
|
# just list or edit existing
|
7
|
-
cannot :create,
|
8
|
-
cannot :destroy,
|
9
|
-
cannot :show,
|
7
|
+
cannot :create, ThecoreSettings::Setting
|
8
|
+
cannot :destroy, ThecoreSettings::Setting
|
9
|
+
cannot :show, ThecoreSettings::Setting
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'thecore_ui_commons'
|
2
2
|
# Rails Admin
|
3
|
-
ENV['RAILS_ADMIN_THEME'] ||= 'rollincode'
|
4
|
-
require 'rails_admin_rollincode'
|
3
|
+
# ENV['RAILS_ADMIN_THEME'] ||= 'rollincode'
|
4
|
+
# require 'rails_admin_rollincode'
|
5
5
|
require 'rails_admin'
|
6
6
|
require 'rails_admin-i18n'
|
7
7
|
require 'safe_yaml'
|
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.
|
4
|
+
version: 2.4.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: 2021-
|
11
|
+
date: 2021-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rails_admin_rollincode
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.3'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.3'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rails_admin
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,8 +134,10 @@ files:
|
|
148
134
|
- README.md
|
149
135
|
- Rakefile
|
150
136
|
- app/assets/config/thecore_ui_rails_admin_manifest.js
|
137
|
+
- app/assets/javascripts/rails_admin/custom/ui.js
|
151
138
|
- app/assets/javascripts/rails_admin/ra.widgets.coffee
|
152
139
|
- app/assets/javascripts/thecore_ui_rails_admin/thecore_rails_admin.js
|
140
|
+
- app/assets/stylesheets/rails_admin/custom/theming.scss
|
153
141
|
- app/assets/stylesheets/thecore_ui_rails_admin/animate.css
|
154
142
|
- app/assets/stylesheets/thecore_ui_rails_admin/apexcharts.scss
|
155
143
|
- app/assets/stylesheets/thecore_ui_rails_admin/colors.scss
|
@@ -163,19 +151,19 @@ files:
|
|
163
151
|
- app/controllers/pages_controller.rb
|
164
152
|
- app/helpers/devise_bootstrap_errors_helper.rb
|
165
153
|
- app/helpers/thecore_helper.rb
|
166
|
-
- app/views/layouts/rails_admin/_navigation.html.haml
|
167
|
-
- app/views/layouts/rails_admin/_secondary_navigation.html.haml
|
168
|
-
- app/views/layouts/rails_admin/_sidebar_navigation.html.haml
|
169
|
-
- app/views/layouts/rails_admin/_style_common.html.haml
|
170
|
-
- app/views/layouts/rails_admin/_style_override.html.haml
|
171
|
-
- app/views/layouts/rails_admin/_user_navigation.html.haml
|
172
|
-
- app/views/layouts/rails_admin/application.html.haml
|
173
|
-
- app/views/layouts/rails_admin/pjax.html.haml
|
174
|
-
- app/views/rails_admin/main/_card.html.haml
|
175
|
-
- app/views/rails_admin/main/_dashboard_block.html.haml
|
176
|
-
- app/views/rails_admin/main/_modal_interaction.html.erb
|
177
|
-
- app/views/rails_admin/main/dashboard.html.haml
|
178
|
-
- app/views/rails_admin/main/index.html.haml
|
154
|
+
- app/views/layouts.old/rails_admin/_navigation.html.haml
|
155
|
+
- app/views/layouts.old/rails_admin/_secondary_navigation.html.haml
|
156
|
+
- app/views/layouts.old/rails_admin/_sidebar_navigation.html.haml
|
157
|
+
- app/views/layouts.old/rails_admin/_style_common.html.haml
|
158
|
+
- app/views/layouts.old/rails_admin/_style_override.html.haml
|
159
|
+
- app/views/layouts.old/rails_admin/_user_navigation.html.haml
|
160
|
+
- app/views/layouts.old/rails_admin/application.html.haml
|
161
|
+
- app/views/layouts.old/rails_admin/pjax.html.haml
|
162
|
+
- app/views/rails_admin.old/main/_card.html.haml
|
163
|
+
- app/views/rails_admin.old/main/_dashboard_block.html.haml
|
164
|
+
- app/views/rails_admin.old/main/_modal_interaction.html.erb
|
165
|
+
- app/views/rails_admin.old/main/dashboard.html.haml
|
166
|
+
- app/views/rails_admin.old/main/index.html.haml
|
179
167
|
- app/views/shared/_flash.html.erb
|
180
168
|
- config/initializers/rails_admin.rb
|
181
169
|
- config/initializers/thecore_concern.rb
|
@@ -188,8 +176,6 @@ files:
|
|
188
176
|
- config/locales/it.main.yml
|
189
177
|
- config/locales/it.rails_admin.yml
|
190
178
|
- config/locales/it.rollincode.yml
|
191
|
-
- config/locales/thecore_settings.en.yml
|
192
|
-
- config/locales/thecore_settings.it.yml
|
193
179
|
- config/routes.rb
|
194
180
|
- lib/abilities/thecore_ui_rails_admin.rb
|
195
181
|
- lib/concerns/rails_admin_requirements.rb
|
@@ -1,31 +0,0 @@
|
|
1
|
-
en:
|
2
|
-
settings:
|
3
|
-
namespaces:
|
4
|
-
main: Main
|
5
|
-
names:
|
6
|
-
app_name: Application Name
|
7
|
-
admin:
|
8
|
-
settings:
|
9
|
-
label: Settings
|
10
|
-
phone_invalid: Invalid Telephone
|
11
|
-
phones_invalid: "Invalid Telephones: %{phones}"
|
12
|
-
email_invalid: Invalid Email
|
13
|
-
yaml_invalid: Invalid Email
|
14
|
-
color_invalid: Invalid Color
|
15
|
-
mongoid: &mongoid
|
16
|
-
models:
|
17
|
-
rails_admin_settings/setting: Configurations
|
18
|
-
attributes:
|
19
|
-
rails_admin_settings/setting:
|
20
|
-
c_at: Created
|
21
|
-
u_at: Modified
|
22
|
-
enabled: Enabled
|
23
|
-
ns: Group
|
24
|
-
name: Name
|
25
|
-
key: Key
|
26
|
-
raw: Value
|
27
|
-
type: Type
|
28
|
-
kind: Type
|
29
|
-
label: Label
|
30
|
-
activerecord:
|
31
|
-
<<: *mongoid
|
@@ -1,31 +0,0 @@
|
|
1
|
-
it:
|
2
|
-
settings:
|
3
|
-
namespaces:
|
4
|
-
main: Principale
|
5
|
-
names:
|
6
|
-
app_name: Nome dell'applicazione
|
7
|
-
admin:
|
8
|
-
settings:
|
9
|
-
label: 'Impostazioni'
|
10
|
-
phone_invalid: Telefono non valido
|
11
|
-
phones_invalid: "Telefono non valido: %{phones}"
|
12
|
-
email_invalid: Email non valida
|
13
|
-
yaml_invalid: YAML non valido
|
14
|
-
color_invalid: Colore non valido
|
15
|
-
mongoid: &mongoid
|
16
|
-
models:
|
17
|
-
rails_admin_settings/setting: Configurazioni
|
18
|
-
attributes:
|
19
|
-
rails_admin_settings/setting:
|
20
|
-
c_at: Creato
|
21
|
-
u_at: Modificato
|
22
|
-
enabled: Abilitato
|
23
|
-
ns: Gruppo
|
24
|
-
name: Nome
|
25
|
-
key: Chiave
|
26
|
-
raw: Valore
|
27
|
-
type: Tipo
|
28
|
-
kind: Tipo
|
29
|
-
label: Etichetta
|
30
|
-
activerecord:
|
31
|
-
<<: *mongoid
|