WIP PWA for Grain
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add draft gallery service

+21
+21
src/services/draft-gallery.js
··· 1 + class DraftGalleryService { 2 + #photos = []; 3 + 4 + setPhotos(photos) { 5 + this.#photos = [...photos]; 6 + } 7 + 8 + getPhotos() { 9 + return this.#photos; 10 + } 11 + 12 + clear() { 13 + this.#photos = []; 14 + } 15 + 16 + get hasPhotos() { 17 + return this.#photos.length > 0; 18 + } 19 + } 20 + 21 + export const draftGallery = new DraftGalleryService();