From 9cc5520f741b0f869de8a9e57dbece0b85625203 Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Sun, 1 May 2016 10:28:05 +0200 Subject: [PATCH] removing ng2-material from project --- frontend/app/admin/admin.component.html | 17 ++-- frontend/app/admin/admin.component.ts | 5 +- .../admin/newuser/new.user.admin.component.ts | 7 +- frontend/app/app.component.ts | 8 +- frontend/app/frame/frame.component.html | 78 +++++------------- frontend/app/frame/frame.component.ts | 15 +--- .../directory/directory.gallery.component.ts | 6 +- frontend/app/gallery/gallery.component.html | 7 +- frontend/app/gallery/gallery.component.ts | 4 +- frontend/app/login/login.component.html | 37 +++------ frontend/app/login/login.component.ts | 10 +-- frontend/icon_inv.png | Bin 0 -> 2798 bytes frontend/index.ejs | 4 +- package.json | 1 - 14 files changed, 63 insertions(+), 136 deletions(-) create mode 100644 frontend/icon_inv.png diff --git a/frontend/app/admin/admin.component.html b/frontend/app/admin/admin.component.html index a355eb82..b8f7e3a1 100644 --- a/frontend/app/admin/admin.component.html +++ b/frontend/app/admin/admin.component.html @@ -1,9 +1,12 @@ - - User management - - - - - +
+
+
+

User management

+
+
+ +
+
+
diff --git a/frontend/app/admin/admin.component.ts b/frontend/app/admin/admin.component.ts index 90d9ce63..bab5c71c 100644 --- a/frontend/app/admin/admin.component.ts +++ b/frontend/app/admin/admin.component.ts @@ -3,16 +3,13 @@ import {Component, OnInit} from 'angular2/core'; import {AuthenticationService} from "../model/network/authentication.service.ts"; import {Router} from "angular2/router"; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; -import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all"; import {FrameComponent} from "../frame/frame.component"; @Component({ selector: 'admin', templateUrl: 'app/admin/admin.component.html', styleUrls:['app/admin/admin.component.css'], - directives:[MATERIAL_DIRECTIVES, FrameComponent], - providers:[MATERIAL_BROWSER_PROVIDERS] + directives:[FrameComponent] }) export class AdminComponent implements OnInit{ constructor(private _authService: AuthenticationService, private _router: Router) { diff --git a/frontend/app/admin/newuser/new.user.admin.component.ts b/frontend/app/admin/newuser/new.user.admin.component.ts index 1111808a..ede34669 100644 --- a/frontend/app/admin/newuser/new.user.admin.component.ts +++ b/frontend/app/admin/newuser/new.user.admin.component.ts @@ -1,16 +1,13 @@ import {Component} from 'angular2/core'; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; -import {MdDialogRef} from "ng2-material/components/dialog/dialog_ref"; @Component({ selector: 'admin-new-user', templateUrl: 'app/admin/newuser/new.user.admin.component.html', - styleUrls:['app/admin/newuser/new.user.admin.component.css'], - directives:[MATERIAL_DIRECTIVES] + styleUrls:['app/admin/newuser/new.user.admin.component.css'] }) export class NewUserComponent{ - constructor(private dialog: MdDialogRef) { + constructor() { } } diff --git a/frontend/app/app.component.ts b/frontend/app/app.component.ts index d2c8d554..48b1ce68 100644 --- a/frontend/app/app.component.ts +++ b/frontend/app/app.component.ts @@ -10,9 +10,7 @@ import {User} from "../../common/entities/User"; import {Router} from "angular2/router"; import {HTTP_PROVIDERS} from "angular2/http"; import {UserService} from "./model/network/user.service.ts"; -import {GalleryService} from "./gallery/gallery.service"; -import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all"; -import {ViewportHelper} from "ng2-material/core/util/viewport"; +import {GalleryService} from "./gallery/gallery.service"; import {AdminComponent} from "./admin/admin.component"; @@ -25,9 +23,7 @@ import {AdminComponent} from "./admin/admin.component"; ROUTER_PROVIDERS, UserService, GalleryService, - AuthenticationService,MATERIAL_BROWSER_PROVIDERS,ViewportHelper - - ] + AuthenticationService] }) @RouteConfig([ { diff --git a/frontend/app/frame/frame.component.html b/frontend/app/frame/frame.component.html index 26cb95a4..44d164ef 100644 --- a/frontend/app/frame/frame.component.html +++ b/frontend/app/frame/frame.component.html @@ -1,59 +1,21 @@ - - - - -

PiGallery2

-
- - - - -
- - - - - -
- - - - -
-
-
\ No newline at end of file + PiGallery2 + + + + + \ No newline at end of file diff --git a/frontend/app/frame/frame.component.ts b/frontend/app/frame/frame.component.ts index c5158806..a9f71ae8 100644 --- a/frontend/app/frame/frame.component.ts +++ b/frontend/app/frame/frame.component.ts @@ -1,25 +1,18 @@ /// import {Component, ViewEncapsulation} from 'angular2/core'; -import {Router, RouterLink} from "angular2/router"; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; -import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all"; -import {ViewportHelper} from "ng2-material/all"; -import {SidenavService} from "ng2-material/all"; +import {RouterLink} from "angular2/router"; @Component({ selector: 'app-frame', templateUrl: 'app/frame/frame.component.html', - directives:[RouterLink,MATERIAL_DIRECTIVES], - providers: [SidenavService], + directives:[RouterLink], encapsulation: ViewEncapsulation.Emulated }) export class FrameComponent { - constructor( private _router: Router, public sidenav: SidenavService) { + constructor() { } - public showSideNav(){ - this.sidenav.show("menu"); - } + } diff --git a/frontend/app/gallery/directory/directory.gallery.component.ts b/frontend/app/gallery/directory/directory.gallery.component.ts index 9fe0ec25..a676d463 100644 --- a/frontend/app/gallery/directory/directory.gallery.component.ts +++ b/frontend/app/gallery/directory/directory.gallery.component.ts @@ -4,15 +4,11 @@ import {Component, Input, OnInit} from 'angular2/core'; import {Directory} from "../../../../common/entities/Directory"; import {RouterLink} from "angular2/router"; import {Utils} from "../../../../common/Utils"; -import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all"; -import {ViewportHelper} from "ng2-material/all"; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; @Component({ selector: 'gallery-directory', templateUrl: 'app/gallery/directory/directory.gallery.component.html', - directives:[RouterLink,MATERIAL_DIRECTIVES], - providers:[MATERIAL_BROWSER_PROVIDERS, ViewportHelper] + directives:[RouterLink], }) export class GalleryDirectoryComponent{ @Input() directory: Directory; diff --git a/frontend/app/gallery/gallery.component.html b/frontend/app/gallery/gallery.component.html index 9c0e378b..c7bc3f16 100644 --- a/frontend/app/gallery/gallery.component.html +++ b/frontend/app/gallery/gallery.component.html @@ -1,8 +1,9 @@ - + +
- - + +
\ No newline at end of file diff --git a/frontend/app/gallery/gallery.component.ts b/frontend/app/gallery/gallery.component.ts index 3999bdab..f3102466 100644 --- a/frontend/app/gallery/gallery.component.ts +++ b/frontend/app/gallery/gallery.component.ts @@ -8,7 +8,6 @@ import {Directory} from "../../../common/entities/Directory"; import {Message} from "../../../common/entities/Message"; import {GalleryDirectoryComponent} from "./directory/directory.gallery.component"; import {GalleryGridComponent} from "./grid/grid.gallery.component"; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; import {FrameComponent} from "../frame/frame.component"; import {GalleryLightboxComponent} from "./lightbox/lightbox.gallery.component"; @@ -19,8 +18,7 @@ import {GalleryLightboxComponent} from "./lightbox/lightbox.gallery.component"; directives:[GalleryGridComponent, GalleryDirectoryComponent, GalleryLightboxComponent, - FrameComponent, - MATERIAL_DIRECTIVES] + FrameComponent] }) export class GalleryComponent implements OnInit{ diff --git a/frontend/app/login/login.component.html b/frontend/app/login/login.component.html index f0563d95..9c89e100 100644 --- a/frontend/app/login/login.component.html +++ b/frontend/app/login/login.component.html @@ -1,26 +1,13 @@ - - - -
- - Login - -
- - - - - - - - -
-
- - - -
+
+
+
- +
diff --git a/frontend/app/login/login.component.ts b/frontend/app/login/login.component.ts index 0353c17e..70dffcf6 100644 --- a/frontend/app/login/login.component.ts +++ b/frontend/app/login/login.component.ts @@ -3,18 +3,14 @@ import {Component, OnInit} from 'angular2/core'; import {LoginCredential} from '../../../common/entities/LoginCredential'; import {AuthenticationService} from "../model/network/authentication.service.ts"; -import {Router} from "angular2/router"; -import {MATERIAL_DIRECTIVES} from "ng2-material/all"; -import {FORM_DIRECTIVES} from "angular2/common"; -import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all"; -import {ViewportHelper} from "ng2-material/all"; +import {Router} from "angular2/router"; +import {FORM_DIRECTIVES} from "angular2/common"; @Component({ selector: 'login', templateUrl: 'app/login/login.component.html', styleUrls:['app/login/login.component.css'], - directives:[MATERIAL_DIRECTIVES,FORM_DIRECTIVES], - providers:[MATERIAL_BROWSER_PROVIDERS, ViewportHelper] + directives:[FORM_DIRECTIVES] }) export class LoginComponent implements OnInit{ loginCredential: LoginCredential; diff --git a/frontend/icon_inv.png b/frontend/icon_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..32d122dc23ffce5b0930124881e4864ec2283b87 GIT binary patch literal 2798 zcmaJ@dpy)>7k}m=GbAHYbeo2Rn458#VHgb2ODwi*h%py4m>JCsGcNI?w31@&rnarH ziL`DTY2TEYR}$*Yilx}nMq9FECAW>)(bn$!$G-df=Q+>$obNf`^F8PH`8-DgckR&A zG1UP8==u6Eg8+bOOc+2RG)G)jXo%)8k$Hv6g2g1_0u`UXlCV`MEV__A-c#)K*pyS@K};p6ic{Rd%V3Zn@A>M9jSPdy}hF&*#=7{k|+csi9oWmB~fV<3XMp_ zzW;EVY7!2Q7R2;^UrTeNsAntAZdK7cja{d1w^Kn)ujQ_M~jaz!#-CRV znx}-zl8GfDVsShj7swKbWcXcPA=o54ygi;oT$b}aJFY~K#N~KP#6s*lJ!pczsp(1f zaHqI?I8n(?@Ax{A9G%>WBoBL%1DR>(MaI3ya{i{*_gL!x#S%1R2+PC#pW%LRX*Oor z{Bu<`mp_-CE7EMZM6=2bSz4W%-(W?cUx=4ltsWj8zU)vFtMR~OLA!zhu7va9efp^}3VX{f;78GcB}em#mZpjM!Eu9DaQ}|!kC@Px$&t``aJ_#2=#wrr z(HIQov^4Wq6$EmU&ZVvPGyRYA*;;9&yku{a677>WX6*46dqFn;Ire~)U|Nb!(93{B z6+rdXcuyOE-+PS6Nh{BTJ(-@3+ic=@x(|_%UC$|~jGT2>+&ob@d!fB{ZbMlW`>qG68xhp}OC(oeV zJ1_XVu5d%%(#b31hi{ZWdY!#yq1qR%2!LDBtz9?kWyFT9Q&}$N)P@<~gTG$VxrF=? zzab`beyIwN@o}?1Uhi=i!BF%}eZ&fQTGZG+XVf?4TS{ZR!OTrIesc)b6Y$DhVen83 z`gY-F)3N--HLto_Jw0+`pXFg5$1JvurVFaE*+4l^+qj$jv+v$tLPKrW&zjrL#KQ_w z(_~k5iLVVN4J`Alt)k)3Kvr_}MV)!AwJUVm7$0X8U?z(*e_Ej4+0yY0SCR>FjBVz_ zMgGSNKtsg2qe#C-vpjwpy7gwk(2Ylj-hLmx}z!HXibt40eT#7i2F32q+mtI|6vPSsrP#6;mZD>0n zHh>Kx8AIY@zv`#2Fo@bCEbKZqf_(AuH~HGYqPc;tyy+r!09Ki)^0vA!4_wVtWnDD@ zA;_Z6{-dxbc&Y_LB`pWoEm640(`1?}l+Bqo2Wjx~sWR&_Be=>Kv?KkrREqq-H6R|& zm>z`Y2}%omwh|nMscZlf-tx4J0JZ=WfL21urB7CZMmu2k;`zQRGlS5Y**SQW`6tCl z=*%8BBt+MSHflq%x|??_;&oI>a7Od$qHBAutOcFu;RX9bJJhz=pw0vA z)&e!UK}Pf259^4#tGGzC*VlQ4Kc$1#+LQOj&HVJCecR4ma}0z<{ko*mPPo{g2~PpJh&X- zol;%|`nOrR@1WiN;;xTtSoGp7+mE>QxA-3rlk}~v&qbrpQoy}WiyU8KKkF^+bTD^vbkEdYeHY z;zjqX$?Yq?zmP#4ueGgfa9wASPaJ_A5~A^?{%4< zg-P|IIp=5lc?+WvjbEju6bmmF55zfl#>@=XEC@=)+tp@S4e0n@4Gb-ZvhMs_B>KO`!tB>nc8^o!}Uv#L!MYTijckN4?V{@KkS-vSyQ=y}tG ydh-2@Y!P!{eBdM0lVtlt4Wqkkj- literal 0 HcmV?d00001 diff --git a/frontend/index.ejs b/frontend/index.ejs index 1c7151a7..4a023843 100644 --- a/frontend/index.ejs +++ b/frontend/index.ejs @@ -6,7 +6,9 @@ PiGallery2 - + diff --git a/package.json b/package.json index 490d071b..72ee3157 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "mongoose": "^4.4.14", "morgan": "^1.7.0", "ng2-cookies": "^0.1.5", - "ng2-material": "^0.3.7", "optimist": "^0.6.1", "rxjs": "5.0.0-beta.6", "ts-loader": "^0.8.2",