Skip to content

Commit

Permalink
Update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
wliyongfeng committed Mar 30, 2020
1 parent 62bcaed commit ede2a09
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 22 deletions.
30 changes: 15 additions & 15 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"files": {
"main.css": "/static/css/main.08a032af.chunk.css",
"main.js": "/static/js/main.fc07b869.chunk.js",
"main.js.map": "/static/js/main.fc07b869.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.99516cff.js",
"runtime-main.js.map": "/static/js/runtime-main.99516cff.js.map",
"static/js/2.35c70137.chunk.js": "/static/js/2.35c70137.chunk.js",
"static/js/2.35c70137.chunk.js.map": "/static/js/2.35c70137.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.bdbbafbc75b4e6af0053004ebb4b13b8.js": "/precache-manifest.bdbbafbc75b4e6af0053004ebb4b13b8.js",
"service-worker.js": "/service-worker.js",
"static/css/main.08a032af.chunk.css.map": "/static/css/main.08a032af.chunk.css.map",
"static/media/index.scss": "/static/media/iconfont.b80c0833.woff"
"main.css": "./static/css/main.587a9b51.chunk.css",
"main.js": "./static/js/main.fc07b869.chunk.js",
"main.js.map": "./static/js/main.fc07b869.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.7c4fddc2.js",
"runtime-main.js.map": "./static/js/runtime-main.7c4fddc2.js.map",
"static/js/2.b6d2261f.chunk.js": "./static/js/2.b6d2261f.chunk.js",
"static/js/2.b6d2261f.chunk.js.map": "./static/js/2.b6d2261f.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.bdfb359cdc2a4f4ff7f0e88ad4737ea8.js": "./precache-manifest.bdfb359cdc2a4f4ff7f0e88ad4737ea8.js",
"service-worker.js": "./service-worker.js",
"static/css/main.587a9b51.chunk.css.map": "./static/css/main.587a9b51.chunk.css.map",
"static/media/index.scss": "./static/media/iconfont.b80c0833.woff"
},
"entrypoints": [
"static/js/runtime-main.99516cff.js",
"static/js/2.35c70137.chunk.js",
"static/css/main.08a032af.chunk.css",
"static/js/runtime-main.7c4fddc2.js",
"static/js/2.b6d2261f.chunk.js",
"static/css/main.587a9b51.chunk.css",
"static/js/main.fc07b869.chunk.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/manifest.json"/><title>ChainX Signer</title><link href="/static/css/main.08a032af.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(a){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],i=0,l=[];i<n.length;i++)t=n[i],Object.prototype.hasOwnProperty.call(c,t)&&c[t]&&l.push(c[t][0]),c[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(a[r]=o[r]);for(s&&s(e);l.length;)l.shift()();return p.push.apply(p,u||[]),f()}function f(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==c[u]&&(n=!1)}n&&(p.splice(r--,1),e=i(i.s=t[0]))}return e}var t={},c={1:0},p=[];function i(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return a[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=a,i.c=t,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(r,e){if(1&e&&(r=i(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)i.d(t,n,function(e){return r[e]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/";var r=this["webpackJsonpchainx-signer"]=this["webpackJsonpchainx-signer"]||[],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;f()}([])</script><script src="/static/js/2.35c70137.chunk.js"></script><script src="/static/js/main.fc07b869.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="./manifest.json"/><title>ChainX Signer</title><link href="./static/css/main.587a9b51.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(a){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],i=0,l=[];i<n.length;i++)t=n[i],Object.prototype.hasOwnProperty.call(c,t)&&c[t]&&l.push(c[t][0]),c[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(a[r]=o[r]);for(s&&s(e);l.length;)l.shift()();return p.push.apply(p,u||[]),f()}function f(){for(var e,r=0;r<p.length;r++){for(var t=p[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==c[u]&&(n=!1)}n&&(p.splice(r--,1),e=i(i.s=t[0]))}return e}var t={},c={1:0},p=[];function i(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return a[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=a,i.c=t,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(r,e){if(1&e&&(r=i(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)i.d(t,n,function(e){return r[e]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="./";var r=this["webpackJsonpchainx-signer"]=this["webpackJsonpchainx-signer"]||[],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;f()}([])</script><script src="./static/js/2.b6d2261f.chunk.js"></script><script src="./static/js/main.fc07b869.chunk.js"></script></body></html>
4 changes: 2 additions & 2 deletions build/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.bdbbafbc75b4e6af0053004ebb4b13b8.js"
"./precache-manifest.bdfb359cdc2a4f4ff7f0e88ad4737ea8.js"
);

self.addEventListener('message', (event) => {
Expand All @@ -33,7 +33,7 @@ workbox.core.clientsClaim();
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {

blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/],
});
22 changes: 18 additions & 4 deletions electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ const isDev = require('electron-is-dev')

let mainWindow

const gotTheLock = app.requestSingleInstanceLock()

if (!gotTheLock) {
app.quit()
return
}

app.on('second-instance', () => {
// Someone tried to run a second instance, we should focus our window.
if (mainWindow) {
if (mainWindow.isMinimized()) mainWindow.restore()
mainWindow.focus()
}
})

function isWin() {
return process.platform === 'win32'
}
Expand Down Expand Up @@ -40,13 +55,12 @@ function createWindow() {
electron.globalShortcut.register('CommandOrControl+Shift+I', () => {
mainWindow.openDevTools()
})
electron.globalShortcut.register('CommandOrControl+R', () => {
mainWindow.reload()
})
}

const restoreInstance = () => {
if (mainWindow.isMinimized()) mainWindow.restore()
if (mainWindow.isMinimized()) {
mainWindow.restore()
}
mainWindow.show()
}

Expand Down

0 comments on commit ede2a09

Please sign in to comment.