-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1166 from dis-moi/feat/lmel_manifest
feat: Adapt manifest.json to LMEL facet
- Loading branch information
Showing
15 changed files
with
218 additions
and
171 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
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,21 +1,24 @@ | ||
const csp = require('content-security-policy-builder'); | ||
const base = require('../base'); | ||
|
||
module.exports = { | ||
...base, | ||
name: `${base.name} - development`, | ||
content_security_policy: csp({ | ||
directives: { | ||
'script-src': ["'self'", "'unsafe-eval'"], | ||
'object-src': ["'self'"] | ||
module.exports = facet => { | ||
const facetBase = base(facet); | ||
return { | ||
...facetBase, | ||
name: `${facetBase.name} - development`, | ||
content_security_policy: csp({ | ||
directives: { | ||
'script-src': ["'self'", "'unsafe-eval'"], | ||
'object-src': ["'self'"] | ||
} | ||
}), | ||
browser_action: { | ||
...facetBase.browser_action, | ||
default_title: `${facetBase.browser_action.default_title} - development` | ||
}, | ||
externally_connectable: { | ||
matches: ['*://localhost/*'], | ||
accepts_tls_channel_id: false | ||
} | ||
}), | ||
browser_action: { | ||
...base.browser_action, | ||
default_title: `${base.browser_action.default_title} - development` | ||
}, | ||
externally_connectable: { | ||
matches: ['*://localhost/*'], | ||
accepts_tls_channel_id: false | ||
} | ||
}; | ||
}; |
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,18 +1,21 @@ | ||
const csp = require('content-security-policy-builder'); | ||
const base = require('../base'); | ||
|
||
module.exports = { | ||
...base, | ||
name: `${base.name} - development`, | ||
permissions: [...base.permissions, '*://*/*'], | ||
content_security_policy: csp({ | ||
directives: { | ||
'script-src': ["'self'", "'unsafe-eval'"], | ||
'object-src': ["'self'"] | ||
module.exports = facet => { | ||
const facetBase = base(facet); | ||
return { | ||
...facetBase, | ||
name: `${facetBase.name} - development`, | ||
permissions: [...facetBase.permissions, '*://*/*'], | ||
content_security_policy: csp({ | ||
directives: { | ||
'script-src': ["'self'", "'unsafe-eval'"], | ||
'object-src': ["'self'"] | ||
} | ||
}), | ||
browser_action: { | ||
...facetBase.browser_action, | ||
default_title: `${facetBase.browser_action.default_title} - development` | ||
} | ||
}), | ||
browser_action: { | ||
...base.browser_action, | ||
default_title: `${base.browser_action.default_title} - development` | ||
} | ||
}; | ||
}; |
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,8 +1,12 @@ | ||
const getManifestFilepath = (env, platform) => `./${env}/${platform}.js`; | ||
|
||
const getManifest = (env, platform) => { | ||
const getManifest = (env, platform, facet) => { | ||
console.log(getManifestFilepath(env, platform)); | ||
return JSON.stringify(require(getManifestFilepath(env, platform)), null, 2); | ||
return JSON.stringify( | ||
require(getManifestFilepath(env, platform))(facet), | ||
null, | ||
2 | ||
); | ||
}; | ||
|
||
module.exports = getManifest; |
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,11 +1,14 @@ | ||
const production = require('../production/firefox'); | ||
const base = require('../base'); | ||
|
||
module.exports = { | ||
...production, | ||
name: `${base.name} - proding`, | ||
browser_action: { | ||
...base.browser_action, | ||
default_title: `${base.browser_action.default_title} - proding` | ||
} | ||
module.exports = facet => { | ||
const facetBase = base(facet); | ||
return { | ||
...production(facet), | ||
name: `${facetBase.name} - proding`, | ||
browser_action: { | ||
...facetBase.browser_action, | ||
default_title: `${facetBase.browser_action.default_title} - proding` | ||
} | ||
}; | ||
}; |
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,9 @@ | ||
const base = require('../base'); | ||
|
||
module.exports = { | ||
...base, | ||
permissions: [...base.permissions, '*://*/*'] | ||
module.exports = facet => { | ||
const facetBase = base(facet); | ||
return { | ||
...facetBase, | ||
permissions: [...facetBase.permissions, '*://*/*'] | ||
}; | ||
}; |
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,11 +1,14 @@ | ||
const proding = require('../proding/firefox'); | ||
const base = require('../base'); | ||
|
||
module.exports = { | ||
...proding, | ||
name: `${base.name} - staging`, | ||
browser_action: { | ||
...base.browser_action, | ||
default_title: `${base.browser_action.default_title} - staging` | ||
} | ||
module.exports = facet => { | ||
const facetBase = base(facet); | ||
return { | ||
...proding(facet), | ||
name: `${facetBase.name} - staging`, | ||
browser_action: { | ||
...facetBase.browser_action, | ||
default_title: `${facetBase.browser_action.default_title} - staging` | ||
} | ||
}; | ||
}; |
Oops, something went wrong.