From e9a22cb1e8ec808a07a79ec4bc27c6f6ad00b686 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Fri, 26 Jan 2018 16:12:07 -0500 Subject: [PATCH] Build as a browser extension --- Makefile | 2 +- extension/icon.png | Bin 0 -> 11150 bytes extension/index.html | 9 +++++++++ extension/manifest.json | 14 ++++++++++++++ extension/portal.js | 2 ++ 5 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 extension/icon.png create mode 100644 extension/index.html create mode 100644 extension/manifest.json create mode 100644 extension/portal.js diff --git a/Makefile b/Makefile index bcd8850..360e8d0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: all node-deps clean run -TARGET=elm.js +TARGET=extension/elm.js SOURCE=src/App.elm ELM_FILES = $(shell find . -type f -name '*.elm') diff --git a/extension/icon.png b/extension/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ac2b1f70d9c864ef179e9672358bd178dad917f8 GIT binary patch literal 11150 zcmZ{K1yr0d*X9g^yA{_KcXy{0E5+U2VTuke#VOJjD=q~}@uFprDN>3KE$)LC7`(Xc z^xNHYzWvYHGbfWbxlf+tO>W-YBsWp#l_~))4K4rxAW&C(u7`?`{{?JJ)W4kJ?t4^( z?yRV#2mmyu;oaF{pwd8JJyj(@-8kJYD#2v0rl$n}1hWAEkudL*6)zebNGePJo&xx_mUNS`im_Z-m4VN7eNcxndVetF>u+uL12lf)tke$$w`wQ`! zmhN)m^;Fu_qWDvU;b(lNk?Ud14$wyh%n3XWziuHw&lv_W;4Q!944Tq7oMdMQq#&t- zi9~ZNs1H*R)u|P2(bzQ`d3rNwm_5{&D4dZ~?0dEQI*k;Y1y}*(qSo>z52LrGkXXHy zM$-blr;7?EdOB`m3)E%87XcBZwzo+t@dw6O;UXu@#MxLeYJU81dT74!3HtmL(eG%a zE2!aG-lE~t>B=ks_v$H6zm^3lv&jh?iuBH#l_2_>nX~KT4KT zm8)UiNTJc=yhKX{`q0DO+VAYmQY%-8kN`PA7RWs6z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35pzh8tkJWWdFsZ?;4EiWX literal 0 HcmV?d00001 diff --git a/extension/index.html b/extension/index.html new file mode 100644 index 0000000..457c35e --- /dev/null +++ b/extension/index.html @@ -0,0 +1,9 @@ + + + +

Pass

+
+ + + + diff --git a/extension/manifest.json b/extension/manifest.json new file mode 100644 index 0000000..94c3104 --- /dev/null +++ b/extension/manifest.json @@ -0,0 +1,14 @@ +{ + "manifest_version": 2, + "name": "Elm-Pass", + "description": "Password Management", + "version": "1.0", + "browser_action": { + "default_icon": "icon.png", + "default_popup": "index.html" + }, + "permissions": [ + "activeTab", + "storage" + ] +} diff --git a/extension/portal.js b/extension/portal.js new file mode 100644 index 0000000..248b77e --- /dev/null +++ b/extension/portal.js @@ -0,0 +1,2 @@ +const container = document.querySelector('#app'); +const app = Elm.App.embed(container);