-
Notifications
You must be signed in to change notification settings - Fork 0
update scaffold with our latest standards #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added translations to them
generator/templates/Authorisation/src/components/authorisation/LoginCard.vue
Show resolved
Hide resolved
generator/templates/Authorisation/src/components/authorisation/PasswordForgottenCard.vue
Show resolved
Hide resolved
generator/templates/Authorisation/src/locales/nl/authorisation.json
Outdated
Show resolved
Hide resolved
generator/templates/Authorisation/src/views/authorisation/InvitationAccept.vue
Outdated
Show resolved
Hide resolved
generator/templates/Authorisation/src/views/authorisation/RegistrationVerify.vue
Outdated
Show resolved
Hide resolved
const { response } = error; | ||
const { status } = response; | ||
|
||
this.alertType = 'error'; | ||
if (status === 429) { | ||
this.alertMessage = this.$t('errors.429', { minutes: getRateLimitMinutes(response) }); | ||
} else if (status === 400) { | ||
this.alertMessage = this.$t('authorisation.registrationVerify.errorMessage'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deze "error" scenario komt nu erg vaak voor. Kunnen we dit stukje code niet overal hergebruiken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lastige is dat het steeds net ietsjes anders is en dat lang niet ieder request een 429 heeft
Ik ben van mening dat dit per ding toch maatwerk is
generator/templates/Authorisation/src/api/endpoints/authorisation/password.js
Outdated
Show resolved
Hide resolved
generator/templates/Default/src/api/implementation/app/index.js
Outdated
Show resolved
Hide resolved
generator/templates/Default/src/api/implementation/app/transformer.js
Outdated
Show resolved
Hide resolved
generator/templates/Authorisation/src/api/endpoints/authorisation/password.js
Outdated
Show resolved
Hide resolved
generator/templates/Default/src/components/crud/fields/KDateField.vue
Outdated
Show resolved
Hide resolved
generator/templates/Default/src/components/crud/fields/KTimeField.vue
Outdated
Show resolved
Hide resolved
….json Co-authored-by: Martijn Zentjens <martijn@kingscode.nl>
…tationAccept.vue Co-authored-by: Martijn Zentjens <martijn@kingscode.nl>
…eld.vue Co-authored-by: Martijn Zentjens <martijn@kingscode.nl>
…eld.vue Co-authored-by: Martijn Zentjens <martijn@kingscode.nl>
generator/templates/Authorisation/src/api/endpoints/authorisation/register.js
Show resolved
Hide resolved
export default async function (email, token, password, passwordConfirmation) { | ||
return post('registration', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default async function (email, token, password, passwordConfirmation) { | |
return post('registration', { | |
export default async (email, token, password, passwordConfirmation) => post('registration', { email, token, password, passwordConfirmation }); |
Volgens mij werkt dit ook 😸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moet de rest wel weg. Ik kon niet alles selecteren omdat er verwijderde regels in zatten
@@ -69,33 +84,33 @@ export default { | |||
handleLogin() { | |||
this.isLoading = true; | |||
LoginRequest(this.form.email, this.form.password) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Async/await is wellicht leesbaarder :P?
generator/templates/Authorisation/src/components/authorisation/PasswordForgottenCard.vue
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nog niet klaar. Ik ga morgen tussen 6 en 7 weer verder.
Uh oh!
There was an error while loading. Please reload this page.