remove js-ipfs in electron app, eslint to dev deps (#123)

- add ipfs:// protocol handlers, not enabled for now
- use browser-side auto-js-ipfs for loading from ipfs even in electron app
- deps: bump wabac.js to 2.13.0
- update CHANGES

Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
This commit is contained in:
RangerMauve
2022-10-04 15:54:43 -07:00
committed by GitHub
co-authored by Ilya Kreymer
parent 43122425e5
commit f1df02ea3c
10 changed files with 562 additions and 2801 deletions
+1 -11
View File
@@ -1,5 +1,5 @@
import { LitElement, html, css } from "lit";
import { wrapCss, IS_APP } from "./misc";
import { wrapCss } from "./misc";
import prettyBytes from "pretty-bytes";
@@ -163,16 +163,6 @@ You can select a file to upload from the main page by clicking the 'Choose File.
source = this.loadInfo;
break;
case "ipfs":
if (IS_APP) {
// eslint-disable-next-line no-undef
const url = new URL(__APP_FILE_SERVE_PREFIX__);
const hash = sourceUrl.split("#", 1)[0];
url.searchParams.set("ipfs", hash.slice("ipfs://".length));
source = {sourceUrl, loadUrl: url.href};
}
break;
case "proxy":
sourceUrl = "proxy:" + sourceUrl.slice("proxy://".length);
break;