From e4381c974ffcb8ef8594b6e5fea8c239436b2c76 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Wed, 25 Sep 2019 14:44:44 +0530 Subject: [PATCH] :package: Added toast, Material Icon font --- README.md | 2 ++ assets/css/fonts.scss | 2 +- assets/css/styles.scss | 2 +- components/history.vue | 10 ++++++++++ layouts/default.vue | 14 +++++++------- nuxt.config.js | 3 ++- package-lock.json | 13 +++++++++++++ package.json | 1 + pages/index.vue | 29 +++++++++++++++++++++++++++-- 9 files changed, 64 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8f057ae95..f38a59bc6 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ When I wrote this, only God and I understood what I was doing. Now, only God kno **Chat here: _[Telegram](https://t.me/postwoman_app), [Discord](https://discord.gg/GAMWxmR)_** +**Donate here: _[PayPal](https://www.paypal.me/liyascthomas), [Buy me a coffee](https://www.buymeacoffee.com/liyasthomas)_** +

postwoman diff --git a/assets/css/fonts.scss b/assets/css/fonts.scss index 541e2cf1e..82b09e3e3 100644 --- a/assets/css/fonts.scss +++ b/assets/css/fonts.scss @@ -1,2 +1,2 @@ // Poppins (Google Fonts) -@import url("https://fonts.googleapis.com/css?family=Poppins:400,600&display=swap"); +@import url("https://fonts.googleapis.com/css?family=Material+Icons|Poppins:400,600&display=swap"); diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 1190ad948..8dbda9b9b 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -295,8 +295,8 @@ ol li { .flex-wrap { display: flex; - justify-content: space-between; align-items: center; + justify-content: space-between; } .show-on-small-screen { diff --git a/components/history.vue b/components/history.vue index acdd4c91c..bb01e1120 100644 --- a/components/history.vue +++ b/components/history.vue @@ -121,6 +121,11 @@ this.filterText = ''; this.disableHistoryClearing(); updateOnLocalStorage('history', this.history); + this.$toast.error('History Deleted', { + icon: 'delete', + position: 'bottom-center', + duration: 1000, + }); }, useHistory(entry) { this.$emit('useHistory', entry); @@ -137,6 +142,11 @@ this.filterText = ''; } updateOnLocalStorage('history', this.history); + this.$toast.error('Deleted', { + icon: 'delete', + position: 'bottom-center', + duration: 1000, + }); }, addEntry(entry) { this.history.push(entry); diff --git a/layouts/default.vue b/layouts/default.vue index dced49525..6e628b6ba 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -23,25 +23,25 @@