Skip to content

Commit

Permalink
fix: add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmaElsoly committed Aug 11, 2024
1 parent d6781e6 commit eea09b0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
7 changes: 7 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@mdi/font": "^7.4.47",
"axios": "^1.7.3",
"mdi": "^2.2.43",
"vue": "^3.4.31",
"vue-router": "^4.4.2",
"vue3-toastify": "^0.2.2",
Expand Down
26 changes: 7 additions & 19 deletions frontend/src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,42 +36,30 @@
v-for="userName in userNameList"
:key="userName"
@click="username = userName"
><v-list-item-title>
> <template v-slot:prepend>
<v-icon icon="mdi-account"></v-icon>
</template>
<v-list-item-title>
{{ userName }}
</v-list-item-title>
</v-list-item>
</v-list>
</v-navigation-drawer>
<v-container
class="elevation-2 d-flex w-75"
class=" d-flex flex-column w-75"
fluid
style="height: fit-content"
>
<h2 class="mb-2" v-if="username.length != 0"><v-icon icon="mdi-account"></v-icon>{{ username }}</h2>
<!-- table containe flists -->
<v-data-table :items="filteredFlist" :headers="tableHeader" hover>
<v-data-table :items="filteredFlist" :headers="tableHeader" hover class="elevation-2">
<template #item.last_modified="{value}">
{{ new Date(value*1000).toString() }}
</template>
<template #item.path_uri="{value}">
<a :href="value" download> Download</a>
</template>
</v-data-table>
<!-- <v-table class="elevation-1">
<thead>
<tr>
<th class="text-left">Name</th>
<th class="text-left">Last Modified</th>
<th class="text-left">Path URI</th>
</tr>
</thead>
<tbody >
<tr v-for="item in filteredFlist">
<td>{{ item.name }}</td>
<td>{{ item.lastModified }}</td>
<td>{{ item.pathUri }}</td>
</tr>
</tbody>
</v-table> -->
</v-container>
</v-main>
<Footer></Footer>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<v-btn to="Login">Login</v-btn>
</div>
<div class="mr-5" v-else>
<v-btn to="Create">Create flist</v-btn>
<v-btn to="Create"
><v-icon icon="mdi-plus-circle-outline" class="mr-2"></v-icon>Create flist</v-btn
>
<v-btn to="Flists">View List</v-btn>
</div>
</v-app-bar>
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/components/UserFlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<v-app>
<Navbar />
<v-main>
<div>
<h2 class="ml-5 mt-5">
<v-icon icon="mdi-account"></v-icon>{{ loggedInUser }}
</h2>
</div>
<v-data-table
v-if="loggedInUser"
:items="currentUserFlists"
Expand Down

0 comments on commit eea09b0

Please sign in to comment.