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
"New Vuetify Layout": { | |
"prefix": "vvl", | |
"body": [ | |
"v-container", | |
" v-layout( row )", | |
" v-flex( xs12 )" | |
], | |
"description": "New Vuetify Layout" | |
} |
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
"New Vuetify Component": { | |
"prefix": "vvc", | |
"body": [ | |
"<template lang=\"pug\">", | |
"", | |
" v-container", | |
" v-layout( row )", | |
" flex( ${2:xs12} )", | |
"", | |
"</template>", |
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
"New Vue Router": { | |
"prefix": "vnr", | |
"body": [ | |
"import Vue from 'vue'", | |
"import Router from 'vue-router'", | |
"import Home from '@/components/home'", | |
"", | |
"Vue.use(Router)", | |
"", | |
"export default new Router({", |
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
"New Vue Store": { | |
"prefix": "vns", | |
"body": [ | |
"import Vue from 'vue'", | |
"import Vuex from 'vuex'", | |
"", | |
"Vue.use(Vuex)", | |
"", | |
"const state = {", | |
" ${1://}", |
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
"New Vue Component": { | |
"prefix": "vnc", | |
"body": [ | |
"<template lang=\"pug\">", | |
" //", | |
"</template>", | |
"", | |
"<script>", | |
" export default {", | |
" name: '${1:name}',", |
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
Промежуточные функции, которые будут вызваны в процессе запроса или ответа от сервера. |
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
Научитесь быть счастливым с тем, что имеете, пока добиваетесь того, чего хотите. |
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
To use pug and stylus on the webpack template vue-cli provides, simply run | |
npm i --save-dev pug pug-loader stylus stylus-loader | |
Then add the attributes to the .vue root tags, eg: | |
<template lang="pug"></template> | |
<style lang="stylus"></style>. |
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
// по-моему идеально подойдет перебирающий метод filter | |
primo = common.filter(item => item.name === 'pane' || 'wardrobe' || 'ironing') |
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
[ | |
{ | |
"name": "fridge", | |
"title": "холодильник", | |
"value": 0, | |
"price": 300, | |
"min": 0, | |
"max": 5, | |
"step": 1, | |
"time": 30, |