Constructor configuration options #40

已合并
bumi 2018-04-26 10:32:13 +00:00 将 2 次代码提交从 feature/constructor-options 合并至 master
bumi 评论于 2018-04-23 09:13:23 +00:00 (从 github.com 迁移)

This changes the function signature of the constructor but allows us to
pass any options.
Mainly this is now used for the ipfs configs.

Ref #37

This changes the function signature of the constructor but allows us to pass any options. Mainly this is now used for the ipfs configs. Ref #37
bumi 评论于 2018-04-23 09:17:29 +00:00 (从 github.com 迁移)

this is a breaking change but kredits-web is currently not setting the IPFS config and hubot-kredits is using the setup function... so should be good to merge and then we can update the 'clients'

this is a breaking change but kredits-web is currently not setting the IPFS config and hubot-kredits is using the setup function... so should be good to merge and then we can update the 'clients'
fsmanuel (从 github.com 迁移)2018-04-25 21:11:44 +00:00 批准此合并请求
fsmanuel (从 github.com 迁移) 留下了一条评论

Only a little suggestion.
Do we need to track the update of hubot-kredits in the open issue?

Only a little suggestion. Do we need to track the update of hubot-kredits in the open issue?
fsmanuel (从 github.com 迁移) 评论于 2018-04-25 21:03:30 +00:00

What about a destructuring of the options to make it more easy to see the used options?

What about a destructuring of the options to make it more easy to see the used options?
fsmanuel (从 github.com 迁移) 评论于 2018-04-25 21:09:37 +00:00

You sneaked that one in but I ❤️ it,

You sneaked that one in but I ❤️ it,
fsmanuel (从 github.com 迁移) 评论于 2018-04-25 21:07:26 +00:00

👍

👍
@ -7,3 +7,3 @@
if (!config) {
config = {host: 'localhost', port: '5001', protocol: 'http'};
config = { host: 'localhost', port: '5001', protocol: 'http' };
}
fsmanuel (从 github.com 迁移) 评论于 2018-04-25 21:05:30 +00:00

👍

👍
raucao (从 github.com 迁移) 评审于 2018-04-25 21:14:08 +00:00
raucao (从 github.com 迁移) 评论于 2018-04-25 21:14:08 +00:00

Typo. :)

Typo. :)
fsmanuel (从 github.com 迁移) 评审于 2018-04-25 21:43:56 +00:00
fsmanuel (从 github.com 迁移) 评论于 2018-04-25 21:43:56 +00:00

iPad...

iPad...
bumi (从 github.com 迁移) 评审于 2018-04-26 00:47:10 +00:00
bumi (从 github.com 迁移) 评论于 2018-04-26 00:47:10 +00:00

something like this:
let { address, abis, ipfsConfig } = options
is that correct?

something like this: ` let { address, abis, ipfsConfig } = options ` is that correct?
bumi 评论于 2018-04-26 00:49:44 +00:00 (从 github.com 迁移)

what do you mean with " track the update of hubot-kredits in the open issue"?

what do you mean with " track the update of hubot-kredits in the open issue"?
fsmanuel (从 github.com 迁移) 评审于 2018-04-26 08:08:46 +00:00
fsmanuel (从 github.com 迁移) 评论于 2018-04-26 08:08:45 +00:00

Jup

Jup
raucao (从 github.com 迁移) 评审于 2018-04-26 10:29:43 +00:00
raucao (从 github.com 迁移) 评论于 2018-04-26 10:29:43 +00:00

I meant in the code. Someone coding on an iPad? :D

I meant in the code. Someone coding on an iPad? :D
fsmanuel 评论于 2018-04-26 10:32:07 +00:00 (从 github.com 迁移)

@bumi I don't know why I wrote it... I'll merge.

@bumi I don't know why I wrote it... I'll merge.
fsmanuel (从 github.com 迁移) 评审于 2018-04-26 10:52:33 +00:00
fsmanuel (从 github.com 迁移) 评论于 2018-04-26 10:52:33 +00:00

Ah you mean the chaiID 😆 ? Not yet coding on an iPad...
It was a bad idea to come back to Hamburg. Volley outside...

Ah you mean the `chaiID` 😆 ? Not yet coding on an iPad... It was a bad idea to come back to Hamburg. Volley outside...
bumi (从 github.com 迁移) 评审于 2018-04-26 11:50:58 +00:00
bumi (从 github.com 迁移) 评论于 2018-04-26 11:50:58 +00:00

🌞

:sun_with_face:
登录 并参与到对话中。
没有提供说明。