From ee1777d8abf8f94cf0d9f21474bc8d3ae796cd36 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 22 Mar 2019 10:57:14 +0100 Subject: [PATCH] Lint JS files Signed-off-by: Thomas Citharel --- js/src/App.vue | 40 ++++++++++++------------ js/src/components/Event/EventCard.vue | 10 +++--- js/src/components/Group/GroupCard.vue | 4 +-- js/src/components/NavBar.vue | 40 ++++++++++++------------ js/src/graphql/event.ts | 8 ++--- js/src/main.ts | 6 ++-- js/src/types/current-user.model.ts | 4 +-- js/src/types/event.model.ts | 24 +++++++------- js/src/types/login.model.ts | 4 +-- js/src/utils/auth.ts | 2 +- js/src/views/Account/Identities.vue | 16 +++++----- js/src/views/Account/Profile.vue | 24 +++++++------- js/src/views/Account/Register.vue | 14 ++++----- js/src/views/Event/Create.vue | 40 ++++++++++++------------ js/src/views/Event/Event.vue | 31 +++++++++--------- js/src/views/Event/EventList.vue | 10 +++--- js/src/views/Group/Create.vue | 6 ++-- js/src/views/Group/Group.vue | 20 ++++++------ js/src/views/Group/GroupList.vue | 4 +-- js/src/views/Home.vue | 21 +++++-------- js/src/views/Location.vue | 12 +++---- js/src/views/User/Login.vue | 34 ++++++++++---------- js/src/views/User/PasswordReset.vue | 28 ++++++++--------- js/src/views/User/Register.vue | 20 ++++++------ js/src/views/User/ResendConfirmation.vue | 20 ++++++------ js/src/views/User/SendPasswordReset.vue | 24 +++++++------- js/src/views/User/Validate.vue | 14 ++++----- 27 files changed, 237 insertions(+), 243 deletions(-) diff --git a/js/src/App.vue b/js/src/App.vue index 79b809b51..11f6b01d0 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -21,55 +21,55 @@ import NavBar from '@/components/NavBar.vue'; import { Component, Vue } from 'vue-property-decorator'; import { AUTH_TOKEN, AUTH_USER_ACTOR, AUTH_USER_EMAIL, AUTH_USER_ID } from '@/constants'; import { CURRENT_USER_CLIENT, UPDATE_CURRENT_USER_CLIENT } from '@/graphql/user'; -import { ICurrentUser } from '@/types/current-user.model' +import { ICurrentUser } from '@/types/current-user.model'; @Component({ apollo: { currentUser: { - query: CURRENT_USER_CLIENT - } + query: CURRENT_USER_CLIENT, + }, }, components: { - NavBar - } + NavBar, + }, }) export default class App extends Vue { drawer = false; fab = false; items = [ { - icon: "poll", - text: "Events", - route: "EventList", - role: null + icon: 'poll', + text: 'Events', + route: 'EventList', + role: null, }, { - icon: "group", - text: "Groups", - route: "GroupList", - role: null + icon: 'group', + text: 'Groups', + route: 'GroupList', + role: null, }, - { icon: "settings", text: "Settings", role: "ROLE_USER" }, - { icon: "chat_bubble", text: "Send feedback", role: "ROLE_USER" }, - { icon: "help", text: "Help", role: null }, - { icon: "phonelink", text: "App downloads", role: null } + { icon: 'settings', text: 'Settings', role: 'ROLE_USER' }, + { icon: 'chat_bubble', text: 'Send feedback', role: 'ROLE_USER' }, + { icon: 'help', text: 'Help', role: null }, + { icon: 'phonelink', text: 'App downloads', role: null }, ]; error = { timeout: 3000, show: false, - text: "" + text: '', }; currentUser!: ICurrentUser; actor = localStorage.getItem(AUTH_USER_ACTOR); mounted () { - this.initializeCurrentUser() + this.initializeCurrentUser(); } get displayed_name () { // FIXME: load actor - return "no implemented"; + return 'no implemented'; // return this.actor.display_name === null ? this.actor.username : this.actor.display_name } diff --git a/js/src/components/Event/EventCard.vue b/js/src/components/Event/EventCard.vue index cb6a18f31..9023e1679 100644 --- a/js/src/components/Event/EventCard.vue +++ b/js/src/components/Event/EventCard.vue @@ -10,7 +10,7 @@

{{ event.title }}

- {{ event.begins_on | formatDay }} + {{ event.beginsOn | formatDay }}
@@ -33,8 +33,8 @@ diff --git a/js/src/components/Group/GroupCard.vue b/js/src/components/Group/GroupCard.vue index 895aee0cd..a476821ce 100644 --- a/js/src/components/Group/GroupCard.vue +++ b/js/src/components/Group/GroupCard.vue @@ -19,8 +19,8 @@ diff --git a/js/src/views/Account/Register.vue b/js/src/views/Account/Register.vue index 112afe724..b872b6290 100644 --- a/js/src/views/Account/Register.vue +++ b/js/src/views/Account/Register.vue @@ -70,11 +70,11 @@ diff --git a/js/src/views/User/Login.vue b/js/src/views/User/Login.vue index 5bdbbdabc..770649bda 100644 --- a/js/src/views/User/Login.vue +++ b/js/src/views/User/Login.vue @@ -53,29 +53,29 @@