Commit Graph

117 Commits

Author SHA1 Message Date
Charles Morgan 861911ca49 Move page titles to PageContentBlocks 2020-09-07 23:26:18 -04:00
Dane Everitt 4ee19b6847 Tweak UI for dashboard 2020-08-29 18:20:12 -07:00
Dane Everitt 9e60cf9f53 Show server status 2020-08-24 21:17:15 -07:00
Dane Everitt e873c597bb Allow passing props through to determine modal options 2020-08-17 22:04:24 -07:00
Dane Everitt c28cba92e2 Make modals programatically controllable via a HOC
This allows entire components to be unmounted when the modal is hidden without affecting the fade in/out of the modal itself.

This also makes it easier to programatically dismiss a modal without having to copy the visibility all over the place, and makes working with props much simpler in those modal components
2020-08-17 21:35:11 -07:00
Dane Everitt d41b86f0ea Correctly pass along allowed IPs for client API keys, closes #2244 2020-08-17 19:48:51 -07:00
Charles Morgan d3316f61d7 Titles on index / account pages
Also changed to use  `const { ..., name: serverName } = useServer();` where feasible
2020-08-01 23:49:00 -04:00
Dane Everitt f0ac0725b6 [Security] Don't return all servers on the system when not a root admin and admin level servers are requested
Cleaned up the API endpoint by simplifying the logic and adds test case to cover this bug.

If you ever need to list _all_ of the servers on the system you should be using the application API endpoint for the servers most likely.
2020-07-26 10:43:46 -07:00
Dane Everitt 6c0d308348 Paginate servers on frontend; closes #2106 2020-07-14 20:48:41 -07:00
Dane Everitt 01faa86c73 swr for servers on dash; fix whatever is going on with the spinner 2020-07-12 11:15:54 -07:00
DarthShmev 3dbb297645 Update DisableTwoFactorModal.tsx - Fix lint errors
Whoops! Trailing space after `<Button` on line 60.
2020-07-12 13:51:54 -04:00
Dane Everitt be1888f8eb Merge pull request #2168 from DarthShmev/patch-2
Fix Two Factor Authentication Buttons colour and sizing. Closes #2167
2020-07-12 10:44:51 -07:00
DarthShmev 156391ef6d Update ServerRow.tsx - Fix yarn compile errors.
"Unlimited" -> 'Unlimited'
Removed extra blank line
2020-07-12 13:41:41 -04:00
DarthShmev c59698d055 Update colour of disable two factor confirmation button 2020-07-12 01:14:08 -04:00
DarthShmev 3b16a4c5ab Adjust size of close button for SetupTwoFactorModal 2020-07-12 00:59:34 -04:00
Matthew Penner a9bb692112 Merge branch 'develop' into fix/2071 2020-07-11 12:29:04 -06:00
Dane Everitt 5c18fd1f0c Show allocated ports on settings page 2020-07-08 21:42:37 -07:00
Dane Everitt 28992c5e43 Speed up animations throughout the panel 2020-07-05 13:56:04 -07:00
Dane Everitt cbea4078fb Remove lodash deps to reduce bundle size more 2020-07-04 21:46:49 -07:00
Dane Everitt 732594a164 Remove unused imports 2020-07-04 18:46:09 -07:00
Dane Everitt c419d15907 eslint cleanup 2020-07-04 18:30:50 -07:00
Dane Everitt 1e163aa792 Get server console page rendering (mostly) correctly 2020-07-04 15:40:41 -07:00
Dane Everitt 43ff67238c Fix search modal 2020-07-04 15:19:46 -07:00
Dane Everitt 82cf070c06 Fix styling on 2fa codes modal 2020-07-04 15:05:44 -07:00
Matthew Penner e4d141fa6f Merge branch 'develop' into fix/2071 2020-07-04 15:22:25 -06:00
Dane Everitt 5473edc006 Get spinners back in working order 2020-07-04 12:39:55 -07:00
Dane Everitt bcf0a0586d Support textareas and cleanup API page 2020-07-04 09:28:03 -07:00
Dane Everitt baf35be8e8 Update fields to have a custom component 2020-07-04 09:13:41 -07:00
Dane Everitt e8755ac598 Kind of get account stuff working; IDE is throwing a fit right now 2020-07-03 15:37:26 -07:00
Dane Everitt d93e804a31 Get server listing design working mostly correct 2020-07-03 14:50:37 -07:00
Dane Everitt 94e3acb9c4 Get compilation back to working 2020-07-03 14:19:05 -07:00
Dane Everitt 795e045950 Display generated recovery tokens when enabling two factor 2020-07-02 22:23:25 -07:00
Matthew Penner e903d4cc2a Use 1024 instead of 1000 for byte conversions, rename gloabl.d.ts to global.d.ts 2020-06-10 14:00:43 -06:00
Charles Morgan 3df0febd0c Less Lines = Better
Same logic, just more compact and react like
2020-05-17 00:34:25 -04:00
Charles Morgan 564933fcb1 Show "unlimited" not 0
Shows unlimited for resources if they're set to "0"
Im sure we could also just remove the "of {limit}" part if its unlimited? Dane Advise

Im sure there is a 100x better way of doing this? Dane please advise.
2020-05-16 03:16:06 -04:00
Dane Everitt e2e82b9bf3 Little bit better UI for suspended 2020-04-25 17:59:46 -07:00
Dane Everitt c4f4f1f5c8 Don't show an error in the listing if the server is still installing or suspended 2020-04-25 17:58:09 -07:00
Dane Everitt f45c03a449 Support filtering to own/all servers if user is an admin 2020-04-25 17:52:32 -07:00
Dane Everitt 41a94c66e4 Show an error box if we couldn't fetch details about the instance 2020-04-17 12:03:16 -07:00
Dane Everitt e6a61fbe9b Update views to support a more logical container 2020-04-17 11:17:01 -07:00
Dane Everitt fc31d6347e Correctly reset server state when the URL is changed 2020-04-12 16:19:43 -07:00
Dane Everitt 76300209f1 Correctly clear the interval for resource use checking 2020-04-10 12:49:09 -07:00
Dane Everitt 0dbf6b51b5 Add very simple search support to pages, togglable with "k" 2020-04-03 22:39:53 -07:00
Dane Everitt e4e5dea6b8 Fix API key creation logic 2020-03-28 16:06:36 -07:00
Dane Everitt 1270e51248 Add support for deleting a subuser from a server 2020-03-27 15:32:33 -07:00
Dane Everitt 51c5cf4dbb Get basic modal view for editing/creating a new subuser working 2020-03-25 21:58:37 -07:00
Dane Everitt 8d52e2e1a7 Finalize API key management for accounts 2020-03-22 19:10:49 -07:00
Dane Everitt 3ef649d984 Display the API keys 2020-03-22 18:25:29 -07:00
Dane Everitt 933a4733e8 Add base support for creating a new API key for an account 2020-03-22 18:15:38 -07:00
Dane Everitt edb9657e2b Upgrade to formik@2 2020-03-18 21:32:07 -07:00