@author Bachana Papunashvili
responsive font @mixin for scss
@example @include responsive-font(14, 30, 320, 1600);
//
// responsive font
format(time, format) { | |
var t = new Date(time); | |
var tf = function (i) { return (i < 10 ? '0' : '') + i }; | |
return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) { | |
switch (a) { | |
case 'yyyy': | |
return tf(t.getFullYear()); | |
break; | |
case 'MM': | |
return tf(t.getMonth() + 1); |
new Date( time.toLocaleDateString('ka-GE',{ day: 'numeric', month: 'long', year: 'numeric' }) | |
// | |
/// @group Fonts | |
/// @access public | |
/// @param {string} $lang-code | |
/// @param {string} $font-family | |
/// @param {string} $font-size | |
/// @example body{ @include fonts('ka','bpg-nino-mtavruli',18px) } | |
/// @return | |
/// html[lang="ka"]{ body{ font-family: 'bpg-nino-mtavruli; font-size: 18px;} } | |
// |
// fixed nested link routing problem Instead localePath | |
import Vue from 'vue' | |
Vue.mixin({ | |
methods: { | |
localeLink(link,lang = ''){ | |
link = link.split("/").filter(item => item !="").join("/"); | |
if(lang!='') |
import Vue from 'vue' | |
Vue.mixin({ | |
methods: { | |
removeTag(string, tag) { | |
var regex = "/<\/?(" + tag + ")\b[^<>]*>/g" | |
return string.replace( regex, "") | |
} | |
} | |
}) |
const ka = require('../lang/ka-GE.js') | |
const en = require('../lang/en-US.js') | |
const I18N = { | |
locales: [ | |
{ | |
code: 'ka', | |
iso: 'ka', | |
name: 'Georgian' | |
}, | |
{ |
/* | |
** Forcing the scroll position to the top for every routes: | |
*/ | |
// router: { | |
// scrollBehavior: function (to, from, savedPosition) { | |
// console.log(to); | |
// return { x: 0, y: 0 } | |
// } | |
// }, |
const favicon = require('./config/favicon') | |
head: { | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
...favicon.meta | |
], | |
link: [ | |
...favicon.links | |
] |
- watch: { | |
'$route' (to, from) { | |
this.updateBurger(false); | |
} | |
}, |