searleser97 / cpbooster

Competitive Programming Booster
GNU General Public License v3.0
151 stars 31 forks source link

Request to add codechef submit #59

Open Talha76 opened 2 years ago

Talha76 commented 2 years ago

There is no direct way to submit in codechef like codeforces and atcoder. Could you please add this feature to directly submit in codechef using cpb submit command?

searleser97 commented 2 years ago

Right now I am a bit overwhelmed by work to do it at the moment. But I encourage you to try to add it yourself following this guide (which is basically just following the changes of a PR) https://searleser97.github.io/cpbooster/docs/add-online-judge-support and also you can check how others have contributed and added more online judges support like https://github.com/searleser97/cpbooster/pull/43

Talha76 commented 2 years ago

Thanks for guidance. I will try to add.

searleser97 commented 2 years ago

@Talha76 is there any issue you are facing that I can help with?

Talha76 commented 2 years ago

@searleser97 I am really sorry that I was busy doing competitive programming. I read the issue and the changed files, and I think I understood what to do. If I face some issue while updating I will inform you. Please pardon me for this.

searleser97 commented 2 years ago

You can also check this PR that contains comments about the changes https://github.com/searleser97/cpbooster/pull/22/files

Talha76 commented 2 years ago

Is the data-value here the cpp alias?

Screenshot from 2022-07-07 11-28-25

searleser97 commented 2 years ago

oh, that is not looking good, if you couldn't find a "select" HTML element then we might to modify the "UploadFile" function to support this online judge, which might not be that dificult but we need to analize how the site knows which language is submitted

Talha76 commented 2 years ago

@searleser97, I've found <select> tag. But all of the other codes in the inspector are colorful, while the whole <select> tag is of gray color, which seems to me as a commented code. Is it really commented or still active in the code?

If it's still active though, then we have to go through some steps to go to the submit page. Like:

  1. At first there is a button in the main problem page called Switch to old problems page
  2. After going to old problems page, we need to click the Submit button, which takes us to the submit page.
  3. There, we need to upload the file and submit, and this page has that above mentioned <select> tag, but colored in gray in inspector.

So, how to manage all of these?

Screenshot from 2022-07-07 11-49-18

Talha76 commented 2 years ago

@searleser97 Also please give some guidance about installing dependencies in the cloned folder, running and testing. I tried to run and test, but it gives some error, which I cannot understand.

searleser97 commented 2 years ago

@searleser97 Also please give some guidance about installing dependencies in the cloned folder, running and testing. I tried to run and test, but it gives some error, which I cannot understand.

for installation just run npm install and you should be good, here is a link with the documentation to contribute https://searleser97.github.io/cpbooster/docs/setup-dev-env

searleser97 commented 2 years ago

@searleser97, I've found <select> tag. But all of the other codes in the inspector are colorful, while the whole <select> tag is of gray color, which seems to me as a commented code. Is it really commented or still active in the code?

If it's still active though, then we have to go through some steps to go to the submit page. Like:

  1. At first there is a button in the main problem page called Switch to old problems page
  2. After going to old problems page, we need to click the Submit button, which takes us to the submit page.
  3. There, we need to upload the file and submit, and this page has that above mentioned <select> tag, but colored in gray in inspector.

So, how to manage all of these?

Screenshot from 2022-07-07 11-49-18

if there is a