Jesse Yang

Results 67 comments of Jesse Yang

Hi, I took a dab and made importing ts files from plugins work more smoothly: https://github.com/apache/incubator-superset/pull/9326 There's still some issue related to React hot reloading that I wasn't able to...

Should this be an attribute for the `User` model instead, or potentially a config/method in SecurityManager (which users can already override)? We should really try our best to reduce the...

IIRC, `react-virtualized` has been discontinued by the author in favor of continued support for `react-window`. So that's another reason to not use `react-virtualized`.

@ph-fritsche @Gpx @kentcdodds do you mind taking a look at this?

For anyone interested, I have an action built on top of `action/cache` that allows you to run `restore-cache` and `save-cache` separately: https://github.com/ktmud/cached-dependencies#speficy-when-to-restore-and-save

一条规则对应一条数据库记录,JS function toString 存到数据库,或者限定死可以提供的 JS function ,数据库里存此 function 的 meta 信息(可以是某个 hash 的键值,也可以是 `{ module: 'xxx', method: 'xxx' }` 这种更结构化的内容)。 一个使用 key-value 做存储的示例: https://github.com/CuriosityChina/curio-api/tree/master/models/responder

加载规则时类似这样: https://github.com/CuriosityChina/curio-api/blob/master/models/webot/index.js#L37 loop 一下从数据库读到的 rules collection ,然后调用 `webot.set(rule)`

一般来说直接用 wexin-robot 就够了。https://www.npmjs.com/package/wechat 的部分功能在 [wechat-mp](https://github.com/node-webot/wechat-mp) 里也实现了,而 weixin-robot 相当于是 webot + wechat-mp 。weixin-robot 里面与微信服务器通讯的部分早前也是用 wechat 的,因为想更精简,就替换成了 wechat-mp 。 wechat 是可以单独使用的。它并不依赖于 webot 。只不过如果做更结构化的规则配置,比如从数据库加载 rules,webot 会更擅长一点。

https://github.com/node-webot/webot/blob/master/lib/webot.js#L194

webot 里的实现是在 `webot.reply` 这个 API 里执行的 https://github.com/node-webot/webot/blob/master/lib/webot.js#L430 好像确实应该转到 rule.js 里来。帮忙把那边也改掉吧?