adata-ui 0.3.69 → 0.3.71

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.3.69",
3
+ "version": "0.3.71",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -28,7 +28,10 @@
28
28
  </div>
29
29
  <div class="bottom-navigation__title">Избранные</div>
30
30
  </component>
31
- <a :href="loginUrl" v-else>
31
+ <a
32
+ @click="goAuth"
33
+ v-else
34
+ >
32
35
  <div class="bottom-navigation__icon">
33
36
  <a-nav-icon icon-name="sign" class="ic-24"/>
34
37
  </div>
@@ -99,12 +102,18 @@ export default {
99
102
  this.$emit("close")
100
103
  }
101
104
  })
102
- })
105
+ }, {passive: true })
103
106
  })
104
107
  },
105
108
  methods: {
106
109
  handleClick() {
107
110
  this.$emit("click-menu")
111
+ },
112
+ goAuth() {
113
+ const fullPath = encodeURIComponent(window.location.toString());
114
+ if (window) {
115
+ window.location.href = `${this.loginUrl}?url=${fullPath}`;
116
+ }
108
117
  }
109
118
  }
110
119
  }
@@ -648,10 +648,10 @@ export default {
648
648
  },
649
649
  {
650
650
  id: 5,
651
- name: "Маркетинг",
652
- dev: "https://marketing.adtdev.kz",
653
- prod: "https://marketing.adata.kz",
654
- staging: "https://marketing.adada.kz",
651
+ name: "Аналитика",
652
+ dev: "https://analytics.adtdev.kz",
653
+ prod: "https://analytics.adata.kz",
654
+ staging: "https://analytics.adada.kz",
655
655
  key: "marketing",
656
656
  children: [
657
657
  {
@@ -467,12 +467,12 @@ export default {
467
467
  "</linearGradient>\n" +
468
468
  "</defs>\n" +
469
469
  "</svg>\n",
470
- title: "Маркетинг",
470
+ title: "Аналитика",
471
471
  module: "marketing",
472
472
  url: {
473
- dev: 'https://marketing.adtdev.kz',
474
- staging: 'https://marketing.adada.kz',
475
- prod: 'https://marketing.adata.kz',
473
+ dev: 'https://analytics.adtdev.kz',
474
+ staging: 'https://analytics.adada.kz',
475
+ prod: 'https://analytics.adata.kz',
476
476
  },
477
477
  links: [
478
478
  {
@@ -520,12 +520,12 @@ export default {
520
520
  if (e) {
521
521
  const currentModule = this.navigations.some((nav) => nav.module === this.module)
522
522
  if (currentModule) {
523
- document.querySelector(`#services-navs #${this.module}`).click()
523
+ document.querySelector(`#services-navs #${this.module}`,{ passive: true }).click()
524
524
  }
525
- document.html.style.overflowY = "hidden"
525
+ document.documentElement.style.overflowY = "hidden"
526
526
  } else {
527
527
  this.showPanelMenu = false
528
- document.html.style.overflowY = "auto"
528
+ document.documentElement.style.overflowY = "auto"
529
529
  }
530
530
  },
531
531
  $route() {
@@ -537,9 +537,9 @@ export default {
537
537
  await this.fetchCurrencies()
538
538
  },
539
539
  mounted() {
540
- this.$refs.arrow.addEventListener("touchstart", evt => this.touchstart(evt))
541
- this.$refs.arrow.addEventListener("touchmove", evt => this.touchmove(evt))
542
- this.$refs.arrow.addEventListener("touchend", () => this.touchend())
540
+ this.$refs.arrow.addEventListener("touchstart", evt => this.touchstart(evt), {passive: true})
541
+ this.$refs.arrow.addEventListener("touchmove", evt => this.touchmove(evt), {passive: true})
542
+ this.$refs.arrow.addEventListener("touchend", () => this.touchend(), {passive: true})
543
543
  },
544
544
  methods: {
545
545
  goTo(module) {
@@ -38,7 +38,7 @@ export default {
38
38
 
39
39
  window.addEventListener('resize', () => {
40
40
  this.checkWidth()
41
- })
41
+ }, {passive: true})
42
42
  },
43
43
  methods: {
44
44
  checkWidth() {
@@ -50,7 +50,7 @@ export default {
50
50
  workTitle: 'Работа',
51
51
  tenderTitle: 'Тендеры',
52
52
  avtoTitle: 'Штрафы',
53
- marketingTitle: 'Маркетинг',
53
+ marketingTitle: 'Аналитика',
54
54
  main: {
55
55
  dev: "adtdev.kz",
56
56
  prod: "adata.kz",
@@ -166,27 +166,27 @@ export default {
166
166
  {
167
167
  id: 1,
168
168
  text: 'Поиск клиентов',
169
- link: `https://marketing.${this.environment}/unload-data`
169
+ link: `https://analytics.${this.environment}/unload-data`
170
170
  },
171
171
  {
172
172
  id: 2,
173
173
  text: 'Анализ закупок',
174
- link: `https://marketing.${this.environment}/purchasing-analysis`
174
+ link: `https://analytics.${this.environment}/purchasing-analysis`
175
175
  },
176
176
  {
177
177
  id: 3,
178
178
  text: 'Индекс деловой активности',
179
- link: `https://marketing.${this.environment}/business-activity`
179
+ link: `https://analytics.${this.environment}/business-activity`
180
180
  },
181
181
  {
182
182
  id: 4,
183
183
  text: 'Рейтинг налогоплательщиков',
184
- link: `https://marketing.${this.environment}/tax-payment`
184
+ link: `https://analytics.${this.environment}/tax-payment`
185
185
  },
186
186
  {
187
187
  id: 5,
188
188
  text: 'Субъекты бизнеса',
189
- link: `https://marketing.${this.environment}/business-entities`
189
+ link: `https://analytics.${this.environment}/business-entities`
190
190
  },
191
191
  ]
192
192
  }
@@ -246,10 +246,11 @@ export default {
246
246
  gap: 32px;
247
247
  justify-content: flex-end;
248
248
  max-width: 1140px;
249
- margin: 0 auto;
250
- padding: 0px 0 20px;
249
+ margin: 0 calc((100vw - 1180px) / 2);
250
+ padding: 0px 20px 20px 0;
251
251
  @media (max-width: 1140px) {
252
252
  justify-content: flex-start;
253
+ margin: 0 auto;
253
254
  gap: 16px;
254
255
  padding: 0 16px 20px
255
256
  }