π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
β»οΈ rename story type fetch method
Josua Blejeru098600365af7
diff --git a/src/components/Widgets/HackernewsTrending.vue b/src/components/Widgets/HackernewsTrending.vueindex a61ac64c..dad694fd 100644--- a/src/components/Widgets/HackernewsTrending.vue+++ b/src/components/Widgets/HackernewsTrending.vue@@ -32,7 +32,7 @@ export default {};},computed: {- storyType() {+ stories() {// This can be `beststories`, `topstories` or newstories// TODO: display error message if another string not matching the keywords was insertreturn this.options.stories || 'topstories';@@ -41,7 +41,7 @@ export default {return this.options.limit || 10;},endpoint() {- return `${widgetApiEndpoints.hackernewsTrending}/${this.storyType}.json`;+ return `${widgetApiEndpoints.hackernewsTrending}/${this.stories}.json`;},},methods: {