Spaces:
Sleeping
Sleeping
Update index.html
Browse files38 unmodified lines3940414243444565 unmodified lines1111121131141151167 unmodified lines12412512612712812952 unmodified lines18218318418518618718858 unmodified lines24724824925025125225317 unmodified lines27127227327427527627727827928038 unmodified linesconst [files, setFiles] = useState([]);const [youtubeUrl, setYoutubeUrl] = useState("");const [youtubeFormat, setYoutubeFormat] = useState('mp3');const [status, setStatus] = useState('idle'); // idle, processing, completed, failedconst [progress, setProgress] = useState(0);const [lastLog, setLastLog] = useState("");const [downloadUrl, setDownloadUrl] = useState(null);65 unmodified lines}, 2000);};const reset = () => {if (pollInterval.current) clearInterval(pollInterval.current);setSelectedTool(null);7 unmodified linessetError(null);};return (<div className="flex flex-col min-h-screen"><div className="max-w-4xl mx-auto px-4 py-12 flex-grow w-full">52 unmodified lines{status === 'idle' ? (<>{selectedTool.id === 'youtube' ? (<div className="space-y-4"><div className="space-y-2"><label className="block text-sm font-bold text-slate-700">YouTube URL (1行に1つ)</label><textarea58 unmodified lines</button></>) : (<div className="space-y-6"><div className="bg-slate-50 rounded-2xl p-6 border border-slate-100"><div className="flex justify-between text-sm font-bold mb-3"><span className={status === 'failed' ? 'text-rose-600' : 'text-indigo-600'}>17 unmodified lines<div className="flex gap-4"><buttononClick={reset}className="flex-1 bg-slate-100 text-slate-600 py-4 rounded-2xl font-bold hover:bg-slate-200 transition-all">戻る</button>{downloadUrl && (<a38 unmodified lines3940414243444565 unmodified lines1111121131141151161177 unmodified lines12512612712812913013113213313413513613713813914052 unmodified lines19319419519619719819958 unmodified lines25825926026126226326417 unmodified lines28228328428528628728828929029138 unmodified linesconst [files, setFiles] = useState([]);const [youtubeUrl, setYoutubeUrl] = useState("");const [youtubeFormat, setYoutubeFormat] = useState('mp3');const [status, setStatus] = useState('idle'); // idle, uploading, processing, completed, failedconst [progress, setProgress] = useState(0);const [lastLog, setLastLog] = useState("");const [downloadUrl, setDownloadUrl] = useState(null);65 unmodified lines}, 2000);};// ツール選択画面に完全に戻る(データを消去)const reset = () => {if (pollInterval.current) clearInterval(pollInterval.current);setSelectedTool(null);7 unmodified linessetError(null);};// 入力画面に戻る(URLや選択ファイルを保持)const backToInput = () => {if (pollInterval.current) clearInterval(pollInterval.current);setStatus('idle');setProgress(0);setLastLog("");setDownloadUrl(null);setError(null);};return (<div className="flex flex-col min-h-screen"><div className="max-w-4xl mx-auto px-4 py-12 flex-grow w-full">52 unmodified lines{status === 'idle' ? (<>{selectedTool.id === 'youtube' ? (<div className="space-y-4 animate-in fade-in duration-300"><div className="space-y-2"><label className="block text-sm font-bold text-slate-700">YouTube URL (1行に1つ)</label><textarea58 unmodified lines</button></>) : (<div className="space-y-6 animate-in slide-in-from-bottom-2 duration-300"><div className="bg-slate-50 rounded-2xl p-6 border border-slate-100"><div className="flex justify-between text-sm font-bold mb-3"><span className={status === 'failed' ? 'text-rose-600' : 'text-indigo-600'}>17 unmodified lines<div className="flex gap-4"><buttononClick={backToInput}className="flex-1 bg-slate-100 text-slate-600 py-4 rounded-2xl font-bold hover:bg-slate-200 transition-all">入力に戻る</button>{downloadUrl && (<a
index.html+16-5