Enhance RustyCMS: Update .gitignore to include demo assets, improve admin UI dependency management, and add new translations for asset management. Implement asset date filtering and enhance content forms with asset previews. Introduce caching mechanisms for improved performance and add support for draft status in content entries.

This commit is contained in:
Peter Meier
2026-03-12 16:03:26 +01:00
parent 7795a238e1
commit 22b4367c47
24 changed files with 900 additions and 131 deletions

View File

@@ -3,7 +3,7 @@
* Optional RUSTYCMS_API_KEY for write operations (sent as X-API-Key).
*/
const getBaseUrl = () =>
export const getBaseUrl = () =>
process.env.NEXT_PUBLIC_RUSTYCMS_API_URL || "http://127.0.0.1:3000";
const getHeaders = (): HeadersInit => {
@@ -247,6 +247,10 @@ export type Asset = {
url: string;
mime_type: string;
size: number;
/** ISO8601 when file was created (if available). */
created_at?: string | null;
/** ISO8601 when file was last modified. */
modified_at?: string | null;
};
export type AssetsResponse = {