|
|
|
@ -9,15 +9,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import NavBar from '@/components/NavBar.vue';
|
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
import { AUTH_ACCESS_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 Footer from '@/components/Footer.vue';
|
|
|
|
|
import Logo from '@/components/Logo.vue';
|
|
|
|
|
import NavBar from '@/components/NavBar.vue';
|
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
import { AUTH_ACCESS_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 Footer from '@/components/Footer.vue';
|
|
|
|
|
import Logo from '@/components/Logo.vue';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
@Component({
|
|
|
|
|
apollo: {
|
|
|
|
|
currentUser: {
|
|
|
|
|
query: CURRENT_USER_CLIENT,
|
|
|
|
@ -34,11 +34,11 @@ export default class App extends Vue {
|
|
|
|
|
|
|
|
|
|
actor = localStorage.getItem(AUTH_USER_ACTOR);
|
|
|
|
|
|
|
|
|
|
async mounted () {
|
|
|
|
|
async mounted() {
|
|
|
|
|
await this.initializeCurrentUser();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getUser (): ICurrentUser|false {
|
|
|
|
|
getUser(): ICurrentUser | false {
|
|
|
|
|
return this.currentUser.id ? this.currentUser : false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -62,42 +62,42 @@ export default class App extends Vue {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
@import "variables";
|
|
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
|
|
/* Bulma imports */
|
|
|
|
|
@import "~bulma/sass/base/_all.sass";
|
|
|
|
|
@import "~bulma/sass/components/card.sass";
|
|
|
|
|
@import "~bulma/sass/components/media.sass";
|
|
|
|
|
@import "~bulma/sass/components/message.sass";
|
|
|
|
|
@import "~bulma/sass/components/modal.sass";
|
|
|
|
|
@import "~bulma/sass/components/navbar.sass";
|
|
|
|
|
@import "~bulma/sass/components/pagination.sass";
|
|
|
|
|
@import "~bulma/sass/components/dropdown.sass";
|
|
|
|
|
@import "~bulma/sass/elements/box.sass";
|
|
|
|
|
@import "~bulma/sass/elements/button.sass";
|
|
|
|
|
@import "~bulma/sass/elements/container.sass";
|
|
|
|
|
@import "~bulma/sass/form/_all";
|
|
|
|
|
@import "~bulma/sass/elements/icon.sass";
|
|
|
|
|
@import "~bulma/sass/elements/image.sass";
|
|
|
|
|
@import "~bulma/sass/elements/other.sass";
|
|
|
|
|
@import "~bulma/sass/elements/tag.sass";
|
|
|
|
|
@import "~bulma/sass/elements/title.sass";
|
|
|
|
|
@import "~bulma/sass/elements/notification";
|
|
|
|
|
@import "~bulma/sass/grid/_all.sass";
|
|
|
|
|
@import "~bulma/sass/layout/_all.sass";
|
|
|
|
|
@import "~bulma/sass/utilities/_all";
|
|
|
|
|
/* Bulma imports */
|
|
|
|
|
@import "~bulma/sass/base/_all.sass";
|
|
|
|
|
@import "~bulma/sass/components/card.sass";
|
|
|
|
|
@import "~bulma/sass/components/media.sass";
|
|
|
|
|
@import "~bulma/sass/components/message.sass";
|
|
|
|
|
@import "~bulma/sass/components/modal.sass";
|
|
|
|
|
@import "~bulma/sass/components/navbar.sass";
|
|
|
|
|
@import "~bulma/sass/components/pagination.sass";
|
|
|
|
|
@import "~bulma/sass/components/dropdown.sass";
|
|
|
|
|
@import "~bulma/sass/elements/box.sass";
|
|
|
|
|
@import "~bulma/sass/elements/button.sass";
|
|
|
|
|
@import "~bulma/sass/elements/container.sass";
|
|
|
|
|
@import "~bulma/sass/form/_all";
|
|
|
|
|
@import "~bulma/sass/elements/icon.sass";
|
|
|
|
|
@import "~bulma/sass/elements/image.sass";
|
|
|
|
|
@import "~bulma/sass/elements/other.sass";
|
|
|
|
|
@import "~bulma/sass/elements/tag.sass";
|
|
|
|
|
@import "~bulma/sass/elements/title.sass";
|
|
|
|
|
@import "~bulma/sass/elements/notification";
|
|
|
|
|
@import "~bulma/sass/grid/_all.sass";
|
|
|
|
|
@import "~bulma/sass/layout/_all.sass";
|
|
|
|
|
@import "~bulma/sass/utilities/_all";
|
|
|
|
|
|
|
|
|
|
/* Buefy imports */
|
|
|
|
|
@import "~buefy/src/scss/utils/_all";
|
|
|
|
|
@import "~buefy/src/scss/components/datepicker";
|
|
|
|
|
@import "~buefy/src/scss/components/notices";
|
|
|
|
|
@import "~buefy/src/scss/components/dropdown";
|
|
|
|
|
@import "~buefy/src/scss/components/autocomplete";
|
|
|
|
|
@import "~buefy/src/scss/components/form";
|
|
|
|
|
@import "~buefy/src/scss/components/modal";
|
|
|
|
|
@import "~buefy/src/scss/components/tag";
|
|
|
|
|
@import "~buefy/src/scss/components/taginput";
|
|
|
|
|
@import "~buefy/src/scss/components/upload";
|
|
|
|
|
/* Buefy imports */
|
|
|
|
|
@import "~buefy/src/scss/utils/_all";
|
|
|
|
|
@import "~buefy/src/scss/components/datepicker";
|
|
|
|
|
@import "~buefy/src/scss/components/notices";
|
|
|
|
|
@import "~buefy/src/scss/components/dropdown";
|
|
|
|
|
@import "~buefy/src/scss/components/autocomplete";
|
|
|
|
|
@import "~buefy/src/scss/components/form";
|
|
|
|
|
@import "~buefy/src/scss/components/modal";
|
|
|
|
|
@import "~buefy/src/scss/components/tag";
|
|
|
|
|
@import "~buefy/src/scss/components/taginput";
|
|
|
|
|
@import "~buefy/src/scss/components/upload";
|
|
|
|
|
|
|
|
|
|
.router-enter-active,
|
|
|
|
|
.router-leave-active {
|
|
|
|
|