feat(web/server) Add more options to public shared link (#1348)

* Added migration files

* Added logic for shared album level

* Added permission for EXIF

* Update shared link response dto

* Added condition to show download button

* Create and edit link with new parameter:

* Remove deadcode

* PR feedback

* More refactor

* Move logic of allow original file to service

* Simplify

* Wording
This commit is contained in:
Alex
2023-01-21 22:15:16 -06:00
committed by GitHub
parent 4cfac47674
commit b07891089f
41 changed files with 520 additions and 73 deletions

View File

@@ -736,7 +736,7 @@
"/asset/download-library": {
"get": {
"operationId": "downloadLibrary",
"description": "",
"description": "Current this is not used in any UI element",
"parameters": [
{
"name": "skip",
@@ -3786,6 +3786,12 @@
"allowUpload": {
"type": "boolean"
},
"allowDownload": {
"type": "boolean"
},
"showExif": {
"type": "boolean"
},
"description": {
"type": "string"
}
@@ -3887,6 +3893,12 @@
},
"allowUpload": {
"type": "boolean"
},
"allowDownload": {
"type": "boolean"
},
"showExif": {
"type": "boolean"
}
},
"required": [
@@ -3897,7 +3909,9 @@
"createdAt",
"expiresAt",
"assets",
"allowUpload"
"allowUpload",
"allowDownload",
"showExif"
]
},
"UpdateAssetsToSharedLinkDto": {
@@ -3926,6 +3940,12 @@
"allowUpload": {
"type": "boolean"
},
"allowDownload": {
"type": "boolean"
},
"showExif": {
"type": "boolean"
},
"isEditExpireTime": {
"type": "boolean"
}
@@ -4085,6 +4105,12 @@
"allowUpload": {
"type": "boolean"
},
"allowDownload": {
"type": "boolean"
},
"showExif": {
"type": "boolean"
},
"description": {
"type": "string"
}