jekyll-theme-centos 2.52.0.beta.59 → 2.52.0.beta.61
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/_data/base/bits.yml +1 -1
- data/_data/base/bits_schema.yml +1 -0
- data/_data/base/color.yml +105 -105
- data/_includes/base/bits.html.liquid +3 -1
- data/_includes/base/color-table.html.liquid +33 -0
- data/assets/img/base/centos-colors.gpl +16 -16
- data/assets/img/base/page-layout-default.svg +996 -900
- data/assets/img/base/page-with-alert.svg +12 -12
- data/assets/img/base/page-with-artwork.svg +839 -198
- data/assets/img/base/page-with-backtotop.svg +163 -91
- data/assets/img/base/page-with-bits.svg +824 -244
- data/assets/js/base/copyvalue.js +15 -7
- metadata +2 -1
data/assets/js/base/copyvalue.js
CHANGED
|
@@ -11,8 +11,6 @@ class CopyButtonHandler {
|
|
|
11
11
|
this.checkmarkViewbox = config.checkmarkViewbox || '0 0 448 512'
|
|
12
12
|
this.successMessage = config.successMessage || 'Copied!'
|
|
13
13
|
this.originalIcon = this._captureIcon()
|
|
14
|
-
|
|
15
|
-
button.addEventListener('click', (e) => this.handleClick(e))
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
_captureIcon () {
|
|
@@ -126,12 +124,22 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
|
126
124
|
if (scriptElement.dataset.successMessage) config.successMessage = scriptElement.dataset.successMessage
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
const handlers = new WeakMap()
|
|
128
|
+
|
|
129
|
+
document.addEventListener('click', function (e) {
|
|
130
|
+
const button = e.target.closest('.copy-btn')
|
|
131
|
+
if (!button) return
|
|
132
|
+
|
|
133
|
+
if (!handlers.has(button)) {
|
|
134
|
+
try {
|
|
135
|
+
handlers.set(button, new CopyButtonHandler(button, config))
|
|
136
|
+
} catch (err) {
|
|
137
|
+
console.error('Failed to initialize copy button:', button, 'Error:', err)
|
|
138
|
+
return
|
|
139
|
+
}
|
|
134
140
|
}
|
|
141
|
+
|
|
142
|
+
handlers.get(button).handleClick(e)
|
|
135
143
|
})
|
|
136
144
|
})
|
|
137
145
|
})()
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-centos
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.52.0.beta.
|
|
4
|
+
version: 2.52.0.beta.61
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ReleaseBot
|
|
@@ -332,6 +332,7 @@ files:
|
|
|
332
332
|
- _includes/base/breadcrumb.html.liquid
|
|
333
333
|
- _includes/base/breakingnews.html.liquid
|
|
334
334
|
- _includes/base/card.html.liquid
|
|
335
|
+
- _includes/base/color-table.html.liquid
|
|
335
336
|
- _includes/base/configuration-variables-nested.html.liquid
|
|
336
337
|
- _includes/base/configuration-variables.html.liquid
|
|
337
338
|
- _includes/base/copyright.html.liquid
|