Skip to content

Commit

Permalink
feat: add light node upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Mar 16, 2022
1 parent 80e1b3d commit aad9a37
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 173 deletions.
4 changes: 2 additions & 2 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ function runServer() {
const app = new Koa()
app.use(serve('static'))
app.use(async (context, next) => {
context.set('Access-Control-Allow-Origin', `http://localhost:${port}`)
context.set('Access-Control-Allow-Origin', `*`)
context.set('Access-Control-Allow-Credentials', 'true')
context.set(
'Access-Control-Allow-Headers',
'Content-Type, Content-Length, Authorization, Accept, X-Requested-With'
)
context.set('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS')
context.set('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS, PATCH')
await next()
})
app.use(koaBodyparser())
Expand Down
24 changes: 12 additions & 12 deletions static/dashboard/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"files": {
"main.css": "./static/css/main.59b0af6f.chunk.css",
"main.js": "./static/js/main.9ebe2102.chunk.js",
"main.js.map": "./static/js/main.9ebe2102.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.1e0e2465.js",
"runtime-main.js.map": "./static/js/runtime-main.1e0e2465.js.map",
"static/js/2.fbb6d67f.chunk.js": "./static/js/2.fbb6d67f.chunk.js",
"static/js/2.fbb6d67f.chunk.js.map": "./static/js/2.fbb6d67f.chunk.js.map",
"static/js/3.e2eeb6c0.chunk.js": "./static/js/3.e2eeb6c0.chunk.js",
"static/js/3.e2eeb6c0.chunk.js.map": "./static/js/3.e2eeb6c0.chunk.js.map",
"main.js": "./static/js/main.9569b243.chunk.js",
"main.js.map": "./static/js/main.9569b243.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.418312b1.js",
"runtime-main.js.map": "./static/js/runtime-main.418312b1.js.map",
"static/js/2.917f37fb.chunk.js": "./static/js/2.917f37fb.chunk.js",
"static/js/2.917f37fb.chunk.js.map": "./static/js/2.917f37fb.chunk.js.map",
"static/js/3.73d858bb.chunk.js": "./static/js/3.73d858bb.chunk.js",
"static/js/3.73d858bb.chunk.js.map": "./static/js/3.73d858bb.chunk.js.map",
"index.html": "./index.html",
"static/css/main.59b0af6f.chunk.css.map": "./static/css/main.59b0af6f.chunk.css.map",
"static/js/2.fbb6d67f.chunk.js.LICENSE.txt": "./static/js/2.fbb6d67f.chunk.js.LICENSE.txt",
"static/js/2.917f37fb.chunk.js.LICENSE.txt": "./static/js/2.917f37fb.chunk.js.LICENSE.txt",
"static/media/App.css": "./static/media/WorkSans-VariableFont_wght.7655b042.ttf",
"static/media/logo.3d1155fe.svg": "./static/media/logo.3d1155fe.svg"
},
"entrypoints": [
"static/js/runtime-main.1e0e2465.js",
"static/js/2.fbb6d67f.chunk.js",
"static/js/runtime-main.418312b1.js",
"static/js/2.917f37fb.chunk.js",
"static/css/main.59b0af6f.chunk.css",
"static/js/main.9ebe2102.chunk.js"
"static/js/main.9569b243.chunk.js"
]
}
147 changes: 1 addition & 146 deletions static/dashboard/index.html
Original file line number Diff line number Diff line change
@@ -1,146 +1 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Bee Dashboard" />
<link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" />
<title>Bee Dashboard</title>
<link href="./static/css/main.59b0af6f.chunk.css" rel="stylesheet" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
!(function (e) {
function r(r) {
for (var n, a, i = r[0], c = r[1], l = r[2], f = 0, p = []; f < i.length; f++)
(a = i[f]), Object.prototype.hasOwnProperty.call(o, a) && o[a] && p.push(o[a][0]), (o[a] = 0)
for (n in c) Object.prototype.hasOwnProperty.call(c, n) && (e[n] = c[n])
for (s && s(r); p.length; ) p.shift()()
return u.push.apply(u, l || []), t()
}
function t() {
for (var e, r = 0; r < u.length; r++) {
for (var t = u[r], n = !0, i = 1; i < t.length; i++) {
var c = t[i]
0 !== o[c] && (n = !1)
}
n && (u.splice(r--, 1), (e = a((a.s = t[0]))))
}
return e
}
var n = {},
o = { 1: 0 },
u = []
function a(r) {
if (n[r]) return n[r].exports
var t = (n[r] = { i: r, l: !1, exports: {} })
return e[r].call(t.exports, t, t.exports, a), (t.l = !0), t.exports
}
;(a.e = function (e) {
var r = [],
t = o[e]
if (0 !== t)
if (t) r.push(t[2])
else {
var n = new Promise(function (r, n) {
t = o[e] = [r, n]
})
r.push((t[2] = n))
var u,
i = document.createElement('script')
;(i.charset = 'utf-8'),
(i.timeout = 120),
a.nc && i.setAttribute('nonce', a.nc),
(i.src = (function (e) {
return a.p + 'static/js/' + ({}[e] || e) + '.' + { 3: 'e2eeb6c0' }[e] + '.chunk.js'
})(e))
var c = new Error()
u = function (r) {
;(i.onerror = i.onload = null), clearTimeout(l)
var t = o[e]
if (0 !== t) {
if (t) {
var n = r && ('load' === r.type ? 'missing' : r.type),
u = r && r.target && r.target.src
;(c.message = 'Loading chunk ' + e + ' failed.\n(' + n + ': ' + u + ')'),
(c.name = 'ChunkLoadError'),
(c.type = n),
(c.request = u),
t[1](c)
}
o[e] = void 0
}
}
var l = setTimeout(function () {
u({ type: 'timeout', target: i })
}, 12e4)
;(i.onerror = i.onload = u), document.head.appendChild(i)
}
return Promise.all(r)
}),
(a.m = e),
(a.c = n),
(a.d = function (e, r, t) {
a.o(e, r) || Object.defineProperty(e, r, { enumerable: !0, get: t })
}),
(a.r = function (e) {
'undefined' != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
Object.defineProperty(e, '__esModule', { value: !0 })
}),
(a.t = function (e, r) {
if ((1 & r && (e = a(e)), 8 & r)) return e
if (4 & r && 'object' == typeof e && e && e.__esModule) return e
var t = Object.create(null)
if (
(a.r(t),
Object.defineProperty(t, 'default', { enumerable: !0, value: e }),
2 & r && 'string' != typeof e)
)
for (var n in e)
a.d(
t,
n,
function (r) {
return e[r]
}.bind(null, n)
)
return t
}),
(a.n = function (e) {
var r =
e && e.__esModule
? function () {
return e.default
}
: function () {
return e
}
return a.d(r, 'a', r), r
}),
(a.o = function (e, r) {
return Object.prototype.hasOwnProperty.call(e, r)
}),
(a.p = './'),
(a.oe = function (e) {
throw (console.error(e), e)
})
var i = (this['webpackJsonp@ethersphere/bee-dashboard'] =
this['webpackJsonp@ethersphere/bee-dashboard'] || []),
c = i.push.bind(i)
;(i.push = r), (i = i.slice())
for (var l = 0; l < i.length; l++) r(i[l])
var s = c
t()
})([])
</script>
<script src="./static/js/2.fbb6d67f.chunk.js"></script>
<script src="./static/js/main.9ebe2102.chunk.js"></script>
</body>
</html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Bee Dashboard"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="manifest" href="./manifest.json"/><title>Bee Dashboard</title><link href="./static/css/main.59b0af6f.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],f=0,p=[];f<i.length;f++)a=i[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(s&&s(r);p.length;)p.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.src=function(e){return a.p+"static/js/"+({}[e]||e)+"."+{3:"73d858bb"}[e]+".chunk.js"}(e);var c=new Error;u=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.name="ChunkLoadError",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(r)},a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="./",a.oe=function(e){throw console.error(e),e};var i=this["webpackJsonp@ethersphere/bee-dashboard"]=this["webpackJsonp@ethersphere/bee-dashboard"]||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var s=c;t()}([])</script><script src="./static/js/2.917f37fb.chunk.js"></script><script src="./static/js/main.9569b243.chunk.js"></script></body></html>
3 changes: 3 additions & 0 deletions static/dashboard/static/js/2.917f37fb.chunk.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions static/dashboard/static/js/2.fbb6d67f.chunk.js

This file was deleted.

Loading

0 comments on commit aad9a37

Please sign in to comment.