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
browser-sync start -s -b "google chrome" -f "./index.html" "css/*.css" "js/**" |
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
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist |
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
KeycloakService.init() | |
.then(() => { | |
const platform = platformBrowserDynamic(); | |
platform.bootstrapModule(AppModule); | |
}) | |
.catch(() => window.location.reload()); |
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
//KeycloakService.init() | |
// .then(() => { | |
const platform = platformBrowserDynamic(); | |
platform.bootstrapModule(AppModule); | |
// }) | |
// .catch(() => window.location.reload()); |
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
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 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 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 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 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 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> |
OlderNewer