Files desk cut 1: contract types, host client with Matrix OpenID, and a fake host for the preview
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m15s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m15s
features/files/filesHost.ts: the index and file response types, parseIndex (refuses a malformed index and any entry name that is a path), joinPath, an OpenID token source, and createFilesHost (bearer token, one retry on 401, Range, host error codes passed through uninterpreted). preview-demo/filesHost.ts: sample zones answered in-page under /_files, with the rules the real host must keep (bearer, ranges, no dotfiles, handoff-private never served), and the pretend homeserver's openid/request_token. No UI; config key filesDesk is declared, nothing reads it. Roots, ticket auth and error codes stay placeholders until Eureka answers Q-E1..7 on PR #142. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8ba407cd2a
commit
c70b87bb0a
7 changed files with 695 additions and 4 deletions
|
|
@ -38,6 +38,10 @@ export type ClientConfig = {
|
|||
// Sharing a set of files into a file-zone room as one album. Off unless `enabled` is true.
|
||||
fileZoneShare?: { enabled?: boolean };
|
||||
|
||||
// The Files desk (docs/commons-files-desk.md): a served-directory file zone beside the Matrix one. Off unless
|
||||
// `enabled` is true; `host` is the file host's base URL (a value Eureka names, never a path this client invents).
|
||||
filesDesk?: { enabled?: boolean; host?: string };
|
||||
|
||||
// The sign-up entry on the sign-in page. Off unless `enabled` is true; `url` is the account
|
||||
// service's own registration page (a value, never a route this client invents).
|
||||
registration?: RegistrationConfig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue