Giter VIP home page Giter VIP logo

frederick-wang / scu-urp-assistant Goto Github PK

View Code? Open in Web Editor NEW
192.0 192.0 14.0 14.19 MB

四川大学综合教务系统助手,是一个优化四川大学综合教务系统的「Userscript」,即用户脚本。这不是一个独立的软件,也不是一个浏览器的插件,但可以依赖浏览器的插件运行,或者作为一个Bookmarklet在点击后运行。该脚本可以为综合教务系统增加以下功能:1. 外观美化:会自动美化教务系统界面上部分元素的外观;2. 快捷评教:自动为「希望给好评」的老师打满分好评,并附上随机的正面评语;3. 自动登录:恢复登陆页面的「两周之内不必登录」选项,每次打开教务系统后不用重复登录;4. 均分绩点计算器:可以直接看到自己的全部均分、全部绩点与必修均分、必修绩点,还可以自由选择自己需要的课程进行计算;5. 培养方案查询:可以方便地查询全校所有专业的培养方案与指导性教学计划,并且可以选择任意两个培养方案进行比较,查看差异;6. 成绩查询:可以方便地查询到本学期课程成绩的最高分、最低分、平均分和名次。

Home Page: https://zhaoji.wang/sichuan-university-urp-assistant/

License: Apache License 2.0

JavaScript 2.10% TypeScript 62.02% Vue 29.96% SCSS 5.46% Pug 0.45%

scu-urp-assistant's Introduction

杰出的艺术与小偷很相似,二者都懂如何偷走人的心。

——鲁邦三世

👋 你好!这里是 爱丽斯基,一个正义的伙伴。

希望我的代码能够偷走你的心。

Anurag's GitHub stats

Top Langs

scu-urp-assistant's People

Contributors

dependabot[bot] avatar frederick-wang avatar magicgh avatar xiaopc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scu-urp-assistant's Issues

计算成绩时,将辅修课程单独列出

image

在没有辅修课程的情况下,界面保持原样不变。

在有辅修课程的情况下:

  • 将「全部平均分」和「全部绩点」改为「主修课程全部平均分」和「主修课程全部绩点」;
  • 增加「辅修课程全部平均分」和「辅修课程全部绩点」;
  • 将辅修课程调整为50%透明度,并在旁边加「?」图标,说明为什么要分开计算。

Dear Zhaoji

could you please tell me how i can know about score data before this term.
Is there any interface do like http://xxx.xxx.xxx.xxx/student/integratedQuery/scoreQuery/thisTermScores/data

GPA statistics don't show

*This is a issue given by user:hugang1222 via email.


Original Email:

您好,为什么我安装之后没有显示成绩呢?

image

win10自带的Microsoft edge,安装的脚本管理器是Tampermonkey

「关于」页面中版本号显示有误

image

在「关于」页面这里的版本号显示的还是旧格式的版本号,没有区分「UserScript」版与「Bookmarklet」版。

需要修改为新格式的版本号。

教务系统中的「课程替代」在绩点计算器中不生效的 bug

当前绩点计算器使用的成绩接口为教务系统「综合查询-成绩查询-成绩查询」中的接口,这个接口查询出的是原始课程成绩,不包括课程替代的信息。即使已经完成了课程替代,显示的仍然为原始课程:

图 1

图 2

经过观察发现,在「综合查询-成绩查询-全部及格成绩」下的查询结果,显示的是经过课程替代的成绩:

图 3

考虑将「综合查询-成绩查询-全部及格成绩」的内容与「综合查询-成绩查询-成绩查询」的内容合并,但这样会大大增加查询的时间。现在有三种解决方案:

  1. 将「成绩查询」数据(两次查询共耗时约 1400+ms)与「全部及格成绩」数据(共耗时约 2600+ms)合并,预估需要 4s 的加载时间;
  2. 将「全部及格成绩」数据(共耗时约 2600+ms)与「不及格成绩」数据(共耗时约 300+ms)合并,预估需要 3s 的加载时间;
  3. 将「成绩查询」数据(两次查询共耗时约 1400+ms)与「课程替代申请」数据(耗时约 800+ms)合并,预估需要 2-2.5s 的加载时间。

决定采用第三种解决方案。

版本迭代的问题

单纯地好奇,我之前的是0.13.1的版本用不了(这里的版本我是在Tampermonkey中看到的),降格到0.13.0才能够正常使用。但我在您的博客中看到,0.13.0已经是最新版本了。所以有点迷糊orz

为【培养方案查询】界面增加搜索栏

现在只能通过学院-专业的级联查询方式定位专业,但有一些专业名字比较模糊,不熟悉的同学难以找到。因此考虑增加一个搜索栏,键入专业名称后模糊匹配相关专业,点击后可以跳转过去。

增加「课程信息交流」功能

初步设想是允许用户结合自身情况,发布与课程相关的匿名信息,相互可以看到并交流。

暂时只能发送文字,且不支持楼中楼回复。

没有评教时,无法查看期末成绩,需要给出提示

这类数据在成绩查询接口中的特点是「目前所有出分课程」的成绩都是-999分。

目前的处理方式是直接过滤掉,但这样容易造成误会。

需要在这一学期成绩上给出提示,提醒用户去评教后才能查看成绩。

成绩排名查询

接口是更换或者是关闭了?期末查不到,一直转圈。

Export class timetable as a wallpaper

It's just an idea. I'm not sure how many stu take a screenshot, as lock screen image on phone, which is unclear and bad looking.

And here is it - support saving image with different scales (3:4, 9:19, etc) in higher resolution and briefer words than screenshots.

I know it's time-consuming to implement so just an idea.

均分绩点计算器卡在“加载中”

image

均分绩点计算机卡在“加载中”,在debug模式下发现是本地缓存courseTeacherList中缺失305020040这门课程的数据造成的:

image

image

出错的具体原因有待进一步找出。

在 Android 平台 Kiwi 浏览器中,SCU URP 助手菜单无法显示的问题

image

根据 Wang MG 的邮件反馈:

大佬你好!反馈一个小bug,就是那个插件的菜单能不能像以前那样放到下面,放到上面它有时会直接不显示,点不开,就像图片那样。
我是在手机上使用时出现的,电脑上还没遇到过。浏览器是kiwi浏览器,系统Android11。
用的UserScript版,桌面版网站打开关闭都无法显示。

不过之前放到下面时,其实也是因为有人反馈在历史记录中菜单展开时,助手的菜单按钮会被挤到底端外部不显示,所以顺手放到了上面。

考虑做一个判断,如果是移动平台,将菜单加载处移动到侧边栏底端。

Miscalculate if a course's gpa getting from urp api directly is null.

*This is a issue given by user:hugang1222 via email.


Original Email:

兆基:

你好!

报告一个已知的bug:有的课有成绩,但绩点为null,情况将非常混乱。

本学期总的均分和绩点计算有误(分母没有减掉为null的课的数量),下图为选中所有必修课程后的结果:

image

并且,选中时会被自动跳过不算,下图为选中两门课程的结果:

image

返回的json里就是空值null。

image

这是教务处直接改的成绩,不是教师上传的,教务处也许后续会补上。

大概有几百人是这种情况吧。

增加「小纸条」功能

考虑增加「小纸条」功能,用户可以匿名在墙上「贴纸条」或者「回复纸条」。

暂时不做得太复杂,一个简易小功能。

[均分绩点计算器] 删除「未通过原因」这一列

image

因为现在调用的接口是「全部及格成绩」,这一列的数据一定会为空。

之所以调用「全部及格成绩」接口,是因为根据四川大学成绩单的说明:

低于60分的课程不参与平均学分绩点、加权平均分计算
Failed courses are excluded from calculation of GPA and Weighted Average Mark.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.