rhysd / Mstdn

Tiny web-based mastodon client for your desktop
MIT License
389 stars 15 forks source link

Config management #4

Open rhysd opened 7 years ago

rhysd commented 7 years ago

Currently we need to write up configuration directly in JSON file. However, in some cases, it's hard.

So it's better to add config window rather than writing JSON file directly. I'll try json-editor to add UI with maintaining current JSON format.

https://github.com/jdorn/json-editor

Related issue: #3

rmdes commented 7 years ago

+1 this would be really cool as for example for me my account array look like this :+1: "accounts": [ { "name": "rmdes", "host": "mastodon.indie.host", "default_page": "/web/timelines/home" }, { "name": "rmdes", "host": "mastodon.brussels", "default_page": "/web/timelines/home" } ], And i'm really not sure if this is correct or not, it doesnt seem to be since I don't see any dropdown with multi account anywhere...

rocandante commented 7 years ago

For now, I think it would be good to indicate how to fill in the account data, for example, if the name requires the @ and if the host requires https: // or not. Just happened to me when I filled the host field with the prefix https: //, then when I started the app window was left blank.

rhysd commented 7 years ago

@rikmendes @rocandante

Thank you for comments! Yes, you're right. I think I should describe how to add accounts to usage section.

rmdes commented 7 years ago

I can confirm it works by doing it like this , just add a ',' after the first block copy it entirely, add new mastodon instance, make sure that block does not finish with a ','

done !

"accounts": [ { "name": "rmdes", "host": "mastodon.indie.host", "default_page": "/web/timelines/home" },

{ "name": "rmdes", "host": "mastodon.brussels", "default_page": "/web/timelines/home" } ],