meatloaf-config/src/app/vendor/webdav-component/esm/ui/templates.d.ts
Jaime Idolpx 4a2f6032d2 feat: add WebDAV integration and utility functions
- Introduced a new `webdav-component` package for WebDAV protocol handling.
- Implemented `webdav.ts` with functions for managing WebDAV operations such as listing directories, checking file existence, creating folders, deleting paths, moving files, and handling file uploads/downloads.
- Added path normalization and utility functions for handling WebDAV paths.
- Enhanced the `Tag` class in `webdav3.py` to correctly register XML namespaces, improving compatibility with WebDAV responses.
2026-06-07 17:48:37 -04:00

23 lines
1.2 KiB
TypeScript

import type { SortOrder, WebDAVEntry } from '../types.js';
export interface TemplateContext {
t: (key: string) => string;
ncThumbnails: boolean;
rootUrl: string;
}
/** Build the static `html_tpl` for the page. */
export declare function buildPageTemplate(ctx: TemplateContext): string;
/** Build the dialog template (with placeholder for body / buttons). */
export declare function buildDialogTemplate(t: (k: string) => string): string;
/** The ".." parent row template. */
export declare function buildParentRow(t: (k: string) => string): string;
/** A directory-row template. */
export declare function buildDirRow(): string;
/** A file-row template. */
export declare function buildFileRow(): string;
/** Render a single file/dir row to HTML. */
export declare function renderEntry(entry: WebDAVEntry, ctx: TemplateContext, isDir: boolean): string;
/** Build a paste widget HTML for the toolbar. */
export declare function buildPasteWidget(t: (k: string) => string, count: number, action: 'copy' | 'move'): string;
/** Re-export the sort-order type so consumers don't need to import from types.ts. */
export type { SortOrder };
//# sourceMappingURL=templates.d.ts.map