adminforth 1.2.80 → 1.2.81
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/package.json
CHANGED
package/spa/src/App.vue
CHANGED
|
@@ -113,9 +113,10 @@
|
|
|
113
113
|
v-if="ctaBadge"
|
|
114
114
|
>
|
|
115
115
|
<div class="flex items-center mb-3">
|
|
116
|
-
<span class="bg-lightPrimaryOpacity dark:bg-darkPrimaryOpacity text-sm font-semibold me-2 px-2.5 py-0.5 rounded "
|
|
116
|
+
<!-- <span class="bg-lightPrimaryOpacity dark:bg-darkPrimaryOpacity text-sm font-semibold me-2 px-2.5 py-0.5 rounded "
|
|
117
117
|
v-if="ctaBadge.title"
|
|
118
|
-
>
|
|
118
|
+
> -->
|
|
119
|
+
<span>
|
|
119
120
|
{{ctaBadge.title}}
|
|
120
121
|
</span>
|
|
121
122
|
<button type="button"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{ checkEmptyValues(formatDate(record[column.name]),route.meta.type) }}
|
|
22
22
|
</span>
|
|
23
23
|
<span v-else-if="column.type === 'richtext'">
|
|
24
|
-
<div v-html="protectAgainstXSS(record[column.name])"></div>
|
|
24
|
+
<div v-html="protectAgainstXSS(record[column.name])" class="allow-lists"></div>
|
|
25
25
|
</span>
|
|
26
26
|
<span v-else>
|
|
27
27
|
{{ checkEmptyValues(record[column.name],route.meta.type) }}
|
|
@@ -55,7 +55,11 @@ const props = defineProps({
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
function protectAgainstXSS(value) {
|
|
58
|
-
return sanitizeHtml(value
|
|
58
|
+
return sanitizeHtml(value, {
|
|
59
|
+
allowedAttributes: {
|
|
60
|
+
'li': [ 'data-list' ],
|
|
61
|
+
}
|
|
62
|
+
});
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
|
|
@@ -63,4 +67,22 @@ function formatDate(date) {
|
|
|
63
67
|
if (!date) return '';
|
|
64
68
|
return dayjs.utc(date).local().format(coreStore.config?.datesFormat || 'YYYY-MM-DD HH:mm:ss');
|
|
65
69
|
}
|
|
66
|
-
</script>
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<style lang="scss">
|
|
73
|
+
|
|
74
|
+
.allow-lists {
|
|
75
|
+
ol {
|
|
76
|
+
list-style-type: decimal;
|
|
77
|
+
padding-left: 1.5em;
|
|
78
|
+
|
|
79
|
+
li[data-list="bullet"] {
|
|
80
|
+
list-style-type: disc;
|
|
81
|
+
}
|
|
82
|
+
li[data-list="ordered"] {
|
|
83
|
+
list-style-type: decimal;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
</style>
|