itube-specs 0.0.528 → 0.0.531

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,20 @@
1
+ <template>
2
+ <div class="s-auth-icon">
3
+ <SIcon
4
+ class="s-auth-icon__icon"
5
+ :name="icon"
6
+ size="24"
7
+ />
8
+ </div>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ const props = withDefaults(defineProps<{
13
+ icon?: string
14
+ }>(), {
15
+ icon: 'user-filled'
16
+ })
17
+ </script>
18
+
19
+ <style scoped lang="scss">
20
+ </style>
@@ -3,11 +3,8 @@
3
3
  class="s-auth-login"
4
4
  :class="{'_loading': loading}"
5
5
  >
6
- <SIcon
7
- class="s-auth-login__icon"
8
- name="user-circle"
9
- size="40"
10
- />
6
+
7
+ <SAuthIcon class="s-auth-login__icon" />
11
8
 
12
9
  <SInput
13
10
  v-model="form.username"
@@ -3,11 +3,8 @@
3
3
  class="s-auth-recovery"
4
4
  :class="{'_loading': loading}"
5
5
  >
6
- <SIcon
7
- class="s-auth-recovery__icon"
8
- name="envelope-open"
9
- size="40"
10
- />
6
+
7
+ <SAuthIcon class="s-auth-recovery__icon" />
11
8
  <p class="s-auth-recovery__text">{{ t('auth.recovery_text')}}</p>
12
9
  <SInput
13
10
  v-model="form.email"
@@ -4,15 +4,12 @@
4
4
  class="s-auth-register"
5
5
  :class="{'_loading': loading}"
6
6
  >
7
- <SIcon
8
- class="s-auth-register__icon"
9
- name="user-circle"
10
- size="40"
11
- />
7
+ <SAuthIcon class="s-auth-register__icon" />
12
8
  <p
13
9
  v-if="additionalText"
14
10
  class="s-auth-register__text"
15
- >{{ t(additionalText) }}</p>
11
+ >{{ t(additionalText) }}
12
+ </p>
16
13
  <SInput
17
14
  v-model="form.username"
18
15
  :label="t('auth.username')"
@@ -45,13 +42,15 @@
45
42
  @click="submit"
46
43
  >{{ t('auth.sign_up') }}
47
44
  </SButton>
48
- <SButton
49
- wide
50
- size="l"
51
- theme="secondary"
52
- @click="onLoginClick"
53
- >{{ t('auth.log_in') }}
54
- </SButton>
45
+ <p class="s-auth-register__login">
46
+ {{ t('login_text') }}
47
+ <button
48
+ class="s-auth-register__login-button"
49
+ type="button"
50
+ @click="onLoginClick">
51
+ {{ t('auth.log_in') }}
52
+ </button>
53
+ </p>
55
54
  </div>
56
55
 
57
56
  <p class="s-auth-register__agreement">{{ t('auth.agree_begin') }}
@@ -59,8 +58,9 @@
59
58
  class="s-auth-register__agreement-link"
60
59
  to="/terms"
61
60
  target="_blank"
62
- >{{ t('auth.agree_terms')}}
63
- </NuxtLink>{{ t('auth.agree_and')}}
61
+ >{{ t('auth.agree_terms') }}
62
+ </NuxtLink>
63
+ {{ t('auth.agree_and') }}
64
64
  <NuxtLink
65
65
  class="s-auth-register__agreement-link"
66
66
  to="/policy"
@@ -145,7 +145,7 @@ async function submit() {
145
145
  loading.value = true;
146
146
 
147
147
  // Уникальное действие для каждой формы
148
- // здесь 'register', в других формах — 'password_reset' или 'contact_form'
148
+ // здесь 'register', в других формах — 'password_reset' или 'contact_form'
149
149
  form.value.token = await getRecaptchaToken('register');
150
150
 
151
151
  await useUser(AuthorizationApiService).register(form.value);
@@ -91,27 +91,29 @@
91
91
  <SLink
92
92
  wide
93
93
  class="s-pagination__prev"
94
+ theme="primary"
94
95
  :to="linkTo(previousValue)"
95
96
  :class="{'--disabled': activeNumber <= 1}"
96
97
  >
97
98
  <SIcon
98
99
  v-if="arrowIcon"
99
- name="arrow-left"
100
- size="24"
100
+ name="angle-left"
101
+ size="16"
101
102
  />
102
103
  {{ t('previous' )}}
103
104
  </SLink>
104
105
  <SLink
105
106
  wide
106
107
  class="s-pagination__next"
108
+ theme="primary"
107
109
  :class="{'--disabled': activeNumber >= length}"
108
110
  :to="linkTo(nextValue)"
109
111
  >
110
112
  {{ t('next') }}
111
113
  <SIcon
112
114
  v-if="arrowIcon"
113
- name="arrow-right"
114
- size="24"
115
+ name="angle-right"
116
+ size="16"
115
117
  />
116
118
  </SLink>
117
119
  </nav>
@@ -3,7 +3,11 @@
3
3
  <h1 v-if="titleTag === 'h1'" class="s-videos-title__title _title" v-html="title"/>
4
4
  <h2 v-else-if="titleTag === 'h2'" class="s-videos-title__title _title" v-html="title"/>
5
5
  <h3 v-else-if="titleTag === 'h3'" class="s-videos-title__title _title" v-html="title"/>
6
- <SCount v-if="count" class="s-videos-title__count">{{ count }}</SCount>
6
+ <SCount
7
+ v-if="count"
8
+ class="s-videos-title__count"
9
+ :icon="icon"
10
+ >{{ count }}</SCount>
7
11
  </div>
8
12
  </template>
9
13
 
@@ -12,6 +16,7 @@ withDefaults(defineProps<{
12
16
  count?: number
13
17
  titleTag?: string
14
18
  title: string
19
+ icon?: string
15
20
  }>(), {
16
21
  titleTag: 'h1'
17
22
  })
@@ -1,11 +1,16 @@
1
1
  <template>
2
2
  <span
3
3
  class="s-count"
4
- ><slot/>
4
+ >
5
+ <SIcon v-if="icon" :name="icon" size="16" />
6
+ <slot/>
5
7
  </span>
6
8
  </template>
7
9
 
8
10
  <script setup lang="ts">
11
+ defineProps<{
12
+ icon?: string
13
+ }>()
9
14
  </script>
10
15
 
11
16
  <style scoped lang="scss">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.528",
4
+ "version": "0.0.531",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {