Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdurrent committed Apr 15, 2021
1 parent 8f92fed commit 4f02209
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 42 deletions.
8 changes: 4 additions & 4 deletions docs/android.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"zh": {
"docs": {
"version": "1.5.0",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand All @@ -13,8 +13,8 @@

"en": {
"docs": {
"version": "1.5.0",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand Down
6 changes: 3 additions & 3 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "./static/css/main.8cf1853d.chunk.css",
"main.js": "./static/js/main.1b09b402.chunk.js",
"main.js": "./static/js/main.1e9a7ed3.chunk.js",
"runtime~main.js": "./static/js/runtime~main.ca7cb530.js",
"static/css/2.d6e5dedb.chunk.css": "./static/css/2.d6e5dedb.chunk.css",
"static/js/2.6c1f724b.chunk.js": "./static/js/2.6c1f724b.chunk.js",
"index.html": "./index.html",
"precache-manifest.f980284bcd1cee60b29d9c5644afed6f.js": "./precache-manifest.f980284bcd1cee60b29d9c5644afed6f.js",
"precache-manifest.fcd45b43de7ef7932bbcce892696c786.js": "./precache-manifest.fcd45b43de7ef7932bbcce892696c786.js",
"service-worker.js": "./service-worker.js",
"static/js/0.93946bfa.chunk.worker.js": "./static/js/0.93946bfa.chunk.worker.js",
"static/js/1.2b24d25f.chunk.worker.js": "./static/js/1.2b24d25f.chunk.worker.js",
"static/js/1.0eb902b2.chunk.worker.js": "./static/js/1.0eb902b2.chunk.worker.js",
"static/media/EUSDT.png": "./static/media/EUSDT.0a5458ff.png",
"static/media/EWBTC.png": "./static/media/EWBTC.9091f9fa.png",
"static/media/EWETH.png": "./static/media/EWETH.f4891222.png",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="google" value="notranslate"><meta content="width=device-width,initial-scale=1,maximum-scale=1,viewport-fit=cover,shrink-to-fit=no" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="yes" name="mobile-web-app-capable"><meta content="telephone=no" name="format-detection"><meta name="mobile-web-app-capable" content="yes"><meta content="white" name="apple-mobile-web-app-status-bar-style"><meta content="webkit" name="renderer"><meta name="theme-color" content="#000000"><link rel="shortcut icon" href="./assets/for-apple/touch/icon_64.png" type="image/x-icon"><link rel="icon" sizes="180x180" href="./assets/for-apple/touch/icon_180.png"><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_120.png" sizes="120x120"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_152.png" sizes="152x152"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_167.png" sizes="167x167"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_180.png" sizes="180x180"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_234.png" sizes="234x234"/><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./icon32.png"><script src="https://at.alicdn.com/t/font_1427380_vzz7huwc4rj.js"></script><title>SERO Popup</title><script type="application/javascript" src="./js/index.js"></script><script type="application/javascript">document.addEventListener("plusready",function(){plus.navigator.setStatusBarBackground("#F7F7F7"),plus.navigator.setStatusBarStyle("dark"),plus.nativeUI.closeWaiting(),plus.navigator.closeSplashscreen()}),document.addEventListener("newintent",onNetIntentEv,!1),document.addEventListener("resume",onNetIntentEv,!1),document.addEventListener("foreground",onNetIntentEv,!1);var a=window.location.href,search=location.search;if(-1<a.indexOf("popup.sero.cash")){var localUtc=(new Date).getTimezoneOffset()/60;-8===localUtc&&-1===a.indexOf("http://129.211.98.114:3005")&&-1===a.indexOf("127.0.0.1")&&-1===a.indexOf("localhost")&&-1===a.indexOf("192.168")&&(window.location.href="http://129.211.98.114:3005/")}Index.init()</script><link href="./static/css/2.d6e5dedb.chunk.css" rel="stylesheet"><link href="./static/css/main.8cf1853d.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(f){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],p=0,l=[];p<n.length;p++)t=n[p],Object.prototype.hasOwnProperty.call(a,t)&&a[t]&&l.push(a[t][0]),a[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(f[r]=o[r]);for(s&&s(e);l.length;)l.shift()();return c.push.apply(c,u||[]),i()}function i(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==a[u]&&(n=!1)}n&&(c.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},a={1:0},c=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="./";var r=window.webpackJsonppopup=window.webpackJsonppopup||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;i()}([])</script><script src="./static/js/2.6c1f724b.chunk.js"></script><script src="./static/js/main.1b09b402.chunk.js"></script></body><script async src="https://www.googletagmanager.com/gtag/js?id=G-HVV9BKB9N2"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-HVV9BKB9N2")</script></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="google" value="notranslate"><meta content="width=device-width,initial-scale=1,maximum-scale=1,viewport-fit=cover,shrink-to-fit=no" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="yes" name="mobile-web-app-capable"><meta content="telephone=no" name="format-detection"><meta name="mobile-web-app-capable" content="yes"><meta content="white" name="apple-mobile-web-app-status-bar-style"><meta content="webkit" name="renderer"><meta name="theme-color" content="#000000"><link rel="shortcut icon" href="./assets/for-apple/touch/icon_64.png" type="image/x-icon"><link rel="icon" sizes="180x180" href="./assets/for-apple/touch/icon_180.png"><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_120.png" sizes="120x120"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_152.png" sizes="152x152"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_167.png" sizes="167x167"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_180.png" sizes="180x180"/><link rel="apple-touch-icon" href="./assets/for-apple/touch/icon_234.png" sizes="234x234"/><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./icon32.png"><script src="https://at.alicdn.com/t/font_1427380_vzz7huwc4rj.js"></script><title>SERO Popup</title><script type="application/javascript" src="./js/index.js"></script><script type="application/javascript">document.addEventListener("plusready",function(){plus.navigator.setStatusBarBackground("#F7F7F7"),plus.navigator.setStatusBarStyle("dark"),plus.nativeUI.closeWaiting(),plus.navigator.closeSplashscreen()}),document.addEventListener("newintent",onNetIntentEv,!1),document.addEventListener("resume",onNetIntentEv,!1),document.addEventListener("foreground",onNetIntentEv,!1);var a=window.location.href,search=location.search;if(-1<a.indexOf("popup.sero.cash")){var localUtc=(new Date).getTimezoneOffset()/60;-8===localUtc&&-1===a.indexOf("http://129.211.98.114:3005")&&-1===a.indexOf("127.0.0.1")&&-1===a.indexOf("localhost")&&-1===a.indexOf("192.168")&&(window.location.href="http://129.211.98.114:3005/")}Index.init()</script><link href="./static/css/2.d6e5dedb.chunk.css" rel="stylesheet"><link href="./static/css/main.8cf1853d.chunk.css" rel="stylesheet"></head><body><div id="root"></div><script>!function(f){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],p=0,l=[];p<n.length;p++)t=n[p],Object.prototype.hasOwnProperty.call(a,t)&&a[t]&&l.push(a[t][0]),a[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(f[r]=o[r]);for(s&&s(e);l.length;)l.shift()();return c.push.apply(c,u||[]),i()}function i(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==a[u]&&(n=!1)}n&&(c.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},a={1:0},c=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="./";var r=window.webpackJsonppopup=window.webpackJsonppopup||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;i()}([])</script><script src="./static/js/2.6c1f724b.chunk.js"></script><script src="./static/js/main.1e9a7ed3.chunk.js"></script></body><script async src="https://www.googletagmanager.com/gtag/js?id=G-HVV9BKB9N2"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-HVV9BKB9N2")</script></html>
14 changes: 8 additions & 6 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"id" : "cash.sero.popup.community", /*应用的标识*/
"name" : "SERO Popup Community", /*应用名称,程序桌面图标名称*/
"version" : {
"name" : "1.5.0", /*应用版本名称*/
"code" : 187

"name" : "1.5.1", /*应用版本名称*/
"code" : 188
},
"description" : "", /*应用描述信息*/
"icons" : {
Expand Down Expand Up @@ -138,7 +137,8 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
},
/*使用Native.js调用原生安卓API需要使用到的系统权限*/
"orientation" : [ "portrait-primary" ], /*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
Expand Down Expand Up @@ -231,10 +231,12 @@
}
},
"plugins" : {
"speech" : {}
"speech" : {},
"ad" : {}
}
},
"screenOrientation" : [ "portrait-primary" ]
},
"fullscreen" : false
"fullscreen" : false,
"screenOrientation" : [ "portrait-primary" ]
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "c06e5d02e3a51fa8c60a3fb4e6a9d962",
"revision": "38203810f198eaa58542bb56645517d7",
"url": "./index.html"
},
{
"revision": "2034190b1d0b9d39afd6",
"url": "./static/css/2.d6e5dedb.chunk.css"
},
{
"revision": "e12ddcbddbeeeaa6b997",
"revision": "0b6aded7e77367dee73d",
"url": "./static/css/main.8cf1853d.chunk.css"
},
{
"revision": "53077675cd7234567164f167c460753a",
"url": "./static/js/0.93946bfa.chunk.worker.js"
},
{
"revision": "b21ec4b5908979b4be371cfeace388a5",
"url": "./static/js/1.2b24d25f.chunk.worker.js"
"revision": "cdbc2b07f3ba011c863fb7f8d1c7a898",
"url": "./static/js/1.0eb902b2.chunk.worker.js"
},
{
"revision": "2034190b1d0b9d39afd6",
"url": "./static/js/2.6c1f724b.chunk.js"
},
{
"revision": "e12ddcbddbeeeaa6b997",
"url": "./static/js/main.1b09b402.chunk.js"
"revision": "0b6aded7e77367dee73d",
"url": "./static/js/main.1e9a7ed3.chunk.js"
},
{
"revision": "f8219e59cd933c2cdcd1",
Expand Down
2 changes: 1 addition & 1 deletion docs/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"./precache-manifest.f980284bcd1cee60b29d9c5644afed6f.js"
"./precache-manifest.fcd45b43de7ef7932bbcce892696c786.js"
);

self.addEventListener('message', (event) => {
Expand Down
1 change: 1 addition & 0 deletions docs/static/js/1.0eb902b2.chunk.worker.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/static/js/1.2b24d25f.chunk.worker.js

This file was deleted.

Large diffs are not rendered by default.

Binary file not shown.
8 changes: 4 additions & 4 deletions docs/version.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"zh": {
"docs": {
"version": "1.5.0",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand All @@ -13,8 +13,8 @@

"en": {
"docs": {
"version": "1.5.0",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand Down
8 changes: 4 additions & 4 deletions public/android.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"zh": {
"docs": {
"version": "1.5.0",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand All @@ -13,8 +13,8 @@

"en": {
"docs": {
"version": "1.5.0",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"id" : "cash.sero.popup.community", /*应用的标识*/
"name" : "SERO Popup Community", /*应用名称,程序桌面图标名称*/
"version" : {
"name" : "1.5.0", /*应用版本名称*/
"code" : 187
"name" : "1.5.1", /*应用版本名称*/
"code" : 188

},
"description" : "", /*应用描述信息*/
Expand Down
8 changes: 4 additions & 4 deletions public/version.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"zh": {
"docs": {
"version": "1.5.0",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-1259797294.file.myqcloud.com/popup/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand All @@ -13,8 +13,8 @@

"en": {
"docs": {
"version": "1.5.0",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.0/cash.sero.popup.community.wgt",
"version": "1.5.1",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.5.1/cash.sero.popup.community.wgt",
"show": false,
"description": [
]
Expand Down
11 changes: 6 additions & 5 deletions src/views/home/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,14 @@ class Home extends Component {
let syncState = "check-circle"
let stateColor="green"

const percent = healthData.currentBlock && healthData.startBlock ?(healthData.currentBlock-healthData.startBlock)/(latestBlock-healthData.startBlock):healthData.latestBlock/latestBlock;
let percentSync = percent < 1 ? percent * 0.9 : percent
const percent = healthData.currentBlock && healthData.startBlock&&healthData.startBlock<healthData.currentBlock
?(healthData.currentBlock-healthData.startBlock)/(latestBlock-healthData.startBlock):healthData.currentBlock/latestBlock;
let percentSync = percent * 0.9
if(healthData.checkNilPercent && healthData.checkNilPercent>0){
percentSync += healthData.checkNilPercent*0.09;
}
let stateDesc = `${lang.e().toast.loading.synchronizing}${lang.e().page.wallet.PKr} [${healthData && healthData.pkrIndex}]`;
if(percent<1 && healthData.startBlock<latestBlock-100){
if(healthData.startBlock<latestBlock-100){
stateDesc = `${lang.e().toast.loading.synchronizing}${lang.e().page.wallet.PKr} [${healthData && healthData.pkrIndex}](${(percentSync * 100).toFixed(2)}%)`;
}
if(healthy === "normal"){
Expand All @@ -308,7 +309,7 @@ class Home extends Component {
const tempConfirmMap = new Map();
for(let [k,v] of confirmingMap){
tempConfirmMap.set(k,v)
};
}

if (current && detail) {
mainPKr = detail.mainPKr;
Expand Down Expand Up @@ -518,7 +519,7 @@ class Home extends Component {
</Card>
</div>

{percent<1 && healthy === "syncing" && healthData.startBlock<latestBlock-100 && <Progress percent={percentSync * 100} className="sync-progress"/>}
{healthy === "syncing" && healthData.startBlock<latestBlock-100 && <Progress percent={percentSync * 100} className="sync-progress"/>}
<div className="am-list">
<div className="am-list-header" style={{background: "#fdfdfd"}}>
<div className="home-list-title">
Expand Down

0 comments on commit 4f02209

Please sign in to comment.