From d78e1a9ce5b546124458b7b3e5a48f157387d1aa Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Thu, 6 Jul 2017 22:54:36 +0200 Subject: [PATCH] creating login screen design --- README.md | 2 +- backend/middlewares/user/AuthenticationMWs.ts | 1 - common/config/public/ConfigClass.ts | 2 + common/entities/LoginCredential.ts | 2 +- frontend/app/app.module.ts | 2 +- frontend/app/frame/frame.component.html | 2 +- frontend/app/frame/frame.component.ts | 2 + frontend/app/gallery/share.service.ts | 1 - frontend/app/login/login.component.css | 60 +++++++++- frontend/app/login/login.component.html | 104 +++++++++++++++--- frontend/app/login/login.component.ts | 7 +- .../model/network/authentication.service.ts | 7 -- frontend/index.html | 6 +- frontend/styles.css | 12 +- package.json | 1 + 15 files changed, 174 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index fe681288..25010710 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # PiGallery2 [![npm version](https://badge.fury.io/js/pigallery2.svg)](https://badge.fury.io/js/pigallery2) [![Build Status](https://travis-ci.org/bpatrik/pigallery2.svg?branch=master)](https://travis-ci.org/bpatrik/pigallery2) -[![Coverage Status](https://coveralls.io/repos/github/bpatrik/pigallery2/badge.svg?branch=master)](https://coveralls.io/github/bpatrik/pigallery2?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/bpatrik/PiGallery2/badge.svg?branch=master)](https://coveralls.io/github/bpatrik/PiGallery2?branch=master) [![Heroku](https://heroku-badge.herokuapp.com/?app=pigallery2&style=flat)](https://pigallery2.herokuapp.com) [![Code Climate](https://codeclimate.com/github/bpatrik/pigallery2/badges/gpa.svg)](https://codeclimate.com/github/bpatrik/pigallery2) [![Dependency Status](https://david-dm.org/bpatrik/pigallery2.svg)](https://david-dm.org/bpatrik/pigallery2) diff --git a/backend/middlewares/user/AuthenticationMWs.ts b/backend/middlewares/user/AuthenticationMWs.ts index e17e4a3f..aa1c805b 100644 --- a/backend/middlewares/user/AuthenticationMWs.ts +++ b/backend/middlewares/user/AuthenticationMWs.ts @@ -8,7 +8,6 @@ import {Config} from "../../../common/config/private/Config"; export class AuthenticationMWs { private static async getSharingUser(req: Request) { - console.log(req); if (Config.Client.Sharing.enabled === true && Config.Client.Sharing.passwordProtected === false && (!!req.query.sk || !!req.params.sharingKey)) { diff --git a/common/config/public/ConfigClass.ts b/common/config/public/ConfigClass.ts index 97ff27af..25762271 100644 --- a/common/config/public/ConfigClass.ts +++ b/common/config/public/ConfigClass.ts @@ -10,6 +10,7 @@ interface SharingConfig { } interface ClientConfig { + applicationTitle: string; iconSize: number; thumbnailSizes: Array; Search: SearchConfig; @@ -28,6 +29,7 @@ interface ClientConfig { export class PublicConfigClass { public Client: ClientConfig = { + applicationTitle: "PiGallery 2", thumbnailSizes: [200, 400, 600], iconSize: 30, Search: { diff --git a/common/entities/LoginCredential.ts b/common/entities/LoginCredential.ts index 41375b34..96a0f708 100644 --- a/common/entities/LoginCredential.ts +++ b/common/entities/LoginCredential.ts @@ -1,5 +1,5 @@ export class LoginCredential { - constructor(public username: string = "", public password: string = "") { + constructor(public username: string = "", public password: string = "", public rememberMe: boolean = false) { } } diff --git a/frontend/app/app.module.ts b/frontend/app/app.module.ts index d6fe599f..048afcab 100644 --- a/frontend/app/app.module.ts +++ b/frontend/app/app.module.ts @@ -36,7 +36,7 @@ import {SlimLoadingBarModule} from "ng2-slim-loading-bar"; import {GalleryShareComponent} from "./gallery/share/share.gallery.component"; import {ShareLoginComponent} from "./sharelogin/share-login.component"; import {ShareService} from "./gallery/share.service"; - +import "hammerjs"; @Injectable() export class GoogleMapsConfig { diff --git a/frontend/app/frame/frame.component.html b/frontend/app/frame/frame.component.html index e12e7293..5b703325 100644 --- a/frontend/app/frame/frame.component.html +++ b/frontend/app/frame/frame.component.html @@ -9,7 +9,7 @@ - PiGallery2 + {{title}}