From 1071095435ceb7030955bfdd9fc594e1a43c121b Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 23 Jun 2024 12:00:19 +0000 Subject: feature: Automatically transfer image urls into bookmared assets. Fixes #246 --- packages/shared/assetdb.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'packages/shared/assetdb.ts') diff --git a/packages/shared/assetdb.ts b/packages/shared/assetdb.ts index fb625af8..3444001a 100644 --- a/packages/shared/assetdb.ts +++ b/packages/shared/assetdb.ts @@ -14,16 +14,20 @@ export const enum ASSET_TYPES { TEXT_HTML = "text/html", } -// The assets that we allow the users to upload -export const SUPPORTED_UPLOAD_ASSET_TYPES: Set = new Set([ +export const IMAGE_ASSET_TYPES: Set = new Set([ ASSET_TYPES.IMAGE_JPEG, ASSET_TYPES.IMAGE_PNG, ASSET_TYPES.IMAGE_WEBP, +]); + +// The assets that we allow the users to upload +export const SUPPORTED_UPLOAD_ASSET_TYPES: Set = new Set([ + ...IMAGE_ASSET_TYPES, ASSET_TYPES.APPLICATION_PDF, ]); // The assets that we support saving in the asset db -export const SUPPORTED_ASSET_TYPES = new Set([ +export const SUPPORTED_ASSET_TYPES: Set = new Set([ ...SUPPORTED_UPLOAD_ASSET_TYPES, ASSET_TYPES.TEXT_HTML, ]); -- cgit v1.2.3-70-g09d2