adata-ui 0.1.49 → 0.1.52
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 +560 -171
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +560 -171
- 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/package.json +1 -1
- package/src/App.vue +0 -1
- package/src/assets/style.scss +1 -1
- package/src/components/Header/Header.vue +91 -85
- package/src/components/Header/InfoHeader.vue +307 -0
- package/src/components/Header/Profile.vue +0 -14
- package/src/components/MailTo/MailTo.vue +66 -1
- package/dist/img/mail.45723285.png +0 -0
- package/src/assets/images/mail.png +0 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
package/src/assets/style.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "text_field";
|
|
1
|
+
@import "text_field";
|
|
@@ -1,85 +1,93 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
2
|
+
<header :class="{'sticky': isSticky}">
|
|
3
|
+
<InfoHeader
|
|
4
|
+
:requestCount="requestCount"
|
|
5
|
+
:daysRemaining="daysRemaining"
|
|
6
|
+
:isAuthenticated="isAuthenticated"
|
|
7
|
+
/>
|
|
8
|
+
<div class="header" :class="{'bordered': isBordered}">
|
|
9
|
+
<div class="container">
|
|
10
|
+
<div class="header__left">
|
|
11
|
+
<a class="logo" :href="main[mode]">
|
|
12
|
+
<svg class="adata-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 166 48">
|
|
13
|
+
<path d="M62.926 38.22v-28h10.316c10.342 0 15.511 4.55 15.508 13.652 0 4.36-1.41 7.843-4.232 10.448-2.822 2.605-6.58 3.907-11.276 3.904l-10.316-.004zm6.56-22.868v17.752h3.248c2.839 0 5.069-.82 6.69-2.46 1.622-1.64 2.43-3.873 2.424-6.7 0-2.667-.8-4.767-2.403-6.3-1.602-1.533-3.853-2.297-6.752-2.292h-3.206zM118.5 38.22h-7.131l-2.079-6.228H98.958l-2.079 6.228h-7.093l10.598-28h7.775l10.341 28zm-10.723-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.162c-.07.83-.24 1.649-.508 2.44l-3.168 9.492h7.451zm31.833-11.796h-8.316V38.22h-6.557V15.352h-8.274v-5.136h23.147v5.136zM166 38.22h-7.143l-2.079-6.228h-10.349l-2.05 6.228h-7.106l10.598-28h7.776l10.353 28zm-10.719-11.072l-3.127-9.416a11.94 11.94 0 01-.486-2.516h-.163c-.069.83-.239 1.649-.507 2.44l-3.168 9.492h7.451zM24.553 15.252h-.163c-.069.83-.24 1.649-.507 2.44L20.715 27.2h7.45l-3.126-9.412a12.02 12.02 0 01-.486-2.536z"></path>
|
|
14
|
+
<path d="M44.905 0H4.99a5.091 5.091 0 00-3.528 1.406A4.71 4.71 0 000 4.8v38.4a4.71 4.71 0 001.461 3.394A5.091 5.091 0 004.99 48h39.916a5.091 5.091 0 003.528-1.406 4.71 4.71 0 001.462-3.394V4.8a4.71 4.71 0 00-1.462-3.394A5.091 5.091 0 0044.905 0zM31.737 38.26l-2.079-6.232H19.305l-2.05 6.232h-7.097l10.598-28h7.776l10.353 28h-7.148z"></path>
|
|
15
|
+
</svg>
|
|
16
|
+
</a>
|
|
17
|
+
<div class="menu" v-if="subheaderItems.length > 0">
|
|
18
|
+
<a v-for="(item, index) in subheaderItems"
|
|
19
|
+
:key="index"
|
|
20
|
+
class="menu__wrapper menu__items"
|
|
21
|
+
:class="{active: item.key === activeTabKey}"
|
|
22
|
+
:href="item[mode]"
|
|
23
|
+
>
|
|
24
|
+
{{ item.name }}
|
|
25
|
+
</a>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="header__right">
|
|
29
|
+
<slot name="chooseCountry"></slot>
|
|
30
|
+
<Profile
|
|
31
|
+
v-bind:profileDropDown="profileDropDown"
|
|
32
|
+
:mode="mode"
|
|
33
|
+
:isAuthenticated="isAuthenticated"
|
|
34
|
+
:email="email"
|
|
35
|
+
:loginUrl="loginUrl"
|
|
36
|
+
:activeTabKey="activeTabKey"
|
|
37
|
+
@showBalanceModal="(val) => { $emit('showBalanceModal', val) }"
|
|
38
|
+
@setShowModal="(val) => { $emit('setShowModal', val) }"
|
|
39
|
+
@logout="$emit('logout')"
|
|
40
|
+
@setIsReplenishModal="(val) => { $emit('setIsReplenishModal', val) }"
|
|
41
|
+
/>
|
|
42
|
+
<div class="menu_mobile--switcher" @click="changeValue">
|
|
43
|
+
<!-- icon_hamburger -->
|
|
44
|
+
<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
45
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 4h20v2H2V4zm0 14h20v2H2v-2zm0-7h20v2H2v-2z"
|
|
46
|
+
fill="#2C3E50"></path>
|
|
47
|
+
</svg>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<MobileToggle v-slot="{ animationClass }">
|
|
52
|
+
<div
|
|
53
|
+
class="menu_mobile"
|
|
54
|
+
:class="animationClass"
|
|
55
|
+
v-show="subheaderItems.length > 0 && isOpen"
|
|
56
|
+
>
|
|
57
|
+
<div @click.stop="changeValue" class="mobile-table-head">
|
|
58
|
+
<!-- close_hamburger -->
|
|
59
|
+
<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
60
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
|
|
61
|
+
fill="#2C3E50"></path>
|
|
62
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
|
|
63
|
+
fill="#2C3E50"></path>
|
|
64
|
+
</svg>
|
|
65
|
+
</div>
|
|
66
|
+
<a
|
|
67
|
+
v-for="(item, index) in subheaderItems"
|
|
68
|
+
:key="index"
|
|
69
|
+
class="menu_mobile-wrapper"
|
|
70
|
+
:class="{'active-burger-tab': item.key === activeTabKey}"
|
|
71
|
+
:href="item[mode]"
|
|
72
|
+
>
|
|
73
|
+
{{ item.name }}
|
|
74
|
+
</a>
|
|
75
|
+
</div>
|
|
76
|
+
</MobileToggle>
|
|
77
|
+
</div>
|
|
78
|
+
</header>
|
|
74
79
|
</template>
|
|
75
80
|
|
|
76
81
|
<script>
|
|
77
|
-
import Profile from "./Profile";
|
|
78
82
|
import { profileDropDown } from "../../configs/profileDropDown"
|
|
83
|
+
|
|
84
|
+
import Profile from "./Profile";
|
|
79
85
|
import MobileToggle from "../transitions/VerticalMobileToggle";
|
|
86
|
+
import InfoHeader from "@/components/Header/InfoHeader";
|
|
80
87
|
|
|
81
88
|
export default {
|
|
82
89
|
components: {
|
|
90
|
+
InfoHeader,
|
|
83
91
|
Profile,
|
|
84
92
|
MobileToggle,
|
|
85
93
|
},
|
|
@@ -99,16 +107,16 @@ export default {
|
|
|
99
107
|
type: Boolean,
|
|
100
108
|
default: false
|
|
101
109
|
},
|
|
102
|
-
|
|
110
|
+
isSticky: {
|
|
103
111
|
type: Boolean,
|
|
104
112
|
default: false
|
|
105
113
|
},
|
|
106
114
|
requestCount: {
|
|
107
|
-
type: Number,
|
|
115
|
+
type: [String, Number],
|
|
108
116
|
default: null
|
|
109
117
|
},
|
|
110
118
|
daysRemaining: {
|
|
111
|
-
type: String,
|
|
119
|
+
type: [String, Number],
|
|
112
120
|
default: null
|
|
113
121
|
},
|
|
114
122
|
email: {
|
|
@@ -216,8 +224,13 @@ export default {
|
|
|
216
224
|
padding: 0;
|
|
217
225
|
}
|
|
218
226
|
|
|
219
|
-
.
|
|
220
|
-
|
|
227
|
+
.sticky {
|
|
228
|
+
position: sticky;
|
|
229
|
+
z-index: 1000;
|
|
230
|
+
top: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.header {
|
|
221
234
|
background: #ffffff;
|
|
222
235
|
max-height: 62px;
|
|
223
236
|
height: 62px;
|
|
@@ -232,13 +245,6 @@ export default {
|
|
|
232
245
|
border-bottom: 1px solid #2C3E5026;
|
|
233
246
|
}
|
|
234
247
|
|
|
235
|
-
&.fixed {
|
|
236
|
-
position: fixed;
|
|
237
|
-
z-index: 1000;
|
|
238
|
-
top: 0;
|
|
239
|
-
left: 0;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
248
|
& > .container {
|
|
243
249
|
width: 100%;
|
|
244
250
|
display: flex;
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="info">
|
|
3
|
+
<transition name="fade">
|
|
4
|
+
<div class="info-notification" v-if="showNotification">
|
|
5
|
+
<div class="container">
|
|
6
|
+
<div class="info-notification__wrapper">
|
|
7
|
+
<div class="info-notification__content">
|
|
8
|
+
<svg id="note-svg" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
+
<circle cx="8" cy="8" r="6" stroke="white"/>
|
|
10
|
+
<path d="M9.6613 11.1367L9.54952 11.5936C9.21418 11.726 8.94631 11.8267 8.74685 11.896C8.54716 11.9654 8.31514 12 8.05079 12C7.64483 12 7.32906 11.9006 7.10386 11.703C6.87865 11.5047 6.76601 11.2534 6.76601 10.9485C6.76601 10.8305 6.77418 10.7091 6.79117 10.5854C6.80831 10.4616 6.83556 10.3222 6.87284 10.1663L7.29192 8.68297C7.32921 8.54094 7.3609 8.40636 7.38628 8.27909C7.41202 8.15261 7.42442 8.03624 7.42442 7.93149C7.42442 7.74206 7.3852 7.60956 7.30712 7.53507C7.22904 7.46079 7.08005 7.42307 6.85886 7.42307C6.75052 7.42307 6.63917 7.44042 6.52567 7.47398C6.41167 7.50768 6.31423 7.54023 6.23242 7.57049L6.34449 7.11319C6.61902 7.00141 6.88144 6.90569 7.13246 6.82625C7.38348 6.74659 7.62066 6.70672 7.84501 6.70672C8.24818 6.70672 8.55928 6.80416 8.77775 6.99904C8.99622 7.19406 9.10542 7.44688 9.10542 7.75841C9.10542 7.82287 9.09825 7.93644 9.08283 8.09877C9.06777 8.26145 9.03974 8.41051 8.99887 8.5461L8.58158 10.0235C8.54738 10.1421 8.51662 10.2778 8.48988 10.4304C8.46227 10.5821 8.44908 10.6979 8.44908 10.7757C8.44908 10.9718 8.49282 11.1058 8.5805 11.177C8.66884 11.2482 8.82098 11.2836 9.03709 11.2836C9.13854 11.2836 9.25398 11.2656 9.38225 11.2302C9.51016 11.1949 9.60344 11.1638 9.6613 11.1367ZM9.76713 4.93424C9.76713 5.19164 9.67012 5.41147 9.47517 5.59223C9.28072 5.77363 9.04641 5.8644 8.7723 5.8644C8.49733 5.8644 8.26245 5.77363 8.06577 5.59223C7.86946 5.4114 7.77109 5.19164 7.77109 4.93424C7.77109 4.67734 7.86946 4.45716 8.06577 4.27411C8.26209 4.09134 8.4974 4 8.7723 4C9.04634 4 9.28072 4.09156 9.47517 4.27411C9.67026 4.45716 9.76713 4.67742 9.76713 4.93424Z" fill="white"/>
|
|
11
|
+
</svg>
|
|
12
|
+
<span>{{systemMessage}}</span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="info-notification__close" @click="closeNotification">
|
|
15
|
+
<svg id="close-notification" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
16
|
+
<path d="M2.99902 2.99951L12.9997 13.0002" stroke="white" stroke-linecap="round"/>
|
|
17
|
+
<path d="M13 2.99951L2.99934 13.0002" stroke="white" stroke-linecap="round"/>
|
|
18
|
+
</svg>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</transition>
|
|
24
|
+
<div class="info-header" v-if="!showNotification">
|
|
25
|
+
<div class="container">
|
|
26
|
+
<div class="info-header__list">
|
|
27
|
+
<div class="info-header__item">
|
|
28
|
+
<div class="info-header__item-elem first-elem">
|
|
29
|
+
<svg id="rate" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30
|
+
<rect x="2" y="4" width="12" height="7.50184" stroke="#2C3E50" stroke-linejoin="round"/>
|
|
31
|
+
<path d="M7 5.99902H9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
32
|
+
<path d="M7 7.50586H9" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
33
|
+
<path d="M8 9.99902L8 7.50563" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"/>
|
|
34
|
+
</svg>
|
|
35
|
+
<p>Курс валют</p>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="info-header__item-elem">
|
|
38
|
+
<div class="info-header__inner-item">
|
|
39
|
+
<svg id="dollar" width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
40
|
+
<path d="M5.59863 9.40234C5.59863 9.01497 5.47559 8.69596 5.22949 8.44531C4.9834 8.1901 4.57324 7.96224 3.99902 7.76172C3.4248 7.55664 2.97819 7.36751 2.65918 7.19434C1.59733 6.62467 1.06641 5.78158 1.06641 4.66504C1.06641 3.90853 1.29655 3.28646 1.75684 2.79883C2.21712 2.3112 2.84147 2.02181 3.62988 1.93066V0.44043H4.72363V1.94434C5.5166 2.05827 6.12956 2.39551 6.5625 2.95605C6.99544 3.51204 7.21191 4.23665 7.21191 5.12988H5.55762C5.55762 4.55566 5.42773 4.10449 5.16797 3.77637C4.91276 3.44368 4.56413 3.27734 4.12207 3.27734C3.68457 3.27734 3.34277 3.39583 3.09668 3.63281C2.85059 3.86979 2.72754 4.20931 2.72754 4.65137C2.72754 5.04785 2.84831 5.36686 3.08984 5.6084C3.33594 5.84538 3.75065 6.07096 4.33398 6.28516C4.91732 6.49935 5.37533 6.69759 5.70801 6.87988C6.04069 7.06217 6.32096 7.27181 6.54883 7.50879C6.77669 7.74121 6.95215 8.01009 7.0752 8.31543C7.19824 8.62077 7.25977 8.97852 7.25977 9.38867C7.25977 10.1589 7.02279 10.7832 6.54883 11.2617C6.07943 11.7402 5.42318 12.0228 4.58008 12.1094V13.4424H3.49316V12.1162C2.59082 12.016 1.89583 11.6924 1.4082 11.1455C0.92513 10.5986 0.683594 9.87402 0.683594 8.97168H2.34473C2.34473 9.5459 2.48828 9.99023 2.77539 10.3047C3.06706 10.6191 3.47721 10.7764 4.00586 10.7764C4.52539 10.7764 4.9196 10.651 5.18848 10.4004C5.46191 10.1497 5.59863 9.81706 5.59863 9.40234Z" fill="#2C3E50"/>
|
|
41
|
+
</svg>
|
|
42
|
+
<p v-if="currency">{{ currency.sell }}</p>
|
|
43
|
+
<!-- <svg id="arrow-up" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-->
|
|
44
|
+
<!-- <path d="M3 9.5L8 6L13 9.5" stroke="#00B92D" stroke-linecap="round" stroke-linejoin="round"/>-->
|
|
45
|
+
<!-- </svg>-->
|
|
46
|
+
</div>
|
|
47
|
+
<div class="info-header__inner-item">
|
|
48
|
+
<svg id="dollar" width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
49
|
+
<path d="M5.59863 9.40234C5.59863 9.01497 5.47559 8.69596 5.22949 8.44531C4.9834 8.1901 4.57324 7.96224 3.99902 7.76172C3.4248 7.55664 2.97819 7.36751 2.65918 7.19434C1.59733 6.62467 1.06641 5.78158 1.06641 4.66504C1.06641 3.90853 1.29655 3.28646 1.75684 2.79883C2.21712 2.3112 2.84147 2.02181 3.62988 1.93066V0.44043H4.72363V1.94434C5.5166 2.05827 6.12956 2.39551 6.5625 2.95605C6.99544 3.51204 7.21191 4.23665 7.21191 5.12988H5.55762C5.55762 4.55566 5.42773 4.10449 5.16797 3.77637C4.91276 3.44368 4.56413 3.27734 4.12207 3.27734C3.68457 3.27734 3.34277 3.39583 3.09668 3.63281C2.85059 3.86979 2.72754 4.20931 2.72754 4.65137C2.72754 5.04785 2.84831 5.36686 3.08984 5.6084C3.33594 5.84538 3.75065 6.07096 4.33398 6.28516C4.91732 6.49935 5.37533 6.69759 5.70801 6.87988C6.04069 7.06217 6.32096 7.27181 6.54883 7.50879C6.77669 7.74121 6.95215 8.01009 7.0752 8.31543C7.19824 8.62077 7.25977 8.97852 7.25977 9.38867C7.25977 10.1589 7.02279 10.7832 6.54883 11.2617C6.07943 11.7402 5.42318 12.0228 4.58008 12.1094V13.4424H3.49316V12.1162C2.59082 12.016 1.89583 11.6924 1.4082 11.1455C0.92513 10.5986 0.683594 9.87402 0.683594 8.97168H2.34473C2.34473 9.5459 2.48828 9.99023 2.77539 10.3047C3.06706 10.6191 3.47721 10.7764 4.00586 10.7764C4.52539 10.7764 4.9196 10.651 5.18848 10.4004C5.46191 10.1497 5.59863 9.81706 5.59863 9.40234Z" fill="#2C3E50"/>
|
|
50
|
+
</svg>
|
|
51
|
+
<p v-if="currency">{{ currency.buy }}</p>
|
|
52
|
+
</div>
|
|
53
|
+
<!-- <div class="info-header--inner-item">-->
|
|
54
|
+
<!-- <svg id="ruble" width="10" height="14" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">-->
|
|
55
|
+
<!-- <path d="M5.49869 7.85079H3.66439V9.16671H2.22884V7.85079H1.06104V6.69437H2.22884V6.08484H1.06104V4.92842H2.22884V0.872437H5.40185C6.31711 0.872437 7.04818 1.11169 7.59505 1.59021C8.14193 2.06492 8.41536 2.69725 8.41536 3.48718C8.41536 4.29231 8.15522 4.92463 7.63493 5.38416C7.11464 5.83988 6.39117 6.07345 5.46452 6.08484H3.66439V6.69437H5.49869V7.85079ZM3.66439 4.92842H5.37907C5.89556 4.92842 6.29053 4.8088 6.56396 4.56954C6.8374 4.33028 6.97412 3.97329 6.97412 3.49857C6.97412 3.07323 6.8393 2.72573 6.56966 2.4561C6.30382 2.18646 5.93544 2.04594 5.46452 2.03455H3.66439V4.92842Z" fill="#2C3E50"/>-->
|
|
56
|
+
<!-- </svg>-->
|
|
57
|
+
<!-- <p>5.92</p>-->
|
|
58
|
+
<!-- <svg id="arrow-down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">-->
|
|
59
|
+
<!-- <path d="M3 6.5L8 10L13 6.5" stroke="#FF2E43" stroke-linecap="round" stroke-linejoin="round"/>-->
|
|
60
|
+
<!-- </svg>-->
|
|
61
|
+
<!-- </div>-->
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<!-- <div class="info-header__item">-->
|
|
65
|
+
<!-- <div class="info-header__item-elem first-elem">-->
|
|
66
|
+
<!-- <svg id="sun" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">-->
|
|
67
|
+
<!-- <path d="M8.99995 12.7777C11.0864 12.7777 12.7777 11.0864 12.7777 8.99995C12.7777 6.91354 11.0864 5.22217 8.99995 5.22217C6.91354 5.22217 5.22217 6.91354 5.22217 8.99995C5.22217 11.0864 6.91354 12.7777 8.99995 12.7777Z" stroke="#2C3E50" stroke-miterlimit="10"/>-->
|
|
68
|
+
<!-- <path d="M9 1V3.22222" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
69
|
+
<!-- <path d="M9 14.7778V17.0001" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
70
|
+
<!-- <path d="M17.0001 9H14.7778" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
71
|
+
<!-- <path d="M3.22222 9H1" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
72
|
+
<!-- <path d="M14.6669 3.33337L13.1113 4.88893" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
73
|
+
<!-- <path d="M4.88905 13.1111L3.3335 14.6666" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
74
|
+
<!-- <path d="M14.6669 14.6666L13.1113 13.1111" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
75
|
+
<!-- <path d="M4.88905 4.88893L3.3335 3.33337" stroke="#2C3E50" stroke-miterlimit="10" stroke-linecap="round"/>-->
|
|
76
|
+
<!-- </svg>-->
|
|
77
|
+
<!-- <p>Погода</p>-->
|
|
78
|
+
<!-- </div>-->
|
|
79
|
+
<!-- <div class="info-header__item-elem">-->
|
|
80
|
+
<!-- <div class="info-header--inner-item weather">-->
|
|
81
|
+
<!-- <span>Алматы </span>-->
|
|
82
|
+
<!-- <p>+29 С</p>-->
|
|
83
|
+
<!-- </div>-->
|
|
84
|
+
<!-- <div class="info-header--inner-item weather">-->
|
|
85
|
+
<!-- <span>Нур-Султан </span>-->
|
|
86
|
+
<!-- <p>+29 С</p>-->
|
|
87
|
+
<!-- </div>-->
|
|
88
|
+
<!-- </div>-->
|
|
89
|
+
<!-- </div>-->
|
|
90
|
+
<div v-if="isAuthenticated" class="info-header__item last-header-item">
|
|
91
|
+
<div class="info-header__item-elem">
|
|
92
|
+
<svg id="clock" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
93
|
+
<path d="M6.93821 13.2567C10.4279 13.2567 13.2568 10.4277 13.2568 6.93809C13.2568 3.44843 10.4279 0.619507 6.93821 0.619507C3.44855 0.619507 0.619629 3.44843 0.619629 6.93809C0.619629 10.4277 3.44855 13.2567 6.93821 13.2567Z" stroke="#2C3E50" stroke-miterlimit="100"/>
|
|
94
|
+
<path d="M6.93799 3.46899V6.93802L11.1504 9.292" stroke="#2C3E50" stroke-miterlimit="100" stroke-linecap="round"/>
|
|
95
|
+
</svg>
|
|
96
|
+
<div class="info-header__inner-item">
|
|
97
|
+
<p>Cуточный лимит запросов:
|
|
98
|
+
<span>{{ requestCount }}</span>
|
|
99
|
+
</p>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="info-header__inner-item">
|
|
102
|
+
<p>остаток дней:
|
|
103
|
+
<span>{{ daysRemaining }}</span>
|
|
104
|
+
</p>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
114
|
+
<script>
|
|
115
|
+
|
|
116
|
+
export default {
|
|
117
|
+
name: "InfoHeader",
|
|
118
|
+
props: {
|
|
119
|
+
requestCount: {
|
|
120
|
+
type: [String, Number],
|
|
121
|
+
default: null
|
|
122
|
+
},
|
|
123
|
+
daysRemaining: {
|
|
124
|
+
type: [String, Number],
|
|
125
|
+
default: null
|
|
126
|
+
},
|
|
127
|
+
isAuthenticated: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: false
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
data() {
|
|
133
|
+
return {
|
|
134
|
+
showNotification: false,
|
|
135
|
+
systemMessage: null,
|
|
136
|
+
currency: null,
|
|
137
|
+
timer: null,
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
created() {
|
|
141
|
+
this.fetchCurrency();
|
|
142
|
+
},
|
|
143
|
+
mounted() {
|
|
144
|
+
this.timer = setTimeout(this.fetchNotification, 3000);
|
|
145
|
+
},
|
|
146
|
+
watch: {
|
|
147
|
+
showNotification() {
|
|
148
|
+
if(!this.showNotification) {
|
|
149
|
+
clearTimeout(this.timer);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
methods: {
|
|
154
|
+
async fetchNotification() {
|
|
155
|
+
try {
|
|
156
|
+
const response = await fetch('https://users.adtdev.kz/api/v1/system-messages/active-list/?module_name=counterparty');
|
|
157
|
+
const { data } = await response.json();
|
|
158
|
+
|
|
159
|
+
if (data.details.length) {
|
|
160
|
+
this.systemMessage = data.details[0].message;
|
|
161
|
+
this.showNotification = true;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
} catch(e) {
|
|
165
|
+
console.log(e.message)
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
async fetchCurrency() {
|
|
169
|
+
try {
|
|
170
|
+
const response = await fetch('https://users.adtdev.kz/api/v1/information/currency');
|
|
171
|
+
const { data } = await response.json();
|
|
172
|
+
|
|
173
|
+
if(data.USD) {
|
|
174
|
+
this.currency = data.USD;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
} catch(e) {
|
|
178
|
+
console.log(e.message)
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
async fetchWeather() {
|
|
182
|
+
try {
|
|
183
|
+
const response = await fetch('https://users.adtdev.kz/api/v1/information/weather');
|
|
184
|
+
const result = await response.json();
|
|
185
|
+
|
|
186
|
+
if(result) {
|
|
187
|
+
console.log(result);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
} catch(e) {
|
|
191
|
+
console.log(e.message)
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
closeNotification() {
|
|
195
|
+
this.showNotification = !this.showNotification
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
}
|
|
199
|
+
</script>
|
|
200
|
+
|
|
201
|
+
<style scoped lang="scss">
|
|
202
|
+
.info {
|
|
203
|
+
position: relative;
|
|
204
|
+
@media (min-width: 850px) {
|
|
205
|
+
height: 30px;
|
|
206
|
+
}
|
|
207
|
+
&-notification {
|
|
208
|
+
position: absolute;
|
|
209
|
+
width: 100%;
|
|
210
|
+
z-index: 1;
|
|
211
|
+
top: 0;
|
|
212
|
+
color: #FFFFFF;
|
|
213
|
+
background: #007AFF;
|
|
214
|
+
padding: 7px 0;
|
|
215
|
+
font-size: 14px;
|
|
216
|
+
@media(max-width: 850px) {
|
|
217
|
+
position: relative;
|
|
218
|
+
height: 30px;
|
|
219
|
+
}
|
|
220
|
+
&__wrapper {
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
align-items: center;
|
|
224
|
+
}
|
|
225
|
+
&__content {
|
|
226
|
+
display: flex;
|
|
227
|
+
align-items: center;
|
|
228
|
+
gap: 10px;
|
|
229
|
+
}
|
|
230
|
+
&__close {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
&-header {
|
|
237
|
+
background: #FFFFFF;
|
|
238
|
+
padding: 7px 0;
|
|
239
|
+
border-bottom: 0.5px solid rgba(189, 199, 206, 0.5);
|
|
240
|
+
@media (max-width: 850px) {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
&__list {
|
|
244
|
+
display: flex;
|
|
245
|
+
justify-content: space-between;
|
|
246
|
+
align-items: center;
|
|
247
|
+
}
|
|
248
|
+
&__item {
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 15px;
|
|
252
|
+
&-elem {
|
|
253
|
+
display: flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
}
|
|
256
|
+
.first-elem {
|
|
257
|
+
font-weight: 700;
|
|
258
|
+
font-size: 10px;
|
|
259
|
+
gap: 5px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
&__inner-item {
|
|
263
|
+
display: flex;
|
|
264
|
+
align-items: center;
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
&:after {
|
|
267
|
+
content: "";
|
|
268
|
+
background: #2C3E50;
|
|
269
|
+
width: 1px;
|
|
270
|
+
height: 10px;
|
|
271
|
+
margin: 0 10px;
|
|
272
|
+
transform: rotate(20deg);
|
|
273
|
+
}
|
|
274
|
+
&:last-child:after {
|
|
275
|
+
content: none;
|
|
276
|
+
}
|
|
277
|
+
&.weather {
|
|
278
|
+
span {
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
font-size: 10px;
|
|
281
|
+
padding-right: 3px;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
.last-header-item {
|
|
286
|
+
.info-header__inner-item:nth-child(2) {
|
|
287
|
+
margin-left: 5px;
|
|
288
|
+
}
|
|
289
|
+
span {
|
|
290
|
+
font-weight: 700;
|
|
291
|
+
color: #2c3e50;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.fade-enter-active,
|
|
298
|
+
.fade-leave-active {
|
|
299
|
+
transition: 0.5s ease;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.fade-enter,
|
|
303
|
+
.fade-leave-to {
|
|
304
|
+
opacity: 0;
|
|
305
|
+
top: -30px;
|
|
306
|
+
}
|
|
307
|
+
</style>
|
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
<div class="profile" :class="{ active: active }">
|
|
3
3
|
<div v-click-outside="() => {active = false}">
|
|
4
4
|
<div class="profile__inner">
|
|
5
|
-
<div class="requests__link" v-if="requestCount !== null && isAuthenticated">
|
|
6
|
-
Суточный лимит запросов:
|
|
7
|
-
<span>
|
|
8
|
-
{{ requestCount }} {{ (daysRemaining === null || daysRemaining === '-') ? '' : `(${daysRemaining})` }}
|
|
9
|
-
</span>
|
|
10
|
-
</div>
|
|
11
5
|
<div class="profile__item" @click="active = !active">
|
|
12
6
|
<div v-show="isAuthenticated" class="profile__item-link">
|
|
13
7
|
<span class="desktop">{{ email }}</span>
|
|
@@ -256,14 +250,6 @@ export default {
|
|
|
256
250
|
type: Boolean,
|
|
257
251
|
default: false
|
|
258
252
|
},
|
|
259
|
-
requestCount: {
|
|
260
|
-
type: Number,
|
|
261
|
-
default: null
|
|
262
|
-
},
|
|
263
|
-
daysRemaining: {
|
|
264
|
-
type: String,
|
|
265
|
-
default: null
|
|
266
|
-
},
|
|
267
253
|
email: {
|
|
268
254
|
type: String,
|
|
269
255
|
default: ""
|
|
@@ -6,7 +6,72 @@
|
|
|
6
6
|
<a class="mail__link" href="mailto:info@adata.kz">info@adata.kz</a>
|
|
7
7
|
</p>
|
|
8
8
|
<div class="mail__img-wrapper">
|
|
9
|
-
<
|
|
9
|
+
<svg
|
|
10
|
+
width="126"
|
|
11
|
+
height="120"
|
|
12
|
+
viewBox="0 0 126 120"
|
|
13
|
+
fill="none"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
>
|
|
16
|
+
<circle cx="63" cy="60" r="60" fill="#BDC7CE" fill-opacity="0.15" />
|
|
17
|
+
<g clip-path="url(#clip0_2878_18164)">
|
|
18
|
+
<path
|
|
19
|
+
d="M103.97 17.2671L5.64253 38.4363C2.12229 39.1942 -0.117059 42.6623 0.640828 46.1825L13.8374 107.478C14.5953 110.998 18.0634 113.238 21.5837 112.48L119.911 91.3105C123.431 90.5526 125.67 87.0845 124.912 83.5643L111.716 22.2687C110.958 18.7485 107.49 16.5092 103.97 17.2671Z"
|
|
20
|
+
fill="white"
|
|
21
|
+
stroke="#9DA3AC"
|
|
22
|
+
stroke-linecap="round"
|
|
23
|
+
stroke-linejoin="round"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
opacity="0.6"
|
|
27
|
+
d="M61.5601 77.2102C56.4501 78.3102 52.2901 72.8102 43.4901 67.3502C25.6601 56.3002 9.6001 45.6602 9.6001 45.6602L11.9101 56.6602L49.0601 80.2402C55.0601 83.3502 65.0601 81.7402 70.3101 75.0202C69.1401 74.7002 67.7001 75.8902 61.5601 77.2102Z"
|
|
28
|
+
fill="#BDC7CE"
|
|
29
|
+
fill-opacity="0.4"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
opacity="0.6"
|
|
33
|
+
d="M28.77 97.0891C27.7509 97.3094 26.6984 97.3266 25.6726 97.1397C24.6468 96.9528 23.6679 96.5654 22.792 95.9998C21.9161 95.4341 21.1604 94.7013 20.568 93.8432C19.9757 92.9851 19.5584 92.0186 19.34 90.9991L9.41003 44.8891L3.28002 41.5391C2.42002 41.7291 0.0200244 43.2791 0.940024 47.5391L13.55 106.069C13.7685 107.088 14.1854 108.053 14.7771 108.91C15.3688 109.768 16.1236 110.5 16.9984 111.066C17.8732 111.631 18.8508 112.019 19.8754 112.206C20.9001 112.394 21.9516 112.378 22.97 112.159L118.53 91.5891C120.58 91.1313 122.367 89.8858 123.507 88.1215C124.646 86.3572 125.046 84.2157 124.62 82.1591L123.44 76.6891L28.77 97.0891Z"
|
|
34
|
+
fill="#BDC7CE"
|
|
35
|
+
fill-opacity="0.4"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
d="M2.46973 40.9509L55.2897 75.1109C56.7268 76.0398 58.3331 76.6758 60.0164 76.9825C61.6998 77.2892 63.4272 77.2606 65.0995 76.8983C66.7718 76.536 68.3561 75.8471 69.7616 74.8711C71.1671 73.8951 72.366 72.6513 73.2897 71.2109L107.19 18.2109"
|
|
39
|
+
stroke="#9DA3AC"
|
|
40
|
+
stroke-linecap="round"
|
|
41
|
+
stroke-linejoin="round"
|
|
42
|
+
/>
|
|
43
|
+
<path
|
|
44
|
+
d="M82.5601 56.9102L122.68 88.5802"
|
|
45
|
+
stroke="#9DA3AC"
|
|
46
|
+
stroke-linecap="round"
|
|
47
|
+
stroke-linejoin="round"
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
d="M39.2497 65.2207L17.4297 111.241"
|
|
51
|
+
stroke="#9DA3AC"
|
|
52
|
+
stroke-linecap="round"
|
|
53
|
+
stroke-linejoin="round"
|
|
54
|
+
/>
|
|
55
|
+
<path
|
|
56
|
+
d="M107.69 30.8C114.538 30.8 120.09 25.2483 120.09 18.4C120.09 11.5517 114.538 6 107.69 6C100.842 6 95.29 11.5517 95.29 18.4C95.29 25.2483 100.842 30.8 107.69 30.8Z"
|
|
57
|
+
fill="#E83949"
|
|
58
|
+
/>
|
|
59
|
+
<path
|
|
60
|
+
d="M110.67 24.1891L108.6 24.6391L106.82 16.3391C106.6 15.3391 106.46 14.5591 106.38 13.9691C106.27 14.1391 106.14 14.3291 105.98 14.5391C105.82 14.7491 105.28 15.4391 104.36 16.5391L103.04 15.4491L106.18 11.6691L107.9 11.2891L110.67 24.1891Z"
|
|
61
|
+
fill="white"
|
|
62
|
+
/>
|
|
63
|
+
</g>
|
|
64
|
+
<defs>
|
|
65
|
+
<clipPath id="clip0_2878_18164">
|
|
66
|
+
<rect
|
|
67
|
+
width="125.56"
|
|
68
|
+
height="107.12"
|
|
69
|
+
fill="white"
|
|
70
|
+
transform="translate(0 6)"
|
|
71
|
+
/>
|
|
72
|
+
</clipPath>
|
|
73
|
+
</defs>
|
|
74
|
+
</svg>
|
|
10
75
|
</div>
|
|
11
76
|
<p class="mail__text">
|
|
12
77
|
Мы обязательно ответим вам <br />
|
|
Binary file
|