adata-ui 0.2.8 → 0.3.1

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.2.8",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/public/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>logo.svg">
8
- <title>Adata UI</title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <div id="app"></div>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>logo.svg">
8
+ <title>Adata UI</title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>
@@ -106,6 +106,7 @@ a {
106
106
  background: #BDC7CE4C;
107
107
  font-size: 14px;
108
108
  margin-top: 20px;
109
+ width: 100vw;
109
110
  @media(max-width: 1025px) {
110
111
  background: #F6F6F7;
111
112
  &.paddinged {
@@ -13,7 +13,12 @@
13
13
  <div class="header" :class="{ bordered: isBordered }">
14
14
  <div class="container">
15
15
  <div class="header__left">
16
- <a class="logo" :href="main[mode]">
16
+ <a
17
+ class="logo"
18
+ :href="main[mode]"
19
+ onclick="return false;"
20
+ @click="goToAnotherModule(main[mode])"
21
+ >
17
22
  <svg
18
23
  class="adata-logo"
19
24
  xmlns="http://www.w3.org/2000/svg"
@@ -34,6 +39,8 @@
34
39
  class="menu__wrapper menu__items"
35
40
  :class="{ active: item.key === activeTabKey }"
36
41
  :href="item[mode]"
42
+ @click="goToAnotherModule(item[mode])"
43
+ onclick="return false;"
37
44
  >
38
45
  {{ item.name }}
39
46
  </a>
@@ -589,6 +596,12 @@ export default {
589
596
  this.notificationShow()
590
597
  },
591
598
  methods: {
599
+ goToAnotherModule(url) {
600
+ if(!location.href.includes(url)) {
601
+ this.$emit("changeModule");
602
+ }
603
+ window.open(url, "_self");
604
+ },
592
605
  goAuth() {
593
606
  const fullPath = encodeURIComponent(window.location.toString());
594
607
  if (window) {
@@ -696,6 +709,7 @@ export default {
696
709
  height: 62px;
697
710
  display: flex;
698
711
  align-items: center;
712
+ width: 100vw;
699
713
  @media (max-width: 1025px) {
700
714
  height: 56px;
701
715
  border-bottom: 1px solid #BDC7CE;
@@ -202,6 +202,7 @@ export default {
202
202
  <style scoped lang="scss">
203
203
  .info {
204
204
  position: relative;
205
+ width: 100vw;
205
206
  @media (min-width: 1025px) {
206
207
  height: 30px;
207
208
  }
@@ -242,6 +243,10 @@ export default {
242
243
  background: #FFFFFF;
243
244
  padding: 7px 0;
244
245
  border-bottom: 0.5px solid rgba(189, 199, 206, 0.5);
246
+ max-height: 34px;
247
+ height: 34px;
248
+ display: flex;
249
+ align-items: center;
245
250
  @media (max-width: 1025px) {
246
251
  display: none;
247
252
  }