adata-ui 0.1.36 → 0.1.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.1.36",
3
+ "version": "0.1.39",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -64,7 +64,7 @@
64
64
 
65
65
  &__input {
66
66
  background: #ffffff;
67
- border: 1px solid #c4c4c4;
67
+ border: 0.5px solid #c4c4c4;
68
68
  box-sizing: border-box;
69
69
  border-radius: 2px;
70
70
  width: 100%;
@@ -90,19 +90,12 @@
90
90
  font-size: 8px;
91
91
  }
92
92
  }
93
-
94
- &:focus ~ #{$self}__label-red,
95
- &:not(:focus):valid ~ #{$self}__label-red {
96
- top: 12px;
97
- font-size: 10px;
98
- color: #ff2e43;
99
- @media(max-width: 1025px) {
100
- font-size: 8px;
101
- }
93
+ &:hover {
94
+ border: 0.5px solid #2C3E50;
102
95
  }
103
96
 
104
97
  &:focus {
105
- border: 1px solid #2c3e50;
98
+ border: 0.5px solid #2C3E50;
106
99
  }
107
100
 
108
101
  &::placeholder {
@@ -135,28 +128,6 @@
135
128
  }
136
129
  }
137
130
 
138
- &__label-red {
139
- position: absolute;
140
- pointer-events: none;
141
- left: 16px;
142
- top: 50%;
143
- transform: translateY(-50%);
144
- white-space: nowrap;
145
- overflow: hidden;
146
- line-height: 40px;
147
- transition: 0.3s;
148
- color: #ff2e43;
149
- font-size: 12px;
150
-
151
- @media(max-width: 1025px) {
152
- left: 12px;
153
- font-size: 10px;
154
- line-height: 16px;
155
- color: #ff2e43;
156
- }
157
- }
158
-
159
-
160
131
  &__icon {
161
132
  position: absolute;
162
133
  right: 16px;
@@ -209,85 +180,4 @@
209
180
  }
210
181
  }
211
182
  }
212
-
213
- .mobile-magnifier {
214
- display: flex;
215
- justify-content: center;
216
- align-items: center;
217
- height: 40px;
218
- width: 40px;
219
- min-width: 40px;
220
- border-radius: 0 2px 2px 0;
221
- border-left: none;
222
- background: #FFCD33;
223
- }
224
-
225
- &__input-mob-filter {
226
- background: #ffffff;
227
- border-bottom: none;
228
- box-sizing: border-box;
229
- border-radius: 2px;
230
- width: 100%;
231
- height: 48px;
232
- font-size: 16px;
233
- line-height: 19px;
234
- display: flex;
235
- align-items: center;
236
- color: #1A2030;
237
- padding: 19px 40px 5px 16px;
238
- transition: 0.3s all;
239
- -webkit-appearance: none;
240
- -moz-appearance: none;
241
- appearance: none;
242
-
243
- &:focus ~ #{$self}__label-mob-filter,
244
- &:not(:focus):valid ~ #{$self}__label-mob-filter {
245
- top: 11px;
246
- font-size: 10px;
247
- color: #71757A;
248
- @media(max-width: 1025px) {
249
- font-size: 7px;
250
- }
251
- }
252
-
253
- &:focus {
254
- border: 1px solid #2c3e50;
255
- }
256
-
257
- &::placeholder {
258
- font-size: 12px;
259
- }
260
-
261
- &.error {
262
- border: 1px solid #FF2E43;
263
- background: #ff2e431f;
264
- }
265
- }
266
-
267
- &__label-mob-filter {
268
- position: absolute;
269
- pointer-events: none;
270
- left: 16px;
271
- top: 50%;
272
- transform: translateY(-50%);
273
- white-space: nowrap;
274
- overflow: hidden;
275
- line-height: 40px;
276
- transition: 0.3s;
277
- color: #71757A;
278
- @media(max-width: 1025px) {
279
- left: 16px;
280
- font-size: 14px;
281
- line-height: 16px;
282
- color: #71757A;
283
- }
284
-
285
- &__red {
286
- color: rgba(255, 0, 0, 0.53);
287
- }
288
- }
289
- &__magnifier {
290
- left: 8px;
291
- width: fit-content;
292
- }
293
183
  }
@@ -75,6 +75,7 @@ export default {
75
75
 
76
76
  @media screen and (max-width: 560px) {
77
77
  width: 100%;
78
+ text-align: center;
78
79
  }
79
80
 
80
81
  svg {
@@ -64,7 +64,7 @@
64
64
  :key="index"
65
65
  class="menu_mobile-wrapper"
66
66
  :class="{'active-burger-tab': item.key === activeTabKey}"
67
- :href="toAdtdev(item.url)"
67
+ :href="item[mode]"
68
68
  >
69
69
  {{ item.name }}
70
70
  </a>
@@ -75,7 +75,7 @@
75
75
 
76
76
  <script>
77
77
  import Profile from "./Profile";
78
- import { profileDropDown } from "../../configs/profileDropDown"
78
+ import { profileDropDown } from "@/configs/profileDropDown"
79
79
  import MobileToggle from "../transitions/VerticalMobileToggle";
80
80
 
81
81
  export default {
@@ -84,9 +84,12 @@ export default {
84
84
  MobileToggle,
85
85
  },
86
86
  props: {
87
- isDev: {
88
- type: Boolean,
89
- default: false
87
+ mode: {
88
+ type: String,
89
+ required: true,
90
+ validator: function (value) {
91
+ return ['prod', 'dev', 'staging'].indexOf(value) !== -1
92
+ }
90
93
  },
91
94
  isAuthenticated: {
92
95
  type: Boolean,
@@ -134,31 +137,41 @@ export default {
134
137
  {
135
138
  id: 1,
136
139
  name: "Контрагенты",
137
- url: 'https://pk.adata.kz',
140
+ dev: 'https://pk.adtdev.kz',
141
+ prod: 'https://pk.adata.kz',
142
+ staging: 'https://pk.adada.kz',
138
143
  key: 'counterparty'
139
144
  },
140
145
  {
141
146
  id: 2,
142
147
  name: "Тендеры",
143
- url: 'https://tender.adata.kz',
148
+ dev: 'https://tender.adtdev.kz',
149
+ prod: 'https://tender.adata.kz',
150
+ staging: 'https://tender.adada.kz',
144
151
  key: 'tenders'
145
152
  },
146
153
  {
147
154
  id: 3,
148
155
  name: "Работа",
149
- url: 'https://work.adata.kz',
156
+ dev: 'https://work.adtdev.kz',
157
+ prod: 'https://work.adata.kz',
158
+ staging: 'https://work.adada.kz',
150
159
  key: 'work'
151
160
  },
152
161
  {
153
162
  id: 4,
154
163
  name: "Штрафы",
155
- url: 'https://avto.adata.kz',
164
+ dev: 'https://avto.adtdev.kz',
165
+ prod: 'https://avto.adata.kz',
166
+ staging: 'https://avto.adada.kz',
156
167
  key: 'fines'
157
168
  },
158
169
  {
159
170
  id: 5,
160
171
  name: "Маркетинг",
161
- url: 'https://marketing.adata.kz',
172
+ dev: 'https://marketing.adtdev.kz',
173
+ prod: 'https://marketing.adata.kz',
174
+ staging: 'https://marketing.adada.kz',
162
175
  key: 'marketing'
163
176
  }
164
177
  ],
@@ -173,9 +186,6 @@ export default {
173
186
  this.isOpen = !this.isOpen
174
187
  this.$emit('menuOpen', this.isOpen)
175
188
  },
176
- toAdtdev(url) {
177
- return this.isDev ? url.replace("adata", "adtdev") : url;
178
- },
179
189
  setBalance(balance) {
180
190
  if (balance !== 0) {
181
191
  this.profileDropDown[2].name = 'Текущий баланс: ' + this.thousandSeparator(balance) + ' ₸';