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 { CSSPropertiesWithMultiValues } from '@emotion/serialize'; | |
import React, { PropsWithChildren, useEffect, useState } from 'react'; | |
type ScreenSize = 'xs' | 'sm' | 'md' | 'lg'; | |
const screenSize = { | |
xs: 0, | |
sm: 576, | |
md: 768, | |
lg: 992, |
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
{ | |
"ETH_mainnet": { | |
"name": "ELA-DID-Sidechain Mainnet", | |
"chain": "ETH", | |
"network": "mainnet", | |
"chainId": 22, | |
"networkId": 22 | |
}, | |
"EXP_mainnet": { | |
"name": "Expanse Network", |
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
module.exports = (api) => { | |
const mode = process.env.NODE_ENV ?? 'production'; | |
// This caches the Babel config by environment. | |
api.cache.using(() => mode); | |
return { | |
presets: [ | |
[ | |
'@babel/preset-env', |
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
// This gist allows you to setup simple color management through CSS variables. | |
$colors: ( | |
// NewUi / Back_dark `#161620` | |
'bgPrimary': '22, 22, 32', | |
// NewUi / Back_blue `#23232F` | |
'bgSecondary': '35, 35, 47', | |
// Background / new `#262740` | |
'bgCosmic': '38, 39, 64', | |
// NewUI / white `#FFFFFF` | |
'textPrimary': '255, 255, 255', |
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
/* | |
@Params: | |
action: Promise | |
*/ | |
const syncRequests = function(action) { | |
let req = null; | |
let requestInProcess = false; | |
return (...params) => { | |
if (requestInProcess) { |
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
//https://github.com/vuejs/vue/pull/7765#issuecomment-401985464 | |
Vue.prototype._b = (function(bind) { | |
return function(data, tag, value, asProp, isSync) { | |
if (value && value.$scopedSlots) { | |
data.scopedSlots = value.$scopedSlots; | |
delete value.$scopedSlots; | |
} | |
return bind.apply(this, arguments); | |
}; |
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 START = '/'; | |
const trailingSlashRE = /\/?$/; | |
function isObjectEqual (a, b) { | |
if ( a === void 0 ) a = {}; | |
if ( b === void 0 ) b = {}; | |
// handle null value #1566 | |
if (!a || !b) { return a === b } | |
var aKeys = Object.keys(a); |