Skip to content

Commit

Permalink
Remove 'unsafe-eval' from CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
icelam committed Feb 29, 2020
1 parent 6fd4442 commit 3892596
Show file tree
Hide file tree
Showing 6 changed files with 2,798 additions and 2,248 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@
## Download Link ##
* [Download Chrome version](https://chrome.google.com/webstore/detail/code-copier/polidkhcaghmmijeemenkiloblpdfphp)
* [Download Firefox version](https://addons.mozilla.org/en-US/firefox/addon/code-copier/)

## Development Notes ##
* Setup: `npm install`
* Development: `npm run dev`
* Build: `npm run build`
* Build and zip: `npm run pack`
4,877 changes: 2,687 additions & 2,190 deletions design/chrome-promo/chrome-promo.ai

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const buildDev = () => {
sourceMaps: false,
presets: ['@babel/preset-env'],
plugins: [
['@babel/transform-runtime']
['@babel/transform-runtime'],
['transform-vue-template']
],
global: true,
ignore: [/[/\\]core-js/, /@babel[/\\]runtime/],
Expand Down Expand Up @@ -71,7 +72,8 @@ const buildProd = () => {
.transform('babelify', {
presets: ['@babel/preset-env'],
plugins: [
['@babel/transform-runtime']
['@babel/transform-runtime'],
['transform-vue-template']
],
comments: false,
global: true,
Expand Down
145 changes: 94 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "code-copier",
"version": "1.0.1",
"version": "1.0.2",
"description": "Code Copier - Chrome Extension to copy contents inside <pre> and <code> tags",
"private": true,
"author": "Ice Lam",
Expand All @@ -27,6 +27,7 @@
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/register": "^7.6.2",
"babel-plugin-transform-vue-template": "^0.4.2",
"babelify": "^10.0.0",
"browserify": "^16.5.0",
"concurrently": "^5.0.0",
Expand All @@ -38,18 +39,19 @@
"event-stream": "^4.0.1",
"gulp": "^4.0.2",
"gulp-load-plugins": "^2.0.1",
"node-sass": "^4.12.0",
"node-sass": "^4.13.1",
"rimraf": "^3.0.0",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0",
"vue-template-compiler": "^2.6.11",
"watchify": "^3.11.1"
},
"dependencies": {
"@babel/runtime": "^7.6.3",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify": "^3.0.2",
"simplebar-vue": "^1.3.4",
"vue": "^2.6.10",
"vue": "^2.6.11",
"webextension-polyfill": "^0.5.0"
}
}
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Code Copier",
"author": "Ice Lam",
"homepage_url": "https://github.com/icelam/code-copier",
"version": "1.0.1",
"version": "1.0.2",
"description": "Code Copier - Extension to copy contents inside <code> and <pre> tags with right click",
"icons":
{
Expand Down Expand Up @@ -38,5 +38,5 @@
"browser_style": true,
"chrome_style": true
},
"content_security_policy": "default-src 'self'; script-src 'self' 'unsafe-eval' blob:; style-src * 'unsafe-inline'; font-src *; object-src 'none'"
"content_security_policy": "default-src 'self'; script-src 'self' blob:; style-src * 'unsafe-inline'; font-src *; object-src 'none'"
}

0 comments on commit 3892596

Please sign in to comment.