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
// components/component.vue | |
<template lang="pug"> | |
div {{ new Date() | moment("dddd, MMMM Do YYYY, h:mm:ss a") }} | |
b-form-select(:value="locale" @change="changeLocale($event)") | |
option(v-for="lang in locales" :value="lang" :key="lang") | |
i(:class="'flag-icon-' + lang").flag-icon | |
</template> | |
<script> |
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
#!/bin/bash | |
LOC_DIR="/etc/nginx" | |
if [ ! -f $LOC_DIR/ws.locations ]; then | |
echo """ | |
location /notifications/hub { | |
proxy_pass http://localhost:$3; | |
proxy_set_header Upgrade \$http_upgrade; | |
proxy_set_header Connection "upgrade"; |