-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: use react hooks and typescript refactor #19
refactor: use react hooks and typescript refactor #19
Conversation
Result 这个单词没有和下面的输出框对齐 |
@AGDholo 惊了,这个我不知道该不该approve,你觉得呢? cc: @akitaSummer |
@lidangzzz 他后面 force-pushed 的代码移除了左边距(看代码应该是已经对齐了),然后整体代码的效果应该是将 result 和左边卡片的标题进行了垂直的居中对齐,要不要 approve 就得看你的喜好了。 另外这个 commit 用了 yarn,我刚刚才把 yarn 文件移除(因为我看之前源码的提交的包管理都是 npm 来操作的,yarn 没怎么用,所以我上个 pr 把 yarn 文件删了),最好能统一成 npm 吧 |
已经修改好了 |
以及第三个样例在点击运行时有明显卡顿,我推测您应该没有使用Web Workers导致的,如果能将计算用Web Workers进行,并将Compile and run按钮变成loading状态,应该会有更好的用户体验 |
@akitaSummer 之前想用web worker,然而没用的原因是只能传入script file,我还要看看怎么用blob传入一段script。 这个pull request我再看看,我还不太会用git(另外你们知道如何用tortoiseHg管github repo吗) |
我这里帮您把web worker已经配置进去了,不过会有两个问题,我在代码的注释里写到了,可以看一下 |
刚刚合并了 #22 ,现在目录和文件内容都改变了,代码冲突估计很严重,可能需要重新拉取然后 commit |
@AGDholo @akitaSummer 真的很抱歉,斯米马赛,我刚才尝试手动解决可惜我对git并不熟练。另外我自己原本也希望1.0版本之后再让大家帮忙贡献,没想到大家这么积极,我没有管理好各个branch和versioning。我先晚上试着解决一下conflicts,解决不了咱们再想办法 |
我这里已经修复了冲突,您可以branch一个新的分支,我合并到那个分支上,您checkout看下效果 |
// use arrow function will make web worker error | ||
// isPrint = () => this.outputType === 'print'; | ||
// isDraw = () => this.outputType === 'draw'; | ||
// isTex = () => this.outputType === 'tex'; | ||
// isFormulaTex = () => this.outputType === 'formulaTex'; | ||
// isMarkdown = () => this.outputType === 'markdown'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里估计是 webpack 的问题
hedgehog-lab/package.json
Outdated
@@ -60,7 +60,10 @@ | |||
] | |||
}, | |||
"devDependencies": { | |||
"@babel/standalone": "^7.10.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个依赖重复了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
抱歉,没注意到,已修复
hi,我用react hooks和ts重构了你们的react部分,我还希望能够修改一些你们UI相关的功能,但是我的代码你们还没有merge,可能再更改下去会越来越难合并,你们要不要先开一个分支合一下我的看看是否符合你们的预期。 @lidangzzz @AGDholo @imtsuki |
@akitaSummer 我刚刚解决了冲突。
|
@AGDholo 好的,我先看一下 |
@AGDholo @akitaSummer 我觉得这个很好了,请问我现在可以merge了不- - |
好了我merge完了 |
我帮您优化了一点样式
https://ibb.co/LP0DrfB
改后
https://ibb.co/zfjj2Jw