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 lang="pug"> | |
.vm-gallery | |
div( | |
:style="{ transitionDuration: transitionDuration, transform: translate3DPosition }" | |
ref="galleryItems" | |
).vm-gallery-items | |
div(v-for="imageItem in imageNodes").vm-gallery-item | |
img( | |
:src="imageItem.src" | |
:key="imageItem.src" |
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
// TIME_INTERVAL - это те самые интервалы между временем. | |
// START_TIME - "00:00" | |
// END_TIME - "23:00" | |
function getTimesInterval(TIME_INTERVAL, START_TIME, END_TIME) { | |
const INT_START_TIME = convert24ToInt(START_TIME, 'START') | |
const INT_END_TIME = convert24ToInt(END_TIME, 'END') | |
const INT_STEP = TIME_INTERVAL * 100 / 60 | |
const TIMES_RAGE = generateRange(INT_START_TIME, INT_END_TIME, INT_STEP).map(convertIntTo24) | |
function convert24ToInt(TIME, TYPE) { |
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
[ | |
{ | |
id: 1 | |
name: 'a' | |
}, | |
{ | |
id: 2 | |
name: 'b' | |
}, | |
{ |
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
[ | |
{ | |
id: '1', | |
name: 'Fish a b', | |
description: 'tesasdfs sadfadsfas fsadfasfsaf sfasfsaf 234234234 24323423 sdfsdafsaf sasfssafsafsaf', | |
price: '1000', | |
category: ['a', 'b'] | |
}, | |
{ | |
id: '2', |