-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpackage.json
More file actions
131 lines (131 loc) · 3.26 KB
/
Copy pathpackage.json
File metadata and controls
131 lines (131 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "stock-bar",
"displayName": "Stock Bar",
"description": "股票监控,底部状态栏实时更新 A股|港股|美股|实时股票数据",
"version": "1.0.12",
"publisher": "Chef",
"license": "MIT",
"keywords": [
"stock",
"vscode"
],
"icon": "stocks.png",
"engines": {
"vscode": "^1.28.0",
"node": "^18.0.0"
},
"categories": [
"Other"
],
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"publish": "vsce publish ",
"package:local": "vsce package ",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"activationEvents": [
"*"
],
"main": "./dist/extension",
"contributes": {
"configuration": {
"properties": {
"stock-bar.stocks": {
"type": "array",
"default": [
"sh000001",
{
"code": "sz000001",
"alias": "平安",
"hold_price": 0,
"hold_number": 0
}
],
"description": "股票代码数组,配置需要监控的股票代码,具体配置规则请查看插件详情页"
},
"stock-bar.futures": {
"type": "array",
"default": [],
"description": "商品期货数组,配置需要监控的商品期货,具体配置规则请查看插件详情页"
},
"stock-bar.updateInterval": {
"type": "number",
"default": 10000,
"description": "更新数据时间间隔,单位:毫秒"
},
"stock-bar.riseColor": {
"type": "string",
"default": "",
"description": "股票涨的颜色,默认跟随系统"
},
"stock-bar.fallColor": {
"type": "string",
"default": "",
"description": "股票跌的颜色,默认跟随系统"
},
"stock-bar.showAccountPnL": {
"type": "boolean",
"default": true,
"description": "是否展示持仓收益信息"
},
"stock-bar.useQosForHkUs": {
"type": "boolean",
"default": false,
"description": "是否启用qos.hk接口获取港美股实时行情(需要配置token)"
},
"stock-bar.qosHkToken": {
"type": "string",
"default": "",
"description": "qos.hk接口的token,用于获取港美股实时行情"
}
}
},
"commands": [
{
"command": "stockbar.start",
"title": "Show Stock Bar"
},
{
"command": "stockbar.stop",
"title": "Hide Stock Bar"
},
{
"command": "stockbar.add",
"title": "Add Stock Bar"
}
]
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/vscode": "^1.28.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.1",
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"prettier": "^2.6.2",
"ts-loader": "^9.3.0",
"typescript": "^4.7.2",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"
},
"dependencies": {
"axios": "^0.27.2"
},
"repository": {
"type": "git",
"url": "https://github.com/Chef5/stock-bar"
}
}