Skip to content

Instantly share code, notes, and snippets.

commit('loading/TOGGLE_LOADING', null, { root: true })
x y
path:
M ----- starting point of path
H ----- horizontal line
V ----- vertical line
Z ----- line from end point to beginning point
d: M0 H 80 V 80 H -80 Z
curved path:
@Bachana123
Bachana123 / vuex fetch index page
Created February 22, 2020 18:14
vuex fetch index page
async fetch({store}){
await store.dispatch('modul/actionName')
}
@Bachana123
Bachana123 / nuxt store error catch path
Created February 22, 2020 08:29
nuxt store error catch path
state.error = data.response.data.errors;
@Bachana123
Bachana123 / border as image
Last active February 12, 2020 08:17
border as image
border: 4px solid;
border-image-source: url(http://i.stack.imgur.com/wLdVc.png);
border-image-width: 1;
border-image-slice: 2;
border-image-repeat: round;
short hand:
border: 4px solid;
border-image: url(http://i.stack.imgur.com/wLdVc.png) 2 round;
@Bachana123
Bachana123 / REGEX collection
Last active February 6, 2020 08:10
regex collection
Removing Tag : /<\/?( your Tag name here )\b[^<>]*>/g
Removing all kind of Tags : replace(/<[^>]*>/g, '')
this.$refs[div][0].getBoundingClientRect()
@Bachana123
Bachana123 / TEXT AREA automatic height
Created January 29, 2020 10:26
TEXT AREA automatic height
textArea() {
var height = this.$refs.textArea.scrollHeight
this.$refs.textArea.style.cssText = Math.floor(height/22) >= 2 ? 'height:' + 42 + 'px' : 'height: 22px'
}
@Bachana123
Bachana123 / BLOCK SAFARI STYLE
Last active February 25, 2020 08:46
BLOCK SAFARI STYLE
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, .yourcssrule {
your css property
}
}
// &:not(:root:root){
// margin-bottom: 0px !important;
// }
const Axios = require('axios')
sitemap: {
routes: async () => {
const { data } = await Axios.get('here comes you API', { headers: {
'Accept-Language' : 'ka'
}})
return data.data.map(x => ({
changefreq: x.frequency,
priority: x.priority,