Skip to content

Commit 00bfd32

Browse files
committed
AV-07: Added linked to the menu and folder structured of linked list
1 parent 1c00c0e commit 00bfd32

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>
3+
<h1>Linked List</h1>
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: "Linked-List"
10+
}
11+
</script>
12+
13+
<style scoped>
14+
15+
</style>

src/components/menu.vue

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
{ id: 1, label: 'Home', route: '/' },
2323
{ id: 2, label: 'Searching Algorithm', route: '/search' },
2424
{ id: 3, label: 'Sorting Algorithm', route: '/sort' },
25+
{ id: 4, label: 'Linked List', route: '/linked-list' },
2526
// Add more menu items for other algorithms
2627
];
2728

src/routes/router.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import { createRouter, createWebHistory } from 'vue-router';
22
import SearchView from './../algorithms/search/Search.vue';
33
import homeView from './../algorithms/algorithms.vue';
44
import SortView from './../algorithms/sort/Sort.vue';
5+
import LinkedList from './../algorithms/linked-list/Linked-List.vue';
56

67
const routes = [
78
{ path: '/', component: homeView },
89
{ path: '/search', component: SearchView },
910
{ path: '/sort', component: SortView },
11+
{ path: '/linked-list', component: LinkedList },
1012
// Add more routes for other algorithm components
1113
];
1214

0 commit comments

Comments
 (0)