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
| git clone https://github.com/qdouble/angular-webpack-starter.git angular-keycloak | |
| cd angular-keycloak | |
| npm install | |
| npm run start:hmr |
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
| # From https://coderwall.com/p/euwpig/a-better-git-log | |
| git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| # add it to globalconfig | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
| # rest head | |
| git reset --hard HEAD^ | |
| # reset head by number of commits |
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
| <div class="row"> | |
| <div class="col-xs-12"> | |
| <video #video class="video"></video> | |
| </div> | |
| </div> | |
| <div class="row"> | |
| <div class="col-xs-12"> | |
| <button md-raised-button color="primary" (click)="startRecording()"> Record </button> | |
| <button md-raised-button color="primary"(click) ="stopRecording()"> Stop</button> | |
| <button md-raised-button color="primary" (click)="download()"> Download</button> |
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
| yarn add recordrtc |
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
| npm install -g yarnpkg |
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
| // Login.Component.ts | |
| // check if user is already logged in | |
| ngOnInit() { | |
| this.checkLoginSubscriber = this.loginService.isLoggedIn() | |
| .subscribe(loggedIn => { | |
| //console.log("Logged In?: " + loggedIn); | |
| if (loggedIn) { | |
| this.loginService.redirectToAuthorizedPage(); | |
| } |
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
| function setupCheckLoginIframe() { | |
| var promise = createPromise(); | |
| if (!loginIframe.enable) { | |
| promise.setSuccess(); | |
| return promise.promise; | |
| } | |
| if (loginIframe.iframe) { | |
| promise.setSuccess(); |
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
| kc.isLoggedIn = function () { | |
| var promise = createPromise(); | |
| storage = new PersistentStorage(); | |
| if (!kc.responseMode) { | |
| kc.responseMode = 'fragment'; | |
| } | |
| if (!kc.responseType) { | |
| kc.responseType = 'code'; | |
| kc.flow = 'standard'; | |
| } |
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
| //KeycloakService.init() | |
| // .then(() => { | |
| const platform = platformBrowserDynamic(); | |
| platform.bootstrapModule(AppModule); | |
| // }) | |
| // .catch(() => window.location.reload()); |
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
| KeycloakService.init() | |
| .then(() => { | |
| const platform = platformBrowserDynamic(); | |
| platform.bootstrapModule(AppModule); | |
| }) | |
| .catch(() => window.location.reload()); |