adata-ui 0.3.64 → 0.3.66
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/README.md +7 -7
- package/babel.config.js +5 -5
- package/dist/adata-ui.common.js +8632 -6049
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +8632 -6049
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +3 -3
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/dist/img/{facebook.990fd0ba.svg → facebook.797d820f.svg} +4 -4
- package/dist/img/{instagram.90311e74.svg → instagram.8a77381c.svg} +6 -6
- package/dist/img/{logo-white-desktop.0827cb20.svg → logo-white-desktop.7d0e3481.svg} +8 -8
- package/dist/img/{telegram.da3d2408.svg → telegram.be0d1008.svg} +4 -4
- package/dist/img/{tiktok.91223b77.svg → tiktok.eaeb39cb.svg} +4 -4
- package/dist/img/{up-down.de7b3a68.svg → up-down.e2b28f72.svg} +3 -3
- package/dist/img/{youtube.96e7b076.svg → youtube.125aace6.svg} +5 -5
- package/package-lock.json +26218 -26218
- package/package.json +76 -76
- package/public/index.html +17 -17
- package/public/logo.svg +4 -4
- package/src/App.vue +25 -25
- package/src/assets/_text_field.scss +224 -224
- package/src/assets/facebook.svg +4 -4
- package/src/assets/instagram.svg +6 -6
- package/src/assets/logo-desktop.svg +9 -9
- package/src/assets/logo-mobile.svg +9 -9
- package/src/assets/logo-white-desktop.svg +8 -8
- package/src/assets/style.scss +1 -1
- package/src/assets/telegram.svg +4 -4
- package/src/assets/tiktok.svg +4 -4
- package/src/assets/up-down.svg +3 -3
- package/src/assets/youtube.svg +5 -5
- package/src/components/Alert/Alert.stories.js +17 -17
- package/src/components/Alert/Alert.vue +63 -63
- package/src/components/BottomNavigationBar/ABottomNavigationBar.vue +151 -151
- package/src/components/BottomNavigationBar/BottomNavigationBar.stories.js +24 -24
- package/src/components/Button/AButton.vue +231 -231
- package/src/components/Button/Button.stories.js +23 -23
- package/src/components/Checkbox/ACheckbox.vue +114 -114
- package/src/components/Checkbox/Checkbox.stories.js +15 -15
- package/src/components/CheckboxMenu/CheckboxMenu.stories.js +23 -23
- package/src/components/CheckboxMenu/CheckboxMenu.vue +108 -108
- package/src/components/ErrorPages/BadGateway.vue +224 -224
- package/src/components/ErrorPages/Forbidden.vue +468 -468
- package/src/components/ErrorPages/InternalServerError.vue +275 -275
- package/src/components/ErrorPages/NotFound.vue +995 -995
- package/src/components/ErrorPages/Unavailable.vue +3705 -3705
- package/src/components/Footer/Footer.stories.js +20 -20
- package/src/components/Footer/Footer.vue +292 -292
- package/src/components/Header/ChildLinks.vue +122 -122
- package/src/components/Header/Header.stories.js +56 -56
- package/src/components/Header/Header.vue +1307 -1307
- package/src/components/Header/InfoHeader.vue +319 -319
- package/src/components/Header/Profile.vue +670 -670
- package/src/components/Header/ProfileMenu.vue +275 -275
- package/src/components/Header/ProfileMobile.vue +308 -308
- package/src/components/Header/ProfileOld.vue +781 -781
- package/src/components/InternalServerError/InternalServerError.stories.js +16 -16
- package/src/components/InternalServerError/InternalServerError.vue +262 -262
- package/src/components/Introduction.stories.mdx +7 -7
- package/src/components/Loader/Loader.stories.js +24 -24
- package/src/components/Loader/Loader.vue +325 -325
- package/src/components/MailTo/MailTo.stories.js +14 -14
- package/src/components/MailTo/MailTo.vue +258 -258
- package/src/components/NavIcon/ANavIcon.vue +49 -49
- package/src/components/NavIcon/NavIcon.stories.js +14 -14
- package/src/components/PasswordField/PasswordField.stories.js +16 -16
- package/src/components/PasswordField/PasswordField.vue +77 -77
- package/src/components/SearchTextField/SearchTextField.stories.js +77 -77
- package/src/components/SearchTextField/SearchTextField.vue +230 -230
- package/src/components/ServiceSlider/AServiceSlider.vue +782 -782
- package/src/components/ServiceSlider/ServiceSlider.stories.js +20 -20
- package/src/components/Table/ATable.vue +117 -117
- package/src/components/Table/Table.stories.js +15 -15
- package/src/components/TextArea/TextArea.stories.js +17 -17
- package/src/components/TextArea/TextArea.vue +116 -116
- package/src/components/TextError/TextError.stories.js +15 -15
- package/src/components/TextError/TextError.vue +57 -57
- package/src/components/TextField/TextField.stories.js +17 -17
- package/src/components/TextField/TextField.vue +107 -107
- package/src/components/index.js +54 -54
- package/src/components/newComponents/FooterNew/FooterBottom.vue +152 -151
- package/src/components/newComponents/FooterNew/FooterItem.vue +113 -113
- package/src/components/newComponents/FooterNew/FooterNew.stories.js +20 -20
- package/src/components/newComponents/FooterNew/FooterNew.vue +39 -39
- package/src/components/newComponents/FooterNew/FooterTop.vue +319 -318
- package/src/components/transitions/SlideToggle.vue +55 -55
- package/src/components/transitions/VerticalMobileToggle.vue +75 -75
- package/src/configs/icons.js +112 -112
- package/src/configs/profileDropDown.js +134 -134
- package/src/main.js +12 -12
- package/src/.DS_Store +0 -0
|
@@ -1,276 +1,276 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="profile-menu">
|
|
3
|
-
<div class="profile-menu__header">
|
|
4
|
-
<div class="tariff">
|
|
5
|
-
<div class="tariff__label">
|
|
6
|
-
Тариф
|
|
7
|
-
</div>
|
|
8
|
-
<div class="tariff__value">
|
|
9
|
-
<div class="tariff__text">
|
|
10
|
-
{{ rate || "Базовый" }}
|
|
11
|
-
</div>
|
|
12
|
-
<div class="tariff__badge">
|
|
13
|
-
Подключен
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="balance">
|
|
19
|
-
<div class="balance__wrapper">
|
|
20
|
-
<div class="balance__title">Текущий баланс:</div>
|
|
21
|
-
<div class="balance__badge">{{ balance || 0 }} ₸</div>
|
|
22
|
-
</div>
|
|
23
|
-
<a-button size="extra_sm" variant="blue_outlined" :url="links.balance[mode]">Пополнить</a-button>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div class="profile-menu__main">
|
|
28
|
-
<div class="profile-links">
|
|
29
|
-
<a :href="links.profile[mode]" onclick="`return false`" class="profile-link">
|
|
30
|
-
<div class="profile-link__icon">
|
|
31
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
-
<circle cx="12" cy="7.5" r="4.5" stroke="#2C3E50" stroke-width="2"/>
|
|
33
|
-
<path
|
|
34
|
-
d="M20 21C20 21.5523 20.4477 22 21 22C21.5523 22 22 21.5523 22 21H20ZM2 21C2 21.5523 2.44772 22 3 22C3.55228 22 4 21.5523 4 21H2ZM12 13C16.4183 13 20 16.5817 20 21H22C22 15.4772 17.5228 11 12 11V13ZM4 21C4 16.5817 7.58172 13 12 13V11C6.47715 11 2 15.4772 2 21H4Z"
|
|
35
|
-
fill="#2C3E50"/>
|
|
36
|
-
</svg>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="profile-link__text">Личный кабинет</div>
|
|
39
|
-
</a>
|
|
40
|
-
<a :href="links.tenders[mode]" onclick="`return false`" class="profile-link">
|
|
41
|
-
<div class="profile-link__icon">
|
|
42
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
43
|
-
<path
|
|
44
|
-
d="M20.083 15.2001L21.285 15.9211C21.3591 15.9655 21.4205 16.0283 21.4631 16.1035C21.5058 16.1787 21.5282 16.2636 21.5282 16.3501C21.5282 16.4365 21.5058 16.5214 21.4631 16.5966C21.4205 16.6718 21.3591 16.7347 21.285 16.7791L12.515 22.0411C12.3594 22.1345 12.1814 22.1839 12 22.1839C11.8185 22.1839 11.6405 22.1345 11.485 22.0411L2.71498 16.7791C2.64082 16.7347 2.57944 16.6718 2.53682 16.5966C2.4942 16.5214 2.4718 16.4365 2.4718 16.3501C2.4718 16.2636 2.4942 16.1787 2.53682 16.1035C2.57944 16.0283 2.64082 15.9655 2.71498 15.9211L3.91698 15.2001L12 20.0501L20.083 15.2001ZM20.083 10.5001L21.285 11.2211C21.3591 11.2655 21.4205 11.3283 21.4631 11.4035C21.5058 11.4787 21.5282 11.5636 21.5282 11.6501C21.5282 11.7365 21.5058 11.8214 21.4631 11.8966C21.4205 11.9718 21.3591 12.0347 21.285 12.0791L12 17.6501L2.71498 12.0791C2.64082 12.0347 2.57944 11.9718 2.53682 11.8966C2.4942 11.8214 2.4718 11.7365 2.4718 11.6501C2.4718 11.5636 2.4942 11.4787 2.53682 11.4035C2.57944 11.3283 2.64082 11.2655 2.71498 11.2211L3.91698 10.5001L12 15.3501L20.083 10.5001ZM12.514 1.30907L21.285 6.57107C21.3591 6.61546 21.4205 6.67832 21.4631 6.75351C21.5058 6.82869 21.5282 6.91364 21.5282 7.00007C21.5282 7.0865 21.5058 7.17145 21.4631 7.24663C21.4205 7.32182 21.3591 7.38468 21.285 7.42907L12 13.0001L2.71498 7.42907C2.64082 7.38468 2.57944 7.32182 2.53682 7.24663C2.4942 7.17145 2.4718 7.0865 2.4718 7.00007C2.4718 6.91364 2.4942 6.82869 2.53682 6.75351C2.57944 6.67832 2.64082 6.61546 2.71498 6.57107L11.485 1.30907C11.6405 1.21563 11.8185 1.16626 12 1.16626C12.1814 1.16626 12.3594 1.21563 12.515 1.30907H12.514ZM12 3.33207L5.88698 7.00007L12 10.6681L18.113 7.00007L12 3.33207Z"
|
|
45
|
-
fill="#2C3E50"/>
|
|
46
|
-
</svg>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="profile-link__text">Тендеры Шаблоны</div>
|
|
49
|
-
</a>
|
|
50
|
-
<a :href="links.work[mode]" onclick="`return false`" class="profile-link">
|
|
51
|
-
<div class="profile-link__icon">
|
|
52
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
53
|
-
<path d="M7 5V2C7 1.73478 7.10536 1.48043 7.29289 1.29289C7.48043 1.10536 7.73478 1 8 1H16C16.2652 1 16.5196 1.10536 16.7071 1.29289C16.8946 1.48043 17 1.73478 17 2V5H21C21.2652 5 21.5196 5.10536 21.7071 5.29289C21.8946 5.48043 22 5.73478 22 6V20C22 20.2652 21.8946 20.5196 21.7071 20.7071C21.5196 20.8946 21.2652 21 21 21H3C2.73478 21 2.48043 20.8946 2.29289 20.7071C2.10536 20.5196 2 20.2652 2 20V6C2 5.73478 2.10536 5.48043 2.29289 5.29289C2.48043 5.10536 2.73478 5 3 5H7ZM20 13H4V19H20V13ZM20 7H4V11H7V9H9V11H15V9H17V11H20V7ZM9 3V5H15V3H9Z" fill="#2C3E50"/>
|
|
54
|
-
</svg>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="profile-link__text">Профиль Работа</div>
|
|
57
|
-
</a>
|
|
58
|
-
<a :href="links.favourites[mode] + `${tab ? '?tab=' + tab : ''}`" onclick="`return false`" class="profile-link" target="_blank">
|
|
59
|
-
<div class="profile-link__icon">
|
|
60
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
|
-
<path d="M5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V22.143C20.0001 22.2324 19.9763 22.3202 19.9309 22.3973C19.8855 22.4743 19.8204 22.5378 19.7421 22.5811C19.6639 22.6244 19.5755 22.6459 19.4861 22.6434C19.3968 22.641 19.3097 22.6146 19.234 22.567L12 18.03L4.766 22.566C4.69037 22.6135 4.60339 22.6399 4.5141 22.6424C4.42482 22.6449 4.33649 22.6235 4.2583 22.5803C4.1801 22.5371 4.11491 22.4738 4.06948 22.3969C4.02406 22.32 4.00007 22.2323 4 22.143V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2ZM18 4H6V19.432L12 15.671L18 19.432V4Z" fill="#2C3E50"/>
|
|
62
|
-
</svg>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="profile-link__text">Избранные</div>
|
|
65
|
-
</a>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<div class="exit" @click="$emit('logout')">
|
|
69
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
70
|
-
<path d="M4 18H6V20H18V4H6V6H4V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V21C20 21.2652 19.8946 21.5196 19.7071 21.7071C19.5196 21.8946 19.2652 22 19 22H5C4.73478 22 4.48043 21.8946 4.29289 21.7071C4.10536 21.5196 4 21.2652 4 21V18ZM6 11H13V13H6V16L1 12L6 8V11Z" fill="white"/>
|
|
71
|
-
</svg>
|
|
72
|
-
<div class="exit__text">Выход</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</template>
|
|
77
|
-
|
|
78
|
-
<script>
|
|
79
|
-
export default {
|
|
80
|
-
props: {
|
|
81
|
-
mode: {
|
|
82
|
-
type: String,
|
|
83
|
-
required: true,
|
|
84
|
-
},
|
|
85
|
-
rate: {
|
|
86
|
-
type: String,
|
|
87
|
-
required: true
|
|
88
|
-
},
|
|
89
|
-
balance: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: true
|
|
92
|
-
},
|
|
93
|
-
tab: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: ""
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
data() {
|
|
99
|
-
return {
|
|
100
|
-
links: {
|
|
101
|
-
balance: {
|
|
102
|
-
'prod': 'https://adata.kz/profile?modal=show',
|
|
103
|
-
'dev': 'https://adtdev.kz/profile?modal=show',
|
|
104
|
-
'staging': 'https://adada.kz/profile?modal=show',
|
|
105
|
-
},
|
|
106
|
-
profile: {
|
|
107
|
-
'prod': 'https://adata.kz/profile',
|
|
108
|
-
'dev': 'https://adtdev.kz/profile',
|
|
109
|
-
'staging': 'https://adada.kz/profile',
|
|
110
|
-
},
|
|
111
|
-
tenders: {
|
|
112
|
-
'prod': 'https://tender.adata.kz/profile/search-profile',
|
|
113
|
-
'dev': 'https://tender.adtdev.kz/profile/search-profile',
|
|
114
|
-
'staging': 'https://tender.adada.kz/profile/search-profile',
|
|
115
|
-
},
|
|
116
|
-
work: {
|
|
117
|
-
'prod': 'https://work.adata.kz/profile/account',
|
|
118
|
-
'dev': 'https://work.adtdev.kz/profile/account' ,
|
|
119
|
-
'staging': 'https://work.adada.kz/profile/account',
|
|
120
|
-
},
|
|
121
|
-
favourites: {
|
|
122
|
-
'prod': 'https://adata.kz/favourites',
|
|
123
|
-
'dev': 'https://adtdev.kz/favourites' ,
|
|
124
|
-
'staging': 'https://adada.kz/favourites',
|
|
125
|
-
},
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
</script>
|
|
131
|
-
|
|
132
|
-
<style lang="scss">
|
|
133
|
-
.profile-menu {
|
|
134
|
-
width: 400px;
|
|
135
|
-
background: #fff;
|
|
136
|
-
box-shadow: 0 4px 8px rgba(157, 163, 172, 0.4);
|
|
137
|
-
border-radius: 2px;
|
|
138
|
-
|
|
139
|
-
&__header {
|
|
140
|
-
padding: 16px 16px 16px 32px;
|
|
141
|
-
background: rgba(189, 199, 206, 0.3);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&__main {
|
|
145
|
-
background: #fff;
|
|
146
|
-
padding: 16px;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.tariff {
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
gap: 4px;
|
|
154
|
-
margin-bottom: 16px;
|
|
155
|
-
|
|
156
|
-
&__label {
|
|
157
|
-
font-weight: 500;
|
|
158
|
-
font-size: 14px;
|
|
159
|
-
color: #71757A;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&__value {
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
gap: 16px;
|
|
166
|
-
font-weight: 600;
|
|
167
|
-
font-size: 16px;
|
|
168
|
-
color: #2C3E50;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&__badge {
|
|
172
|
-
padding: 4px;
|
|
173
|
-
background: #4CAF50;
|
|
174
|
-
border: 0.5px solid #4CAF50;
|
|
175
|
-
border-radius: 2px;
|
|
176
|
-
|
|
177
|
-
font-weight: 400;
|
|
178
|
-
font-size: 10px;
|
|
179
|
-
color: #FFFFFF;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.balance {
|
|
184
|
-
display: flex;
|
|
185
|
-
justify-content: space-between;
|
|
186
|
-
align-items: center;
|
|
187
|
-
|
|
188
|
-
&__wrapper {
|
|
189
|
-
display: flex;
|
|
190
|
-
align-items: center;
|
|
191
|
-
gap: 8px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&__title {
|
|
195
|
-
font-weight: 400;
|
|
196
|
-
font-size: 12px;
|
|
197
|
-
color: #2C3E50;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&__badge {
|
|
201
|
-
padding: 4px 10px;
|
|
202
|
-
background: #007AFF;
|
|
203
|
-
border-radius: 100px;
|
|
204
|
-
font-weight: 400;
|
|
205
|
-
font-size: 12px;
|
|
206
|
-
color: #FFFFFF;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.profile-links {
|
|
211
|
-
display: flex;
|
|
212
|
-
flex-direction: column;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.profile-link {
|
|
216
|
-
display: flex;
|
|
217
|
-
align-items: center;
|
|
218
|
-
gap: 18px;
|
|
219
|
-
padding: 10px 16px;
|
|
220
|
-
border-radius: 2px;
|
|
221
|
-
transition: .3s;
|
|
222
|
-
|
|
223
|
-
font-weight: 500;
|
|
224
|
-
font-size: 14px;
|
|
225
|
-
color: #2C3E50;
|
|
226
|
-
|
|
227
|
-
&:hover {
|
|
228
|
-
background: rgba(0, 122, 255, 0.12);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.exit {
|
|
233
|
-
display: flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
justify-content: flex-start;
|
|
236
|
-
margin-top: 16px;
|
|
237
|
-
padding-left: 16px;
|
|
238
|
-
background: #007AFF;
|
|
239
|
-
height: 40px;
|
|
240
|
-
border-radius: 0 0 2px 2px;
|
|
241
|
-
cursor: pointer;
|
|
242
|
-
gap: 10px;
|
|
243
|
-
|
|
244
|
-
font-weight: 500;
|
|
245
|
-
font-size: 14px;
|
|
246
|
-
line-height: 20px;
|
|
247
|
-
color: #fff;
|
|
248
|
-
|
|
249
|
-
&:hover {
|
|
250
|
-
background: #9da3ac;
|
|
251
|
-
color: #fff;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&:hover svg {
|
|
255
|
-
stroke: #fff;
|
|
256
|
-
background: #9da3ac;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
svg {
|
|
260
|
-
margin-right: 8px;
|
|
261
|
-
background: #007AFF;
|
|
262
|
-
fill: none !important;
|
|
263
|
-
transition: all 0s;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
&:active {
|
|
267
|
-
background: #0055bb;
|
|
268
|
-
color: #fff;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
&:active svg {
|
|
272
|
-
stroke: #fff;
|
|
273
|
-
background: #0055bb;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="profile-menu">
|
|
3
|
+
<div class="profile-menu__header">
|
|
4
|
+
<div class="tariff">
|
|
5
|
+
<div class="tariff__label">
|
|
6
|
+
Тариф
|
|
7
|
+
</div>
|
|
8
|
+
<div class="tariff__value">
|
|
9
|
+
<div class="tariff__text">
|
|
10
|
+
{{ rate || "Базовый" }}
|
|
11
|
+
</div>
|
|
12
|
+
<div class="tariff__badge">
|
|
13
|
+
Подключен
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="balance">
|
|
19
|
+
<div class="balance__wrapper">
|
|
20
|
+
<div class="balance__title">Текущий баланс:</div>
|
|
21
|
+
<div class="balance__badge">{{ balance || 0 }} ₸</div>
|
|
22
|
+
</div>
|
|
23
|
+
<a-button size="extra_sm" variant="blue_outlined" :url="links.balance[mode]">Пополнить</a-button>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="profile-menu__main">
|
|
28
|
+
<div class="profile-links">
|
|
29
|
+
<a :href="links.profile[mode]" onclick="`return false`" class="profile-link">
|
|
30
|
+
<div class="profile-link__icon">
|
|
31
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
+
<circle cx="12" cy="7.5" r="4.5" stroke="#2C3E50" stroke-width="2"/>
|
|
33
|
+
<path
|
|
34
|
+
d="M20 21C20 21.5523 20.4477 22 21 22C21.5523 22 22 21.5523 22 21H20ZM2 21C2 21.5523 2.44772 22 3 22C3.55228 22 4 21.5523 4 21H2ZM12 13C16.4183 13 20 16.5817 20 21H22C22 15.4772 17.5228 11 12 11V13ZM4 21C4 16.5817 7.58172 13 12 13V11C6.47715 11 2 15.4772 2 21H4Z"
|
|
35
|
+
fill="#2C3E50"/>
|
|
36
|
+
</svg>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="profile-link__text">Личный кабинет</div>
|
|
39
|
+
</a>
|
|
40
|
+
<a :href="links.tenders[mode]" onclick="`return false`" class="profile-link">
|
|
41
|
+
<div class="profile-link__icon">
|
|
42
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
43
|
+
<path
|
|
44
|
+
d="M20.083 15.2001L21.285 15.9211C21.3591 15.9655 21.4205 16.0283 21.4631 16.1035C21.5058 16.1787 21.5282 16.2636 21.5282 16.3501C21.5282 16.4365 21.5058 16.5214 21.4631 16.5966C21.4205 16.6718 21.3591 16.7347 21.285 16.7791L12.515 22.0411C12.3594 22.1345 12.1814 22.1839 12 22.1839C11.8185 22.1839 11.6405 22.1345 11.485 22.0411L2.71498 16.7791C2.64082 16.7347 2.57944 16.6718 2.53682 16.5966C2.4942 16.5214 2.4718 16.4365 2.4718 16.3501C2.4718 16.2636 2.4942 16.1787 2.53682 16.1035C2.57944 16.0283 2.64082 15.9655 2.71498 15.9211L3.91698 15.2001L12 20.0501L20.083 15.2001ZM20.083 10.5001L21.285 11.2211C21.3591 11.2655 21.4205 11.3283 21.4631 11.4035C21.5058 11.4787 21.5282 11.5636 21.5282 11.6501C21.5282 11.7365 21.5058 11.8214 21.4631 11.8966C21.4205 11.9718 21.3591 12.0347 21.285 12.0791L12 17.6501L2.71498 12.0791C2.64082 12.0347 2.57944 11.9718 2.53682 11.8966C2.4942 11.8214 2.4718 11.7365 2.4718 11.6501C2.4718 11.5636 2.4942 11.4787 2.53682 11.4035C2.57944 11.3283 2.64082 11.2655 2.71498 11.2211L3.91698 10.5001L12 15.3501L20.083 10.5001ZM12.514 1.30907L21.285 6.57107C21.3591 6.61546 21.4205 6.67832 21.4631 6.75351C21.5058 6.82869 21.5282 6.91364 21.5282 7.00007C21.5282 7.0865 21.5058 7.17145 21.4631 7.24663C21.4205 7.32182 21.3591 7.38468 21.285 7.42907L12 13.0001L2.71498 7.42907C2.64082 7.38468 2.57944 7.32182 2.53682 7.24663C2.4942 7.17145 2.4718 7.0865 2.4718 7.00007C2.4718 6.91364 2.4942 6.82869 2.53682 6.75351C2.57944 6.67832 2.64082 6.61546 2.71498 6.57107L11.485 1.30907C11.6405 1.21563 11.8185 1.16626 12 1.16626C12.1814 1.16626 12.3594 1.21563 12.515 1.30907H12.514ZM12 3.33207L5.88698 7.00007L12 10.6681L18.113 7.00007L12 3.33207Z"
|
|
45
|
+
fill="#2C3E50"/>
|
|
46
|
+
</svg>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="profile-link__text">Тендеры Шаблоны</div>
|
|
49
|
+
</a>
|
|
50
|
+
<a :href="links.work[mode]" onclick="`return false`" class="profile-link">
|
|
51
|
+
<div class="profile-link__icon">
|
|
52
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
53
|
+
<path d="M7 5V2C7 1.73478 7.10536 1.48043 7.29289 1.29289C7.48043 1.10536 7.73478 1 8 1H16C16.2652 1 16.5196 1.10536 16.7071 1.29289C16.8946 1.48043 17 1.73478 17 2V5H21C21.2652 5 21.5196 5.10536 21.7071 5.29289C21.8946 5.48043 22 5.73478 22 6V20C22 20.2652 21.8946 20.5196 21.7071 20.7071C21.5196 20.8946 21.2652 21 21 21H3C2.73478 21 2.48043 20.8946 2.29289 20.7071C2.10536 20.5196 2 20.2652 2 20V6C2 5.73478 2.10536 5.48043 2.29289 5.29289C2.48043 5.10536 2.73478 5 3 5H7ZM20 13H4V19H20V13ZM20 7H4V11H7V9H9V11H15V9H17V11H20V7ZM9 3V5H15V3H9Z" fill="#2C3E50"/>
|
|
54
|
+
</svg>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="profile-link__text">Профиль Работа</div>
|
|
57
|
+
</a>
|
|
58
|
+
<a :href="links.favourites[mode] + `${tab ? '?tab=' + tab : ''}`" onclick="`return false`" class="profile-link" target="_blank">
|
|
59
|
+
<div class="profile-link__icon">
|
|
60
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
|
+
<path d="M5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V22.143C20.0001 22.2324 19.9763 22.3202 19.9309 22.3973C19.8855 22.4743 19.8204 22.5378 19.7421 22.5811C19.6639 22.6244 19.5755 22.6459 19.4861 22.6434C19.3968 22.641 19.3097 22.6146 19.234 22.567L12 18.03L4.766 22.566C4.69037 22.6135 4.60339 22.6399 4.5141 22.6424C4.42482 22.6449 4.33649 22.6235 4.2583 22.5803C4.1801 22.5371 4.11491 22.4738 4.06948 22.3969C4.02406 22.32 4.00007 22.2323 4 22.143V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2ZM18 4H6V19.432L12 15.671L18 19.432V4Z" fill="#2C3E50"/>
|
|
62
|
+
</svg>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="profile-link__text">Избранные</div>
|
|
65
|
+
</a>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div class="exit" @click="$emit('logout')">
|
|
69
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
70
|
+
<path d="M4 18H6V20H18V4H6V6H4V3C4 2.73478 4.10536 2.48043 4.29289 2.29289C4.48043 2.10536 4.73478 2 5 2H19C19.2652 2 19.5196 2.10536 19.7071 2.29289C19.8946 2.48043 20 2.73478 20 3V21C20 21.2652 19.8946 21.5196 19.7071 21.7071C19.5196 21.8946 19.2652 22 19 22H5C4.73478 22 4.48043 21.8946 4.29289 21.7071C4.10536 21.5196 4 21.2652 4 21V18ZM6 11H13V13H6V16L1 12L6 8V11Z" fill="white"/>
|
|
71
|
+
</svg>
|
|
72
|
+
<div class="exit__text">Выход</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script>
|
|
79
|
+
export default {
|
|
80
|
+
props: {
|
|
81
|
+
mode: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
rate: {
|
|
86
|
+
type: String,
|
|
87
|
+
required: true
|
|
88
|
+
},
|
|
89
|
+
balance: {
|
|
90
|
+
type: String,
|
|
91
|
+
required: true
|
|
92
|
+
},
|
|
93
|
+
tab: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: ""
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
data() {
|
|
99
|
+
return {
|
|
100
|
+
links: {
|
|
101
|
+
balance: {
|
|
102
|
+
'prod': 'https://adata.kz/profile?modal=show',
|
|
103
|
+
'dev': 'https://adtdev.kz/profile?modal=show',
|
|
104
|
+
'staging': 'https://adada.kz/profile?modal=show',
|
|
105
|
+
},
|
|
106
|
+
profile: {
|
|
107
|
+
'prod': 'https://adata.kz/profile',
|
|
108
|
+
'dev': 'https://adtdev.kz/profile',
|
|
109
|
+
'staging': 'https://adada.kz/profile',
|
|
110
|
+
},
|
|
111
|
+
tenders: {
|
|
112
|
+
'prod': 'https://tender.adata.kz/profile/search-profile',
|
|
113
|
+
'dev': 'https://tender.adtdev.kz/profile/search-profile',
|
|
114
|
+
'staging': 'https://tender.adada.kz/profile/search-profile',
|
|
115
|
+
},
|
|
116
|
+
work: {
|
|
117
|
+
'prod': 'https://work.adata.kz/profile/account',
|
|
118
|
+
'dev': 'https://work.adtdev.kz/profile/account' ,
|
|
119
|
+
'staging': 'https://work.adada.kz/profile/account',
|
|
120
|
+
},
|
|
121
|
+
favourites: {
|
|
122
|
+
'prod': 'https://adata.kz/favourites',
|
|
123
|
+
'dev': 'https://adtdev.kz/favourites' ,
|
|
124
|
+
'staging': 'https://adada.kz/favourites',
|
|
125
|
+
},
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<style lang="scss">
|
|
133
|
+
.profile-menu {
|
|
134
|
+
width: 400px;
|
|
135
|
+
background: #fff;
|
|
136
|
+
box-shadow: 0 4px 8px rgba(157, 163, 172, 0.4);
|
|
137
|
+
border-radius: 2px;
|
|
138
|
+
|
|
139
|
+
&__header {
|
|
140
|
+
padding: 16px 16px 16px 32px;
|
|
141
|
+
background: rgba(189, 199, 206, 0.3);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__main {
|
|
145
|
+
background: #fff;
|
|
146
|
+
padding: 16px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.tariff {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: 4px;
|
|
154
|
+
margin-bottom: 16px;
|
|
155
|
+
|
|
156
|
+
&__label {
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
color: #71757A;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&__value {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 16px;
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
font-size: 16px;
|
|
168
|
+
color: #2C3E50;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__badge {
|
|
172
|
+
padding: 4px;
|
|
173
|
+
background: #4CAF50;
|
|
174
|
+
border: 0.5px solid #4CAF50;
|
|
175
|
+
border-radius: 2px;
|
|
176
|
+
|
|
177
|
+
font-weight: 400;
|
|
178
|
+
font-size: 10px;
|
|
179
|
+
color: #FFFFFF;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.balance {
|
|
184
|
+
display: flex;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
align-items: center;
|
|
187
|
+
|
|
188
|
+
&__wrapper {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
gap: 8px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&__title {
|
|
195
|
+
font-weight: 400;
|
|
196
|
+
font-size: 12px;
|
|
197
|
+
color: #2C3E50;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&__badge {
|
|
201
|
+
padding: 4px 10px;
|
|
202
|
+
background: #007AFF;
|
|
203
|
+
border-radius: 100px;
|
|
204
|
+
font-weight: 400;
|
|
205
|
+
font-size: 12px;
|
|
206
|
+
color: #FFFFFF;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.profile-links {
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.profile-link {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 18px;
|
|
219
|
+
padding: 10px 16px;
|
|
220
|
+
border-radius: 2px;
|
|
221
|
+
transition: .3s;
|
|
222
|
+
|
|
223
|
+
font-weight: 500;
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
color: #2C3E50;
|
|
226
|
+
|
|
227
|
+
&:hover {
|
|
228
|
+
background: rgba(0, 122, 255, 0.12);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.exit {
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
justify-content: flex-start;
|
|
236
|
+
margin-top: 16px;
|
|
237
|
+
padding-left: 16px;
|
|
238
|
+
background: #007AFF;
|
|
239
|
+
height: 40px;
|
|
240
|
+
border-radius: 0 0 2px 2px;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
gap: 10px;
|
|
243
|
+
|
|
244
|
+
font-weight: 500;
|
|
245
|
+
font-size: 14px;
|
|
246
|
+
line-height: 20px;
|
|
247
|
+
color: #fff;
|
|
248
|
+
|
|
249
|
+
&:hover {
|
|
250
|
+
background: #9da3ac;
|
|
251
|
+
color: #fff;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&:hover svg {
|
|
255
|
+
stroke: #fff;
|
|
256
|
+
background: #9da3ac;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
svg {
|
|
260
|
+
margin-right: 8px;
|
|
261
|
+
background: #007AFF;
|
|
262
|
+
fill: none !important;
|
|
263
|
+
transition: all 0s;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&:active {
|
|
267
|
+
background: #0055bb;
|
|
268
|
+
color: #fff;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&:active svg {
|
|
272
|
+
stroke: #fff;
|
|
273
|
+
background: #0055bb;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
276
|
</style>
|