-
Notifications
You must be signed in to change notification settings - Fork 5
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] replace React Bootstrap with MUI to optimize UX #64
Conversation
[polish] MainNavigator, ColorModeDropdown [config] tailwind, eslint, postcss [migrate] replace bootstrap with material-ui within components [fix] dark mode flicker
[polish] partner logo for dark mode
[polish] project, member card layout [fix] project card languages logo missing [unfinshed] member, project detail
这个 PR 内容好多,不过 Vercel 部署似乎失败了,我用在线环境看下效果。 |
确实是有问题的,直接跑 dev 跑不起来,可能整体环境还有些问题,或者需要环境变量。 |
是的,pnpm build 没通过,我有些 detail 页面还没改完,有报错,稍等哈~ |
<div className=""> | ||
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} /> | ||
</div> | ||
<div className=""> | ||
<Tabs className=""> |
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.
<div className=""> | |
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} /> | |
</div> | |
<div className=""> | |
<Tabs className=""> | |
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} /> | |
<Tabs> |
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.
没写完
pages/member/[nickname].tsx
Outdated
</Row> | ||
</Container> | ||
), | ||
<div role='tabpanel'></div> |
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.
没写完
50: 'var(--mui-palette-grey-50)', | ||
100: 'var(--mui-palette-grey-100)', | ||
200: 'var(--mui-palette-grey-200)', | ||
300: 'var(--mui-palette-grey-300)', | ||
400: 'var(--mui-palette-grey-400)', | ||
500: 'var(--mui-palette-grey-500)', | ||
600: 'var(--mui-palette-grey-600)', | ||
700: 'var(--mui-palette-grey-700)', | ||
800: 'var(--mui-palette-grey-800)', | ||
900: 'var(--mui-palette-grey-900)', | ||
A100: 'var(--mui-palette-grey-A100)', | ||
A200: 'var(--mui-palette-grey-A200)', | ||
A400: 'var(--mui-palette-grey-A400)', | ||
A700: 'var(--mui-palette-grey-A700)' |
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.
既然是 JS 配置文件,类似大片有规律的配置直接用 [].map()
迭代出来吧。
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.
你可以提 issue,我不会在这个 PR 改
[fix] type error of lifecycle method [polish] review details
pages/index.tsx
Outdated
new GitRepositoryModel('idea2app').getList({}, 1, 9), | ||
new GitRepositoryModel('idea2app').getList({ relation: [] }, 1, 9), |
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.
类型报错
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.
以前配置的不严格,限制的插件规则更严格一些,next 关于插件配置文档不够清晰,他都是推荐用自己的
我翻插件官方文档配的https://typescript-eslint.io/getting-started/legacy-eslint-setup#additional-configs
我把这两行删了吧
'eslint:recommended',
-'plugin:@typescript-eslint/strict',
-'plugin:@typescript-eslint/stylistic'
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.
类型“{}”的参数不能赋给类型“RepositoryFilter”的参数。
类型 "{}" 中缺少属性 "relation",但类型 "RepositoryFilter" 中需要该属性。ts(2345)
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.
类型“{}”的参数不能赋给类型“RepositoryFilter”的参数。 类型 "{}" 中缺少属性 "relation",但类型 "RepositoryFilter" 中需要该属性。ts(2345)
把上游库字段改成可选的就行了:https://github.com/idea2app/MobX-GitHub/blob/6cc83bcee84023d2116729b49e5b11fb1e5c8cbe/source/Repository.ts#L29-L31
[remove] ul with nav in MainNavigator [fix] typescript eslint strict mode
[optimize] reduce Dependency size
[add] darkmode
[polish] MainNavigator, ColorModeDropdown
[config] tailwind, eslint, postcss
[migrate] replace bootstrap with material-ui within components [fix] dark mode flicker
Checklist(清单):