From d57d30eb5672f8a5bc57a666ba26bbda97c6aaa8 Mon Sep 17 00:00:00 2001 From: bufgix Date: Tue, 16 Mar 2021 03:30:53 +0300 Subject: [PATCH 01/11] feat: add opitons page --- public/options-page.html | 12 ++++++++++++ src/manifest.json | 1 + src/options/App.vue | 19 +++++++++++++++++++ src/options/main.js | 13 +++++++++++++ vue.config.js | 5 +++++ 5 files changed, 50 insertions(+) create mode 100644 public/options-page.html create mode 100644 src/options/App.vue create mode 100644 src/options/main.js diff --git a/public/options-page.html b/public/options-page.html new file mode 100644 index 0000000..46553cc --- /dev/null +++ b/public/options-page.html @@ -0,0 +1,12 @@ + + + + + + + <%= htmlWebpackPlugin.options.title %> + + +
+ + diff --git a/src/manifest.json b/src/manifest.json index f39b55d..3654d03 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -14,6 +14,7 @@ "scripts": ["js/background.js"], "persistent": true }, + "options_page": "options.html", "content_scripts": [ { "matches": ["*://*/**"], diff --git a/src/options/App.vue b/src/options/App.vue new file mode 100644 index 0000000..a82c3a0 --- /dev/null +++ b/src/options/App.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/src/options/main.js b/src/options/main.js new file mode 100644 index 0000000..5eb30b9 --- /dev/null +++ b/src/options/main.js @@ -0,0 +1,13 @@ +import Vue from 'vue' +import App from './App.vue' + +import '../styles/app.scss' + +import storage from '@/utils/storage' +Vue.prototype.$storage = storage + +/* eslint-disable no-new */ +new Vue({ + el: '#app', + render: h => h(App) +}) diff --git a/vue.config.js b/vue.config.js index 6a898b1..bb08499 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,6 +4,11 @@ module.exports = { template: 'public/browser-extension.html', entry: './src/popup/main.js', title: 'Popup' + }, + options: { + template: 'public/options-page.htm', + entry: 'src/options/main.js', + title: 'Passwall Extension Options' } }, css: { From 6fc0eacc04621cbac469ad8559cbea40d3a11a9d Mon Sep 17 00:00:00 2001 From: ofsahof Date: Wed, 17 Mar 2021 20:07:24 +0300 Subject: [PATCH 02/11] feat: show/hide and copy buttons added to notes --- src/components/VTextArea.vue | 29 +++++++++++++++++++++++------ src/popup/views/Notes/detail.vue | 18 +++++++++++++----- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/src/components/VTextArea.vue b/src/components/VTextArea.vue index 10eb0fb..5bf001a 100644 --- a/src/components/VTextArea.vue +++ b/src/components/VTextArea.vue @@ -1,8 +1,20 @@