pigallery2-extension-kit 2.0.1-edge → 2.0.2-edge
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ext-enums.tsconfig.json +11 -0
- package/ext-interface.tsconfig.json +12 -0
- package/lib/backend/model/NotifocationManager.js +44 -0
- package/lib/backend/model/PasswordHelper.js +20 -0
- package/lib/common/BackendTexts.js +14 -0
- package/lib/common/SupportedFormats.js +45 -0
- package/lib/common/Utils.js +284 -0
- package/lib/common/config/private/Config.js +97 -0
- package/lib/common/config/private/MessagingConfig.js +134 -0
- package/lib/common/config/private/PrivateConfig.js +1411 -0
- package/lib/common/config/private/WebConfig.js +19 -0
- package/lib/common/config/public/ClientConfig.js +1819 -0
- package/lib/common/config/public/Config.js +24 -0
- package/lib/common/entities/AutoCompleteItem.js +13 -0
- package/lib/common/entities/ConentWrapper.js +479 -0
- package/lib/common/entities/DirectoryDTO.js +51 -0
- package/lib/common/entities/DuplicatesDTO.js +2 -0
- package/lib/common/entities/DynamicConfig.js +2 -0
- package/lib/common/entities/Error.js +45 -0
- package/lib/common/entities/FileDTO.js +2 -0
- package/lib/common/entities/GridSizes.js +11 -0
- package/lib/common/entities/LoginCredential.js +11 -0
- package/lib/common/entities/MDFileDTO.js +2 -0
- package/lib/common/entities/MediaDTO.js +53 -0
- package/lib/common/entities/MediaPickDTO.js +2 -0
- package/lib/common/entities/Message.js +12 -0
- package/lib/common/entities/NotificationDTO.js +9 -0
- package/lib/common/entities/PasswordChangeRequest.js +12 -0
- package/lib/common/entities/PersonDTO.js +2 -0
- package/lib/common/entities/PhotoDTO.js +2 -0
- package/lib/common/entities/SearchQueryDTO.js +130 -0
- package/lib/common/entities/SearchResultDTO.js +2 -0
- package/lib/common/entities/SharingDTO.js +2 -0
- package/lib/common/entities/SortingMethods.js +41 -0
- package/lib/common/entities/UserDTO.js +46 -0
- package/lib/common/entities/UserModificationRequest.js +9 -0
- package/lib/common/entities/VideoDTO.js +2 -0
- package/lib/common/entities/album/AlbumBaseDTO.js +2 -0
- package/lib/common/entities/album/SavedSearchDTO.js +2 -0
- package/lib/common/entities/job/JobDTO.js +29 -0
- package/lib/common/entities/job/JobProgressDTO.js +12 -0
- package/lib/common/entities/job/JobScheduleDTO.js +53 -0
- package/lib/common/entities/settings/IndexingDTO.js +2 -0
- package/lib/common/entities/settings/StatisticDTO.js +2 -0
- package/package.json +1 -1
- package/lib/extension/index.d.ts +0 -1
- package/lib/test.d.ts +0 -1
- package/lib/test2.d.ts +0 -1
- /package/lib/{src/backend → backend}/Logger.d.ts +0 -0
- /package/lib/{src/backend → backend}/ProjectPath.d.ts +0 -0
- /package/lib/{src/backend → backend}/exceptions/LocationLookupException.d.ts +0 -0
- /package/lib/{src/backend → backend}/index.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/AlbumMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/GalleryMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/MetaFileMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/NotificationMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/PersonMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/RenderingMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/ServerTimingMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/SharingMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/VersionMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/admin/AdminMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/admin/SettingsMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/thumbnail/PhotoConverterMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/thumbnail/ThumbnailGeneratorMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/user/AuthenticationMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/user/UserMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/middlewares/user/UserRequestConstrainsMWs.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/EventLoopHandler.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/FFmpegFactory.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/Localizations.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/NotifocationManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/ObjectManagers.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/PasswordHelper.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/AlbumManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/CoverManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/GalleryManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/IObjectManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/IndexingManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/LocationManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/PersonManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/SQLConnection.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/SearchManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/SharingManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/UserManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/VersionManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/DirectoryEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/EntityUtils.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/FileEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/MDFileEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/MediaEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/PersonEntry.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/PersonJunctionTable.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/PhotoEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/SharingEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/UserEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/VersionEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/VideoEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/album/AlbumBaseEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/database/enitites/album/SavedSearchEntity.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/diagnostics/ConfigDiagnostics.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExpressRouterWrapper.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionApp.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionConfigWrapper.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionDB.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionDecorator.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionEvent.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionMessengerHandler.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/ExtensionObject.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/extension/IExtension.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/DiskManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/MetadataLoader.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/PhotoWorker.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/TaskExecuter.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/TaskQue.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/VideoConverterWorker.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/fileprocessing/GPXProcessing.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/fileprocessing/PhotoProcessing.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/fileaccess/fileprocessing/VideoProcessing.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/JobManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/JobProgressManager.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/JobRepository.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/AlbumCoverFillingJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/AlbumCoverResetJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/AlbumResetJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/FileJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/GPXCompressionJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/GPXCompressionResetJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/GalleryResetJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/IJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/IJobListener.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/IndexingJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/Job.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/JobProgress.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/PhotoConvertingJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/TempFolderCleaningJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/ThumbnailGenerationJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/TopPickSendJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/jobs/jobs/VideoConvertingJob.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/messenger/EmailMessenger.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/messenger/ExtensionMessenger.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/messenger/Messenger.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/messenger/MessengerRepository.d.ts +0 -0
- /package/lib/{src/backend → backend}/model/messenger/StdoutMessenger.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/AlbumRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/ErrorRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/GalleryRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/LoggerRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/NotificationRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/PersonRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/PublicRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/Router.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/SharingRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/UserRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/admin/AdminRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/routes/admin/SettingsRouter.d.ts +0 -0
- /package/lib/{src/backend → backend}/server.d.ts +0 -0
- /package/lib/{src/common → common}/BackendTexts.d.ts +0 -0
- /package/lib/{src/common → common}/CookieNames.d.ts +0 -0
- /package/lib/{src/common → common}/CustomHeaders.d.ts +0 -0
- /package/lib/{src/common → common}/DataStructureVersion.d.ts +0 -0
- /package/lib/{src/common → common}/PG2ConfMap.d.ts +0 -0
- /package/lib/{src/common → common}/QueryParams.d.ts +0 -0
- /package/lib/{src/common → common}/SearchQueryParser.d.ts +0 -0
- /package/lib/{src/common → common}/SupportedFormats.d.ts +0 -0
- /package/lib/{src/common → common}/Utils.d.ts +0 -0
- /package/lib/{src/common → common}/config/private/Config.d.ts +0 -0
- /package/lib/{src/common → common}/config/private/MessagingConfig.d.ts +0 -0
- /package/lib/{src/common → common}/config/private/PrivateConfig.d.ts +0 -0
- /package/lib/{src/common → common}/config/private/WebConfig.d.ts +0 -0
- /package/lib/{src/common → common}/config/public/ClientConfig.d.ts +0 -0
- /package/lib/{src/common → common}/config/public/Config.d.ts +0 -0
- /package/lib/{src/common → common}/entities/AutoCompleteItem.d.ts +0 -0
- /package/lib/{src/common → common}/entities/ConentWrapper.d.ts +0 -0
- /package/lib/{src/common → common}/entities/DirectoryDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/DuplicatesDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/DynamicConfig.d.ts +0 -0
- /package/lib/{src/common → common}/entities/Error.d.ts +0 -0
- /package/lib/{src/common → common}/entities/FileDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/GridSizes.d.ts +0 -0
- /package/lib/{src/common → common}/entities/LoginCredential.d.ts +0 -0
- /package/lib/{src/common → common}/entities/MDFileDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/MediaDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/MediaPickDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/Message.d.ts +0 -0
- /package/lib/{src/common → common}/entities/NotificationDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/PasswordChangeRequest.d.ts +0 -0
- /package/lib/{src/common → common}/entities/PersonDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/PhotoDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/SearchQueryDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/SearchResultDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/SharingDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/SortingMethods.d.ts +0 -0
- /package/lib/{src/common → common}/entities/UserDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/UserModificationRequest.d.ts +0 -0
- /package/lib/{src/common → common}/entities/VideoDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/album/AlbumBaseDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/album/SavedSearchDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/job/JobDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/job/JobProgressDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/job/JobScheduleDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/settings/IndexingDTO.d.ts +0 -0
- /package/lib/{src/common → common}/entities/settings/StatisticDTO.d.ts +0 -0
- /package/lib/{src/common → common}/event/Event.d.ts +0 -0
- /package/lib/{src/common → common}/event/Event2Args.d.ts +0 -0
- /package/lib/{src/common → common}/event/EventLimit.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/app.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/app.module.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/app.routing.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/icon.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/IRenderable.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/backendtext.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/backendtext.service.spec.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/navigation.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/autehentication.service.spec.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/authentication.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/helper/auth.guard.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/helper/csrf.interceptor.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/helper/error.interceptor.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/network.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/network.service.spec.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/user.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/network/user.service.spec.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/notification.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/page.helper.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/pi-title.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/query.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/seededRandom.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/theme.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/model/version.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/DurationPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/FileDTOToPathPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/FileDTOToRelativePathPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/FileSizePipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/GPXFilesFilterPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/MDFilesFilterPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/ParseIntPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/PhotoFilterPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/SafeHTMLPipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifyEnum.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifyGridSize.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifyRolePipe.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifySearchQuery.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifySearchType.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/pipes/StringifySortingMethod.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/EnumTranslations.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/admin/admin.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/albums/album/album.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/albums/albums.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/albums/albums.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/albums/saved-search-popup/saved-search-popup.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/duplicates/duplicates.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/duplicates/duplicates.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/duplicates/photo/photo.duplicates.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/faces/Person.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/faces/face/face.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/faces/faces.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/faces/faces.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/frame/frame.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/Media.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/MediaIcon.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/blog/blog.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/blog/blog.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/cache.gallery.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/content.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/contentLoader.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/directories/directories.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/directories/directory/directory.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/filter/filter.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/filter/filter.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/fullscreen.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/GridMedia.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/GridRowBuilder.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/grid.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/grid.gallery.component.spec.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/photo/loading/loading.photo.grid.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/grid/photo/photo.grid.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/lightbox/lightbox.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/map/MarkerFactory.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/map/map.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/map/map.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/navigator/navigator.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/navigator/navigator.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/navigator/sorting.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/overlay.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/AutoCompleteRenderItem.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/autocomplete.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/query-builder/query-bulder.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/search-field/search-field.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/search-query-parser.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/search/search.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/share/share.gallery.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/share.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/thumbnailLoader.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/gallery/thumbnailManager.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/language/language.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/login/login.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/gallery-statistic/gallery-statistic.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/scheduled-jobs.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/settings.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/sharings-list/sharings-list.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/template/CustomSettingsEntries.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/template/ISettingsComponent.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/template/settings-entry/settings-entry.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/template/template.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/users/users.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/users/users.service.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/workflow/button/job-button.settings.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/workflow/progress/job-progress.settings.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/settings/workflow/workflow.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/sharelogin/share-login.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/utils/grid-size-icon/grid-size-icon.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/utils/sorting-method-icon/sorting-method-icon.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/utils/timestamp-datepicker/datepicker.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/app/ui/utils/timestamp-timepicker/timepicker.component.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/environments/environment.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/environments/environment.prod.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/main.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/polyfills.d.ts +0 -0
- /package/lib/{src/frontend → frontend}/test.d.ts +0 -0
|
@@ -0,0 +1,1411 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerConfig = exports.ServerEnvironmentConfig = exports.ServerExtensionsConfig = exports.ServerServiceConfig = exports.ServerMediaConfig = exports.ServerAlbumCoverConfig = exports.ServerPhotoConfig = exports.PhotoConvertingConfig = exports.ServerVideoConfig = exports.VideoTranscodingConfig = exports.ServerJobConfig = exports.JobScheduleConfig = exports.AfterJobTriggerConfig = exports.PeriodicJobTriggerConfig = exports.ScheduledJobTriggerConfig = exports.NeverJobTriggerConfig = exports.ServerLogConfig = exports.ServerDuplicatesConfig = exports.ServerIndexingConfig = exports.ServerSharingConfig = exports.ServerMetaFileConfig = exports.ServerGPXCompressingConfig = exports.ServerThumbnailConfig = exports.ServerUserConfig = exports.ServerDataBaseConfig = exports.UserConfig = exports.SQLiteConfig = exports.MySQLConfig = exports.FFmpegPresets = exports.ReIndexingSensitivity = exports.SQLLogLevel = exports.LogLevel = exports.DatabaseType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
6
|
+
require("reflect-metadata");
|
|
7
|
+
const JobScheduleDTO_1 = require("../../entities/job/JobScheduleDTO");
|
|
8
|
+
const ClientConfig_1 = require("../public/ClientConfig");
|
|
9
|
+
const common_1 = require("typeconfig/common");
|
|
10
|
+
const JobDTO_1 = require("../../entities/job/JobDTO");
|
|
11
|
+
const SearchQueryDTO_1 = require("../../entities/SearchQueryDTO");
|
|
12
|
+
const SortingMethods_1 = require("../../entities/SortingMethods");
|
|
13
|
+
const UserDTO_1 = require("../../entities/UserDTO");
|
|
14
|
+
const MessagingConfig_1 = require("./MessagingConfig");
|
|
15
|
+
if (typeof $localize === 'undefined') {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
global.$localize = (s) => s;
|
|
19
|
+
}
|
|
20
|
+
var DatabaseType;
|
|
21
|
+
(function (DatabaseType) {
|
|
22
|
+
DatabaseType[DatabaseType["mysql"] = 2] = "mysql";
|
|
23
|
+
DatabaseType[DatabaseType["sqlite"] = 3] = "sqlite";
|
|
24
|
+
})(DatabaseType = exports.DatabaseType || (exports.DatabaseType = {}));
|
|
25
|
+
var LogLevel;
|
|
26
|
+
(function (LogLevel) {
|
|
27
|
+
LogLevel[LogLevel["error"] = 1] = "error";
|
|
28
|
+
LogLevel[LogLevel["warn"] = 2] = "warn";
|
|
29
|
+
LogLevel[LogLevel["info"] = 3] = "info";
|
|
30
|
+
LogLevel[LogLevel["verbose"] = 4] = "verbose";
|
|
31
|
+
LogLevel[LogLevel["debug"] = 5] = "debug";
|
|
32
|
+
LogLevel[LogLevel["silly"] = 6] = "silly";
|
|
33
|
+
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
34
|
+
var SQLLogLevel;
|
|
35
|
+
(function (SQLLogLevel) {
|
|
36
|
+
SQLLogLevel[SQLLogLevel["none"] = 1] = "none";
|
|
37
|
+
SQLLogLevel[SQLLogLevel["error"] = 2] = "error";
|
|
38
|
+
SQLLogLevel[SQLLogLevel["all"] = 3] = "all";
|
|
39
|
+
})(SQLLogLevel = exports.SQLLogLevel || (exports.SQLLogLevel = {}));
|
|
40
|
+
var ReIndexingSensitivity;
|
|
41
|
+
(function (ReIndexingSensitivity) {
|
|
42
|
+
// Order is important. It also used to do relative comparison.
|
|
43
|
+
// Keep space between items for future
|
|
44
|
+
ReIndexingSensitivity[ReIndexingSensitivity["never"] = 10] = "never";
|
|
45
|
+
ReIndexingSensitivity[ReIndexingSensitivity["low"] = 20] = "low";
|
|
46
|
+
ReIndexingSensitivity[ReIndexingSensitivity["medium"] = 30] = "medium";
|
|
47
|
+
ReIndexingSensitivity[ReIndexingSensitivity["high"] = 40] = "high";
|
|
48
|
+
})(ReIndexingSensitivity = exports.ReIndexingSensitivity || (exports.ReIndexingSensitivity = {}));
|
|
49
|
+
var FFmpegPresets;
|
|
50
|
+
(function (FFmpegPresets) {
|
|
51
|
+
FFmpegPresets[FFmpegPresets["ultrafast"] = 1] = "ultrafast";
|
|
52
|
+
FFmpegPresets[FFmpegPresets["superfast"] = 2] = "superfast";
|
|
53
|
+
FFmpegPresets[FFmpegPresets["veryfast"] = 3] = "veryfast";
|
|
54
|
+
FFmpegPresets[FFmpegPresets["faster"] = 4] = "faster";
|
|
55
|
+
FFmpegPresets[FFmpegPresets["fast"] = 5] = "fast";
|
|
56
|
+
FFmpegPresets[FFmpegPresets["medium"] = 6] = "medium";
|
|
57
|
+
FFmpegPresets[FFmpegPresets["slow"] = 7] = "slow";
|
|
58
|
+
FFmpegPresets[FFmpegPresets["slower"] = 8] = "slower";
|
|
59
|
+
FFmpegPresets[FFmpegPresets["veryslow"] = 9] = "veryslow";
|
|
60
|
+
FFmpegPresets[FFmpegPresets["placebo"] = 10] = "placebo";
|
|
61
|
+
})(FFmpegPresets = exports.FFmpegPresets || (exports.FFmpegPresets = {}));
|
|
62
|
+
let MySQLConfig = class MySQLConfig {
|
|
63
|
+
constructor() {
|
|
64
|
+
this.host = 'localhost';
|
|
65
|
+
this.port = 3306;
|
|
66
|
+
this.database = 'pigallery2';
|
|
67
|
+
this.username = '';
|
|
68
|
+
this.password = '';
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, common_1.ConfigProperty)({
|
|
73
|
+
envAlias: 'MYSQL_HOST',
|
|
74
|
+
tags: {
|
|
75
|
+
name: $localize `Host`,
|
|
76
|
+
uiResetNeeded: { server: true },
|
|
77
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
78
|
+
},
|
|
79
|
+
}),
|
|
80
|
+
tslib_1.__metadata("design:type", String)
|
|
81
|
+
], MySQLConfig.prototype, "host", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, common_1.ConfigProperty)({
|
|
84
|
+
envAlias: 'MYSQL_PORT', min: 0, max: 65535,
|
|
85
|
+
tags: {
|
|
86
|
+
name: $localize `Port`,
|
|
87
|
+
uiResetNeeded: { server: true },
|
|
88
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
tslib_1.__metadata("design:type", Number)
|
|
92
|
+
], MySQLConfig.prototype, "port", void 0);
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, common_1.ConfigProperty)({
|
|
95
|
+
envAlias: 'MYSQL_DATABASE',
|
|
96
|
+
tags: {
|
|
97
|
+
name: $localize `Database`,
|
|
98
|
+
uiResetNeeded: { server: true },
|
|
99
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
100
|
+
},
|
|
101
|
+
}),
|
|
102
|
+
tslib_1.__metadata("design:type", String)
|
|
103
|
+
], MySQLConfig.prototype, "database", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, common_1.ConfigProperty)({
|
|
106
|
+
envAlias: 'MYSQL_USERNAME',
|
|
107
|
+
tags: {
|
|
108
|
+
name: $localize `Username`,
|
|
109
|
+
uiResetNeeded: { server: true },
|
|
110
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
111
|
+
},
|
|
112
|
+
}),
|
|
113
|
+
tslib_1.__metadata("design:type", String)
|
|
114
|
+
], MySQLConfig.prototype, "username", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, common_1.ConfigProperty)({
|
|
117
|
+
envAlias: 'MYSQL_PASSWORD', type: 'password',
|
|
118
|
+
tags: {
|
|
119
|
+
name: $localize `Password`,
|
|
120
|
+
uiResetNeeded: { server: true },
|
|
121
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
122
|
+
}
|
|
123
|
+
}),
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
125
|
+
], MySQLConfig.prototype, "password", void 0);
|
|
126
|
+
MySQLConfig = tslib_1.__decorate([
|
|
127
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
128
|
+
], MySQLConfig);
|
|
129
|
+
exports.MySQLConfig = MySQLConfig;
|
|
130
|
+
let SQLiteConfig = class SQLiteConfig {
|
|
131
|
+
constructor() {
|
|
132
|
+
this.DBFileName = 'sqlite.db';
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, common_1.ConfigProperty)({
|
|
137
|
+
tags: {
|
|
138
|
+
name: $localize `Sqlite db filename`,
|
|
139
|
+
uiResetNeeded: { server: true },
|
|
140
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
141
|
+
},
|
|
142
|
+
description: $localize `Sqlite will save the db with this filename.`,
|
|
143
|
+
}),
|
|
144
|
+
tslib_1.__metadata("design:type", String)
|
|
145
|
+
], SQLiteConfig.prototype, "DBFileName", void 0);
|
|
146
|
+
SQLiteConfig = tslib_1.__decorate([
|
|
147
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
148
|
+
], SQLiteConfig);
|
|
149
|
+
exports.SQLiteConfig = SQLiteConfig;
|
|
150
|
+
let UserConfig = class UserConfig {
|
|
151
|
+
constructor(name, password, role) {
|
|
152
|
+
this.role = UserDTO_1.UserRoles.User;
|
|
153
|
+
if (name) {
|
|
154
|
+
this.name = name;
|
|
155
|
+
}
|
|
156
|
+
if (typeof role !== 'undefined') {
|
|
157
|
+
this.role = role;
|
|
158
|
+
}
|
|
159
|
+
if (password) {
|
|
160
|
+
this.password = password;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
tslib_1.__decorate([
|
|
165
|
+
(0, common_1.ConfigProperty)({
|
|
166
|
+
tags: {
|
|
167
|
+
name: $localize `Name`,
|
|
168
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
169
|
+
}
|
|
170
|
+
}),
|
|
171
|
+
tslib_1.__metadata("design:type", String)
|
|
172
|
+
], UserConfig.prototype, "name", void 0);
|
|
173
|
+
tslib_1.__decorate([
|
|
174
|
+
(0, common_1.ConfigProperty)({
|
|
175
|
+
type: UserDTO_1.UserRoles,
|
|
176
|
+
tags: {
|
|
177
|
+
name: $localize `Role`,
|
|
178
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
179
|
+
},
|
|
180
|
+
}),
|
|
181
|
+
tslib_1.__metadata("design:type", Number)
|
|
182
|
+
], UserConfig.prototype, "role", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, common_1.ConfigProperty)({
|
|
185
|
+
type: 'string',
|
|
186
|
+
tags: {
|
|
187
|
+
name: $localize `Password`,
|
|
188
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
189
|
+
relevant: (c) => !c.encrypted
|
|
190
|
+
},
|
|
191
|
+
description: $localize `Unencrypted, temporary password. App will encrypt it and delete this.`
|
|
192
|
+
}),
|
|
193
|
+
tslib_1.__metadata("design:type", String)
|
|
194
|
+
], UserConfig.prototype, "password", void 0);
|
|
195
|
+
tslib_1.__decorate([
|
|
196
|
+
(0, common_1.ConfigProperty)({
|
|
197
|
+
tags: {
|
|
198
|
+
name: $localize `Encrypted password`,
|
|
199
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
200
|
+
secret: true
|
|
201
|
+
},
|
|
202
|
+
}),
|
|
203
|
+
tslib_1.__metadata("design:type", String)
|
|
204
|
+
], UserConfig.prototype, "encryptedPassword", void 0);
|
|
205
|
+
tslib_1.__decorate([
|
|
206
|
+
(0, common_1.ConfigProperty)({
|
|
207
|
+
tags: {
|
|
208
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
209
|
+
relevant: () => false // never render this on UI. Only used to indicate that encryption is done.
|
|
210
|
+
},
|
|
211
|
+
}),
|
|
212
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
213
|
+
], UserConfig.prototype, "encrypted", void 0);
|
|
214
|
+
UserConfig = tslib_1.__decorate([
|
|
215
|
+
(0, common_1.SubConfigClass)({ softReadonly: true }),
|
|
216
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Number])
|
|
217
|
+
], UserConfig);
|
|
218
|
+
exports.UserConfig = UserConfig;
|
|
219
|
+
let ServerDataBaseConfig = class ServerDataBaseConfig {
|
|
220
|
+
constructor() {
|
|
221
|
+
this.type = DatabaseType.sqlite;
|
|
222
|
+
this.dbFolder = 'db';
|
|
223
|
+
this.sqlite = new SQLiteConfig();
|
|
224
|
+
this.mysql = new MySQLConfig();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
tslib_1.__decorate([
|
|
228
|
+
(0, common_1.ConfigProperty)({
|
|
229
|
+
type: DatabaseType,
|
|
230
|
+
tags: {
|
|
231
|
+
name: $localize `Type`,
|
|
232
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
233
|
+
uiResetNeeded: { db: true },
|
|
234
|
+
githubIssue: 573
|
|
235
|
+
},
|
|
236
|
+
description: $localize `SQLite is recommended.`
|
|
237
|
+
}),
|
|
238
|
+
tslib_1.__metadata("design:type", Number)
|
|
239
|
+
], ServerDataBaseConfig.prototype, "type", void 0);
|
|
240
|
+
tslib_1.__decorate([
|
|
241
|
+
(0, common_1.ConfigProperty)({
|
|
242
|
+
tags: {
|
|
243
|
+
name: $localize `Database folder`,
|
|
244
|
+
uiResetNeeded: { server: true },
|
|
245
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
246
|
+
},
|
|
247
|
+
description: $localize `All file-based data will be stored here (sqlite database, job history data).`,
|
|
248
|
+
}),
|
|
249
|
+
tslib_1.__metadata("design:type", String)
|
|
250
|
+
], ServerDataBaseConfig.prototype, "dbFolder", void 0);
|
|
251
|
+
tslib_1.__decorate([
|
|
252
|
+
(0, common_1.ConfigProperty)({
|
|
253
|
+
tags: {
|
|
254
|
+
name: $localize `SQLite`,
|
|
255
|
+
uiResetNeeded: { db: true },
|
|
256
|
+
relevant: (c) => c.type === DatabaseType.sqlite,
|
|
257
|
+
}
|
|
258
|
+
}),
|
|
259
|
+
tslib_1.__metadata("design:type", SQLiteConfig)
|
|
260
|
+
], ServerDataBaseConfig.prototype, "sqlite", void 0);
|
|
261
|
+
tslib_1.__decorate([
|
|
262
|
+
(0, common_1.ConfigProperty)({
|
|
263
|
+
tags: {
|
|
264
|
+
name: $localize `MySQL`,
|
|
265
|
+
uiResetNeeded: { db: true },
|
|
266
|
+
relevant: (c) => c.type === DatabaseType.mysql,
|
|
267
|
+
}
|
|
268
|
+
}),
|
|
269
|
+
tslib_1.__metadata("design:type", MySQLConfig)
|
|
270
|
+
], ServerDataBaseConfig.prototype, "mysql", void 0);
|
|
271
|
+
ServerDataBaseConfig = tslib_1.__decorate([
|
|
272
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
273
|
+
], ServerDataBaseConfig);
|
|
274
|
+
exports.ServerDataBaseConfig = ServerDataBaseConfig;
|
|
275
|
+
let ServerUserConfig = class ServerUserConfig extends ClientConfig_1.ClientUserConfig {
|
|
276
|
+
constructor() {
|
|
277
|
+
super(...arguments);
|
|
278
|
+
this.enforcedUsers = [];
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
tslib_1.__decorate([
|
|
282
|
+
(0, common_1.ConfigProperty)({
|
|
283
|
+
arrayType: UserConfig,
|
|
284
|
+
tags: {
|
|
285
|
+
name: $localize `Enforced users`,
|
|
286
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
287
|
+
uiResetNeeded: { server: true },
|
|
288
|
+
uiOptional: true,
|
|
289
|
+
githubIssue: 575
|
|
290
|
+
},
|
|
291
|
+
description: $localize `Creates these users in the DB during startup if they do not exist. If a user with this name exist, it won't be overwritten, even if the role is different.`,
|
|
292
|
+
}),
|
|
293
|
+
tslib_1.__metadata("design:type", Array)
|
|
294
|
+
], ServerUserConfig.prototype, "enforcedUsers", void 0);
|
|
295
|
+
ServerUserConfig = tslib_1.__decorate([
|
|
296
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
297
|
+
], ServerUserConfig);
|
|
298
|
+
exports.ServerUserConfig = ServerUserConfig;
|
|
299
|
+
let ServerThumbnailConfig = class ServerThumbnailConfig extends ClientConfig_1.ClientThumbnailConfig {
|
|
300
|
+
constructor() {
|
|
301
|
+
super(...arguments);
|
|
302
|
+
this.useLanczos3 = true;
|
|
303
|
+
this.quality = 80;
|
|
304
|
+
this.smartSubsample = true;
|
|
305
|
+
this.personFaceMargin = 0.7; // in ratio [0-1]
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
tslib_1.__decorate([
|
|
309
|
+
(0, common_1.ConfigProperty)({
|
|
310
|
+
tags: {
|
|
311
|
+
name: $localize `High quality resampling`,
|
|
312
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
313
|
+
},
|
|
314
|
+
description: $localize `if true, 'lanczos3' will used to scale photos, otherwise faster but lower quality 'nearest'.`
|
|
315
|
+
}),
|
|
316
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
317
|
+
], ServerThumbnailConfig.prototype, "useLanczos3", void 0);
|
|
318
|
+
tslib_1.__decorate([
|
|
319
|
+
(0, common_1.ConfigProperty)({
|
|
320
|
+
max: 100, min: 1, type: 'unsignedInt',
|
|
321
|
+
tags: {
|
|
322
|
+
name: $localize `Converted photo and thumbnail quality`,
|
|
323
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
324
|
+
},
|
|
325
|
+
description: $localize `Between 0-100.`
|
|
326
|
+
}),
|
|
327
|
+
tslib_1.__metadata("design:type", Object)
|
|
328
|
+
], ServerThumbnailConfig.prototype, "quality", void 0);
|
|
329
|
+
tslib_1.__decorate([
|
|
330
|
+
(0, common_1.ConfigProperty)({
|
|
331
|
+
type: 'boolean',
|
|
332
|
+
tags: {
|
|
333
|
+
name: $localize `Use chroma subsampling`,
|
|
334
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
335
|
+
},
|
|
336
|
+
description: $localize `Use high quality chroma subsampling in webp. See: https://sharp.pixelplumbing.com/api-output#webp.`
|
|
337
|
+
}),
|
|
338
|
+
tslib_1.__metadata("design:type", Object)
|
|
339
|
+
], ServerThumbnailConfig.prototype, "smartSubsample", void 0);
|
|
340
|
+
tslib_1.__decorate([
|
|
341
|
+
(0, common_1.ConfigProperty)({
|
|
342
|
+
type: 'float',
|
|
343
|
+
tags: {
|
|
344
|
+
name: $localize `Person face margin`,
|
|
345
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
346
|
+
},
|
|
347
|
+
description: $localize `This ratio of the face bounding box will be added to the face as a margin. Higher number add more margin.`
|
|
348
|
+
}),
|
|
349
|
+
tslib_1.__metadata("design:type", Number)
|
|
350
|
+
], ServerThumbnailConfig.prototype, "personFaceMargin", void 0);
|
|
351
|
+
ServerThumbnailConfig = tslib_1.__decorate([
|
|
352
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
353
|
+
], ServerThumbnailConfig);
|
|
354
|
+
exports.ServerThumbnailConfig = ServerThumbnailConfig;
|
|
355
|
+
let ServerGPXCompressingConfig = class ServerGPXCompressingConfig extends ClientConfig_1.ClientGPXCompressingConfig {
|
|
356
|
+
constructor() {
|
|
357
|
+
super(...arguments);
|
|
358
|
+
this.onTheFly = true;
|
|
359
|
+
this.minDistance = 5;
|
|
360
|
+
this.maxMiddleDeviance = 5;
|
|
361
|
+
this.minTimeDistance = 5000;
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
tslib_1.__decorate([
|
|
365
|
+
(0, common_1.ConfigProperty)({
|
|
366
|
+
tags: {
|
|
367
|
+
name: $localize `OnTheFly *.gpx compression`,
|
|
368
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
369
|
+
uiDisabled: (sc, c) => !c.Map.enabled || !sc.enabled || !c.MetaFile.gpx
|
|
370
|
+
},
|
|
371
|
+
description: $localize `Enables on the fly *.gpx compression.`,
|
|
372
|
+
}),
|
|
373
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
374
|
+
], ServerGPXCompressingConfig.prototype, "onTheFly", void 0);
|
|
375
|
+
tslib_1.__decorate([
|
|
376
|
+
(0, common_1.ConfigProperty)({
|
|
377
|
+
type: 'unsignedInt',
|
|
378
|
+
tags: {
|
|
379
|
+
name: $localize `Min distance`,
|
|
380
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
381
|
+
unit: 'm',
|
|
382
|
+
uiDisabled: (sc, c) => !c.Map.enabled || !sc.enabled || !c.MetaFile.gpx
|
|
383
|
+
},
|
|
384
|
+
description: $localize `Filters out entry that are closer than this to each other in meters.`
|
|
385
|
+
}),
|
|
386
|
+
tslib_1.__metadata("design:type", Number)
|
|
387
|
+
], ServerGPXCompressingConfig.prototype, "minDistance", void 0);
|
|
388
|
+
tslib_1.__decorate([
|
|
389
|
+
(0, common_1.ConfigProperty)({
|
|
390
|
+
type: 'unsignedInt',
|
|
391
|
+
tags: {
|
|
392
|
+
name: $localize `Max middle point deviance`,
|
|
393
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
394
|
+
unit: 'm',
|
|
395
|
+
uiDisabled: (sc, c) => !c.Map.enabled || !sc.enabled || !c.MetaFile.gpx
|
|
396
|
+
},
|
|
397
|
+
description: $localize `Filters out entry that would fall on the line if we would just connect the previous and the next points. This setting sets the sensitivity for that (higher number, more points are filtered).`
|
|
398
|
+
}),
|
|
399
|
+
tslib_1.__metadata("design:type", Number)
|
|
400
|
+
], ServerGPXCompressingConfig.prototype, "maxMiddleDeviance", void 0);
|
|
401
|
+
tslib_1.__decorate([
|
|
402
|
+
(0, common_1.ConfigProperty)({
|
|
403
|
+
type: 'unsignedInt',
|
|
404
|
+
tags: {
|
|
405
|
+
name: $localize `Min time delta`,
|
|
406
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
407
|
+
unit: 'ms',
|
|
408
|
+
uiDisabled: (sc, c) => !c.Map.enabled || !sc.enabled || !c.MetaFile.gpx
|
|
409
|
+
},
|
|
410
|
+
description: $localize `Filters out entry that are closer than this in time in milliseconds.`
|
|
411
|
+
}),
|
|
412
|
+
tslib_1.__metadata("design:type", Number)
|
|
413
|
+
], ServerGPXCompressingConfig.prototype, "minTimeDistance", void 0);
|
|
414
|
+
ServerGPXCompressingConfig = tslib_1.__decorate([
|
|
415
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
416
|
+
], ServerGPXCompressingConfig);
|
|
417
|
+
exports.ServerGPXCompressingConfig = ServerGPXCompressingConfig;
|
|
418
|
+
let ServerMetaFileConfig = class ServerMetaFileConfig extends ClientConfig_1.ClientMetaFileConfig {
|
|
419
|
+
constructor() {
|
|
420
|
+
super(...arguments);
|
|
421
|
+
this.GPXCompressing = new ServerGPXCompressingConfig();
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
tslib_1.__decorate([
|
|
425
|
+
(0, common_1.ConfigProperty)({
|
|
426
|
+
tags: {
|
|
427
|
+
name: $localize `GPX compression`,
|
|
428
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
429
|
+
uiJob: [{
|
|
430
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['GPX Compression']],
|
|
431
|
+
relevant: (c) => c.MetaFile.GPXCompressing.enabled
|
|
432
|
+
}, {
|
|
433
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Delete Compressed GPX']],
|
|
434
|
+
relevant: (c) => c.MetaFile.GPXCompressing.enabled
|
|
435
|
+
}]
|
|
436
|
+
}
|
|
437
|
+
}),
|
|
438
|
+
tslib_1.__metadata("design:type", ServerGPXCompressingConfig)
|
|
439
|
+
], ServerMetaFileConfig.prototype, "GPXCompressing", void 0);
|
|
440
|
+
ServerMetaFileConfig = tslib_1.__decorate([
|
|
441
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
442
|
+
], ServerMetaFileConfig);
|
|
443
|
+
exports.ServerMetaFileConfig = ServerMetaFileConfig;
|
|
444
|
+
let ServerSharingConfig = class ServerSharingConfig extends ClientConfig_1.ClientSharingConfig {
|
|
445
|
+
constructor() {
|
|
446
|
+
super(...arguments);
|
|
447
|
+
this.updateTimeout = 1000 * 60 * 5;
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
tslib_1.__decorate([
|
|
451
|
+
(0, common_1.ConfigProperty)({
|
|
452
|
+
type: 'unsignedInt',
|
|
453
|
+
tags: {
|
|
454
|
+
name: $localize `Update timeout`,
|
|
455
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
456
|
+
unit: 'ms'
|
|
457
|
+
},
|
|
458
|
+
description: $localize `After creating a sharing link, it can be updated for this long.`
|
|
459
|
+
}),
|
|
460
|
+
tslib_1.__metadata("design:type", Number)
|
|
461
|
+
], ServerSharingConfig.prototype, "updateTimeout", void 0);
|
|
462
|
+
ServerSharingConfig = tslib_1.__decorate([
|
|
463
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
464
|
+
], ServerSharingConfig);
|
|
465
|
+
exports.ServerSharingConfig = ServerSharingConfig;
|
|
466
|
+
let ServerIndexingConfig = class ServerIndexingConfig {
|
|
467
|
+
constructor() {
|
|
468
|
+
this.cachedFolderTimeout = 1000 * 60 * 60; // Do not rescans the folder if seems ok
|
|
469
|
+
this.reIndexingSensitivity = ReIndexingSensitivity.low;
|
|
470
|
+
this.excludeFolderList = ['.Trash-1000', '.dtrash', '$RECYCLE.BIN'];
|
|
471
|
+
this.excludeFileList = [];
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
tslib_1.__decorate([
|
|
475
|
+
(0, common_1.ConfigProperty)({
|
|
476
|
+
type: 'unsignedInt',
|
|
477
|
+
tags: {
|
|
478
|
+
name: $localize `Index cache timeout`,
|
|
479
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
480
|
+
unit: 'ms'
|
|
481
|
+
},
|
|
482
|
+
description: $localize `If there was no indexing in this time, it reindexes. (skipped if indexes are in DB and sensitivity is low).`
|
|
483
|
+
}),
|
|
484
|
+
tslib_1.__metadata("design:type", Number)
|
|
485
|
+
], ServerIndexingConfig.prototype, "cachedFolderTimeout", void 0);
|
|
486
|
+
tslib_1.__decorate([
|
|
487
|
+
(0, common_1.ConfigProperty)({
|
|
488
|
+
type: ReIndexingSensitivity,
|
|
489
|
+
tags: {
|
|
490
|
+
name: $localize `Folder reindexing sensitivity`,
|
|
491
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
492
|
+
},
|
|
493
|
+
description: $localize `Set the reindexing sensitivity. High value check the folders for change more often. Setting to never only indexes if never indexed or explicit running the Indexing Job.`
|
|
494
|
+
}),
|
|
495
|
+
tslib_1.__metadata("design:type", Number)
|
|
496
|
+
], ServerIndexingConfig.prototype, "reIndexingSensitivity", void 0);
|
|
497
|
+
tslib_1.__decorate([
|
|
498
|
+
(0, common_1.ConfigProperty)({
|
|
499
|
+
arrayType: 'string',
|
|
500
|
+
tags: {
|
|
501
|
+
name: $localize `Exclude Folder List`,
|
|
502
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
503
|
+
uiResetNeeded: { server: true, db: true },
|
|
504
|
+
uiOptional: true,
|
|
505
|
+
uiAllowSpaces: true
|
|
506
|
+
},
|
|
507
|
+
description: $localize `Folders to exclude from indexing. If an entry starts with '/' it is treated as an absolute path. If it doesn't start with '/' but contains a '/', the path is relative to the image directory. If it doesn't contain a '/', any folder with this name will be excluded.`,
|
|
508
|
+
}),
|
|
509
|
+
tslib_1.__metadata("design:type", Array)
|
|
510
|
+
], ServerIndexingConfig.prototype, "excludeFolderList", void 0);
|
|
511
|
+
tslib_1.__decorate([
|
|
512
|
+
(0, common_1.ConfigProperty)({
|
|
513
|
+
arrayType: 'string',
|
|
514
|
+
tags: {
|
|
515
|
+
name: $localize `Exclude File List`,
|
|
516
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
517
|
+
uiResetNeeded: { server: true, db: true },
|
|
518
|
+
uiOptional: true,
|
|
519
|
+
hint: $localize `.ignore;.pg2ignore`
|
|
520
|
+
},
|
|
521
|
+
description: $localize `Files that mark a folder to be excluded from indexing. Any folder that contains a file with this name will be excluded from indexing.`,
|
|
522
|
+
}),
|
|
523
|
+
tslib_1.__metadata("design:type", Array)
|
|
524
|
+
], ServerIndexingConfig.prototype, "excludeFileList", void 0);
|
|
525
|
+
ServerIndexingConfig = tslib_1.__decorate([
|
|
526
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
527
|
+
], ServerIndexingConfig);
|
|
528
|
+
exports.ServerIndexingConfig = ServerIndexingConfig;
|
|
529
|
+
let ServerDuplicatesConfig = class ServerDuplicatesConfig {
|
|
530
|
+
constructor() {
|
|
531
|
+
this.listingLimit = 1000;
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
tslib_1.__decorate([
|
|
535
|
+
(0, common_1.ConfigProperty)({
|
|
536
|
+
type: 'unsignedInt',
|
|
537
|
+
tags: {
|
|
538
|
+
name: $localize `Max duplicates`,
|
|
539
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
540
|
+
},
|
|
541
|
+
description: $localize `Maximum number of duplicates to list.`
|
|
542
|
+
}),
|
|
543
|
+
tslib_1.__metadata("design:type", Number)
|
|
544
|
+
], ServerDuplicatesConfig.prototype, "listingLimit", void 0);
|
|
545
|
+
ServerDuplicatesConfig = tslib_1.__decorate([
|
|
546
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
547
|
+
], ServerDuplicatesConfig);
|
|
548
|
+
exports.ServerDuplicatesConfig = ServerDuplicatesConfig;
|
|
549
|
+
let ServerLogConfig = class ServerLogConfig {
|
|
550
|
+
constructor() {
|
|
551
|
+
this.level = LogLevel.info;
|
|
552
|
+
this.sqlLevel = SQLLogLevel.error;
|
|
553
|
+
this.logServerTiming = false;
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
tslib_1.__decorate([
|
|
557
|
+
(0, common_1.ConfigProperty)({
|
|
558
|
+
type: LogLevel,
|
|
559
|
+
tags: {
|
|
560
|
+
name: $localize `Level`,
|
|
561
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
562
|
+
},
|
|
563
|
+
description: $localize `Logging level.`
|
|
564
|
+
}),
|
|
565
|
+
tslib_1.__metadata("design:type", Number)
|
|
566
|
+
], ServerLogConfig.prototype, "level", void 0);
|
|
567
|
+
tslib_1.__decorate([
|
|
568
|
+
(0, common_1.ConfigProperty)({
|
|
569
|
+
type: SQLLogLevel,
|
|
570
|
+
tags: {
|
|
571
|
+
name: $localize `Sql Level`,
|
|
572
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
573
|
+
},
|
|
574
|
+
description: $localize `Logging level for SQL queries.`
|
|
575
|
+
}),
|
|
576
|
+
tslib_1.__metadata("design:type", Number)
|
|
577
|
+
], ServerLogConfig.prototype, "sqlLevel", void 0);
|
|
578
|
+
tslib_1.__decorate([
|
|
579
|
+
(0, common_1.ConfigProperty)({
|
|
580
|
+
tags: {
|
|
581
|
+
name: $localize `Server timing`,
|
|
582
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
583
|
+
},
|
|
584
|
+
description: $localize `If enabled, the app ads "Server-Timing" http header to the response.`
|
|
585
|
+
}),
|
|
586
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
587
|
+
], ServerLogConfig.prototype, "logServerTiming", void 0);
|
|
588
|
+
ServerLogConfig = tslib_1.__decorate([
|
|
589
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
590
|
+
], ServerLogConfig);
|
|
591
|
+
exports.ServerLogConfig = ServerLogConfig;
|
|
592
|
+
let NeverJobTriggerConfig = class NeverJobTriggerConfig {
|
|
593
|
+
constructor() {
|
|
594
|
+
this.type = JobScheduleDTO_1.JobTriggerType.never;
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
tslib_1.__decorate([
|
|
598
|
+
(0, common_1.ConfigProperty)({ type: JobScheduleDTO_1.JobTriggerType }),
|
|
599
|
+
tslib_1.__metadata("design:type", Object)
|
|
600
|
+
], NeverJobTriggerConfig.prototype, "type", void 0);
|
|
601
|
+
NeverJobTriggerConfig = tslib_1.__decorate([
|
|
602
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
603
|
+
], NeverJobTriggerConfig);
|
|
604
|
+
exports.NeverJobTriggerConfig = NeverJobTriggerConfig;
|
|
605
|
+
let ScheduledJobTriggerConfig = class ScheduledJobTriggerConfig {
|
|
606
|
+
constructor() {
|
|
607
|
+
this.type = JobScheduleDTO_1.JobTriggerType.scheduled;
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
tslib_1.__decorate([
|
|
611
|
+
(0, common_1.ConfigProperty)({ type: JobScheduleDTO_1.JobTriggerType }),
|
|
612
|
+
tslib_1.__metadata("design:type", Object)
|
|
613
|
+
], ScheduledJobTriggerConfig.prototype, "type", void 0);
|
|
614
|
+
tslib_1.__decorate([
|
|
615
|
+
(0, common_1.ConfigProperty)({ type: 'unsignedInt' }),
|
|
616
|
+
tslib_1.__metadata("design:type", Number)
|
|
617
|
+
], ScheduledJobTriggerConfig.prototype, "time", void 0);
|
|
618
|
+
ScheduledJobTriggerConfig = tslib_1.__decorate([
|
|
619
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
620
|
+
], ScheduledJobTriggerConfig);
|
|
621
|
+
exports.ScheduledJobTriggerConfig = ScheduledJobTriggerConfig;
|
|
622
|
+
let PeriodicJobTriggerConfig = class PeriodicJobTriggerConfig {
|
|
623
|
+
constructor() {
|
|
624
|
+
this.type = JobScheduleDTO_1.JobTriggerType.periodic;
|
|
625
|
+
this.periodicity = 7; // 0-6: week days 7 every day
|
|
626
|
+
this.atTime = 0; // day time
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
tslib_1.__decorate([
|
|
630
|
+
(0, common_1.ConfigProperty)({ type: JobScheduleDTO_1.JobTriggerType }),
|
|
631
|
+
tslib_1.__metadata("design:type", Object)
|
|
632
|
+
], PeriodicJobTriggerConfig.prototype, "type", void 0);
|
|
633
|
+
tslib_1.__decorate([
|
|
634
|
+
(0, common_1.ConfigProperty)({ type: 'unsignedInt', max: 7 }),
|
|
635
|
+
tslib_1.__metadata("design:type", Number)
|
|
636
|
+
], PeriodicJobTriggerConfig.prototype, "periodicity", void 0);
|
|
637
|
+
tslib_1.__decorate([
|
|
638
|
+
(0, common_1.ConfigProperty)({ type: 'unsignedInt', max: 23 * 60 + 59 }),
|
|
639
|
+
tslib_1.__metadata("design:type", Number)
|
|
640
|
+
], PeriodicJobTriggerConfig.prototype, "atTime", void 0);
|
|
641
|
+
PeriodicJobTriggerConfig = tslib_1.__decorate([
|
|
642
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
643
|
+
], PeriodicJobTriggerConfig);
|
|
644
|
+
exports.PeriodicJobTriggerConfig = PeriodicJobTriggerConfig;
|
|
645
|
+
let AfterJobTriggerConfig = class AfterJobTriggerConfig {
|
|
646
|
+
constructor(afterScheduleName) {
|
|
647
|
+
this.type = JobScheduleDTO_1.JobTriggerType.after;
|
|
648
|
+
this.afterScheduleName = afterScheduleName;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
tslib_1.__decorate([
|
|
652
|
+
(0, common_1.ConfigProperty)({ type: JobScheduleDTO_1.JobTriggerType }),
|
|
653
|
+
tslib_1.__metadata("design:type", Object)
|
|
654
|
+
], AfterJobTriggerConfig.prototype, "type", void 0);
|
|
655
|
+
tslib_1.__decorate([
|
|
656
|
+
(0, common_1.ConfigProperty)(),
|
|
657
|
+
tslib_1.__metadata("design:type", String)
|
|
658
|
+
], AfterJobTriggerConfig.prototype, "afterScheduleName", void 0);
|
|
659
|
+
AfterJobTriggerConfig = tslib_1.__decorate([
|
|
660
|
+
(0, common_1.SubConfigClass)({ softReadonly: true }),
|
|
661
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
662
|
+
], AfterJobTriggerConfig);
|
|
663
|
+
exports.AfterJobTriggerConfig = AfterJobTriggerConfig;
|
|
664
|
+
let JobScheduleConfig = class JobScheduleConfig {
|
|
665
|
+
constructor(name, jobName, trigger, config = {}, allowParallelRun = false) {
|
|
666
|
+
this.config = {};
|
|
667
|
+
this.allowParallelRun = false;
|
|
668
|
+
this.name = name;
|
|
669
|
+
this.jobName = jobName;
|
|
670
|
+
this.config = config;
|
|
671
|
+
this.allowParallelRun = allowParallelRun;
|
|
672
|
+
this.trigger = trigger;
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
tslib_1.__decorate([
|
|
676
|
+
(0, common_1.ConfigProperty)(),
|
|
677
|
+
tslib_1.__metadata("design:type", String)
|
|
678
|
+
], JobScheduleConfig.prototype, "name", void 0);
|
|
679
|
+
tslib_1.__decorate([
|
|
680
|
+
(0, common_1.ConfigProperty)(),
|
|
681
|
+
tslib_1.__metadata("design:type", String)
|
|
682
|
+
], JobScheduleConfig.prototype, "jobName", void 0);
|
|
683
|
+
tslib_1.__decorate([
|
|
684
|
+
(0, common_1.ConfigProperty)(),
|
|
685
|
+
tslib_1.__metadata("design:type", Object)
|
|
686
|
+
], JobScheduleConfig.prototype, "config", void 0);
|
|
687
|
+
tslib_1.__decorate([
|
|
688
|
+
(0, common_1.ConfigProperty)(),
|
|
689
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
690
|
+
], JobScheduleConfig.prototype, "allowParallelRun", void 0);
|
|
691
|
+
tslib_1.__decorate([
|
|
692
|
+
(0, common_1.ConfigProperty)({
|
|
693
|
+
type: NeverJobTriggerConfig,
|
|
694
|
+
typeBuilder: (v) => {
|
|
695
|
+
const type = typeof v.type === 'number' ? v.type : JobScheduleDTO_1.JobTriggerType[v.type];
|
|
696
|
+
switch (type) {
|
|
697
|
+
case JobScheduleDTO_1.JobTriggerType.after:
|
|
698
|
+
return AfterJobTriggerConfig;
|
|
699
|
+
case JobScheduleDTO_1.JobTriggerType.never:
|
|
700
|
+
return NeverJobTriggerConfig;
|
|
701
|
+
case JobScheduleDTO_1.JobTriggerType.scheduled:
|
|
702
|
+
return ScheduledJobTriggerConfig;
|
|
703
|
+
case JobScheduleDTO_1.JobTriggerType.periodic:
|
|
704
|
+
return PeriodicJobTriggerConfig;
|
|
705
|
+
}
|
|
706
|
+
return null;
|
|
707
|
+
},
|
|
708
|
+
}),
|
|
709
|
+
tslib_1.__metadata("design:type", Object)
|
|
710
|
+
], JobScheduleConfig.prototype, "trigger", void 0);
|
|
711
|
+
JobScheduleConfig = tslib_1.__decorate([
|
|
712
|
+
(0, common_1.SubConfigClass)({ softReadonly: true }),
|
|
713
|
+
tslib_1.__metadata("design:paramtypes", [String, String, Object, Object, Boolean])
|
|
714
|
+
], JobScheduleConfig);
|
|
715
|
+
exports.JobScheduleConfig = JobScheduleConfig;
|
|
716
|
+
let ServerJobConfig = class ServerJobConfig {
|
|
717
|
+
constructor() {
|
|
718
|
+
this.maxSavedProgress = 20;
|
|
719
|
+
this.mediaProcessingBatchSize = 1000;
|
|
720
|
+
this.scheduled = [
|
|
721
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs.Indexing], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs.Indexing], new NeverJobTriggerConfig(), { indexChangesOnly: true } // set config explicitly, so it is not undefined on the UI
|
|
722
|
+
),
|
|
723
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Album Cover Filling']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Album Cover Filling']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Indexing']]), {}),
|
|
724
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Thumbnail Generation']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Thumbnail Generation']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Album Cover Filling']]), { sizes: [240], indexedOnly: true }),
|
|
725
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Photo Converting']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Photo Converting']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Thumbnail Generation']]), { indexedOnly: true }),
|
|
726
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Video Converting']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Video Converting']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Photo Converting']]), { indexedOnly: true }),
|
|
727
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['GPX Compression']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['GPX Compression']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Video Converting']]), { indexedOnly: true }),
|
|
728
|
+
new JobScheduleConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Temp Folder Cleaning']], JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Temp Folder Cleaning']], new AfterJobTriggerConfig(JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['GPX Compression']]), { indexedOnly: true }),
|
|
729
|
+
];
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
tslib_1.__decorate([
|
|
733
|
+
(0, common_1.ConfigProperty)({
|
|
734
|
+
type: 'unsignedInt',
|
|
735
|
+
tags: {
|
|
736
|
+
name: $localize `Max saved progress`,
|
|
737
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
738
|
+
},
|
|
739
|
+
description: $localize `Job history size.`
|
|
740
|
+
}),
|
|
741
|
+
tslib_1.__metadata("design:type", Number)
|
|
742
|
+
], ServerJobConfig.prototype, "maxSavedProgress", void 0);
|
|
743
|
+
tslib_1.__decorate([
|
|
744
|
+
(0, common_1.ConfigProperty)({
|
|
745
|
+
type: 'unsignedInt',
|
|
746
|
+
tags: {
|
|
747
|
+
name: $localize `Processing batch size`,
|
|
748
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood
|
|
749
|
+
},
|
|
750
|
+
description: $localize `Jobs load this many photos or videos form the DB for processing at once.`
|
|
751
|
+
}),
|
|
752
|
+
tslib_1.__metadata("design:type", Number)
|
|
753
|
+
], ServerJobConfig.prototype, "mediaProcessingBatchSize", void 0);
|
|
754
|
+
tslib_1.__decorate([
|
|
755
|
+
(0, common_1.ConfigProperty)({
|
|
756
|
+
arrayType: JobScheduleConfig,
|
|
757
|
+
tags: {
|
|
758
|
+
name: $localize `Scheduled jobs`,
|
|
759
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
760
|
+
}
|
|
761
|
+
}),
|
|
762
|
+
tslib_1.__metadata("design:type", Array)
|
|
763
|
+
], ServerJobConfig.prototype, "scheduled", void 0);
|
|
764
|
+
ServerJobConfig = tslib_1.__decorate([
|
|
765
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
766
|
+
], ServerJobConfig);
|
|
767
|
+
exports.ServerJobConfig = ServerJobConfig;
|
|
768
|
+
let VideoTranscodingConfig = class VideoTranscodingConfig {
|
|
769
|
+
constructor() {
|
|
770
|
+
this.bitRate = 5 * 1024 * 1024;
|
|
771
|
+
this.resolution = 720;
|
|
772
|
+
this.fps = 25;
|
|
773
|
+
this.format = 'mp4';
|
|
774
|
+
this.mp4Codec = 'libx264';
|
|
775
|
+
this.webmCodec = 'libvpx';
|
|
776
|
+
this.crf = 23;
|
|
777
|
+
this.preset = FFmpegPresets.medium;
|
|
778
|
+
this.customOutputOptions = [];
|
|
779
|
+
this.customInputOptions = [];
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
tslib_1.__decorate([
|
|
783
|
+
(0, common_1.ConfigProperty)({
|
|
784
|
+
type: 'unsignedInt',
|
|
785
|
+
tags: {
|
|
786
|
+
name: $localize `Bit rate`,
|
|
787
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
788
|
+
unit: 'bps'
|
|
789
|
+
},
|
|
790
|
+
description: $localize `Target bit rate of the output video will be scaled down this this. This should be less than the upload rate of your home server.`
|
|
791
|
+
}),
|
|
792
|
+
tslib_1.__metadata("design:type", Number)
|
|
793
|
+
], VideoTranscodingConfig.prototype, "bitRate", void 0);
|
|
794
|
+
tslib_1.__decorate([
|
|
795
|
+
(0, common_1.ConfigProperty)({
|
|
796
|
+
type: 'unsignedInt',
|
|
797
|
+
tags: {
|
|
798
|
+
name: $localize `Resolution`,
|
|
799
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
800
|
+
uiOptions: [720, 1080, 1440, 2160, 4320],
|
|
801
|
+
unit: 'px'
|
|
802
|
+
},
|
|
803
|
+
description: $localize `The height of the output video will be scaled down to this, while keeping the aspect ratio.`
|
|
804
|
+
}),
|
|
805
|
+
tslib_1.__metadata("design:type", Number)
|
|
806
|
+
], VideoTranscodingConfig.prototype, "resolution", void 0);
|
|
807
|
+
tslib_1.__decorate([
|
|
808
|
+
(0, common_1.ConfigProperty)({
|
|
809
|
+
type: 'positiveFloat',
|
|
810
|
+
tags: {
|
|
811
|
+
name: $localize `FPS`,
|
|
812
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
813
|
+
uiOptions: [24, 25, 30, 48, 50, 60]
|
|
814
|
+
},
|
|
815
|
+
description: $localize `Target frame per second (fps) of the output video will be scaled down this this.`
|
|
816
|
+
}),
|
|
817
|
+
tslib_1.__metadata("design:type", Number)
|
|
818
|
+
], VideoTranscodingConfig.prototype, "fps", void 0);
|
|
819
|
+
tslib_1.__decorate([
|
|
820
|
+
(0, common_1.ConfigProperty)({
|
|
821
|
+
tags: {
|
|
822
|
+
name: $localize `Format`,
|
|
823
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
824
|
+
uiOptions: ['mp4', 'webm']
|
|
825
|
+
}
|
|
826
|
+
}),
|
|
827
|
+
tslib_1.__metadata("design:type", String)
|
|
828
|
+
], VideoTranscodingConfig.prototype, "format", void 0);
|
|
829
|
+
tslib_1.__decorate([
|
|
830
|
+
(0, common_1.ConfigProperty)({
|
|
831
|
+
tags: {
|
|
832
|
+
name: $localize `MP4 codec`,
|
|
833
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
834
|
+
uiOptions: ['libx264', 'libx265'],
|
|
835
|
+
relevant: (c) => c.format === 'mp4'
|
|
836
|
+
}
|
|
837
|
+
}),
|
|
838
|
+
tslib_1.__metadata("design:type", String)
|
|
839
|
+
], VideoTranscodingConfig.prototype, "mp4Codec", void 0);
|
|
840
|
+
tslib_1.__decorate([
|
|
841
|
+
(0, common_1.ConfigProperty)({
|
|
842
|
+
tags: {
|
|
843
|
+
name: $localize `Webm Codec`,
|
|
844
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
845
|
+
uiOptions: ['libvpx', 'libvpx-vp9'],
|
|
846
|
+
relevant: (c) => c.format === 'webm'
|
|
847
|
+
}
|
|
848
|
+
}),
|
|
849
|
+
tslib_1.__metadata("design:type", String)
|
|
850
|
+
], VideoTranscodingConfig.prototype, "webmCodec", void 0);
|
|
851
|
+
tslib_1.__decorate([
|
|
852
|
+
(0, common_1.ConfigProperty)({
|
|
853
|
+
type: 'unsignedInt', max: 51,
|
|
854
|
+
tags: {
|
|
855
|
+
name: $localize `CRF`,
|
|
856
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
857
|
+
},
|
|
858
|
+
description: $localize `The range of the Constant Rate Factor (CRF) scale is 0–51, where 0 is lossless, 23 is the default, and 51 is worst quality possible.`,
|
|
859
|
+
}),
|
|
860
|
+
tslib_1.__metadata("design:type", Number)
|
|
861
|
+
], VideoTranscodingConfig.prototype, "crf", void 0);
|
|
862
|
+
tslib_1.__decorate([
|
|
863
|
+
(0, common_1.ConfigProperty)({
|
|
864
|
+
type: FFmpegPresets,
|
|
865
|
+
tags: {
|
|
866
|
+
name: $localize `Preset`,
|
|
867
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
868
|
+
},
|
|
869
|
+
description: $localize `A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize).`,
|
|
870
|
+
}),
|
|
871
|
+
tslib_1.__metadata("design:type", Number)
|
|
872
|
+
], VideoTranscodingConfig.prototype, "preset", void 0);
|
|
873
|
+
tslib_1.__decorate([
|
|
874
|
+
(0, common_1.ConfigProperty)({
|
|
875
|
+
arrayType: 'string',
|
|
876
|
+
tags: {
|
|
877
|
+
name: $localize `Custom Output Options`,
|
|
878
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
879
|
+
hint: '-pass 2;-minrate 1M;-maxrate 1M;-bufsize 2M',
|
|
880
|
+
uiAllowSpaces: true
|
|
881
|
+
},
|
|
882
|
+
description: $localize `It will be sent to ffmpeg as it is, as custom output options.`,
|
|
883
|
+
}),
|
|
884
|
+
tslib_1.__metadata("design:type", Array)
|
|
885
|
+
], VideoTranscodingConfig.prototype, "customOutputOptions", void 0);
|
|
886
|
+
tslib_1.__decorate([
|
|
887
|
+
(0, common_1.ConfigProperty)({
|
|
888
|
+
arrayType: 'string',
|
|
889
|
+
tags: {
|
|
890
|
+
name: $localize `Custom Input Options`,
|
|
891
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
892
|
+
hint: '-option1; -option2 param2; -option3; -option4 param4',
|
|
893
|
+
githubIssue: 592,
|
|
894
|
+
uiAllowSpaces: true
|
|
895
|
+
},
|
|
896
|
+
description: $localize `It will be sent to ffmpeg as it is, as custom input options.`,
|
|
897
|
+
}),
|
|
898
|
+
tslib_1.__metadata("design:type", Array)
|
|
899
|
+
], VideoTranscodingConfig.prototype, "customInputOptions", void 0);
|
|
900
|
+
VideoTranscodingConfig = tslib_1.__decorate([
|
|
901
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
902
|
+
], VideoTranscodingConfig);
|
|
903
|
+
exports.VideoTranscodingConfig = VideoTranscodingConfig;
|
|
904
|
+
let ServerVideoConfig = class ServerVideoConfig extends ClientConfig_1.ClientVideoConfig {
|
|
905
|
+
constructor() {
|
|
906
|
+
super(...arguments);
|
|
907
|
+
this.transcoding = new VideoTranscodingConfig();
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
tslib_1.__decorate([
|
|
911
|
+
(0, common_1.ConfigProperty)({
|
|
912
|
+
tags: {
|
|
913
|
+
name: $localize `Video transcoding`,
|
|
914
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
915
|
+
uiDisabled: (sb) => !sb.enabled
|
|
916
|
+
},
|
|
917
|
+
description: $localize `To ensure smooth video playback, video transcoding is recommended to a lower bit rate than the server's upload rate. The transcoded videos will be save to the thumbnail folder. You can trigger the transcoding manually, but you can also create an automatic encoding job in advanced settings mode.`
|
|
918
|
+
}),
|
|
919
|
+
tslib_1.__metadata("design:type", VideoTranscodingConfig)
|
|
920
|
+
], ServerVideoConfig.prototype, "transcoding", void 0);
|
|
921
|
+
ServerVideoConfig = tslib_1.__decorate([
|
|
922
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
923
|
+
], ServerVideoConfig);
|
|
924
|
+
exports.ServerVideoConfig = ServerVideoConfig;
|
|
925
|
+
let PhotoConvertingConfig = class PhotoConvertingConfig extends ClientConfig_1.ClientPhotoConvertingConfig {
|
|
926
|
+
constructor() {
|
|
927
|
+
super(...arguments);
|
|
928
|
+
this.onTheFly = true;
|
|
929
|
+
this.resolution = 1080;
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
tslib_1.__decorate([
|
|
933
|
+
(0, common_1.ConfigProperty)({
|
|
934
|
+
tags: {
|
|
935
|
+
name: $localize `On the fly converting`,
|
|
936
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
937
|
+
uiDisabled: (sc) => !sc.enabled
|
|
938
|
+
},
|
|
939
|
+
description: $localize `Converts photos on the fly, when they are requested.`,
|
|
940
|
+
}),
|
|
941
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
942
|
+
], PhotoConvertingConfig.prototype, "onTheFly", void 0);
|
|
943
|
+
tslib_1.__decorate([
|
|
944
|
+
(0, common_1.ConfigProperty)({
|
|
945
|
+
type: 'unsignedInt',
|
|
946
|
+
tags: {
|
|
947
|
+
name: $localize `Resolution`,
|
|
948
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
949
|
+
uiOptions: [720, 1080, 1440, 2160, 4320],
|
|
950
|
+
unit: 'px',
|
|
951
|
+
uiDisabled: (sc) => !sc.enabled
|
|
952
|
+
},
|
|
953
|
+
description: $localize `The shorter edge of the converted photo will be scaled down to this, while keeping the aspect ratio.`,
|
|
954
|
+
}),
|
|
955
|
+
tslib_1.__metadata("design:type", Number)
|
|
956
|
+
], PhotoConvertingConfig.prototype, "resolution", void 0);
|
|
957
|
+
PhotoConvertingConfig = tslib_1.__decorate([
|
|
958
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
959
|
+
], PhotoConvertingConfig);
|
|
960
|
+
exports.PhotoConvertingConfig = PhotoConvertingConfig;
|
|
961
|
+
let ServerPhotoConfig = class ServerPhotoConfig extends ClientConfig_1.ClientPhotoConfig {
|
|
962
|
+
constructor() {
|
|
963
|
+
super(...arguments);
|
|
964
|
+
this.Converting = new PhotoConvertingConfig();
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
tslib_1.__decorate([
|
|
968
|
+
(0, common_1.ConfigProperty)({
|
|
969
|
+
tags: {
|
|
970
|
+
name: $localize `Photo resizing`,
|
|
971
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
972
|
+
}
|
|
973
|
+
}),
|
|
974
|
+
tslib_1.__metadata("design:type", PhotoConvertingConfig)
|
|
975
|
+
], ServerPhotoConfig.prototype, "Converting", void 0);
|
|
976
|
+
ServerPhotoConfig = tslib_1.__decorate([
|
|
977
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
978
|
+
], ServerPhotoConfig);
|
|
979
|
+
exports.ServerPhotoConfig = ServerPhotoConfig;
|
|
980
|
+
let ServerAlbumCoverConfig = class ServerAlbumCoverConfig {
|
|
981
|
+
constructor() {
|
|
982
|
+
this.SearchQuery = {
|
|
983
|
+
type: SearchQueryDTO_1.SearchQueryTypes.any_text,
|
|
984
|
+
text: '',
|
|
985
|
+
};
|
|
986
|
+
this.Sorting = [
|
|
987
|
+
new ClientConfig_1.ClientSortingConfig(SortingMethods_1.SortByTypes.Rating, false),
|
|
988
|
+
new ClientConfig_1.ClientSortingConfig(SortingMethods_1.SortByTypes.Date, false),
|
|
989
|
+
new ClientConfig_1.ClientSortingConfig(SortingMethods_1.SortByTypes.PersonCount, false)
|
|
990
|
+
];
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
tslib_1.__decorate([
|
|
994
|
+
(0, common_1.ConfigProperty)({
|
|
995
|
+
type: 'object',
|
|
996
|
+
tags: {
|
|
997
|
+
name: $localize `Cover Filter query`,
|
|
998
|
+
uiResetNeeded: { db: true },
|
|
999
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1000
|
+
uiType: 'SearchQuery'
|
|
1001
|
+
},
|
|
1002
|
+
description: $localize `Filters the sub-folders with this search query. If filter results no photo, the app will search again without the filter.`,
|
|
1003
|
+
}),
|
|
1004
|
+
tslib_1.__metadata("design:type", Object)
|
|
1005
|
+
], ServerAlbumCoverConfig.prototype, "SearchQuery", void 0);
|
|
1006
|
+
tslib_1.__decorate([
|
|
1007
|
+
(0, common_1.ConfigProperty)({
|
|
1008
|
+
arrayType: ClientConfig_1.ClientSortingConfig,
|
|
1009
|
+
tags: {
|
|
1010
|
+
name: $localize `Cover Sorting`,
|
|
1011
|
+
uiResetNeeded: { db: true },
|
|
1012
|
+
priority: ClientConfig_1.ConfigPriority.advanced
|
|
1013
|
+
},
|
|
1014
|
+
description: $localize `If multiple cover is available sorts them by these methods and selects the first one.`,
|
|
1015
|
+
}),
|
|
1016
|
+
tslib_1.__metadata("design:type", Array)
|
|
1017
|
+
], ServerAlbumCoverConfig.prototype, "Sorting", void 0);
|
|
1018
|
+
ServerAlbumCoverConfig = tslib_1.__decorate([
|
|
1019
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1020
|
+
], ServerAlbumCoverConfig);
|
|
1021
|
+
exports.ServerAlbumCoverConfig = ServerAlbumCoverConfig;
|
|
1022
|
+
let ServerMediaConfig = class ServerMediaConfig extends ClientConfig_1.ClientMediaConfig {
|
|
1023
|
+
constructor() {
|
|
1024
|
+
super(...arguments);
|
|
1025
|
+
this.folder = 'demo/images';
|
|
1026
|
+
this.tempFolder = 'demo/tmp';
|
|
1027
|
+
this.photoMetadataSize = 512 * 1024; // only this many bites will be loaded when scanning photo for metadata
|
|
1028
|
+
this.Video = new ServerVideoConfig();
|
|
1029
|
+
this.Photo = new ServerPhotoConfig();
|
|
1030
|
+
this.Thumbnail = new ServerThumbnailConfig();
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
tslib_1.__decorate([
|
|
1034
|
+
(0, common_1.ConfigProperty)({
|
|
1035
|
+
tags: {
|
|
1036
|
+
name: $localize `Images folder`,
|
|
1037
|
+
priority: ClientConfig_1.ConfigPriority.basic,
|
|
1038
|
+
uiResetNeeded: { server: true },
|
|
1039
|
+
dockerSensitive: true
|
|
1040
|
+
},
|
|
1041
|
+
description: $localize `Images are loaded from this folder (read permission required)`,
|
|
1042
|
+
}),
|
|
1043
|
+
tslib_1.__metadata("design:type", String)
|
|
1044
|
+
], ServerMediaConfig.prototype, "folder", void 0);
|
|
1045
|
+
tslib_1.__decorate([
|
|
1046
|
+
(0, common_1.ConfigProperty)({
|
|
1047
|
+
tags: {
|
|
1048
|
+
name: $localize `Temp folder`,
|
|
1049
|
+
uiResetNeeded: { server: true },
|
|
1050
|
+
priority: ClientConfig_1.ConfigPriority.basic,
|
|
1051
|
+
dockerSensitive: true
|
|
1052
|
+
},
|
|
1053
|
+
description: $localize `Thumbnails, converted photos, videos will be stored here (write permission required)`,
|
|
1054
|
+
}),
|
|
1055
|
+
tslib_1.__metadata("design:type", String)
|
|
1056
|
+
], ServerMediaConfig.prototype, "tempFolder", void 0);
|
|
1057
|
+
tslib_1.__decorate([
|
|
1058
|
+
(0, common_1.ConfigProperty)({
|
|
1059
|
+
type: 'unsignedInt',
|
|
1060
|
+
tags: {
|
|
1061
|
+
name: $localize `Metadata read buffer`,
|
|
1062
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
1063
|
+
uiResetNeeded: { db: true, server: true },
|
|
1064
|
+
githubIssue: 398,
|
|
1065
|
+
unit: 'bytes'
|
|
1066
|
+
},
|
|
1067
|
+
description: $localize `Only this many bites will be loaded when scanning photo/video for metadata. Increase this number if your photos shows up as square.`,
|
|
1068
|
+
}),
|
|
1069
|
+
tslib_1.__metadata("design:type", Number)
|
|
1070
|
+
], ServerMediaConfig.prototype, "photoMetadataSize", void 0);
|
|
1071
|
+
tslib_1.__decorate([
|
|
1072
|
+
(0, common_1.ConfigProperty)({
|
|
1073
|
+
tags: {
|
|
1074
|
+
name: $localize `Video`,
|
|
1075
|
+
uiIcon: 'ionVideocamOutline',
|
|
1076
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1077
|
+
uiJob: [
|
|
1078
|
+
{
|
|
1079
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Video Converting']],
|
|
1080
|
+
relevant: (c) => c.Media.Video.enabled
|
|
1081
|
+
}
|
|
1082
|
+
]
|
|
1083
|
+
},
|
|
1084
|
+
description: $localize `Video support uses ffmpeg. ffmpeg and ffprobe binaries need to be available in the PATH or the @ffmpeg-installer/ffmpeg and @ffprobe-installer/ffprobe optional node packages need to be installed.`
|
|
1085
|
+
}),
|
|
1086
|
+
tslib_1.__metadata("design:type", ServerVideoConfig)
|
|
1087
|
+
], ServerMediaConfig.prototype, "Video", void 0);
|
|
1088
|
+
tslib_1.__decorate([
|
|
1089
|
+
(0, common_1.ConfigProperty)({
|
|
1090
|
+
tags: {
|
|
1091
|
+
name: $localize `Photo`,
|
|
1092
|
+
uiIcon: 'ionCameraOutline',
|
|
1093
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1094
|
+
uiJob: [
|
|
1095
|
+
{
|
|
1096
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Photo Converting']],
|
|
1097
|
+
relevant: (c) => c.Media.Photo.Converting.enabled
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
}
|
|
1101
|
+
}),
|
|
1102
|
+
tslib_1.__metadata("design:type", ServerPhotoConfig)
|
|
1103
|
+
], ServerMediaConfig.prototype, "Photo", void 0);
|
|
1104
|
+
tslib_1.__decorate([
|
|
1105
|
+
(0, common_1.ConfigProperty)({
|
|
1106
|
+
tags: {
|
|
1107
|
+
name: $localize `Thumbnail`,
|
|
1108
|
+
uiIcon: 'ionImageOutline',
|
|
1109
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1110
|
+
uiJob: [{ job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Thumbnail Generation']] }]
|
|
1111
|
+
}
|
|
1112
|
+
}),
|
|
1113
|
+
tslib_1.__metadata("design:type", ServerThumbnailConfig)
|
|
1114
|
+
], ServerMediaConfig.prototype, "Thumbnail", void 0);
|
|
1115
|
+
ServerMediaConfig = tslib_1.__decorate([
|
|
1116
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1117
|
+
], ServerMediaConfig);
|
|
1118
|
+
exports.ServerMediaConfig = ServerMediaConfig;
|
|
1119
|
+
let ServerServiceConfig = class ServerServiceConfig extends ClientConfig_1.ClientServiceConfig {
|
|
1120
|
+
constructor() {
|
|
1121
|
+
super(...arguments);
|
|
1122
|
+
this.sessionSecret = [];
|
|
1123
|
+
this.sessionTimeout = 1000 * 60 * 60 * 24 * 7; // in ms
|
|
1124
|
+
this.port = 80;
|
|
1125
|
+
this.host = '0.0.0.0';
|
|
1126
|
+
this.Log = new ServerLogConfig();
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
tslib_1.__decorate([
|
|
1130
|
+
(0, common_1.ConfigProperty)({
|
|
1131
|
+
arrayType: 'string',
|
|
1132
|
+
tags: {
|
|
1133
|
+
secret: true,
|
|
1134
|
+
name: 'sessionSecret'
|
|
1135
|
+
}
|
|
1136
|
+
}),
|
|
1137
|
+
tslib_1.__metadata("design:type", Array)
|
|
1138
|
+
], ServerServiceConfig.prototype, "sessionSecret", void 0);
|
|
1139
|
+
tslib_1.__decorate([
|
|
1140
|
+
(0, common_1.ConfigProperty)({
|
|
1141
|
+
type: 'unsignedInt',
|
|
1142
|
+
tags: {
|
|
1143
|
+
name: $localize `Session Timeout`,
|
|
1144
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
1145
|
+
unit: 'ms'
|
|
1146
|
+
},
|
|
1147
|
+
description: $localize `Users kept logged in for this long time.`,
|
|
1148
|
+
}),
|
|
1149
|
+
tslib_1.__metadata("design:type", Number)
|
|
1150
|
+
], ServerServiceConfig.prototype, "sessionTimeout", void 0);
|
|
1151
|
+
tslib_1.__decorate([
|
|
1152
|
+
(0, common_1.ConfigProperty)({
|
|
1153
|
+
tags: {
|
|
1154
|
+
name: $localize `Port`,
|
|
1155
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1156
|
+
uiResetNeeded: { server: true },
|
|
1157
|
+
dockerSensitive: true
|
|
1158
|
+
},
|
|
1159
|
+
description: $localize `Port number. Port 80 is usually what you need.`,
|
|
1160
|
+
type: 'unsignedInt', envAlias: 'PORT', min: 0, max: 65535
|
|
1161
|
+
}),
|
|
1162
|
+
tslib_1.__metadata("design:type", Number)
|
|
1163
|
+
], ServerServiceConfig.prototype, "port", void 0);
|
|
1164
|
+
tslib_1.__decorate([
|
|
1165
|
+
(0, common_1.ConfigProperty)({
|
|
1166
|
+
tags: {
|
|
1167
|
+
name: $localize `Host`,
|
|
1168
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1169
|
+
uiResetNeeded: { server: true },
|
|
1170
|
+
dockerSensitive: true
|
|
1171
|
+
},
|
|
1172
|
+
description: $localize `Server will accept connections from this IPv6 or IPv4 address.`,
|
|
1173
|
+
}),
|
|
1174
|
+
tslib_1.__metadata("design:type", String)
|
|
1175
|
+
], ServerServiceConfig.prototype, "host", void 0);
|
|
1176
|
+
tslib_1.__decorate([
|
|
1177
|
+
(0, common_1.ConfigProperty)({
|
|
1178
|
+
tags: {
|
|
1179
|
+
name: $localize `Logs`,
|
|
1180
|
+
priority: ClientConfig_1.ConfigPriority.advanced,
|
|
1181
|
+
}
|
|
1182
|
+
}),
|
|
1183
|
+
tslib_1.__metadata("design:type", ServerLogConfig)
|
|
1184
|
+
], ServerServiceConfig.prototype, "Log", void 0);
|
|
1185
|
+
ServerServiceConfig = tslib_1.__decorate([
|
|
1186
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1187
|
+
], ServerServiceConfig);
|
|
1188
|
+
exports.ServerServiceConfig = ServerServiceConfig;
|
|
1189
|
+
let ServerExtensionsConfig = class ServerExtensionsConfig extends ClientConfig_1.ClientExtensionsConfig {
|
|
1190
|
+
constructor() {
|
|
1191
|
+
super(...arguments);
|
|
1192
|
+
this.folder = 'extensions';
|
|
1193
|
+
this.list = [];
|
|
1194
|
+
this.configs = {};
|
|
1195
|
+
this.cleanUpUnusedTables = true;
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
tslib_1.__decorate([
|
|
1199
|
+
(0, common_1.ConfigProperty)({
|
|
1200
|
+
tags: {
|
|
1201
|
+
name: $localize `Extension folder`,
|
|
1202
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
1203
|
+
dockerSensitive: true
|
|
1204
|
+
},
|
|
1205
|
+
description: $localize `Folder where the app stores the extensions. Extensions live in their sub-folders.`,
|
|
1206
|
+
}),
|
|
1207
|
+
tslib_1.__metadata("design:type", String)
|
|
1208
|
+
], ServerExtensionsConfig.prototype, "folder", void 0);
|
|
1209
|
+
tslib_1.__decorate([
|
|
1210
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1211
|
+
tslib_1.__metadata("design:type", Array)
|
|
1212
|
+
], ServerExtensionsConfig.prototype, "list", void 0);
|
|
1213
|
+
tslib_1.__decorate([
|
|
1214
|
+
(0, common_1.ConfigProperty)({ type: 'object' }),
|
|
1215
|
+
tslib_1.__metadata("design:type", Object)
|
|
1216
|
+
], ServerExtensionsConfig.prototype, "configs", void 0);
|
|
1217
|
+
tslib_1.__decorate([
|
|
1218
|
+
(0, common_1.ConfigProperty)({
|
|
1219
|
+
tags: {
|
|
1220
|
+
name: $localize `Clean up unused tables`,
|
|
1221
|
+
priority: ClientConfig_1.ConfigPriority.underTheHood,
|
|
1222
|
+
},
|
|
1223
|
+
description: $localize `Automatically removes all tables from the DB that are not used anymore.`,
|
|
1224
|
+
}),
|
|
1225
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
1226
|
+
], ServerExtensionsConfig.prototype, "cleanUpUnusedTables", void 0);
|
|
1227
|
+
ServerExtensionsConfig = tslib_1.__decorate([
|
|
1228
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1229
|
+
], ServerExtensionsConfig);
|
|
1230
|
+
exports.ServerExtensionsConfig = ServerExtensionsConfig;
|
|
1231
|
+
let ServerEnvironmentConfig = class ServerEnvironmentConfig {
|
|
1232
|
+
};
|
|
1233
|
+
tslib_1.__decorate([
|
|
1234
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1235
|
+
tslib_1.__metadata("design:type", String)
|
|
1236
|
+
], ServerEnvironmentConfig.prototype, "upTime", void 0);
|
|
1237
|
+
tslib_1.__decorate([
|
|
1238
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1239
|
+
tslib_1.__metadata("design:type", String)
|
|
1240
|
+
], ServerEnvironmentConfig.prototype, "appVersion", void 0);
|
|
1241
|
+
tslib_1.__decorate([
|
|
1242
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1243
|
+
tslib_1.__metadata("design:type", String)
|
|
1244
|
+
], ServerEnvironmentConfig.prototype, "buildTime", void 0);
|
|
1245
|
+
tslib_1.__decorate([
|
|
1246
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1247
|
+
tslib_1.__metadata("design:type", String)
|
|
1248
|
+
], ServerEnvironmentConfig.prototype, "buildCommitHash", void 0);
|
|
1249
|
+
tslib_1.__decorate([
|
|
1250
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1251
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
1252
|
+
], ServerEnvironmentConfig.prototype, "isDocker", void 0);
|
|
1253
|
+
ServerEnvironmentConfig = tslib_1.__decorate([
|
|
1254
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1255
|
+
], ServerEnvironmentConfig);
|
|
1256
|
+
exports.ServerEnvironmentConfig = ServerEnvironmentConfig;
|
|
1257
|
+
let ServerConfig = class ServerConfig extends ClientConfig_1.ClientConfig {
|
|
1258
|
+
constructor() {
|
|
1259
|
+
super(...arguments);
|
|
1260
|
+
this.Environment = new ServerEnvironmentConfig();
|
|
1261
|
+
this.Server = new ServerServiceConfig();
|
|
1262
|
+
this.Database = new ServerDataBaseConfig();
|
|
1263
|
+
this.Users = new ServerUserConfig();
|
|
1264
|
+
this.Indexing = new ServerIndexingConfig();
|
|
1265
|
+
this.Media = new ServerMediaConfig();
|
|
1266
|
+
this.MetaFile = new ServerMetaFileConfig();
|
|
1267
|
+
this.AlbumCover = new ServerAlbumCoverConfig();
|
|
1268
|
+
this.Sharing = new ServerSharingConfig();
|
|
1269
|
+
this.Duplicates = new ServerDuplicatesConfig();
|
|
1270
|
+
this.Messaging = new MessagingConfig_1.MessagingConfig();
|
|
1271
|
+
this.Extensions = new ServerExtensionsConfig();
|
|
1272
|
+
this.Jobs = new ServerJobConfig();
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
tslib_1.__decorate([
|
|
1276
|
+
(0, common_1.ConfigProperty)({ volatile: true }),
|
|
1277
|
+
tslib_1.__metadata("design:type", ServerEnvironmentConfig)
|
|
1278
|
+
], ServerConfig.prototype, "Environment", void 0);
|
|
1279
|
+
tslib_1.__decorate([
|
|
1280
|
+
(0, common_1.ConfigProperty)({
|
|
1281
|
+
tags: {
|
|
1282
|
+
name: $localize `Server`,
|
|
1283
|
+
uiIcon: 'ionCloudOutline'
|
|
1284
|
+
},
|
|
1285
|
+
}),
|
|
1286
|
+
tslib_1.__metadata("design:type", ServerServiceConfig)
|
|
1287
|
+
], ServerConfig.prototype, "Server", void 0);
|
|
1288
|
+
tslib_1.__decorate([
|
|
1289
|
+
(0, common_1.ConfigProperty)({
|
|
1290
|
+
tags: {
|
|
1291
|
+
name: $localize `Database`,
|
|
1292
|
+
uiIcon: 'ionServerOutline'
|
|
1293
|
+
}
|
|
1294
|
+
}),
|
|
1295
|
+
tslib_1.__metadata("design:type", ServerDataBaseConfig)
|
|
1296
|
+
], ServerConfig.prototype, "Database", void 0);
|
|
1297
|
+
tslib_1.__decorate([
|
|
1298
|
+
(0, common_1.ConfigProperty)({
|
|
1299
|
+
tags: {
|
|
1300
|
+
name: $localize `Users`,
|
|
1301
|
+
uiIcon: 'ionPersonOutline'
|
|
1302
|
+
},
|
|
1303
|
+
}),
|
|
1304
|
+
tslib_1.__metadata("design:type", ServerUserConfig)
|
|
1305
|
+
], ServerConfig.prototype, "Users", void 0);
|
|
1306
|
+
tslib_1.__decorate([
|
|
1307
|
+
(0, common_1.ConfigProperty)({
|
|
1308
|
+
tags: {
|
|
1309
|
+
name: $localize `Indexing`,
|
|
1310
|
+
uiIcon: 'ionFileTrayFullOutline',
|
|
1311
|
+
uiJob: [
|
|
1312
|
+
{
|
|
1313
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs.Indexing],
|
|
1314
|
+
description: $localize `If you add a new folder to your gallery, the site indexes it automatically. If you would like to trigger indexing manually, click index button. (Note: search only works among the indexed directories.)`
|
|
1315
|
+
}, {
|
|
1316
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Gallery Reset']],
|
|
1317
|
+
hideProgress: true
|
|
1318
|
+
}
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1321
|
+
}),
|
|
1322
|
+
tslib_1.__metadata("design:type", ServerIndexingConfig)
|
|
1323
|
+
], ServerConfig.prototype, "Indexing", void 0);
|
|
1324
|
+
tslib_1.__decorate([
|
|
1325
|
+
(0, common_1.ConfigProperty)({
|
|
1326
|
+
tags: {
|
|
1327
|
+
name: $localize `Media`,
|
|
1328
|
+
uiIcon: 'ionImagesOutline'
|
|
1329
|
+
},
|
|
1330
|
+
}),
|
|
1331
|
+
tslib_1.__metadata("design:type", ServerMediaConfig)
|
|
1332
|
+
], ServerConfig.prototype, "Media", void 0);
|
|
1333
|
+
tslib_1.__decorate([
|
|
1334
|
+
(0, common_1.ConfigProperty)({
|
|
1335
|
+
tags: {
|
|
1336
|
+
name: $localize `Meta file`,
|
|
1337
|
+
uiIcon: 'ionDocumentOutline'
|
|
1338
|
+
},
|
|
1339
|
+
}),
|
|
1340
|
+
tslib_1.__metadata("design:type", ServerMetaFileConfig)
|
|
1341
|
+
], ServerConfig.prototype, "MetaFile", void 0);
|
|
1342
|
+
tslib_1.__decorate([
|
|
1343
|
+
(0, common_1.ConfigProperty)({
|
|
1344
|
+
tags: {
|
|
1345
|
+
name: $localize `Album cover`,
|
|
1346
|
+
uiIcon: 'ionImageOutline',
|
|
1347
|
+
githubIssue: 679,
|
|
1348
|
+
uiJob: [
|
|
1349
|
+
{
|
|
1350
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Album Cover Filling']],
|
|
1351
|
+
}, {
|
|
1352
|
+
job: JobDTO_1.DefaultsJobs[JobDTO_1.DefaultsJobs['Album Cover Reset']],
|
|
1353
|
+
hideProgress: true
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
description: $localize `Specify a search query and sorting that the app can use to pick the best photo for an album and folder cover. There is no way to manually pick folder and album cover in the app. You can tag some of your photos with 'cover' and set that as search query or rate them to 5 and set sorting to descending by rating.`
|
|
1358
|
+
}),
|
|
1359
|
+
tslib_1.__metadata("design:type", ServerAlbumCoverConfig)
|
|
1360
|
+
], ServerConfig.prototype, "AlbumCover", void 0);
|
|
1361
|
+
tslib_1.__decorate([
|
|
1362
|
+
(0, common_1.ConfigProperty)({
|
|
1363
|
+
tags: {
|
|
1364
|
+
name: $localize `Sharing`,
|
|
1365
|
+
uiIcon: 'ionShareSocialOutline'
|
|
1366
|
+
},
|
|
1367
|
+
}),
|
|
1368
|
+
tslib_1.__metadata("design:type", ServerSharingConfig)
|
|
1369
|
+
], ServerConfig.prototype, "Sharing", void 0);
|
|
1370
|
+
tslib_1.__decorate([
|
|
1371
|
+
(0, common_1.ConfigProperty)({
|
|
1372
|
+
tags: {
|
|
1373
|
+
name: $localize `Duplicates`,
|
|
1374
|
+
uiIcon: 'ionCopyOutline'
|
|
1375
|
+
}
|
|
1376
|
+
}),
|
|
1377
|
+
tslib_1.__metadata("design:type", ServerDuplicatesConfig)
|
|
1378
|
+
], ServerConfig.prototype, "Duplicates", void 0);
|
|
1379
|
+
tslib_1.__decorate([
|
|
1380
|
+
(0, common_1.ConfigProperty)({
|
|
1381
|
+
tags: {
|
|
1382
|
+
name: $localize `Messaging`,
|
|
1383
|
+
uiIcon: 'ionChatboxOutline',
|
|
1384
|
+
githubIssue: 683
|
|
1385
|
+
},
|
|
1386
|
+
description: $localize `The App can send messages (like photos on the same day a year ago. aka: "Top Pick"). Here you can configure the delivery method.`
|
|
1387
|
+
}),
|
|
1388
|
+
tslib_1.__metadata("design:type", MessagingConfig_1.MessagingConfig)
|
|
1389
|
+
], ServerConfig.prototype, "Messaging", void 0);
|
|
1390
|
+
tslib_1.__decorate([
|
|
1391
|
+
(0, common_1.ConfigProperty)({
|
|
1392
|
+
tags: {
|
|
1393
|
+
name: $localize `Extensions`,
|
|
1394
|
+
uiIcon: 'ionCloudOutline'
|
|
1395
|
+
},
|
|
1396
|
+
}),
|
|
1397
|
+
tslib_1.__metadata("design:type", ServerExtensionsConfig)
|
|
1398
|
+
], ServerConfig.prototype, "Extensions", void 0);
|
|
1399
|
+
tslib_1.__decorate([
|
|
1400
|
+
(0, common_1.ConfigProperty)({
|
|
1401
|
+
tags: {
|
|
1402
|
+
name: $localize `Jobs`,
|
|
1403
|
+
uiIcon: 'ionPlayOutline'
|
|
1404
|
+
}
|
|
1405
|
+
}),
|
|
1406
|
+
tslib_1.__metadata("design:type", ServerJobConfig)
|
|
1407
|
+
], ServerConfig.prototype, "Jobs", void 0);
|
|
1408
|
+
ServerConfig = tslib_1.__decorate([
|
|
1409
|
+
(0, common_1.SubConfigClass)({ softReadonly: true })
|
|
1410
|
+
], ServerConfig);
|
|
1411
|
+
exports.ServerConfig = ServerConfig;
|