Skip to content

Commit

Permalink
Merge pull request #24 from killbotXD/V0.1.1-patch-1
Browse files Browse the repository at this point in the history
Fix UI crashes
  • Loading branch information
killbotXD authored Aug 19, 2020
2 parents 6d884ef + 01eacaf commit a2a9853
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 43 deletions.
Binary file modified public/favicon.ico
100644 → 100755
Binary file not shown.
Binary file modified public/img/icons/favicon-16x16.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/icons/favicon-32x32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/components/FestivalCarousel.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template lang="pug">
v-carousel(cycle hide-delimiter-background show-arrows-on-hover).text-center
v-carousel(
cycle
hide-delimiter-background
show-arrows-on-hover
height="auto" ).text-center
v-carousel-item(
height="auto"
transition="fade-transition"
reverse-transition="fade-transition"
v-for="({ node }, i) in festivalsList" :key="i"
Expand Down
6 changes: 2 additions & 4 deletions src/components/OfficeBearerCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
v-stepper-content.pa-0(step="1")
v-card(:height="avatarSize * 3")
v-img(
v-if="profile.cover.sizes"
:src="profile.cover.sizes.find(e => e.name === 'full_size').url"
:src="profile.cover.sizes.length?profile.cover.sizes.find(e => e.name === 'full_size').url:require('@/assets/cover4.svg')"
:height="avatarSize"
)
v-img(v-else src="../assets/cover4.svg" :height="avatarSize")
v-card-text.pt-0.text-center
v-avatar.elevation-4.ma-2(
:size="avatarSize"
:style="{'margin-top': `-${avatarSize / 2}px !important`}"
)
v-img(:src="profile.avatar.sizes?profile.avatar.sizes.find(e => e.name === 'full_size').url:require('@/assets/avatar_default.png')")
v-img(:src="profile.avatar.sizes.length?profile.avatar.sizes.find(e => e.name === 'full_size').url:require('@/assets/avatar_default.png')")
h2(class="black--text").font-weight-bold.mt-5 {{ profile.user.firstName }} {{ profile.user.lastName }}
p.font-weight-regular.mt-2 {{ designation.toString() }}
v-card-actions
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/CustomLightGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@click.stop="show(j)"
)
v-img(
:src="node.image.sizes[0].url"
:src="node.image.sizes.find(e => e.name === 'full_size').url"
height="250px"
v-on="on"
)
Expand Down Expand Up @@ -37,7 +37,7 @@
v-row.justify-center.mb-1
span.font-weight-light.headline.pa-2 {{ node.title }}
v-row
v-img(:src="node.image.sizes[0].url")
v-img(:src="node.image.sizes.find(e => e.name === 'full_size').url")
</template>

<script>
Expand Down
18 changes: 10 additions & 8 deletions src/components/common/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
div
section
v-card.elevation-0(color="blue darken-1 white--text" flat tile)
v-layout(row wrap align-center style="{background: #000000}").justify-center
v-flex.md6
v-layout(row).ml-12
v-row(style="{background: #000000}").justify-center
v-col(cols="12" md="6").text-center
v-layout(row)
v-container
span ABOUT US
p Student Gymkhana IITJ
br
span Coming Soon!
v-flex.md6.justify-end
v-layout(row).text-end.mr-12
v-col(cols="12" md="6").text-center
v-layout(row)
v-container(class="white--text")
p QUICK LINKS
p
Expand All @@ -31,4 +29,8 @@ export default {
};
</script>

<style scoped></style>
<style scoped>
section {
overflow-x: hidden;
}
</style>
7 changes: 1 addition & 6 deletions src/components/common/cards/CaptainComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
v-flex
v-avatar.elevation-4.ma-2(size="180")
v-img(
v-if="profile.avatar.sizes"
:src="profile.avatar.sizes.find(e => e.name === 'full_size').url"
)
v-img(
v-else
src="require('@/assets/avatar_default.png')"
:src="profile.avatar.sizes.length?profile.avatar.sizes.find(e => e.name === 'full_size').url:require('@/assets/avatar_default.png')"
)
v-flex.mt-4.font-weight-medium
| {{ profile.user.firstName }} {{ profile.user.lastName }}
Expand Down
8 changes: 1 addition & 7 deletions src/components/common/cards/CoreMemberComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
v-flex.md4
v-card.elevation-6
v-img(
v-if="profile.avatar.sizes"
:src="profile.avatar.sizes.find(e => e.name === 'full_size').url" max-height="200"
)
v-img(
v-else
src="require('@/assets/avatar_default.png')"
max-height="200"
:src="profile.avatar.sizes.length?profile.avatar.sizes.find(e => e.name === 'medium_square_crop').url:require('@/assets/avatar_default.png')"
)
v-flex.md4
v-layout(column).align-center.ma-4
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/cards/StripedCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
width="80%"
)
v-img(
:src="node.cover.sizes.length ? node.cover.sizes.find(e => e.name === 'full_size').url : require('../../../assets/cover4.svg')"
:src="node.cover.sizes.length ? node.cover.sizes.find(e => e.name === 'medium_square_crop').url : require('../../../assets/cover4.svg')"
min-height="250px"
)
v-layout.align-end.fill-height
Expand Down
36 changes: 30 additions & 6 deletions src/components/common/headers/Header.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
<template lang="pug">
v-app-bar.px-md-12(app dark dense v-if="!$apollo.queries.societies.loading")
img.mr-4(:src="logo" height="40")
v-toolbar-items
v-btn(text :to="{name: 'home'}" exact) Home
v-toolbar-items(hidden-sm-and-down)
v-btn(text :to="{name: 'home'}" exact)
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-home
span(v-if="$vuetify.breakpoint.mdAndUp") Home
v-menu(bottom='' offset-y transition='slide-y-transition')
template(v-slot:activator='{ on }')

v-btn(text dark v-on='on')
| Societies
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-account-multiple
span(v-if="$vuetify.breakpoint.mdAndUp") Societies
v-icon(right) mdi-chevron-down
v-list
v-list-item(v-for='({ node }, i) in societies.edges' :key='i' link :to="{name: 'society', params: {slug: node.slug}}")
v-list-item-title {{ node.name }}
v-btn(text :to="{name: 'konnekt-home'}") Konnekt
v-btn(text :to="{name: 'forum-home'}") Forum
v-btn(text :to="{name: 'office-bearers'}") People
v-btn(text :to="{name: 'konnekt-home'}")
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-web
span(v-if="$vuetify.breakpoint.mdAndUp") Konnekt
v-btn(text :to="{name: 'forum-home'}")
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-forum
span(v-if="$vuetify.breakpoint.mdAndUp") Forum
v-btn(text :to="{name: 'office-bearers'}")
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-clipboard-account
span(v-if="$vuetify.breakpoint.mdAndUp") People
v-spacer
</template>

Expand All @@ -28,6 +38,20 @@ export default {
}
},
name: "Header",
data: () => ({
toolbarItems: [
{ title: "Forum", icon: "mdi-forum", to: { name: "forum-home" } },
{ title: "Konnekt", icon: "mdi-web", to: { name: "konnekt-home" } },
{
title: "Account",
icon: "mdi-account",
children: [
{ title: "Profile", to: { name: "profile" } },
{ title: "Logout" }
]
}
]
}),
computed: {
logo: () => GymkhanaLogo
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/konnekt/ProfileTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
v-flex
v-parallax(
dark
src="require(@/assets/banner.jpg)"
:src="require('@/assets/banner.jpg')"
:height="$vuetify.theme.options.parallaxHeight"
)
v-layout.justify-center.align-center.fill-height
Expand Down Expand Up @@ -47,6 +47,7 @@
v-divider.mx-2
v-card-text(v-if="profile.skills")
v-chip.elevation-2.font-weight-bold.ma-1(
v-if="profile.skills.length"
xs2
color="light-blue darken-1 white--text"
v-for="(skill, i) in profile.skills.split(',')"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Club.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
v-card-text(v-if="club.eventSet.edges.length")
EventTable(:eventsList="club.eventSet.edges")
v-card-text(v-else).text-center.subtitle-1.ml-2 There are currently no events.
v-flex.md7.offset-md1.elevation-0(flat tile depressed).pl-5.xs12
v-flex.md7.offset-md1.elevation-0(flat tile depressed).pl-md-5.xs12
v-card-title.headline.justify-center
v-icon(left large) mdi-newspaper-plus
| Activities and News
Expand Down
4 changes: 2 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
v-col(v-else).text-center.title
| There is no News.
v-col(md="6" sm="6")
v-row.pa-2.justify-center.title.font-weight-regular
v-row.pa-2.justify-center.title.font-weight-regular.text-center
v-icon(left) mdi-note-text
| Upcoming Events
EventTable(
Expand All @@ -57,7 +57,7 @@
v-parallax(
v-if="!$apollo.queries.festivals.loading"
src="../assets/hero.jpeg"
:height="carouselHeight"
:height="$vuetify.breakpoint.smAndDown?'auto':carouselHeight"
)
v-content.align-center.mask
v-container.container--fluid.mb-12
Expand Down
3 changes: 1 addition & 2 deletions src/views/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
v-on="on"
dark
icon
:to='{name : "profile-edit"}'
)
v-icon(size="30") mdi-plus
span Add Social Link
span Add Social Link! Coming Soon!
v-tooltip(left color="black")
template(v-slot:activator="{ on }")
v-btn.ma-5(
Expand Down
7 changes: 5 additions & 2 deletions src/views/ProfileEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
v-col.pb-0
p.mb-0.font-weight-light Skills
v-chip.elevation-2.font-weight-bold.ma-1(
v-if="skills"
v-if="skills.length"
xs2
color="light-blue darken-1 white--text"
v-for="(skill, i) in skills"
Expand All @@ -53,6 +53,7 @@
import ProfileCard from "../components/ProfileCard";
import { VIEWER_PROFILE_QUERY } from "../graphql/queries/viewerProfileQuery";
import { UPDATE_PROFILE_MUTATION } from "../graphql/mutations/updateProfileMutation";
export default {
apollo: {
viewer: {
Expand Down Expand Up @@ -118,7 +119,9 @@ export default {
this.hometown = this.viewer.userprofile.hometown;
this.about = this.viewer.userprofile.about;
this.select = this.yearItems.find(e => e.text === this.viewer.userprofile.year);
this.skills = this.viewer.userprofile.skills.split(",");
if (this.viewer.userprofile.skills) {
this.skills = this.viewer.userprofile.skills.split(",");
}
/* eslint-enable */
return this.viewer.userprofile;
Expand Down

0 comments on commit a2a9853

Please sign in to comment.