diff --git a/README.md b/README.md index 4b53d88..373e9a9 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Open http://localhost:8080 and sign in with: - Local username/password sessions; first admin bootstrapped from env when the DB is empty - Users see only their torrents; admins can switch **View as** another user -- Access your torrent files over FTPS and from the file list in a torrent's detail panel (read-only for members; admins can also rename and delete) +- Access your torrent files over FTPS and from the file list in a torrent's detail panel - Add torrents via `.torrent` upload, one or several files at a time (per-file errors are reported without blocking the rest) - Progress / status / peers / downloaded / uploaded with pause, resume, delete - Completed torrents keep seeding until paused or deleted @@ -129,7 +129,7 @@ Then upload `.testdata/hello.torrent` in the UI while the webseed server is runn Explicit FTPS (`AUTH TLS`) on `SEEDLY_FTP_LISTEN`; plaintext logins are refused unless `SEEDLY_FTP_ALLOW_PLAINTEXT=true`. Log in with your Seedly username and password. -- **Scope:** each user only sees their own torrents' files (the root lists the content of their torrents). Members are read-only; admins can also upload, rename, delete and create folders. The torrent's files are also listed in its detail panel in the web UI (any user's torrent for admins, via "View as"). +- **Scope:** each user only sees their own torrents' files (the root lists the content of their torrents). Members are read-only; admins can also upload, rename, delete and create folders. The torrent's files are also listed in its detail panel in the web UI, where they can be selected and downloaded (any user's torrent for admins, via "View as"). - **Brute force:** failed logins (web and FTP) are throttled per IP — see `SEEDLY_LOGIN_MAX_FAILURES` / `SEEDLY_LOGIN_BAN`. - **Ports:** publish the control port (e.g. `21:2121`) and the whole `SEEDLY_FTP_PASV_PORTS` range, and open them in your firewall. Set `SEEDLY_FTP_PUBLIC_HOST` to the public hostname. - **TLS** — pick one: diff --git a/web/src/App.css b/web/src/App.css index 4c4f9a9..1c0978a 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -822,17 +822,6 @@ button.danger { font-size: 0.78rem; } -.fm-row-actions { - display: flex; - gap: 0.25rem; - flex: none; -} - -.fm-row-actions button { - padding: 0.15rem 0.4rem; - font-size: 0.75rem; -} - .fm-note { margin: 0 0 0.75rem; } diff --git a/web/src/FileManager.tsx b/web/src/FileManager.tsx index 1673135..7892005 100644 --- a/web/src/FileManager.tsx +++ b/web/src/FileManager.tsx @@ -26,7 +26,6 @@ const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)) export function FileManager({ torrentId, zipUrl }: { torrentId: number; zipUrl?: string }) { const [dir, setDir] = useState('/') const [entries, setEntries] = useState([]) - const [writable, setWritable] = useState(false) const [error, setError] = useState('') const [busy, setBusy] = useState(false) const [progress, setProgress] = useState('') @@ -38,7 +37,6 @@ export function FileManager({ torrentId, zipUrl }: { torrentId: number; zipUrl?: const res = await api.listFiles(torrentId, path) setDir(res.path) setEntries(res.entries) - setWritable(res.writable) setError('') } catch (err) { setError(err instanceof Error ? err.message : 'Could not list files') @@ -51,18 +49,6 @@ export function FileManager({ torrentId, zipUrl }: { torrentId: number; zipUrl?: void load('/') }, [load]) - async function run(op: () => Promise) { - setBusy(true) - try { - await op() - await load(dir) - } catch (err) { - setError(err instanceof Error ? err.message : 'Operation failed') - } finally { - setBusy(false) - } - } - function toggle(path: string, isDir: boolean) { setSelected((cur) => { const next = new Map(cur) @@ -168,32 +154,6 @@ export function FileManager({ torrentId, zipUrl }: { torrentId: number; zipUrl?: )} {e.is_dir ? null : {formatBytes(e.size)}} - {writable ? ( - - - - - ) : null} ) })} diff --git a/web/src/api.ts b/web/src/api.ts index aa56bda..1ea25f6 100644 --- a/web/src/api.ts +++ b/web/src/api.ts @@ -188,15 +188,6 @@ export const api = { request(`/api/torrents/${torrentId}/files?${fileQuery(path)}`), fileDownloadUrl: (torrentId: number, path: string) => `/api/torrents/${torrentId}/files/download?${fileQuery(path)}`, - renameFile: (torrentId: number, from: string, to: string) => - request<{ status: string }>(`/api/torrents/${torrentId}/files/rename`, { - method: 'POST', - body: JSON.stringify({ from, to }), - }), - deleteFile: (torrentId: number, path: string) => - request<{ status: string }>(`/api/torrents/${torrentId}/files?${fileQuery(path)}`, { - method: 'DELETE', - }), } function fileQuery(path: string): string {