-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #412 from tlff/stock
feat: 增加股票收益计算
- Loading branch information
Showing
11 changed files
with
1,637 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"path": "src/registerCommand.ts", | ||
"bookmarks": [ | ||
{ | ||
"line": 37, | ||
"column": 0, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 257, | ||
"column": 2, | ||
"label": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "src/explorer/stockService.ts", | ||
"bookmarks": [ | ||
{ | ||
"line": 66, | ||
"column": 2, | ||
"label": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "src/extension.ts", | ||
"bookmarks": [ | ||
{ | ||
"line": 221, | ||
"column": 1, | ||
"label": "" | ||
}, | ||
{ | ||
"line": 222, | ||
"column": 2, | ||
"label": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "src/statusbar/Profit.ts", | ||
"bookmarks": [ | ||
{ | ||
"line": 77, | ||
"column": 1, | ||
"label": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "leek-fund", | ||
"displayName": "韭菜盒子", | ||
"description": "韭菜盒子,VSCode 里也可以看股票 & 基金实时数据,做最好用的投资插件", | ||
"version": "3.6.1", | ||
"version": "3.6.2", | ||
"author": "giscafer <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -171,6 +171,14 @@ | |
"title": "添加股票", | ||
"icon": "$(add)" | ||
}, | ||
{ | ||
"command": "leek-fund.setStockPrice", | ||
"title": "设置股票成本价", | ||
"icon": { | ||
"light": "resources/light/amount.svg", | ||
"dark": "resources/dark/amount.svg" | ||
} | ||
}, | ||
{ | ||
"command": "leek-fund.leekCenterView", | ||
"title": "韭菜中心", | ||
|
@@ -339,6 +347,11 @@ | |
"when": "view == leekFundView.stock", | ||
"group": "navigation" | ||
}, | ||
{ | ||
"command": "leek-fund.setStockPrice", | ||
"when": "view == leekFundView.stock", | ||
"group": "navigation" | ||
}, | ||
{ | ||
"command": "leek-fund.refreshFollow", | ||
"when": "view == leekFundView.news", | ||
|
@@ -506,6 +519,11 @@ | |
], | ||
"description": "配置需要监控的股票代码(建议通过界面新增)" | ||
}, | ||
"leek-fund.stockPrice": { | ||
"type": "object", | ||
"default": {}, | ||
"description": "股票持仓金额(不建议手填,格式错误影响功能)" | ||
}, | ||
"leek-fund.funds": { | ||
"type": "array", | ||
"default": [ | ||
|
@@ -744,6 +762,7 @@ | |
"@types/ws": "^7.4.0", | ||
"@typescript-eslint/eslint-plugin": "^2.30.0", | ||
"@typescript-eslint/parser": "^2.30.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^6.8.0", | ||
"glob": "^7.1.6", | ||
"husky": "^4.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.