adminforth 1.2.78 → 1.2.79
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/dist/modules/styles.js +3 -3
- package/modules/styles.ts +3 -3
- package/package.json +1 -1
- package/spa/src/App.vue +9 -6
package/dist/modules/styles.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const styles = () => ({
|
|
2
2
|
colors: {
|
|
3
3
|
lightHtml: "#FFFFFF", // main background
|
|
4
|
-
lightPrimary: "#
|
|
5
|
-
lightPrimaryOpacity: "alias:lightPrimary opacity:0.
|
|
4
|
+
lightPrimary: "#1a56db", // primary color
|
|
5
|
+
lightPrimaryOpacity: "alias:lightPrimary opacity:0.05", // primary color opacity
|
|
6
6
|
lightNavbar: "#FFFFFF", // navbar background
|
|
7
7
|
lightNavbarBorder: "rgb(229 231 235)", // border
|
|
8
8
|
lightNavbarText: "#111827", // navbar text
|
|
@@ -50,7 +50,7 @@ export const styles = () => ({
|
|
|
50
50
|
lightButtonsIcon: "#333333", // button icon
|
|
51
51
|
// colors for dark theme
|
|
52
52
|
darkHtml: "#111827",
|
|
53
|
-
darkPrimary: "#
|
|
53
|
+
darkPrimary: "#1c64f2", // primary color
|
|
54
54
|
darkPrimaryOpacity: "alias:darkPrimary opacity:0.1", // primary color opacity
|
|
55
55
|
darkNavbar: "#111827",
|
|
56
56
|
darkNavbarBorder: "#e5e7eb",
|
package/modules/styles.ts
CHANGED
|
@@ -4,8 +4,8 @@ export const styles = () => ({
|
|
|
4
4
|
colors: {
|
|
5
5
|
lightHtml: "#FFFFFF", // main background
|
|
6
6
|
|
|
7
|
-
lightPrimary: "#
|
|
8
|
-
lightPrimaryOpacity: "alias:lightPrimary opacity:0.
|
|
7
|
+
lightPrimary: "#1a56db", // primary color
|
|
8
|
+
lightPrimaryOpacity: "alias:lightPrimary opacity:0.05", // primary color opacity
|
|
9
9
|
|
|
10
10
|
lightNavbar: "#FFFFFF", // navbar background
|
|
11
11
|
lightNavbarBorder: "rgb(229 231 235)", // border
|
|
@@ -62,7 +62,7 @@ export const styles = () => ({
|
|
|
62
62
|
// colors for dark theme
|
|
63
63
|
darkHtml: "#111827",
|
|
64
64
|
|
|
65
|
-
darkPrimary: "#
|
|
65
|
+
darkPrimary: "#1c64f2", // primary color
|
|
66
66
|
darkPrimaryOpacity: "alias:darkPrimary opacity:0.1", // primary color opacity
|
|
67
67
|
|
|
68
68
|
darkNavbar: "#111827",
|
package/package.json
CHANGED
package/spa/src/App.vue
CHANGED
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
v-if="ctaBadge"
|
|
112
112
|
>
|
|
113
113
|
<div class="flex items-center mb-3">
|
|
114
|
-
<span class="bg-
|
|
114
|
+
<span class="bg-lightPrimaryOpacity dark:bg-darkPrimaryOpacity text-lightNavbarText dark:text-darkNavbarPrimary text-sm font-semibold me-2 px-2.5 py-0.5 rounded "
|
|
115
115
|
v-if="ctaBadge.title"
|
|
116
116
|
>
|
|
117
117
|
{{ctaBadge.title}}
|
|
118
118
|
</span>
|
|
119
119
|
<button type="button"
|
|
120
|
-
class="ms-auto -mx-1.5 -my-1.5 bg-
|
|
120
|
+
class="ms-auto -mx-1.5 -my-1.5 bg-lightPrimaryOpacity dark:bg-darkPrimaryOpacity inline-flex justify-center items-center w-6 h-6 text-lightNavbarText dark:text-darkNavbarText rounded-lg focus:ring-2 focus:ring-blue-400 p-1 hover:bg-blue-200 dark:bg-blue-900 dark:text-blue-400 dark:hover:bg-blue-800"
|
|
121
121
|
data-dismiss-target="#dropdown-cta" aria-label="Close"
|
|
122
122
|
v-if="ctaBadge?.closable" @click="closeCTA"
|
|
123
123
|
>
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
</svg>
|
|
128
128
|
</button>
|
|
129
129
|
</div>
|
|
130
|
-
<p class="mb-3 text-sm fill-
|
|
131
|
-
<p class="mb-3 text-sm fill-
|
|
130
|
+
<p class="mb-3 text-sm fill-lightNavbarText dark:fill-darkPrimary text-lightNavbarText dark:text-darkNavbarPrimary" v-if="ctaBadge.html" v-html="ctaBadge.html"></p>
|
|
131
|
+
<p class="mb-3 text-sm fill-lightNavbarText dark:fill-darkPrimary text-lightNavbarText dark:text-darkNavbarPrimary" v-else>
|
|
132
132
|
{{ ctaBadge.text }}
|
|
133
133
|
</p>
|
|
134
134
|
<!-- <a class="text-sm text-blue-800 underline font-medium hover:text-blue-900 dark:text-blue-400 dark:hover:text-blue-300" href="#">Turn new navigation off</a> -->
|
|
@@ -342,8 +342,11 @@ onBeforeMount(()=>{
|
|
|
342
342
|
|
|
343
343
|
const ctaBadge = computed(() => {
|
|
344
344
|
const badge = coreStore.config?.announcementBadge;
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
if (!badge) {
|
|
346
|
+
return null;
|
|
347
|
+
}
|
|
348
|
+
const hash = badge.closable ? JSON.stringify(badge).split('').reduce((a,b)=>{a=((a<<5)-a)+b.charCodeAt(0);return a&a},0) : '';
|
|
349
|
+
if (badge.closable && window.localStorage.getItem(`ctaBadge-${hash}`)) {
|
|
347
350
|
return null;
|
|
348
351
|
}
|
|
349
352
|
return {...badge, hash};
|