Skip to content

Instantly share code, notes, and snippets.

@kerryboyko
kerryboyko / README.md
Last active April 26, 2023 16:08
VueJS Best Practices Guide

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

@lukepolo
lukepolo / UserStore.js
Last active November 5, 2018 21:09
Vuex Sample - read filename inside of the file
// store/modules/user/UserStore.js
export default {
state: {
user: user,
},
actions: {
getCurrentUser : ({commit}) => {
Vue.http.get(Vue.action('User\UserController@index')).then((response) => {
commit('SET_USER', response.data);
}, (errors) => {
<?php
namespace Roots\Bedrock;
use League\CommonMark\CommonMarkConverter;
class MarkdownPosts {
const POST_OPTION = 'roots/bedrock/markdown_posts';
const IS_MD_META = 'roots/bedrock/is_markdown';