hl-core 0.0.10-beta.86 → 0.0.10-beta.88
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/components/Layout/Header.vue +3 -1
- package/composables/index.ts +11 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<v-tooltip v-if="hasMore" :text="$dataStore.isSupport() ? `Нажатий: ${homeClickCount}` : ''" :disabled="!$dataStore.isSupport()">
|
|
6
6
|
<template #activator="{ props: tooltipProps }">
|
|
7
7
|
<v-btn v-bind="tooltipProps" variant="text" size="32" :ripple="false" class="absolute z-10" @click="onHomeClick" @mouseenter="onHomeHover">
|
|
8
|
-
<img src="
|
|
8
|
+
<img :src="faviconUrl" class="w-6 h-6" alt="home" />
|
|
9
9
|
</v-btn>
|
|
10
10
|
</template>
|
|
11
11
|
</v-tooltip>
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<script lang="ts">
|
|
32
32
|
import { MenuItem } from '../../composables/classes';
|
|
33
|
+
import faviconUrl from '../../assets/favicon.svg';
|
|
33
34
|
|
|
34
35
|
export default defineComponent({
|
|
35
36
|
props: {
|
|
@@ -129,6 +130,7 @@ export default defineComponent({
|
|
|
129
130
|
onHomeClick,
|
|
130
131
|
onHomeHover,
|
|
131
132
|
onClickOutside,
|
|
133
|
+
faviconUrl,
|
|
132
134
|
};
|
|
133
135
|
},
|
|
134
136
|
});
|
package/composables/index.ts
CHANGED
|
@@ -81,6 +81,17 @@ export const useDisplayInfo = useDisplay;
|
|
|
81
81
|
|
|
82
82
|
export const capitalize = (word: string): string => (word ? word.charAt(0).toUpperCase() + word.slice(1).toLowerCase() : word);
|
|
83
83
|
|
|
84
|
+
export const capitalizeFullName = (fullName: string): string => {
|
|
85
|
+
if (fullName) {
|
|
86
|
+
return fullName
|
|
87
|
+
.trim()
|
|
88
|
+
.split(/\s+/)
|
|
89
|
+
.map(part => part.split('-').map(capitalize).join('-'))
|
|
90
|
+
.join(' ');
|
|
91
|
+
}
|
|
92
|
+
return fullName;
|
|
93
|
+
};
|
|
94
|
+
|
|
84
95
|
const xmlParser = new XMLParser({
|
|
85
96
|
numberParseOptions: {
|
|
86
97
|
hex: false,
|