kv-tube/frontend/app/constants.ts
KV-Tube Deployer 95cfe06f2c
Some checks failed
CI / lint (push) Failing after 6s
CI / test (push) Failing after 1s
Docker Build & Push / build (push) Failing after 1s
CI / build (push) Has been skipped
chore: setup Dockerfiles and CI for Forgejo and Synology
2026-02-22 17:29:42 +07:00

35 lines
1.2 KiB
TypeScript
Executable file

export const API_BASE = process.env.NEXT_PUBLIC_API_URL || 'http://127.0.0.1:8080';
export interface VideoData {
id: string;
title: string;
uploader: string;
thumbnail: string;
view_count: number;
duration: string;
avatar_url?: string;
}
export const CATEGORY_MAP: Record<string, string> = {
'All': 'trending videos 2025',
'Watched': 'watched history',
'Suggested': 'suggested videos',
'Tech': 'latest smart technology gadgets reviews',
'Music': 'music hits',
'Movies': 'movie trailers',
'News': 'latest news',
'Trending': 'trending videos',
'Podcasts': 'popular podcasts',
'Live': 'live stream',
'Gaming': 'gaming trending',
'Sports': 'sports highlights'
};
export const ALL_CATEGORY_SECTIONS = [
{ id: 'trending', title: 'Trending Now', query: 'trending videos 2025' },
{ id: 'music', title: 'Music Hits', query: 'music hits 2025' },
{ id: 'tech', title: 'Tech & Gadgets', query: 'latest smart technology gadgets reviews' },
{ id: 'gaming', title: 'Gaming', query: 'gaming trending' },
{ id: 'sports', title: 'Sports Highlights', query: 'sports highlights' },
{ id: 'news', title: 'Latest News', query: 'latest news' },
];