Commit Graph

283 Commits

Author SHA1 Message Date
Jannis Mattheis b5a224c9ae Show bad request message in ui
When a username already exists the api returns 400, this should be shown
to the user.
2018-04-08 19:49:29 +02:00
Jannis Mattheis c35df51634 Ensure only one web socket connection is enstablished 2018-04-08 19:49:29 +02:00
Jannis Mattheis de35294263 Show loading spinner while login & Fixup authentication failed messages 2018-04-08 19:49:29 +02:00
Jannis Mattheis 38fe1800e1 Close snacks faster if the queue is filled 2018-04-08 19:49:29 +02:00
Jannis Mattheis 1262f43846 Close web socket connection on delete user 2018-04-02 12:35:16 +02:00
Jannis Mattheis 6954fb5adf Close web socket connection on delete client 2018-04-02 12:35:16 +02:00
Jannis Mattheis c912bb8cba Delete Clients/Apps/Messages when deleting a user
sqlite3 doesn't support adding a foreign key via gorm.DB#AddForeignKey
this would mean, that we have some hacky solutions for having foreign
keys for sqlite and the other databases. Therefore manually deleting
the referencing models seems to be the best solution. We already have
interfaces for database capsuling, so no api must be adjusted.
2018-04-01 12:26:06 +02:00
Jannis Mattheis c1444da64f Remove login failed event
It got replaced by a snack.
2018-03-31 22:59:44 +02:00
Jannis Mattheis 8fdf0680ba Add SnackBarHandler Component 2018-03-31 22:59:44 +02:00
Jannis Mattheis 97fe5fb497 Add snack bar store 2018-03-31 22:59:44 +02:00
Jannis Mattheis 7836552bf5 Add snack messages to modify actions 2018-03-31 22:59:44 +02:00
Jannis Mattheis eced95bcc1 Add snack action 2018-03-31 22:59:44 +02:00
Jannis Mattheis 13d9350f6d Delete image on update and delete application & check for existing name 2018-03-31 18:44:49 +02:00
Jannis Mattheis 662b4dd867 Create image folder with right permission 2018-03-31 18:44:49 +02:00
Jannis Mattheis e141553e3e Use message image for notifications 2018-03-31 18:44:49 +02:00
Jannis Mattheis dcc8ea6b4c Increment API version 2018-03-31 18:44:49 +02:00
Jannis Mattheis 41dbf55eb5 Add defaultapp.png to static resources 2018-03-31 18:44:49 +02:00
Jannis Mattheis 75b3ef1b66 Make image editable on applications page 2018-03-31 18:44:49 +02:00
Jannis Mattheis fd945af8fb Add image to messages page 2018-03-31 18:44:49 +02:00
Jannis Mattheis a48204ea40 Add upload image action 2018-03-31 18:44:49 +02:00
Jannis Mattheis 2b107ea51f Append image property to all messages on UI side. 2018-03-31 18:44:49 +02:00
Jannis Mattheis acc8c4d35f Serve images folder in router 2018-03-31 18:44:49 +02:00
Jannis Mattheis ab7cc7d1e0 Add UploadApplicationImage API to router 2018-03-31 18:44:49 +02:00
Jannis Mattheis 495f6852b0 Create upload images dir on start 2018-03-31 18:44:49 +02:00
Jannis Mattheis 61d5fc59a7 Add UploadApplicationImage API 2018-03-31 18:44:49 +02:00
Jannis Mattheis dfe242b0cd Add UploadedImagesDir config setting 2018-03-31 18:44:49 +02:00
Jannis Mattheis b738115b72 Add Image property to model.Application 2018-03-31 18:44:49 +02:00
Jannis Mattheis f9fe4427f0 Add images folder to gitignore 2018-03-31 18:44:49 +02:00
Jannis Mattheis 44b46dac55 Remove unnecessary println 2018-03-31 18:44:49 +02:00
Jannis Mattheis 00d506ba7c Add js lint & building to make file 2018-03-31 18:44:49 +02:00
Jannis Mattheis a6ff23944d Remove unused method 2018-03-25 19:33:29 +02:00
Jannis Mattheis 0f2e7cf5e2 Use gofmt -s 2018-03-25 19:33:29 +02:00
Jannis Mattheis 8d7c7a5a50 Correctly delete all messages from a user
Till now only the ApplicationID got remove from the message, therefore
the message was still in the database but not visible for the user.
2018-03-25 19:33:29 +02:00
Jannis Mattheis 317bb1cb3e Remove mock & Use database util in user api 2018-03-25 19:33:29 +02:00
Jannis Mattheis b9b98f0ce9 Remove mock & Use database util in token api 2018-03-25 19:33:29 +02:00
Jannis Mattheis 785aa7e5b3 Remove mock & Use database util in message api 2018-03-25 19:33:29 +02:00
Jannis Mattheis 6e488e612b Remove mock & Use database util in authentication handler 2018-03-25 19:33:29 +02:00
Jannis Mattheis 505bc405d8 Use database util inside router test 2018-03-25 19:33:29 +02:00
Jannis Mattheis 496a0ba7dc Add in memory test database util 2018-03-25 19:33:29 +02:00
Jannis Mattheis d452b8b8ae Add asserts test util
For comparing the body of a request with an instance.
2018-03-25 19:33:29 +02:00
Jannis Mattheis 42c5cc15d8 Add auth test util 2018-03-25 19:33:29 +02:00
Jannis Mattheis 34f8cc6b77 Add create default user flag for testing 2018-03-25 19:33:29 +02:00
Jannis Mattheis 203791c63b Move password into own package to prevent package cycle 2018-03-25 19:33:29 +02:00
Jannis Mattheis 01c6800ae8 Move stream to api 2018-03-25 19:33:29 +02:00
Jannis Mattheis d4fa7fe684 Add config & db to .gitignore 2018-03-25 19:33:29 +02:00
Jannis Mattheis 61cf795c47 Move uigo to ui 2018-03-25 19:33:29 +02:00
Jannis Mattheis d5d19b55bb Limit max db connections
While load testing mysql compained about too many connections.
2018-03-21 17:21:55 +01:00
Jannis Mattheis 46f1bc17c1 Remove subpoints from table of contents 2018-03-21 17:20:11 +01:00
Jannis Mattheis 584d28e3fe Show notification on received message 2018-03-20 18:44:18 +01:00
Jannis Mattheis 9189045d74 Add notifyjs dependency 2018-03-20 18:44:18 +01:00