From 88e0c60be001cd65aa357906a5949750e6d7ecf5 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Sep 2022 20:13:56 +0200 Subject: [PATCH 1/5] add footer config --- public/config.json | 4 +++ src/App.vue | 13 +++---- src/components/FooterComponent.vue | 56 ++++++++++++++++++++++++++++++ src/locales/en.json | 8 +++-- src/main.js | 6 ++++ 5 files changed, 76 insertions(+), 11 deletions(-) create mode 100644 public/config.json create mode 100644 src/components/FooterComponent.vue diff --git a/public/config.json b/public/config.json new file mode 100644 index 00000000..83b19381 --- /dev/null +++ b/public/config.json @@ -0,0 +1,4 @@ +{ + "donation_href": " ", + "status_page_href": " " +} diff --git a/src/App.vue b/src/App.vue index 722d52ae..302680a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,29 +1,24 @@ + + diff --git a/src/locales/en.json b/src/locales/en.json index 2bae4579..a6645154 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -61,7 +61,7 @@ "import_from_json": "Import from JSON/CSV", "loop_this_video": "Loop this Video", "auto_play_next_video": "Auto Play next Video", - "donations": "Donations", + "donations": "Development donations", "minimize_description": "Minimize Description", "show_description": "Show Description", "minimize_recommendations": "Minimize Recommendations", @@ -108,7 +108,11 @@ "time_code": "Time code (in seconds)", "show_chapters": "Chapters", "store_search_history": "Store Search history", - "hide_watched": "Hide watched videos in the feed" + "hide_watched": "Hide watched videos in the feed", + "documentation": "Documentation", + "status_page": "Status", + "source_code": "Source code", + "instance_donations": "Instance donations" }, "comment": { "pinned_by": "Pinned by", diff --git a/src/main.js b/src/main.js index 1ac91c1d..0737f6b8 100644 --- a/src/main.js +++ b/src/main.js @@ -17,6 +17,9 @@ import { faXmark, faClone, faShare, + faBook, + faServer, + faDonate, } from "@fortawesome/free-solid-svg-icons"; import { faGithub, faBitcoin } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; @@ -39,6 +42,9 @@ library.add( faXmark, faClone, faShare, + faBook, + faServer, + faDonate, ); import router from "@/router/router.js"; From cc75ff1c65839215587b466021d3a458c1b979bd Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 9 Sep 2022 20:14:12 +0200 Subject: [PATCH 2/5] hide by default --- public/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/config.json b/public/config.json index 83b19381..7e2686e3 100644 --- a/public/config.json +++ b/public/config.json @@ -1,4 +1,4 @@ { - "donation_href": " ", - "status_page_href": " " + "donation_href": "", + "status_page_href": "" } From 8899425a47d1961faca16ee3ffc30b086d968b8c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 10 Sep 2022 11:09:54 +0200 Subject: [PATCH 3/5] apply suggested changes --- src/components/FooterComponent.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index 994e9394..a10e4133 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -36,8 +36,7 @@ export default { }, methods: { async fetchConfig() { - fetch("config.json").then(async response => { - const config = await response.json(); + this.fetchJson("confg.json").then(config => { this.donationHref = config.donation_href; this.statusPageHref = config.status_page_href; }); @@ -46,7 +45,7 @@ export default { }; -