Commit Graph

213 Commits

Author SHA1 Message Date
Jannis Mattheis 82f5c393cb Add mobx dependencies 2018-11-11 21:03:42 +01:00
Jannis Mattheis 0f9d3bde81 Only build gotify once in tests with make test-js 2018-09-17 17:51:31 +02:00
Jannis Mattheis f7b593e7b1 Remove jsdom env from tests 2018-09-17 17:51:31 +02:00
Jannis Mattheis ddcd131d92 Add message test 2018-09-17 17:51:31 +02:00
Jannis Mattheis 1b69bc9653 Add user test 2018-09-17 17:51:31 +02:00
Jannis Mattheis 40e45c1d3a Add application test 2018-09-17 17:51:31 +02:00
Jannis Mattheis c29b29a293 Add client test 2018-09-17 17:51:31 +02:00
Jannis Mattheis 32306867c2 Add test authentication (login & logout) 2018-09-17 17:51:31 +02:00
Jannis Mattheis 95340a9f01 Add puppeteer utils 2018-09-17 17:51:31 +02:00
Jannis Mattheis 0500223095 Add setup tests file for setting the jest timeout 2018-09-17 17:51:31 +02:00
Jannis Mattheis 0a311d103c Add setup file for starting puppeteer & gotify 2018-09-17 17:51:31 +02:00
Jannis Mattheis e0d8596e1c Add selector utils
provides easy access to forms and tables
2018-09-17 17:51:31 +02:00
Jannis Mattheis 8165534bb6 Add css identifiers to all components for testing 2018-09-17 17:51:31 +02:00
Jannis Mattheis 7e7d13f3c1 Add wait-on dependency
Used for waiting till the gotify instance is started.
2018-09-17 17:51:31 +02:00
Jannis Mattheis ccd1c84866 Add tree-kill dependency
Used for killing the running gotify instance.
2018-09-17 17:51:31 +02:00
Jannis Mattheis 0444304278 Add rimraf dependency
Used for deleting the created go executable.
2018-09-17 17:51:31 +02:00
Jannis Mattheis cec842cf5e Add puppeteer dependency
Used for end to end testing the ui
2018-09-17 17:51:31 +02:00
Jannis Mattheis ac88f2beab Add get-port dep
used for getting a free port in tests
2018-09-17 17:51:31 +02:00
Jannis Mattheis ba4e74efff Disable tslint no-duplicate-string
In tests it is not really useful.
2018-09-17 17:51:31 +02:00
Jannis Mattheis abe6ea25b7 [#56] Autofocus username input on login
Closes #56
2018-09-08 18:04:52 +02:00
Jannis Mattheis a6b4414d64 [#56] Autofocus "yes" on confirm dialogs 2018-09-08 18:04:52 +02:00
Jannis Mattheis 22fc8c8018 Fix tslint issues 2018-09-08 11:45:36 +02:00
Jannis Mattheis f914f50c87 Update tslint rules 2018-09-08 11:45:36 +02:00
Jannis Mattheis c43bfb0ce7 Add tslint-sonarts 2018-09-08 11:45:36 +02:00
Jannis Mattheis 8301317c5a Update jest and node types 2018-09-08 11:45:36 +02:00
Jannis Mattheis dc5c1ddc06 Update notifyjs 2018-09-08 11:45:36 +02:00
Jannis Mattheis c2d6f7b585 Update typescript 2018-09-08 11:45:36 +02:00
Jannis Mattheis 2280aca447 Update react-scripts-ts 2018-09-08 11:45:36 +02:00
Jannis Mattheis f2503936ae Update react-timeago 2018-09-08 11:45:36 +02:00
Jannis Mattheis e18c4c95e1 Update detect-browser 2018-09-08 11:45:36 +02:00
Jannis Mattheis 48f7663405 Update prop-types 2018-09-08 11:45:36 +02:00
Jannis Mattheis d0a3c13ead Update react-list 2018-09-08 11:45:36 +02:00
Jannis Mattheis 70c980fcd8 Update react-router 2018-09-08 11:45:36 +02:00
Jannis Mattheis 33100ce868 Update react & react-dom 2018-09-08 11:45:36 +02:00
Jannis Mattheis c0ae3dce12 Apply material-ui changes 2018-09-08 11:45:36 +02:00
Jannis Mattheis 21da31ecab Update material-ui 2018-09-08 11:45:36 +02:00
Jannis Mattheis a3f081307b Format 2018-08-23 17:53:45 +02:00
Jannis Mattheis 1afa51959f Add prettier 2018-08-23 17:53:45 +02:00
Jannis Mattheis 79fd6a2512 Refactor class components to SFC 2018-04-26 20:51:03 +02:00
Jannis Mattheis 72f9d435fb Remove no apps message 2018-04-26 20:51:03 +02:00
Jannis Mattheis a821a52a96 Typescriptify Users-Component 2018-04-26 20:51:03 +02:00
Jannis Mattheis c4ef531e80 Typescriptify Messages-Component 2018-04-26 20:51:03 +02:00
Jannis Mattheis 6152f74ab1 Typescriptify Login-Component 2018-04-26 20:51:03 +02:00
Jannis Mattheis 73ba29efe5 Typescriptify Clients-Component 2018-04-26 20:51:03 +02:00
Jannis Mattheis 3e5706486f Typescriptify Applications-Component 2018-04-26 20:51:03 +02:00
Jannis Mattheis f52ddd159c Add missing notifyjs declaration 2018-04-26 20:51:03 +02:00
Jannis Mattheis c404dee96d Typescriptify stores 2018-04-26 20:51:03 +02:00
Jannis Mattheis 915f40638b Add missing timeago declaration 2018-04-26 20:51:03 +02:00
Jannis Mattheis 51df6abd81 Typescriptify components 2018-04-26 20:51:03 +02:00
Jannis Mattheis 08ae6d42bc Typescriptify actions 2018-04-26 20:51:03 +02:00
Jannis Mattheis dbfa67469e Add api types 2018-04-26 20:51:03 +02:00
Jannis Mattheis d868a196b6 Typescriptify index, config and layout.jsx 2018-04-26 20:51:03 +02:00
Jannis Mattheis 75e3f88c9b Replace javascript config with typescript 2018-04-26 20:51:03 +02:00
Jannis Mattheis 3cfcbb1251 Remove react-global-configuration 2018-04-26 20:51:03 +02:00
Jannis Mattheis 26f36442fd Only shift message when messages were fetched at least one time 2018-04-18 18:09:10 +02:00
Jannis Mattheis eeadd0505c Also emit change on update apps
When messages are loaded before the apps then the messages doesn't have
an image.
2018-04-18 18:09:10 +02:00
Jannis Mattheis 74d7c7cc9e Fix wrong height calculation of react-list
react-list doesn't know the size of an item that just got rendered
(it only later caches this size), therefore it can't
correctly calculate the height of the list.
2018-04-18 18:09:10 +02:00
Jannis Mattheis 881e66ea29 [#46] Update messages on delete application 2018-04-18 18:09:10 +02:00
Jannis Mattheis 9f5ed344f4 [#34] Add key to react list
The list cached the height while switching between applications.
We fix this with the use of the key property, that means that react will
not reuse the component and make a new one.

see https://reactjs.org/docs/reconciliation.html
2018-04-13 18:56:11 +02:00
Jannis Mattheis e28a157122 [#34] Add delete messages action handling 2018-04-13 18:56:11 +02:00
Jannis Mattheis ca5a832baf [#34] Add react-list & lazy-loading to Messages & Adjust store to make requests 2018-04-13 18:56:11 +02:00
Jannis Mattheis 9ed6228013 [#34] Adjust action to adjusted api 2018-04-13 18:56:11 +02:00
Jannis Mattheis 9bcaf35e99 Fix login in edge
Using the button in edge resulted in a page reload and therefore you
couldn't login.
2018-04-13 18:56:11 +02:00
Jannis Mattheis bdfde6f25d [#34] Add react-list UI dependency 2018-04-13 18:56:11 +02:00
Jannis Mattheis 53aec56ca5 Show tooltip when no password is present 2018-04-08 19:49:29 +02:00
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 6954fb5adf Close web socket connection on delete client 2018-04-02 12:35:16 +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 e141553e3e Use message image for notifications 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 00d506ba7c Add js lint & building to make file 2018-03-31 18:44:49 +02:00
Jannis Mattheis 0f2e7cf5e2 Use gofmt -s 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 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
Jannis Mattheis 71ec859b0d Add favicon 2018-03-18 19:22:27 +01:00
Jannis Mattheis d931dfc696 Remove hardcoded url & use absolute url to make requests 2018-03-18 17:29:15 +01:00
Jannis Mattheis 1e33fd0ea4 Abort web socket requests when no token is present 2018-03-18 17:29:15 +01:00
Jannis Mattheis f1aa490035 Set valid default state for admin 2018-03-18 17:29:15 +01:00
Jannis Mattheis 6657e884b1 Remove unused dependencies 2018-03-18 17:29:15 +01:00
Jannis Mattheis 98b9d058da Add login submit with enter 2018-03-18 17:29:15 +01:00
Jannis Mattheis d5b6b8d1c3 Add login failed message 2018-03-18 17:29:15 +01:00
Jannis Mattheis 29e6421c8c Add radix param & remove unused import 2018-03-18 17:29:15 +01:00
Jannis Mattheis c76facacb6 Add service worker script 2018-03-18 17:29:15 +01:00
Jannis Mattheis 4042591717 Add Index Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 97084ce357 Add Layout Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 632f59d049 Add Navigation/Header Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis f820ba863a Add SettingsDialog Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis bdce772634 Add Users Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 5e859698f5 Add Login Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 88249a8e82 Add Messages Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 3b08e6ade3 Add Clients Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis b3fe1c1ea9 Add Applications Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 9ff41de532 Add ConfirmDialog Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 9530e42f71 Add Container Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis 89170274d9 Add DefaultPage Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis bdf4109a8f Add ToggleVisibility Component 2018-03-18 17:29:15 +01:00
Jannis Mattheis c19f5b62a0 Add axios default config 2018-03-18 17:29:15 +01:00
Jannis Mattheis fb83281978 Add Flux dispatcher 2018-03-18 17:29:15 +01:00
Jannis Mattheis ec0c06a482 Add static public resources 2018-03-18 17:29:15 +01:00
Jannis Mattheis f3a140769c Add linter settings 2018-03-18 17:29:15 +01:00
Jannis Mattheis 90e07f2489 Add UI package conf 2018-03-18 17:29:15 +01:00