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
const request = require('request'); | |
const crypto = require('crypto'); | |
const fs = require('fs'); | |
module.exports = antOpenUnionBlockchain; | |
function antOpenUnionBlockchain(options, callback) { | |
if(!options.AccessId) return callback('Please provide AccessId.'); | |
if(!options.AccessKey) return callback('Please provide AccessKey Path.'); |
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
**/*.md | |
**/*.svg | |
**/*.ejs | |
**/*.html | |
package.json | |
.umi | |
.umi-production |
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 fetch from 'dva/fetch'; | |
import qs from 'qs'; | |
import router from 'umi/router'; | |
import { notification } from 'antd'; | |
import message from 'antd/lib/message'; | |
import getCookie from './getCookie'; | |
const messages = { |
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 config(api, sdkDir) { | |
const tmp = sdkDir.split('/'); | |
const namespace = tmp[tmp.length - 1]; | |
return { | |
api, | |
sdkDir, | |
namespace: `${namespace[0].toUpperCase()}${namespace.substr(1)}API`, | |
camelCase: 'lower', | |
templatePath: './src/services/sdk.njk', | |
interfaceTemplatePath: './src/services/interface.njk', |
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 * as menuServices from '@/services/atgauth/menu'; | |
export default { | |
namespace: 'model', | |
state: { | |
menuTree: [], | |
}, | |
effects: { |
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
if (window.devicePixelRatio && devicePixelRatio >= 2) { | |
var testElem = document.createElement('div'); | |
testElem.style.border = '.5px solid transparent'; | |
document.body.appendChild(testElem); | |
if (testElem.offsetHeight == 1) { | |
document.documentElement.classList.add('hairlines'); | |
} | |
document.body.removeChild(testElem); | |
} |
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
// FlexLess | |
// ======== | |
// | |
// Less mixins for using flexbox without crying. | |
// | |
// Last update: 02.08.2013 | |
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
simply use a 'script' tag with a dot after. | |
script. | |
var users = !{JSON.stringify(users).replace(/<\//g, "<\\/")} |
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
.swipe-wrap > div a { | |
-webkit-transform-style: preserve-3d; | |
display: block; | |
} | |
.swipe-wrap a img { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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 { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
NewerOlder