-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: necromancy to restore MV2 build (#1054)
- removed yarn and all the hackery around transitive dependency overrides - bumped all dependencies - switched to ipfs-core for less deps - removed unused deps - firefox manifest fix to pass latest webext lint - removed remaining window.ipfs code that was pulling dead dependencies (ipfs/in-web-browsers#172) - fixed tests (#1101) - and much more Co-authored-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
- Loading branch information
Showing
123 changed files
with
38,904 additions
and
18,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
/node_modules | ||
/add-on/dist | ||
/firefox | ||
/package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/vendor | ||
/node_modules | ||
/package-lock.json | ||
/yarn.lock | ||
/firefox | ||
/cache | ||
/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:14.15.4 | ||
FROM node:18.12.1 | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
'use strict' | ||
/* eslint-env browser, webextensions */ | ||
|
||
const browser = require('webextension-polyfill') | ||
const { onInstalled } = require('../lib/on-installed') | ||
const { getUninstallURL } = require('../lib/on-uninstalled') | ||
const { optionDefaults } = require('../lib/options') | ||
import browser from 'webextension-polyfill' | ||
import { onInstalled } from '../lib/on-installed.js' | ||
import { getUninstallURL } from '../lib/on-uninstalled.js' | ||
import { optionDefaults } from '../lib/options.js' | ||
import createIpfsCompanion from '../lib/ipfs-companion.js' | ||
|
||
// register lifecycle hooks early, otherwise we miss first install event | ||
browser.runtime.onInstalled.addListener(onInstalled) | ||
browser.runtime.setUninstallURL(getUninstallURL(browser)) | ||
|
||
// init add-on after all libs are loaded | ||
document.addEventListener('DOMContentLoaded', async () => { | ||
// setting debug level early | ||
localStorage.debug = (await browser.storage.local.get({ logNamespaces: optionDefaults.logNamespaces })).logNamespaces | ||
// setting debug namespaces require page reload to get applied | ||
const debugNs = (await browser.storage.local.get({ logNamespaces: optionDefaults.logNamespaces })).logNamespaces | ||
if (debugNs !== localStorage.debug) { | ||
localStorage.debug = debugNs | ||
window.location.reload() | ||
} | ||
// init inlined to read updated localStorage.debug | ||
const createIpfsCompanion = require('../lib/ipfs-companion') | ||
window.ipfsCompanion = await createIpfsCompanion() | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.