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
# этап сборки (build stage) | |
FROM node:lts-alpine as build-stage | |
RUN echo http://mirror.yandex.ru/mirrors/alpine/v3.5/main > /etc/apk/repositories; \ | |
echo http://mirror.yandex.ru/mirrors/alpine/v3.5/community >> /etc/apk/repositories | |
WORKDIR /app | |
COPY package*.json ./ | |
# COPY .npmrc ./ | |
RUN yarn install --frozen-lockfile |
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
import DispatcherEvent from './DispatcherEvent' | |
export default class Dispatcher { | |
constructor () { | |
this.events = {} | |
} | |
dispatch (eventName, data) { | |
const event = this.events[eventName] | |
if (event) { |
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
numFormatted(number, is_full_conversion) { | |
let msrm = parseFloat(number); | |
if (msrm < 1) { | |
number = { | |
value: msrm.toFixed(2), | |
txt: null | |
}; | |
} else if (msrm >= 10000) { | |
if (!is_full_conversion) { | |
number = { |
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
function getRefQueryParam(name) { | |
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | |
var results = regex.exec(location.search); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
}; | |
let utmParamQueryString = ''; | |
let utmParamQueryStringTrimmed = ''; |
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
handleClickOutside (event) { | |
const uiModalBox = this.$refs.uiModalBox | |
if (!event.path.includes(uiModalBox) && !event.path.includes(this.el) && this.isShow == true) { | |
this.close() | |
} | |
} |
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
sudo lsof -t -i tcp:8080 | xargs kill -9 |
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
'use strict' | |
const fs = require('fs') | |
const path = require('path') | |
const rootFolder = __dirname // Your folder | |
const spider = (folder = rootFolder, state = []) => { | |
fs.readdirSync(folder).forEach(file => { | |
let dir = path.join(folder, file), | |
isDir = fs.lstatSync(dir).isDirectory() |
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
<section class="b-portfolio"> | |
<!-- Center --> | |
<div class="container"> | |
<div class="b-portfolio__box"> | |
<div class="b-portfolio__box__items">Блок 1</div> | |
<div class="b-portfolio__box__items">Блок 2</div> | |
<div class="b-portfolio__box__items">Блок 3</div> | |
</div> | |
</div> | |
</section> |
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> | |
<ui-label :filled="filled" :label-show="true"> | |
<template slot="label"><slot></slot></template> | |
<textarea class="form-control ui-comment-field" v-model="message"></textarea> | |
</ui-label> | |
</template> | |
<script> | |
import uiLabel from './ui-label.vue'; | |
export default { |
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> | |
<router-link tag="div" :to="link" class="tp-head-step"> | |
<ui-progress-bar :animate="{ progress: progress }" :size="size" :style="{margin: '0 auto 20px'}"> | |
<div class="tp-head-step__info"> | |
<span>{{ currentStep }}/{{ maxSteps }}</span> | |
</div> | |
</ui-progress-bar> | |
<div :class="['tp-head-step__left-link', {'tp-head-step__left-link--active': isActive, 'tp-head-step__left-link--disabled': !isActive ? isDisabled : false }]">Продукт<br> и поставка</div> | |
</router-link> | |
</template> |
NewerOlder