Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
Merge branch 'develop/v1.1.0' into feature/album-context-actions
Ahmet Ömer71d88b199116
diff --cc app/pages/dashboard/photos.vueindex 8a9986d3,5dfafbdc..ec691571--- a/app/pages/dashboard/photos.vue+++ b/app/pages/dashboard/photos.vue@@@ -1,11 -1,7 +1,11 @@@<script lang="ts" setup>import type { FormSubmitEvent, TableColumn } from '@nuxt/ui'- import type { Album, Photo } from '~~/server/utils/db'+ import type { Album, Photo } from '@chronoframe/contracts/resources'import type { UploadingFile } from '~~/shared/types/uploading-file'+import {+ MAX_ALBUM_PHOTOS_PER_REQUEST,+ type AddPhotosToAlbumResult,+} from '~~/shared/utils/album'import { QueueWarningCode } from '~~/shared/utils/queue-warning'import {UploadQueueStatus,diff --cc server/api/albums/index.post.tsindex 0771a68c,ce609eb8..c03096b1--- a/server/api/albums/index.post.ts+++ b/server/api/albums/index.post.ts@@@ -63,14 -62,20 +64,10 @@@ export default eventHandler(async (even}if (photoIds.size > 0) {- let pos = 1000000- for (const photoId of photoIds) {- tx.insert(tables.albumPhotos)- .values({- albumId,- photoId,- position: (pos += 10),- })- .onConflictDoNothing()- .run()- }+ appendAlbumPhotos(tx, albumId, [...photoIds])}- return {- ...newAlbum,- passwordHash: undefined,- hasPassword: Boolean(newAlbum.passwordHash),- }+ return toAlbumDto(newAlbum)})return album