Skip to content

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

Merged
merged 22 commits into from
Oct 23, 2020

Conversation

ricardovanlaarhoven
Copy link
Contributor

@ricardovanlaarhoven ricardovanlaarhoven commented Oct 22, 2020

  • Updated the usage of models
  • renames mainMenu to TheMainMenu
  • add basis sass files
  • updated dependencies
  • add i18n
  • updated auth routes with i18n and some improvements
  • added field wrappers
  • splitted router files
  • breadcrumbs
  • remove unused mixins (old way of converting requests into formdata)

Comment on lines +94 to +102
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');
}
Copy link
Contributor

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

Copy link
Contributor Author

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

ricardovanlaarhoven and others added 6 commits October 22, 2020 11:35
….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>
@ricardovanlaarhoven ricardovanlaarhoven marked this pull request as ready for review October 22, 2020 10:20
Comment on lines 3 to 4
export default async function (email, token, password, passwordConfirmation) {
return post('registration', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 😸

Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor

@jvhellemondt jvhellemondt left a 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.

@ricardovanlaarhoven ricardovanlaarhoven merged commit 51f53ca into master Oct 23, 2020
@ricardovanlaarhoven ricardovanlaarhoven deleted the update-scaffold branch October 23, 2020 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants