début des fix

This commit is contained in:
2025-04-21 11:03:36 +02:00
parent a540d12ed2
commit 448ec5c647
11 changed files with 367 additions and 127 deletions

View File

@@ -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 = [];
}
}
});