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
| // import and set up your test spoof. | |
| import Vue from 'vue'; | |
| import VueRouter from 'VueRouter'; | |
| import routes from './routes'; | |
| // Set up your spoofed VueJs App? Basically mock app for test. | |
| Vue.use(VueRouter); | |
| const router = new VueRouter({ | |
| mode: 'history', | |
| routes, |
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
| const axiosconfig = { | |
| baseurl: 'https://site.com/api/', | |
| timeout: 30000, | |
| }; | |
| import Vue from 'vue'; | |
| import axios from 'axios'; | |
| // Setting up Axios on Vue Instance, for use via this.$axios | |
| Vue.prototype.$axios = axios.create(axiosConfig); |
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
| <template> | |
| <div id='app'> | |
| <component :is="currentModal" :modal-data="extraData" v-if="showModal"></component> | |
| </div> | |
| </template> | |
| <script> | |
| import LoginModal from './LoginModal'; | |
| import LogoutModal from './LogoutModal'; |
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
| 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', |
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
| 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 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
| <template> | |
| <div>loading preview...</div> | |
| </template> | |
| <script> | |
| import prismic from 'prismic-javascript'; | |
| import LinkResolver from '~/functions/LinkResolver'; | |
| export default { |
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
| /** | |
| * 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 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(); |
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
| { | |
| // 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 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
| 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 /; |