1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

creating metafile config entry

This commit is contained in:
Patrik J. Braun 2018-11-30 17:19:37 +01:00
parent 73303c39c8
commit 717afebff9
4 changed files with 12 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import * as path from 'path';
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
import {CameraMetadata, GPSMetadata, PhotoDTO, PhotoMetadata} from '../../../common/entities/PhotoDTO';
import {Logger} from '../../Logger';
import {IptcParser, MarkerError, FileFormatError} from 'ts-node-iptc';
import {IptcParser} from 'ts-node-iptc';
import {ExifParserFactory, OrientationTypes} from 'ts-exif-parser';
import {FfprobeData} from 'fluent-ffmpeg';
import {ProjectPath} from '../../ProjectPath';

View File

@ -47,6 +47,10 @@ export module ClientConfig {
enabled: boolean;
}
export interface MetaFileConfig {
enabled: boolean;
}
export interface Config {
applicationTitle: string;
@ -61,6 +65,7 @@ export module ClientConfig {
authenticationRequired: boolean;
languages: string[];
Video: VideoConfig;
MetaFile: MetaFileConfig;
}
}
@ -100,6 +105,9 @@ export class PublicConfigClass {
Video: {
enabled: true
},
MetaFile: {
enabled: true
},
Other: {
enableCache: true,
enableOnScrollRendering: true,

View File

@ -44,7 +44,6 @@ export class GalleryService {
content.directory = this.galleryCacheService.getDirectory(directoryName);
content.searchResult = null;
console.log(content.directory);
this.content.next(content);
this.lastRequest.directory = directoryName;

View File

@ -39,6 +39,9 @@ export class SettingsService {
Video: {
enabled: true
},
MetaFile: {
enabled: true
},
Other: {
enableCache: true,
enableOnScrollRendering: true,