-
Notifications
You must be signed in to change notification settings - Fork 137
/
package.json
377 lines (375 loc) · 10.6 KB
/
package.json
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
{
"name": "a-shares",
"displayName": "复利备忘录",
"description": "复利备忘录,VSCode 里最强悍的A股量化平台,实时数据,做最好用的投资插件",
"version": "1.0.32",
"engines": {
"vscode": "^1.59.0"
},
"author": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"repository": {
"type": "git",
"url": "https://github.com/xxjwxc/shares.git"
},
"keywords": [
"stock",
"fund",
"ashares",
"股票",
"量化",
"复利备忘录",
"同花顺",
"东方财富",
"股东数",
"A股",
"a股",
"股票插件",
"股票量化",
"股票实时数据",
"股票数据",
"股票分析",
"股票软件",
"股票行情",
"股票交易",
"股票投资",
"金融模型",
"股票查询",
"人工智能",
"量化投资",
"股票分析软件"
],
"publisher": "a-shares",
"categories": [
"Other"
],
"icon": "images/logo.png",
"activationEvents": [
"onStartupFinished",
"onCommand:extension.sayHello"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "asharesMenu",
"title": "复利备忘录",
"icon": "images/logo1.svg"
}
]
},
"commands": [
{
"command": "a-shares.clearStock",
"title": "清空数据",
"icon": "$(notifications-clear-all)"
},
{
"command": "a-shares.refreshStock",
"title": "刷新数据",
"icon": "$(refresh)"
},
{
"command": "a-shares.yjzd",
"title": "一键诊断",
"icon": {
"light": "images/light/flow.svg",
"dark": "images/dark/flow.svg"
}
},
{
"command": "a-shares.sortStock",
"title": "升序/降序/不排序",
"icon": {
"light": "images/light/sort.svg",
"dark": "images/dark/sort.svg"
}
},
{
"command": "a-shares.addStock",
"title": "添加股票",
"icon": "$(add)"
},
{
"command": "a-shares.setStockUp",
"title": "股票上移",
"icon": "$(arrow-up)"
},
{
"command": "a-shares.setStockDown",
"title": "股票下移",
"icon": "$(arrow-down)"
},
{
"command": "a-shares.setStockTop",
"title": "股票置顶",
"icon": {
"light": "images/light/top.svg",
"dark": "images/dark/top.svg"
}
},
{
"command": "a-shares.deleteStock",
"title": "删除股票"
},
{
"command": "a-shares.deleteStockOnline",
"title": "删除股票(同步删除)"
},
{
"command": "a-shares.addStockToBar",
"title": "添加至状态栏"
},
{
"command": "a-shares.clearUser",
"category": "清除用户",
"title": "退出",
"icon": "$(log-out)"
},{
"command": "a-shares.updateCode",
"category": "同步代码",
"title": "同步",
"icon": "$(refresh)"
},{
"command": "a-shares.toggleStatusBarVisibility",
"title": "a-shares: Toggle Status Bar Visibility"
}
],
"viewsWelcome": [
{
"view": "asharesFundView.stock",
"contents": "无数据,请检查网络或添加股票"
},
{
"view": "asharesFundView.mega",
"contents": "无数据,请检查网络"
},{
"view": "asharesFundView.chat",
"contents": "无数据,请检查网络"
}
],
"configuration": {
"type": "object",
"title": "复利备忘录",
"properties": {
"a-shares.stocks": {
"type": "array",
"default": [
"sh000001",
"sh000300",
"sh000016",
"sh000688"
],
"description": "配置需要监控的股票代码(建议通过界面新增)"
},
"a-shares.statusBarStock": {
"type": "array",
"default": [
"sh000001"
],
"description": "状态栏展示的股票(建议通过界面选择设置,必须是在股票代码已设置存在)"
},
"a-shares.interval": {
"type": "number",
"default": 5000,
"description": "配置轮询请求最新数据的时间间隔,单位:毫秒(最小轮询间隔是3秒)"
},
"a-shares.riseColor": {
"type": "string",
"default": "#ff785d",
"description": "股票涨的颜色"
},
"a-shares.fallColor": {
"type": "string",
"default": "#ec7f75",
"description": "股票跌的颜色"
},"a-shares.deviceid": {
"type": "string",
"default": "",
"description": "设备id"
},"a-shares.userid": {
"type": "string",
"default": "",
"description": "用户id"
},"a-shares.username": {
"type": "string",
"default": "",
"description": "用户名"
},"a-shares.userurl": {
"type": "string",
"default": "",
"description": "头像"
},
"a-shares.hideStatusBarStock": {
"type": "boolean",
"default": false,
"description": "是否隐藏股票状态栏"
},
"a-shares.hideStatusBar": {
"type": "boolean",
"default": false,
"description": "是否隐藏状态栏"
}
}
},
"menus": {
"view/title": [
{
"command": "a-shares.refreshStock",
"when": "view == asharesFundView.stock",
"group": "navigation@1"
},
{
"command": "a-shares.yjzd",
"when": "view == asharesFundView.stock",
"group": "navigation@2"
},
{
"command": "a-shares.sortStock",
"when": "view == asharesFundView.stock",
"group": "navigation@3"
},
{
"command": "a-shares.addStock",
"when": "view == asharesFundView.stock",
"group": "navigation@4"
},
{
"command": "a-shares.clearStock",
"when": "view == asharesFundView.stock",
"group": "navigation@5"
},
{
"command": "a-shares.clearUser",
"group": "navigation",
"when": "view == asharesFundView.chat"
},
{
"command": "a-shares.clearUser",
"group": "navigation",
"when": "view == asharesFundView.account"
},
{
"command": "a-shares.updateCode",
"group": "navigation",
"when": "view == asharesFundView.account"
}
],
"view/item/context": [
{
"command": "a-shares.setStockUp",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "group1"
},
{
"command": "a-shares.setStockDown",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "group1"
},
{
"command": "a-shares.setStockTop",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "group1"
},
{
"command": "a-shares.deleteStock",
"when": "view == asharesFundView.stock && viewItem != category",
"group": "group5"
},
{
"command": "a-shares.deleteStockOnline",
"when": "view == asharesFundView.stock && viewItem != category",
"group": "group5"
},
{
"command": "a-shares.addStockToBar",
"when": "view == asharesFundView.stock && viewItem != category",
"group": "group6"
}, {
"command": "a-shares.setStockTop",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "inline"
},
{
"command": "a-shares.setStockUp",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "inline"
},
{
"command": "a-shares.setStockDown",
"when": "view == asharesFundView.stock && viewItem != category && viewItem!=nodata",
"group": "inline"
}
]
},
"views": {
"asharesMenu": [
{
"id": "asharesFundView.stock",
"name": "Stock"
},
{
"id": "asharesFundView.mega",
"visibility": "visible",
"name": "Mega"
},{
"id": "asharesFundView.chat",
"visibility": "visible",
"name": "复利Chat",
"type": "webview"
},
{
"id": "asharesFundView.account",
"visibility": "visible",
"name": "Account",
"type": "webview"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.59.0",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"eslint": "^8.57.0",
"typescript": "^5.4.5",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.3.9",
"cross-env": "^7.0.3",
"glob": "^7.1.6",
"husky": "^4.3.0",
"lint-staged": "^10.5.1",
"mocha": "^7.1.2",
"prettier": "^2.1.2",
"standard-version": "^9.3.2",
"vsce": "^2.15.0",
"vscode-test": "^1.3.0"
},
"dependencies": {
"amplitude": "^5.1.4",
"axios": "^0.19.2",
"cheerio": "1.0.0-rc.6",
"compare-versions": "^3.6.0",
"entities": "2.2.0",
"iconv-lite": "^0.6.2",
"lodash.clonedeep": "^4.5.0",
"lodash.throttle": "^4.1.1",
"moment": "^2.29.4",
"public-ip": "^4.0.3",
"ws": "^7.4.1"
},
"extensionKind": [
"ui",
"workspace"
]
}