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.
@@ -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="~/assets/favicon.svg" class="w-6 h-6" alt="home" />
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
  });
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.86",
3
+ "version": "0.0.10-beta.88",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",