Commit Graph

10 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
Björn Bohman f412ebbd94 Add timestamp to config (#44)
* Add 'Created' ad an timestamp when the config is created.

* Add field 'Modified' on ClientConfig

This field updates when the user changes name or label on their config.
2020-03-16 08:25:04 +01:00
Fredrik Grönqvist b471f3dff5 Github actions & clean up to be able to do linting (#27)
* Github actions & clean up to be able to do linting

* renamed user

* pushing images to github packages

* Fixed tags
2019-12-19 13:03:03 +01:00
Fredrik Grönqvist 8413219dec gosec: added error handling & path cleaning 2019-12-13 12:51:22 +01:00
Daniel Lundin ad91ea4214 Update wgctrl dependency 2019-09-07 16:41:40 +02:00
Daniel Lundin 40430182f5 Add Notes field to client config 2019-07-27 11:01:07 +02:00
Daniel Lundin 49203fb2ea Rename term "device" => "client". Add some WIP ui components 2019-07-20 12:26:34 +02:00
Daniel Lundin 082a59de78 Add basic IPAM to allocate client addresses 2019-05-12 17:18:47 +02:00
Daniel Lundin 6930e9418a Create new device config on POST 2019-05-08 21:02:06 +02:00
Daniel Lundin 7653aec1a8 Add basic config 2019-05-08 20:26:13 +02:00