itube-specs 0.0.676 → 0.0.678

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.
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div class="s-section-title">
3
+ <h1 v-if="titleTag === 'h1'" class="s-section-title__title _title">{{ title }}</h1>
4
+ <h2 v-else-if="titleTag === 'h2'" class="s-section-title__title _title">{{ title }}</h2>
5
+ <h3 v-else-if="titleTag === 'h3'" class="s-section-title__title _title">{{ title }}</h3>
6
+ <SCount
7
+ v-if="count"
8
+ class="s-section-title__count"
9
+ :icon="icon"
10
+ >{{ count }}</SCount>
11
+ </div>
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ withDefaults(defineProps<{
16
+ count?: string | number
17
+ titleTag?: string
18
+ title: string
19
+ icon?: string
20
+ }>(), {
21
+ titleTag: 'h1'
22
+ })
23
+ </script>
24
+
25
+ <style scoped lang="scss">
26
+ </style>
@@ -47,8 +47,8 @@ export const useUser = (apiService) => {
47
47
 
48
48
  formData.append('config', config);
49
49
 
50
- if (form.avatar) {
51
- formData.append('avatar', form.avatar);
50
+ if (form.avatar && (form.avatar as unknown) instanceof Blob) {
51
+ formData.append('avatar', form.avatar as unknown as Blob, 'avatar.jpg');
52
52
  }
53
53
 
54
54
  await apiService.postProfile(formData);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.676",
4
+ "version": "0.0.678",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -1,26 +0,0 @@
1
- <template>
2
- <div class="s-videos-title">
3
- <h1 v-if="titleTag === 'h1'" class="s-videos-title__title _title" v-html="title"/>
4
- <h2 v-else-if="titleTag === 'h2'" class="s-videos-title__title _title" v-html="title"/>
5
- <h3 v-else-if="titleTag === 'h3'" class="s-videos-title__title _title" v-html="title"/>
6
- <SCount
7
- v-if="count"
8
- class="s-videos-title__count"
9
- :icon="icon"
10
- >{{ count }}</SCount>
11
- </div>
12
- </template>
13
-
14
- <script setup lang="ts">
15
- withDefaults(defineProps<{
16
- count?: string | number
17
- titleTag?: string
18
- title: string
19
- icon?: string
20
- }>(), {
21
- titleTag: 'h1'
22
- })
23
- </script>
24
-
25
- <style scoped lang="scss">
26
- </style>