profile
viewpoint

push eventahuigo/b

Xuehui Ye

commit sha 03f6bf0c04a2b3992c90758d469e4dab1216c5c1

msg:pg

view details

push time in 19 hours

push eventahuigo/a

Xuehui Ye

commit sha 6d87d9380c90dce8a5dedbf4d56c1e93df5cb7f9

pg

view details

push time in 19 hours

push eventahuigo/repo

Xuehui Ye

commit sha 828187798bd7761e0250d7f413dc7bd348bcf53d

all

view details

Xuehui Ye

commit sha e2a131434d01b527c486feaf1ba5b1528bfc1551

Merge branch 'master' of github.com:ahuigo/repo

view details

push time in 2 days

push eventahuigo/dockerfile

Xuehui Ye

commit sha cca7552e66cf0cf621f8af4570e9dcdd2c0038da

antd-pro

view details

push time in 2 days

push eventahuigo/b

Xuehui Ye

commit sha 53fdafc998768bef59165a469712af64bc87fd54

msg:post

view details

push time in 2 days

push eventahuigo/a

Xuehui Ye

commit sha e851527c2ad2ecf56a43d0c79004c445bd9acd4f

post

view details

push time in 2 days

push eventahuigo/go-lib

Xuehui Ye

commit sha fad843e94a31d7b45baf6210e48c07008479e8b4

web

view details

push time in 6 days

push eventahuigo/b

Xuehui Ye

commit sha 2f4b1408410bf32007fff69d940bc260df7cb7c2

msg:go-time

view details

push time in 6 days

push eventahuigo/a

Xuehui Ye

commit sha 65ccb7f576f89de4193d6c89e486e40ef8fd43cb

go-time

view details

push time in 6 days

push eventahuigo/go-lib

Xuehui Ye

commit sha cc2cef21ad23fbd2681377431fe8a4b64c2636bf

docker

view details

Xuehui Ye

commit sha 21771450dfdddc4f556be5bab5b50e4f66775e33

Merge branch 'master' of https://github.com/ahuigo/go-lib

view details

Xuehui Ye

commit sha c88d94be91d3fa6a0f634665b6568cc5e9b8ea3a

example

view details

push time in 6 days

push eventahuigo/b

Xuehui Ye

commit sha 15dc0c5c008984065dec58932d7b93f578da49fc

msg:index

view details

push time in 6 days

push eventahuigo/a

Xuehui Ye

commit sha 5c85d6ae01c5e7bbaaad1628799437f0ec3c99fc

ski

view details

Xuehui Ye

commit sha ff8092aedb622de9fc24e5656d8bb54670335837

index

view details

push time in 6 days

push eventahuigo/a

Xuehui Ye

commit sha c3a63c7214ee66cf8be1afed2e407fdb0abe44dd

webpack

view details

Xuehui Ye

commit sha 1f579a356bf6aab2f8df4abc38298438a53bcf14

Merge branch 'master' of https://github.com/ahuigo/a

view details

Xuehui Ye

commit sha 4c62cb0b0cc4de83dc896dd80d41df526e971490

webpack

view details

push time in 7 days

push eventahuigo/b

Xuehui Ye

commit sha c350450670c4c2857ee1e9e59eff75c73ddc7bf2

msg:ski

view details

push time in 9 days

push eventahuigo/a

Xuehui Ye

commit sha 8ed06859ef9ace36d8d9603a36020090b14736cc

ski

view details

push time in 9 days

push eventahuigo/b

Xuehui Ye

commit sha cb57351c547f8ae3ded9f2df2c7eb01d71b1ec96

msg:ski

view details

push time in 9 days

push eventahuigo/a

Xuehui Ye

commit sha 6edd988ba3811c54eeef03a175483a32116c2f29

ski

view details

push time in 9 days

push eventahuigo/b

Xuehui Ye

commit sha 8dd3f87c7876f911cdee0d57fac2e4147099d4ef

msg:ski

view details

push time in 9 days

push eventahuigo/a

Xuehui Ye

commit sha c22cc257765dab6396a8229697e7adcdd25647f9

ski

view details

push time in 9 days

startedPepsRyuu/nollup

started time in 10 days

startedPepsRyuu/nollup

started time in 10 days

push eventahuigo/a

Xuehui Ye

commit sha bd748100f55217ed9aaa0d6f48cffebaf85f44a9

react-dom

view details

Xuehui Ye

commit sha eb0e620ba353eae1f577e7b0d1cf2dd0c33de721

Merge branch 'master' of https://github.com/ahuigo/a

view details

push time in 12 days

push eventahuigo/a

Xuehui Ye

commit sha 3744dbc60d9beb8a3b8324cee8cb1c82a9b33acb

webpack

view details

Xuehui Ye

commit sha 967ef7bac9855de9e7902719a16e85f26196e707

Merge branch 'master' of https://github.com/ahuigo/a

view details

push time in 12 days

push eventahuigo/b

Xuehui Ye

commit sha 54c49c25d8656dc7747a84d40fba7516fb0f7be5

msg:py

view details

push time in 12 days

push eventahuigo/a

Xuehui Ye

commit sha 273bfc59927bb0ebc23b66984884c93f3d723f5c

py

view details

push time in 12 days

push eventahuigo/b

Xuehui Ye

commit sha 2100f0972de91d50132cc3c411ba77f75541ee2e

msg:db

view details

push time in 13 days

push eventahuigo/a

Xuehui Ye

commit sha 01fb163ca4a03a3ae55b80c4733153105a3e2be4

db

view details

push time in 13 days

issue commentant-design/ant-design-pro

🧐[问题]怎么将build阶段的环境变量传给app的window 对象?

@chenshuai2144 我在define 里面加了APP_DEV:process.env.APP.ENV. 然后在项目代码(config/defaultSettings.ts)中使用APP_ENV.

请问我只是想通过环境变量解决让config/defaultSettings.ts 支持 dev/production 模式下的config 切换,有什么非hack 的方法吗?

ahuigo

comment created time in 14 days

push eventahuigo/b

Xuehui Ye

commit sha 87ac0108c32de09b19cb9ec76b4fa421d757f60f

msg:ts

view details

push time in 14 days

push eventahuigo/a

Xuehui Ye

commit sha 777c9ad910002bd6cb3541d871261ce76ca780ca

ts

view details

push time in 14 days

push eventahuigo/ahuigo.github.io

ahuigo

commit sha 61b1677d9867585d597b197b43504d8ed4e65eb2

Update index.html

view details

push time in 14 days

issue openedant-design/ant-design-pro

🧐[问题]怎么将构建阶段的环境变量传给应用的window 对象?

🧐 问题描述

有时我们需要将构建阶段的环境变量传给app应用

比如process.env.APP_ENV='dev' 传给app的全局对象window.APP_ENV

💻 示例代码

<!-- 如果你有解决方案,在这里清晰地阐述 -->

🚑 其他信息

这种变量传递应该写在哪里呢?

created time in 15 days

push eventahuigo/a

Xuehui Ye

commit sha e4e57e4bdb1968d5ab48994c4dbe9b0afa87e10a

n

view details

push time in 16 days

push eventahuigo/a

Xuehui Ye

commit sha 03b940e3abc223f555a271e2f82c99ef004433a5

index

view details

push time in 16 days

push eventahuigo/b

Xuehui Ye

commit sha c706ecd311675b467c801ebdff41ab7dc86e9a22

msg:ski

view details

push time in 16 days

push eventahuigo/a

Xuehui Ye

commit sha cbeab2f0ab6b63b2d33839c2841107081db93c40

ski

view details

push time in 16 days

push eventahuigo/b

Xuehui Ye

commit sha 632509d542790cd07533d1a03e3f436183482ec9

msg:ski

view details

push time in 16 days

push eventahuigo/a

Xuehui Ye

commit sha 7fb7f995bca6541af4c3b37d7b49fdbe60676fae

ski

view details

push time in 16 days

push eventahuigo/b

Xuehui Ye

commit sha ff4141a6c462511a10bd4719586f97ba546dab0e

msg:ski

view details

push time in 16 days

push eventahuigo/a

Xuehui Ye

commit sha 923a7043574964a1b45e6baab9e122b693dc334b

ski

view details

push time in 16 days

fork ahuigo/react-portal

🎯 React component for transportation of modals, lightboxes, loading bars... to document.body or else.

fork in 17 days

push eventahuigo/a

Xuehui Ye

commit sha 375e0a4b66b86fc4f3b7c7ad119cb2d6ad58a8b8

ts

view details

Xuehui Ye

commit sha d6c9f732e807a493a5083f95ec3d6f6917735907

ts

view details

push time in 17 days

push eventahuigo/a

Xuehui Ye

commit sha a11f5cbd6fe7a3204c850b3a8b456154d319fa09

node

view details

push time in 19 days

push eventahuigo/a

Xuehui Ye

commit sha a349b90c223a444ae606bf21f18d5aabeee98a00

umi

view details

push time in 19 days

issue commentant-design/ant-design-pro

👑 [需求]支持注册全局的ajax/fetch 的error 信息处理

没错,解决了。

const errorHandler = async (error: { response: Response }): Response => {
    const { response } = error;
    if (response && response.status) {
        // const errorText = codeMessage[response.status] || response.statusText;
        const { status, url } = response;
        const text = await response.text();
        let msg = text;
        try {
            const res = JSON.parse(text);
            msg = res.message || text;
        } catch (e) {
        }

        // message.error(msg)
        notification.error({
            message: `请求错误 ${status}: ${url}`,
            description: msg,
        });
    } else if (!response) {
        notification.error({
            description: '您的网络发生异常,无法连接服务器',
            message: '网络异常',
        });
    }
    return response;
};
ahuigo

comment created time in 19 days

push eventahuigo/b

Xuehui Ye

commit sha b666777c230a8ed58e4a30dfe3feffde29ae90fa

msg:umi

view details

push time in 19 days

push eventahuigo/a

Xuehui Ye

commit sha b3c8077cf0afd7380d02b56c2d2317a6e3204df2

umi

view details

push time in 19 days

issue openedant-design/ant-design-pro

👑 [需求]支持注册全局的ajax/fetch 的error 信息处理

🥰 需求描述

为了避免重复书写ajax 弹窗error。 希望 antd pro 能注册一个全局的处理弹出ajax/fetch 请求错误显示。

🧐 解决方案

我自己写了一个Ajax 类:https://github.com/ahuigo/js-lib/blob/master/Ajax.js

src/layouts/BaseLayout.tsx 中, 注册一个全局的自动处理背弹窗error 的回调。

       import { message } from 'antd';
       import Ajax from '@/utils/Ajax';
        Ajax.onErrorHandler((msg) => {
            message.error(msg);
        })

🚑 其他信息

示例图 image

created time in 19 days

push eventahuigo/js-lib

Xuehui Ye

commit sha 5f98b092d6d9819a4b099b633c5eae3895f2823e

Ajax

view details

push time in 19 days

push eventahuigo/js-lib

Xuehui Ye

commit sha cf3f919856ea32ec85794f7f880dc2a9b1d2bce8

mouseDrag

view details

push time in 19 days

push eventahuigo/b

Xuehui Ye

commit sha 918b8b178907b0c670542a4f63c5b60333083b30

msg:antd-prot-intro

view details

push time in 22 days

push eventahuigo/a

Xuehui Ye

commit sha 3f5a95651a3e7e2b1cb3fd839c6c071ae9c742f2

antd-prot-intro

view details

push time in 22 days

push eventahuigo/b

Xuehui Ye

commit sha afe6d7eb4f4b8d573b3263735b2c6cc1e3763a29

msg:umi

view details

push time in 22 days

push eventahuigo/a

Xuehui Ye

commit sha 56341fe1630ac81d8b5b04af396845414b5758e2

umi

view details

push time in 22 days

startedaviflombaum/ama

started time in 22 days

issue openedant-design/ant-design

Make Compoenent `Select` support change input value with onSearch.

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Support custom format function for input value.

What does the proposed API look like?

<Select onSearch={value=>value.toUpperCase(value)} >

</Select>

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

created time in 22 days

push eventahuigo/b

Xuehui Ye

commit sha 4a40a3cafb14a621082d2668f6bc5da1fe7441bf

msg:ria

view details

push time in 22 days

push eventahuigo/a

Xuehui Ye

commit sha 9075e9c8dec07138e65fed78a71e712f88eb72a3

ria

view details

push time in 22 days

push eventahuigo/b

Xuehui Ye

commit sha 2e9114f5dbaeb3388be244769b5dd3c583ec2ce5

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 715c8044bbc68014db1d5d3f6407bca8da3fc173

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 660e1da5839362a76598fa70962a1ca17e6bc43e

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 6d66449970837ba167a90269790fd982424b19c8

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 8e3972189967b2ee7518d3c1836a381385535122

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha fafad3c0d8865fd7d42358de486bbe2953881947

ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha c898ff05b6bd628d1d271bb8528faf8fe7df2323

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 5582fcbe1735ce257a325342e600d953989e1d43

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha b07e9022465e3847ebf44dc9b58045b76c91e892

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 4808e18f4a1c03f02eb00f73e82124369495526d

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 13f8ae7a83cdce9198aa201501bd9ad701440e42

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 41afb43b94736bb2babfae2fbfaa9c64ab70406a

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 68d17caa82c3a66d5f237ee2c605f51980ef33e5

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 49ba9745890d0cfeeca09c1e99f4a912fa0da61b

msg:ski

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha b7121b714a553824af908d303f53c3f675fda231

ski

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha ee459a7cae9ef906317a480801eda6914757e0d3

msg:docker

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha cd0804af81b47db6968ac3232560545ef57441bf

docker

view details

Xuehui Ye

commit sha 41bfcb211782644b026856e7410a2671cd849ccd

Merge branch 'master' of https://github.com/ahuigo/a

view details

Xuehui Ye

commit sha f8aed1c4636cf1970d8ee5de4f3c8eb666697c82

docker

view details

Xuehui Ye

commit sha 4eba7253ad4f5e02dd3c61d4c6b192c470e54f73

docker

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha d3ce48073f2fc9dab15f24ab645be7739fd1ca12

skip

view details

push time in a month

issue commentmoby/moby

Unable to remove a stopped container: `device or resource busy`

If you get such error:

Unable to remove filesystem: /var/lib/docker/container/11667ef16239.../

The solution here(No need to execute service docker restart to restart docker):

# 1. find which process(pid) occupy the fs system
$ find /proc/*/mounts  |xargs -n1 grep -l -E '^shm.*/docker/.*/11667ef16239' | cut -d"/" -f3
1302   # /proc/1302/mounts

# 2. kill this process
$ sudo kill -9 1302
pheuter

comment created time in a month

push eventahuigo/js-lib

Xuehui Ye

commit sha 4047fc4cb632587667e295755b9c369ecc0914f2

url

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha d8aac68ee007228a3dbaaa261389ee113e0692a6

ts-type

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 1d673aee5f246a4b0260e6c3f87e586fbd4ccf76

ts

view details

Xuehui Ye

commit sha cd5519ff4786dd4005b58ee486c46bbf062dc901

ts

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha e4da9e555aea5bf7375b08af12034c1496328895

msg:ria

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 1b9605667d37c62a63a74702a99ce0105b82ae5f

ria

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha bb75449675276d0da7b9bb64732a415f0841f469

msg:react

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha e5709b8afc501fda61c094056820b9808b200ada

react

view details

push time in a month

push eventahuigo/a

Xuehui Ye

commit sha 44bbcfe66d9ba1f33446d3c977bf567179d8f979

stock-fee

view details

Xuehui Ye

commit sha 3c62b2cba8cc0eda5c2b8e005437a152de1fef0b

Merge branch 'master' of https://github.com/ahuigo/a

view details

push time in a month

push eventahuigo/stock

Xuehui Ye

commit sha f9bedd7ae6e11699a13cc6547811d5165c10a8b7

bench1

view details

Xuehui Ye

commit sha fd49a990c27bbe7baa82e1d30effd8fa2adea948

Done: benchmark

view details

push time in a month

fork ahuigo/dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)

https://dvajs.com/

fork in a month

push eventahuigo/prototypes

Xuehui Ye

commit sha ab1a126e5868cfdbb63d51e88dfce5372db60dfe

zdate:support week

view details

push time in a month

push eventahuigo/b

Xuehui Ye

commit sha 926999a0c801d7d3ca93e34cc8e6ded2fd0ef570

msg:js

view details

push time in 2 months

push eventahuigo/a

Xuehui Ye

commit sha a9626c575681852e9e1e71dba883bf4aeeec0696

js

view details

push time in 2 months

push eventahuigo/js-lib

Xuehui Ye

commit sha 6142ed5ffd46bf68564ccd677a8f43247719ad58

url

view details

push time in 2 months

push eventahuigo/a

Xuehui Ye

commit sha 688895f2d6e267913586aaf83a52a16a6eb9544c

ria

view details

Xuehui Ye

commit sha e1bb2929cdc3a7fa039144bd7edab26cf369a7db

Merge branch 'master' of https://github.com/ahuigo/a

view details

push time in 2 months

push eventahuigo/a

Xuehui Ye

commit sha 4efcbd785c2a08f91a3812d38c8cfa63da795ef4

py-regex

view details

push time in 2 months

push eventahuigo/stock

Xuehui Ye

commit sha b071a81ef33ae14563eb949708e8f2a26303d98b

sinaapi

view details

push time in 2 months

push eventahuigo/stock

Xuehui Ye

commit sha 5e9a6f126bcc4b7161cadb0f1716e51fde7bf184

sinaapi

view details

push time in 2 months

push eventahuigo/a

Xuehui Ye

commit sha 853465a78ffab03c14984be8bdedbfeb6a00add8

pg

view details

push time in 2 months

push eventahuigo/stock

Xuehui Ye

commit sha 85e18ac26b5c5934c2d905e1821feb1f03e0bee9

data:dev-done

view details

push time in 2 months

push eventahuigo/stock

Xuehui Ye

commit sha d91bd36f2c544116894d524ffd3d932fefa723c6

showcode

view details

push time in 2 months

more