Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into features/ee
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazjara committed Feb 9, 2017
2 parents a0620af + 9285d6f commit 6d63be4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions modules/admin/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ import { AuthService } from "./services/auth/auth.service";
import { TokenService } from "./services/auth/token.service";
// import { CrudService } from "./crud/crud.service";
import { AuthGuard } from "./common/auth.guard";
import { NotificationService } from "./services/notification-service";
import { LoadingGridService } from "./services/loading/loading-grid.service";
import { APP_RESOLVER_PROVIDERS } from "./app.resolver";
import { createNewHosts, removeNgStyles, createInputTransfer } from "@angularclass/hmr";
import { ENV_PROVIDERS } from "./environment";
import { SimpleNotificationsModule } from "angular2-notifications";
import { SimpleNotificationsModule, NotificationsService } from "angular2-notifications";
import { TranslateModule, TranslateLoader, TranslateStaticLoader } from "ng2-translate";
import { GridService } from "./services/grid.service";
import { SidebarComponent } from "./sidebar/sidebar.component";
Expand Down Expand Up @@ -48,6 +47,7 @@ import { LoadingRouterOutletModule } from "./common/components/loading-router-ou
import { CommonService } from "./services/common";
import "../styles/styles.scss";
import { CustomersViewService } from "./customers/customers-view/customers-view.service";
import { NotificationService } from "./services/notification-service";

type StoreType = {
state: InternalStateType,
Expand All @@ -70,6 +70,7 @@ export const APP_PROVIDERS = [
GridService,
TokenService,
AuthService,
NotificationsService,
NotificationService,
AuthGuard,
AppState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class CustomersViewService {

rowData.forEach((item, i, arr) => {
if (item) {
_rowData += item[titleColumns] || item['id'];
_rowData += item[titleColumns] || item['id'] || '';
}

if (i !== arr.length - 1) {
Expand Down
7 changes: 4 additions & 3 deletions modules/admin/src/app/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ <h1 class="title">{{'login.title' | translate}}</h1>
<div class="input-container">
<input type="text" required
[(ngModel)]="model.username" id="username" name="username"
autocomplete="on" #username="ngModel"/>
#username="ngModel"/>
<label for="Username">{{'login.username' | translate}}</label>
<div class="bar"></div>
</div>
<div class="input-container">
<input type="password" required id="password"
maxlength="64" [(ngModel)]="model.password" name="password"
autocomplete="on" #password="ngModel"/>
#password="ngModel"/>
<label for="Password">{{"login.password" | translate}}</label>
<div class="bar"></div>
</div>
<div class="button-container">
<button type="submit" class="submitButton" [disabled]="loginForm.form.invalid">
<button [ngClass]="{'button-submitted': loadingSpinner}" type="submit" class="submitButton"
[disabled]="loginForm.form.invalid">
<span>{{'login.btnLogin' | translate}}</span>
<i *ngIf="loadingSpinner" class="fa fa-spinner fa-pulse fa-3x fa-fw loading-spinner"></i>
</button>
Expand Down
5 changes: 2 additions & 3 deletions modules/admin/src/app/login/login.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ body {
transition: .3s ease;

.loading-spinner {
color: #fff;
color: #ddd;
font-size: 24px
}

Expand Down Expand Up @@ -389,8 +389,7 @@ body {
}
}

&:active,
&:focus {
&.button-submitted {
span {
color: $white;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/admin/src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* This file is for setting global styles */
@import '~primeng/resources/primeng.min.css';
@import '~normalize.css/normalize.css';
@import '~webpack-material-design-icons/material-design-icons.css';
@import '~font-awesome/css/font-awesome.css';
@import '~primeng/resources/themes/omega/theme.css';
@import '~primeng/resources/primeng.min.css';
@import './../app/common/components/cube-grid/cube-grid.component.scss';
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected void configure(HttpSecurity http) throws Exception {
.csrf().disable()
.authorizeRequests()
// /rest/auth/** is used for token receiving and updating
.antMatchers("/**").permitAll()
.antMatchers("/").permitAll()
.antMatchers("/rest/repository/browser/**").permitAll()
.antMatchers("/admin/**").permitAll()
.antMatchers("/rest/auth/**").permitAll()
Expand Down

0 comments on commit 6d63be4

Please sign in to comment.