-
Notifications
You must be signed in to change notification settings - Fork 2
Add members #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nabilasherif
wants to merge
12
commits into
development_2.0.0
Choose a base branch
from
addmembers
base: development_2.0.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add members #40
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
814183b
intial template
nabilasherif 2979965
"add members" style modifications
nabilasherif f0b1832
"add members" style modifications
nabilasherif 78d3090
displaying members
nabilasherif 1db5db6
remove console log
nabilasherif cf549d2
remove -
nabilasherif e935a6a
<p> instead of <v-typography>
nabilasherif dedfb89
invite member dialog
nabilasherif 45ce05a
get members, added props, notifier
nabilasherif 1b47dd6
validations, addmember BE, select BE connection
nabilasherif 4f8decf
changed project api directory structure
nabilasherif 7b46a93
rm comments from be, merged with dev2, defined datatypes
nabilasherif File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,83 @@ | ||
| <template> | ||
| <div style="margin-left: 7cm; margin-right: 7cm;"> | ||
| <v-container> | ||
| <v-row > | ||
| <v-typography class="mt-2 text-h4 text-blue-darken-4" variant="h5">ALL MEMBERS</v-typography> | ||
| <v-spacer></v-spacer> | ||
| <v-btn color="primary" @click="addMember"> | ||
| INVITE MEMBERS | ||
| </v-btn> | ||
| </v-row> | ||
|
|
||
| <v-row> | ||
| <v-typography class="mt-2 text-h6 text-grey-darken-2 mb-8" variant="h6">-There are {{ count }} members registered</v-typography> | ||
| </v-row> | ||
| <br> | ||
|
|
||
| <v-row> | ||
| <h4 class="mb-2">Search Members</h4> | ||
| </v-row> | ||
|
|
||
| <v-row> | ||
| <v-text-field v-model="searchText" label="Search" variant="outlined"></v-text-field> | ||
| <v-btn color="primary" variant="outlined" @click="SearchMember" style="height: 56px; width:80px; padding: 0; margin: 0;">Search</v-btn> | ||
| </v-row> | ||
|
|
||
| <!-- seperate component for displaying members? --> | ||
| <v-row> | ||
| <v-col v-for="member in members" :key="member.email" cols="12" sm="6" md="4"> | ||
| <v-card class="ma-2" outlined> | ||
| <v-card-title>{{ member.name }}</v-card-title> | ||
| <v-card-subtitle>{{ member.email }}</v-card-subtitle> | ||
| <v-card-actions> | ||
| <v-btn @click="viewMember(member.id)">View Details</v-btn> | ||
| </v-card-actions> | ||
| </v-card> | ||
| </v-col> | ||
| </v-row> | ||
| </v-container> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| import { ref } from 'vue'; | ||
| import { defineProps } from 'vue'; | ||
| import axios from '@/api/axios'; | ||
| export default{ | ||
| setup(){ | ||
| const props =defineProps({ | ||
| count:{ | ||
| type :Number, | ||
| required : true, | ||
| }, | ||
| members:{ | ||
| type :Array, | ||
| required :true, | ||
| }, | ||
| }); | ||
|
|
||
|
|
||
| let searchText=ref(""); | ||
|
|
||
| const addMember = () => { | ||
| }; | ||
|
|
||
|
|
||
| const SearchMember = async () => { | ||
|
||
| try { | ||
| members.value= await axios.Search(searchText.value); | ||
| } catch (error) { | ||
| console.error('Error searching for members:', error); | ||
| } | ||
| }; | ||
|
|
||
| return{ | ||
| props, | ||
| SearchMember, | ||
| addMember, | ||
| searchText | ||
| } | ||
| } | ||
|
|
||
| } | ||
| </script> | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| { | ||
| "dependencies": { | ||
| "vuetify": "3.7.0-beta.1" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console logs