theshtify 1.0.3 → 1.0.4
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.
- package/index.html +1 -1
- package/lib/theshtify.js +1 -5
- package/lib/theshtifyCDN.js +1 -5
- package/package.json +1 -1
package/index.html
CHANGED
package/lib/theshtify.js
CHANGED
|
@@ -142,7 +142,7 @@ function configure(datas) {
|
|
|
142
142
|
config.duration ? duration(config.duration) : '';
|
|
143
143
|
config.custom_colors ? setCustomColors(config.custom_colors) : '';
|
|
144
144
|
datas.type ? type(datas.type) : '';
|
|
145
|
-
config.bordered ? bordered(config.
|
|
145
|
+
config.bordered ? bordered(config.bordered) : '';
|
|
146
146
|
config.bordered && config.border_width ? borderWidth(config.border_width) : '';
|
|
147
147
|
config.radius ? radius(config.radius) : '';
|
|
148
148
|
config.colors ? customColors(config.colors) : '';
|
|
@@ -242,13 +242,9 @@ function configureColor(colors) {
|
|
|
242
242
|
// box text colors
|
|
243
243
|
colors.color ? textColor(colors.color) : '';
|
|
244
244
|
// borders
|
|
245
|
-
if (colors.border && theshtify_infos.config.bordered) {
|
|
246
245
|
colors.border.type ? borderType(colors.border.type) : '';
|
|
247
246
|
colors.border.color ? borderColor(colors.border.color) : '';
|
|
248
|
-
}
|
|
249
|
-
if (colors.progress) {
|
|
250
247
|
colors.progress.bg ? progressColor(colors.progress.bg) : '';
|
|
251
|
-
}
|
|
252
248
|
}
|
|
253
249
|
function getColor(name) {
|
|
254
250
|
return theshtify_infos.config.display.colors[name] ?? false;
|
package/lib/theshtifyCDN.js
CHANGED
|
@@ -142,7 +142,7 @@ function configure(datas) {
|
|
|
142
142
|
config.duration ? duration(config.duration) : '';
|
|
143
143
|
config.custom_colors ? setCustomColors(config.custom_colors) : '';
|
|
144
144
|
datas.type ? type(datas.type) : '';
|
|
145
|
-
config.bordered ? bordered(config.
|
|
145
|
+
config.bordered ? bordered(config.bordered) : '';
|
|
146
146
|
config.bordered && config.border_width ? borderWidth(config.border_width) : '';
|
|
147
147
|
config.radius ? radius(config.radius) : '';
|
|
148
148
|
config.colors ? customColors(config.colors) : '';
|
|
@@ -242,13 +242,9 @@ function configureColor(colors) {
|
|
|
242
242
|
// box text colors
|
|
243
243
|
colors.color ? textColor(colors.color) : '';
|
|
244
244
|
// borders
|
|
245
|
-
if (colors.border && theshtify_infos.config.bordered) {
|
|
246
245
|
colors.border.type ? borderType(colors.border.type) : '';
|
|
247
246
|
colors.border.color ? borderColor(colors.border.color) : '';
|
|
248
|
-
}
|
|
249
|
-
if (colors.progress) {
|
|
250
247
|
colors.progress.bg ? progressColor(colors.progress.bg) : '';
|
|
251
|
-
}
|
|
252
248
|
}
|
|
253
249
|
function getColor(name) {
|
|
254
250
|
return theshtify_infos.config.display.colors[name] ?? false;
|