This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.textLimiter(){ | |
display: block; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production: { | |
options: { | |
plugins: [ | |
require(‘less-plugin-glob’), | |
new (require(‘less-plugin-autoprefix’))({ | |
browsers: [‘> 1%’, ‘last 2 versions’, ‘ie 9’] | |
}), | |
new (require(‘less-plugin-clean-css’))({ | |
keepSpecialComments: false, | |
processImport: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="widget"> | |
<a class="widget__social" href="#">facebook</a> | |
<h3 class="widget__title">Slinto Komik</h3> | |
<div class="widget__stats"> | |
<a class="widget__stats-item" href="#">31 Like</a> | |
<a class="widget__stats-item active" href="#">140 Comment</a> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { | |
Http, | |
ConnectionBackend, | |
RequestOptions, | |
RequestOptionsArgs, | |
Response, | |
Headers | |
} from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get(url: string, options?: RequestOptionsArgs): Observable<any> { | |
this.requestInterceptor(); | |
return super.get(this.getFullUrl(url), this.requestOptions(options)) | |
.catch(this.onCatch) | |
.do((res: Response) => { | |
this.onSubscribeSuccess(res); | |
}, (error: any) => { | |
this.onSubscribeError(error); | |
}) | |
.finally(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private requestInterceptor(): void { | |
this.loaderService.showPreloader(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { PreloaderService } from '../../services/preloader-service'; | |
@Component({ | |
selector: 'preloader-full', | |
styleUrls: [ | |
'./preloader-full.scss' | |
], | |
templateUrl: './preloader-full.html' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="preloader-full" | |
*ngIf="preloaderService.getPreloaderCount('full') > 0"> | |
<div class="preloader-full__spinner">💩</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { PreloaderService } from '../../services/preloader-service'; | |
@Component({ | |
selector: 'preloader-small', | |
styleUrls: [ | |
'./preloader-small.scss' | |
], | |
templateUrl: './preloader-small.html' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="preloader-small" | |
*ngIf="preloaderService.getPreloaderCount('small') > 0 && preloaderService.getPreloaderCount('full') == 0" | |
></div> |
OlderNewer