trypost/resources/js/lib
Paulo Castellano a8bed34d17 refactor(media): centralize frontend media-type detection in lib/mediaType
Mirror the backend App\Enums\Media\Type on the frontend so "is this an
image/video/PDF?" has a single definition instead of being hand-written
(type === 'x' || mime_type startsWith ...) across a dozen files.

- add lib/mediaType.ts: MediaType union, classify(), fromMimeType(),
  fromExtension(), isImage/isVideo/isDocument/isGif, acceptAttribute()
- route every MediaItem detection and every File-upload validator through it
- fix MediaDropzone rendering a typeless image item (AI/Unsplash/Giphy)
  as a broken <video> via the img-vs-video v-else
- collapse getMediaIncompatibilityReason onto the shared
  getMediaValidationWarning core (canSchedule / variant selection unchanged)
- tighten MediaItem/AssetMedia/SavedMedia/PickedMedia .type to MediaType
- replace GalleryBrowser's hardcoded accept list with acceptAttribute()
2026-06-25 18:19:58 -03:00
..
mediaType.ts refactor(media): centralize frontend media-type detection in lib/mediaType 2026-06-25 18:19:58 -03:00
userAgent.ts feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
utils.ts Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00