-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from Bansal0527/vue
Enhancements: Dropdown Menu, Google Sheet Projects, Home Link, and Routing Implementation(alumni team and current team)
- Loading branch information
Showing
6 changed files
with
162 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,42 @@ | ||
<!-- Profile[0]->Profile index --> | ||
<template lang="pug"> | ||
div(align='center', justify='center') | ||
div(v-if="loading") | ||
Preloader | ||
div(v-else) | ||
v-container | ||
v-row(justify='left') | ||
v-flex.mb-10(v-for='Profile in profiles', :key='Profile[0]', xs12='',sm12='', md6='',lg4='',xl4='') | ||
ProfileCard(:Profile='Profile') | ||
</template> | ||
|
||
<script> | ||
const ProfileCard = () => import("../components/ProfileCard"); | ||
const Preloader = () => import("../components/Preloader"); | ||
export default { | ||
name: "Profile", | ||
components: { ProfileCard, Preloader }, | ||
data: () => ({ | ||
loading: true, | ||
profiles: [] | ||
}), | ||
methods: { | ||
fetchProfiles() { | ||
// spreadsheetID=17O_B9OCnz6Byey-Y1o0K5WCTTlXJterlwNDgpjSN-s4 | ||
const url = `https://script.google.com/macros/s/AKfycbwprDq5bguYad1gsfCLxbWxM1YXZfVlWiXYK1WCbrPj5WO8JbxjqSbnieVIoosOgMbVMA/exec`; | ||
this.loading = true; | ||
fetch(url) | ||
.then(e => | ||
e.json().then(e => { | ||
console.log(e); | ||
this.profiles = e; | ||
console.log(this.profiles); | ||
}) | ||
) | ||
.finally(() => (this.loading = false)); | ||
} | ||
}, | ||
mounted() { | ||
this.fetchProfiles(); | ||
} | ||
}; | ||
</script> | ||
<!-- Profile[0]->Profile index --> | ||
<template lang="pug"> | ||
div(align='center', justify='center') | ||
div(v-if="loading") | ||
Preloader | ||
div(v-else) | ||
v-container | ||
v-row(justify='left') | ||
v-flex.mb-10(v-for='Profile in profiles', :key='Profile[0]', xs12='',sm12='', md6='',lg4='',xl4='') | ||
ProfileCard(:Profile='Profile') | ||
</template> | ||
|
||
<script> | ||
const ProfileCard = () => import("../components/ProfileCard"); | ||
const Preloader = () => import("../components/Preloader"); | ||
export default { | ||
name: "Profile", | ||
components: { ProfileCard, Preloader }, | ||
data: () => ({ | ||
loading: true, | ||
profiles: [] | ||
}), | ||
methods: { | ||
fetchProfiles() { | ||
const url = `https://script.google.com/macros/s/AKfycbwprDq5bguYad1gsfCLxbWxM1YXZfVlWiXYK1WCbrPj5WO8JbxjqSbnieVIoosOgMbVMA/exec`; | ||
this.loading = true; | ||
fetch(url) | ||
.then(e => | ||
e.json().then(e => { | ||
console.log(e); | ||
this.profiles = e; | ||
console.log(this.profiles); | ||
}) | ||
) | ||
.finally(() => (this.loading = false)); | ||
} | ||
}, | ||
mounted() { | ||
this.fetchProfiles(); | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- Profile[0]->Profile index --> | ||
<template lang="pug"> | ||
div(align='center', justify='center') | ||
div(v-if="loading") | ||
Preloader | ||
div(v-else) | ||
v-container | ||
v-row(justify='left') | ||
v-flex.mb-10(v-for='Profile in profiles', :key='Profile[0]', xs12='',sm12='', md6='',lg4='',xl4='') | ||
ProfileCard(:Profile='Profile') | ||
</template> | ||
|
||
<script> | ||
const ProfileCard = () => import("../components/ProfileCard"); | ||
const Preloader = () => import("../components/Preloader"); | ||
export default { | ||
name: "Profile", | ||
components: { ProfileCard, Preloader }, | ||
data: () => ({ | ||
loading: true, | ||
profiles: [] | ||
}), | ||
methods: { | ||
fetchProfiles() { | ||
const url = `https://script.google.com/macros/s/AKfycbwprDq5bguYad1gsfCLxbWxM1YXZfVlWiXYK1WCbrPj5WO8JbxjqSbnieVIoosOgMbVMA/exec`; | ||
this.loading = true; | ||
fetch(url) | ||
.then(e => | ||
e.json().then(e => { | ||
console.log(e); | ||
this.profiles = e; | ||
console.log(this.profiles); | ||
}) | ||
) | ||
.finally(() => (this.loading = false)); | ||
} | ||
}, | ||
mounted() { | ||
this.fetchProfiles(); | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters