adata-ui 0.1.42 → 0.1.45
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/dist/adata-ui.common.js +137 -31
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +137 -31
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +2 -2
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/dist/img/mail.45723285.png +0 -0
- package/package.json +1 -1
- package/src/assets/images/mail.png +0 -0
- package/src/components/Button/AButton.vue +2 -0
- package/src/components/Header/Profile.vue +9 -9
- package/src/components/MailTo/MailTo.stories.js +14 -0
- package/src/components/MailTo/MailTo.vue +66 -0
- package/src/components/TextField/TextField.vue +0 -1
- package/src/components/index.js +19 -17
- package/src/configs/profileDropDown.js +33 -11
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -72,6 +72,7 @@ export default {
|
|
|
72
72
|
border: none;
|
|
73
73
|
border-radius: 2px;
|
|
74
74
|
font-size: 14px;
|
|
75
|
+
font-weight: 500;
|
|
75
76
|
|
|
76
77
|
@media screen and (max-width: 560px) {
|
|
77
78
|
width: 100%;
|
|
@@ -183,6 +184,7 @@ export default {
|
|
|
183
184
|
background: #0055BB;
|
|
184
185
|
color: #fff;
|
|
185
186
|
}
|
|
187
|
+
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
&_blue {
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
<div v-for="(elem, index) in listDropDown" :key="index">
|
|
51
51
|
<div :class="elem.link ? 'profile-menu__balance-link': 'profile-menu__links'"
|
|
52
52
|
class="gray-text"
|
|
53
|
-
v-if="elem
|
|
54
|
-
@click="handleClick(elem
|
|
53
|
+
v-if="elem[mode]"
|
|
54
|
+
@click="handleClick(elem[mode], elem.name)"
|
|
55
55
|
>
|
|
56
56
|
<div>
|
|
57
57
|
{{ elem.name }}
|
|
58
58
|
</div>
|
|
59
59
|
<span
|
|
60
60
|
v-if="elem.link"
|
|
61
|
-
@click="showModal(elem
|
|
61
|
+
@click="showModal(elem[mode], elem.name)"
|
|
62
62
|
class="profile-menu__balance"
|
|
63
63
|
>
|
|
64
64
|
{{ elem.link }}
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
<div
|
|
80
80
|
class="profile-menu__item__child"
|
|
81
81
|
:key="idx + 'link'"
|
|
82
|
-
v-if="child
|
|
83
|
-
@click="handleClick(child
|
|
82
|
+
v-if="child[mode]"
|
|
83
|
+
@click="handleClick(child[mode], child.name)"
|
|
84
84
|
>
|
|
85
85
|
<span>
|
|
86
86
|
<svg width="4" height="4" viewBox="0 0 4 4" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
<div class="profile-menu-mobile__items" v-if="listDropDown.length > 0">
|
|
123
123
|
<div v-for="(elem, index) in listDropDown" :key="index" class="bb">
|
|
124
124
|
<div
|
|
125
|
-
@click="handleClick(elem
|
|
126
|
-
v-if="elem
|
|
125
|
+
@click="handleClick(elem[mode], elem.name)"
|
|
126
|
+
v-if="elem[mode]"
|
|
127
127
|
:class="elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links'"
|
|
128
128
|
>
|
|
129
129
|
<div v-if="!elem.link" class="button-inner">
|
|
@@ -201,8 +201,8 @@
|
|
|
201
201
|
<div class="profile-menu-mobile__inner">
|
|
202
202
|
<div class="profile-menu-mobile__items" v-if="chosenElem.children.length > 0">
|
|
203
203
|
<div v-for="(elem, index) in chosenElem.children" :key="index" class="bb">
|
|
204
|
-
<div @click="handleClick(elem
|
|
205
|
-
v-if="elem
|
|
204
|
+
<div @click="handleClick(elem[mode], elem.name)"
|
|
205
|
+
v-if="elem[mode]"
|
|
206
206
|
:class="elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links'">
|
|
207
207
|
<div class="button-inner">
|
|
208
208
|
<div>{{ elem.name }}</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import MailTo from "./MailTo.vue";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "MailTo",
|
|
5
|
+
component: MailTo,
|
|
6
|
+
template: "<mail-to></mail-to>",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Template = () => ({
|
|
10
|
+
components: { MailTo },
|
|
11
|
+
template: "<mail-to></mail-to>",
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const AMailTo = Template.bind({});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="mail">
|
|
3
|
+
<h2 class="mail__title">Интересует больше данных?</h2>
|
|
4
|
+
<p class="mail__subtitle">
|
|
5
|
+
Отправьте ваш запрос на
|
|
6
|
+
<a class="mail__link" href="mailto:info@adata.kz">info@adata.kz</a>
|
|
7
|
+
</p>
|
|
8
|
+
<div class="mail__img-wrapper">
|
|
9
|
+
<img
|
|
10
|
+
class="mail__img"
|
|
11
|
+
:src="require('../../assets/images/mail.png')"
|
|
12
|
+
alt="mail"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
<p class="mail__text">
|
|
16
|
+
Мы обязательно ответим вам <br />
|
|
17
|
+
в кратчайшие сроки.
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
name: "MailTo",
|
|
25
|
+
};
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style lang="scss" scoped>
|
|
29
|
+
.mail {
|
|
30
|
+
padding: 25px 0px 50px;
|
|
31
|
+
&__title {
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
line-height: 27px;
|
|
34
|
+
color: #2c3e50;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
text-align: center;
|
|
37
|
+
margin-bottom: 16px;
|
|
38
|
+
}
|
|
39
|
+
&__subtitle {
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
line-height: 22px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
color: #2c3e50;
|
|
44
|
+
}
|
|
45
|
+
&__link {
|
|
46
|
+
color: #007aff;
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
}
|
|
49
|
+
&__img-wrapper {
|
|
50
|
+
padding: 24px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
&__img {
|
|
55
|
+
width: 120px;
|
|
56
|
+
height: 120px;
|
|
57
|
+
object-fit: contain;
|
|
58
|
+
}
|
|
59
|
+
&__text {
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
line-height: 22px;
|
|
62
|
+
text-align: center;
|
|
63
|
+
color: #2c3e50;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
</style>
|
package/src/components/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import Vue from
|
|
2
|
-
import AButton from
|
|
3
|
-
import ATextField from
|
|
4
|
-
import APasswordField from
|
|
5
|
-
import AAlert from
|
|
6
|
-
import AHeader from
|
|
7
|
-
import AFooter from
|
|
8
|
-
import ASearchTextField from
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import AButton from "./Button/AButton";
|
|
3
|
+
import ATextField from "./TextField/TextField";
|
|
4
|
+
import APasswordField from "./PasswordField/PasswordField";
|
|
5
|
+
import AAlert from "./Alert/Alert";
|
|
6
|
+
import AHeader from "./Header/Header";
|
|
7
|
+
import AFooter from "./Footer/Footer";
|
|
8
|
+
import ASearchTextField from "./SearchTextField/SearchTextField";
|
|
9
|
+
import AMailTo from "./MailTo/MailTo";
|
|
9
10
|
|
|
10
11
|
const Components = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
AButton,
|
|
13
|
+
ATextField,
|
|
14
|
+
APasswordField,
|
|
15
|
+
AAlert,
|
|
16
|
+
AHeader,
|
|
17
|
+
AFooter,
|
|
18
|
+
ASearchTextField,
|
|
19
|
+
AMailTo,
|
|
18
20
|
};
|
|
19
21
|
|
|
20
|
-
Object.keys(Components).forEach(name => {
|
|
21
|
-
|
|
22
|
+
Object.keys(Components).forEach((name) => {
|
|
23
|
+
Vue.component(name, Components[name]);
|
|
22
24
|
});
|
|
23
25
|
|
|
24
26
|
export default Components;
|
|
@@ -2,21 +2,27 @@ export const profileDropDown = [
|
|
|
2
2
|
{
|
|
3
3
|
id: 1,
|
|
4
4
|
name: "Общие настройки",
|
|
5
|
-
|
|
5
|
+
dev: "https://adtdev.kz/profile?tab=general",
|
|
6
|
+
staging: "https://adada.kz/profile?tab=general",
|
|
7
|
+
prod: "https://adata.kz/profile?tab=general",
|
|
6
8
|
disabled: false,
|
|
7
9
|
withoutArray: true
|
|
8
10
|
},
|
|
9
11
|
{
|
|
10
12
|
id: 2,
|
|
11
13
|
name: "Увеличить лимит запросов",
|
|
12
|
-
|
|
14
|
+
dev: "https://adtdev.kz/profile?tab=tariffs",
|
|
15
|
+
staging: "https://adada.kz/profile?tab=tariffs",
|
|
16
|
+
prod: "https://adata.kz/profile?tab=tariffs",
|
|
13
17
|
disabled: false,
|
|
14
18
|
withoutArray: true
|
|
15
19
|
},
|
|
16
20
|
{
|
|
17
21
|
id: 3,
|
|
18
22
|
name: "Текущий баланс: 0 ₸",
|
|
19
|
-
|
|
23
|
+
dev: "https://adtdev.kz/profile?tab=tariffs",
|
|
24
|
+
staging: "https://adada.kz/profile?tab=tariffs",
|
|
25
|
+
prod: "https://adata.kz/profile?tab=tariffs",
|
|
20
26
|
link: "Пополнить",
|
|
21
27
|
disabled: true,
|
|
22
28
|
withoutArray: true
|
|
@@ -24,7 +30,9 @@ export const profileDropDown = [
|
|
|
24
30
|
{
|
|
25
31
|
id: 4,
|
|
26
32
|
name: "Историй платежей",
|
|
27
|
-
|
|
33
|
+
dev: "https://adtdev.kz/profile?tab=payments",
|
|
34
|
+
staging: "https://adada.kz/profile?tab=payments",
|
|
35
|
+
prod: "https://adata.kz/profile?tab=payments",
|
|
28
36
|
disabled: false,
|
|
29
37
|
withoutArray: true
|
|
30
38
|
},
|
|
@@ -36,12 +44,16 @@ export const profileDropDown = [
|
|
|
36
44
|
{
|
|
37
45
|
id: 8,
|
|
38
46
|
name: "Избранные",
|
|
39
|
-
|
|
47
|
+
dev: "https://pk.adtdev.kz/profile/favorites",
|
|
48
|
+
staging: "https://pk.adada.kz/profile/favorites",
|
|
49
|
+
prod: "https://pk.adata.kz/profile/favorites"
|
|
40
50
|
},
|
|
41
51
|
{
|
|
42
52
|
id: 9,
|
|
43
53
|
name: "История просмотров",
|
|
44
|
-
|
|
54
|
+
dev: "https://pk.adtdev.kz/profile/browsing-history",
|
|
55
|
+
staging: "https://pk.adada.kz/profile/browsing-history",
|
|
56
|
+
prod: "https://pk.adata.kz/profile/browsing-history"
|
|
45
57
|
}
|
|
46
58
|
],
|
|
47
59
|
disabled: false
|
|
@@ -54,7 +66,9 @@ export const profileDropDown = [
|
|
|
54
66
|
{
|
|
55
67
|
id: 10,
|
|
56
68
|
name: "Профиль",
|
|
57
|
-
|
|
69
|
+
dev: "https://work.adtdev.kz/profile/account",
|
|
70
|
+
staging: "https://work.adada.kz/profile/account",
|
|
71
|
+
prod: "https://work.adata.kz/profile/account"
|
|
58
72
|
},
|
|
59
73
|
// {
|
|
60
74
|
// id: 11,
|
|
@@ -64,12 +78,16 @@ export const profileDropDown = [
|
|
|
64
78
|
{
|
|
65
79
|
id: 12,
|
|
66
80
|
name: "Отклики",
|
|
67
|
-
|
|
81
|
+
dev: "https://work.adtdev.kz/profile/application",
|
|
82
|
+
staging: "https://work.adada.kz/profile/application",
|
|
83
|
+
prod: "https://work.adata.kz/profile/application",
|
|
68
84
|
},
|
|
69
85
|
{
|
|
70
86
|
id: 13,
|
|
71
87
|
name: "Предложения",
|
|
72
|
-
|
|
88
|
+
dev: "https://work.adtdev.kz/profile/offer",
|
|
89
|
+
staging: "https://work.adada.kz/profile/offer",
|
|
90
|
+
prod: "https://work.adata.kz/profile/offer"
|
|
73
91
|
}
|
|
74
92
|
],
|
|
75
93
|
disabled: false
|
|
@@ -82,12 +100,16 @@ export const profileDropDown = [
|
|
|
82
100
|
{
|
|
83
101
|
id: 17,
|
|
84
102
|
name: "Шаблоны поиска",
|
|
85
|
-
|
|
103
|
+
dev: "https://tender.adtdev.kz/profile/search-profile",
|
|
104
|
+
staging: "https://tender.adada.kz/profile/search-profile",
|
|
105
|
+
prod: "https://tender.adata.kz/profile/search-profile",
|
|
86
106
|
},
|
|
87
107
|
{
|
|
88
108
|
id: 17,
|
|
89
109
|
name: "Избранные",
|
|
90
|
-
|
|
110
|
+
dev: "https://tender.adtdev.kz/profile/favourites",
|
|
111
|
+
staging: "https://tender.adada.kz/profile/favourites",
|
|
112
|
+
prod: "https://tender.adata.kz/profile/favourites"
|
|
91
113
|
}
|
|
92
114
|
],
|
|
93
115
|
disabled: false
|