-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
View Events/Seminars Bugs, Announcement Bugs, View Profile (#83)
* Seminar mutation (#78) * Validates seminar start/end datetimes with each other and corresponding event #59, closes #46 * Ignore frontend package-lock file * Connect api (#80) * search page done * view seminar and event * Fix query string construction * displayed dates and follow/attend both events/seminars * scroll fix and my events * manage events done * suggestions done and scroll 2.0 * Vivian branch seminar (#49) * Parses input for create event page * Create event will add to the datebase * not broken * Transfer div kind of works * transfer model should add organizers to db * fixes for transfer model * create page event works * create seminar page can pull event names from database * trying fetch stuff * please take the fetch attempt things * calendar changes that apparently did not get pushed * create seminar page displays events and it is selectable * create seminar page connects to the database * fixes for createSeminar dropdown for events reflect selection and seminar created succesfully * transfer data div is fixed now it displays last name and it does not display yourself as a selectable user * create event fixed, pushes two of the current user before * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Create event page now works like the seminar page with the date picker, time picker and transfer component fixed. * Vivian branch (#71) * Parses input for create event page * Create event will add to the datebase * not broken * Transfer div kind of works * transfer model should add organizers to db * fixes for transfer model * create page event works * create seminar page can pull event names from database * trying fetch stuff * please take the fetch attempt things * calendar changes that apparently did not get pushed * create seminar page displays events and it is selectable * create seminar page connects to the database * fixes for createSeminar dropdown for events reflect selection and seminar created succesfully * transfer data div is fixed now it displays last name and it does not display yourself as a selectable user * create event fixed, pushes two of the current user before * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Create event page now works like the seminar page with the date picker, time picker and transfer component fixed. * Vivian branch seminar (#49) (#60) * Parses input for create event page * Create event will add to the datebase * not broken * Transfer div kind of works * transfer model should add organizers to db * fixes for transfer model * create page event works * create seminar page can pull event names from database * trying fetch stuff * please take the fetch attempt things * calendar changes that apparently did not get pushed * create seminar page displays events and it is selectable * create seminar page connects to the database * fixes for createSeminar dropdown for events reflect selection and seminar created succesfully * transfer data div is fixed now it displays last name and it does not display yourself as a selectable user * create event fixed, pushes two of the current user before * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Transfer data component is fixed, you as the user won't appear on the available organizer list. Event duration is ordered in terms of start date and time then end date and time. * Create event page now works like the seminar page with the date picker, time picker and transfer component fixed. * News are no longer all the same date. Newsfeed completed. Create event and seminar has default of FFA if nothing is chosen and decimals are rounded to whole numbers. * merge fixes 2 * Changes to make newsfeed work that were deleted in last commit of VivianBranch * helper functions and big fixes * Connect api (#76) * search page done * view seminar and event * Fix query string construction * displayed dates and follow/attend both events/seminars * scroll fix and my events * manage events done * suggestions done and scroll 2.0 * helper functions and big fixes * bugs and profile * Closes #79, Added announcement root resolver and fixed queryAnnouncementByTypeID to return all parts of announcements (#82) * Delete clg closes #77 closes #54 closes #61 closes #79
- Loading branch information
Tamara Charchoghlyan
authored
Nov 12, 2018
1 parent
61aa782
commit 52d8d40
Showing
19 changed files
with
765 additions
and
1,084 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 was deleted.
Oops, something went wrong.
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,40 +1,46 @@ | ||
<template> | ||
<div class="page-profile-edit"> | ||
<div class="label-switch-box"> | ||
<span>label: </span> | ||
<el-button v-if="!edit" type="primary" @click="onEdit">Edit</el-button> | ||
<!-- <span>label: </span> | ||
<el-radio-group v-model="labelPosition" size="small"> | ||
<el-radio-button label="left">Left</el-radio-button> | ||
<el-radio-button label="right">Right</el-radio-button> | ||
<el-radio-button label="top">Top</el-radio-button> | ||
</el-radio-group> | ||
</el-radio-group> --> | ||
</div> | ||
|
||
<el-form ref="form" :model="form" label-width="120px" :label-position="labelPosition"> | ||
<el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Username"> | ||
<el-input v-model="form.username"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Email"> | ||
<el-input v-model="form.email" type="email"/> | ||
<el-input :disabled="!edit" v-model="form.email" type="email"/> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
<el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="First name"> | ||
<el-input v-model="form.firstName"/> | ||
<el-input :disabled="!edit" v-model="form.firstName"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Middle name"> | ||
<el-input :disabled="!edit" v-model="form.middleName"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Last name"> | ||
<el-input v-model="form.lastName"/> | ||
<el-input :disabled="!edit" v-model="form.lastName"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Organization"> | ||
<el-input :disabled="!edit" v-model="form.orgnization"/> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
<el-col> | ||
<!-- <el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Birthday"> | ||
<el-date-picker type="date" placeholder="Pick a date" v-model="form.birthday" style="width: 100%;"></el-date-picker> | ||
|
@@ -48,44 +54,67 @@ | |
</el-radio-group> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
</el-col> --> | ||
<el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Phone"> | ||
<el-input v-model="form.phone" placeholder="+xx xxx xxx xxxx"/> | ||
<el-input :disabled="!edit" v-model="form.phone" placeholder="+1 xxx xxx xxxx"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="LinkedIn"> | ||
<el-input :disabled="!edit" v-model="form.linkedIn" placeholder="LinkedIn.com"> | ||
<template slot="prepend">Http://</template> | ||
</el-input> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Twitter"> | ||
<el-input :disabled="!edit" v-model="form.twitter" placeholder="Twitter.com"> | ||
<template slot="prepend">Http://</template> | ||
</el-input> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Facebook"> | ||
<el-input :disabled="!edit" v-model="form.facebook" placeholder="facebook.com"> | ||
<template slot="prepend">Http://</template> | ||
</el-input> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Website"> | ||
<el-input v-model="form.website" placeholder="https://"/> | ||
<el-form-item label="Instagram"> | ||
<el-input :disabled="!edit" v-model="form.insta" placeholder="Instagram.com"> | ||
<template slot="prepend">Http://</template> | ||
</el-input> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
<el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Address"> | ||
<el-input v-model="form.address"/> | ||
<el-input :disabled="!edit" v-model="form.address"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Postal code"> | ||
<el-input v-model="form.postalCode"/> | ||
<el-input :disabled="!edit" v-model="form.postalCode"/> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
<el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="City"> | ||
<el-input v-model="form.city"/> | ||
<el-input :disabled="!edit" v-model="form.city"/> | ||
</el-form-item> | ||
</el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Country"> | ||
<el-input v-model="form.country"/> | ||
<el-input :disabled="!edit" v-model="form.country"/> | ||
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
<el-col> | ||
<!-- <el-col> | ||
<el-col :span="12" :md="12" :sm="24" :xs="24" class="col-p"> | ||
<el-form-item label="Hobbies"> | ||
<el-select | ||
|
@@ -125,13 +154,13 @@ | |
</el-form-item> | ||
</el-col> | ||
</el-col> | ||
|
||
--> | ||
<el-col class="col-p"> | ||
<el-form-item label="About me"> | ||
<el-input type="textarea" v-model="form.aboutMe" autosize></el-input> | ||
<el-input :disabled="!edit" type="textarea" v-model="form.aboutMe" autosize></el-input> | ||
</el-form-item> | ||
</el-col> | ||
<el-col class="col-p"> | ||
<el-col v-if="edit" class="col-p"> | ||
<el-form-item> | ||
<el-button type="primary" @click="onSubmit">Save</el-button> | ||
<el-button>Cancel</el-button> | ||
|
@@ -147,22 +176,28 @@ export default { | |
name: 'ProfileEdit', | ||
data() { | ||
return { | ||
user: this.$store.state.user, | ||
edit: false, | ||
form: { | ||
username: 'aShenton', | ||
email: '[email protected]', | ||
firstName: 'Aurora', | ||
lastName: 'Shenton', | ||
birthday: '1991-02-13T23:00:00.000Z', | ||
phone: '', | ||
website: '', | ||
hobbies: [], | ||
skills: ['JavaScript', 'HTML', 'CSS', 'Vue.js'], | ||
firstName: this.$store.state.user.first_name, | ||
middleName: this.$store.state.user.middle_name, | ||
lastName: this.$store.state.user.last_name, | ||
email: this.$store.state.user.email, | ||
orgnization: this.$store.state.user.orgnization, | ||
// birthday: '1991-02-13T23:00:00.000Z', | ||
phone: this.$store.state.user.phone_number, | ||
linkedIn:this.$store.state.user.linked_in, | ||
twitter: this.$store.state.user.twitter, | ||
facebook: this.$store.state.user.facebook, | ||
insta: this.$store.state.user.instagram, | ||
// hobbies: [], | ||
// skills: ['JavaScript', 'HTML', 'CSS', 'Vue.js'], | ||
gender: 'Female', | ||
address: '', | ||
city: '', | ||
country: '', | ||
postalCode: '', | ||
aboutMe: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus posuere libero, nec convallis arcu ullamcorper a. Vestibulum diam neque, egestas scelerisque arcu a, fermentum ornare mauris. Ut venenatis vulputate maximus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur scelerisque quis turpis ac tempus. Quisque dolor dolor, fermentum nec magna eget, fringilla auctor lacus. Aenean sagittis est ac ligula pharetra, quis imperdiet ante dignissim. Ut vehicula nec nisl a pretium. Quisque faucibus auctor viverra. Sed ultricies convallis magna. In blandit eros id efficitur vulputate. Duis efficitur sollicitudin dui non vehicula. Nullam ut eros fermentum, dapibus metus non, accumsan neque. Mauris sed pellentesque felis. Suspendisse viverra risus sit amet congue consectetur.' | ||
aboutMe: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dapibus posuere libero, nec convallis arcu ullamcorper a. Vestibulum diam neque, egestas scelerisque arcu a, fermentum ornare mauris. Ut venenatis vulputate maximus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.' | ||
}, | ||
hobbies: [ | ||
{ | ||
|
@@ -194,11 +229,28 @@ export default { | |
methods: { | ||
onSubmit() { | ||
console.log('submit!'); | ||
this.edit = false | ||
}, | ||
resizeLabelPosition() { | ||
if(window.innerWidth <= 768) { | ||
this.labelPosition = 'top' | ||
} | ||
}, | ||
onEdit(){ | ||
this.edit = true | ||
}, | ||
onCancel(){ | ||
this.firstName = this.$store.state.user.first_name | ||
this.middleName = this.$store.state.user.middle_name | ||
this.lastName = this.$store.state.user.last_name | ||
this.email = this.$store.state.user.email | ||
this.orgnization = this.$store.state.user.orgnization | ||
this.phone = this.$store.state.user.phone_number | ||
this.linkedIn =this.$store.state.user.linked_in | ||
this.twitter = this.$store.state.user.twitter | ||
this.facebook = this.$store.state.user.facebook | ||
this.insta = this.$store.state.user.instagram | ||
} | ||
}, | ||
mounted() { | ||
|
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
Oops, something went wrong.