diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-25 16:57:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-25 16:58:00 -0300 |
commit | ddfb40e50cef0abddc7690b23562b1ca5aeb3fdd (patch) | |
tree | 231427a713e86b5fbdcdbc8cbcfc8b6c00392170 /packages/taler-wallet-webextension/dev-html | |
parent | 00fb648269c166c4995b38fe640748834fac7b18 (diff) | |
download | wallet-core-ddfb40e50cef0abddc7690b23562b1ca5aeb3fdd.tar.xz |
new dev environment
Diffstat (limited to 'packages/taler-wallet-webextension/dev-html')
5 files changed, 143 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/dev-html/.gitignore b/packages/taler-wallet-webextension/dev-html/.gitignore new file mode 100644 index 000000000..c4f051f4f --- /dev/null +++ b/packages/taler-wallet-webextension/dev-html/.gitignore @@ -0,0 +1,4 @@ +/mocha.css +/mocha.js +/mocha.js.map +/manifest.json diff --git a/packages/taler-wallet-webextension/dev-html/index.html b/packages/taler-wallet-webextension/dev-html/index.html new file mode 100644 index 000000000..c0919e9b9 --- /dev/null +++ b/packages/taler-wallet-webextension/dev-html/index.html @@ -0,0 +1,48 @@ +<html> + <head> + <meta charset="utf-8" /> + <link rel="manifest" href="./manifest.json" /> + </head> + <body> + <script> + function openPopup() { + window.frames["popup"].location = "/popup.html"; + } + function openWallet() { + window.frames["wallet"].location = "/wallet.html"; + } + function closeWallet() { + window.frames["wallet"].location = "about:blank"; + } + </script> + <input type="text" /> + <button value="asd" onclick="openPopup()">open popup</button> + <button value="asd" onclick="closeWallet();openWallet()"> + reload wallet page + </button> + <hr /> + <iframe + id="popup-window" + name="popup" + src="about:blank" + name="popup" + width="500" + height="325" + > + </iframe> + <hr /> + <iframe + id="wallet-window" + name="wallet" + src="about:blank" + name="wallet" + width="800" + height="100%" + > + </iframe> + <hr /> + <iframe src="/tests.html" name="wallet" width="800" height="100%"> </iframe> + <hr /> + <script src="/dist/background.dev.js"></script> + </body> +</html> diff --git a/packages/taler-wallet-webextension/dev-html/popup.html b/packages/taler-wallet-webextension/dev-html/popup.html new file mode 100644 index 000000000..93a886d54 --- /dev/null +++ b/packages/taler-wallet-webextension/dev-html/popup.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <style> + html { + font-family: sans-serif; /* 1 */ + } + body { + margin: 0; + } + </style> + <style> + html { + } + h1 { + font-size: 2em; + } + input { + font: inherit; + } + body { + margin: 0; + font-size: 100%; + padding: 0; + overflow: hidden; + background-color: #f8faf7; + font-family: Arial, Helvetica, sans-serif; + } + </style> + + <link rel="stylesheet" type="text/css" href="/dist/popupEntryPoint.css" /> + <script src="/dist/popupEntryPoint.dev.js"></script> + </head> + + <body> + <taler-popup id="container" class="popup-container"></taler-popup> + </body> +</html> diff --git a/packages/taler-wallet-webextension/dev-html/tests.html b/packages/taler-wallet-webextension/dev-html/tests.html new file mode 100644 index 000000000..4b3ec93b5 --- /dev/null +++ b/packages/taler-wallet-webextension/dev-html/tests.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html> + <head> + <title>Mocha Tests</title> + <link rel="stylesheet" href="/mocha.css" /> + </head> + <body> + <div id="mocha"></div> + <script src="/mocha.js"></script> + <script> + mocha.setup("bdd"); + </script> + + <!-- load code you want to test here --> + <script src="/dist/stories.test.js"></script> + <script src="/dist/hooks/useTalerActionURL.test.js"></script> + <!-- load your test files here --> + + <script> + mocha.run(); + </script> + </body> +</html> diff --git a/packages/taler-wallet-webextension/dev-html/wallet.html b/packages/taler-wallet-webextension/dev-html/wallet.html new file mode 100644 index 000000000..ff8616847 --- /dev/null +++ b/packages/taler-wallet-webextension/dev-html/wallet.html @@ -0,0 +1,29 @@ +<html> + <head> + <meta charset="utf-8" /> + <link rel="stylesheet" type="text/css" href="/dist/walletEntryPoint.css" /> + <style> + html { + font-family: sans-serif; /* 1 */ + } + h1 { + font-size: 2em; + } + input { + font: inherit; + } + body { + margin: 0; + font-size: 100%; + padding: 0; + background-color: #f8faf7; + font-family: Arial, Helvetica, sans-serif; + } + </style> + <script src="/dist/walletEntryPoint.dev.js"></script> + </head> + + <body> + <div id="container" class="wallet-container"></div> + </body> +</html> |