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
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
**/*.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
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
(function($) { | |
/** | |
* code from stackoverflow: | |
* http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery | |
* | |
* 用于处理 serializeAray 数据后格式 | |
* | |
* <form id="form"> | |
* <input type="text" name="lname" value="lee"/> | |
* <input type="text" name="fname" value="zq"/> |
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
$.ajax({ | |
url: '/twitter/newtwitter', | |
type: "POST", | |
timeout: 60000, | |
data: data, | |
dataType: 'json', | |
success: function(json){ | |
if (json == null) { | |
alert(MGLANG.msgTimeout); | |
} else { |
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
/* | |
* css线性渐变: | |
* http://www.w3cplus.com/content/css3-gradient | |
*/ | |
background: -webkit-linear-gradient(top,#fff,#ededed, #fff); | |
/* | |
* 带有角度的 | |
*/ | |
background:-webkit-linear-gradient(45deg, #ef3c60 0, #f55679 50%, #f66c8b 50%, #f76f8d 100%); |
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
[user] | |
name = LeezQ | |
email = lizhenq2009@gmail.com | |
[push] | |
default = simple | |
[alias] | |
st = status | |
co = checkout | |
ci = commit | |
br = branch |
NewerOlder