pigallery2-extension-kit 3.7.0-edge → 3.8.0-rc.1

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.
@@ -11,6 +11,7 @@ export declare class SharingEntity implements BaseSharingDTO {
11
11
  */
12
12
  defaultDirectoryView: string | null;
13
13
  defaultSearchView: SearchQueryDTO | null;
14
+ preventDownload: boolean;
14
15
  password: string | null;
15
16
  expires: number;
16
17
  timeStamp: number;
@@ -20,4 +20,8 @@ export declare class PhotoProcessing {
20
20
  static generateThumbnail(mediaPath: string, size: number, sourceType: ThumbnailSourceType, makeSquare: boolean): Promise<string>;
21
21
  static isPhoto(fullPath: string): boolean;
22
22
  static renderSVG(svgIcon: SVGIconConfig, outPath: string, color?: string): Promise<string>;
23
+ /**
24
+ * Renders the svg to a size x size png. The file name gets the hash of the svg, so a changed svg is a new file.
25
+ */
26
+ static renderSVGString(svgString: string, size: number, outPath: string): Promise<string>;
23
27
  }
@@ -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 = 47;
4
+ export declare const DataStructureVersion = 48;
@@ -173,6 +173,7 @@ export declare class ServerServiceConfig extends ClientServiceConfig {
173
173
  sessionSecret: string[];
174
174
  sessionTimeout: number;
175
175
  trustProxy: string;
176
+ hideSponsorLinks: boolean;
176
177
  port: number;
177
178
  host: string;
178
179
  Log: ServerLogConfig;
@@ -186,7 +186,6 @@ export declare class ThemesConfig {
186
186
  }
187
187
  export declare class ClientGalleryConfig {
188
188
  enableCache: boolean;
189
- enableOnScrollRendering: boolean;
190
189
  enableDirectorySortingByDate: boolean;
191
190
  ignoreTimestampOffset: boolean;
192
191
  enableOnScrollThumbnailPrioritising: boolean;
@@ -1167,7 +1167,7 @@ let ClientLightboxConfig = class ClientLightboxConfig {
1167
1167
  this.captionAlwaysOn = false;
1168
1168
  this.facesAlwaysOn = false;
1169
1169
  this.loopVideos = false;
1170
- this.loopSlideshow = false;
1170
+ this.loopSlideshow = true;
1171
1171
  this.loadFullImageOnZoom = true;
1172
1172
  this.loadFullImageIfPreviewTooSmall = true;
1173
1173
  this.Titles = new ClientLightboxTitleConfig();
@@ -1372,7 +1372,6 @@ exports.ThemesConfig = ThemesConfig = __decorate([
1372
1372
  let ClientGalleryConfig = class ClientGalleryConfig {
1373
1373
  constructor() {
1374
1374
  this.enableCache = true;
1375
- this.enableOnScrollRendering = true;
1376
1375
  this.enableDirectorySortingByDate = false;
1377
1376
  this.ignoreTimestampOffset = true;
1378
1377
  this.enableOnScrollThumbnailPrioritising = true;
@@ -1397,17 +1396,6 @@ __decorate([
1397
1396
  }),
1398
1397
  __metadata("design:type", Boolean)
1399
1398
  ], ClientGalleryConfig.prototype, "enableCache", void 0);
1400
- __decorate([
1401
- (0, common_1.ConfigProperty)({
1402
- type: 'boolean',
1403
- tags: {
1404
- name: $localize `Scroll based thumbnail generation`,
1405
- priority: Enums_1.ConfigPriority.advanced,
1406
- },
1407
- description: $localize `Those thumbnails get higher priority that are visible on the screen.`
1408
- }),
1409
- __metadata("design:type", Boolean)
1410
- ], ClientGalleryConfig.prototype, "enableOnScrollRendering", void 0);
1411
1399
  __decorate([
1412
1400
  (0, common_1.ConfigProperty)({
1413
1401
  type: 'boolean',
@@ -16,6 +16,7 @@ export interface BaseSharingDTO extends SharingDTOKey {
16
16
  sharingKey: string;
17
17
  expires: number;
18
18
  timeStamp: number;
19
+ preventDownload?: boolean;
19
20
  creator?: UserDTO;
20
21
  }
21
22
  export interface ResponseSharingDTO extends BaseSharingDTO, PublicSharingDTO {
@@ -27,6 +28,7 @@ export interface ResponseSharingDTO extends BaseSharingDTO, PublicSharingDTO {
27
28
  sharingKey: string;
28
29
  expires: number;
29
30
  timeStamp: number;
31
+ preventDownload?: boolean;
30
32
  creator?: UserDTO;
31
33
  passwordProtected: boolean;
32
34
  }
@@ -40,6 +42,7 @@ export interface UpdateSharingDTO extends BaseSharingDTO {
40
42
  password?: string | null;
41
43
  expires: number;
42
44
  timeStamp: number;
45
+ preventDownload?: boolean;
43
46
  creator?: UserDTO;
44
47
  }
45
48
  export interface CreateSharingDTO {
@@ -50,5 +53,6 @@ export interface CreateSharingDTO {
50
53
  defaultDirectoryView?: string;
51
54
  searchQuery: SearchQueryDTO;
52
55
  directoryQuery?: DirectorySearch;
56
+ preventDownload?: boolean;
53
57
  }
54
58
  export {};
@@ -13,6 +13,7 @@ export interface UserDTO {
13
13
  role: UserRoles;
14
14
  oidcSubject?: string | null;
15
15
  usedSharingKey?: string;
16
+ preventDownload?: boolean;
16
17
  projectionKey?: string;
17
18
  overrideAllowBlockList?: boolean;
18
19
  allowQuery?: SearchQueryDTO | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pigallery2-extension-kit",
3
- "version": "3.7.0-edge",
3
+ "version": "3.8.0-rc.1",
4
4
  "description": "Interfaces for developing extensions for pigallery2",
5
5
  "author": "Patrik J. Braun",
6
6
  "homepage": "https://github.com/bpatrik/pigallery2",