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
var VERSION = 'v1'; | |
var cacheFirstFiles = [ | |
// ADDME: Add paths and URLs to pull from cache first if it has been loaded before. Else fetch from network. | |
// If loading from cache, fetch from network in the background to update the resource. Examples: | |
// 'assets/img/logo.png', | |
// 'assets/models/controller.gltf', | |
]; |
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
<?php | |
// Freek posted a query today, that drives OhDearApp filters (the app recommended!): | |
// @link https://twitter.com/freekmurze/status/972299131497713664 | |
// We can make the query more eloquent, so why don't we use a scope! | |
// I | |
// Let's make it really eloquent and get here: | |
$site->downtimePeriods() |
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
// In my global app layout, once my app is mounted and ready to listen... | |
import { mapActions, mapGetters } from 'vuex'; | |
const Layout = { | |
mounted() { | |
// set up pusher listeners | |
this.connectToPublicChannel(); | |
this.$watch('authenticated', (auth) => { | |
if (auth) this.connectToUserChannel(); |
OlderNewer