Skip to content

Commit 9735f7a

Browse files
add vuetify 2.0 support
1 parent b042a04 commit 9735f7a

File tree

15 files changed

+34
-26
lines changed

15 files changed

+34
-26
lines changed

generator/templates/Authorisation/src/store/modules/Authorization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
actions: {
1313
login(context, data) {
1414
return new Promise((resolve, reject) => {
15-
$http.post('oauth/token',
15+
window.$http.post('oauth/token',
1616
{
1717
grant_type: 'password',
1818
client_id: process.env.VUE_APP_OAUTH_CLIENT_ID,

generator/templates/Authorisation/src/views/InvitationAccept.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
v-model="password_confirmation"
3535
></v-text-field>
3636
</template>
37-
<div class="text-xs-center" v-else>
37+
<div class="text-center" v-else>
3838
<v-progress-circular
3939
:size="70"
4040
:width="7"
@@ -105,7 +105,7 @@
105105
},
106106
handleLogin() {
107107
this.$router.push({name: 'login'});
108-
}, serverError(name, v) {
108+
}, serverError(name) {
109109
if (this.errors !== null && typeof this.errors[name] !== 'undefined') {
110110
return this.errors[name][0];
111111
}

generator/templates/Authorisation/src/views/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
tabindex="2"
2929
></v-text-field>
3030
</template>
31-
<div class="text-xs-center" v-else>
31+
<div class="text-center" v-else>
3232
<v-progress-circular
3333
:size="70"
3434
:width="7"

generator/templates/Authorisation/src/views/PasswordForgotten.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
v-model="email"
1919
></v-text-field>
2020
</template>
21-
<div class="text-xs-center" v-else>
21+
<div class="text-center" v-else>
2222
<v-progress-circular
2323
:size="70"
2424
:width="7"

generator/templates/Authorisation/src/views/PasswordReset.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
v-model="password_confirmation"
3535
></v-text-field>
3636
</template>
37-
<div class="text-xs-center" v-else>
37+
<div class="text-center" v-else>
3838
<v-progress-circular
3939
:size="70"
4040
:width="7"
@@ -105,7 +105,7 @@
105105
},
106106
handleLogin() {
107107
this.$router.push({name: 'login'});
108-
}, serverError(name, v) {
108+
}, serverError(name) {
109109
if (this.errors !== null && typeof this.errors[name] !== 'undefined') {
110110
return this.errors[name][0];
111111
}

generator/templates/Authorisation/src/views/Profile.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<v-form @submit.prevent="updateProfile" ref="profileForm">
66
<v-subheader class="pa-0">Profiel</v-subheader>
77
<v-card class="themed-color">
8-
<div class="text-xs-center pa-12"
8+
<div class="text-center pa-12"
99
v-if="profileFormLoading">
1010
<v-progress-circular
1111
:width="3"
@@ -46,7 +46,7 @@
4646
<v-form @submit.prevent="updatePassword" ref="passwordForm">
4747
<v-subheader class="pa-0">Wachtwoord</v-subheader>
4848
<v-card class="themed-color">
49-
<div class="text-xs-center pa-12"
49+
<div class="text-center pa-12"
5050
v-if="passwordFormLoading">
5151
<v-progress-circular
5252
:width="3"
@@ -145,7 +145,7 @@
145145
});
146146
});
147147
},
148-
serverError(name, v) {
148+
serverError(name) {
149149
if (this.errors !== null && typeof this.errors[name] !== 'undefined') {
150150
return this.errors[name][0];
151151
}

generator/templates/Crud/src/components/BaseForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
clear() {
6363
this.$refs.form.reset();
6464
},
65-
serverError(name, v) {
65+
serverError(name) {
6666
if (this.errors !== null && typeof this.errors[name] !== 'undefined') {
6767
return this.errors[name][0];
6868
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
NODE_ENV=development
22
VUE_APP_ROOT_API=<%= options.rootUrl %>
3+
VUE_APP_PUBLIC_PATH=
34
<%_ if (options.useAuthorisation) { _%>
45
VUE_APP_OAUTH_CLIENT_ID=<%= options.oauthClientId %>
56
VUE_APP_OAUTH_CLIENT_SECRET=<%= options.oauthSecret %>
6-
<%_ } _%>
7+
<%_ } _%>

generator/templates/Default/_env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
NODE_ENV=development
22
VUE_APP_ROOT_API=//url.local/api
3+
VUE_APP_PUBLIC_PATH=
34
<%_ if (options.useAuthorisation) { _%>
45
VUE_APP_OAUTH_CLIENT_SECRET=
56
VUE_APP_OAUTH_CLIENT_ID=

generator/templates/Default/src/components/PaginatedAutocomplete.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
v-if="enabled"
99
>
1010
<template v-slot:append-item>
11-
<v-flex v-if="canLoadMoreItems" class="text-xs-center">
11+
<v-flex v-if="canLoadMoreItems" class="text-center">
1212
<v-btn color="accent" @click="getItemsFromApi(page + 1)">Meer laden</v-btn>
1313
</v-flex>
1414
</template>

0 commit comments

Comments
 (0)