feat: video sidebar with year/city filters like library view
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
770b4ea797
commit
eeab631ac9
5 files changed
+73
-26
No files matched your search
@@ -110,8 +110,17 @@ export function triggerSync(source) {
|
||||
}
|
||||
|
||||
// Videos
|
||||
export function fetchVideos() {
|
||||
return api('/api/videos');
|
||||
export function fetchVideoStats() {
|
||||
return api('/api/videos/stats');
|
||||
}
|
||||
|
||||
export function fetchVideos({ from, to, city } = {}) {
|
||||
const p = new URLSearchParams();
|
||||
if (from) p.set('from', from);
|
||||
if (to) p.set('to', to);
|
||||
if (city) p.set('city', city);
|
||||
const qs = p.toString();
|
||||
return api(`/api/videos${qs ? '?' + qs : ''}`);
|
||||
}
|
||||
|
||||
// Memories
|
||||
|
||||
Reference in new issue
Block a user