This file contains hidden or 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
| version: '3.6' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.6.1 | |
| container_name: es01 | |
| environment: | |
| - bootstrap.memory_lock=true | |
| - discovery.type=single-node | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| - cluster.routing.allocation.disk.threshold_enabled=false |
This file contains hidden or 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
| version: "3" | |
| services: | |
| db: | |
| image: couchbase | |
| ports: | |
| - 8091:8091 | |
| - 8092:8092 | |
| - 8093:8093 | |
| - 8094:8094 | |
| - 11210:11210 |
This file contains hidden or 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
| { | |
| "styles": [ | |
| "src/styles.css", | |
| "./node_modules/rateyo/src/jquery.rateyo.css" | |
| ], | |
| "scripts": [ | |
| "./node_modules/jquery/dist/jquery.min.js", | |
| "./node_modules/rateyo/src/jquery.rateyo.js" | |
| ] | |
| } |
This file contains hidden or 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 { Observable, from, of } from 'rxjs'; | |
| import { HttpClient, HttpParams } from '@angular/common/http'; | |
| import Swal from 'sweetalert2'; | |
| import { tap, flatMap, map, switchMap, delay } from 'rxjs/operators'; | |
| import { FuseSplashScreenService } from '@fuse/services/splash-screen.service'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) |
This file contains hidden or 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
| const passport = require('passport') | |
| const BasicStrategy = require('passport-http').BasicStrategy | |
| passport.use(new BasicStrategy( | |
| function(userid, password, done) { | |
| if(userid !== 'admin') return done(null, false) | |
| if(password !== 'admin@123') return done(null, false) | |
| if(userid == 'admin' && password == 'admin@123') { | |
| return done(null,true) | |
| } |
This file contains hidden or 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 { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http"; | |
| import { Observable } from "rxjs"; | |
| import { finalize, delay } from "rxjs/operators"; | |
| import { LoaderService } from '../services/loader.service'; | |
| @Injectable() | |
| export class LoaderInterceptor implements HttpInterceptor { | |
| constructor(public loaderService: LoaderService) { } | |
| intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { |
This file contains hidden or 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 { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; | |
| import { Observable } from 'rxjs'; | |
| @Injectable() | |
| export class TokenInterceptor implements HttpInterceptor { | |
| constructor() {} | |
| intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
| const token = localStorage.getItem('token') || "" | |
| request = request.clone({ |
This file contains hidden or 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 { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; | |
| import { Observable } from 'rxjs'; | |
| export const InterceptorSkipHeader = 'X-Skip-Authorization'; | |
| @Injectable() | |
| export class SkippableInterceptor implements HttpInterceptor { |
This file contains hidden or 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
| { | |
| "parserOptions": { | |
| "ecmaVersion": 6, | |
| "sourceType": "module", | |
| "ecmaFeatures": {} | |
| }, | |
| "rules": { | |
| "semi": ["warn", "always"], | |
| "quotes": ["warn", "double"], | |
| "no-dupe-args": ["error"], |
This file contains hidden or 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
| language: node_js | |
| node_js: | |
| - 12.6 | |
| cache: | |
| directories: | |
| - node_modules | |
| before_script: | |
| - npm install | |
| script: |