Skip to content
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

对课表页面的初步构造 #14

Merged
merged 68 commits into from
Feb 7, 2025
Merged

对课表页面的初步构造 #14

merged 68 commits into from
Feb 7, 2025

Conversation

renbaoshuo
Copy link
Member

@renbaoshuo renbaoshuo commented Oct 26, 2024

Resolves #3.

这个 PR 由于过于庞大,涉及到的变更过多,目前我们考量是先合入主仓库,后续对剩余特性单独开 PR 解决。

已解决

  • 数据获取
  • 基础布局
  • 切换学期
  • 切换周数(左右滑动)
  • 切换周数(下拉选择)
  • 课程详情展示
  • 课表样式

待解决

  • 导出到本地日历,以及更多的导出日历选项
  • 修正关于课程重叠的问题
  • 修正关于滑动切换周数不流畅的问题
  • 对界面样式进行风格化处理,而不是目前杂乱无章的状态

@renbaoshuo
Copy link
Member Author

备忘一下,突然想起来时间冲突课程的去重还没做。

@@ -150,9 +151,9 @@ const CoursePage: React.FC<CoursePageProps> = ({ config, locateDateResult, semes
headerLeft: () => <Text className="ml-4 text-2xl font-medium">课程表</Text>,
// eslint-disable-next-line react/no-unstable-nested-components
headerTitle: () => (
<Pressable onPress={() => toast.info('周数切换')} className="flex flex-row items-center">
<Pressable onPress={() => setShowWeekSelector(!showWeekSelector)} className="flex flex-row items-center">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Pressable onPress={() => setShowWeekSelector(!showWeekSelector)} className="flex flex-row items-center">
<Pressable onPress={() => setShowWeekSelector(prev => !prev)} className="flex flex-row items-center">

Comment on lines 155 to 156
<AntDesign name="caretdown" size={10} color="black" />
<AntDesign name={showWeekSelector ? 'caretup' : 'caretdown'} size={10} color="black" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

统一用 IonIcons 吧,减少封包体积,这玩意没有 tree-shaking。

@renbaoshuo
Copy link
Member Author

提议:这个 PR 体积较大,建议使用 merge commit 来 merge 到主分支中,而不是使用 squash and merge,以便后人 git blame。

@ozline
Copy link
Member

ozline commented Feb 7, 2025

这个 PR 由于过于庞大,涉及到的变更过多,目前我们考量是先合入主仓库,后续对剩余特性单独开 PR 解决。

@ozline ozline changed the title 课表页面 对课表页面的初步构造 Feb 7, 2025
@ozline ozline marked this pull request as ready for review February 7, 2025 16:44
@ozline ozline merged commit 60e5212 into master Feb 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

课表
3 participants