web47core 1.0.12 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/core_form_helper.rb +2 -2
- data/app/helpers/core_link_helper.rb +5 -2
- data/lib/app/jobs/cron/trim_notifications.rb +1 -1
- data/lib/app/models/concerns/core_system_configuration.rb +3 -1
- data/lib/app/models/notification.rb +9 -0
- data/lib/web47core/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: f29428cb56a63bc4f4f292c98cf1590a2f8db0b4b064c2bc3197c05995ab7738
|
4
|
+
data.tar.gz: 9ae18c5548f3688c4fc9bc5fba07c7e59a27df7196c3140a40a140ea1f5657fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccda0a34ac1b2570827137ea2fe6bc5247f11754a3596139d75110ab3842cc8361915654bf0ff4a95b7c306d9986c690a4ca9c5e6c2d24cef023c73369745ad2
|
7
|
+
data.tar.gz: 7868d55800b8c3bcaabbb52703aa0fb273f3cbf83c06faf78c3cabbfbfedcd408a397f10fc47e64095a5d93c2c89359833acaf9a2388014047f64f21c4e0f9d6
|
@@ -21,12 +21,12 @@ module CoreFormHelper
|
|
21
21
|
# tag_options = {class: []} # text_field_options(model, field, options)
|
22
22
|
# tag_options[:class] += ['materialize-textarea']
|
23
23
|
content_tag(:div, class: (%w[input-field col] + classes).join(' ')) do
|
24
|
-
concat(
|
24
|
+
concat(text_area_tag(model, field, value, options))
|
25
25
|
concat(form_label_tag(model, field, value, options))
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
def
|
29
|
+
def text_area_tag(model, field, value, options = {})
|
30
30
|
tag_options = text_field_options(model, field, options)
|
31
31
|
tag_options[:class] += ['materialize-textarea']
|
32
32
|
content_tag(:textarea, tag_options) do
|
@@ -17,8 +17,10 @@ module CoreLinkHelper
|
|
17
17
|
# Setup the text as copy text
|
18
18
|
#
|
19
19
|
def copy_tag(copy_text, options = {})
|
20
|
+
secure = options[:secure] || false
|
21
|
+
display_text = secure ? mask_value(copy_text) : copy_text
|
20
22
|
content_tag(:div, class: 'clipboard') do
|
21
|
-
concat(content_tag(:span) {
|
23
|
+
concat(content_tag(:span) { display_text })
|
22
24
|
concat(copy_text_tag(copy_text, options))
|
23
25
|
concat(download_tag(options[:download_url], options)) if options[:download_url].present?
|
24
26
|
end
|
@@ -97,7 +99,8 @@ module CoreLinkHelper
|
|
97
99
|
return unless can? :edit, obj
|
98
100
|
|
99
101
|
icon = options[:icon] || 'edit'
|
100
|
-
|
102
|
+
tooltip = options[:tooltip] || 'Edit'
|
103
|
+
content_tag(:a, href: path, class: 'tooltipped', data: {tooltip: tooltip}) do
|
101
104
|
concat(content_tag(:i, class: 'material-icons') do
|
102
105
|
icon
|
103
106
|
end)
|
@@ -68,8 +68,10 @@ module CoreSystemConfiguration
|
|
68
68
|
field :switchboard_stack_id, type: String
|
69
69
|
field :switchboard_stack_api_token, type: String
|
70
70
|
field :switchboard_last_sync_at, type: Time
|
71
|
-
#
|
71
|
+
# TTLs
|
72
72
|
field :user_model_audit_log_ttl, type: Integer, default: 365
|
73
|
+
field :slack_notification_ttl, type: Integer, default: 5
|
74
|
+
field :email_notification_ttl, type: Integer, default: 180
|
73
75
|
#
|
74
76
|
# Validations
|
75
77
|
#
|
data/lib/web47core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web47core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schroeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|