alchemy-custom-model 2.1.2 → 3.1.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 +5 -5
- data/app/assets/javascripts/alchemy-custom-model/alchemy_custom_model_select.js +62 -0
- data/app/assets/javascripts/alchemy-custom-model/common_init.js +17 -14
- data/app/assets/javascripts/alchemy-custom-model/el_finder.js.coffee.erb +31 -0
- data/app/assets/javascripts/alchemy-custom-model/manifest.js +5 -0
- data/app/assets/javascripts/backend/date_picker.js +24 -0
- data/app/assets/javascripts/backend/fix_more_image_in_element.js.coffee +10 -0
- data/app/assets/javascripts/backend/override_alchemy_selectbox.js +8 -0
- data/app/assets/stylesheets/alchemy-custom-model/custom_elfinder.css.scss +20 -2
- data/app/assets/stylesheets/alchemy-custom-model/custom_style.css.scss +95 -0
- data/app/controllers/alchemy/custom/model/admin/base_controller.rb +16 -14
- data/app/controllers/alchemy/custom/model/admin/base_with_globalize_controller.rb +38 -0
- data/app/controllers/concerns/alchemy/admin/nodes_controller_dec.rb +55 -0
- data/app/helpers/alchemy/custom/model/admin/base_helper.rb +51 -3
- data/app/helpers/alchemy/custom/model/custom_model_helper.rb +26 -13
- data/app/helpers/alchemy/pages_helper_decorator.rb +38 -0
- data/app/models/concerns/alchemy/node_dec.rb +45 -0
- data/app/views/alchemy/admin/nodes/_form.html.erb +126 -0
- data/app/views/alchemy/admin/nodes/custom_models.json.jbuilder +10 -0
- data/app/views/alchemy/admin/nodes/custom_models_methods.json.jbuilder +10 -0
- data/app/views/alchemy/admin/pictures/_custom_model_info.html.erb +27 -0
- data/app/views/alchemy/admin/pictures/_infos.html.erb +65 -0
- data/app/views/alchemy/custom/model/admin/base/_gallery_item.html.erb +7 -2
- data/app/views/alchemy/custom/model/admin/base/_search_panel.html.erb +16 -0
- data/app/views/alchemy/custom/model/admin/base/_seo.html.erb +5 -5
- data/app/views/alchemy/custom/model/admin/base/_show_object.html.erb +30 -0
- data/app/views/alchemy/custom/model/admin/base/_show_objects.html.erb +48 -0
- data/app/views/alchemy/custom/model/admin/base/_title.html.erb +1 -1
- data/app/views/alchemy/custom/model/admin/base/edit.html.erb +2 -2
- data/app/views/alchemy/custom/model/admin/base/index.html.erb +6 -5
- data/app/views/alchemy/custom/model/admin/base/new.html.erb +2 -2
- data/app/views/alchemy/custom/model/admin/base/show.html.erb +5 -48
- data/app/views/alchemy/pages/sitemap.xml.erb +16 -0
- data/config/locales/it.yml +6 -0
- data/config/routes.rb +16 -0
- data/db/migrate/20200424184007_add_fields_to_node.rb +8 -0
- data/lib/alchemy/custom/model.rb +58 -0
- data/lib/alchemy/custom/model/el_finder/paths/active_record_reference.rb +9 -0
- data/lib/alchemy/custom/model/engine.rb +7 -1
- data/lib/alchemy/custom/model/globalize_model_decoration.rb +26 -0
- data/lib/alchemy/custom/model/menu_methods.rb +16 -0
- data/lib/alchemy/custom/model/model_decoration.rb +3 -0
- data/lib/alchemy/custom/model/model_utils_methods.rb +28 -0
- data/lib/alchemy/custom/model/pages_controller_dec.rb +38 -25
- data/lib/alchemy/custom/model/picture_used_by.rb +51 -0
- data/lib/alchemy/custom/model/sitemap_methods.rb +18 -0
- data/lib/alchemy/custom/model/slug_optimizer.rb +23 -0
- data/lib/alchemy/custom/model/version.rb +1 -1
- data/lib/tasks/alchemy_custom_model_tasks.rake +3 -0
- data/vendor/assets/javascripts/flatpickr/i10n/it.js +71 -0
- metadata +66 -9
- data/lib/alchemy-custom-model.rb +0 -31
@@ -0,0 +1,28 @@
|
|
1
|
+
module Alchemy
|
2
|
+
module Custom
|
3
|
+
module Model
|
4
|
+
module ModelUtilsMethods
|
5
|
+
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
included do
|
9
|
+
|
10
|
+
def to_url
|
11
|
+
layout = Alchemy::PageLayout.get_all_by_attributes(custom_model: self.class.to_s).select { |ly| ly["custom_model_action"] == "show" }.first
|
12
|
+
page = Alchemy::Language.current.pages.find_by(page_layout: layout["name"]).parent
|
13
|
+
page.urlname
|
14
|
+
end
|
15
|
+
|
16
|
+
def ui_title
|
17
|
+
self.class.to_s.demodulize.downcase
|
18
|
+
end
|
19
|
+
|
20
|
+
def breadcrumb_name
|
21
|
+
self.class.to_s.demodulize.titleize
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -7,12 +7,28 @@ module Alchemy::Custom::Model
|
|
7
7
|
|
8
8
|
skip_before_action :page_not_found!, only: [:index, :show]
|
9
9
|
before_action :load_custom_model_page, only: [:show]
|
10
|
-
before_action :page_not_found_after_custom_model!, if: -> {@page.blank?}, only: [:index, :show]
|
10
|
+
before_action :page_not_found_after_custom_model!, if: -> { @page.blank? }, only: [:index, :show]
|
11
11
|
before_action :perform_search, only: :show
|
12
|
-
after_action :set_404_after
|
12
|
+
after_action :set_404_after, except: :sitemap
|
13
13
|
|
14
14
|
helper CustomModelHelper
|
15
15
|
|
16
|
+
def sitemap
|
17
|
+
@pages = Alchemy::Page.sitemap.reject do |page|
|
18
|
+
page.definition["custom_model_action"].to_s == "show"
|
19
|
+
end
|
20
|
+
@custom_elements = []
|
21
|
+
Alchemy::Custom::Model.sitemaps_models.each do |model|
|
22
|
+
if model.respond_to? :to_sitemap
|
23
|
+
@custom_elements << model.to_sitemap
|
24
|
+
end
|
25
|
+
end
|
26
|
+
@custom_elements = @custom_elements.flatten
|
27
|
+
respond_to do |format|
|
28
|
+
format.xml { render layout: 'alchemy/sitemap' }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
16
32
|
private
|
17
33
|
|
18
34
|
def load_custom_model_page
|
@@ -30,6 +46,8 @@ module Alchemy::Custom::Model
|
|
30
46
|
instance_variable_set("@#{custom_model_string.demodulize.downcase.pluralize}", @custom_elements)
|
31
47
|
end
|
32
48
|
|
49
|
+
elsif action_name == "sitemap"
|
50
|
+
super
|
33
51
|
else
|
34
52
|
|
35
53
|
url = params[:urlname]
|
@@ -38,37 +56,35 @@ module Alchemy::Custom::Model
|
|
38
56
|
|
39
57
|
unless url_params.nil?
|
40
58
|
|
41
|
-
|
42
59
|
parent_page = Alchemy::Language.current.pages.contentpages.find_by(
|
43
60
|
urlname: url_params[:page_name],
|
44
61
|
language_code: params[:locale] || Alchemy::Language.current.code
|
45
62
|
)
|
46
63
|
|
47
64
|
if parent_page.nil?
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
#TODO magari implementare ricerca children in base a una action es. edit new chow ecc
|
52
|
-
|
53
|
-
@page = parent_page.children.first
|
54
|
-
|
55
|
-
if @page.nil?
|
56
|
-
raise ActionController::RoutingError, "You have to define a subpage for custom model"
|
57
|
-
end
|
58
|
-
|
59
|
-
custom_model_string = get_custom_model_string
|
60
|
-
|
61
|
-
if custom_model_string.blank?
|
62
|
-
raise ActionController::RoutingError, "You have to specify custom_model in page_layouts config file"
|
65
|
+
Rails.logger.warn "Parent Page not Found [#{url_params[:page_name]}]"
|
66
|
+
#TODO magari implementare ricerca children in base a una action es. edit new chow ecc
|
63
67
|
else
|
64
|
-
|
65
|
-
@
|
66
|
-
|
68
|
+
@page = parent_page.children.first
|
69
|
+
if @page.nil?
|
70
|
+
Rails.logger.warn "You have to define a subpage for custom model"
|
71
|
+
else
|
72
|
+
custom_model_string = get_custom_model_string
|
73
|
+
|
74
|
+
if custom_model_string.blank?
|
75
|
+
Rails.logger.warn "You have to specify custom_model in page_layouts config file"
|
76
|
+
else
|
77
|
+
custom_model = custom_model_string.classify.constantize
|
78
|
+
@custom_element = custom_model.only_current_language.friendly.find(url_params[:custom_model_id])
|
79
|
+
instance_variable_set("@#{custom_model_string.demodulize.underscore}", @custom_element)
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|
67
84
|
end
|
68
85
|
|
69
86
|
end
|
70
87
|
|
71
|
-
|
72
88
|
end
|
73
89
|
end
|
74
90
|
|
@@ -95,7 +111,6 @@ module Alchemy::Custom::Model
|
|
95
111
|
end
|
96
112
|
end
|
97
113
|
|
98
|
-
|
99
114
|
def get_custom_model_string
|
100
115
|
|
101
116
|
children_page_layout = Alchemy::PageLayout.get(@page.page_layout)
|
@@ -104,7 +119,6 @@ module Alchemy::Custom::Model
|
|
104
119
|
|
105
120
|
end
|
106
121
|
|
107
|
-
|
108
122
|
def page_not_found_after_custom_model!
|
109
123
|
not_found_error!("Alchemy::Page not found \"#{request.fullpath}\"")
|
110
124
|
end
|
@@ -113,7 +127,6 @@ module Alchemy::Custom::Model
|
|
113
127
|
ArchimediaPgsearch::SEARCH_RESULTS_PAGINATION_NUMBER
|
114
128
|
end
|
115
129
|
|
116
|
-
|
117
130
|
def not_found_error!(msg = "Not found \"#{request.fullpath}\"")
|
118
131
|
not_found_page = Alchemy::Language.current.pages.published.find_by(page_layout: "not_found")
|
119
132
|
if !not_found_page.nil?
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Alchemy
|
2
|
+
module Custom
|
3
|
+
module Model
|
4
|
+
class PictureUsedBy
|
5
|
+
|
6
|
+
def self.used_by(picture_id)
|
7
|
+
model_to_search_for = ApplicationRecord.descendants.collect(&:name)
|
8
|
+
|
9
|
+
finded_pictures = []
|
10
|
+
model_to_search_for.each do |mname|
|
11
|
+
relations = mname.constantize.reflections.collect{|c| c[0] }
|
12
|
+
|
13
|
+
relations.each do |refc|
|
14
|
+
relation = mname.constantize.reflections[refc]
|
15
|
+
|
16
|
+
if relation.class_name == "Alchemy::Picture"
|
17
|
+
begin
|
18
|
+
if relation.class == ActiveRecord::Reflection::BelongsToReflection
|
19
|
+
mm = mname.constantize.where(relation.foreign_key.to_sym => picture_id)
|
20
|
+
mm.each do |rec|
|
21
|
+
finded_pictures << rec
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
if relation.class == ActiveRecord::Reflection::ThroughReflection
|
26
|
+
relation_through = mname.constantize.reflections[relation.options[:through].to_s]
|
27
|
+
mm = relation_through.klass.where(relation.foreign_key.to_sym => picture_id)
|
28
|
+
mm.each do |rec|
|
29
|
+
rec.class.reflections.collect{|c| c[0] }.each do |relative_relation|
|
30
|
+
relation_relation_class = rec.class.reflections[relative_relation]
|
31
|
+
if relation_relation_class.class_name == mname
|
32
|
+
mm = relation_relation_class.klass.find( rec[relation_relation_class.foreign_key] )
|
33
|
+
finded_pictures << mm unless mm.nil?
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
rescue Exception => excp
|
40
|
+
Rails.logger.error {"PictureUsedBy ERROR: #{excp.message}"}
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
finded_pictures
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Alchemy
|
2
|
+
module Custom
|
3
|
+
module Model
|
4
|
+
module SlugOptimizer
|
5
|
+
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
included do
|
9
|
+
validates friendly_id_config.query_field, uniqueness: {:allow_nil => true}
|
10
|
+
before_save :prevent_wrong_slug
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def prevent_wrong_slug
|
15
|
+
self.send("#{friendly_id_config.query_field}=", normalize_friendly_id(self.slug))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -30,10 +30,13 @@ namespace :alchemy_custom_model do
|
|
30
30
|
|
31
31
|
#installa friendly_id
|
32
32
|
system("rails generate friendly_id")
|
33
|
+
system("bin/rails alchemy_custom_model:install:migrations")
|
33
34
|
system("bin/rails db:migrate")
|
34
35
|
|
35
36
|
system("yarn add alchemy-custom-model") || exit!(1)
|
36
37
|
|
38
|
+
|
39
|
+
|
37
40
|
install_helper.inject_assets
|
38
41
|
install_helper.inject_routes
|
39
42
|
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
4
|
+
(global = global || self, factory(global.it = {}));
|
5
|
+
}(this, function (exports) { 'use strict';
|
6
|
+
|
7
|
+
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
|
8
|
+
? window.flatpickr
|
9
|
+
: {
|
10
|
+
l10ns: {}
|
11
|
+
};
|
12
|
+
var Italian = {
|
13
|
+
weekdays: {
|
14
|
+
shorthand: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
|
15
|
+
longhand: [
|
16
|
+
"Domenica",
|
17
|
+
"Lunedì",
|
18
|
+
"Martedì",
|
19
|
+
"Mercoledì",
|
20
|
+
"Giovedì",
|
21
|
+
"Venerdì",
|
22
|
+
"Sabato",
|
23
|
+
]
|
24
|
+
},
|
25
|
+
months: {
|
26
|
+
shorthand: [
|
27
|
+
"Gen",
|
28
|
+
"Feb",
|
29
|
+
"Mar",
|
30
|
+
"Apr",
|
31
|
+
"Mag",
|
32
|
+
"Giu",
|
33
|
+
"Lug",
|
34
|
+
"Ago",
|
35
|
+
"Set",
|
36
|
+
"Ott",
|
37
|
+
"Nov",
|
38
|
+
"Dic",
|
39
|
+
],
|
40
|
+
longhand: [
|
41
|
+
"Gennaio",
|
42
|
+
"Febbraio",
|
43
|
+
"Marzo",
|
44
|
+
"Aprile",
|
45
|
+
"Maggio",
|
46
|
+
"Giugno",
|
47
|
+
"Luglio",
|
48
|
+
"Agosto",
|
49
|
+
"Settembre",
|
50
|
+
"Ottobre",
|
51
|
+
"Novembre",
|
52
|
+
"Dicembre",
|
53
|
+
]
|
54
|
+
},
|
55
|
+
firstDayOfWeek: 1,
|
56
|
+
ordinal: function () { return "°"; },
|
57
|
+
rangeSeparator: " al ",
|
58
|
+
weekAbbreviation: "Se",
|
59
|
+
scrollTitle: "Scrolla per aumentare",
|
60
|
+
toggleTitle: "Clicca per cambiare",
|
61
|
+
time_24hr: true
|
62
|
+
};
|
63
|
+
fp.l10ns.it = Italian;
|
64
|
+
var it = fp.l10ns;
|
65
|
+
|
66
|
+
exports.Italian = Italian;
|
67
|
+
exports.default = it;
|
68
|
+
|
69
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
70
|
+
|
71
|
+
}));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy-custom-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Baccanelli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: alchemy_cms
|
@@ -17,14 +17,20 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.1'
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 5.1.2
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - "~>"
|
26
29
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
30
|
+
version: '5.1'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.1.2
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: jquery-ui-rails
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,20 +85,48 @@ dependencies:
|
|
79
85
|
- - ">="
|
80
86
|
- !ruby/object:Gem::Version
|
81
87
|
version: 5.2.4
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: globalize
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '5.3'
|
95
|
+
type: :runtime
|
96
|
+
prerelease: false
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '5.3'
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: friendly_id-globalize
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - '='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.0.0.alpha3
|
109
|
+
type: :runtime
|
110
|
+
prerelease: false
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - '='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 1.0.0.alpha3
|
82
116
|
- !ruby/object:Gem::Dependency
|
83
117
|
name: active_type
|
84
118
|
requirement: !ruby/object:Gem::Requirement
|
85
119
|
requirements:
|
86
120
|
- - "~>"
|
87
121
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
122
|
+
version: '1.3'
|
89
123
|
type: :runtime
|
90
124
|
prerelease: false
|
91
125
|
version_requirements: !ruby/object:Gem::Requirement
|
92
126
|
requirements:
|
93
127
|
- - "~>"
|
94
128
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
129
|
+
version: '1.3'
|
96
130
|
description: A gem for semplify model implementation with Alchemy CMS
|
97
131
|
email:
|
98
132
|
- alexbaccanelli@gmail.com
|
@@ -106,6 +140,7 @@ files:
|
|
106
140
|
- Rakefile
|
107
141
|
- app/assets/config/alchemy_custom_model_manifest.js
|
108
142
|
- app/assets/images/alchemy-custom-model/no_image.png
|
143
|
+
- app/assets/javascripts/alchemy-custom-model/alchemy_custom_model_select.js
|
109
144
|
- app/assets/javascripts/alchemy-custom-model/change_language.js
|
110
145
|
- app/assets/javascripts/alchemy-custom-model/common_init.js
|
111
146
|
- app/assets/javascripts/alchemy-custom-model/custom_admin_element_editor.js.coffee
|
@@ -118,15 +153,20 @@ files:
|
|
118
153
|
- app/assets/javascripts/alchemy-custom-model/sortable.js
|
119
154
|
- app/assets/javascripts/alchemy-custom-model/subobjects.js
|
120
155
|
- app/assets/javascripts/alchemy-custom-model/total_page_elfinder.js.coffee
|
156
|
+
- app/assets/javascripts/backend/date_picker.js
|
157
|
+
- app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
|
158
|
+
- app/assets/javascripts/backend/override_alchemy_selectbox.js
|
121
159
|
- app/assets/stylesheets/alchemy-custom-model/custom_elfinder.css.scss
|
122
160
|
- app/assets/stylesheets/alchemy-custom-model/custom_style.css.scss
|
123
161
|
- app/assets/stylesheets/alchemy-custom-model/custom_tiny_mce.scss
|
124
162
|
- app/assets/stylesheets/alchemy-custom-model/manifest.css
|
125
163
|
- app/controllers/alchemy/custom/model/admin/base_controller.rb
|
164
|
+
- app/controllers/alchemy/custom/model/admin/base_with_globalize_controller.rb
|
126
165
|
- app/controllers/alchemy/custom/model/admin/clones_controller.rb
|
127
166
|
- app/controllers/alchemy/custom/model/admin/files_controller.rb
|
128
167
|
- app/controllers/alchemy/custom/model/admin/orders_controller.rb
|
129
168
|
- app/controllers/alchemy/pages_controller_decorator.rb
|
169
|
+
- app/controllers/concerns/alchemy/admin/nodes_controller_dec.rb
|
130
170
|
- app/helpers/alchemy/custom/model/admin/base_helper.rb
|
131
171
|
- app/helpers/alchemy/custom/model/admin/orders_helper.rb
|
132
172
|
- app/helpers/alchemy/custom/model/base_helper.rb
|
@@ -135,11 +175,20 @@ files:
|
|
135
175
|
- app/models/admin_override_to_param.rb
|
136
176
|
- app/models/alchemy/custom/model/cloner.rb
|
137
177
|
- app/models/application_record.rb
|
178
|
+
- app/models/concerns/alchemy/node_dec.rb
|
179
|
+
- app/views/alchemy/admin/nodes/_form.html.erb
|
180
|
+
- app/views/alchemy/admin/nodes/custom_models.json.jbuilder
|
181
|
+
- app/views/alchemy/admin/nodes/custom_models_methods.json.jbuilder
|
182
|
+
- app/views/alchemy/admin/pictures/_custom_model_info.html.erb
|
183
|
+
- app/views/alchemy/admin/pictures/_infos.html.erb
|
138
184
|
- app/views/alchemy/custom/model/admin/base/_buttons_tool.html.erb
|
139
185
|
- app/views/alchemy/custom/model/admin/base/_gallery_item.html.erb
|
140
186
|
- app/views/alchemy/custom/model/admin/base/_language_tree_select.html.erb
|
141
187
|
- app/views/alchemy/custom/model/admin/base/_search_box.html.erb
|
188
|
+
- app/views/alchemy/custom/model/admin/base/_search_panel.html.erb
|
142
189
|
- app/views/alchemy/custom/model/admin/base/_seo.html.erb
|
190
|
+
- app/views/alchemy/custom/model/admin/base/_show_object.html.erb
|
191
|
+
- app/views/alchemy/custom/model/admin/base/_show_objects.html.erb
|
143
192
|
- app/views/alchemy/custom/model/admin/base/_table.html.erb
|
144
193
|
- app/views/alchemy/custom/model/admin/base/_title.html.erb
|
145
194
|
- app/views/alchemy/custom/model/admin/base/edit.html.erb
|
@@ -150,11 +199,13 @@ files:
|
|
150
199
|
- app/views/alchemy/custom/model/admin/files/error_notice.json.jbuilder
|
151
200
|
- app/views/alchemy/custom/model/admin/files/ui.html.erb
|
152
201
|
- app/views/alchemy/custom/model/admin/orders/new.html.erb
|
202
|
+
- app/views/alchemy/pages/sitemap.xml.erb
|
153
203
|
- config/initializers/elfinder_abilities.rb
|
154
204
|
- config/locales/en.yml
|
155
205
|
- config/locales/it.yml
|
156
206
|
- config/routes.rb
|
157
|
-
-
|
207
|
+
- db/migrate/20200424184007_add_fields_to_node.rb
|
208
|
+
- lib/alchemy/custom/model.rb
|
158
209
|
- lib/alchemy/custom/model/el_finder.rb
|
159
210
|
- lib/alchemy/custom/model/el_finder/ability.rb
|
160
211
|
- lib/alchemy/custom/model/el_finder/connector.rb
|
@@ -180,13 +231,20 @@ files:
|
|
180
231
|
- lib/alchemy/custom/model/errors/error.rb
|
181
232
|
- lib/alchemy/custom/model/errors/parent_nil.rb
|
182
233
|
- lib/alchemy/custom/model/global_id_setter.rb
|
234
|
+
- lib/alchemy/custom/model/globalize_model_decoration.rb
|
235
|
+
- lib/alchemy/custom/model/menu_methods.rb
|
183
236
|
- lib/alchemy/custom/model/model_decoration.rb
|
237
|
+
- lib/alchemy/custom/model/model_utils_methods.rb
|
184
238
|
- lib/alchemy/custom/model/order.rb
|
185
239
|
- lib/alchemy/custom/model/pages_controller_dec.rb
|
240
|
+
- lib/alchemy/custom/model/picture_used_by.rb
|
241
|
+
- lib/alchemy/custom/model/sitemap_methods.rb
|
242
|
+
- lib/alchemy/custom/model/slug_optimizer.rb
|
186
243
|
- lib/alchemy/custom/model/translation_scope.rb
|
187
244
|
- lib/alchemy/custom/model/version.rb
|
188
245
|
- lib/alchemy/touching_decorator.rb
|
189
246
|
- lib/tasks/alchemy_custom_model_tasks.rake
|
247
|
+
- vendor/assets/javascripts/flatpickr/i10n/it.js
|
190
248
|
- vendor/assets/javascripts/tinymce/langs/it.js
|
191
249
|
- vendor/assets/javascripts/tinymce/plugins/image/plugin.min.js
|
192
250
|
- vendor/assets/stylesheets/elFinder.scss
|
@@ -266,8 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
324
|
- !ruby/object:Gem::Version
|
267
325
|
version: '0'
|
268
326
|
requirements: []
|
269
|
-
|
270
|
-
rubygems_version: 2.4.8
|
327
|
+
rubygems_version: 3.0.8
|
271
328
|
signing_key:
|
272
329
|
specification_version: 4
|
273
330
|
summary: A gem for semplify model implementation with Alchemy CMS
|