Skip to content

Instantly share code, notes, and snippets.

View dpmango's full-sized avatar
🌎
Available for project-based work

Sergey Khmelevskoy dpmango

🌎
Available for project-based work
View GitHub Profile
const productItemDefaults = {
theme: {
backgroundColor: '#1E1F26',
borderRadius: 20,
cardBackgroundColor: '#191B22',
imageTransparency: 60,
counterColor: '#1F75EA',
productColor: '#FFFFFF',
counterTextColor: '#FFFFFF',
priceColor: '#FFFFFF',
[
{
"id": "hello",
"theme": {
"description": "Приветствуем нашего нового пользователя!",
"roundingBlocks": 20,
"backgroundColor": "#191b22",
"backgroundTransparency": 80,
"gradTransparency": 40,
"shadowTransparency": 100,
{
"header": {
"topline": {
"text": "У Flomni новый внешний вид и новые функции в продуктах.",
"link": "Подробнее"
},
"button": {
"login": "Войти",
"demo": "Оставить заявку"
},
// получение данных по модулю
// TODO - возможно лучше продублировать moduleId во всех запросах
const getModuleDataset = async ({
ModuleId,
PageNumber,
PageSize,
}: IGetModuleDatasetRequest) => {
const request = {
ModuleId: ModuleId || currentModuleId.value,
PageNumber: PageNumber || moduleDatasetMeta.value.page,
@dpmango
dpmango / tr.locale.json
Last active December 14, 2022 13:46
tr.locale.json
{
"auth": {
"entry": {
"title": "Giriş / Kayıt",
"instruction": "Bir yetkilendirme kodu almak için E-postanızı girin",
"action": "Giriş Yap",
"locked": "Giriş, {{ minutesToUnlock}} dakikalı süreyle engellendi"
},
"code": {
"title": "Doğrulama",
{
"auth": {
"entry": {
"title": "Create Account / Log in",
"instruction": "Enter your Email to receive an authorization code",
"action": "Log in",
"locked": "Login blocked for {{minutesToUnlock}} minutes"
},
"code": {
"title": "Verification",
@dpmango
dpmango / header.setup.vue
Last active September 22, 2022 12:16
header.vue
<script setup>
import _ from 'lodash'
defineProps({
variant: {
type: String,
default: 'main',
validator: (x) => ['main'].includes(x),
},
})
async requestStructure({ dispatch, commit, getters }, { account, level, type }) {
try {
let structure = {
slot: null,
lvl1: [],
lvl2: [],
// lvl3: [],
}
const contract = getters.getMainContract
@dpmango
dpmango / moscowMetro-lines.js
Last active January 21, 2022 02:51
moscowMetro-lines.js
// https://api.hh.ru/metro/1
export const METRO_LINES = [
{
id: "1",
hex_color: "E42313",
name: "Сокольническая",
stations: [
{ id: "1.148", name: "Бульвар Рокоссовского", lat: 55.814916, lng: 37.732227, order: 0 },
{ id: "1.155", name: "Черкизовская", lat: 55.802787, lng: 37.744863, order: 1 },
getCategoryFilters = computedFn((cat_id) => {
const DEV_perf = performance.now();
if (this.categoriesList && this.categoriesList.length) {
// get depths first
const category = findNodeById(this.categoriesList, cat_id);
if (category) {
const processFilters = (cat_filters) => {
// passing display list of select filters