trypost/resources/js/types
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
..
automation Back run/node status and node type with TS consts 2026-06-13 17:50:23 -03:00
channel.ts Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00
content-type.ts refactor(linkedin): infer post format from media + unify account connection 2026-06-24 21:05:09 -03:00
globals.d.ts fix: resolve ESLint errors and cleanup unused code 2026-03-31 10:26:44 -03:00
index.d.ts Keep past_due subscribers in-app instead of forcing re-subscribe 2026-06-14 15:46:17 -03:00
media.ts refactor(media): centralize frontend media-type detection in lib/mediaType 2026-06-25 18:19:58 -03:00
platform.ts feat(channels): add Discord as a social channel 2026-06-16 14:44:00 -03:00
post.ts refactor(posts): replace status string literals with PostStatus enum 2026-05-19 14:27:14 -03:00
workspace-role.ts feat(automations): implement automation features and UI enhancements 2026-05-24 09:17:19 -03:00