1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00
This commit is contained in:
Steffo 2020-06-25 20:58:06 +02:00
parent 8706a9a483
commit 81fe6a7055
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
18 changed files with 27 additions and 21 deletions

View file

@ -1 +0,0 @@
/*! For license information please see bundle.236c2.esm.js.LICENSE.txt */

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
docs/bundle.b4a06.js.map Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
/*! For license information please see bundle.c796b.esm.js.LICENSE.txt */

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.236c2.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.c796b.esm.js","sourceRoot":""}

View file

@ -1 +1 @@
<!DOCTYPE html><html lang="it"><head><meta charset="utf-8"><title>bluelib</title><meta name="viewport" content="width=device-width,initial-scale=1"><style>body{background-color:#0d193b;color:#a0ccff}</style><link rel="manifest" href="/manifest.json"><link href="/bundle.280c0.css" rel="preload" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/bundle.280c0.css"></noscript></head><body><script type="__PREACT_CLI_DATA__">{"preRenderData":{"url":"/"}}</script><script nomodule="">!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script><script crossorigin="anonymous" src="/bundle.236c2.esm.js" type="module"></script><script nomodule="" src="/polyfills.ac517.js"></script><script nomodule="" defer="defer" src="/bundle.9edcf.js"></script></body></html>
<!DOCTYPE html><html lang="it"><head><meta charset="utf-8"><title>bluelib</title><meta name="viewport" content="width=device-width,initial-scale=1"><style>body{background-color:#0d193b;color:#a0ccff}</style><link rel="manifest" href="/manifest.json"><link href="/bundle.280c0.css" rel="preload" as="style" onload="this.rel='stylesheet'"><noscript><link rel="stylesheet" href="/bundle.280c0.css"></noscript></head><body><script type="__PREACT_CLI_DATA__">{"preRenderData":{"url":"/"}}</script><script nomodule="">!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script><script crossorigin="anonymous" src="/bundle.c796b.esm.js" type="module"></script><script nomodule="" src="/polyfills.ac517.js"></script><script nomodule="" defer="defer" src="/bundle.b4a06.js"></script></body></html>

View file

@ -1 +1 @@
{"/":{"bundle.280c0.css":{"type":"style","weight":1},"bundle.236c2.esm.js":{"type":"script","weight":1}},"/Sample":{"bundle.280c0.css":{"type":"style","weight":1},"bundle.236c2.esm.js":{"type":"script","weight":1},"route-Sample.chunk.5440c.esm.js":{"type":"script","weight":0.9},"route-Sample.chunk.6e286.css":{"type":"style","weight":0.9}}}
{"/":{"bundle.280c0.css":{"type":"style","weight":1},"bundle.c796b.esm.js":{"type":"script","weight":1}},"/Sample":{"bundle.280c0.css":{"type":"style","weight":1},"bundle.c796b.esm.js":{"type":"script","weight":1},"route-Sample.chunk.af17f.esm.js":{"type":"script","weight":0.9},"route-Sample.chunk.6e286.css":{"type":"style","weight":0.9}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Sample.chunk.5440c.esm.js","sourceRoot":""}
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Sample.chunk.af17f.esm.js","sourceRoot":""}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
{
"private": false,
"name": "bluelib",
"version": "0.13.8",
"version": "0.13.9",
"license": "AGPL-3.0-or-later",
"source": "src/index.js",
"main": "dist/index.js",

View file

@ -21,6 +21,8 @@ export default function(method, path, body) {
}
function refresh() {
console.debug(`Refresh: ${instanceUrl} | ${method} | ${path} | ${body}`)
setData(undefined);
setError(undefined);
@ -30,7 +32,11 @@ export default function(method, path, body) {
let abort = new AbortController();
setInstanceTesterAbort(abort);
royalnetApiRequest(instanceUrl, method, path, body, abort.signal).then(d => setData(d)).catch((e => setError(e)));
royalnetApiRequest(instanceUrl, method, path, body, abort.signal).then(
d => setData(d)
).catch(
e => setError(e)
);
}
useDeepCompareEffect(() => {