This file contains 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
/* eslint-disable no-console */ | |
"use strict"; | |
/** | |
* @module Configuration app variables by process.env | |
*/ | |
const ENV = process.env; | |
/** | |
* Application envoirment config | |
* @type {Object} |
This file contains 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
version: '2' | |
tasks: | |
#Start\stop project | |
up: | |
desc: "Обновление зависимостей проекта" | |
cmds: | |
- yarn install | |
start: |
This file contains 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> | |
<svg class="bgln__icon" :viewBox="svg.viewBox"> | |
<slot></slot> | |
<use :xlink:href="location + '#' + svg.id" /> | |
</svg> | |
</template> | |
<script> | |
export default { | |
name: 'icon', | |
data() { |
This file contains 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 merge = require('webpack-merge'), | |
path = require('path'), | |
fs = require('fs'), | |
webpack = require('webpack'), | |
appConf = require('./../src/env.conf.js'), | |
VueSSRServerPlugin = require("vue-server-renderer/server-plugin"), | |
sassVars = require('./../src/sass/sass_context'), | |
baseConfig = require('./webpack.base.js'), | |
sassRecources = [ | |
path.resolve(__dirname, "./../src/sass/_context.scss") |
This file contains 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 | |
merge = require('webpack-merge'), | |
baseConfig = require('./webpack.base.js'), | |
BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin, | |
VueSSRClientPlugin = require('vue-server-renderer/client-plugin'), | |
path = require('path'), | |
webpack = require('webpack'), | |
appConf = require('./../src/env.conf.js'), | |
sassVars = require('./../src/sass/sass_context'), | |
webpackExternals = [], |
This file contains 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 APP_CONF = require('./../src/env.conf.js'), | |
webpack = require('webpack'), | |
VueLoaderPlugin = require('vue-loader/lib/plugin'), | |
CopyWebpackPlugin = require('copy-webpack-plugin'), | |
path = require('path'), | |
plugins = [ | |
new webpack.ProvidePlugin({ | |
"Vue": 'vue', | |
"Vuex": ['vuex/dist/vuex.esm.js', 'default'], | |
"mapState": ['vuex/dist/vuex.esm.js', 'mapState'], |
This file contains 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
/** | |
* Проверка по косвенным параметрам на бота\selenium\headless browser | |
* @function botDetection | |
* @return {Boolean} isBot flag | |
*/ | |
botDetection () { | |
let isBot = false, | |
rules = [ | |
//Phantomjs как правило, не имеет внутри себя браузерных плагинов | |
() => (navigator.plugins instanceof PluginArray) === false || navigator.plugins.length == 0, |
This file contains 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
//Q1 | |
console.log(typeof typeof 2); //? | |
//Q2 | |
console.log(1+2+3+'1'); //? | |
//Q3 | |
console.log(1+[]+1+{}) //? | |
//Q4 |
NewerOlder