diff --git a/backend/middlewares/customtypings/ExtendedRequest.d.ts b/backend/middlewares/customtypings/ExtendedRequest.d.ts index 4f7cb6a..dfb845a 100644 --- a/backend/middlewares/customtypings/ExtendedRequest.d.ts +++ b/backend/middlewares/customtypings/ExtendedRequest.d.ts @@ -1,17 +1,17 @@ declare module Express { - export interface Request { - resultPipe?:any - body?:{ - loginCredential - } + export interface Request { + resultPipe?: any + body?: { + loginCredential } + } - export interface Response { - tpl?:any - } + export interface Response { + tpl?: any + } - export interface Session { - user?; - } + export interface Session { + user?; + } } diff --git a/backend/middlewares/customtypings/jimp.d.ts b/backend/middlewares/customtypings/jimp.d.ts index 854571f..2d14da9 100644 --- a/backend/middlewares/customtypings/jimp.d.ts +++ b/backend/middlewares/customtypings/jimp.d.ts @@ -1,10 +1,10 @@ declare module "jimp" { - function read(filaname); + function read(filaname); - var RESIZE_NEAREST_NEIGHBOR; - var RESIZE_BILINEAR; - var RESIZE_BICUBIC; - var RESIZE_HERMITE; - var RESIZE_BEZIER; - var AUTO:any; -} \ No newline at end of file + var RESIZE_NEAREST_NEIGHBOR; + var RESIZE_BILINEAR; + var RESIZE_BICUBIC; + var RESIZE_HERMITE; + var RESIZE_BEZIER; + var AUTO: any; +} diff --git a/backend/middlewares/user/AuthenticationMWs.ts b/backend/middlewares/user/AuthenticationMWs.ts index 59ef14a..90d57ad 100644 --- a/backend/middlewares/user/AuthenticationMWs.ts +++ b/backend/middlewares/user/AuthenticationMWs.ts @@ -50,6 +50,7 @@ export class AuthenticationMWs { return next(); } + public static async authenticate(req: Request, res: Response, next: NextFunction) { if (Config.Client.authenticationRequired === false) { diff --git a/backend/model/memory/flat-file-db.ts b/backend/model/memory/flat-file-db.ts index 3ce09f2..5c71023 100644 --- a/backend/model/memory/flat-file-db.ts +++ b/backend/model/memory/flat-file-db.ts @@ -1,13 +1,13 @@ declare module "flat-file-db" { - export function sync(path: string): DB; + export function sync(path: string): DB; } declare interface DB { - sync(): any; - put(): any; - get(): any; - del(): any; - has(): any; - keys(): any; - close(): any; -} \ No newline at end of file + sync(): any; + put(): any; + get(): any; + del(): any; + has(): any; + keys(): any; + close(): any; +} diff --git a/backend/model/mysql/enitites/DirectoryEntity.ts b/backend/model/mysql/enitites/DirectoryEntity.ts index c73944a..1dc8a67 100644 --- a/backend/model/mysql/enitites/DirectoryEntity.ts +++ b/backend/model/mysql/enitites/DirectoryEntity.ts @@ -1,37 +1,37 @@ -import {Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne} from "typeorm"; +import {Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn} from "typeorm"; import {DirectoryDTO} from "../../../../common/entities/DirectoryDTO"; import {PhotoEntity} from "./PhotoEntity"; @Entity() export class DirectoryEntity implements DirectoryDTO { - @PrimaryGeneratedColumn() - id: number; + @PrimaryGeneratedColumn() + id: number; - @Column({ - length: 500 - }) - name: string; + @Column({ + length: 500 + }) + name: string; - @Column({ - length: 500 - }) - path: string; + @Column({ + length: 500 + }) + path: string; - @Column('number') - public lastUpdate: number; + @Column('number') + public lastUpdate: number; - @Column({type: 'smallint', length: 1}) - public scanned: boolean; + @Column({type: 'smallint', length: 1}) + public scanned: boolean; - @ManyToOne(type => DirectoryEntity, directory => directory.directories) - public parent: DirectoryEntity; + @ManyToOne(type => DirectoryEntity, directory => directory.directories) + public parent: DirectoryEntity; - @OneToMany(type => DirectoryEntity, dir => dir.parent) - public directories: Array; + @OneToMany(type => DirectoryEntity, dir => dir.parent) + public directories: Array; - @OneToMany(type => PhotoEntity, photo => photo.directory) - public photos: Array; + @OneToMany(type => PhotoEntity, photo => photo.directory) + public photos: Array; -} \ No newline at end of file +} diff --git a/frontend/index.html b/frontend/index.html index 45f5cf2..9981e5f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -12,7 +12,7 @@ - + diff --git a/frontend/polyfills.ts b/frontend/polyfills.ts index 3a1206b..8dfa56c 100644 --- a/frontend/polyfills.ts +++ b/frontend/polyfills.ts @@ -18,7 +18,7 @@ */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; - import 'core-js/es6/object'; +import "core-js/es6/object"; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; @@ -26,7 +26,7 @@ // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; - import 'core-js/es6/array'; +import "core-js/es6/array"; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; @@ -44,17 +44,14 @@ import "core-js/es7/reflect"; * Zone JS is required by Angular itself. */ import "zone.js/dist/zone"; // Included with Angular CLI. - - /*************************************************************************************************** * APPLICATION IMPORTS */ - /** * Date, currency, decimal and percent pipes. * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 */ - import 'intl'; // Run `npm install --save intl`. +import "intl"; // Run `npm install --save intl`. /** * Need to import at least one locale-data with intl. */ diff --git a/karma.conf.js b/karma.conf.js index dc4b560..51329f3 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -12,11 +12,11 @@ module.exports = function (config) { require('karma-coverage-istanbul-reporter'), require('@angular/cli/plugins/karma') ], - client:{ + client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { - reports: [ 'html', 'lcovonly' ], + reports: ['html', 'lcovonly'], fixWebpackSourcePaths: true }, angularCli: { diff --git a/protractor.conf.js b/protractor.conf.js index e5f80f3..72212fe 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -1,7 +1,7 @@ // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts -const { SpecReporter } = require('jasmine-spec-reporter'); +const {SpecReporter} = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, @@ -17,12 +17,13 @@ exports.config = { jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, - print: function() {} + print: function () { + } }, onPrepare() { require('ts-node').register({ project: 'test/e2e/tsconfig.e2e.json' }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); + jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}})); } };