From 9c26d94ae531fb28b6c38e146d43b55512bb9c64 Mon Sep 17 00:00:00 2001 From: Divyanshu Agrawal Date: Sat, 18 Feb 2023 01:04:29 +0530 Subject: [PATCH] Bump version to 5.10.0 (#318) * Bump version to 5.10.0 * Formatting fixes. --- README.md | 25 ++-- docs/dev-guide.md | 5 +- index.html | 206 +++++++++++++++++++------------- package.json | 4 +- src/compiler.ts | 1 - src/executions.ts | 1 - src/webview/frontend/index.html | 20 ++-- 7 files changed, 151 insertions(+), 111 deletions(-) diff --git a/README.md b/README.md index 22bebf4..fc1340e 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ of popular platforms like Codeforces, Codechef, TopCoder etc. in your browser. 1. Use Companion by pressing the green plus (+) circle from the browser toolbar when visiting any problem page. -1. The file opens in VS Code with testcases preloaded. Press Ctrl+Alt+B to run - them. +1. The file opens in VS Code with testcases preloaded. Press + Ctrl+Alt+B to run them. - (Optional) Install the [cph-submit](https://github.com/agrawal-d/cph-submit) browser extension to enable submitting directly on CodeForces. @@ -30,7 +30,8 @@ of popular platforms like Codeforces, Codechef, TopCoder etc. [Kattis help page](https://open.kattis.com/help/submit) after logging in. You can also use this extension locally, just open any supported file and press -'Run Testcases' (or Ctrl+Alt+B) to manually enter testcases. +'Run Testcases' (or Ctrl+Alt+B) to manually +enter testcases. [![See detailed user guide](https://img.shields.io/badge/-Read%20detailed%20usage%20guide-blue?style=for-the-badge)](docs/user-guide.md) @@ -56,7 +57,8 @@ You can also use this extension locally, just open any supported file and press ## Contributing -**CPH is in a steady-state.** There are no new features planned for the extension. Only bug-fixes will be worked on. +**CPH is in a steady-state.** There are no new features planned for the +extension. Only bug-fixes will be worked on. You can contribute to this extension in many ways: @@ -64,14 +66,21 @@ You can contribute to this extension in many ways: - Develop this extension further - see [developer guide](docs/dev-guide.md). - Spreading the word about this extension. -**Before creating a Pull Request, please create an issue to discuss the approach. It makes reviewing and accepting the PR much easier.** +**Before creating a Pull Request, please create an issue to discuss the +approach. It makes reviewing and accepting the PR much easier.** ## License Copyright (C) 2021 Divyanshu Agrawal -This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +This program is free software: you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation, either version 3 of the License, or (at your option) any later +version. -This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. +You should have received a copy of the GNU General Public License along with +this program. If not, see https://www.gnu.org/licenses/. diff --git a/docs/dev-guide.md b/docs/dev-guide.md index 98eb521..b416047 100644 --- a/docs/dev-guide.md +++ b/docs/dev-guide.md @@ -11,8 +11,9 @@ user-facingterms. The extension runs in a Node.JS context with the [VS Code API](https://code.visualstudio.com/api/references/vscode-api). The extension shows the results in a web-view (code in `src/webview`). It -communicates to-and-from the extension by posting messages. See the [webview API](https://code.visualstudio.com/api/extension-guides/webview) for details. -The webview is currently a React App. +communicates to-and-from the extension by posting messages. See the +[webview API](https://code.visualstudio.com/api/extension-guides/webview) for +details. The webview is currently a React App. It compiles and runs code by spawning binaries, and pipes input to STDIN and compares each line of STDOUT with expected output to judge results. diff --git a/index.html b/index.html index 341388d..749bac0 100644 --- a/index.html +++ b/index.html @@ -1,99 +1,133 @@ + + + + + + Competitive Programming Helper (CPH) - VS Code extension + + Document + - + + - -
-
-

Competetive Programming Helper

-

CPH is a Visual Studio Code extension that extension allows you to quickly compile, run and judge - competitive - programming problems from within the IDE. You can automatically download testcases write & test your own - problems. Once you are done, you can submit your solutions directly with the click of a button!

- CPH Screenshot -
- - - + +
+
+

Competetive Programming Helper

+

+ CPH is a Visual Studio Code extension that extension + allows you to quickly compile, run and judge competitive + programming problems from within the IDE. You can + automatically download testcases write & test your own + problems. Once you are done, you can submit your solutions + directly with the click of a button! +

+ CPH Screenshot +
+ + + +
+

Features

+
    +
  • + Autmatic compilation with display for compilation errors. +
  • +
  • + Intelligent judge with support for signals, time outs and + run time errors. +
  • +
  • Works with Competitive Companion.
  • +
  • + Codeforces auto-submit + integration. +
  • +
  • + Kattis auto-submit + integration. +
  • +
  • Works locally for your own problems.
  • +
  • Support for several languages.
  • +
+

Documentation

+

+ You can learn more about how you can use CPH + here. +

+

License

+

+ CPH is free software. It software is licensed under GPL Version + 3 or later ( at your choice ). You can access the source code + here. +

+
+ Created by + agrawal-d
-

Features

-
    -
  • Autmatic compilation with display for compilation errors.
  • -
  • Intelligent judge with support for signals, time outs and run time errors.
  • -
  • Works with Competitive Companion.
  • -
  • Codeforces auto-submit - integration.
  • -
  • Kattis auto-submit - integration.
  • -
  • Works locally for your own problems.
  • -
  • Support for several languages.
  • -
-

Documentation

-

You can learn more about how you can use CPH here. -

-

License

-

- CPH is free software. It software is licensed under GPL Version 3 or later ( at your choice ). You can - access the source code here. -

-
- Created by agrawal-d -
- - + diff --git a/package.json b/package.json index 4266994..3e62326 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "GPL-3.0-or-later", "icon": "icon.png", "publisher": "DivyanshuAgrawal", - "version": "5.9.2", + "version": "5.10.0", "engines": { "vscode": "^1.52.0" }, @@ -298,4 +298,4 @@ "type": "git", "url": "https://github.com/agrawal-d/competitive-programming-helper/" } -} \ No newline at end of file +} diff --git a/src/compiler.ts b/src/compiler.ts index daec328..a10ca66 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -184,4 +184,3 @@ export const compileFile = async (srcPath: string): Promise => { }); return result; }; - diff --git a/src/executions.ts b/src/executions.ts index 0530142..d281718 100644 --- a/src/executions.ts +++ b/src/executions.ts @@ -154,4 +154,3 @@ export const killRunning = () => { console.log('Killling binaries'); runningBinaries.forEach((process) => process.kill()); }; - diff --git a/src/webview/frontend/index.html b/src/webview/frontend/index.html index 8354902..c05352e 100644 --- a/src/webview/frontend/index.html +++ b/src/webview/frontend/index.html @@ -1,14 +1,12 @@ + + + + - - - - - - -
- - - - \ No newline at end of file + +
+ + +