-
diff --git a/frontend/src/items/InputSearch.vue b/frontend/src/items/InputSearch.vue
index c39c853..93b3bdf 100644
--- a/frontend/src/items/InputSearch.vue
+++ b/frontend/src/items/InputSearch.vue
@@ -2,6 +2,7 @@
import {lectureListIsOpen, playlistsIsOpen} from '../stores/globalStore.ts'
import {searchStore} from '../stores/dataStore.ts'
import SearchIcon from "../assets/Icons/SearchIcon.vue";
+import {onMounted} from "vue";
const search = searchStore();
@@ -13,6 +14,10 @@ const updateSearch = (event: Event) => {
playlists.closePlaylists();
search.updateSearch((event.target as HTMLInputElement).value);
};
+
+onMounted(() => {
+ (document.querySelector('.input') as HTMLInputElement).value = search.searchQuery;
+});
diff --git a/frontend/src/items/SwitchTab.vue b/frontend/src/items/SwitchTab.vue
new file mode 100644
index 0000000..9f72af0
--- /dev/null
+++ b/frontend/src/items/SwitchTab.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/stores/dataStore.ts b/frontend/src/stores/dataStore.ts
index 7946817..c768222 100644
--- a/frontend/src/stores/dataStore.ts
+++ b/frontend/src/stores/dataStore.ts
@@ -158,4 +158,41 @@ export const lectureListStore = defineStore('lecture', {
this.lectures = [];
}
}
+});
+
+export const historyListStore = defineStore('history', {
+ state: () => ({
+ history: [
+ {
+ name: 'LofiGirl',
+ title: 'lofi hip hop mix 📚 beats to relax/study to (Part 1)',
+ thumbnail: 'https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg',
+ },
+ {
+ name: 'LofiGirl',
+ title: 'lofi hip hop mix 📚 beats to relax/study to (Part 2)',
+ thumbnail: 'https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg',
+ },
+ {
+ name: 'LofiGirl',
+ title: 'lofi hip hop mix 📚 beats to relax/study to (Part 3)',
+ thumbnail: 'https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg',
+ },
+ {
+ name: 'LofiGirl',
+ title: 'lofi hip hop mix 📚 beats to relax/study to (Part 4)',
+ thumbnail: 'https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg',
+ },
+ ]
+ }),
+
+ actions: {
+ updateHistoryList(lecture: { name: string; title: string; thumbnail: string }[]) {
+ this.history = lecture;
+ },
+
+ clearHistoryList() {
+ this.history = [];
+ }
+ }
});
\ No newline at end of file