Skip to content

Commit 0d165c6

Browse files
committed
feat:(Components):Add component page link to the sidebar menu component
1 parent fd80478 commit 0d165c6

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

src/components/layout/side-menu/VSideMenu.vue

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,25 @@
2424

2525
{{ $t('Todos') }}
2626
</VSideMenuItem>
27+
<VSideMenuItem :to="{ name: 'Comments' }">
28+
<template #icon>
29+
<i class="bi-chat-dots-fill"></i>
30+
</template>
31+
{{ $t('Comments') }}
32+
</VSideMenuItem>
2733
</nav>
2834
</aside>
2935
</template>
3036

3137
<script>
32-
// Components
33-
import VSideMenuItem from '@/components/layout/side-menu/VSideMenuItem.vue';
38+
// Components
39+
import VSideMenuItem from '@/components/layout/side-menu/VSideMenuItem.vue';
3440
35-
export default {
36-
name: 'VSideBar',
41+
export default {
42+
name: 'VSideBar',
3743
38-
components: {
39-
VSideMenuItem
40-
}
44+
components: {
45+
VSideMenuItem
4146
}
47+
}
4248
</script>

src/locales/en/messages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
"Password": "Password",
55
"Submit": "Submit",
66
"Cancel": "Cancel",
7+
"Comments": "Comments",
78
"Dashboard": "Dashboard",
89
"Users": "Users",
910
"Authorization Error": "Authorization Error",

src/locales/fa/messages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default {
66
"Cancel": "انصراف",
77
"Dashboard": "داشبورد",
88
"Users": "کاربران",
9+
"Comments": "نظرات",
910
"Authorization Error": "خطای دسترسی",
1011
"No data available": "داده\u200Cای موجود نیست",
1112
"You are successfully logged in": "شما با موفقیت وارد سیستم شدید",

src/views/CommentsView.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<script lang="ts" setup>
2-
3-
</script>
4-
51
<template>
62
<div>
73
<h1>Comments Page</h1>
84
</div>
95
</template>
6+
7+
<script>
8+
export default {
9+
name: 'CommentsView'
10+
}
11+
</script>

0 commit comments

Comments
 (0)