Commit Graph

14 Commits

Author SHA1 Message Date
Björn Bohman ffeb822a21 Set name and label at creation of client. Fixes #48 (#49)
* Set name and label at creation of client. Fixes #48

Changes behaviour of the add button from directly creating an
configuration to directing the user to an "create configuration" view.

If no name is given the default name is used same way as before.
This means that the go backend works with the old frontend as well with the new.

* Follow best practice in writing json.

Also handle err.

* 2 Bug fixes.

1. Fix bug introduced in last commit.
Don't try to json encode data that is already encoded.

2. Honor --max-number-client-config
When the creation moved from Clients.svelte to NewClient.svelte the
check in returned json for errors got lost. Now it is back.
2020-04-14 15:26:34 +02:00
Daniel Lundin 8fae238166 Set content-type for config to avoid .txt suffixes on some devices 2019-10-09 13:17:22 +02:00
Daniel Lundin 2c046634ff Update screenshot 2019-10-09 13:12:09 +02:00
Daniel Lundin 21816558f3 Proper captilization of WireGuard 2019-10-09 13:02:48 +02:00
Daniel Lundin c2acb485c7 Add footer with link + copyright notice 2019-10-09 12:45:43 +02:00
Daniel Lundin f5e41c937e Add some basic instructions 2019-10-09 12:31:38 +02:00
Daniel Lundin 6636184c69 ui tweaks to make it purty 2019-10-03 19:21:31 +02:00
Daniel Lundin de8eec0e69 Use floating action button to add client 2019-10-03 16:51:52 +02:00
Daniel Lundin d6fe4d9817 Replace top bar 2019-10-03 15:51:36 +02:00
Daniel Lundin a584e942eb Fix username when unauthenticated 2019-10-02 19:22:35 +02:00
Daniel Lundin 9b24d6355f Add logout button in nav 2019-07-27 18:41:03 +02:00
Daniel Lundin 353310f675 Implement auth using oauth2_proxy w/headers 2019-07-27 17:59:35 +02:00
Daniel Lundin 49203fb2ea Rename term "device" => "client". Add some WIP ui components 2019-07-20 12:26:34 +02:00
Daniel Lundin e0e60f321f Add ui scaffolding 2019-06-06 19:48:24 +02:00