Skip to content

High performance self-hosted photo and video management solution.

791 B
Raw Blame
enum SortOrder {
  asc,
  desc;

  SortOrder reverse() {
    return this == SortOrder.asc ? SortOrder.desc : SortOrder.asc;
  }
}

enum TextSearchType { context, filename, description, ocr }

enum ActionSource { timeline, viewer }

enum ShareAssetType { original, preview }

enum CleanupStep { selectDate, scan, delete }

enum AssetKeepType { none, photosOnly, videosOnly }

enum AssetDateAggregation { start, end }

enum SlideshowLook { contain, cover, blurredBackground }

enum SlideshowDirection { forward, backward, shuffle }

enum PartnerDirection { sharedBy, sharedWith }

enum DevicePermission { photos, videos, storage, mediaLocation }

enum DevicePermissionStatus {
  denied,
  granted,
  limited,
  permanentlyDenied;

  bool get hasAccess => this == granted || this == limited;
}