Error: {{error}}
-
It is highly recommended to use hardware accelerated (sharp or gm) lib for thumbnail
- generation
-
-
-
-
- Make sure that sharp node module is installed (npm install sharp).
-
-
-
-
-
-
Photo converting:
{
readonly resolutionTypes = [720, 1080, 1440, 2160, 4320];
resolutions: { key: number, value: string }[] = [];
- PhotoProcessingLib = ServerConfig.PhotoProcessingLib;
JobProgressStates = JobProgressStates;
readonly jobName = DefaultsJobs[DefaultsJobs['Photo Converting']];
@@ -38,7 +36,6 @@ export class PhotoSettingsComponent extends SettingsComponent<{
notification: NotificationService,
i18n: I18n) {
super(i18n('Photo'), _authService, _navigation, _settingsService, notification, i18n, s => ({
- photoProcessingLibrary: s.Server.Media.photoProcessingLibrary,
client: s.Client.Media.Photo,
server: s.Server.Media.Photo
}));
diff --git a/src/frontend/app/ui/settings/photo/photo.settings.service.ts b/src/frontend/app/ui/settings/photo/photo.settings.service.ts
index 92a5bff3..89666872 100644
--- a/src/frontend/app/ui/settings/photo/photo.settings.service.ts
+++ b/src/frontend/app/ui/settings/photo/photo.settings.service.ts
@@ -7,7 +7,6 @@ import {ClientConfig} from '../../../../../common/config/public/ClientConfig';
@Injectable()
export class PhotoSettingsService extends AbstractSettingsService<{
- photoProcessingLibrary: ServerConfig.PhotoProcessingLib,
server: ServerConfig.PhotoConfig,
client: ClientConfig.PhotoConfig
}> {
@@ -18,7 +17,6 @@ export class PhotoSettingsService extends AbstractSettingsService<{
public updateSettings(settings: {
- photoProcessingLibrary: ServerConfig.PhotoProcessingLib,
server: ServerConfig.PhotoConfig,
client: ClientConfig.PhotoConfig
}): Promise {
diff --git a/src/frontend/app/ui/settings/thumbnail/thumbnail.settings.component.html b/src/frontend/app/ui/settings/thumbnail/thumbnail.settings.component.html
index 7f011bd4..52b23ab9 100644
--- a/src/frontend/app/ui/settings/thumbnail/thumbnail.settings.component.html
+++ b/src/frontend/app/ui/settings/thumbnail/thumbnail.settings.component.html
@@ -9,7 +9,7 @@
diff --git a/test/backend/unit/middlewares/user/AuthenticationMWs.ts b/test/backend/unit/middlewares/user/AuthenticationMWs.ts
index b3c1a2d4..220584d0 100644
--- a/test/backend/unit/middlewares/user/AuthenticationMWs.ts
+++ b/test/backend/unit/middlewares/user/AuthenticationMWs.ts
@@ -29,7 +29,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).to.be.undefined;
done();
};
@@ -45,7 +45,7 @@ describe('Authentication middleware', () => {
params: {}
};
Config.Client.authenticationRequired = true;
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.NOT_AUTHENTICATED);
done();
@@ -136,7 +136,7 @@ describe('Authentication middleware', () => {
},
sessionOptions: {},
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.ALREADY_AUTHENTICATED);
done();
@@ -156,7 +156,7 @@ describe('Authentication middleware', () => {
},
sessionOptions: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).to.be.undefined;
done();
};
@@ -173,7 +173,7 @@ describe('Authentication middleware', () => {
},
sessionOptions: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.NOT_AUTHORISED);
done();
@@ -194,7 +194,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.INPUT_ERROR);
done();
@@ -209,7 +209,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.INPUT_ERROR);
done();
@@ -226,7 +226,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.INPUT_ERROR);
done();
@@ -248,7 +248,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).not.to.be.undefined;
expect(err.code).to.be.eql(ErrorCodes.CREDENTIAL_NOT_FOUND);
done();
@@ -275,7 +275,7 @@ describe('Authentication middleware', () => {
query: {},
params: {}
};
- const next = (err: ErrorDTO) => {
+ const next: any = (err: ErrorDTO) => {
expect(err).to.be.undefined;
expect(req.session.user).to.be.eql('test user');
done();