pigallery2-extension-kit 3.0.1 → 3.1.0

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.
Files changed (49) hide show
  1. package/REPOSITORY.md +1 -1
  2. package/lib/backend/Logger.d.ts +1 -1
  3. package/lib/backend/ProjectPath.js +1 -1
  4. package/lib/backend/middlewares/VersionMWs.d.ts +4 -0
  5. package/lib/backend/model/database/AlbumManager.d.ts +1 -1
  6. package/lib/backend/model/database/CoverManager.d.ts +1 -1
  7. package/lib/backend/model/database/IndexingManager.d.ts +1 -0
  8. package/lib/backend/model/database/ProjectedCacheManager.d.ts +3 -0
  9. package/lib/backend/model/extension/ExtensionRepository.d.ts +1 -0
  10. package/lib/backend/model/jobs/JobManager.d.ts +1 -1
  11. package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +1 -0
  12. package/lib/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +1 -0
  13. package/lib/backend/model/jobs/jobs/AlbumResetJob.d.ts +1 -0
  14. package/lib/backend/model/jobs/jobs/FileJob.d.ts +1 -0
  15. package/lib/backend/model/jobs/jobs/GPXCompressionJob.d.ts +1 -0
  16. package/lib/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +1 -0
  17. package/lib/backend/model/jobs/jobs/GalleryResetJob.d.ts +1 -0
  18. package/lib/backend/model/jobs/jobs/IndexingJob.d.ts +1 -0
  19. package/lib/backend/model/jobs/jobs/Job.d.ts +1 -0
  20. package/lib/backend/model/jobs/jobs/JobProgress.d.ts +2 -1
  21. package/lib/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +1 -0
  22. package/lib/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +1 -0
  23. package/lib/backend/model/jobs/jobs/TopPickSendJob.d.ts +1 -0
  24. package/lib/backend/model/jobs/jobs/VideoConvertingJob.d.ts +1 -0
  25. package/lib/common/CustomHeaders.d.ts +1 -0
  26. package/lib/common/DataStructureVersion.d.ts +1 -1
  27. package/lib/common/QueryParams.d.ts +10 -1
  28. package/lib/common/config/private/Config.js +1 -0
  29. package/lib/common/config/private/PrivateConfigClass.d.ts +2 -0
  30. package/lib/common/config/private/PrivateConfigClass.js +7 -0
  31. package/lib/common/config/public/ClientConfig.d.ts +12 -5
  32. package/lib/common/config/public/ClientConfig.js +95 -27
  33. package/lib/common/entities/ContentWrapper.d.ts +38 -10
  34. package/lib/common/entities/ContentWrapper.js +171 -62
  35. package/lib/common/entities/MediaDTO.d.ts +1 -0
  36. package/lib/common/entities/MediaDTO.js +6 -1
  37. package/lib/frontend/app/model/query.service.d.ts +0 -1
  38. package/lib/frontend/app/model/version.service.d.ts +5 -1
  39. package/lib/frontend/app/ui/frame/frame.component.d.ts +3 -1
  40. package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +5 -7
  41. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +12 -10
  42. package/lib/frontend/app/ui/gallery/gallery.service.d.ts +13 -0
  43. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +1 -0
  44. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +13 -19
  45. package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +1 -2
  46. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +25 -4
  47. package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +1 -0
  48. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +31 -0
  49. package/package.json +1 -1
package/REPOSITORY.md CHANGED
@@ -8,5 +8,5 @@ In case of any issue, contact the extension developer.
8
8
  |:----------------:|:-------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------:|---|
9
9
  | Sample extension | [pigallery2-sample-extension](https://github.com/bpatrik/pigallery2-sample-extension) | [REAMDE.md](https://raw.githubusercontent.com/bpatrik/pigallery2-sample-extension/main/README.md) | [main.zip](https://github.com/bpatrik/pigallery2-sample-extension/archive/refs/heads/main.zip) | |
10
10
  | DigiKam Connector for Pigallery2 | [pigallery2-extension-digikam-connector](https://github.com/mblythe86/pigallery2-extension-digikam-connector) | [README.md](https://raw.githubusercontent.com/mblythe86/pigallery2-extension-digikam-connector/main/README.md) | [main.zip](https://github.com/mblythe86/pigallery2-extension-digikam-connector/archive/refs/heads/main.zip) | |
11
- | | | | | |
11
+ | Grid Rating Overlay | [pigallery2-grid-rating-extension](https://github.com/Berschi/pigallery2-grid-rating-extension) | [README.md](https://raw.githubusercontent.com/Berschi/pigallery2-grid-rating-extension/refs/heads/main/README.md) | [main.zip](https://github.com/Berschi/pigallery2-grid-rating-extension/archive/refs/heads/main.zip) | |
12
12
  | | | | | |
@@ -17,6 +17,6 @@ export declare class Logger {
17
17
  static info(...args: LoggerArgs[]): void;
18
18
  static warn(...args: LoggerArgs[]): void;
19
19
  static error(...args: LoggerArgs[]): void;
20
- private static log;
21
20
  static logLevelForError(e: ErrorCodes): LoggerFunction;
21
+ private static log;
22
22
  }
@@ -26,7 +26,7 @@ class ProjectPathClass {
26
26
  this.FacesFolder = path.join(this.TempFolder, 'f');
27
27
  this.DBFolder = this.getAbsolutePath(this.cfg.Database.dbFolder);
28
28
  this.ExtensionFolder = this.getAbsolutePath(this.cfg.Extensions.folder);
29
- // create thumbnail folder if not exist
29
+ // create the thumbnail folder if it does not exist
30
30
  if (!fs.existsSync(this.TempFolder)) {
31
31
  fs.mkdirSync(this.TempFolder);
32
32
  }
@@ -1,5 +1,9 @@
1
1
  import { NextFunction, Request, Response } from 'express';
2
2
  export declare class VersionMWs {
3
+ /**
4
+ * This version data is mainly used to trigger page reload on the client side
5
+ */
6
+ static injectAppVersion(req: Request, res: Response, next: NextFunction): Promise<void>;
3
7
  /**
4
8
  * This version data is mainly used on the client side to invalidate the cache
5
9
  */
@@ -6,8 +6,8 @@ export declare class AlbumManager extends ProjectionAwareManager<AlbumBaseEntity
6
6
  addIfNotExistSavedSearch(name: string, searchQuery: SearchQueryDTO, lockedAlbum: boolean): Promise<void>;
7
7
  addSavedSearch(name: string, searchQuery: SearchQueryDTO, lockedAlbum?: boolean): Promise<void>;
8
8
  deleteAlbum(id: number): Promise<void>;
9
+ deleteAll(): Promise<void>;
9
10
  protected loadEntities(session: SessionContext): Promise<AlbumBaseEntity[]>;
10
11
  protected invalidateDBCache(): Promise<void>;
11
- deleteAll(): Promise<void>;
12
12
  private updateAlbums;
13
13
  }
@@ -10,7 +10,7 @@ export declare class CoverManager {
10
10
  getCoverForAlbum(session: SessionContext, album: {
11
11
  searchQuery: SearchQueryDTO;
12
12
  }): Promise<CoverPhotoDTOWithID>;
13
- getPartialDirsWithoutCovers(): Promise<{
13
+ getPartialDirsWithoutCovers(projectionKeys?: string[]): Promise<{
14
14
  id: number;
15
15
  name: string;
16
16
  path: string;
@@ -29,6 +29,7 @@ export declare class IndexingManager {
29
29
  name: string;
30
30
  mediaId: number;
31
31
  }[]): Promise<void>;
32
+ private checkSavingReady;
32
33
  private saveChunk;
33
34
  private insertChunk;
34
35
  }
@@ -7,6 +7,9 @@ import { SessionContext } from '../SessionContext';
7
7
  export declare class ProjectedCacheManager implements IObjectManager {
8
8
  init(): Promise<void>;
9
9
  onNewDataVersion(changedDir?: ParentDirectoryDTO): Promise<void>;
10
+ /**
11
+ * Includes all possible projection keys, including the default one and sharing keys too.
12
+ */
10
13
  getAllProjections(): Promise<string[]>;
11
14
  cleanupNonExistingProjections(): Promise<void>;
12
15
  getCacheForDirectory(connection: Connection, session: SessionContext, dir: {
@@ -5,5 +5,6 @@ export declare class ExtensionRepository {
5
5
  private UPDATE_FREQUENCY_MS;
6
6
  getExtensionList(): Promise<ExtensionListItem[]>;
7
7
  private getUrlFromMDLink;
8
+ repoMD(text: string): ExtensionListItem[];
8
9
  fetchList(): Promise<ExtensionListItem[]>;
9
10
  }
@@ -11,9 +11,9 @@ export declare class JobManager implements IJobListener, IObjectManager {
11
11
  timer: NodeJS.Timeout;
12
12
  }[];
13
13
  protected progressManager: JobProgressManager;
14
- init(): Promise<void>;
15
14
  protected get JobRunning(): boolean;
16
15
  protected get JobNoParallelRunning(): boolean;
16
+ init(): Promise<void>;
17
17
  getProgresses(): {
18
18
  [id: string]: OnTimerJobProgressDTO;
19
19
  };
@@ -10,6 +10,7 @@ export declare class AlbumCoverFillingJob extends Job {
10
10
  }[];
11
11
  status: 'Persons' | 'Albums' | 'Directory';
12
12
  private availableSessions;
13
+ get LOG_TAG(): string;
13
14
  get Supported(): boolean;
14
15
  protected init(): Promise<void>;
15
16
  protected step(): Promise<boolean>;
@@ -4,6 +4,7 @@ export declare class AlbumCoverRestJob extends Job {
4
4
  readonly Name: string;
5
5
  readonly ConfigTemplate: DynamicConfig[];
6
6
  protected readonly IsInstant = true;
7
+ get LOG_TAG(): string;
7
8
  get Supported(): boolean;
8
9
  protected init(): Promise<void>;
9
10
  protected step(): Promise<boolean>;
@@ -4,6 +4,7 @@ export declare class AlbumRestJob extends Job {
4
4
  readonly Name: string;
5
5
  readonly ConfigTemplate: DynamicConfig[];
6
6
  protected readonly IsInstant = true;
7
+ get LOG_TAG(): string;
7
8
  get Supported(): boolean;
8
9
  protected init(): Promise<void>;
9
10
  protected step(): Promise<boolean>;
@@ -20,6 +20,7 @@ export declare abstract class FileJob<S extends {
20
20
  initiated: boolean;
21
21
  };
22
22
  protected constructor(scanFilter: DirectoryScanSettings);
23
+ get LOG_TAG(): string;
23
24
  protected init(): Promise<void>;
24
25
  protected filterMediaFiles(files: FileDTO[]): Promise<FileDTO[]>;
25
26
  protected filterMetaFiles(files: FileDTO[]): Promise<FileDTO[]>;
@@ -3,6 +3,7 @@ import { FileDTO } from '../../../../common/entities/FileDTO';
3
3
  export declare class GPXCompressionJob extends FileJob {
4
4
  readonly Name: string;
5
5
  constructor();
6
+ get LOG_TAG(): string;
6
7
  protected filterMetaFiles(files: FileDTO[]): Promise<FileDTO[]>;
7
8
  get Supported(): boolean;
8
9
  protected shouldProcess(fPath: string): Promise<boolean>;
@@ -5,4 +5,5 @@ import { TempFolderCleaningJob } from './TempFolderCleaningJob';
5
5
  export declare class GPXCompressionResetJob extends TempFolderCleaningJob {
6
6
  readonly Name: string;
7
7
  protected isValidFile(filePath: string): Promise<boolean>;
8
+ get LOG_TAG(): string;
8
9
  }
@@ -4,6 +4,7 @@ export declare class GalleryRestJob extends Job {
4
4
  readonly Name: string;
5
5
  readonly ConfigTemplate: DynamicConfig[];
6
6
  protected readonly IsInstant = true;
7
+ get LOG_TAG(): string;
7
8
  get Supported(): boolean;
8
9
  protected init(): Promise<void>;
9
10
  protected step(): Promise<boolean>;
@@ -8,6 +8,7 @@ export declare class IndexingJob<S extends {
8
8
  readonly Name: string;
9
9
  directoriesToIndex: string[];
10
10
  readonly ConfigTemplate: DynamicConfig[];
11
+ get LOG_TAG(): string;
11
12
  get Supported(): boolean;
12
13
  protected init(): Promise<void>;
13
14
  protected step(): Promise<boolean>;
@@ -12,6 +12,7 @@ export declare abstract class Job<T extends Record<string, unknown> = Record<str
12
12
  private jobListener;
13
13
  private soloRun;
14
14
  set JobListener(value: IJobListener);
15
+ get LOG_TAG(): string;
15
16
  abstract get Supported(): boolean;
16
17
  abstract get Name(): string;
17
18
  abstract get ConfigTemplate(): DynamicConfig[];
@@ -2,12 +2,13 @@ import { JobProgressDTO, JobProgressLogDTO, JobProgressStates } from '../../../.
2
2
  export declare class JobProgress {
3
3
  readonly jobName: string;
4
4
  readonly HashName: string;
5
+ readonly LOG_TAG: string;
5
6
  private steps;
6
7
  private state;
7
8
  private time;
8
9
  private logCounter;
9
10
  private logs;
10
- constructor(jobName: string, HashName: string);
11
+ constructor(jobName: string, HashName: string, LOG_TAG: string);
11
12
  set OnChange(val: (progress: JobProgress) => void);
12
13
  get Skipped(): number;
13
14
  set Skipped(value: number);
@@ -7,6 +7,7 @@ export declare class PhotoConvertingJob extends FileJob<{
7
7
  }> {
8
8
  readonly Name: string;
9
9
  constructor();
10
+ get LOG_TAG(): string;
10
11
  get Supported(): boolean;
11
12
  start(config: {
12
13
  sizes?: number[];
@@ -7,6 +7,7 @@ export declare class TempFolderCleaningJob extends Job {
7
7
  directoryQueue: string[];
8
8
  private tempRootCleaned;
9
9
  protected init(): Promise<void>;
10
+ get LOG_TAG(): string;
10
11
  protected isValidFile(filePath: string): Promise<boolean>;
11
12
  protected isValidDirectory(filePath: string): Promise<boolean>;
12
13
  protected readDir(dirPath: string): Promise<string[]>;
@@ -14,6 +14,7 @@ export declare class TopPickSendJob extends Job<{
14
14
  private status;
15
15
  private mediaList;
16
16
  constructor();
17
+ get LOG_TAG(): string;
17
18
  protected init(): Promise<void>;
18
19
  protected step(): Promise<boolean>;
19
20
  private stepListing;
@@ -2,6 +2,7 @@ import { FileJob } from './FileJob';
2
2
  export declare class VideoConvertingJob extends FileJob {
3
3
  readonly Name: string;
4
4
  constructor();
5
+ get LOG_TAG(): string;
5
6
  get Supported(): boolean;
6
7
  protected shouldProcess(mPath: string): Promise<boolean>;
7
8
  protected processFile(mPath: string): Promise<void>;
@@ -1,3 +1,4 @@
1
1
  export declare class CustomHeaders {
2
2
  static dataVersion: string;
3
+ static appVersion: string;
3
4
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This version indicates that the sql/entities/*Entity.ts files got changed and the db needs to be recreated
3
3
  */
4
- export declare const DataStructureVersion = 39;
4
+ export declare const DataStructureVersion = 40;
@@ -14,11 +14,20 @@ export declare const QueryParams: {
14
14
  query: string;
15
15
  };
16
16
  photo: string;
17
- playback: string;
18
17
  sharingKey_query: string;
19
18
  sharingKey_params: string;
20
19
  directory: string;
21
20
  knownLastModified: string;
22
21
  knownLastScanned: string;
22
+ fullscreen: string;
23
+ lightbox: {
24
+ playback: string;
25
+ captionAlwaysOn: string;
26
+ facesAlwaysOn: string;
27
+ loopVideos: string;
28
+ loopSlideshow: string;
29
+ slideshowSpeed: string;
30
+ };
31
+ autoPollInterval: string;
23
32
  };
24
33
  };
@@ -11,6 +11,7 @@ try {
11
11
  pre.loadSync({ preventSaving: true });
12
12
  }
13
13
  catch (e) { /* empty */
14
+ console.error(e);
14
15
  }
15
16
  // load extension paths before full config load
16
17
  ProjectPath_1.ProjectPath.init(pre);
@@ -1,4 +1,6 @@
1
1
  import { ServerConfig } from './PrivateConfig';
2
+ import { ClientConfig } from '../public/ClientConfig';
2
3
  export declare class PrivateConfigClass extends ServerConfig {
3
4
  constructor();
5
+ getClientConfig(): ClientConfig;
4
6
  }
@@ -35,6 +35,13 @@ let PrivateConfigClass = class PrivateConfigClass extends PrivateConfig_1.Server
35
35
  this.Environment.upTime = upTime;
36
36
  this.Environment.isDocker = !!process.env.PI_DOCKER;
37
37
  }
38
+ getClientConfig() {
39
+ return this.toJSON({
40
+ attachVolatile: true,
41
+ skipTags: { secret: true },
42
+ keepTags: { client: true }
43
+ });
44
+ }
38
45
  };
39
46
  exports.PrivateConfigClass = PrivateConfigClass;
40
47
  exports.PrivateConfigClass = PrivateConfigClass = tslib_1.__decorate([
@@ -184,13 +184,17 @@ export declare class NavBarConfig {
184
184
  SortingGrouping: NavBarSortingAndGroupingConfig;
185
185
  }
186
186
  export declare class ClientLightboxTitleConfig {
187
- topLeftTitle: LightBoxTitleTexts;
188
- topLeftSubtitle: LightBoxTitleTexts;
189
- bottomLeftTitle: LightBoxTitleTexts;
190
- bottomLeftSubtitle: LightBoxTitleTexts;
187
+ topLeftTitle: LightBoxTitleTexts[];
188
+ topLeftSubtitle: LightBoxTitleTexts[];
189
+ bottomLeftTitle: LightBoxTitleTexts[];
190
+ bottomLeftSubtitle: LightBoxTitleTexts[];
191
+ }
192
+ export declare class AutoUpdateConfig {
193
+ enable: boolean;
194
+ interval: number;
191
195
  }
192
196
  export declare class ClientLightboxConfig {
193
- defaultSlideshowSpeed: number;
197
+ slideshowSpeed: number;
194
198
  captionAlwaysOn: boolean;
195
199
  facesAlwaysOn: boolean;
196
200
  loopVideos: boolean;
@@ -222,6 +226,7 @@ export declare class ClientGalleryConfig {
222
226
  Themes: ThemesConfig;
223
227
  InlineBlogStartsOpen: boolean;
224
228
  TopBlogStartsOpen: boolean;
229
+ AutoUpdate: AutoUpdateConfig;
225
230
  }
226
231
  export declare class ClientVideoConfig {
227
232
  enabled: boolean;
@@ -233,6 +238,7 @@ export declare class ClientPhotoConfig {
233
238
  personThumbnailSize: number;
234
239
  thumbnailSizes: number[];
235
240
  concurrentThumbnailGenerations: number;
241
+ concurrentThumbnailGenerationsLimit: number;
236
242
  supportedFormats: string[];
237
243
  /**
238
244
  * Generates a map for bitwise operation from icon and normal thumbnails
@@ -276,6 +282,7 @@ export declare class ClientServiceConfig {
276
282
  languages: string[] | undefined;
277
283
  customHTMLHead: string;
278
284
  svgIcon: SVGIconConfig;
285
+ reloadClientOnServerUpdate: boolean;
279
286
  }
280
287
  export declare class ClientUserConfig {
281
288
  authenticationRequired: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientConfig = exports.ClientExtensionsConfig = exports.ClientUserConfig = exports.ClientServiceConfig = exports.ClientFacesConfig = exports.ClientMetaFileConfig = exports.ClientMediaConfig = exports.ClientGPXCompressingConfig = exports.ClientPhotoConfig = exports.ClientVideoConfig = exports.ClientGalleryConfig = exports.ThemesConfig = exports.ThemeConfig = exports.ClientLightboxConfig = exports.ClientLightboxTitleConfig = exports.NavBarConfig = exports.NavBarSortingAndGroupingConfig = exports.ClientGroupingConfig = exports.ClientSortingConfig = exports.NavigationLinkConfig = exports.NavigationLinkTypes = exports.ClientMapConfig = exports.MapPathGroupConfig = exports.MapPathGroupThemeConfig = exports.PathThemeConfig = exports.SVGIconConfig = exports.MapLayers = exports.ClientRandomPhotoConfig = exports.ClientSharingConfig = exports.ClientAlbumConfig = exports.ClientSearchConfig = exports.AutoCompleteConfig = exports.AutoCompleteItemsPerCategoryConfig = exports.LightBoxTitleTexts = exports.ScrollUpModes = exports.ThemeModes = exports.ConfigPriority = exports.MapProviders = void 0;
3
+ exports.ClientConfig = exports.ClientExtensionsConfig = exports.ClientUserConfig = exports.ClientServiceConfig = exports.ClientFacesConfig = exports.ClientMetaFileConfig = exports.ClientMediaConfig = exports.ClientGPXCompressingConfig = exports.ClientPhotoConfig = exports.ClientVideoConfig = exports.ClientGalleryConfig = exports.ThemesConfig = exports.ThemeConfig = exports.ClientLightboxConfig = exports.AutoUpdateConfig = exports.ClientLightboxTitleConfig = exports.NavBarConfig = exports.NavBarSortingAndGroupingConfig = exports.ClientGroupingConfig = exports.ClientSortingConfig = exports.NavigationLinkConfig = exports.NavigationLinkTypes = exports.ClientMapConfig = exports.MapPathGroupConfig = exports.MapPathGroupThemeConfig = exports.PathThemeConfig = exports.SVGIconConfig = exports.MapLayers = exports.ClientRandomPhotoConfig = exports.ClientSharingConfig = exports.ClientAlbumConfig = exports.ClientSearchConfig = exports.AutoCompleteConfig = exports.AutoCompleteItemsPerCategoryConfig = exports.LightBoxTitleTexts = exports.ScrollUpModes = exports.ThemeModes = exports.ConfigPriority = exports.MapProviders = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable @typescript-eslint/no-inferrable-types */
6
6
  require("reflect-metadata");
@@ -444,10 +444,10 @@ exports.SVGIconConfig = SVGIconConfig = tslib_1.__decorate([
444
444
  tslib_1.__metadata("design:paramtypes", [String, String])
445
445
  ], SVGIconConfig);
446
446
  let PathThemeConfig = class PathThemeConfig {
447
- constructor(color = '', dashArray = '', svgIcon = new SVGIconConfig()) {
447
+ constructor(color = '', dashArray = '', svgIcon = new SVGIconConfig('', '')) {
448
448
  this.color = '';
449
449
  this.dashArray = '';
450
- this.svgIcon = new SVGIconConfig();
450
+ this.svgIcon = new SVGIconConfig('', '');
451
451
  this.color = color;
452
452
  this.dashArray = dashArray;
453
453
  this.svgIcon = svgIcon;
@@ -665,7 +665,7 @@ tslib_1.__decorate([
665
665
  name: $localize `Bend long path trigger`,
666
666
  priority: ConfigPriority.underTheHood
667
667
  },
668
- description: $localize `Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given.`,
668
+ description: $localize `Map will bend the path if two points are this far apart on latitude axes. This intended to bend flight if only the end and the start points are given.`,
669
669
  }),
670
670
  tslib_1.__metadata("design:type", Number)
671
671
  ], ClientMapConfig.prototype, "bendLongPathsTrigger", void 0);
@@ -978,59 +978,92 @@ exports.NavBarConfig = NavBarConfig = tslib_1.__decorate([
978
978
  ], NavBarConfig);
979
979
  let ClientLightboxTitleConfig = class ClientLightboxTitleConfig {
980
980
  constructor() {
981
- this.topLeftTitle = LightBoxTitleTexts.title;
982
- this.topLeftSubtitle = LightBoxTitleTexts.caption;
983
- this.bottomLeftTitle = LightBoxTitleTexts.location;
984
- this.bottomLeftSubtitle = LightBoxTitleTexts.persons;
981
+ this.topLeftTitle = [LightBoxTitleTexts.title];
982
+ this.topLeftSubtitle = [LightBoxTitleTexts.caption];
983
+ this.bottomLeftTitle = [LightBoxTitleTexts.date, LightBoxTitleTexts.location];
984
+ this.bottomLeftSubtitle = [LightBoxTitleTexts.persons];
985
985
  }
986
986
  };
987
987
  exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig;
988
988
  tslib_1.__decorate([
989
989
  (0, common_1.ConfigProperty)({
990
- type: LightBoxTitleTexts,
990
+ arrayType: LightBoxTitleTexts,
991
991
  tags: {
992
- name: $localize `Top left title`,
992
+ name: $localize `Top left titles`,
993
993
  priority: ConfigPriority.advanced
994
994
  },
995
995
  }),
996
- tslib_1.__metadata("design:type", Number)
996
+ tslib_1.__metadata("design:type", Array)
997
997
  ], ClientLightboxTitleConfig.prototype, "topLeftTitle", void 0);
998
998
  tslib_1.__decorate([
999
999
  (0, common_1.ConfigProperty)({
1000
- type: LightBoxTitleTexts,
1000
+ arrayType: LightBoxTitleTexts,
1001
1001
  tags: {
1002
- name: $localize `Top left subtitle`,
1002
+ name: $localize `Top left subtitles`,
1003
1003
  priority: ConfigPriority.advanced
1004
1004
  },
1005
1005
  }),
1006
- tslib_1.__metadata("design:type", Number)
1006
+ tslib_1.__metadata("design:type", Array)
1007
1007
  ], ClientLightboxTitleConfig.prototype, "topLeftSubtitle", void 0);
1008
1008
  tslib_1.__decorate([
1009
1009
  (0, common_1.ConfigProperty)({
1010
- type: LightBoxTitleTexts,
1010
+ arrayType: LightBoxTitleTexts,
1011
1011
  tags: {
1012
- name: $localize `Bottom left title`,
1012
+ name: $localize `Bottom left titles`,
1013
1013
  priority: ConfigPriority.advanced
1014
1014
  },
1015
1015
  }),
1016
- tslib_1.__metadata("design:type", Number)
1016
+ tslib_1.__metadata("design:type", Array)
1017
1017
  ], ClientLightboxTitleConfig.prototype, "bottomLeftTitle", void 0);
1018
1018
  tslib_1.__decorate([
1019
1019
  (0, common_1.ConfigProperty)({
1020
- type: LightBoxTitleTexts,
1020
+ arrayType: LightBoxTitleTexts,
1021
1021
  tags: {
1022
- name: $localize `Bottom right subtitle`,
1022
+ name: $localize `Bottom left subtitles`,
1023
1023
  priority: ConfigPriority.advanced
1024
1024
  },
1025
1025
  }),
1026
- tslib_1.__metadata("design:type", Number)
1026
+ tslib_1.__metadata("design:type", Array)
1027
1027
  ], ClientLightboxTitleConfig.prototype, "bottomLeftSubtitle", void 0);
1028
1028
  exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig = tslib_1.__decorate([
1029
1029
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1030
1030
  ], ClientLightboxTitleConfig);
1031
+ let AutoUpdateConfig = class AutoUpdateConfig {
1032
+ constructor() {
1033
+ this.enable = false;
1034
+ this.interval = 60;
1035
+ }
1036
+ };
1037
+ exports.AutoUpdateConfig = AutoUpdateConfig;
1038
+ tslib_1.__decorate([
1039
+ (0, common_1.ConfigProperty)({
1040
+ tags: {
1041
+ name: $localize `Enable auto update`,
1042
+ priority: ConfigPriority.advanced,
1043
+ experimental: true,
1044
+ },
1045
+ description: $localize `Enable auto polling for new photos and videos in the gallery.`
1046
+ }),
1047
+ tslib_1.__metadata("design:type", Boolean)
1048
+ ], AutoUpdateConfig.prototype, "enable", void 0);
1049
+ tslib_1.__decorate([
1050
+ (0, common_1.ConfigProperty)({
1051
+ tags: {
1052
+ name: $localize `Interval`,
1053
+ priority: ConfigPriority.advanced,
1054
+ githubIssue: 1062,
1055
+ unit: 's'
1056
+ },
1057
+ description: $localize `Frequency of the auto polling in seconds.`
1058
+ }),
1059
+ tslib_1.__metadata("design:type", Number)
1060
+ ], AutoUpdateConfig.prototype, "interval", void 0);
1061
+ exports.AutoUpdateConfig = AutoUpdateConfig = tslib_1.__decorate([
1062
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1063
+ ], AutoUpdateConfig);
1031
1064
  let ClientLightboxConfig = class ClientLightboxConfig {
1032
1065
  constructor() {
1033
- this.defaultSlideshowSpeed = 5;
1066
+ this.slideshowSpeed = 5;
1034
1067
  this.captionAlwaysOn = false;
1035
1068
  this.facesAlwaysOn = false;
1036
1069
  this.loopVideos = false;
@@ -1052,7 +1085,7 @@ tslib_1.__decorate([
1052
1085
  description: $localize `Default time interval for displaying a photo in the slide show.`
1053
1086
  }),
1054
1087
  tslib_1.__metadata("design:type", Number)
1055
- ], ClientLightboxConfig.prototype, "defaultSlideshowSpeed", void 0);
1088
+ ], ClientLightboxConfig.prototype, "slideshowSpeed", void 0);
1056
1089
  tslib_1.__decorate([
1057
1090
  (0, common_1.ConfigProperty)({
1058
1091
  tags: {
@@ -1099,7 +1132,7 @@ tslib_1.__decorate([
1099
1132
  name: $localize `Load full resolution image on zoom.`,
1100
1133
  priority: ConfigPriority.advanced
1101
1134
  },
1102
- description: $localize `Enables loading the full resolution image on zoom in the ligthbox (preview).`,
1135
+ description: $localize `Enables loading the full resolution image on zoom in the lightbox (preview).`,
1103
1136
  }),
1104
1137
  tslib_1.__metadata("design:type", Boolean)
1105
1138
  ], ClientLightboxConfig.prototype, "loadFullImageOnZoom", void 0);
@@ -1237,6 +1270,7 @@ let ClientGalleryConfig = class ClientGalleryConfig {
1237
1270
  this.Themes = new ThemesConfig();
1238
1271
  this.InlineBlogStartsOpen = false;
1239
1272
  this.TopBlogStartsOpen = false;
1273
+ this.AutoUpdate = new AutoUpdateConfig();
1240
1274
  }
1241
1275
  };
1242
1276
  exports.ClientGalleryConfig = ClientGalleryConfig;
@@ -1279,7 +1313,7 @@ tslib_1.__decorate([
1279
1313
  description: $localize `If enabled, timestamp offsets are ignored, meaning that the local times of pictures are used for searching, sorting and grouping. If disabled, global time is used and pictures with no timestamp are assumed to be in UTC (offset +00:00).`
1280
1314
  })
1281
1315
  //DEVELOPER NOTE: The Database model stores the timestamp (creationDate) as milliseconds since 1970-01-01 UTC (global time). And stores and offset (creationDateOffset) as minutes.
1282
- //Ignoring timestamp for the user is the opposite for the database. If the user wants to ignore the offset, we have to add the offset to the creationDate to give the user the right experience.
1316
+ //Ignoring the timestamp for the user is the opposite for the database. If the user wants to ignore the offset, we have to add the offset to the creationDate to give the user the right experience.
1283
1317
  ,
1284
1318
  tslib_1.__metadata("design:type", Boolean)
1285
1319
  ], ClientGalleryConfig.prototype, "ignoreTimestampOffset", void 0);
@@ -1357,6 +1391,16 @@ tslib_1.__decorate([
1357
1391
  }),
1358
1392
  tslib_1.__metadata("design:type", Boolean)
1359
1393
  ], ClientGalleryConfig.prototype, "TopBlogStartsOpen", void 0);
1394
+ tslib_1.__decorate([
1395
+ (0, common_1.ConfigProperty)({
1396
+ tags: {
1397
+ name: $localize `Auto update`,
1398
+ priority: ConfigPriority.advanced,
1399
+ },
1400
+ description: $localize `makes the gallery poll the backend for new photos in the given directory or search`
1401
+ }),
1402
+ tslib_1.__metadata("design:type", AutoUpdateConfig)
1403
+ ], ClientGalleryConfig.prototype, "AutoUpdate", void 0);
1360
1404
  exports.ClientGalleryConfig = ClientGalleryConfig = tslib_1.__decorate([
1361
1405
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1362
1406
  ], ClientGalleryConfig);
@@ -1364,8 +1408,8 @@ let ClientVideoConfig = class ClientVideoConfig {
1364
1408
  constructor() {
1365
1409
  this.enabled = true;
1366
1410
  this.supportedFormatsWithTranscoding = ['avi', 'mkv', 'mov', 'wmv', 'flv', 'mts', 'm2ts', 'mpg', '3gp', 'm4v', 'mpeg', 'vob', 'divx', 'xvid', 'ts'];
1367
- // Browser supported video formats
1368
- // Read more: https://www.w3schools.com/html/html5_video.asp
1411
+ // Browser-supported video formats
1412
+ // Read more: https://www.w3schools.com/html/html5_video.asp
1369
1413
  this.supportedFormats = ['mp4', 'webm', 'ogv', 'ogg'];
1370
1414
  }
1371
1415
  };
@@ -1415,6 +1459,7 @@ let ClientPhotoConfig = class ClientPhotoConfig {
1415
1459
  this.personThumbnailSize = 200;
1416
1460
  this.thumbnailSizes = [320, 540, 1080, 2160];
1417
1461
  this.concurrentThumbnailGenerations = 1;
1462
+ this.concurrentThumbnailGenerationsLimit = 0;
1418
1463
  this.supportedFormats = ['gif', 'jpeg', 'jpg', 'jpe', 'png', 'webp', 'svg', 'avif', 'heic', 'dng', 'arw', 'tiff'];
1419
1464
  }
1420
1465
  /**
@@ -1472,10 +1517,21 @@ tslib_1.__decorate([
1472
1517
  tslib_1.__decorate([
1473
1518
  (0, common_1.ConfigProperty)({
1474
1519
  volatile: true,
1475
- description: 'Updated to match he number of CPUs. This manny thumbnail will be concurrently generated.',
1520
+ description: 'Updated to match the number of CPUs. This manny thumbnail will be concurrently generated.',
1476
1521
  }),
1477
1522
  tslib_1.__metadata("design:type", Number)
1478
1523
  ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerations", void 0);
1524
+ tslib_1.__decorate([
1525
+ (0, common_1.ConfigProperty)({
1526
+ tags: {
1527
+ name: $localize `Concurrent photo generation limit`,
1528
+ priority: ConfigPriority.underTheHood,
1529
+ uiResetNeeded: { server: true }
1530
+ },
1531
+ description: 'By default the app uses the number of cpus -1 concurrent threads to generate thumbnails. Set this number higher than 0 to limit the number of concurrent threads.',
1532
+ }),
1533
+ tslib_1.__metadata("design:type", Number)
1534
+ ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerationsLimit", void 0);
1479
1535
  tslib_1.__decorate([
1480
1536
  (0, common_1.ConfigProperty)({
1481
1537
  arrayType: 'string',
@@ -1670,6 +1726,7 @@ let ClientServiceConfig = class ClientServiceConfig {
1670
1726
  this.apiPath = '/pgapi';
1671
1727
  this.customHTMLHead = '';
1672
1728
  this.svgIcon = new SVGIconConfig(`0 0 512 512`, '<path d="m185.92 0.042372c-3.1045 0.19567-6.2676 1.0899-9.1546 3.163-16.085-8.0588-25.565 1.6894-23.504 14.76-5.3047 4.0078-10.768 7.8463-6.3153 20.688-4.8283 4.5113-5.2702 11.17-1.2227 20.894-4.5731 7.1343-3.0927 13.944 1.4676 20.445-5.0506 10.26 3.7514 20.507 6.2389 23.943-0.99909 6.6761-0.49742 13.458 11.016 21.392-1.2207 10.005 5.7492 14.415 12.419 19.045 12.567 8.1824 17.213 7.2406 27.088 10.328l-0.13366-1.1862c-15.833 3e-3 -31.017 6.2997-42.211 17.506l-24.715 24.736c-11.194 11.206-26.378 17.503-42.211 17.506h-34.984c-32.972 3.6e-4 -59.702 26.751-59.701 59.749v179.24c3.6312e-4 32.997 26.729 59.746 59.701 59.747h358.21c32.972-3.6e-4 59.7-26.75 59.701-59.747v-179.24c-0.0162-23.02-13.245-43.983-34.008-53.889 3.0728-1.7781 5.0617-4.3071 6.7327-7.0379 4.1124-1.032 17.438-3.2179 20.159-14.327 7.7661-2.0112 13.273-6.2767 14.255-14.719 9.3465-4.8456 13.285-10.23 12.484-16.792 11.694-7.0704 9.9759-13.526 8.4511-19.912 9.9742-8.687 8.874-22.288-8.6236-26.461-3.1292-12.25-18.501-15.32-20.733-16.133-1.3931-4.0275-3.7026-7.9496-14.353-10.399-4.4451-8.3291-12.211-9.9464-20.904-9.9225-6.4476-10.379-14.548-6.8393-22.216-7.2124-9.6958-7.4917-13.951-3.6525-20.032-3.5572-11.02-6.8739-16.687-2.7782-24.497 0.86675l-6.6602-2.5355c-21.868 3.9146-38.57 22.031-45.765 31.84 0.78895-12.143-0.36806-36.764-14.606-53.831l-6.7327-2.3414c-3.6422-7.8167-5.3526-14.6-18.209-16.423-4.7287-3.9225-5.388-9.6636-17.627-10.162-3.9701-2.9861-7.0841-7.4205-11.972-9.091-2.5588-0.82206-5.6927-0.97346-9.6817 0.32356-6.6078-5.7069-13.63-9.3648-22.385-5.8437-9.7319-4.9749-14.082-3.5883-17.674-1.2668-1.3952-0.50821-7.2885-3.6439-14.018-4.1239-1.0094-0.071996-2.0376-0.084841-3.0724-0.019609zm1.017 13.578c10.104 0.93027 18.591 7.2129 24.705 11.86 3.989-1.297 1.8817-5.4748-0.67601-9.9264 7.4731 3.9321 13.922 8.2611 19.542 13.058 4.4921-1.7738-6e-3 -6.9333-1.6283-10.934 11.32 6.6532 15.299 11.732 19.277 16.811 4.96-2.1534 2.5609-6.4373 1.1326-10.368 7.9224 6.6257 11.087 12.731 14.482 18.808 2.4625-1.6331 5.6853-2.3301 4.5577-8.9008 5.1605 6.0597 8.5191 12.233 10.344 18.398 4.8979-1.076 4.6167-5.1376 5.7471-8.2459 4.8158 7.9142 7.0028 15.201 10.195 22.743 1.3502-0.38818 3.143-2.596 5.5002-6.3575 10.495 21.313 19.172 68.475-19.542 71.864-19.845-33.079-47.35-62.019-80.099-88.028 39.018 41.712 59.701 71.578 68.828 93.932-5.6123 8.2892-13.186 12.888-21.423 15.182h-31.496c-9.0855-1.8937-17.047-4.8048-21.968-6.9301 3.5034-0.26396 6.761-1.0578 8.553-3.265-2.8932-4.1339-16.942-6.6095-24.423-15.054 3.8384 0.62815 5.771 0.45179 8.3395-1.4727-7.7461-5.9015-16.277-11.759-20.149-18.339 3.0088 1.096 5.5764 2.7998 10.448 1.4943-6.3427-7.0404-13.489-13.382-17.696-22.065 4.1118 1.3877 8.4445 3.0751 10.271 1.9806-5.5926-6.9871-9.844-14.035-12.948-21.216 5.3821 2.7304 8.0206 3.0315 9.7326 2.5551-3.457-7.4192-8.6517-14.592-9.4172-22.461 3.6436 2.9772 7.3478 4.8776 10.904 3.8631-0.36036-4.7513-7.3377-10.044-8.4022-21.322 4.3234 2.0148 8.7693 4.2946 10.093 3.6768 0.9645-8.9987-0.93024-14.97-2.5963-20.967 9.547 3.3675 23.877 8.6978 23.48 7.6733zm202.89 68.954c-1.1657 3.2054-4.0535 6.0044-0.89552 10.015 5.3574-3.5486 11.898-6.1175 19.744-7.4399-5.0841 4.3081-3.1624 6.8795-2.228 9.7499 6.5043-2.4708 12.815-5.0123 23.175-5.0887-3.6187 2.0919-8.2066 3.8292-5.7902 8.6694 6.3098-1.3316 12.62-2.6636 25.565-0.47848-3.8128 2.0212-10.67 3.0443-8.2709 7.3281 7.289-0.095 15.142 0.67658 23.357 2.5689-4.9157 1.7295-9.1161 3.6077-6.8934 7.1673 7.6683 0.37321 18.204 1.0216 26.541 6.8085l-7.9768 3.8043c-0.96209 0.52956 13.473 5.5674 22.914 9.2263-5.2605 3.5839-10.415 6.8757-15.456 14.39 0.61731 1.3249 5.4871 2.4391 10.093 3.6768-8.059 7.9545-16.768 7.4235-20.131 10.928 2.0376 3.1622 6.0354 3.9567 10.836 4.0553-5.7375 5.5002-14.227 7.6885-21.64 11.148 1.0057 1.4663 3.2192 2.9338 9.0958 4.3043-6.9901 3.5039-14.773 6.1675-23.545 7.9223 0.73194 1.9166 5.0978 3.5087 9.1389 5.0907-8.7991 3.945-18.346 4.207-27.726 5.5201 2.9287 4.0367 5.9538 4.4791 8.9626 5.575-7.1926 2.5501-17.455 1.4514-27.215 1.0864 0.46776 2.1663 1.3155 3.4454 2.7961 4.6612h-13.75c-5.1274-1.4192-9.4503-2.9189-11.788-2.2747-0.0214 0.78201 0.12538 1.5366 0.37044 2.2747h-6.1841c-2.2143-0.16717-4.4175-0.45785-6.5995-0.87068-17.23-8.2945-37.615-23.515-35.198-47.897 21.35-11.254 56.342-20.728 113.06-27.679-41.792-1.1427-81.452 3.3317-117.9 15.905-27.674-27.57 9.2662-58.115 30.995-67.691-0.70716 4.3624-0.65582 7.2407 0.12836 8.4067 7.2901-3.7246 13.646-7.8991 22.418-10.864zm-186.04 100.82h69.97c7.9167 2e-3 15.508 3.1505 21.105 8.7538l24.717 24.736c16.798 16.816 39.584 26.262 63.343 26.259h34.984c16.486 1.9e-4 29.85 13.375 29.85 29.873v179.24c-1.9e-4 16.499-13.365 29.873-29.85 29.873h-358.21c-16.486-1.8e-4 -29.85-13.375-29.85-29.873v-179.24c1.88e-4 -16.499 13.365-29.873 29.85-29.873h34.984c23.739-0.0128 46.501-9.4579 63.285-26.259l24.775-24.736c5.582-5.5884 13.149-8.736 21.045-8.7538zm35.016 59.749c-57.625 0.10848-104.28 46.889-104.28 104.56 0 57.669 46.656 104.45 104.28 104.56 57.625-0.10848 104.28-46.889 104.28-104.56 0-57.669-46.656-104.45-104.28-104.56zm-164.18 29.873c-8.2429 9e-5 -14.925 6.6874-14.925 14.937 0.03875 8.2218 6.7096 14.866 14.925 14.866s14.886-6.6446 14.925-14.866c-9.1e-5 -8.2493-6.6823-14.937-14.925-14.937zm164.18 0c41.206 0.0135 74.603 33.447 74.603 74.684 0 41.238-33.397 74.671-74.603 74.684-41.206-0.0135-74.603-33.447-74.603-74.684 0-41.238 33.397-74.671 74.603-74.684z"/>');
1729
+ this.reloadClientOnServerUpdate = true;
1673
1730
  }
1674
1731
  };
1675
1732
  exports.ClientServiceConfig = ClientServiceConfig;
@@ -1749,6 +1806,17 @@ tslib_1.__decorate([
1749
1806
  ,
1750
1807
  tslib_1.__metadata("design:type", SVGIconConfig)
1751
1808
  ], ClientServiceConfig.prototype, "svgIcon", void 0);
1809
+ tslib_1.__decorate([
1810
+ (0, common_1.ConfigProperty)({
1811
+ tags: {
1812
+ name: $localize `Reload client on server update`,
1813
+ priority: ConfigPriority.underTheHood,
1814
+ githubIssue: 1078
1815
+ },
1816
+ description: $localize `If set the UI will auto reload when client related config changed or the app was restarted (except when the UI shows the settings page).`,
1817
+ }),
1818
+ tslib_1.__metadata("design:type", Boolean)
1819
+ ], ClientServiceConfig.prototype, "reloadClientOnServerUpdate", void 0);
1752
1820
  exports.ClientServiceConfig = ClientServiceConfig = tslib_1.__decorate([
1753
1821
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1754
1822
  ], ClientServiceConfig);