Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5ef609e

Browse files
committed
move plugins' specific data into separate dirs.
* see skygragon/leetcode-cli@b72d4d6 Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent c4ac577 commit 5ef609e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plugins/leetcode.cn.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ var Plugin = require('../plugin');
55
//
66
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/leetcode.cn.md
77
//
8-
var plugin = new Plugin(15, 'leetcode.cn', '2018.05.30',
8+
var plugin = new Plugin(15, 'leetcode.cn', '2018.10.28',
99
'Plugin to talk with leetcode-cn APIs.');
1010

1111
plugin.init = function() {
1212
const config = require('../config');
13+
config.app = 'leetcode.cn';
1314
config.sys.urls.base = 'https://leetcode-cn.com';
1415
config.sys.urls.login = 'https://leetcode-cn.com/accounts/login/';
1516
config.sys.urls.problems = 'https://leetcode-cn.com/api/problems/$category/';

plugins/lintcode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var session = require('../session');
1919
//
2020
// https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/lintcode.md
2121
//
22-
const plugin = new Plugin(15, 'lintcode', '2018.05.30',
22+
const plugin = new Plugin(15, 'lintcode', '2018.10.28',
2323
'Plugin to talk with lintcode APIs.');
2424

2525
// FIXME: add more langs
@@ -83,6 +83,7 @@ function _strip(s) {
8383
}
8484

8585
plugin.init = function() {
86+
config.app = 'lintcode';
8687
config.sys.urls.base = 'https://www.lintcode.com';
8788
config.sys.urls.problems = 'https://www.lintcode.com/api/problems/?page=$page';
8889
config.sys.urls.problem = 'https://www.lintcode.com/problem/$slug/description';

0 commit comments

Comments
 (0)