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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user