alchemy_cms 7.0.10 → 7.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gem_release.yml +9 -0
- data/CHANGELOG.md +11 -0
- data/app/components/alchemy/ingredients/audio_view.rb +1 -1
- data/app/components/alchemy/ingredients/base_view.rb +1 -1
- data/app/components/alchemy/ingredients/boolean_view.rb +1 -1
- data/app/components/alchemy/ingredients/datetime_view.rb +1 -1
- data/app/components/alchemy/ingredients/file_view.rb +1 -1
- data/app/components/alchemy/ingredients/headline_view.rb +16 -7
- data/app/components/alchemy/ingredients/link_view.rb +1 -1
- data/app/components/alchemy/ingredients/page_view.rb +1 -1
- data/app/components/alchemy/ingredients/picture_view.rb +1 -1
- data/app/components/alchemy/ingredients/richtext_view.rb +1 -1
- data/app/components/alchemy/ingredients/text_view.rb +1 -1
- data/app/components/alchemy/ingredients/video_view.rb +1 -1
- data/app/javascript/alchemy_admin/datepicker.js +8 -1
- data/app/models/alchemy/page.rb +2 -0
- data/lib/alchemy/modules.rb +2 -2
- data/lib/alchemy/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82cd64dd71fa79871bc3bfbec5f7f13d3a12d8227fe2294c4ba2fe544ad98dcb
|
4
|
+
data.tar.gz: a30831a00b1afa326159f19d706352ddf43f0e0f4cb84e0fa7a2590b7e12435a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 200987b061160915c554f377a735d6a590bc7d342bd7ebae9d133c0812440a731b1e9aa2b3566a6e241a32282fb19b6b4b1ff94fbf57261f1ae99f16060d0b91
|
7
|
+
data.tar.gz: 6dbe3f6fbf7cff9946245c405a5b5caa884872f7095d3da3b49a05bb500eb7c7a626bfe8968b9e7ab894f7e2db6d077eac87876f8ccc927d885a4d87d422e820
|
data/.gem_release.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 7.0.12 (2024-04-12)
|
4
|
+
|
5
|
+
- [7.0-stable] Fix Ingredient Boolean View [#2837](https://github.com/AlchemyCMS/alchemy_cms/pull/2837) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
6
|
+
- [7.0-stable] Nullify Ingredients::Page on Page destroy [#2830](https://github.com/AlchemyCMS/alchemy_cms/pull/2830) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
7
|
+
- [7.0-stable] Fix module error [#2821](https://github.com/AlchemyCMS/alchemy_cms/pull/2821) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
8
|
+
- [7.0-stable] Mark ingredient output as html_safe [#2781](https://github.com/AlchemyCMS/alchemy_cms/pull/2781) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
9
|
+
|
10
|
+
## 7.0.11 (2024-03-05)
|
11
|
+
|
12
|
+
- [7.0-stable] Do not include timezone in datepickers only displaying date [#2769](https://github.com/AlchemyCMS/alchemy_cms/pull/2769) ([tvdeyen](https://github.com/tvdeyen))
|
13
|
+
|
3
14
|
## 7.0.10 (2024-02-29)
|
4
15
|
|
5
16
|
- [7.0-stable] Fix taggable uniqueness in tags admin table [#2763](https://github.com/AlchemyCMS/alchemy_cms/pull/2763) ([alchemycms-bot](https://github.com/alchemycms-bot))
|
@@ -7,13 +7,22 @@ module Alchemy
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call
|
10
|
-
content_tag
|
11
|
-
ingredient.value
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
content_tag tag_name, id: dom_id, class: css_classes do
|
11
|
+
ingredient.value
|
12
|
+
end.html_safe
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def tag_name = "h#{@level || ingredient.level}"
|
18
|
+
|
19
|
+
def dom_id = ingredient.dom_id.presence
|
20
|
+
|
21
|
+
def css_classes
|
22
|
+
[
|
23
|
+
ingredient.size ? "h#{ingredient.size}" : nil,
|
24
|
+
html_options[:class]
|
25
|
+
]
|
17
26
|
end
|
18
27
|
end
|
19
28
|
end
|
@@ -12,6 +12,8 @@ export default function Datepicker(scope = document) {
|
|
12
12
|
// Initializes the datepickers
|
13
13
|
datepickerInputs.forEach((input) => {
|
14
14
|
const type = input.dataset.datepickerType
|
15
|
+
const enableTime = /time/.test(type)
|
16
|
+
|
15
17
|
const options = {
|
16
18
|
// alchemy_i18n supports `zh_CN` etc., but flatpickr only has two-letter codes (`zh`)
|
17
19
|
locale: Alchemy.locale.slice(0, 2),
|
@@ -19,7 +21,7 @@ export default function Datepicker(scope = document) {
|
|
19
21
|
altFormat: Alchemy.t(`formats.${type}`),
|
20
22
|
altInputClass: "flatpickr-input",
|
21
23
|
dateFormat: "Z",
|
22
|
-
enableTime
|
24
|
+
enableTime,
|
23
25
|
noCalendar: type === "time",
|
24
26
|
time_24hr: Alchemy.t("formats.time_24hr"),
|
25
27
|
onValueUpdate(_selectedDates, _dateStr, instance) {
|
@@ -28,6 +30,11 @@ export default function Datepicker(scope = document) {
|
|
28
30
|
)
|
29
31
|
}
|
30
32
|
}
|
33
|
+
|
34
|
+
if (enableTime) {
|
35
|
+
options.dateFormat = "Z"
|
36
|
+
}
|
37
|
+
|
31
38
|
flatpickr(input, options)
|
32
39
|
})
|
33
40
|
}
|
data/app/models/alchemy/page.rb
CHANGED
@@ -121,6 +121,8 @@ module Alchemy
|
|
121
121
|
has_one :draft_version, -> { drafts }, class_name: "Alchemy::PageVersion"
|
122
122
|
has_one :public_version, -> { published }, class_name: "Alchemy::PageVersion", autosave: -> { persisted? }
|
123
123
|
|
124
|
+
has_many :page_ingredients, class_name: "Alchemy::Ingredients::Page", foreign_key: :related_object_id, dependent: :nullify
|
125
|
+
|
124
126
|
before_validation :set_language,
|
125
127
|
if: -> { language.nil? }
|
126
128
|
|
data/lib/alchemy/modules.rb
CHANGED
@@ -35,7 +35,7 @@ module Alchemy
|
|
35
35
|
defined_controllers.concat(definition_hash["navigation"]["sub_navigation"].map { |x| x["controller"] })
|
36
36
|
end
|
37
37
|
|
38
|
-
validate_controllers_existence(defined_controllers)
|
38
|
+
validate_controllers_existence(defined_controllers, definition_hash)
|
39
39
|
end
|
40
40
|
|
41
41
|
@@alchemy_modules |= [definition_hash]
|
@@ -43,7 +43,7 @@ module Alchemy
|
|
43
43
|
|
44
44
|
private
|
45
45
|
|
46
|
-
def validate_controllers_existence(controllers)
|
46
|
+
def validate_controllers_existence(controllers, definition_hash)
|
47
47
|
controllers.each do |controller_val|
|
48
48
|
next if controller_val.blank?
|
49
49
|
|
data/lib/alchemy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2024-
|
16
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: actionmailer
|
@@ -712,6 +712,7 @@ extra_rdoc_files: []
|
|
712
712
|
files:
|
713
713
|
- ".codeclimate.yml"
|
714
714
|
- ".editorconfig"
|
715
|
+
- ".gem_release.yml"
|
715
716
|
- ".github/FUNDING.yml"
|
716
717
|
- ".github/ISSUE_TEMPLATE/Bug_report.md"
|
717
718
|
- ".github/ISSUE_TEMPLATE/Feature_request.md"
|