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
{ | |
// editor settings | |
"editor.formatOnSave": true, | |
"editor.renderWhitespace": "all", | |
// my old fav | |
// "editor.fontFamily": "Hack", | |
// "editor.fontWeight": "500", | |
// Fira, omg that @ looks HORRID |
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
// plugins/pusher.client.js | |
// Browser only, create a new instance of pusher on load | |
// Accessible via this.$pusher | |
import Pusher from 'pusher-js'; | |
export default ({ env, store }, inject) => { | |
// we need withCredentials for our CORS setup | |
Pusher.Runtime.createXHR = () => { | |
var xhr = new XMLHttpRequest(); |
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
/** | |
* Integrates Buefy / Bulma CSS Components | |
* https://buefy.github.io/documentation/start | |
*/ | |
import Vue from 'vue'; | |
// Adds specific buefy components, matching to their name in docs | |
import Autocomplete from 'buefy/dist/components/autocomplete'; | |
import Checkbox from 'buefy/dist/components/checkbox'; |
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
server { | |
listen 80; | |
server_name site.com www.site.com *.site.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
server_name site.com www.site.com *.site.com; | |
root /; |
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
{ | |
// editor settings | |
"editor.formatOnSave": true, | |
"editor.renderWhitespace": "all", | |
"editor.fontSize": 14, | |
"editor.fontWeight": "500", | |
"editor.lineHeight": 28, | |
"editor.letterSpacing": 0, | |
"editor.fontFamily": "Hack", | |
"editor.insertSpaces": false, |
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
// 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(); |
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
/** | |
* Prismic API | |
* Creates a prismic api instance on the app, for use in asyncData for loading content. | |
*/ | |
import Vue from 'vue'; | |
import prismic from 'prismic-javascript'; | |
export default ({ app, env, error }) => { | |
const PrismicApi = { | |
// use this to access singular api instance in app |
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
<template> | |
<div>loading preview...</div> | |
</template> | |
<script> | |
import prismic from 'prismic-javascript'; | |
import LinkResolver from '~/functions/LinkResolver'; | |
export default { |
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
import Vue from 'vue'; | |
import VueLodash from './vue-lodash.js'; | |
Vue.use(VueLodash); | |
// On components, you'll now have access to | |
this._.filter(); |
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
import _ from 'lodash'; | |
import Vue from 'vue'; | |
const Tracking = { | |
fbqActive: false, | |
deposit(notificationID, deposit) { | |
this.ecommerce(notificationID, deposit); | |
this.fbq('Deposit', { value: deposit.revenue, currency: 'USD' }); | |
this.adwordConversion({ | |
google_conversion_label: 'someconversionlabel', |
NewerOlder