diff --git a/frontend/app/app.routing.ts b/frontend/app/app.routing.ts
index bf268e11..0470db85 100644
--- a/frontend/app/app.routing.ts
+++ b/frontend/app/app.routing.ts
@@ -34,7 +34,8 @@ const ROUTES: Routes = [
path: 'share/:sharingKey',
component: GalleryComponent
},
- {path: '', redirectTo: '/login', pathMatch: 'full'}
+ {path: '', redirectTo: '/login', pathMatch: 'full'},
+ {path: '**', redirectTo: '/login', pathMatch: 'full'}
];
export const appRoutes: ModuleWithProviders = RouterModule.forRoot(ROUTES);
diff --git a/frontend/app/frame/frame.component.css b/frontend/app/frame/frame.component.css
index 8b081d71..41c33e34 100644
--- a/frontend/app/frame/frame.component.css
+++ b/frontend/app/frame/frame.component.css
@@ -1,10 +1,14 @@
.navbar {
- margin-bottom: 0px;
+ margin-bottom: 20px;
}
ng2-slim-loading-bar {
- margin-bottom: 20px;
- display: block;
+ /* display: block; */
+ z-index: 999999;
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
}
.container {
diff --git a/frontend/app/frame/frame.component.html b/frontend/app/frame/frame.component.html
index 303e5277..843681a4 100644
--- a/frontend/app/frame/frame.component.html
+++ b/frontend/app/frame/frame.component.html
@@ -1,3 +1,4 @@
+
-
diff --git a/frontend/app/gallery/gallery.component.css b/frontend/app/gallery/gallery.component.css
index e8f7df1c..e5ad8261 100644
--- a/frontend/app/gallery/gallery.component.css
+++ b/frontend/app/gallery/gallery.component.css
@@ -15,3 +15,42 @@ gallery-directory {
margin: 2px;
display: inline-block;
}
+
+.spinner {
+ margin-top: calc(50vh - 40px);
+ width: 80px;
+ height: 80px;
+ background-color: #333;
+
+ margin-left: auto;
+ margin-right: auto;
+ -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
+ animation: sk-rotateplane 1.2s infinite ease-in-out;
+}
+
+@-webkit-keyframes sk-rotateplane {
+ 0% {
+ -webkit-transform: perspective(120px)
+ }
+ 50% {
+ -webkit-transform: perspective(120px) rotateY(180deg)
+ }
+ 100% {
+ -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
+ }
+}
+
+@keyframes sk-rotateplane {
+ 0% {
+ transform: perspective(120px) rotateX(0deg) rotateY(0deg);
+ -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
+ }
+ 50% {
+ transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
+ -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
+ }
+ 100% {
+ transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
+ -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
+ }
+}
diff --git a/frontend/app/gallery/gallery.component.html b/frontend/app/gallery/gallery.component.html
index 8d38966c..6afe25d6 100644
--- a/frontend/app/gallery/gallery.component.html
+++ b/frontend/app/gallery/gallery.component.html
@@ -17,6 +17,7 @@
-
+
@@ -52,4 +53,15 @@
+
+
diff --git a/frontend/app/gallery/gallery.component.ts b/frontend/app/gallery/gallery.component.ts
index e63594b0..832594a5 100644
--- a/frontend/app/gallery/gallery.component.ts
+++ b/frontend/app/gallery/gallery.component.ts
@@ -12,6 +12,7 @@ import {ShareService} from "./share.service";
import {NavigationService} from "../model/navigation.service";
import {UserRoles} from "../../../common/entities/UserDTO";
import {Observable} from "rxjs/Rx";
+import {ContentWrapper} from "../../../common/entities/ConentWrapper";
@Component({
selector: 'gallery',
@@ -94,7 +95,7 @@ export class GalleryComponent implements OnInit, OnDestroy {
}
}
- private onContentChange = (content) => {
+ private onContentChange = (content: ContentWrapper) => {
const dirSorter = (a: DirectoryDTO, b: DirectoryDTO) => {
return a.name.localeCompare(b.name);
};