* Add note to public page

* Add project chooser on public view

* Optimize loading order

So much nicer to use now

Closes #298

* Fix the private project switcher too

* Add transition to public view

* Prevent project switching if youre already on that project

* [WIP] Add reset password form

* Add request password reset page

* Add jwt-payload util

* Install base-64

* Fix test typing

* Add new errors to translations

* Finish reset password flow

* Fix foreground color on v-notice

* Fix tests

* Allow code in translateError + render project error translated on login

* Remove wrong reference to error component

* Render project key if name is unknown

* Fix date-fns version

* Fix tests
This commit is contained in:
Rijk van Zanten
2020-04-09 19:06:15 -04:00
committed by GitHub
parent 153eaec78a
commit 7485a97a3b
39 changed files with 710 additions and 244 deletions

View File

@@ -14,7 +14,7 @@ interface Response extends AxiosResponse {
config: RequestConfig;
}
export interface Error extends AxiosError {
export interface RequestError extends AxiosError {
response: Response;
}
@@ -37,7 +37,7 @@ export const onResponse = (response: AxiosResponse | Response) => {
return response;
};
export const onError = async (error: Error) => {
export const onError = async (error: RequestError) => {
const requestsStore = useRequestsStore();
const id = (error.response.config as RequestConfig).id;
requestsStore.endRequest(id);