@dsh-ft/dsh-fft-paper-trading 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/lib/client.js +29 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/BetterSidebarTab.js +2 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/generated-view.js +15 -72
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/index.js +10 -28
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/mode-preferences.js +10 -7
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/native-sidebar-contract.js +36 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/native-sidebar.js +99 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/client/ui-onboarding.js +10 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/client.js +193 -121
- package/node_modules/@ftshare-lab/dsh-kline/lib/client.js.map +1 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/BetterSidebarTab.d.ts +5 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-services.d.ts +36 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/mode-preferences.d.ts +1 -1
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-contract.d.ts +21 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar.d.ts +62 -0
- package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ui-onboarding.d.ts +9 -2
- package/node_modules/@ftshare-lab/dsh-kline/view/kline.html +13 -79
- package/package.json +3 -9
- package/src/client/index.js +29 -0
- package/node_modules/@dsh-ft/dsh-fft-ftshare/README.md +0 -73
- package/node_modules/@dsh-ft/dsh-fft-ftshare/catalog.json +0 -9762
- package/node_modules/@dsh-ft/dsh-fft-ftshare/catalog.meta.json +0 -7
- package/node_modules/@dsh-ft/dsh-fft-ftshare/catalog.txt +0 -250
- package/node_modules/@dsh-ft/dsh-fft-ftshare/cordis.patch.yml +0 -27
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/capabilities.d.ts +0 -47
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/capabilities.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/capabilities.js +0 -145
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/capabilities.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog-host.d.ts +0 -19
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog-host.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog-host.js +0 -31
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog-host.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog.d.ts +0 -51
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog.js +0 -60
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/catalog.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/client.d.ts +0 -52
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/client.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/client.js +0 -149
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/client.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/contract.d.ts +0 -122
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/contract.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/contract.js +0 -24
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/contract.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/errors.d.ts +0 -93
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/errors.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/errors.js +0 -261
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/errors.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/index.d.ts +0 -64
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/index.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/index.js +0 -160
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/index.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/mask.d.ts +0 -66
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/mask.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/mask.js +0 -106
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/mask.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/project.d.ts +0 -98
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/project.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/project.js +0 -326
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/project.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/route.d.ts +0 -48
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/route.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/route.js +0 -90
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/route.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/tools.d.ts +0 -31
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/tools.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/tools.js +0 -132
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/tools.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/transport.d.ts +0 -53
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/transport.d.ts.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/transport.js +0 -147
- package/node_modules/@dsh-ft/dsh-fft-ftshare/lib/transport.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-ftshare/package.json +0 -82
- package/node_modules/@dsh-ft/dsh-fft-settings/README.md +0 -385
- package/node_modules/@dsh-ft/dsh-fft-settings/cordis.patch.yml +0 -18
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/compatibility-dsh-0.1.6-alpha.1.md +0 -58
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/extension-service-design.md +0 -351
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/extension-service-sequences.html +0 -545
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/ftshare-settings-er.html +0 -139
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/ftshare-settings-er.svg +0 -113
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/ftshare-settings-results-er.html +0 -148
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/ftshare-settings-results-er.svg +0 -122
- package/node_modules/@dsh-ft/dsh-fft-settings/docs/kline-integration.md +0 -258
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/agent.d.ts +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/agent.js +0 -26
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/brand.d.ts +0 -53
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/brand.js +0 -50
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/client.d.ts +0 -8
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/client.js +0 -822
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/client.js.map +0 -1
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/contract.d.ts +0 -14
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/contract.js +0 -14
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/client-transport.d.ts +0 -15
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/client-transport.js +0 -31
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/contract.d.ts +0 -62
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/contract.js +0 -28
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/module-registry.d.ts +0 -54
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/module-registry.js +0 -68
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/rpc-core.d.ts +0 -69
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/rpc-core.js +0 -88
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/shell.d.ts +0 -59
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/shell.js +0 -28
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/styles.d.ts +0 -31
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/styles.js +0 -43
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/transport.d.ts +0 -19
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/core/transport.js +0 -80
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/default-preset.d.ts +0 -52
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/default-preset.js +0 -121
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/card.d.ts +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/card.js +0 -39
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/client-api.d.ts +0 -4
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/client-api.js +0 -11
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/contract.d.ts +0 -69
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/contract.js +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/host.d.ts +0 -17
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/host.js +0 -32
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/index.d.ts +0 -13
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/index.js +0 -12
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/logging.d.ts +0 -15
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/logging.js +0 -1
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/model.d.ts +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/model.js +0 -105
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/probe.d.ts +0 -11
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/probe.js +0 -142
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/rpc.d.ts +0 -4
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/rpc.js +0 -17
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/service.d.ts +0 -21
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/service.js +0 -181
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/styles.d.ts +0 -9
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/api-key/styles.js +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/archive.d.ts +0 -87
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/archive.js +0 -156
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/card.d.ts +0 -22
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/card.js +0 -107
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/client-api.d.ts +0 -4
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/client-api.js +0 -11
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/collector.d.ts +0 -91
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/collector.js +0 -258
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/config.d.ts +0 -70
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/config.js +0 -97
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/contract.d.ts +0 -130
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/contract.js +0 -67
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/export.d.ts +0 -92
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/export.js +0 -212
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/format.d.ts +0 -42
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/format.js +0 -172
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/home.d.ts +0 -18
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/home.js +0 -39
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/host.d.ts +0 -19
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/host.js +0 -139
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/index.d.ts +0 -12
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/index.js +0 -12
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/rpc.d.ts +0 -6
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/rpc.js +0 -27
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/styles.d.ts +0 -9
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/features/logs/styles.js +0 -13
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/guidance.d.ts +0 -41
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/guidance.js +0 -88
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/index.d.ts +0 -67
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/index.js +0 -50
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/rpc.d.ts +0 -10
- package/node_modules/@dsh-ft/dsh-fft-settings/lib/rpc.js +0 -10
- package/node_modules/@dsh-ft/dsh-fft-settings/package.json +0 -80
- package/node_modules/@dsh-ft/dsh-fft-settings/src/agent.ts +0 -31
- package/node_modules/@dsh-ft/dsh-fft-settings/src/brand.ts +0 -79
- package/node_modules/@dsh-ft/dsh-fft-settings/src/client.tsx +0 -21
- package/node_modules/@dsh-ft/dsh-fft-settings/src/contract.ts +0 -14
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/client-transport.ts +0 -37
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/contract.ts +0 -57
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/module-registry.ts +0 -102
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/rpc-core.ts +0 -107
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/shell.tsx +0 -81
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/styles.ts +0 -43
- package/node_modules/@dsh-ft/dsh-fft-settings/src/core/transport.ts +0 -82
- package/node_modules/@dsh-ft/dsh-fft-settings/src/default-preset.ts +0 -151
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/card.tsx +0 -77
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/client-api.ts +0 -12
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/contract.ts +0 -63
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/host.ts +0 -36
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/index.ts +0 -13
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/logging.ts +0 -15
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/model.ts +0 -63
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/probe.ts +0 -116
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/rpc.ts +0 -18
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/service.ts +0 -157
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/api-key/styles.ts +0 -24
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/archive.ts +0 -230
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/card.tsx +0 -169
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/client-api.ts +0 -20
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/collector.ts +0 -313
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/config.ts +0 -115
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/contract.ts +0 -149
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/export.ts +0 -274
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/format.ts +0 -188
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/home.ts +0 -43
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/host.ts +0 -153
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/index.ts +0 -12
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/rpc.ts +0 -29
- package/node_modules/@dsh-ft/dsh-fft-settings/src/features/logs/styles.ts +0 -13
- package/node_modules/@dsh-ft/dsh-fft-settings/src/guidance.ts +0 -114
- package/node_modules/@dsh-ft/dsh-fft-settings/src/index.ts +0 -59
- package/node_modules/@dsh-ft/dsh-fft-settings/src/rpc.ts +0 -10
package/README.md
CHANGED
|
@@ -73,4 +73,13 @@ API Key 在 DSH「设置 → 金融终端」中配置,申请地址:<https://
|
|
|
73
73
|
- 重置账户会先备份到同目录的 `backups/`;账户异常锁定时面板会给出账本路径,可导出后排查。
|
|
74
74
|
- 仅用于模拟与研究,不接实盘,不构成投资建议。
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
## 反馈
|
|
77
|
+
|
|
78
|
+
遇到 bug 或想加功能,走 GitHub Issues(面板顶栏「反馈」是同一入口):
|
|
79
|
+
|
|
80
|
+
- [报告 bug](https://github.com/gigaflw/dsh-fft-paper-trading/issues/new?template=bug_report.yml)
|
|
81
|
+
- [功能建议](https://github.com/gigaflw/dsh-fft-paper-trading/issues/new?template=feature_request.yml)
|
|
82
|
+
|
|
83
|
+
贴日志前先删掉 API Key、账户数据与账本路径。行情额度、Key 与交易日历这类使用问题,先看上面的「行情与 API Key」。
|
|
84
|
+
|
|
85
|
+
本项目以 [MIT](LICENSE) 许可开源。变更记录见 [CHANGELOG.md](CHANGELOG.md)。
|
package/lib/client.js
CHANGED
|
@@ -8,6 +8,17 @@ window.__ModuleLoader__.load({
|
|
|
8
8
|
const h = React.createElement
|
|
9
9
|
|
|
10
10
|
const ROUTE = '/api/ft-paper-trading'
|
|
11
|
+
/** Release number stamped into the Feedback link title at build time. */
|
|
12
|
+
const PAPER_VERSION = '0.5.0'
|
|
13
|
+
/** Public repository; the panel links out and collects nothing itself. */
|
|
14
|
+
const ISSUE_NEW = 'https://github.com/gigaflw/dsh-fft-paper-trading/issues/new'
|
|
15
|
+
/**
|
|
16
|
+
* Feedback opens the Bug form with the release already in the title: a
|
|
17
|
+
* report without a version costs triage a round trip. GitHub honours only
|
|
18
|
+
* `title`/`labels` on a form URL — a `body` param is ignored (and a blank
|
|
19
|
+
* issue can 400 on repos that disable it) — so the body stays user-written.
|
|
20
|
+
*/
|
|
21
|
+
const FEEDBACK_URL = `${ISSUE_NEW}?template=bug_report.yml&title=${encodeURIComponent(`[Bug] v${PAPER_VERSION} `)}`
|
|
11
22
|
const PERIODS = [
|
|
12
23
|
['7d', '7 天'],
|
|
13
24
|
['30d', '30 天'],
|
|
@@ -507,6 +518,10 @@ window.__ModuleLoader__.load({
|
|
|
507
518
|
color:var(--pt-accent-ink); font-weight:500; }
|
|
508
519
|
.pt-btn-primary:hover { background:var(--pt-accent-hover); border-color:var(--pt-accent-hover); }
|
|
509
520
|
.pt-btn-danger { color:var(--dsw-alias-state-error-primary, #a33b2a); }
|
|
521
|
+
/* The only anchor styled as a button: a secondary utility, never an
|
|
522
|
+
action, so it sits last in the header row. A normal line-height matches
|
|
523
|
+
the UA default on button, keeping the two the same height. */
|
|
524
|
+
.pt-feedback { text-decoration:none; display:inline-flex; align-items:center; line-height:normal; }
|
|
510
525
|
.pt-row { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; }
|
|
511
526
|
.pt-field { display:flex; flex-direction:column; gap:3px; min-width:0; }
|
|
512
527
|
.pt-field span { font-size:11px; color:var(--dsw-alias-label-secondary, #49525f); }
|
|
@@ -709,6 +724,18 @@ window.__ModuleLoader__.load({
|
|
|
709
724
|
))
|
|
710
725
|
}
|
|
711
726
|
|
|
727
|
+
/**
|
|
728
|
+
* Support entry: a plain link to the public issue form. It reads nothing
|
|
729
|
+
* from the ledger, so it is safe to show in every account state — including
|
|
730
|
+
* a blocked one, where a report is most likely needed.
|
|
731
|
+
*/
|
|
732
|
+
function FeedbackLink() {
|
|
733
|
+
return h('a', {
|
|
734
|
+
className: 'pt-btn pt-feedback', href: FEEDBACK_URL, target: '_blank', rel: 'noreferrer',
|
|
735
|
+
title: '在 GitHub 报告问题',
|
|
736
|
+
}, '反馈')
|
|
737
|
+
}
|
|
738
|
+
|
|
712
739
|
/** Wide tables scroll inside their own box instead of the page. */
|
|
713
740
|
function Table({ children }) {
|
|
714
741
|
return h('div', { className: 'pt-table-wrap' }, h('table', { className: 'pt-table' }, children))
|
|
@@ -2059,6 +2086,7 @@ window.__ModuleLoader__.load({
|
|
|
2059
2086
|
},
|
|
2060
2087
|
}, '资金'),
|
|
2061
2088
|
h('button', { className: 'pt-btn pt-btn-danger', onClick: reset, disabled: busy }, '重置'),
|
|
2089
|
+
h(FeedbackLink),
|
|
2062
2090
|
),
|
|
2063
2091
|
),
|
|
2064
2092
|
h(DataBanner, { status: dataSource, onRetry: refreshAll }),
|
|
@@ -3048,6 +3076,7 @@ window.__ModuleLoader__.load({
|
|
|
3048
3076
|
},
|
|
3049
3077
|
}, '资金'),
|
|
3050
3078
|
h('button', { className: 'pt-btn pt-btn-danger', onClick: reset, disabled: busy }, '重置'),
|
|
3079
|
+
h(FeedbackLink),
|
|
3051
3080
|
),
|
|
3052
3081
|
),
|
|
3053
3082
|
h(DataBanner, { status: dataSource, onRetry: refreshAll }),
|
|
@@ -5,7 +5,8 @@ import { NativeKlineApp, StandaloneKlineApp, standaloneWorkspaceScope } from './
|
|
|
5
5
|
import { InterfaceContext, readAutoOpen } from './mode-preferences';
|
|
6
6
|
import { KLINE_TAB_ID, klineTabTitle, migrateKlineTabTitle } from './sidebar-integration';
|
|
7
7
|
import { installDefaultKlineTabs } from './default-tab';
|
|
8
|
-
|
|
8
|
+
/** The chart itself, shared by every host tab: Better Sidebar and the native one. */
|
|
9
|
+
export function KlineTabContent({ sessions, conversationId }) {
|
|
9
10
|
// Better Sidebar preserves a tab and its previous scope on the host's
|
|
10
11
|
// New Session screen. Never promote an already-present chart from that
|
|
11
12
|
// scope: only an analysis result that arrives while this view is live may
|