Reach parity with last web iteration. (#162)

* feat: add Api and Session contexts

* feat(web): add machinery/new-session

* feat(web): add servers page

* chore(web): AppRouter spacing/ordering

* feat(web): add picker, missing update-roles call for now

* feat(web): add picker saves

* chore: add roleTransactions tests

* feat(web): add auth/login
This commit is contained in:
41666 2021-03-13 04:42:07 -05:00 committed by GitHub
parent f65779f925
commit cd448b56c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 567 additions and 7 deletions

View file

@ -0,0 +1,16 @@
import * as React from 'react';
const NewSession = () => {
React.useEffect(() => {
const url = new URL(window.location.href);
const id = url.searchParams.get('session_id');
if (id) {
window.location.href = '/';
localStorage.setItem('rp_session_key', id);
}
});
return <div>Redirecting you...</div>;
};
export default NewSession;