Skip to content

Commit

Permalink
refactor: remove remains of window.ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 21, 2022
1 parent a848969 commit 830ae1f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 240 deletions.
60 changes: 0 additions & 60 deletions add-on/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -611,66 +611,6 @@
"message": "Open in Files page",
"description": "Checkbox label on the share files page (quickImport_options_openViaWebUI)"
},
"page_proxyAcl_title": {
"message": "Manage Permissions",
"description": "Page title for the IPFS proxy ACL page (page_proxyAcl_title)"
},
"page_proxyAcl_subtitle": {
"message": "View, change and revoke granted access rights to your IPFS instance.",
"description": "Page sub title for the IPFS proxy ACL page (page_proxyAcl_subtitle)"
},
"page_proxyAcl_no_perms": {
"message": "No permissions granted.",
"description": "Message displayed when no permissions have been granted (page_proxyAcl_no_perms)"
},
"page_proxyAcl_confirm_revoke": {
"message": "Revoke permission $1 for $2?",
"description": "Confirmation message for revoking a permission for a scope (page_proxyAcl_confirm_revoke)"
},
"page_proxyAcl_confirm_revoke_all": {
"message": "Revoke all permissions for $1?",
"description": "Confirmation message for revoking all permissions for an scope (page_proxyAcl_confirm_revoke_all)"
},
"page_proxyAcl_toggle_to_allow_button_title": {
"message": "Click to allow",
"description": "Button title for toggling permission from deny to allow (page_proxyAcl_toggle_to_allow_button_title)"
},
"page_proxyAcl_toggle_to_deny_button_title": {
"message": "Click to deny",
"description": "Button title for toggling permission from allow to deny (page_proxyAcl_toggle_to_deny_button_title)"
},
"page_proxyAcl_allow_button_value": {
"message": "Allow",
"description": "Button value for allow (page_proxyAcl_allow_button_value)"
},
"page_proxyAcl_deny_button_value": {
"message": "Deny",
"description": "Button value for deny"
},
"page_proxyAcl_revoke_button_title": {
"message": "Revoke $1",
"description": "Button title for revoking a permission (page_proxyAcl_revoke_button_title)"
},
"page_proxyAccessDialog_title": {
"message": "Should IPFS Companion allow «$1» to access «$2» at the connected node?",
"description": "Main title of the access permission dialog (page_proxyAccessDialog_title)"
},
"page_proxyAccessDialog_wildcardCheckbox_label": {
"message": "Apply this decision to all current and future permissions in this scope",
"description": "Label for the apply permissions to all checkbox (page_proxyAccessDialog_wildcardCheckbox_label)"
},
"page_proxyAcl_revoke_all_button_title": {
"message": "Revoke all permissions",
"description": "Button title for revoking all permissions (page_proxyAcl_revoke_all_button_title)"
},
"page_proxyAccessDialog_allowButton_text": {
"message": "Allow",
"description": "Button text for allowing a permission (page_proxyAccessDialog_allowButton_text)"
},
"page_proxyAccessDialog_denyButton_text": {
"message": "Deny",
"description": "Button text for denying a permission (page_proxyAccessDialog_allowButton_text)"
},
"page_landingWelcome_title": {
"message": "Welcome | IPFS Companion",
"description": "Page title (page_landingWelcome_title)"
Expand Down
18 changes: 0 additions & 18 deletions add-on/src/pages/proxy-access-dialog/index.html

This file was deleted.

20 changes: 0 additions & 20 deletions add-on/src/pages/proxy-access-dialog/index.js

This file was deleted.

63 changes: 0 additions & 63 deletions add-on/src/pages/proxy-access-dialog/page.js

This file was deleted.

15 changes: 0 additions & 15 deletions add-on/src/pages/proxy-access-dialog/proxy-access-dialog.css

This file was deleted.

33 changes: 0 additions & 33 deletions add-on/src/pages/proxy-access-dialog/store.js

This file was deleted.

31 changes: 0 additions & 31 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ const uiConfig = merge(commonConfig, {
browserAction: './add-on/src/popup/browser-action/index.js',
importPage: './add-on/src/popup/quick-import.js',
optionsPage: './add-on/src/options/options.js',
// TODO: remove or fix (window.ipfs) proxyAclManagerPage: './add-on/src/pages/proxy-acl/index.js',
// TODO: remove or fix (window.ipfs) proxyAclDialog: './add-on/src/pages/proxy-access-dialog/index.js',
welcomePage: './add-on/src/landing-pages/welcome/index.js'
},
optimization: {
Expand All @@ -178,43 +176,14 @@ const uiConfig = merge(commonConfig, {
const contentScriptsConfig = merge(commonConfig, {
name: 'contentScripts',
entry: {
// TODO: remove or fix (window.ipfs) ipfsProxyContentScriptPayload: './add-on/src/contentScripts/ipfs-proxy/page.js',
linkifyContentScript: './add-on/src/contentScripts/linkifyDOM.js'
}
})

// special content script that injects window.ipfs into REAL window object
// (by default scripts executed via tabs.executeScript get a sandbox version)
/* TODO: remove or fix - depending what we do with window.ipfs
const proxyContentScriptConfig = merge(commonConfig, {
name: 'proxyContentScript',
dependencies: ['contentScripts'],
entry: {
// below is just a loader for ipfsProxyContentScriptPayload
ipfsProxyContentScript: './add-on/src/contentScripts/ipfs-proxy/content.js'
},
module: {
rules: [
{
exclude: /node_modules/,
test: /\.js$/,
use: ['babel-loader']
},
{
// payload is already in bundled form, so we load raw code as-is
test: /ipfsProxyContentScriptPayload\.bundle\.js$/,
loader: 'raw-loader'
}
]
}
})
*/

const config = [
bgConfig,
uiConfig,
contentScriptsConfig
// TODO: remove or fix (window.ipfs) proxyContentScriptConfig
]

export default config

0 comments on commit 830ae1f

Please sign in to comment.