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
[
{
"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,
{
"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 / 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",
@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
<div class="lesson__box" data-v-74c6614e="">
<div class="lesson__nav nav" data-v-62856932="" data-v-74c6614e="">
<div class="nav__title" data-v-62856932=""><span class="nav__title-count" data-v-62856932="">1/2</span>
Урок 1 Тема 2
</div>
<div class="nav__actions" data-v-62856932="">
<a href="#" class="nav__actions-prev" data-v-62856932="">
<svg data-v-62856932="" viewBox="0 0 20 20" preserveAspectRatio="none" class="svg-icon svg-icon--arrow-left-filled" style="width: 1em;">
<path xmlns="http://www.w3.org/2000/svg" d="M10 0.579956C14.3839 0.579956 18.2949 3.73092 19.2119 8.02164C19.6701 10.1656 19.3615 12.4453 18.3393 14.3852C17.3555 16.2522 15.7427 17.7611 13.8131 18.6162C11.806 19.5059 9.50179 19.6609 7.39219 19.0542C5.35699 18.4691 3.55243 17.1848 2.32387 15.4609C-0.244852 11.8568 0.098587 6.79428 3.12067 3.56484C4.89187 1.6722 7.40755 0.579956 10 0.579956ZM5.48107 10.5032L8.04907 13.1332C8.69923 13.7992 9.72691 12.7902 9.07939 12.1273L7.7836