Skip to content

Commit

Permalink
fix bug: update the url of blockchain overview and fix the issues of …
Browse files Browse the repository at this point in the history
…codecy (#630)
  • Loading branch information
wwwanhai authored Jun 30, 2020
1 parent ec8f868 commit 85ae2d1
Show file tree
Hide file tree
Showing 36 changed files with 1,132 additions and 1,075 deletions.
2 changes: 1 addition & 1 deletion weevent-governance/web/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const os = require('os')
var needHost = ''

try {
let network = os.networkInterfaces()
const network = os.networkInterfaces()
needHost = network[Object.keys(network)[0]][1].address
} catch (e) {
needHost = 'localhost'
Expand Down
7 changes: 3 additions & 4 deletions weevent-governance/web/src/API/BaseModel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios'
import {Message} from 'element-ui'
import { Message } from 'element-ui'
import qs from 'qs'
import store from '../store'
import i18n from '../i18n/index'
Expand Down Expand Up @@ -34,8 +34,8 @@ class BaseModule {

this.$http.interceptors.response.use(config => {
return new Promise((resolve, reject) => {
let data = config.data
let status = config.status
const data = config.data
const status = config.status
if (((status >= 200 && status < 300) || status === 302) && data) {
if (data.code === 302000) {
store.commit('back', true)
Expand Down Expand Up @@ -67,7 +67,6 @@ class BaseModule {
duration: 0,
showClose: true
}))
return error
} else {
store.commit('set_Msg', Message({
type: 'error',
Expand Down
5 changes: 3 additions & 2 deletions weevent-governance/web/src/API/api.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

{
"login": {
"method": "post",
"url": "user/login",
"headers": {"Content-Type": "application/x-www-form-urlencoded"}
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
}
},
"getVersion": {
"method": "get",
Expand Down
16 changes: 8 additions & 8 deletions weevent-governance/web/src/API/blockChainAPI.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"getAll": {
"methods": "get",
"url": "weevent-broker-mgr/group/all"
"url": "weevent-broker/admin/group/all"
},
"nodeList": {
"methods": "get",
"url": "weevent-broker-mgr/node/nodeList"
"url": "weevent-broker/admin/node/nodeList"
},
"general": {
"methods": "get",
"url": "weevent-broker-mgr/group/general"
"url": "weevent-broker/admin/group/general"
},
"transDaily": {
"methods": "get",
"url": "weevent-broker-mgr/group/transDaily"
"url": "weevent-broker/admin/group/transDaily"
},
"transList": {
"methods": "get",
"url": "weevent-broker-mgr/transaction/transList"
"url": "weevent-broker/admin/transaction/transList"
},
"blockList": {
"methods": "get",
"url": "weevent-broker-mgr/block/blockList"
"url": "weevent-broker/admin/block/blockList"
},
"blockByNumber": {
"methods": "get",
"url": "weevent-broker-mgr/block/blockByNumber"
"url": "weevent-broker/admin/block/blockByNumber"
},
"getEvent": {
"methods": "get",
"url": "weevent-broker-mgr/block/transactionReceipt"
"url": "weevent-broker/admin/block/transactionReceipt"
}
}
2 changes: 1 addition & 1 deletion weevent-governance/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
},
beforeCreate () {
if (self === top) {
let antiCLickjack = document.getElementById('app')
const antiCLickjack = document.getElementById('app')
antiCLickjack.parentNode.removeChild(antiCLickjack)
} else {
top.location = self.location
Expand Down
120 changes: 60 additions & 60 deletions weevent-governance/web/src/assets/less/animation.less
Original file line number Diff line number Diff line change
@@ -1,152 +1,152 @@
@keyframes arrowChange-right {
from{
from {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to{
to {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
}

@-webkit-keyframes arrowChange-right {
from{
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to{
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
}
from {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
}

@-moz-keyframes arrowChange-right {
from{
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to{
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
@-moz-keyframes arrowChange-right {
from {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
}

@-o-keyframes arrowChange-right {
from{
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to{
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
from {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
to {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
}

@keyframes arrowChange-left {
from{
from {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
to{
to {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
}

@-webkit-keyframes arrowChange-left {
from{
from {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
to{
to {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
}

@-moz-keyframes arrowChange-left {
from{
from {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
to{
to {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
}

@-o-keyframes arrowChange-left{
from{
@-o-keyframes arrowChange-left {
from {
transform: rotate(225deg);
-webkit-transform: rotate(225deg);
}
to{
to {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
}

@arrow-right:{
animation: arrowChange-right 0.3s ;
-moz-animation: arrowChange-right 0.3s ;
-webkit-animation: arrowChange-right 0.3s ;
-o-animation: arrowChange-right 0.3s ;
@arrow-right: {
animation: arrowChange-right 0.3s;
-moz-animation: arrowChange-right 0.3s;
-webkit-animation: arrowChange-right 0.3s;
-o-animation: arrowChange-right 0.3s;
};

@arrow-left:{
animation: arrowChange-left 0.3s ;
-moz-animation: arrowChange-left 0.3s ;
-webkit-animation: arrowChange-left 0.3s ;
-o-animation: arrowChange-left 0.3s ;
animation: arrowChange-left 0.3s;
-moz-animation: arrowChange-left 0.3s;
-webkit-animation: arrowChange-left 0.3s;
-o-animation: arrowChange-left 0.3s;
}

@keyframes show-error {
from{
transform:translateY(-24px);
from {
transform: translateY(-24px);
-webkit-transform: translateY(-24px);
}
to{
transform:translateY(0);
to {
transform: translateY(0);
-webkit-transform: translateY(0);
}
}

@-webkit-keyframes show-error {
from{
from {
transform:translateY(-24px);
-webkit-transform: translateY(-24px);
}
to{
to {
transform:translateY(0);
-webkit-transform: translateY(0);
}
}

@-moz-keyframes show-error {
from{
from {
transform:translateY(-24px);
-webkit-transform: translateY(-24px);
}
to{
to {
transform:translateY(0);
-webkit-transform: translateY(0);
}
}

@-o-keyframes show-error {
from{
from {
transform:translateY(-24px);
-webkit-transform: translateY(-24px);
}
to{
to {
transform:translateY(0);
-webkit-transform: translateY(0);
}
}

@show-error:{
animation: show-error 0.3s ;
-moz-animation: show-error 0.3s ;
-webkit-animation: show-error 0.3s ;
-o-animation: show-error 0.3s ;
animation: show-error 0.3s;
-moz-animation: show-error 0.3s;
-webkit-animation: show-error 0.3s;
-o-animation: show-error 0.3s;
}
11 changes: 5 additions & 6 deletions weevent-governance/web/src/assets/less/color.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
@dig_bg_blue:#eefbff;
@dig_border_blue:#6ac4f8;

@shadow:{
-webkit-box-shadow: rgba(0,0,0,0.2) 0px 0px 20px;
-moz-box-shadow: rgba(0,0,0,0.2) 0px 0px 20px;
box-shadow: rgba(0,0,0,0.2) 0px 0px 20px;
}

@shadow: {
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px;
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px;
}
Loading

0 comments on commit 85ae2d1

Please sign in to comment.