web47core 3.2.68 → 3.2.70
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/helpers/core_table_helper.rb +0 -26
- data/app/helpers/svg_icon_helper.rb +13 -0
- data/bin/{coverage → merge_coverage} +1 -1
- data/lib/app/models/concerns/standard_model.rb +3 -0
- data/lib/web47core/version.rb +1 -1
- metadata +6 -6
- /data/{scripts/coverage_merge.rb → lib/merge_coverage.rb} +0 -0
- /data/{scripts → lib}/update_icons.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae74d84462d581b2bbff31b62a7fbff2c8e9d1435ed381811ce912778d4c257b
|
4
|
+
data.tar.gz: 5332def0a4b4ff1d483332ddebbdd80be8e702514239d4b5d69d0fcc3d6f56a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 733000ca4cab74c06bc5037c5e633711a75d529f462048112aee288666b781d83269e1fc3a2a3018eb6c7a09a8f97840d5b9ff60d1ce3179fa4b54872d8c796b
|
7
|
+
data.tar.gz: f6f33d41802054c6e55bdb8761a97c98f05464ca01b65b17af22971e5779a900a1dcbdbc60caed6f94169d7536bcc440fefe98286ce7a91dd6cefe2c244c91de
|
@@ -69,32 +69,6 @@ module CoreTableHelper
|
|
69
69
|
name
|
70
70
|
end
|
71
71
|
|
72
|
-
def dynamic_custom_modal(anchor, label, title, view_endpoint, _options = {})
|
73
|
-
datum = { view_url: view_endpoint }
|
74
|
-
content_tag(:span) do
|
75
|
-
concat(content_tag(:a, href: "##{anchor}", class: 'modal-trigger') do
|
76
|
-
concat(materialize_icon(label))
|
77
|
-
end)
|
78
|
-
concat(content_tag(:div, id: anchor, class: 'modal modal-fixed-footer', data: datum) do
|
79
|
-
concat(content_tag(:div, class: 'modal-content') do
|
80
|
-
concat(content_tag(:h2, class: 'center') do
|
81
|
-
concat(content_tag(:span, title))
|
82
|
-
end)
|
83
|
-
concat(content_tag(:div, class: 'center-align') do
|
84
|
-
concat(content_tag(:div, class: 'progress red lighten-4') do
|
85
|
-
tag(:div, class: 'indeterminate red')
|
86
|
-
end)
|
87
|
-
end)
|
88
|
-
end)
|
89
|
-
concat(content_tag(:div, class: 'modal-footer') do
|
90
|
-
concat(content_tag(:a, href: '#', class: 'modal-action modal-close btn btn-flat') do
|
91
|
-
concat('Close')
|
92
|
-
end)
|
93
|
-
end)
|
94
|
-
end)
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
72
|
# @abstract Return a table data cell with a boolean value
|
99
73
|
# @param value [Boolean] - The value to display
|
100
74
|
# @return [String] - The HTML for the cell
|
@@ -5,6 +5,15 @@ module SvgIconHelper
|
|
5
5
|
def svg_icon(name, size: 24, type: :outline, classes: [], color: 'currentColor', stroke_width: 2)
|
6
6
|
return if name.blank?
|
7
7
|
|
8
|
+
key = ['svg_icon', name, size.to_s, type.to_s, classes.to_s, color, stroke_width.to_s].join(':')
|
9
|
+
Rails.cache.fetch(key, expires_in: SystemConfiguration.long_cache) do
|
10
|
+
fetch_svg_icon(name, size: size, type: type, classes: classes, color: color, stroke_width: stroke_width)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def fetch_svg_icon(name, size: 24, type: :outline, classes: [], color: 'currentColor', stroke_width: 2)
|
15
|
+
return if name.blank?
|
16
|
+
|
8
17
|
classes = if size <= 24
|
9
18
|
['icon', classes].flatten.compact.join(' ')
|
10
19
|
else
|
@@ -20,6 +29,10 @@ module SvgIconHelper
|
|
20
29
|
[preferred_path, color] if lookup_context.exists?(path, [], true)
|
21
30
|
end.compact.first
|
22
31
|
end
|
32
|
+
if partial.blank?
|
33
|
+
partial = 'icons/outline/bug'
|
34
|
+
stroke = 'red'
|
35
|
+
end
|
23
36
|
|
24
37
|
tag.svg(xmlns: "http://www.w3.org/2000/svg",
|
25
38
|
viewBox: "0 0 24 24",
|
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: 3.2.
|
4
|
+
version: 3.2.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schroeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -520,7 +520,7 @@ email:
|
|
520
520
|
executables:
|
521
521
|
- cron_server
|
522
522
|
- delayed_job
|
523
|
-
-
|
523
|
+
- merge_coverage
|
524
524
|
extensions: []
|
525
525
|
extra_rdoc_files: []
|
526
526
|
files:
|
@@ -6515,9 +6515,9 @@ files:
|
|
6515
6515
|
- app/views/status/index.html.haml
|
6516
6516
|
- app/views/system_configurations/edit.html.haml
|
6517
6517
|
- app/views/system_configurations/show.html.haml
|
6518
|
-
- bin/coverage
|
6519
6518
|
- bin/cron_server
|
6520
6519
|
- bin/delayed_job
|
6520
|
+
- bin/merge_coverage
|
6521
6521
|
- bin/rails
|
6522
6522
|
- bin/rake
|
6523
6523
|
- bin/setup
|
@@ -6604,16 +6604,16 @@ files:
|
|
6604
6604
|
- lib/app/models/user_audit_log.rb
|
6605
6605
|
- lib/app/models/user_model_audit_log.rb
|
6606
6606
|
- lib/app/validators/email_format_validator.rb
|
6607
|
+
- lib/merge_coverage.rb
|
6607
6608
|
- lib/templates/email/notification_failure.liquid
|
6608
6609
|
- lib/templates/email/notification_failure.subject.liquid
|
6609
6610
|
- lib/templates/slack/error_message.liquid
|
6610
6611
|
- lib/templates/slack/failed_delayed_job.liquid
|
6612
|
+
- lib/update_icons.rb
|
6611
6613
|
- lib/web47core.rb
|
6612
6614
|
- lib/web47core/config.rb
|
6613
6615
|
- lib/web47core/engine.rb
|
6614
6616
|
- lib/web47core/version.rb
|
6615
|
-
- scripts/coverage_merge.rb
|
6616
|
-
- scripts/update_icons.rb
|
6617
6617
|
homepage: https://app47.com
|
6618
6618
|
licenses:
|
6619
6619
|
- MIT
|
File without changes
|
File without changes
|