From 1471aae8927c20d646cc2aa5ab0e20c1a7f2c0ca Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 7 Apr 2020 01:23:29 +0530 Subject: linter / simpler webextension pack --- webextension/manifest.json | 4 +- webextension/pack.sh | 20 ++++ webextension/static/add-auditor.html | 4 +- webextension/static/auditors.html | 2 +- webextension/static/background.html | 2 +- webextension/static/benchmark.html | 4 +- webextension/static/pay.html | 8 +- webextension/static/payback.html | 7 +- webextension/static/popup.css | 185 -------------------------------- webextension/static/popup.html | 10 +- webextension/static/refund.html | 7 +- webextension/static/reset-required.html | 7 +- webextension/static/return-coins.html | 8 +- webextension/static/style/popup.css | 185 ++++++++++++++++++++++++++++++++ webextension/static/tip.html | 7 +- webextension/static/welcome.html | 7 +- webextension/static/withdraw.html | 8 +- 17 files changed, 242 insertions(+), 233 deletions(-) create mode 100755 webextension/pack.sh delete mode 100644 webextension/static/popup.css create mode 100644 webextension/static/style/popup.css (limited to 'webextension') diff --git a/webextension/manifest.json b/webextension/manifest.json index 6a0101c4b..5bcb8c060 100644 --- a/webextension/manifest.json +++ b/webextension/manifest.json @@ -36,14 +36,14 @@ "32": "img/icon.png" }, "default_title": "Taler", - "default_popup": "pages/popup.html" + "default_popup": "popup.html" }, "content_scripts": [ { "matches": ["*://*/*"], "js": [ - "js/contentScript.js" + "contentScript.js" ], "run_at": "document_start" } diff --git a/webextension/pack.sh b/webextension/pack.sh new file mode 100755 index 000000000..01abb01b4 --- /dev/null +++ b/webextension/pack.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -eu + +if [[ ! -e package.json ]]; then + echo "Please run this from the root of the repo.">&2 + exit 1 +fi + +vers_manifest=$(jq -r '.version' webextension/manifest.json) + +rm -rf dist/wx +mkdir -p dist/wx +cp webextension/manifest.json dist/wx/ +cp -r webextension/static/* dist/wx/ +cp -r dist/webextension/* dist/wx/ + +cd dist + +zip -r "taler-wallet-${vers_manifest}.zip" wx diff --git a/webextension/static/add-auditor.html b/webextension/static/add-auditor.html index ab1638b8e..47a97c075 100644 --- a/webextension/static/add-auditor.html +++ b/webextension/static/add-auditor.html @@ -5,11 +5,11 @@ Taler Wallet: Add Auditor - + - +