Git Product home page Git Product logo

cchv2's Introduction

CodeforcesContestHelper

Important Notice

This version of CCH is now deprecated. Please move on to the repo for v2 for future updates.

FOSSA Status

Donation

https://afdian.net/@cfcontesthelper

Copyright

Project developed by @tiger2005, packed by @qinyihao
See license here

Chatting

Download for Chinese users(Windows version, supports Windows 10):

link:here
code:cflg

Download for users outside China:

See release for your download.

License

FOSSA Status

cchv2's People

Contributors

cornworld avatar cyrxdzj avatar qinyihao avatar swiftqwq avatar tiger2005 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

cchv2's Issues

无法正常登陆

CF不久前加上了Cloudflare, 现在CCH2偶尔就登陆不了账号了(在赛时比较常见).
屏幕截图 2023-04-19 101029
image

复制和翻译

建议提交记录界面的数据和代码可以复制
建议可以划词翻译来照顾我这种英语垃圾

关于 Rating 预测器

之前有人在 #73 这个 issue 提到了关于 Rating 预测器网址无法正常工作的问题,这里给一个新的预测器链接,亲测填入配置后能用,希望能包含在下次更新中

https://cf-predictor.wasylf.xyz/GetNextRatingServlet

比赛时极不稳定

在比赛经行至大约00:15时,完全无法使用。任何功能均不能正常运行(包括正常的加载题目、查看排行榜等)。

无法将题目传输到Sublime

Sublime版本:4152
os:Windows 11
所参考的配置教程为知乎上的教程
点击传送题目后没有文件夹和对应cpp文件生成
点击后的端口信息如下:
image

另外通过数据似乎也无法查看

题目末尾在经过特定操作后会退出题目文件夹

复现步骤:

  1. 打开题目页面
  2. 添加一个至少有 2 个题目的比赛
  3. 叉掉该比赛若干题目,但不叉掉所有题目
  4. 添加一个刚刚叉掉的题目
  5. 叉掉在上一步中添加的题目
  6. 题目文件夹中的最后一个题目退出了文件夹

问题应该出现在:

CCHv2/js/problem.js

Lines 319 to 343 in b822e17

function killProblemListItem(x){
x = Number(x);
var q = getProblemIndexes(problemCurrentPageList[x][0])[0];
problemNewWinJQ.find(`.innerContent > [problem-id=${problemCurrentPageList[x][0]}]`).remove();
if(problemCurrentPageList[x][1] != null)
problemCurrentPageList[x][1].abort();
if(problemCurrentPageList.length - 1 == x)
problemCurrentPageList.pop();
else
problemCurrentPageList.splice(x, 1);
if(problemFocusOn >= x) --problemFocusOn;
if(problemFocusOn < 0) problemFocusOn = 0;
for(var t in problemGroupRange)
if(problemGroupRange.hasOwnProperty(t))
if(problemGroupRange[t][0] > x)
problemGroupRange[t][0] --;
if(problemGroupRange[q] != undefined){
var u = problemGroupRange[q];
if(u[0] <= x && u[0] + u[1] >= x){
-- problemGroupRange[q][1];
if(problemGroupRange[q][1] == 0)
delete problemGroupRange[q];
}
}
}

能否完善一下搜索功能?

我该如何根据题号来搜索一道题呢?

我并没有找到方法,当我直接输入题号时,搜索不到任何结果。

新版 codeforces 样例爬取问题

emm,应该知道什么意思吧。现在的 codeforces 题目界面的样例分了多组数据,在爬取时会吞掉换行。如果能改的话,希望可以改一下。

无法加载通过数

按F12,显示

然后其它的东西,估计是在队列中,也什么都加载不了/ll

Linux 打包问题

Release 的时候给 Linux 打包请打 tar 包,否则会丢失包括文件权限在内的很多元信息。

无法显示头像

如图所示:
图片

初步判断问题是出在对头像URL的处理上,目前Codeforces API返回的头像URL没有协议名,形如:
//userpic.codeforces.org/*****/title/****************.jpg

这种情况在浏览器里是没有问题的;但是nw.js里默认协议是chrome-extension:,造成了图片无法加载。

[功能请求]自动生成API Key

在登录且以填入密码的前提下,添加一个按钮允许CCH自动新增API Key.

生成API Key的接口是 POST /settings/api,表单字段:

csrf_token: "XXXX"
action: "generateKey"
newKeyName: "CCHv2"
password: "..."

多人Rating折线图

这个功能似乎在很久之前就以及实现了。
将这个代码贴入油猴就可以使用了
使用:在proflie在自己rating右上角的名称上点一下,然后输入其他用户名就好

这个功能是否可以集成到 CCHv2 中呢。

类似一键获取 friend 和自己的折线统计图,然后设置开关什么的,让这个折线图像大多数工具一样可以进行一些操作。

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.