Skip to content

Commit d9bc02c

Browse files
committed
2.0.1
1 parent f8ced4c commit d9bc02c

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.0.1 - May 8th, 2018
2+
- Fixed the HackerRank parser
3+
- Added support for Mind Sport
4+
15
# 2.0.0 - May 6th, 2018
26
- Renamed CHelper Companion to Competitive Companion
37
- Moved all parsers over to a TypeScript implementation

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ A browser extension which parses programming problems from various online judges
3232
| Yandex || |
3333

3434
## Supported tools
35-
- CHelper
35+
- [CHelper](https://plugins.jetbrains.com/plugin/7091-chelper)
36+
- [Mind Sport](https://plugins.jetbrains.com/plugin/10688-mind-sport)
3637
- Any other tool that can parse the data that is being sent, read more about that below
3738

3839
## Soon supported tools
39-
- JHelper, will be added shortly after the changes from CHelper Beta 4.3.1b1 move into CHelper Stable
40-
- Hightail, works when [this PR](https://github.com/dj3500/hightail/pull/107) is merged
40+
- [JHelper](https://plugins.jetbrains.com/plugin/7541-jhelper), will be added shortly after the changes from CHelper Beta 4.3.1b1 move into CHelper Stable
41+
- [Hightail](https://github.com/dj3500/hightail), works when [this PR](https://github.com/dj3500/hightail/pull/107) is merged
4142

4243
## Custom tools
4344
Competitive Companion can send the parsed data in JSON format to your own tools. An example on how to accomplish this can be found [here](https://github.com/jmerle/competitive-companion-example).
@@ -115,7 +116,7 @@ It's not required for a tool to parse all these options, since some of them are
115116
- **tests**: An array of objects containing testcase-data. The JSON objects in the array all have two keys: **input** and **output**. Both the input and the output need to end with a newline character.
116117

117118
## Running locally
118-
The following commands can be used to start working on Competitive Companion locally.
119+
The following commands can be used to start working on Competitive Companion locally. Additionally, make sure you got [Node.js](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/en/) installed.
119120

120121
```bash
121122
# Clone the repository

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "competitive-companion",
33
"productName": "Competitive Companion",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"description": "Parses programming problems and sends them to various tools like CHelper and Hightail.",
66
"repository": "https://github.com/jmerle/competitive-companion",
77
"author": "Jasper van Merle",

src/hosts/HightailHost.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/hosts/hosts.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ import { Host } from './Host';
22
import { CHelperHost } from './CHelperHost';
33
import { Config } from '../utils/Config';
44
import { CustomHost } from './CustomHost';
5-
import { HightailHost } from './HightailHost';
65

7-
const defaultHosts = [new CHelperHost(), new HightailHost()];
6+
const defaultHosts: Host[] = [new CHelperHost()];
7+
const defaultPorts = [
8+
4244, // Hightail
9+
6174, // Mind Sport
10+
];
811

912
export function getHosts(): Promise<Host[]> {
1013
return new Promise((resolve, reject) => {
1114
Config.get<number[]>('customPorts').then(ports => {
12-
const hosts = defaultHosts.concat(ports.map(port => new CustomHost(port)));
15+
const uniquePorts = [...new Set(defaultPorts.concat(ports))];
16+
const hosts = defaultHosts.concat(uniquePorts.map(port => new CustomHost(port)));
1317
resolve(hosts);
1418
}).catch(reject);
1519
});

0 commit comments

Comments
 (0)