nuntius 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/nuntius/admin/layouts_controller.rb +3 -1
- data/app/views/nuntius/admin/campaigns/edit.html.slim +2 -0
- data/app/views/nuntius/admin/layouts/edit.html.slim +2 -0
- data/app/views/nuntius/admin/templates/edit.html.slim +9 -5
- data/lib/nuntius/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11b30e0625c1b47a70a22803a0bdec45d92faf881b1e83ae72e00582d95b36f4
|
4
|
+
data.tar.gz: ec9251af770d4b3cd4ae58b75968bddc4e4917dc1ba01d8073eb73df56c9fe4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8dd4831dcbb7c4e8440e4a1ebf281a712959de7a47323e2590a24d71bf039c5a7c7b5899e3427832949a061f1bed2ac72b3f70acdc86b534aafe16f7d364689
|
7
|
+
data.tar.gz: 1c5e6ad9964622533dad4c91df0ff7bcdf05299bbaddcdf81efcfee6eeea02f9b50bc7ad662b174e8433e422d040dda57b8e9f627fd2c8360cc27575653735c8
|
@@ -43,7 +43,9 @@ module Nuntius
|
|
43
43
|
private
|
44
44
|
|
45
45
|
def layout_params
|
46
|
-
|
46
|
+
permitted = %i[name data metadata_yaml]
|
47
|
+
permitted += [attachments: []] if params[:layout][:attachments].compact_blank.present?
|
48
|
+
params.require(:layout).permit(permitted)
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -55,16 +55,16 @@
|
|
55
55
|
.col-span-12
|
56
56
|
= f.association :layout, collection: @layouts, include_blank: true
|
57
57
|
.col-span-12
|
58
|
-
= f.input :html, as: :editor, mode: 'text/markdown'
|
58
|
+
= f.input :html, as: :editor, mode: 'text/markdown', height: '400px'
|
59
59
|
|
60
60
|
template data-toggle-target='toggleable' data-toggle-value='voice'
|
61
61
|
.col-span-12
|
62
|
-
= f.input :text, as: :editor, mode: 'text/plain'
|
62
|
+
= f.input :text, as: :editor, mode: 'text/plain', height: '400px'
|
63
63
|
template data-toggle-target='toggleable' data-toggle-value='slack'
|
64
64
|
.col-span-12
|
65
|
-
= f.input :text, as: :editor, mode: 'text/plain'
|
65
|
+
= f.input :text, as: :editor, mode: 'text/plain', height: '400px'
|
66
66
|
.col-span-12
|
67
|
-
= f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://app.slack.com/block-kit-builder/'
|
67
|
+
= f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://app.slack.com/block-kit-builder/', height: '400px'
|
68
68
|
|
69
69
|
template data-toggle-target='toggleable' data-toggle-value='sms'
|
70
70
|
.col-span-12
|
@@ -72,7 +72,11 @@
|
|
72
72
|
template data-toggle-target='toggleable' data-toggle-value='push'
|
73
73
|
.col-span-12
|
74
74
|
= f.input :text, as: :editor, mode: 'text/plain'
|
75
|
-
template data-toggle-target='toggleable' data-toggle-value='
|
75
|
+
template data-toggle-target='toggleable' data-toggle-value='teams'
|
76
|
+
.col-span-12
|
77
|
+
= f.input :text, as: :editor, mode: 'text/plain', height: '400px'
|
78
|
+
.col-span-12
|
79
|
+
= f.input :payload, as: :editor, mode: 'application/yaml', hint: 'See here for more information: https://www.adaptivecards.io/designer/', height: '400px'
|
76
80
|
|
77
81
|
|
78
82
|
- if @template.messages.exists?
|
data/lib/nuntius/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nuntius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apnotic
|