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
| //Q1 | |
| console.log(typeof typeof 2); //? | |
| //Q2 | |
| console.log(1+2+3+'1'); //? | |
| //Q3 | |
| console.log(1+[]+1+{}) //? | |
| //Q4 |
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
| /** | |
| * Проверка по косвенным параметрам на бота\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 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
| 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 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
| 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 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
| 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 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
| <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 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
| version: '2' | |
| tasks: | |
| #Start\stop project | |
| up: | |
| desc: "Обновление зависимостей проекта" | |
| cmds: | |
| - yarn install | |
| start: |
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
| /* 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 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
| const fs = require('fs'), | |
| path = require('path'), | |
| MFS = require('memory-fs'), | |
| webpack = require('webpack'), | |
| chokidar = require('chokidar'), | |
| clientConfig = require('./webpack.client.js'), | |
| serverConfig = require('./webpack.server.js'); | |
| const readFile = (fs, file) => { | |
| try { |
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
| import Vue from 'vue'; | |
| import VueRouter from 'vue-router'; | |
| import Vuex from 'vuex'; | |
| import App from './app.vue'; | |
| import { createRouter } from '@client/router.js'; | |
| import { createStore } from './store/store.js'; | |
| import { sync } from 'vuex-router-sync'; | |
| Vue.use(VueRouter); | |
| Vue.use(Vuex); |
OlderNewer