From de8d4f834efe877ffbd9f4f751101bb7f5e1b537 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Thu, 20 Jul 2023 09:53:07 +0200 Subject: [PATCH] Config overhaul with tons of new options. - Lots of new config options and feature switches. - Changed the way query parameters are translated to config values and vice versa. - New layout and smarter error correction for config UI. WIP, still missing functionality for many of the new options. --- public/wall-config.json.example | 21 +- src/App.vue | 38 +++- src/components/ConfigModal.vue | 359 ++++++++++++++++++++++++++------ src/config.ts | 323 +++++++++++++++++++++++----- src/defaults.ts | 21 +- src/utils.ts | 4 + 6 files changed, 634 insertions(+), 132 deletions(-) diff --git a/public/wall-config.json.example b/public/wall-config.json.example index aec88ef..150b1d6 100644 --- a/public/wall-config.json.example +++ b/public/wall-config.json.example @@ -2,8 +2,25 @@ "servers": ["mastodon.social"], "tags": ["foss", "cats", "dogs"], "accounts": [], + + "loadPublic": false, + "loadFederated": false, + "loadTrends": false, + + "languages": [], + "badWords": [], + "hideSensitive": true, + "hideBots": true, + "hideReplies": true, + "hideBoosts": false, + "limit": 20, "interval": 10, - "theme": "light", - "info": "top" + + "title": "Fediwall", + "theme": "auto", + "showInfobar": true, + "showText": true, + "showMedia": true, + "playVideos": true, } \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 61cd473..7cb7fce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@