From 0a3941f0a5617ed8f748dce62f6036e5a73a0ee6 Mon Sep 17 00:00:00 2001 From: Andrew Stacy Date: Wed, 23 Feb 2022 11:50:10 -0500 Subject: [PATCH] feat: adds automation to pull down official translate icon for use in extension (#21) feat: adds automation to pull down official translate icon for use in extension Adds an automation script to cURL the official Amazon Translate icon and add it to the codebase prior to build. This is done because of legal implications of including the icon with the project because it is open source. Refactors some of the CSS and moves the Spinner component from the popup folder to the components folder. Adds SVG import support to vite. fix #14 docs(third-party-licenses.txt): updates third-party licenses file to include bootstrap icons Adds attribution for bootstrap-icons to the third-party licenses file. --- .gitignore | 4 +- logo.sh | 9 + package.json | 11 +- pnpm-lock.yaml | 422 +++++++++++++++++++++++++- src/assets/.placeholder | 0 src/assets/logo.png | Bin 1220 -> 0 bytes src/components.d.ts | 1 + src/components/Logo.vue | 21 -- src/{popup => components}/Spinner.vue | 0 src/components/logo.svg | 3 - src/options/Options.vue | 4 + src/popup/Popup.vue | 12 +- src/styles/global.scss | 8 + vite.config.ts | 3 + 14 files changed, 456 insertions(+), 42 deletions(-) create mode 100755 logo.sh create mode 100644 src/assets/.placeholder delete mode 100644 src/assets/logo.png delete mode 100644 src/components/Logo.vue rename src/{popup => components}/Spinner.vue (100%) delete mode 100644 src/components/logo.svg diff --git a/.gitignore b/.gitignore index 770a57c..b226800 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ extension/ .eslintcache # directory with releases release/ -test/data/private \ No newline at end of file +test/data/private +src/assets/logo.svg +src/assets/logo.png \ No newline at end of file diff --git a/logo.sh b/logo.sh new file mode 100755 index 0000000..057c3b7 --- /dev/null +++ b/logo.sh @@ -0,0 +1,9 @@ +# Remove the current logo files +rm -f ./src/assets/logo.svg +rm -f ./src/assets/logo.png + +# Get the Amazon Translate icon from the web and pipe it into an svg file +curl -XGET 'https://d2q66yyjeovezo.cloudfront.net/icon/fc46e26a907870744758b76166150f62-76c22bfd03882310f44da5a6a9590864.svg' > ./src/assets/logo.svg + +# Convert the svg to a png for use as the extension icon +./node_modules/.bin/svg2png ./src/assets/logo.svg -o ./src/assets/logo.png \ No newline at end of file diff --git a/package.json b/package.json index a128072..2b658fe 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,19 @@ "license": "Apache-2.0", "scripts": { "assets": "node ./copy-assets.js", - "predev": "yarn assets", + "logo": "./logo.sh", + "predev": "npm run assets", "dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*", "dev:prepare": "esno scripts/prepare.ts", "dev:web": "vite", "dev:js": "npm run build:js -- --mode development", - "prebuild": "yarn assets", + "prebuild": "npm run assets", "build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:js", "build:prepare": "esno scripts/prepare.ts", "build:web": "vite build", "build:js": "vite build --config vite.config.content.ts", - "prepare": "husky install", - "prepack": "yarn assets", + "prepare": "husky install && npm run logo", + "prepack": "npm run assets", "pack": "cross-env NODE_ENV=production run-p pack:*", "pack:zip": "rimraf extension.zip && jszip-cli", "pack:crx": "crx pack extension -o ./release/extension.crx", @@ -67,6 +68,7 @@ "rimraf": "^3.0.2", "sass": "^1.43.2", "semantic-release": "^18.0.1", + "svg2png": "^4.1.1", "ts-node": "^10.4.0", "typescript": "^4.4.3", "unplugin-auto-import": "^0.4.8", @@ -74,6 +76,7 @@ "unplugin-vue-components": "^0.15.4", "vite": "^2.6.2", "vite-plugin-windicss": "^1.4.8", + "vite-svg-loader": "^3.1.2", "vue": "^3.2.19", "vue-demi": "^0.11.4", "web-ext": "^6.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9e41ff..1f5a085 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,6 +39,7 @@ specifiers: rimraf: ^3.0.2 sass: ^1.43.2 semantic-release: ^18.0.1 + svg2png: ^4.1.1 ts-node: ^10.4.0 typescript: ^4.4.3 unplugin-auto-import: ^0.4.8 @@ -46,6 +47,7 @@ specifiers: unplugin-vue-components: ^0.15.4 vite: ^2.6.2 vite-plugin-windicss: ^1.4.8 + vite-svg-loader: ^3.1.2 vue: ^3.2.19 vue-demi: ^0.11.4 web-ext: ^6.4.0 @@ -94,6 +96,7 @@ devDependencies: rimraf: 3.0.2 sass: 1.43.2 semantic-release: 18.0.1 + svg2png: 4.1.1 ts-node: 10.4.0_0088345bf6ed8e5566f4f4a984ba8f5e typescript: 4.4.3 unplugin-auto-import: 0.4.8_@vueuse+core@6.5.3+vite@2.6.2 @@ -101,6 +104,7 @@ devDependencies: unplugin-vue-components: 0.15.5_vite@2.6.2+vue@3.2.19 vite: 2.6.2_sass@1.43.2 vite-plugin-windicss: 1.4.8_d6fe4bbcd80a7349e7546c63339663ca + vite-svg-loader: 3.1.2 vue: 3.2.19 vue-demi: 0.11.4_vue@3.2.19 web-ext: 6.4.0 @@ -803,7 +807,7 @@ packages: '@babel/helper-compilation-targets': 7.15.0_@babel+core@7.15.0 '@babel/helper-module-transforms': 7.15.0 '@babel/helpers': 7.15.3 - '@babel/parser': 7.15.3 + '@babel/parser': 7.17.3 '@babel/template': 7.14.5 '@babel/traverse': 7.15.0 '@babel/types': 7.15.0 @@ -975,6 +979,12 @@ packages: hasBin: true dev: true + /@babel/parser/7.17.3: + resolution: {integrity: sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==} + engines: {node: '>=6.0.0'} + hasBin: true + dev: true + /@babel/runtime/7.13.9: resolution: {integrity: sha512-aY2kU+xgJ3dJ1eU6FMB9EH8dIe8dmusF1xEku52joLvw6eAFN0AI+WxCLDnpev2LEejWBAy2sBvBOBAjI3zmvA==} dependencies: @@ -986,7 +996,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.14.5 - '@babel/parser': 7.15.3 + '@babel/parser': 7.17.3 '@babel/types': 7.15.0 dev: true @@ -999,7 +1009,7 @@ packages: '@babel/helper-function-name': 7.14.5 '@babel/helper-hoist-variables': 7.14.5 '@babel/helper-split-export-declaration': 7.14.5 - '@babel/parser': 7.15.3 + '@babel/parser': 7.17.3 '@babel/types': 7.15.0 debug: 4.3.3 globals: 11.12.0 @@ -1417,6 +1427,11 @@ packages: engines: {node: '>= 10'} dev: true + /@trysound/sax/0.2.0: + resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} + engines: {node: '>=10.13.0'} + dev: true + /@tsconfig/node10/1.0.8: resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} dev: true @@ -1675,6 +1690,15 @@ packages: source-map: 0.6.1 dev: true + /@vue/compiler-core/3.2.31: + resolution: {integrity: sha512-aKno00qoA4o+V/kR6i/pE+aP+esng5siNAVQ422TkBNM6qA4veXiZbSe8OTXHXquEi/f6Akc+nLfB4JGfe4/WQ==} + dependencies: + '@babel/parser': 7.17.3 + '@vue/shared': 3.2.31 + estree-walker: 2.0.2 + source-map: 0.6.1 + dev: true + /@vue/compiler-dom/3.2.19: resolution: {integrity: sha512-WzQoE8rfkFjPtIioc7SSgTsnz9g2oG61DU8KHnzPrRS7fW/lji6H2uCYJfp4Z6kZE8GjnHc1Ljwl3/gxDes0cw==} dependencies: @@ -1682,6 +1706,13 @@ packages: '@vue/shared': 3.2.19 dev: true + /@vue/compiler-dom/3.2.31: + resolution: {integrity: sha512-60zIlFfzIDf3u91cqfqy9KhCKIJgPeqxgveH2L+87RcGU/alT6BRrk5JtUso0OibH3O7NXuNOQ0cDc9beT0wrg==} + dependencies: + '@vue/compiler-core': 3.2.31 + '@vue/shared': 3.2.31 + dev: true + /@vue/compiler-sfc/3.2.19: resolution: {integrity: sha512-pLlbgkO1UHTO02MSpa/sFOXUwIDxSMiKZ1ozE5n71CY4DM+YmI+G3gT/ZHZ46WBId7f3VTF/D8pGwMygcQbrQA==} dependencies: @@ -1697,6 +1728,21 @@ packages: source-map: 0.6.1 dev: true + /@vue/compiler-sfc/3.2.31: + resolution: {integrity: sha512-748adc9msSPGzXgibHiO6T7RWgfnDcVQD+VVwYgSsyyY8Ans64tALHZANrKtOzvkwznV/F4H7OAod/jIlp/dkQ==} + dependencies: + '@babel/parser': 7.17.3 + '@vue/compiler-core': 3.2.31 + '@vue/compiler-dom': 3.2.31 + '@vue/compiler-ssr': 3.2.31 + '@vue/reactivity-transform': 3.2.31 + '@vue/shared': 3.2.31 + estree-walker: 2.0.2 + magic-string: 0.25.7 + postcss: 8.3.8 + source-map: 0.6.1 + dev: true + /@vue/compiler-ssr/3.2.19: resolution: {integrity: sha512-oLon0Cn3O7WEYzzmzZavGoqXH+199LT+smdjBT3Uf3UX4HwDNuBFCmvL0TsqV9SQnIgKvBRbQ7lhbpnd4lqM3w==} dependencies: @@ -1704,6 +1750,23 @@ packages: '@vue/shared': 3.2.19 dev: true + /@vue/compiler-ssr/3.2.31: + resolution: {integrity: sha512-mjN0rqig+A8TVDnsGPYJM5dpbjlXeHUm2oZHZwGyMYiGT/F4fhJf/cXy8QpjnLQK4Y9Et4GWzHn9PS8AHUnSkw==} + dependencies: + '@vue/compiler-dom': 3.2.31 + '@vue/shared': 3.2.31 + dev: true + + /@vue/reactivity-transform/3.2.31: + resolution: {integrity: sha512-uS4l4z/W7wXdI+Va5pgVxBJ345wyGFKvpPYtdSgvfJfX/x2Ymm6ophQlXXB6acqGHtXuBqNyyO3zVp9b1r0MOA==} + dependencies: + '@babel/parser': 7.17.3 + '@vue/compiler-core': 3.2.31 + '@vue/shared': 3.2.31 + estree-walker: 2.0.2 + magic-string: 0.25.7 + dev: true + /@vue/reactivity/3.2.19: resolution: {integrity: sha512-FtachoYs2SnyrWup5UikP54xDX6ZJ1s5VgHcJp4rkGoutU3Ry61jhs+nCX7J64zjX992Mh9gGUC0LqTs8q9vCA==} dependencies: @@ -1749,6 +1812,10 @@ packages: resolution: {integrity: sha512-Knqhx7WieLdVgwCAZgTVrDCXZ50uItuecLh9JdLC8O+a5ayaSyIQYveUK3hCRNC7ws5zalHmZwfdLMGaS8r4Ew==} dev: true + /@vue/shared/3.2.31: + resolution: {integrity: sha512-ymN2pj6zEjiKJZbrf98UM2pfDd6F2H7ksKw7NDt/ZZ1fh5Ei39X5tABugtT03ZRlWd9imccoK0hE8hpjpU7irQ==} + dev: true + /@vueuse/core/6.5.3_vue@3.2.19: resolution: {integrity: sha512-o3CTu4nEqs371sDY5qLBX0r4QOm6GVpm3ApQc2Y+p8OMI2rRGartQo8xRykpUfsyq602A+SVtm/wxIWBkD/KCQ==} peerDependencies: @@ -2481,6 +2548,11 @@ packages: quick-lru: 4.0.1 dev: true + /camelcase/3.0.0: + resolution: {integrity: sha1-MvxLn82vhF/N9+c7uXysImHwqwo=} + engines: {node: '>=0.10.0'} + dev: true + /camelcase/5.3.1: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} @@ -2662,6 +2734,14 @@ packages: resolution: {integrity: sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==} dev: true + /cliui/3.2.0: + resolution: {integrity: sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=} + dependencies: + string-width: 1.0.2 + strip-ansi: 3.0.1 + wrap-ansi: 2.1.0 + dev: true + /cliui/7.0.4: resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} dependencies: @@ -2688,6 +2768,11 @@ packages: convert-to-spaces: 1.0.2 dev: true + /code-point-at/1.1.0: + resolution: {integrity: sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=} + engines: {node: '>=0.10.0'} + dev: true + /color-convert/1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: @@ -2754,6 +2839,11 @@ packages: engines: {node: '>= 6'} dev: true + /commander/7.2.0: + resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} + engines: {node: '>= 10'} + dev: true + /commander/8.1.0: resolution: {integrity: sha512-mf45ldcuHSYShkplHHGKWb4TrmwQadxOn7v4WuhDJy0ZVoY5JFajaRDKD0PNe5qXzBX0rhovjTnP6Kz9LETcuA==} engines: {node: '>= 12'} @@ -3028,11 +3118,26 @@ packages: nth-check: 2.0.0 dev: true + /css-tree/1.1.3: + resolution: {integrity: sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==} + engines: {node: '>=8.0.0'} + dependencies: + mdn-data: 2.0.14 + source-map: 0.6.1 + dev: true + /css-what/5.0.1: resolution: {integrity: sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==} engines: {node: '>= 6'} dev: true + /csso/4.2.0: + resolution: {integrity: sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==} + engines: {node: '>=8.0.0'} + dependencies: + css-tree: 1.1.3 + dev: true + /cssom/0.3.8: resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} dev: true @@ -3499,6 +3604,10 @@ packages: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} dev: true + /es6-promise/4.2.8: + resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==} + dev: true + /es6-promisify/7.0.0: resolution: {integrity: sha512-ginqzK3J90Rd4/Yz7qRrqUeIpe3TwSXTPPZtPne7tGBPeAaQiU8qt4fpKApnxHcq1AwtUdHVg5P77x/yrggG8Q==} engines: {node: '>=6'} @@ -4179,6 +4288,16 @@ packages: tmp: 0.0.33 dev: true + /extract-zip/1.7.0: + resolution: {integrity: sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==} + hasBin: true + dependencies: + concat-stream: 1.6.2 + debug: 2.6.9 + mkdirp: 0.5.5 + yauzl: 2.10.0 + dev: true + /extsprintf/1.3.0: resolution: {integrity: sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=} engines: {'0': node >=0.6.0} @@ -4273,6 +4392,11 @@ packages: flat-cache: 3.0.4 dev: true + /file-url/2.0.2: + resolution: {integrity: sha1-6VF4TXkJUSfTcTApqwY/QIGMoq4=} + engines: {node: '>=4'} + dev: true + /fill-range/7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} @@ -4291,6 +4415,14 @@ packages: resolution: {integrity: sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==} dev: true + /find-up/1.1.2: + resolution: {integrity: sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=} + engines: {node: '>=0.10.0'} + dependencies: + path-exists: 2.1.0 + pinkie-promise: 2.0.1 + dev: true + /find-up/2.1.0: resolution: {integrity: sha1-RdG35QbHF93UgndaK3eSCjwMV6c=} engines: {node: '>=4'} @@ -4404,6 +4536,14 @@ packages: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} dev: true + /fs-extra/1.0.0: + resolution: {integrity: sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=} + dependencies: + graceful-fs: 4.2.8 + jsonfile: 2.4.0 + klaw: 1.3.1 + dev: true + /fs-extra/10.0.0: resolution: {integrity: sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==} engines: {node: '>=12'} @@ -4486,6 +4626,10 @@ packages: engines: {node: '>=6.9.0'} dev: true + /get-caller-file/1.0.3: + resolution: {integrity: sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==} + dev: true + /get-caller-file/2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -4752,6 +4896,14 @@ packages: function-bind: 1.1.1 dev: true + /hasha/2.2.0: + resolution: {integrity: sha1-eNfL/B5tZjA/55g3NlmEUXsvbuE=} + engines: {node: '>=0.10.0'} + dependencies: + is-stream: 1.1.0 + pinkie-promise: 2.0.1 + dev: true + /homedir-polyfill/1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} @@ -4993,6 +5145,11 @@ packages: p-is-promise: 3.0.0 dev: true + /invert-kv/1.0.0: + resolution: {integrity: sha1-EEqOSqym09jNFXqO+L+rLXo//bY=} + engines: {node: '>=0.10.0'} + dev: true + /invert-kv/3.0.1: resolution: {integrity: sha512-CYdFeFexxhv/Bcny+Q0BfOV+ltRlJcd4BBZBYFX/O0u4npJrgZtIcjokegtiSMAvlMTJ+Koq0GBCc//3bueQxw==} engines: {node: '>=8'} @@ -5090,6 +5247,13 @@ packages: engines: {node: '>=0.10.0'} dev: true + /is-fullwidth-code-point/1.0.0: + resolution: {integrity: sha1-754xOG8DGn8NZDr4L95QxFfvAMs=} + engines: {node: '>=0.10.0'} + dependencies: + number-is-nan: 1.0.1 + dev: true + /is-fullwidth-code-point/2.0.0: resolution: {integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=} engines: {node: '>=4'} @@ -5204,6 +5368,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /is-stream/1.1.0: + resolution: {integrity: sha1-EtSj3U5o4Lec6428hBc66A2RykQ=} + engines: {node: '>=0.10.0'} + dev: true + /is-stream/2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -5441,6 +5610,12 @@ packages: resolution: {integrity: sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==} dev: true + /jsonfile/2.4.0: + resolution: {integrity: sha1-NzaitCi4e72gzIO1P6PWM6NcKug=} + optionalDependencies: + graceful-fs: 4.2.8 + dev: true + /jsonfile/4.0.0: resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} optionalDependencies: @@ -5522,6 +5697,10 @@ packages: safe-buffer: 5.2.1 dev: true + /kew/0.7.0: + resolution: {integrity: sha1-edk9LTM2PW/dKXCzNdkUGtWR15s=} + dev: true + /keyv/3.1.0: resolution: {integrity: sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==} dependencies: @@ -5533,6 +5712,12 @@ packages: engines: {node: '>=0.10.0'} dev: true + /klaw/1.3.1: + resolution: {integrity: sha1-QIhDO0azsbolnXh4XY6W9zugJDk=} + optionalDependencies: + graceful-fs: 4.2.8 + dev: true + /kolorist/1.5.0: resolution: {integrity: sha512-pPobydIHK884YBtkS/tWSZXpSAEpcMbilyun3KL37ot935qL2HNKm/tI45i/Rd+MxdIWEhm7/LmUQzWZYK+Qhg==} dev: true @@ -5551,6 +5736,13 @@ packages: readable-stream: 2.3.7 dev: true + /lcid/1.0.0: + resolution: {integrity: sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=} + engines: {node: '>=0.10.0'} + dependencies: + invert-kv: 1.0.0 + dev: true + /lcid/3.1.1: resolution: {integrity: sha512-M6T051+5QCGLBQb8id3hdvIW8+zeFV2FyBGFS9IEK5H9Wt4MueD4bW1eWikpHgZp+5xR3l5c8pZUkQsIA0BFZg==} engines: {node: '>=8'} @@ -5637,6 +5829,17 @@ packages: wrap-ansi: 7.0.0 dev: true + /load-json-file/1.1.0: + resolution: {integrity: sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=} + engines: {node: '>=0.10.0'} + dependencies: + graceful-fs: 4.2.8 + parse-json: 2.2.0 + pify: 2.3.0 + pinkie-promise: 2.0.1 + strip-bom: 2.0.0 + dev: true + /load-json-file/4.0.0: resolution: {integrity: sha1-L19Fq5HjMhYjT9U62rZo607AmTs=} engines: {node: '>=4'} @@ -5891,6 +6094,10 @@ packages: blueimp-md5: 2.19.0 dev: true + /mdn-data/2.0.14: + resolution: {integrity: sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==} + dev: true + /mem/5.1.1: resolution: {integrity: sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==} engines: {node: '>=8'} @@ -6019,7 +6226,6 @@ packages: dependencies: minimist: 1.2.5 dev: true - optional: true /mkdirp/1.0.4: resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} @@ -6318,6 +6524,11 @@ packages: boolbase: 1.0.0 dev: true + /number-is-nan/1.0.1: + resolution: {integrity: sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=} + engines: {node: '>=0.10.0'} + dev: true + /nwsapi/2.2.0: resolution: {integrity: sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==} dev: true @@ -6453,6 +6664,13 @@ packages: wcwidth: 1.0.1 dev: true + /os-locale/1.4.0: + resolution: {integrity: sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=} + engines: {node: '>=0.10.0'} + dependencies: + lcid: 1.0.0 + dev: true + /os-locale/5.0.0: resolution: {integrity: sha512-tqZcNEDAIZKBEPnHPlVDvKrp7NzgLi7jRmhKiUoa2NUmhl13FtkAGLUVR+ZsYvApBQdBfYm43A4tXXQ4IrYLBA==} engines: {node: '>=10'} @@ -6614,6 +6832,13 @@ packages: callsites: 3.1.0 dev: true + /parse-json/2.2.0: + resolution: {integrity: sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=} + engines: {node: '>=0.10.0'} + dependencies: + error-ex: 1.3.2 + dev: true + /parse-json/4.0.0: resolution: {integrity: sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=} engines: {node: '>=4'} @@ -6652,6 +6877,13 @@ packages: resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} dev: true + /path-exists/2.1.0: + resolution: {integrity: sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=} + engines: {node: '>=0.10.0'} + dependencies: + pinkie-promise: 2.0.1 + dev: true + /path-exists/3.0.0: resolution: {integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=} engines: {node: '>=4'} @@ -6681,6 +6913,15 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true + /path-type/1.1.0: + resolution: {integrity: sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=} + engines: {node: '>=0.10.0'} + dependencies: + graceful-fs: 4.2.8 + pify: 2.3.0 + pinkie-promise: 2.0.1 + dev: true + /path-type/3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} @@ -6709,6 +6950,27 @@ packages: resolution: {integrity: sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=} dev: true + /phantomjs-prebuilt/2.1.16: + resolution: {integrity: sha1-79ISpKOWbTZHaE6ouniFSb4q7+8=} + deprecated: this package is now deprecated + hasBin: true + requiresBuild: true + dependencies: + es6-promise: 4.2.8 + extract-zip: 1.7.0 + fs-extra: 1.0.0 + hasha: 2.2.0 + kew: 0.7.0 + progress: 1.1.8 + request: 2.88.2 + request-progress: 2.0.1 + which: 1.3.1 + dev: true + + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + /picomatch/2.3.0: resolution: {integrity: sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==} engines: {node: '>=8.6'} @@ -6720,6 +6982,11 @@ packages: hasBin: true dev: true + /pify/2.3.0: + resolution: {integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw=} + engines: {node: '>=0.10.0'} + dev: true + /pify/3.0.0: resolution: {integrity: sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=} engines: {node: '>=4'} @@ -6730,6 +6997,18 @@ packages: engines: {node: '>=6'} dev: true + /pinkie-promise/2.0.1: + resolution: {integrity: sha1-ITXW36ejWMBprJsXh3YogihFD/o=} + engines: {node: '>=0.10.0'} + dependencies: + pinkie: 2.0.4 + dev: true + + /pinkie/2.0.4: + resolution: {integrity: sha1-clVrgM+g1IqXToDnckjoDtT3+HA=} + engines: {node: '>=0.10.0'} + dev: true + /pino-std-serializers/3.2.0: resolution: {integrity: sha512-EqX4pwDPrt3MuOAAUBMU0Tk5kR/YcCM5fNPEzgCO2zJ5HfX0vbiH9HbJglnyeQsN96Kznae6MWD47pZB5avTrg==} dev: true @@ -6815,6 +7094,10 @@ packages: engines: {node: '>=4'} dev: true + /pn/1.1.0: + resolution: {integrity: sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==} + dev: true + /postcss-load-config/3.1.0_ts-node@10.4.0: resolution: {integrity: sha512-ipM8Ds01ZUophjDTQYSVP70slFSYg3T0/zyfII5vzhN6V57YSxMgG5syXuwi5VtS8wSf3iL30v0uBdoIVx4Q0g==} engines: {node: '>= 10'} @@ -6887,6 +7170,11 @@ packages: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} dev: true + /progress/1.1.8: + resolution: {integrity: sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=} + engines: {node: '>=0.4.0'} + dev: true + /progress/2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} @@ -6970,6 +7258,14 @@ packages: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: true + /read-pkg-up/1.0.1: + resolution: {integrity: sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=} + engines: {node: '>=0.10.0'} + dependencies: + find-up: 1.1.2 + read-pkg: 1.1.0 + dev: true + /read-pkg-up/3.0.0: resolution: {integrity: sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=} engines: {node: '>=4'} @@ -6987,6 +7283,15 @@ packages: type-fest: 0.8.1 dev: true + /read-pkg/1.1.0: + resolution: {integrity: sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=} + engines: {node: '>=0.10.0'} + dependencies: + load-json-file: 1.1.0 + normalize-package-data: 2.5.0 + path-type: 1.1.0 + dev: true + /read-pkg/3.0.0: resolution: {integrity: sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=} engines: {node: '>=4'} @@ -7093,6 +7398,12 @@ packages: commander: 2.20.3 dev: true + /request-progress/2.0.1: + resolution: {integrity: sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=} + dependencies: + throttleit: 1.0.0 + dev: true + /request/2.88.2: resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==} engines: {node: '>= 6'} @@ -7130,6 +7441,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /require-main-filename/1.0.1: + resolution: {integrity: sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=} + dev: true + /resolve-cwd/3.0.0: resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} engines: {node: '>=8'} @@ -7397,6 +7712,10 @@ packages: type-fest: 0.20.2 dev: true + /set-blocking/2.0.0: + resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=} + dev: true + /set-immediate-shim/1.0.1: resolution: {integrity: sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=} engines: {node: '>=0.10.0'} @@ -7629,6 +7948,10 @@ packages: tweetnacl: 0.14.5 dev: true + /stable/0.1.8: + resolution: {integrity: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==} + dev: true + /stack-utils/2.0.5: resolution: {integrity: sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==} engines: {node: '>=10'} @@ -7663,6 +7986,15 @@ packages: engines: {node: '>=0.6.19'} dev: true + /string-width/1.0.2: + resolution: {integrity: sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=} + engines: {node: '>=0.10.0'} + dependencies: + code-point-at: 1.1.0 + is-fullwidth-code-point: 1.0.0 + strip-ansi: 3.0.1 + dev: true + /string-width/2.1.1: resolution: {integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==} engines: {node: '>=4'} @@ -7796,6 +8128,13 @@ packages: strip-bom-buf: 2.0.0 dev: true + /strip-bom/2.0.0: + resolution: {integrity: sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=} + engines: {node: '>=0.10.0'} + dependencies: + is-utf8: 0.2.1 + dev: true + /strip-bom/3.0.0: resolution: {integrity: sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=} engines: {node: '>=4'} @@ -7884,6 +8223,30 @@ packages: supports-color: 7.2.0 dev: true + /svg2png/4.1.1: + resolution: {integrity: sha1-a54DmKpBh3i2Q24Sei+38A1JnCg=} + hasBin: true + dependencies: + file-url: 2.0.2 + phantomjs-prebuilt: 2.1.16 + pn: 1.1.0 + yargs: 6.6.0 + dev: true + + /svgo/2.8.0: + resolution: {integrity: sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==} + engines: {node: '>=10.13.0'} + hasBin: true + dependencies: + '@trysound/sax': 0.2.0 + commander: 7.2.0 + css-select: 4.1.3 + css-tree: 1.1.3 + csso: 4.2.0 + picocolors: 1.0.0 + stable: 0.1.8 + dev: true + /symbol-tree/3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} dev: true @@ -7949,6 +8312,10 @@ packages: any-promise: 1.3.0 dev: true + /throttleit/1.0.0: + resolution: {integrity: sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=} + dev: true + /through/2.3.8: resolution: {integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=} dev: true @@ -8459,6 +8826,13 @@ packages: - typescript dev: true + /vite-svg-loader/3.1.2: + resolution: {integrity: sha512-op5ENc3eo1K1YlufQtdyAcxxXtiWJHyimH9y573ZWhj/9cw5x3ZtYhOEQua7MugclTa9mnZTzuir0rfTCkVyiQ==} + dependencies: + '@vue/compiler-sfc': 3.2.31 + svgo: 2.8.0 + dev: true + /vite/2.6.2_sass@1.43.2: resolution: {integrity: sha512-HSIg9U15LOnbD3CUxX364Pdrm7DUjftuBljowGxvkFHgDZU/SKPqApg9t86MX/Qq1VCO7wS+mGJHlfuTF7c0Sg==} engines: {node: '>=12.2.0'} @@ -8673,6 +9047,10 @@ packages: is-symbol: 1.0.4 dev: true + /which-module/1.0.0: + resolution: {integrity: sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=} + dev: true + /which/1.2.4: resolution: {integrity: sha1-FVf5YIBgTlsRs1meufRbUKnv1yI=} hasBin: true @@ -8722,6 +9100,14 @@ packages: resolution: {integrity: sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=} dev: true + /wrap-ansi/2.1.0: + resolution: {integrity: sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=} + engines: {node: '>=0.10.0'} + dependencies: + string-width: 1.0.2 + strip-ansi: 3.0.1 + dev: true + /wrap-ansi/6.2.0: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'} @@ -8811,6 +9197,10 @@ packages: engines: {node: '>=0.4'} dev: true + /y18n/3.2.2: + resolution: {integrity: sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==} + dev: true + /y18n/5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -8838,6 +9228,12 @@ packages: engines: {node: '>=10'} dev: true + /yargs-parser/4.2.1: + resolution: {integrity: sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=} + dependencies: + camelcase: 3.0.0 + dev: true + /yargs/16.2.0: resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} engines: {node: '>=10'} @@ -8864,6 +9260,24 @@ packages: yargs-parser: 20.2.9 dev: true + /yargs/6.6.0: + resolution: {integrity: sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=} + dependencies: + camelcase: 3.0.0 + cliui: 3.2.0 + decamelize: 1.2.0 + get-caller-file: 1.0.3 + os-locale: 1.4.0 + read-pkg-up: 1.0.1 + require-directory: 2.1.1 + require-main-filename: 1.0.1 + set-blocking: 2.0.0 + string-width: 1.0.2 + which-module: 1.0.0 + y18n: 3.2.2 + yargs-parser: 4.2.1 + dev: true + /yauzl/2.10.0: resolution: {integrity: sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=} dependencies: diff --git a/src/assets/.placeholder b/src/assets/.placeholder new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100644 index 85993f2cd16e5ef75075013e63588870d58b9a90..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1220 zcmaJ<&rcIU6dpuPZ9?P#qQ;nYiAEE=dz02;d)xO6i&%kMHLy0;$oP*VG%X}?UB5tsG|^5X*i;rVS0Ujfu?jVOy6jeIoXQBjNUtG z!-2`Zq&hjO3K|{hpxW~y5ilTDsJt;|I$}OdmvlvPcCT5QDnamQnBFv%lKZJBvLO{> zc%RB~92F86O-UZY>9s0|g2 z>?A^Cm1peFAdH+0vM7Im;i$8+qUxr5bFM^@Wif6#STR)?m%=m=VRT&+xtJgXrI64j zMB8{i7VYMGq7oO71U?jO>*l*ETnVXJ1Dd$P)wZ}@HM#CM7#7JaL0g}IT91tks#LY8 z*Y*;ssaNJ|wY^-Z$z_Qd*6r;-y{=r50dkMk(Ir83_@PNA-X^1caiM7rfVyB@>PqI9 zzb*6LyIfOIX=dLE!i%! z1@;%gw&3XE?8WqYB=R<_&;EH>_w)10;QY{K z;nkrhKe7jQOK#KOBiP|&4EipTn- J+3s6+{sN(?UAO=M diff --git a/src/components.d.ts b/src/components.d.ts index 7e161f8..8da4edc 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -10,6 +10,7 @@ declare module 'vue' { PixelarticonsSliders: typeof import('~icons/pixelarticons/sliders')['default']; PixelarticonsZap: typeof import('~icons/pixelarticons/zap')['default']; ShowButton: typeof import('./components/ShowButton.vue')['default']; + Spinner: typeof import('./components/Spinner.vue')['default']; } } diff --git a/src/components/Logo.vue b/src/components/Logo.vue deleted file mode 100644 index 1bb19ae..0000000 --- a/src/components/Logo.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/src/popup/Spinner.vue b/src/components/Spinner.vue similarity index 100% rename from src/popup/Spinner.vue rename to src/components/Spinner.vue diff --git a/src/components/logo.svg b/src/components/logo.svg deleted file mode 100644 index baa88cf..0000000 --- a/src/components/logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/options/Options.vue b/src/options/Options.vue index e362761..fe32231 100644 --- a/src/options/Options.vue +++ b/src/options/Options.vue @@ -90,6 +90,10 @@ secretAccessKey from an IAM user with a sufficient policy.
  • Select a region nearest to you that supports the language pairs you need.
  • +
  • + For more detailed information about setting up this extension, refer to the following AWS Blog post: + Use a web browser plugin to quickly translate text with Amazon Translate +
  • diff --git a/src/popup/Popup.vue b/src/popup/Popup.vue index 49e4b01..7533576 100644 --- a/src/popup/Popup.vue +++ b/src/popup/Popup.vue @@ -5,18 +5,12 @@