gloomberb 0.20.0 → 0.20.2
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 +16 -26
- package/README.zh-CN.md +21 -65
- package/package.json +1 -1
- package/patches/electrobun-devkit@2.0.5.patch +268 -8
- package/src/account/auth-model.ts +20 -1
- package/src/account/upgrade-dialog.tsx +8 -4
- package/src/api-client/askg.ts +7 -1
- package/src/api-client/auth.ts +27 -0
- package/src/api-client/catalysts.ts +2 -0
- package/src/api-client/company-kpis.ts +2 -1
- package/src/api-client/cot.ts +14 -2
- package/src/api-client/crypto-markets.ts +20 -2
- package/src/api-client/data.ts +3 -2
- package/src/api-client/earnings.ts +46 -3
- package/src/api-client/fund-facts.ts +23 -1
- package/src/api-client/futures-curve.ts +17 -0
- package/src/api-client/index.ts +4 -1
- package/src/api-client/one-tap-reasons.ts +42 -0
- package/src/api-client/perps.ts +2 -1
- package/src/api-client/request.ts +3 -1
- package/src/api-client/research-activity.ts +16 -3
- package/src/api-client/types/filings-and-calls.ts +9 -0
- package/src/api-client/types/search.ts +3 -0
- package/src/app/keybindings/chord.ts +153 -9
- package/src/app/keybindings/index.ts +1 -1
- package/src/app/keybindings/labels.ts +49 -6
- package/src/app/runtime/desktop-deeplink.ts +73 -8
- package/src/app/runtime/plugin-seed.ts +119 -0
- package/src/app/runtime/startup.ts +45 -9
- package/src/app.tsx +8 -1
- package/src/architecture/core-builtin-allowlist.json +1 -2
- package/src/architecture/pane-tabs-allowlist.json +2 -1
- package/src/architecture/shortcut-labels-allowlist.json +11 -0
- package/src/architecture/ui-literals-allowlist.json +8 -8
- package/src/brokers/broker-portfolio-sync.ts +1 -1
- package/src/cli/bank-section.ts +26 -12
- package/src/cli/board-coins.ts +38 -5
- package/src/cli/commands/crypto-hints.ts +8 -1
- package/src/cli/commands/market.ts +294 -100
- package/src/cli/commands/overview.ts +13 -6
- package/src/cli/commands/ticker.ts +73 -21
- package/src/cli/company-name-hint.ts +19 -0
- package/src/cli/desktop-pane-shot-browser.ts +47 -31
- package/src/cli/desktop-pane-shot.ts +15 -0
- package/src/cli/entry.ts +15 -4
- package/src/cli/export-source.ts +7 -1
- package/src/cli/freshness.ts +0 -16
- package/src/cli/fx-pair.ts +64 -12
- package/src/cli/fx-quote-rate.ts +144 -0
- package/src/cli/glossary.ts +30 -0
- package/src/cli/helpers.ts +4 -2
- package/src/cli/history-back-adjust.ts +122 -0
- package/src/cli/history-rows.ts +114 -10
- package/src/cli/index.ts +4 -1
- package/src/cli/known-gaps.ts +45 -3
- package/src/cli/listing-arg.ts +48 -4
- package/src/cli/name-entries.ts +25 -5
- package/src/cli/not-a-ticker.ts +26 -1
- package/src/cli/pane-functions/catalog.ts +12 -2
- package/src/cli/pane-functions/dom.ts +4 -2
- package/src/cli/pane-functions/freshness.ts +45 -29
- package/src/cli/pane-functions/headless.ts +8 -5
- package/src/cli/pane-functions/index.ts +3 -0
- package/src/cli/pane-functions/market-session.ts +14 -5
- package/src/cli/pane-functions/resolver.ts +4 -1
- package/src/cli/pane-functions/screenshot-assessment.ts +15 -3
- package/src/cli/pane-functions/screenshot-payload.ts +130 -66
- package/src/cli/pane-functions/screenshot-render.ts +14 -2
- package/src/cli/pane-functions/screenshot-types.ts +4 -0
- package/src/cli/restore-plugins.ts +164 -51
- package/src/cli/symbol-rows.ts +22 -2
- package/src/cli/ticker-resolution.ts +74 -17
- package/src/components/chart/composite/axis-overlays.tsx +13 -3
- package/src/components/chart/composite/composite-chart.tsx +8 -1
- package/src/components/chart/composite/format.ts +16 -1
- package/src/components/chart/composite/legend.tsx +4 -3
- package/src/components/chart/composite/panel-labels.ts +2 -1
- package/src/components/chart/composite/panel-surface.tsx +33 -4
- package/src/components/chart/composite/time-scale.ts +1 -1
- package/src/components/chart/composite/toolbar.tsx +8 -4
- package/src/components/chart/composite/types.ts +17 -1
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +15 -5
- package/src/components/chart/composite/use-composite-viewport.ts +31 -8
- package/src/components/chart/static/scatter-chart-surface.tsx +25 -9
- package/src/components/chart-table/axis.ts +11 -0
- package/src/components/chart-table/header.tsx +10 -1
- package/src/components/chart-table/layout.ts +14 -5
- package/src/components/command-bar/assist/inventory.ts +3 -2
- package/src/components/command-bar/commands/collection-list.ts +3 -2
- package/src/components/command-bar/panel/index.tsx +13 -0
- package/src/components/command-bar/panel/layout.ts +15 -1
- package/src/components/command-bar/panel/prompt-width.ts +34 -0
- package/src/components/command-bar/panel/runtime.ts +1 -0
- package/src/components/command-bar/panel/state.ts +4 -0
- package/src/components/command-bar/panel/types.ts +2 -0
- package/src/components/command-bar/routes/root/search-providers.ts +3 -2
- package/src/components/command-bar/routes/root/search-report.ts +2 -2
- package/src/components/command-bar/workflow/ticker-listing-picker.ts +1 -0
- package/src/components/company-logo.tsx +2 -2
- package/src/components/data-table/view.tsx +11 -2
- package/src/components/feed-data-table/stack-view.tsx +20 -6
- package/src/components/feedback-dialog.tsx +3 -1
- package/src/components/form-modal/field-row.tsx +1 -1
- package/src/components/form-modal/routes.ts +1 -0
- package/src/components/index.ts +1 -1
- package/src/components/layout/header.tsx +12 -3
- package/src/components/layout/market-summary.ts +2 -1
- package/src/components/layout/pane/footer/index.tsx +9 -5
- package/src/components/layout/pane/footer/model.ts +26 -10
- package/src/components/layout/pane/footer/registration.tsx +60 -1
- package/src/components/layout/pane/header-tabs.tsx +17 -3
- package/src/components/layout/pane/header.tsx +5 -2
- package/src/components/layout/pane/pane-tabs.tsx +57 -3
- package/src/components/layout/shell/active-drag.ts +38 -30
- package/src/components/layout/shell/drag/index.ts +51 -21
- package/src/components/layout/shell/menu.ts +3 -5
- package/src/components/layout/shell/pane/actions.ts +4 -1
- package/src/components/layout/shell/pane/ask.ts +5 -2
- package/src/components/layout/status-bar.tsx +59 -54
- package/src/components/markdown-text.tsx +35 -10
- package/src/components/onboarding/first-run-workspace.ts +25 -23
- package/src/components/onboarding/onboarding-keyboard.ts +6 -1
- package/src/components/onboarding/onboarding-wizard.tsx +12 -2
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +3 -3
- package/src/components/onboarding/use-onboarding-broker-form.ts +2 -1
- package/src/components/onboarding/use-onboarding-progress.ts +11 -4
- package/src/components/onboarding/use-onboarding-upgrade.ts +3 -2
- package/src/components/onboarding/wizard-positions.ts +8 -1
- package/src/components/pane-notice-seen.ts +125 -0
- package/src/components/pane-settings-dialog/field-dialogs.tsx +2 -1
- package/src/components/pane-settings-dialog.tsx +7 -6
- package/src/components/sign-in-code-panel.tsx +3 -2
- package/src/components/speedometer-gauge/terminal.tsx +30 -9
- package/src/components/ticker/list-table-view.tsx +39 -3
- package/src/components/ui/confirm-dialog.tsx +2 -1
- package/src/components/ui/data-table/index.tsx +4 -2
- package/src/components/ui/data-table/opentui/index.tsx +15 -5
- package/src/components/ui/data-table/types.ts +8 -0
- package/src/components/ui/external-link.tsx +4 -1
- package/src/components/ui/field-grid.tsx +1 -1
- package/src/components/ui/index.ts +2 -0
- package/src/components/ui/inline-quick-add.tsx +5 -0
- package/src/components/ui/multi-select/dialog.tsx +10 -9
- package/src/components/ui/pane-link-chip.tsx +354 -0
- package/src/components/ui/query-bar.tsx +22 -13
- package/src/components/ui/ratio-bar.tsx +24 -1
- package/src/components/ui/select-button.tsx +2 -1
- package/src/components/ui/shortcut-hint.tsx +6 -3
- package/src/components/ui/table-layout.ts +81 -0
- package/src/components/ui/tabs.tsx +45 -6
- package/src/components/use-pane-notice-footer.tsx +12 -4
- package/src/core/app-service-ports.ts +1 -1
- package/src/data/plugin-state-store.ts +44 -8
- package/src/docs/snapshot.json +53 -32
- package/src/i18n/es.ts +28 -6
- package/src/i18n/ja.ts +28 -5
- package/src/i18n/ko.ts +28 -5
- package/src/i18n/zh-cn.ts +28 -5
- package/src/i18n/zh-tw.ts +28 -5
- package/src/layout/pane-manager/gridlock-inference.ts +2 -1
- package/src/layout/pane-manager/gridlock.ts +47 -2
- package/src/layout-marketplace/api.ts +1 -0
- package/src/layout-marketplace/gallery.tsx +4 -3
- package/src/layout-marketplace/linked.ts +6 -4
- package/src/layout-marketplace/model.ts +3 -2
- package/src/market-data/fund-facts.ts +7 -1
- package/src/market-data/futures-contract.ts +77 -31
- package/src/market-data/fx-closes.ts +5 -2
- package/src/market-data/hooks.tsx +23 -0
- package/src/market-data/market/change-basis.ts +92 -14
- package/src/market-data/market/format.ts +81 -13
- package/src/market-data/market/futures-week.ts +3 -1
- package/src/market-data/market/globex-day.ts +73 -0
- package/src/market-data/market/index-level.ts +10 -1
- package/src/market-data/quotes/intraday-bar.ts +1 -1
- package/src/market-data/quotes/session-split.ts +28 -0
- package/src/plugins/builtin/account-management/pane.tsx +1 -1
- package/src/plugins/builtin/analytics/account-returns.ts +1 -1
- package/src/plugins/builtin/analytics/index.tsx +10 -3
- package/src/plugins/builtin/analytics/pane-model.ts +1 -1
- package/src/plugins/builtin/analytics/risk-client.ts +4 -1
- package/src/plugins/builtin/analytics/risk-episodes.ts +422 -0
- package/src/plugins/builtin/analytics/risk-fx.ts +1 -1
- package/src/plugins/builtin/analytics/risk-headless.ts +28 -10
- package/src/plugins/builtin/analytics/risk-math.ts +1 -1
- package/src/plugins/builtin/analytics/risk-model.ts +115 -26
- package/src/plugins/builtin/analytics/risk-pane.tsx +201 -23
- package/src/plugins/builtin/analytics/sharpe-cadence.ts +1 -1
- package/src/plugins/builtin/backtest/format.ts +14 -0
- package/src/plugins/builtin/backtest/pane.tsx +3 -3
- package/src/plugins/builtin/backtest/report.ts +5 -3
- package/src/plugins/builtin/broker-manager/add-request.ts +10 -1
- package/src/plugins/builtin/broker-trading/pane.tsx +20 -2
- package/src/plugins/builtin/buildout/company/flow.tsx +5 -5
- package/src/plugins/builtin/buildout/company/model.ts +14 -2
- package/src/plugins/builtin/catalysts/detail.tsx +2 -2
- package/src/plugins/builtin/catalysts/model.ts +7 -2
- package/src/plugins/builtin/catalysts/pane.tsx +2 -2
- package/src/plugins/builtin/chart-composer/headless.ts +57 -17
- package/src/plugins/builtin/chart-composer/session-range.ts +82 -3
- package/src/plugins/builtin/chat/message/pane-chip.tsx +36 -208
- package/src/plugins/builtin/cloud/askg/answer-follow-ups.tsx +61 -0
- package/src/plugins/builtin/cloud/askg/answer-sources.tsx +102 -0
- package/src/plugins/builtin/cloud/askg/controller.ts +7 -1
- package/src/plugins/builtin/cloud/askg/host.ts +57 -0
- package/src/plugins/builtin/cloud/askg/model.ts +45 -5
- package/src/plugins/builtin/cloud/askg/pane.tsx +304 -25
- package/src/plugins/builtin/cloud/askg/protocol.ts +26 -1
- package/src/plugins/builtin/cloud/askg/sources.ts +466 -0
- package/src/plugins/builtin/cloud/one-tap/controller.ts +309 -0
- package/src/plugins/builtin/cloud/one-tap/google-identity.ts +142 -0
- package/src/plugins/builtin/cloud/one-tap/one-tap-prompt.tsx +101 -0
- package/src/plugins/builtin/cloud/plugin.tsx +7 -1
- package/src/plugins/builtin/company-kpis/client.ts +4 -3
- package/src/plugins/builtin/company-kpis/model.ts +34 -3
- package/src/plugins/builtin/correlation/compute.ts +8 -2
- package/src/plugins/builtin/correlation/headless.ts +10 -9
- package/src/plugins/builtin/correlation/history.ts +30 -0
- package/src/plugins/builtin/correlation/index.tsx +39 -167
- package/src/plugins/builtin/correlation/matrix/grid.tsx +285 -0
- package/src/plugins/builtin/correlation/matrix/model.ts +10 -10
- package/src/plugins/builtin/correlation/relationship/model.ts +3 -6
- package/src/plugins/builtin/correlation/relationship/pane.tsx +7 -9
- package/src/plugins/builtin/correlation/relationship/view-model.ts +14 -5
- package/src/plugins/builtin/cot/client.ts +8 -3
- package/src/plugins/builtin/cot/headless.ts +65 -12
- package/src/plugins/builtin/cot/pane.tsx +11 -5
- package/src/plugins/builtin/crypto-board/client.ts +6 -1
- package/src/plugins/builtin/crypto-board/defi-view.tsx +12 -1
- package/src/plugins/builtin/crypto-board/defi.ts +44 -7
- package/src/plugins/builtin/crypto-board/headless.ts +83 -12
- package/src/plugins/builtin/crypto-board/model.ts +30 -6
- package/src/plugins/builtin/crypto-board/pane.tsx +13 -2
- package/src/plugins/builtin/earnings/client.ts +40 -6
- package/src/plugins/builtin/earnings/fiscal-quarter.ts +54 -0
- package/src/plugins/builtin/earnings/headless.ts +47 -11
- package/src/plugins/builtin/earnings/history-model.ts +136 -24
- package/src/plugins/builtin/earnings/history-table.ts +42 -10
- package/src/plugins/builtin/earnings/history.tsx +23 -8
- package/src/plugins/builtin/earnings-ripple/client.ts +5 -2
- package/src/plugins/builtin/earnings-ripple/headless.ts +8 -3
- package/src/plugins/builtin/earnings-ripple/model.ts +21 -0
- package/src/plugins/builtin/earnings-ripple/pane.tsx +2 -3
- package/src/plugins/builtin/econ/index.tsx +5 -4
- package/src/plugins/builtin/econ-statistics/stats.ts +13 -5
- package/src/plugins/builtin/equity-screener/headless.ts +2 -1
- package/src/plugins/builtin/filing-events/feed.ts +56 -18
- package/src/plugins/builtin/filing-events/pane.tsx +8 -2
- package/src/plugins/builtin/futures/index.tsx +32 -10
- package/src/plugins/builtin/futures/model.ts +93 -6
- package/src/plugins/builtin/futures/returns.ts +29 -7
- package/src/plugins/builtin/futures/table.tsx +59 -17
- package/src/plugins/builtin/futures/use-front-returns.ts +32 -6
- package/src/plugins/builtin/futures-curve/client.ts +12 -2
- package/src/plugins/builtin/futures-curve/headless.ts +58 -17
- package/src/plugins/builtin/futures-curve/model.ts +111 -15
- package/src/plugins/builtin/futures-curve/pane.tsx +11 -6
- package/src/plugins/builtin/fx-matrix/amount.ts +132 -0
- package/src/plugins/builtin/fx-matrix/headless.ts +53 -13
- package/src/plugins/builtin/fx-matrix/index.tsx +205 -42
- package/src/plugins/builtin/fx-matrix/pairs.ts +10 -8
- package/src/plugins/builtin/fx-matrix/settings.ts +22 -1
- package/src/plugins/builtin/help/index.tsx +68 -61
- package/src/plugins/builtin/holders/format.ts +7 -2
- package/src/plugins/builtin/holders/pane.tsx +11 -3
- package/src/plugins/builtin/holders/report-header.ts +5 -4
- package/src/plugins/builtin/holders/report-rows.ts +4 -1
- package/src/plugins/builtin/holders/treemap.tsx +5 -3
- package/src/plugins/builtin/insider/signals-model.ts +4 -5
- package/src/plugins/builtin/ipo-calendar/headless.ts +18 -7
- package/src/plugins/builtin/ipo-calendar/listing-ipo.ts +3 -1
- package/src/plugins/builtin/ipo-calendar/model.ts +28 -8
- package/src/plugins/builtin/ipo-calendar/pane.tsx +2 -1
- package/src/plugins/builtin/kelly-sizer/headless.ts +4 -0
- package/src/plugins/builtin/perps/headless.ts +81 -19
- package/src/plugins/builtin/perps/index.tsx +3 -1
- package/src/plugins/builtin/perps/model.ts +1 -1
- package/src/plugins/builtin/perps/pane.tsx +2 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +1 -0
- package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +20 -1
- package/src/plugins/builtin/portfolio-list/cli/import-positions.ts +260 -0
- package/src/plugins/builtin/portfolio-list/cli/period-report.ts +154 -0
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +64 -22
- package/src/plugins/builtin/portfolio-list/cli/render.ts +18 -7
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +5 -3
- package/src/plugins/builtin/portfolio-list/grid.tsx +56 -12
- package/src/plugins/builtin/portfolio-list/headless.ts +128 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +42 -4
- package/src/plugins/builtin/portfolio-list/pane/period-pnl.ts +124 -0
- package/src/plugins/builtin/portfolio-list/period-pnl.ts +179 -0
- package/src/plugins/builtin/portfolio-list/positions-import/dialog.tsx +445 -0
- package/src/plugins/builtin/portfolio-list/positions-import/index.tsx +255 -0
- package/src/plugins/builtin/portfolio-list/positions-import/lookup.ts +78 -0
- package/src/plugins/builtin/portfolio-list/positions-import/read-file.ts +32 -0
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +186 -50
- package/src/plugins/builtin/portfolio-list/quick-add/resolution.ts +118 -4
- package/src/plugins/builtin/portfolio-list/settings.ts +25 -0
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +16 -1
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +7 -5
- package/src/plugins/builtin/portfolio-list/table.tsx +105 -6
- package/src/plugins/builtin/power/headless.ts +47 -9
- package/src/plugins/builtin/research/relative-valuation-model.ts +8 -3
- package/src/plugins/builtin/research-search/article.ts +12 -2
- package/src/plugins/builtin/research-search/data.ts +5 -2
- package/src/plugins/builtin/research-search/document-view.tsx +1 -1
- package/src/plugins/builtin/research-search/model.ts +47 -3
- package/src/plugins/builtin/research-search/pane.tsx +3 -2
- package/src/plugins/builtin/reverse-dcf/model.ts +7 -4
- package/src/plugins/builtin/risk-factors/headless.ts +3 -2
- package/src/plugins/builtin/risk-factors/index.tsx +2 -28
- package/src/plugins/builtin/risk-factors/lock-note.ts +58 -0
- package/src/plugins/builtin/risk-factors/pane.tsx +14 -5
- package/src/plugins/builtin/scanner/flow-model.ts +17 -13
- package/src/plugins/builtin/scanner/flow-pane.tsx +8 -9
- package/src/plugins/builtin/scanner/flow-session.ts +2 -9
- package/src/plugins/builtin/scanner/hilo-model.ts +4 -3
- package/src/plugins/builtin/sec/filing-display.tsx +0 -5
- package/src/plugins/builtin/sec/forms.ts +19 -0
- package/src/plugins/builtin/sec/fund-facts.ts +45 -11
- package/src/plugins/builtin/sec/headless.ts +37 -12
- package/src/plugins/builtin/sec/index.tsx +37 -8
- package/src/plugins/builtin/shared/earnings-calendar.ts +6 -3
- package/src/plugins/builtin/shared/earnings-report.ts +1 -1
- package/src/plugins/builtin/shared/fx-rate-freshness.ts +0 -35
- package/src/plugins/builtin/shared/pro-lock-note.ts +5 -1
- package/src/plugins/builtin/shared/use-quote-board.ts +42 -27
- package/src/plugins/builtin/supply-chain/graph-model.ts +7 -1
- package/src/plugins/builtin/supply-chain/headless.ts +20 -10
- package/src/plugins/builtin/supply-chain/model.ts +117 -20
- package/src/plugins/builtin/supply-chain/pane.tsx +22 -15
- package/src/plugins/builtin/supply-chain/row-evidence.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/data-panes/returns-chart-model.ts +69 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-chart.tsx +118 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-model.ts +1 -1
- package/src/plugins/builtin/ticker-detail/data-panes/returns-pane.tsx +103 -40
- package/src/plugins/builtin/ticker-detail/headless-schema.ts +10 -1
- package/src/plugins/builtin/ticker-detail/headless.ts +8 -1
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +2 -1
- package/src/plugins/builtin/ticker-detail/overview/model.ts +18 -8
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +11 -8
- package/src/plugins/builtin/ticker-detail/pane.tsx +95 -20
- package/src/plugins/builtin/ticker-detail/research-groups.ts +89 -0
- package/src/plugins/builtin/ticker-detail/settings.ts +4 -3
- package/src/plugins/builtin/time-sales/headless.ts +23 -7
- package/src/plugins/builtin/time-sales/index.tsx +2 -2
- package/src/plugins/builtin/volatility/charts.tsx +2 -2
- package/src/plugins/extracted-plugins.ts +49 -24
- package/src/plugins/host-resolver.ts +3 -2
- package/src/plugins/installer.ts +220 -31
- package/src/plugins/running-installs.ts +34 -0
- package/src/plugins/seed-progress.ts +72 -0
- package/src/portfolio/column-values.ts +42 -8
- package/src/portfolio/futures-positions.ts +10 -2
- package/src/portfolio/mutations.ts +4 -3
- package/src/portfolio/period-pnl.ts +119 -0
- package/src/portfolio/positions-import/describe.ts +89 -0
- package/src/portfolio/positions-import/parse.ts +682 -0
- package/src/portfolio/positions-import/plan.ts +295 -0
- package/src/{plugins/builtin/analytics/metrics.ts → portfolio/return-metrics.ts} +24 -11
- package/src/public/__snapshots__/public-api.test.ts.snap +1 -0
- package/src/react/jsx-dev-fallback.ts +62 -0
- package/src/renderers/browser/cloud-transport.ts +1 -1
- package/src/renderers/browser/config-host.ts +3 -1
- package/src/renderers/browser/deeplink-bridge.ts +8 -1
- package/src/renderers/browser/http-proxy-transport.ts +9 -2
- package/src/renderers/browser/main.tsx +2 -1
- package/src/renderers/browser/research-entry.ts +12 -0
- package/src/renderers/cloudflare/http-proxy.ts +8 -2
- package/src/renderers/cloudflare/proxy-session.ts +1 -0
- package/src/renderers/cloudflare/worker.ts +12 -3
- package/src/renderers/dom/desktop/audio-player.tsx +2 -2
- package/src/renderers/dom/desktop/controls.tsx +1 -1
- package/src/renderers/dom/desktop/dialog-actions.tsx +10 -24
- package/src/renderers/dom/desktop/icons.tsx +4 -2
- package/src/renderers/dom/desktop/query-bar.tsx +23 -19
- package/src/renderers/dom/dom-host-providers.tsx +7 -2
- package/src/renderers/dom/host/box.tsx +2 -2
- package/src/renderers/dom/host/input.tsx +13 -0
- package/src/renderers/dom/key-event.ts +1 -0
- package/src/renderers/dom/styles.css +3 -0
- package/src/renderers/electrobun/bun/context-menu/click.ts +1 -0
- package/src/renderers/electrobun/bun/desktop/backend.ts +15 -0
- package/src/renderers/electrobun/bun/desktop/capability-bridge.ts +5 -4
- package/src/renderers/electrobun/bun/desktop/host-requests.ts +19 -11
- package/src/renderers/electrobun/bun/desktop/http-fetch.ts +1 -0
- package/src/renderers/electrobun/bun/desktop/http-stream.ts +1 -1
- package/src/renderers/electrobun/bun/desktop/initialization.ts +27 -15
- package/src/renderers/electrobun/bun/desktop/install-records.ts +4 -1
- package/src/renderers/electrobun/bun/desktop/installer-folder.ts +5 -2
- package/src/renderers/electrobun/bun/desktop/macos-objc.ts +3 -1
- package/src/renderers/electrobun/bun/desktop/screen-setup-file.ts +9 -4
- package/src/renderers/electrobun/bun/desktop/update.ts +27 -13
- package/src/renderers/electrobun/bun/desktop/windows-script.ts +6 -2
- package/src/renderers/electrobun/bun/index.ts +5 -0
- package/src/renderers/electrobun/bun/window/attention.ts +1 -0
- package/src/renderers/electrobun/bun/window/boot-frame.ts +1 -0
- package/src/renderers/electrobun/bun/window/context-menu-thread.ts +84 -0
- package/src/renderers/electrobun/bun/window/create.ts +1 -0
- package/src/renderers/electrobun/bun/window/electrobun-window-host.ts +13 -8
- package/src/renderers/electrobun/bun/window/native-call-thread.ts +224 -0
- package/src/renderers/electrobun/bun/window/native-min-size.ts +1 -1
- package/src/renderers/electrobun/bun/window/native-timing.ts +10 -0
- package/src/renderers/electrobun/bun/window/remembered-frame.ts +1 -0
- package/src/renderers/electrobun/bun/window/script-for-webview.ts +15 -0
- package/src/renderers/electrobun/bun/window/webview-script-thread.ts +82 -0
- package/src/renderers/electrobun/bun/window/windows-native.ts +3 -1
- package/src/renderers/electrobun/bun/window/windows-quit.ts +3 -1
- package/src/renderers/electrobun/shared/protocol.ts +13 -2
- package/src/renderers/electrobun/view/app-badge-host.ts +2 -1
- package/src/renderers/electrobun/view/backend-rpc.ts +7 -0
- package/src/renderers/electrobun/view/capability-subscription.ts +2 -1
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +7 -10
- package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +1 -1
- package/src/renderers/electrobun/view/cli-pane-shot-mutations.ts +36 -0
- package/src/renderers/electrobun/view/http-fetch.ts +2 -1
- package/src/renderers/electrobun/view/main.tsx +13 -7
- package/src/renderers/electrobun/view/remote/capability-invoker.ts +6 -3
- package/src/renderers/electrobun/view/remote/persistence.ts +63 -27
- package/src/renderers/electrobun/view/rpc-timeout.ts +1 -0
- package/src/renderers/electrobun/view/ui-host.tsx +3 -2
- package/src/renderers/electrobun/view/window-fullscreen.ts +3 -1
- package/src/renderers/opentui/browser-open.ts +2 -1
- package/src/renderers/opentui/dialog-host.tsx +1 -1
- package/src/renderers/opentui/interaction-performance.ts +3 -1
- package/src/renderers/opentui/start.tsx +5 -1
- package/src/renderers/opentui/terminal-media.ts +11 -6
- package/src/renderers/opentui/ui-host.tsx +5 -8
- package/src/shares/open.ts +22 -1
- package/src/shares/pane.ts +2 -1
- package/src/sources/gloomberb-cloud/normalizers.ts +3 -0
- package/src/sync/analytics-payload.ts +194 -0
- package/src/sync/baseline.ts +19 -9
- package/src/sync/broker-identity.ts +171 -0
- package/src/sync/broker-instances.ts +137 -0
- package/src/sync/collections-contributor.ts +173 -0
- package/src/sync/config-contributor.ts +100 -0
- package/src/sync/config-merge.ts +229 -0
- package/src/sync/controller.ts +139 -28
- package/src/sync/core-contributors.ts +8 -1583
- package/src/sync/history-memo.ts +32 -0
- package/src/sync/layout-merge.ts +259 -0
- package/src/sync/sanitize.ts +114 -0
- package/src/sync/ticker-merge.ts +208 -0
- package/src/sync/ticker-payload.ts +81 -0
- package/src/sync/types.ts +15 -1
- package/src/telemetry/attention-setting.ts +1 -1
- package/src/telemetry/stall-reports.ts +21 -4
- package/src/telemetry/usage-counts.ts +16 -0
- package/src/test-support/preload.ts +5 -0
- package/src/theme/color-utils.ts +10 -0
- package/src/theme/font-scale.ts +34 -3
- package/src/theme/series-colors.ts +44 -0
- package/src/theme/themes.ts +2 -1
- package/src/tickers/batched-lookups.ts +263 -6
- package/src/tickers/company-name-listing.ts +44 -2
- package/src/tickers/company-name.ts +7 -2
- package/src/tickers/search/upsert.ts +16 -1
- package/src/time-series/base-series.ts +18 -4
- package/src/time-series/studies/indicators.ts +3 -1
- package/src/time-series/studies/resolve.ts +1 -1
- package/src/time-series/types.ts +6 -0
- package/src/types/financials.ts +18 -0
- package/src/types/headless.ts +11 -0
- package/src/ui/host.tsx +26 -3
- package/src/ui/index.tsx +1 -0
- package/src/utils/concurrency.ts +6 -0
- package/src/utils/currency-pair.ts +56 -4
- package/src/utils/datetime-format.ts +11 -0
- package/src/utils/decimal-comma.ts +9 -6
- package/src/utils/exchanges.ts +32 -0
- package/src/utils/fundamentals.ts +41 -0
- package/src/utils/main-thread-stall.ts +21 -5
- package/src/utils/markdown.ts +4 -2
- package/src/utils/pasted-lines.ts +14 -0
- package/src/utils/perf-marks.ts +88 -9
- package/src/utils/price-window.ts +2 -1
- package/src/utils/reported-money.ts +9 -2
- package/src/utils/sec-filings.ts +17 -0
- package/src/utils/sec.ts +37 -25
- package/src/utils/shortcut-labels.ts +6 -30
- package/src/plugins/seed-notice.ts +0 -20
package/src/i18n/ja.ts
CHANGED
|
@@ -344,6 +344,10 @@ export const ja: Record<string, string> = {
|
|
|
344
344
|
"Analyst Research": "アナリストリサーチ",
|
|
345
345
|
"Analyst": "アナリスト",
|
|
346
346
|
"Analysts": "アナリスト",
|
|
347
|
+
"Filings": "開示",
|
|
348
|
+
"Ownership": "保有",
|
|
349
|
+
"People": "人材",
|
|
350
|
+
"Buzz": "話題",
|
|
347
351
|
"Options": "オプション",
|
|
348
352
|
"Holders": "株主",
|
|
349
353
|
"Insider": "インサイダー",
|
|
@@ -415,6 +419,11 @@ export const ja: Record<string, string> = {
|
|
|
415
419
|
"US Treasury yield curve charted from FRED data.": "FRED データによる米国債イールドカーブ。",
|
|
416
420
|
"Currency cross-rate matrix for major FX pairs": "主要な FX ペアの通貨クロスレート マトリックス",
|
|
417
421
|
"Currency cross-rate matrix for major FX pairs.": "主要な FX ペアの通貨クロスレート マトリックス。",
|
|
422
|
+
"Currency cross-rate matrix for major FX pairs, and an amount converted into each currency.": "主要な FX ペアの通貨クロスレート マトリックスと、各通貨に換算した金額。",
|
|
423
|
+
"Convert {amount} to {currency}": "{amount} を {currency} に換算",
|
|
424
|
+
"Convert {amount}": "{amount} を換算",
|
|
425
|
+
"Convert an amount": "金額を換算",
|
|
426
|
+
"In every currency on FX Cross Rates": "FX Cross Rates の各通貨で",
|
|
418
427
|
"CNN Fear & Greed sentiment gauge and market indicator charts.": "CNN Fear & Greed 指数と市場指標チャート。",
|
|
419
428
|
"CNN Fear & Greed sentiment gauge with the seven indicator charts.": "CNN Fear & Greed 指数と 7 つの指標チャート。",
|
|
420
429
|
"NxN Pearson correlation matrix for tickers in portfolios/watchlists": "NxN ポートフォリオ/ウォッチリストの銘柄のピアソン相関行列",
|
|
@@ -571,7 +580,7 @@ export const ja: Record<string, string> = {
|
|
|
571
580
|
"Commit pending changes or exit window mode.": "保留中の変更をコミットするか、ウィンドウ モードを終了します。",
|
|
572
581
|
"Open command mode for actions, pane commands, and typed prefixes.": "アクション、ペイン コマンド、および入力されたプレフィックスのコマンド モードを開きます。",
|
|
573
582
|
"Change the focused pane's ticker.": "選択中のペインの銘柄を変更します。",
|
|
574
|
-
"Ticker search:
|
|
583
|
+
"Ticker search: {enter} changes the focused pane's ticker and the panes linked to it, as a click on the ticker in a pane's title does on the desktop and the web. {key} opens a new pane. From a pane with no ticker it opens DES.": "銘柄検索: {enter} で選択中のペインとリンクされたペインの銘柄を変更します。デスクトップと Web ではペインのタイトルの銘柄をクリックしても同じです。{key} で新しいペインを開きます。銘柄のないペインからは DES を開きます。",
|
|
575
584
|
"Open security details for a specific ticker.": "指定した銘柄の詳細を開きます。",
|
|
576
585
|
"Move through command bar results.": "コマンド バーの結果を移動します。",
|
|
577
586
|
"Run the selected result or its secondary action.": "選択した結果またはその二次アクションを実行します。",
|
|
@@ -1085,6 +1094,18 @@ export const ja: Record<string, string> = {
|
|
|
1085
1094
|
"Failed to add {symbol}.": "{symbol} の追加に失敗しました。",
|
|
1086
1095
|
"ticker": "銘柄",
|
|
1087
1096
|
"Use a ticker symbol": "銘柄コードを入力",
|
|
1097
|
+
"Type a ticker (AAPL, EURUSD=X, ^GSPC) or a list": "銘柄コード(AAPL、EURUSD=X、^GSPC)またはリストを入力",
|
|
1098
|
+
"Added {symbols} to {collection}.": "{symbols} を {collection} に追加しました。",
|
|
1099
|
+
"Already in {collection}: {symbols}.": "{collection} に登録済み: {symbols}。",
|
|
1100
|
+
"Nothing added.": "追加されたものはありません。",
|
|
1101
|
+
"Add {count}: {symbols}": "{count} 件を追加: {symbols}",
|
|
1102
|
+
"Add {count} of {total}: {symbols}": "{total} 件中 {count} 件を追加: {symbols}",
|
|
1103
|
+
"first {count} of {total} read": "{total} 件中最初の {count} 件を読み込み",
|
|
1104
|
+
"Nothing to add": "追加するものはありません",
|
|
1105
|
+
"not found": "見つかりません",
|
|
1106
|
+
"already in {collection}": "{collection} に登録済み",
|
|
1107
|
+
"several listings": "複数の上場先",
|
|
1108
|
+
"not looked up": "未確認",
|
|
1088
1109
|
"Ticker lookup failed": "銘柄検索に失敗しました",
|
|
1089
1110
|
"Ticker add failed": "銘柄の追加に失敗しました",
|
|
1090
1111
|
"Ticker symbol is required.": "銘柄コードを入力してください。",
|
|
@@ -1146,6 +1167,9 @@ export const ja: Record<string, string> = {
|
|
|
1146
1167
|
"No figures for {symbol}: its sponsor's site is not one Gloom reads, and the SEC's prospectus and N-PORT data sets list none for it yet.": "{symbol} の数値はありません。Gloom はスポンサーのサイトを読み込んでおらず、SEC の目論見書データセットと N-PORT データセットにもまだ掲載がありません。",
|
|
1147
1168
|
"est. {range}": "推定 {range}",
|
|
1148
1169
|
"Shares outstanding": "発行済口数",
|
|
1170
|
+
"Management fee": "運用報酬",
|
|
1171
|
+
"Mgmt Fee": "運用報酬",
|
|
1172
|
+
"Units per {asset}": "1 {asset}あたり口数",
|
|
1149
1173
|
"1M flows": "1か月の資金流出入",
|
|
1150
1174
|
"Structure": "形態",
|
|
1151
1175
|
"Closed-end fund": "クローズドエンド型ファンド",
|
|
@@ -1281,7 +1305,6 @@ export const ja: Record<string, string> = {
|
|
|
1281
1305
|
"Continue without an account": "アカウントなしで続ける",
|
|
1282
1306
|
"Could not create your account.": "アカウントを作成できませんでした。",
|
|
1283
1307
|
"Could not sign you in.": "ログインできませんでした。",
|
|
1284
|
-
"Create an account anytime: Ctrl+P → Sign Up.": "アカウントはいつでも作成できます: Ctrl+P → Sign Up。",
|
|
1285
1308
|
"Create free account": "無料アカウントを作成",
|
|
1286
1309
|
"Create your free Gloom Cloud account": "無料の Gloom Cloud アカウントを作成",
|
|
1287
1310
|
"Create your free account": "無料アカウントの作成",
|
|
@@ -1507,7 +1530,7 @@ export const ja: Record<string, string> = {
|
|
|
1507
1530
|
"Enter: next field, then add": "Enter: 次の項目へ、最後に追加",
|
|
1508
1531
|
"Add one ticker to continue": "ティッカーを1つ追加すると続行できます",
|
|
1509
1532
|
"Add one ticker to continue.": "ティッカーを1つ追加すると続行できます。",
|
|
1510
|
-
"
|
|
1533
|
+
"Enter on an empty ticker: continue": "ティッカーが空のまま Enter: 続行",
|
|
1511
1534
|
"Enter to add a ticker": "Enter でティッカーを追加",
|
|
1512
1535
|
" already added": " 追加済み",
|
|
1513
1536
|
"Credentials stay on this device.": "認証情報はこの端末にのみ保存されます。",
|
|
@@ -1543,8 +1566,8 @@ export const ja: Record<string, string> = {
|
|
|
1543
1566
|
"Your last payment didn't go through": "前回のお支払いが完了しませんでした",
|
|
1544
1567
|
"Pro is paused until your open invoice is paid. Pay it with another card and real-time data comes straight back.": "未払いの請求書が支払われるまで Pro は一時停止中です。別のカードで支払うと、リアルタイムデータがすぐに戻ります。",
|
|
1545
1568
|
"Pay with another card": "別のカードで支払う",
|
|
1546
|
-
"
|
|
1547
|
-
"$0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "
|
|
1569
|
+
"Stop trading on stale prices": "古い株価で売買するのはもうやめよう",
|
|
1570
|
+
"Pro is free for {days} days. $0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "Pro は {days} 日間無料。本日 $0、{date} から {price}。カード登録が必要。それまでに解約すれば料金はかかりません。",
|
|
1548
1571
|
"Continue to checkout": "チェックアウトへ進む",
|
|
1549
1572
|
"{price}, billed today. Cancel anytime.": "{price}、本日請求。いつでも解約可。",
|
|
1550
1573
|
"{price}. Cancel anytime.": "{price}。いつでも解約可。",
|
package/src/i18n/ko.ts
CHANGED
|
@@ -342,6 +342,10 @@ export const ko: Record<string, string> = {
|
|
|
342
342
|
"Analyst Research": "애널리스트 리서치",
|
|
343
343
|
"Analyst": "애널리스트",
|
|
344
344
|
"Analysts": "애널리스트",
|
|
345
|
+
"Filings": "공시",
|
|
346
|
+
"Ownership": "지분",
|
|
347
|
+
"People": "인력",
|
|
348
|
+
"Buzz": "화제",
|
|
345
349
|
"Options": "옵션",
|
|
346
350
|
"Holders": "보유 현황",
|
|
347
351
|
"Insider": "내부자",
|
|
@@ -413,6 +417,11 @@ export const ko: Record<string, string> = {
|
|
|
413
417
|
"US Treasury yield curve charted from FRED data.": "FRED 데이터로 작성된 미국 국채 수익률 곡선.",
|
|
414
418
|
"Currency cross-rate matrix for major FX pairs": "주요 FX 통화쌍의 교차환율 행렬",
|
|
415
419
|
"Currency cross-rate matrix for major FX pairs.": "주요 FX 통화쌍의 교차환율 행렬.",
|
|
420
|
+
"Currency cross-rate matrix for major FX pairs, and an amount converted into each currency.": "주요 FX 통화쌍의 교차환율 행렬과 각 통화로 환산한 금액.",
|
|
421
|
+
"Convert {amount} to {currency}": "{amount}을(를) {currency}(으)로 환산",
|
|
422
|
+
"Convert {amount}": "{amount} 환산",
|
|
423
|
+
"Convert an amount": "금액 환산",
|
|
424
|
+
"In every currency on FX Cross Rates": "FX Cross Rates의 각 통화로",
|
|
416
425
|
"CNN Fear & Greed sentiment gauge and market indicator charts.": "CNN 공포·탐욕 지수 및 시장 지표 차트.",
|
|
417
426
|
"CNN Fear & Greed sentiment gauge with the seven indicator charts.": "CNN 공포·탐욕 지수와 7개 지표 차트.",
|
|
418
427
|
"NxN Pearson correlation matrix for tickers in portfolios/watchlists": "포트폴리오/관심 목록 종목의 NxN Pearson 상관행렬",
|
|
@@ -569,7 +578,7 @@ export const ko: Record<string, string> = {
|
|
|
569
578
|
"Commit pending changes or exit window mode.": "변경 사항을 적용하거나 창 모드를 종료합니다.",
|
|
570
579
|
"Open command mode for actions, pane commands, and typed prefixes.": "작업, 패널 명령 및 접두사를 위한 명령 모드를 엽니다.",
|
|
571
580
|
"Change the focused pane's ticker.": "포커스 패널의 종목을 변경합니다.",
|
|
572
|
-
"Ticker search:
|
|
581
|
+
"Ticker search: {enter} changes the focused pane's ticker and the panes linked to it, as a click on the ticker in a pane's title does on the desktop and the web. {key} opens a new pane. From a pane with no ticker it opens DES.": "종목 검색: {enter}는 포커스 패널과 연결된 패널의 종목을 변경합니다. 데스크톱과 웹에서는 패널 제목의 종목을 클릭해도 같습니다. {key}는 새 패널을 엽니다. 종목이 없는 패널에서는 DES를 엽니다.",
|
|
573
582
|
"Open security details for a specific ticker.": "특정 종목의 상세 정보를 엽니다.",
|
|
574
583
|
"Move through command bar results.": "명령 팔레트 결과 사이를 이동합니다.",
|
|
575
584
|
"Run the selected result or its secondary action.": "선택한 결과 또는 해당 보조 작업을 실행합니다.",
|
|
@@ -1083,6 +1092,18 @@ export const ko: Record<string, string> = {
|
|
|
1083
1092
|
"Failed to add {symbol}.": "{symbol}을(를) 추가하지 못했습니다.",
|
|
1084
1093
|
"ticker": "종목코드",
|
|
1085
1094
|
"Use a ticker symbol": "종목코드를 입력하세요",
|
|
1095
|
+
"Type a ticker (AAPL, EURUSD=X, ^GSPC) or a list": "종목코드(AAPL, EURUSD=X, ^GSPC) 또는 목록을 입력하세요",
|
|
1096
|
+
"Added {symbols} to {collection}.": "{collection}에 {symbols}을(를) 추가했습니다.",
|
|
1097
|
+
"Already in {collection}: {symbols}.": "이미 {collection}에 있음: {symbols}.",
|
|
1098
|
+
"Nothing added.": "추가된 항목이 없습니다.",
|
|
1099
|
+
"Add {count}: {symbols}": "{count}개 추가: {symbols}",
|
|
1100
|
+
"Add {count} of {total}: {symbols}": "{total}개 중 {count}개 추가: {symbols}",
|
|
1101
|
+
"first {count} of {total} read": "{total}개 중 처음 {count}개 읽음",
|
|
1102
|
+
"Nothing to add": "추가할 항목 없음",
|
|
1103
|
+
"not found": "찾을 수 없음",
|
|
1104
|
+
"already in {collection}": "이미 {collection}에 있음",
|
|
1105
|
+
"several listings": "여러 상장처",
|
|
1106
|
+
"not looked up": "조회 안 됨",
|
|
1086
1107
|
"Ticker lookup failed": "종목 조회 실패",
|
|
1087
1108
|
"Ticker add failed": "종목 추가 실패",
|
|
1088
1109
|
"Ticker symbol is required.": "종목코드는 필수입니다.",
|
|
@@ -1144,6 +1165,9 @@ export const ko: Record<string, string> = {
|
|
|
1144
1165
|
"No figures for {symbol}: its sponsor's site is not one Gloom reads, and the SEC's prospectus and N-PORT data sets list none for it yet.": "{symbol}의 수치가 없습니다. Gloom은 스폰서의 사이트를 읽지 않으며, SEC의 투자설명서 및 N-PORT 데이터 세트에도 아직 없습니다.",
|
|
1145
1166
|
"est. {range}": "추정 {range}",
|
|
1146
1167
|
"Shares outstanding": "발행 주식 수",
|
|
1168
|
+
"Management fee": "운용 보수",
|
|
1169
|
+
"Mgmt Fee": "운용 보수",
|
|
1170
|
+
"Units per {asset}": "{asset}당 좌수",
|
|
1147
1171
|
"1M flows": "1개월 자금 유출입",
|
|
1148
1172
|
"Structure": "구조",
|
|
1149
1173
|
"Closed-end fund": "폐쇄형 펀드",
|
|
@@ -1279,7 +1303,6 @@ export const ko: Record<string, string> = {
|
|
|
1279
1303
|
"Continue without an account": "계정 없이 계속하기",
|
|
1280
1304
|
"Could not create your account.": "계정을 만들지 못했습니다.",
|
|
1281
1305
|
"Could not sign you in.": "로그인하지 못했습니다.",
|
|
1282
|
-
"Create an account anytime: Ctrl+P → Sign Up.": "계정은 언제든지 만들 수 있습니다: Ctrl+P → Sign Up.",
|
|
1283
1306
|
"Create free account": "무료 계정 만들기",
|
|
1284
1307
|
"Create your free Gloom Cloud account": "무료 Gloom Cloud 계정 만들기",
|
|
1285
1308
|
"Create your free account": "무료 계정 생성",
|
|
@@ -1505,7 +1528,7 @@ export const ko: Record<string, string> = {
|
|
|
1505
1528
|
"Enter: next field, then add": "Enter: 다음 필드, 마지막에 추가",
|
|
1506
1529
|
"Add one ticker to continue": "티커를 하나 추가하면 계속할 수 있습니다",
|
|
1507
1530
|
"Add one ticker to continue.": "티커를 하나 추가하면 계속할 수 있습니다.",
|
|
1508
|
-
"
|
|
1531
|
+
"Enter on an empty ticker: continue": "티커가 비어 있을 때 Enter: 계속",
|
|
1509
1532
|
"Enter to add a ticker": "Enter로 티커 추가",
|
|
1510
1533
|
" already added": " 이미 추가됨",
|
|
1511
1534
|
"Credentials stay on this device.": "자격 증명은 이 기기에만 저장됩니다.",
|
|
@@ -1541,8 +1564,8 @@ export const ko: Record<string, string> = {
|
|
|
1541
1564
|
"Your last payment didn't go through": "지난 결제가 처리되지 않았습니다",
|
|
1542
1565
|
"Pro is paused until your open invoice is paid. Pay it with another card and real-time data comes straight back.": "미결제 인보이스가 결제될 때까지 Pro가 일시 중지됩니다. 다른 카드로 결제하면 실시간 데이터가 바로 돌아옵니다.",
|
|
1543
1566
|
"Pay with another card": "다른 카드로 결제",
|
|
1544
|
-
"
|
|
1545
|
-
"$0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "오늘 $0, {date}부터 {price}. 카드 등록 필요. 그 전에 해지하면 요금이 없습니다.",
|
|
1567
|
+
"Stop trading on stale prices": "더 이상 지난 시세로 거래하지 마세요",
|
|
1568
|
+
"Pro is free for {days} days. $0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "Pro는 {days}일 동안 무료입니다. 오늘 $0, {date}부터 {price}. 카드 등록 필요. 그 전에 해지하면 요금이 없습니다.",
|
|
1546
1569
|
"Continue to checkout": "결제로 이동",
|
|
1547
1570
|
"{price}, billed today. Cancel anytime.": "{price}, 오늘 청구. 언제든 해지.",
|
|
1548
1571
|
"{price}. Cancel anytime.": "{price}. 언제든 해지.",
|
package/src/i18n/zh-cn.ts
CHANGED
|
@@ -344,6 +344,10 @@ export const zhCN: Record<string, string> = {
|
|
|
344
344
|
"Analyst Research": "分析师研究",
|
|
345
345
|
"Analyst": "分析师",
|
|
346
346
|
"Analysts": "分析师",
|
|
347
|
+
"Filings": "文件",
|
|
348
|
+
"Ownership": "持股",
|
|
349
|
+
"People": "人员",
|
|
350
|
+
"Buzz": "热度",
|
|
347
351
|
"Options": "期权",
|
|
348
352
|
"Holders": "股东",
|
|
349
353
|
"Insider": "内部人",
|
|
@@ -415,6 +419,11 @@ export const zhCN: Record<string, string> = {
|
|
|
415
419
|
"US Treasury yield curve charted from FRED data.": "基于 FRED 数据绘制的美债收益率曲线。",
|
|
416
420
|
"Currency cross-rate matrix for major FX pairs": "主要货币对的交叉汇率矩阵",
|
|
417
421
|
"Currency cross-rate matrix for major FX pairs.": "主要货币对的交叉汇率矩阵。",
|
|
422
|
+
"Currency cross-rate matrix for major FX pairs, and an amount converted into each currency.": "主要货币对的交叉汇率矩阵,以及换算成每种货币的金额。",
|
|
423
|
+
"Convert {amount} to {currency}": "将 {amount} 换算为 {currency}",
|
|
424
|
+
"Convert {amount}": "换算 {amount}",
|
|
425
|
+
"Convert an amount": "换算金额",
|
|
426
|
+
"In every currency on FX Cross Rates": "在 FX Cross Rates 中换算成每种货币",
|
|
418
427
|
"CNN Fear & Greed sentiment gauge and market indicator charts.": "CNN 恐惧与贪婪情绪仪表及市场指标图。",
|
|
419
428
|
"CNN Fear & Greed sentiment gauge with the seven indicator charts.": "CNN 恐惧与贪婪情绪仪表及七项指标图。",
|
|
420
429
|
"NxN Pearson correlation matrix for tickers in portfolios/watchlists": "组合/自选股票的 NxN 皮尔逊相关性矩阵",
|
|
@@ -571,7 +580,7 @@ export const zhCN: Record<string, string> = {
|
|
|
571
580
|
"Commit pending changes or exit window mode.": "提交更改或退出窗口模式。",
|
|
572
581
|
"Open command mode for actions, pane commands, and typed prefixes.": "打开命令模式:操作、面板命令与前缀输入。",
|
|
573
582
|
"Change the focused pane's ticker.": "更改当前面板的股票代码。",
|
|
574
|
-
"Ticker search:
|
|
583
|
+
"Ticker search: {enter} changes the focused pane's ticker and the panes linked to it, as a click on the ticker in a pane's title does on the desktop and the web. {key} opens a new pane. From a pane with no ticker it opens DES.": "股票搜索:{enter} 更改当前面板及其链接面板的股票代码,与在桌面版和网页版中点击面板标题中的代码相同。{key} 在新面板中打开。在没有代码的面板中则打开 DES。",
|
|
575
584
|
"Open security details for a specific ticker.": "打开指定股票的证券详情。",
|
|
576
585
|
"Move through command bar results.": "在命令栏结果间移动。",
|
|
577
586
|
"Run the selected result or its secondary action.": "执行所选结果或其次要操作。",
|
|
@@ -1085,6 +1094,18 @@ export const zhCN: Record<string, string> = {
|
|
|
1085
1094
|
"Failed to add {symbol}.": "添加 {symbol} 失败。",
|
|
1086
1095
|
"ticker": "代码",
|
|
1087
1096
|
"Use a ticker symbol": "请输入股票代码",
|
|
1097
|
+
"Type a ticker (AAPL, EURUSD=X, ^GSPC) or a list": "请输入股票代码(AAPL、EURUSD=X、^GSPC)或列表",
|
|
1098
|
+
"Added {symbols} to {collection}.": "已将 {symbols} 添加到“{collection}”。",
|
|
1099
|
+
"Already in {collection}: {symbols}.": "已在“{collection}”中:{symbols}。",
|
|
1100
|
+
"Nothing added.": "未添加任何内容。",
|
|
1101
|
+
"Add {count}: {symbols}": "添加 {count} 个:{symbols}",
|
|
1102
|
+
"Add {count} of {total}: {symbols}": "添加 {count}/{total} 个:{symbols}",
|
|
1103
|
+
"first {count} of {total} read": "已读取 {total} 个中的前 {count} 个",
|
|
1104
|
+
"Nothing to add": "没有可添加的内容",
|
|
1105
|
+
"not found": "未找到",
|
|
1106
|
+
"already in {collection}": "已在“{collection}”中",
|
|
1107
|
+
"several listings": "多个上市地",
|
|
1108
|
+
"not looked up": "未查询",
|
|
1088
1109
|
"Ticker lookup failed": "股票代码查询失败",
|
|
1089
1110
|
"Ticker add failed": "添加股票代码失败",
|
|
1090
1111
|
"Ticker symbol is required.": "必须输入股票代码。",
|
|
@@ -1146,6 +1167,9 @@ export const zhCN: Record<string, string> = {
|
|
|
1146
1167
|
"No figures for {symbol}: its sponsor's site is not one Gloom reads, and the SEC's prospectus and N-PORT data sets list none for it yet.": "暂无 {symbol} 的数据:Gloom 不读取其发起人的网站,SEC 的招募说明书和 N-PORT 数据集中也尚未列出。",
|
|
1147
1168
|
"est. {range}": "估计 {range}",
|
|
1148
1169
|
"Shares outstanding": "流通份额",
|
|
1170
|
+
"Management fee": "管理费",
|
|
1171
|
+
"Mgmt Fee": "管理费",
|
|
1172
|
+
"Units per {asset}": "每 {asset} 份额",
|
|
1149
1173
|
"1M flows": "1个月资金流",
|
|
1150
1174
|
"Structure": "结构",
|
|
1151
1175
|
"Closed-end fund": "封闭式基金",
|
|
@@ -1281,7 +1305,6 @@ export const zhCN: Record<string, string> = {
|
|
|
1281
1305
|
"Continue without an account": "不创建账户继续",
|
|
1282
1306
|
"Could not create your account.": "无法创建账户。",
|
|
1283
1307
|
"Could not sign you in.": "无法登录。",
|
|
1284
|
-
"Create an account anytime: Ctrl+P → Sign Up.": "随时可创建账户:Ctrl+P → Sign Up。",
|
|
1285
1308
|
"Create free account": "创建免费账户",
|
|
1286
1309
|
"Create your free Gloom Cloud account": "创建你的免费 Gloom 云账户",
|
|
1287
1310
|
"Create your free account": "创建你的免费账户",
|
|
@@ -1507,7 +1530,7 @@ export const zhCN: Record<string, string> = {
|
|
|
1507
1530
|
"Enter: next field, then add": "Enter:下一字段,最后添加",
|
|
1508
1531
|
"Add one ticker to continue": "添加一个代码即可继续",
|
|
1509
1532
|
"Add one ticker to continue.": "添加一个代码即可继续。",
|
|
1510
|
-
"
|
|
1533
|
+
"Enter on an empty ticker: continue": "代码为空时按 Enter:继续",
|
|
1511
1534
|
"Enter to add a ticker": "按 Enter 添加代码",
|
|
1512
1535
|
" already added": " 已添加",
|
|
1513
1536
|
"Credentials stay on this device.": "凭据仅保存在此设备上。",
|
|
@@ -1543,8 +1566,8 @@ export const zhCN: Record<string, string> = {
|
|
|
1543
1566
|
"Your last payment didn't go through": "上次付款未成功",
|
|
1544
1567
|
"Pro is paused until your open invoice is paid. Pay it with another card and real-time data comes straight back.": "Pro 已暂停,付清未结账单后恢复。换一张卡付款,实时数据立即恢复。",
|
|
1545
1568
|
"Pay with another card": "换一张卡付款",
|
|
1546
|
-
"
|
|
1547
|
-
"$0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "
|
|
1569
|
+
"Stop trading on stale prices": "别再用过时的价格交易",
|
|
1570
|
+
"Pro is free for {days} days. $0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "Pro 可免费使用 {days} 天。今天 $0,{date} 起 {price}。需要绑卡。在此之前取消则无需付费。",
|
|
1548
1571
|
"Continue to checkout": "前往结账",
|
|
1549
1572
|
"{price}, billed today. Cancel anytime.": "{price},今天扣款。随时取消。",
|
|
1550
1573
|
"{price}. Cancel anytime.": "{price}。随时取消。",
|
package/src/i18n/zh-tw.ts
CHANGED
|
@@ -344,6 +344,10 @@ export const zhTW: Record<string, string> = {
|
|
|
344
344
|
"Analyst Research": "分析師研究",
|
|
345
345
|
"Analyst": "分析師",
|
|
346
346
|
"Analysts": "分析師",
|
|
347
|
+
"Filings": "文件",
|
|
348
|
+
"Ownership": "持股",
|
|
349
|
+
"People": "人員",
|
|
350
|
+
"Buzz": "熱度",
|
|
347
351
|
"Options": "選擇權",
|
|
348
352
|
"Holders": "股東",
|
|
349
353
|
"Insider": "內部人士",
|
|
@@ -415,6 +419,11 @@ export const zhTW: Record<string, string> = {
|
|
|
415
419
|
"US Treasury yield curve charted from FRED data.": "依據 FRED 資料繪製的美國公債殖利率曲線。",
|
|
416
420
|
"Currency cross-rate matrix for major FX pairs": "主要 FX 貨幣對的交叉匯率矩陣",
|
|
417
421
|
"Currency cross-rate matrix for major FX pairs.": "主要 FX 貨幣對的交叉匯率矩陣。",
|
|
422
|
+
"Currency cross-rate matrix for major FX pairs, and an amount converted into each currency.": "主要 FX 貨幣對的交叉匯率矩陣,以及換算成每種貨幣的金額。",
|
|
423
|
+
"Convert {amount} to {currency}": "將 {amount} 換算為 {currency}",
|
|
424
|
+
"Convert {amount}": "換算 {amount}",
|
|
425
|
+
"Convert an amount": "換算金額",
|
|
426
|
+
"In every currency on FX Cross Rates": "在 FX Cross Rates 中換算成每種貨幣",
|
|
418
427
|
"CNN Fear & Greed sentiment gauge and market indicator charts.": "CNN 恐懼與貪婪情緒儀表及市場指標圖。",
|
|
419
428
|
"CNN Fear & Greed sentiment gauge with the seven indicator charts.": "CNN 恐懼與貪婪情緒儀表及七項指標圖。",
|
|
420
429
|
"NxN Pearson correlation matrix for tickers in portfolios/watchlists": "投資組合與自選清單股票的 NxN 皮爾森相關矩陣",
|
|
@@ -571,7 +580,7 @@ export const zhTW: Record<string, string> = {
|
|
|
571
580
|
"Commit pending changes or exit window mode.": "確認待處理的變更或結束視窗模式。",
|
|
572
581
|
"Open command mode for actions, pane commands, and typed prefixes.": "開啟命令模式:操作、面板命令與字首輸入。",
|
|
573
582
|
"Change the focused pane's ticker.": "變更目前面板的股票代號。",
|
|
574
|
-
"Ticker search:
|
|
583
|
+
"Ticker search: {enter} changes the focused pane's ticker and the panes linked to it, as a click on the ticker in a pane's title does on the desktop and the web. {key} opens a new pane. From a pane with no ticker it opens DES.": "股票搜尋:{enter} 變更目前面板及其連結面板的股票代號,與在桌面版和網頁版中點擊面板標題中的代號相同。{key} 在新面板中開啟。在沒有代號的面板中則開啟 DES。",
|
|
575
584
|
"Open security details for a specific ticker.": "開啟指定股票的證券詳情。",
|
|
576
585
|
"Move through command bar results.": "在命令列結果間移動。",
|
|
577
586
|
"Run the selected result or its secondary action.": "執行所選結果或其次要操作。",
|
|
@@ -1085,6 +1094,18 @@ export const zhTW: Record<string, string> = {
|
|
|
1085
1094
|
"Failed to add {symbol}.": "新增 {symbol} 失敗。",
|
|
1086
1095
|
"ticker": "代號",
|
|
1087
1096
|
"Use a ticker symbol": "請輸入股票代號",
|
|
1097
|
+
"Type a ticker (AAPL, EURUSD=X, ^GSPC) or a list": "請輸入股票代號(AAPL、EURUSD=X、^GSPC)或清單",
|
|
1098
|
+
"Added {symbols} to {collection}.": "已將 {symbols} 新增到「{collection}」。",
|
|
1099
|
+
"Already in {collection}: {symbols}.": "已在「{collection}」中:{symbols}。",
|
|
1100
|
+
"Nothing added.": "未新增任何項目。",
|
|
1101
|
+
"Add {count}: {symbols}": "新增 {count} 個:{symbols}",
|
|
1102
|
+
"Add {count} of {total}: {symbols}": "新增 {count}/{total} 個:{symbols}",
|
|
1103
|
+
"first {count} of {total} read": "已讀取 {total} 個中的前 {count} 個",
|
|
1104
|
+
"Nothing to add": "沒有可新增的項目",
|
|
1105
|
+
"not found": "找不到",
|
|
1106
|
+
"already in {collection}": "已在「{collection}」中",
|
|
1107
|
+
"several listings": "多個上市地",
|
|
1108
|
+
"not looked up": "未查詢",
|
|
1088
1109
|
"Ticker lookup failed": "股票代號查詢失敗",
|
|
1089
1110
|
"Ticker add failed": "新增股票代號失敗",
|
|
1090
1111
|
"Ticker symbol is required.": "請輸入股票代號。",
|
|
@@ -1146,6 +1167,9 @@ export const zhTW: Record<string, string> = {
|
|
|
1146
1167
|
"No figures for {symbol}: its sponsor's site is not one Gloom reads, and the SEC's prospectus and N-PORT data sets list none for it yet.": "暫無 {symbol} 的數據:Gloom 不讀取其發起人的網站,SEC 的公開說明書與 N-PORT 資料集中也尚未列出。",
|
|
1147
1168
|
"est. {range}": "估計 {range}",
|
|
1148
1169
|
"Shares outstanding": "流通單位數",
|
|
1170
|
+
"Management fee": "管理費",
|
|
1171
|
+
"Mgmt Fee": "管理費",
|
|
1172
|
+
"Units per {asset}": "每 {asset} 單位數",
|
|
1149
1173
|
"1M flows": "1個月資金流",
|
|
1150
1174
|
"Structure": "結構",
|
|
1151
1175
|
"Closed-end fund": "封閉式基金",
|
|
@@ -1281,7 +1305,6 @@ export const zhTW: Record<string, string> = {
|
|
|
1281
1305
|
"Continue without an account": "不建立帳戶繼續",
|
|
1282
1306
|
"Could not create your account.": "無法建立帳戶。",
|
|
1283
1307
|
"Could not sign you in.": "無法登入。",
|
|
1284
|
-
"Create an account anytime: Ctrl+P → Sign Up.": "隨時可建立帳戶:Ctrl+P → Sign Up。",
|
|
1285
1308
|
"Create free account": "建立免費帳戶",
|
|
1286
1309
|
"Create your free Gloom Cloud account": "建立你的免費 Gloom 雲端帳戶",
|
|
1287
1310
|
"Create your free account": "建立你的免費帳戶",
|
|
@@ -1507,7 +1530,7 @@ export const zhTW: Record<string, string> = {
|
|
|
1507
1530
|
"Enter: next field, then add": "Enter:下一欄位,最後新增",
|
|
1508
1531
|
"Add one ticker to continue": "新增一個代號即可繼續",
|
|
1509
1532
|
"Add one ticker to continue.": "新增一個代號即可繼續。",
|
|
1510
|
-
"
|
|
1533
|
+
"Enter on an empty ticker: continue": "代號為空時按 Enter:繼續",
|
|
1511
1534
|
"Enter to add a ticker": "按 Enter 新增代號",
|
|
1512
1535
|
" already added": " 已新增",
|
|
1513
1536
|
"Credentials stay on this device.": "憑證僅保存在此裝置上。",
|
|
@@ -1543,8 +1566,8 @@ export const zhTW: Record<string, string> = {
|
|
|
1543
1566
|
"Your last payment didn't go through": "上次付款未成功",
|
|
1544
1567
|
"Pro is paused until your open invoice is paid. Pay it with another card and real-time data comes straight back.": "Pro 已暫停,付清未結帳單後恢復。換一張卡付款,即時資料立即恢復。",
|
|
1545
1568
|
"Pay with another card": "換一張卡付款",
|
|
1546
|
-
"
|
|
1547
|
-
"$0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "
|
|
1569
|
+
"Stop trading on stale prices": "別再用過時的價格交易",
|
|
1570
|
+
"Pro is free for {days} days. $0 today, then {price} from {date}. Card required. Cancel before and you pay nothing.": "Pro 可免費使用 {days} 天。今天 $0,{date} 起 {price}。需要綁卡。在此之前取消則無需付費。",
|
|
1548
1571
|
"Continue to checkout": "前往結帳",
|
|
1549
1572
|
"{price}, billed today. Cancel anytime.": "{price},今天扣款。隨時取消。",
|
|
1550
1573
|
"{price}. Cancel anytime.": "{price}。隨時取消。",
|
|
@@ -22,7 +22,8 @@ export function boundsForRects(rects: GridlockRect[]): LayoutBounds {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
/** `instanceIds` in reading order as a grid of tiles, halved side by side, then one above the other, and so on. */
|
|
26
|
+
export function buildGridDockTree(instanceIds: string[], depth = 0): DockLayoutNode | null {
|
|
26
27
|
if (instanceIds.length === 0) return null;
|
|
27
28
|
if (instanceIds.length === 1) return { kind: "pane", instanceId: instanceIds[0]! };
|
|
28
29
|
const splitIndex = Math.ceil(instanceIds.length / 2);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DockLayoutNode, FloatingPaneEntry, LayoutConfig } from "../../types/config";
|
|
2
|
-
import { buildDockStack } from "./dock-stack";
|
|
2
|
+
import { buildDockStack, isDockStack } from "./dock-stack";
|
|
3
3
|
import type { AppNotificationRequest } from "../../types/plugin";
|
|
4
4
|
import {
|
|
5
5
|
boundsForRects,
|
|
6
|
+
buildGridDockTree,
|
|
6
7
|
inferDockTreeFromRects,
|
|
7
8
|
type GridlockRect,
|
|
8
9
|
} from "./gridlock-inference";
|
|
@@ -19,6 +20,10 @@ import {
|
|
|
19
20
|
const BURIED_VISIBLE_RATIO = 0.2;
|
|
20
21
|
const TITLE_BAR_HEIGHT_RATIO = 0.12;
|
|
21
22
|
const TIDY_FLOATING_THRESHOLD = 3;
|
|
23
|
+
/** Below this many columns Tidy stacks the panes in one column instead of tiling a grid of slivers. */
|
|
24
|
+
const NARROW_TIDY_WIDTH = 80;
|
|
25
|
+
/** Rows a pane needs to show its header and a screen of rows; a shorter terminal shows one stack. */
|
|
26
|
+
const NARROW_TIDY_MIN_ROWS = 12;
|
|
22
27
|
|
|
23
28
|
type Rect = Pick<FloatingPaneEntry, "x" | "y" | "width" | "height">;
|
|
24
29
|
|
|
@@ -101,6 +106,42 @@ function withStacks(node: DockLayoutNode | null, stacks: ReadonlyMap<string, rea
|
|
|
101
106
|
return { ...node, first: withStacks(node.first, stacks)!, second: withStacks(node.second, stacks)! };
|
|
102
107
|
}
|
|
103
108
|
|
|
109
|
+
/**
|
|
110
|
+
* A narrow terminal's Tidy: every pane at the full width, in one column of
|
|
111
|
+
* at most two stacks, one above the other, each holding its share of the
|
|
112
|
+
* panes as tabs in reading order. A grid of eight panes at 52 columns was
|
|
113
|
+
* eleven-column tiles no table could be read in.
|
|
114
|
+
*/
|
|
115
|
+
function narrowDockTree(rects: readonly GridlockRect[], stacks: ReadonlyMap<string, readonly string[]>, height: number): DockLayoutNode | null {
|
|
116
|
+
const order = [...rects]
|
|
117
|
+
.sort((a, b) => a.y - b.y || a.x - b.x)
|
|
118
|
+
.flatMap((rect) => stacks.get(rect.instanceId) ?? [rect.instanceId]);
|
|
119
|
+
if (order.length <= 1 || height < NARROW_TIDY_MIN_ROWS * 2) return buildDockStack(order);
|
|
120
|
+
const split = Math.ceil(order.length / 2);
|
|
121
|
+
return {
|
|
122
|
+
kind: "split",
|
|
123
|
+
axis: "vertical",
|
|
124
|
+
ratio: 0.5,
|
|
125
|
+
first: buildDockStack(order.slice(0, split))!,
|
|
126
|
+
second: buildDockStack(order.slice(split))!,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The one column a narrow terminal's Tidy leaves (`narrowDockTree`): one
|
|
132
|
+
* stack, or a stack above another or above a pane, with nothing floating.
|
|
133
|
+
* Tidied on a wider terminal, its panes are tiled in a grid again rather
|
|
134
|
+
* than kept as the two stacks the narrow one needed.
|
|
135
|
+
*/
|
|
136
|
+
function isNarrowTidyColumn(layout: LayoutConfig): boolean {
|
|
137
|
+
const root = layout.dockRoot;
|
|
138
|
+
if (!root || layout.floating.length > 0) return false;
|
|
139
|
+
if (isDockStack(root)) return true;
|
|
140
|
+
const stackOrPane = (node: DockLayoutNode) => isDockStack(node) || node.kind === "pane";
|
|
141
|
+
return root.kind === "split" && root.axis === "vertical"
|
|
142
|
+
&& stackOrPane(root.first) && stackOrPane(root.second) && (isDockStack(root.first) || isDockStack(root.second));
|
|
143
|
+
}
|
|
144
|
+
|
|
104
145
|
export function gridlockAllPanes(
|
|
105
146
|
layout: LayoutConfig,
|
|
106
147
|
bounds: LayoutBounds = { x: 0, y: 0, width: 120, height: 40 },
|
|
@@ -123,9 +164,13 @@ export function gridlockAllPanes(
|
|
|
123
164
|
const allRects = [...dockedRects, ...floatingRects];
|
|
124
165
|
if (allRects.length === 0) return visibleLayout;
|
|
125
166
|
|
|
167
|
+
// Decided by the width each time: a column a narrow Tidy left is a grid again on a wider terminal.
|
|
168
|
+
const wideDockTree = () => isNarrowTidyColumn(visibleLayout)
|
|
169
|
+
? buildGridDockTree(dockedRects.flatMap((rect) => stacks.get(rect.instanceId) ?? [rect.instanceId]))
|
|
170
|
+
: withStacks(inferDockTreeFromRects(allRects, boundsForRects(allRects)), stacks);
|
|
126
171
|
return finalizeLayout({
|
|
127
172
|
...visibleLayout,
|
|
128
|
-
dockRoot:
|
|
173
|
+
dockRoot: bounds.width < NARROW_TIDY_WIDTH ? narrowDockTree(allRects, stacks, bounds.height) : wideDockTree(),
|
|
129
174
|
floating: [],
|
|
130
175
|
});
|
|
131
176
|
}
|
|
@@ -60,6 +60,7 @@ export function parseMarketplaceLayoutId(pathname: string): string | null {
|
|
|
60
60
|
const id = decodeURIComponent(match[1] ?? "");
|
|
61
61
|
return isMarketplaceLayoutId(id) ? id : null;
|
|
62
62
|
} catch {
|
|
63
|
+
// Intentional ignore: a malformed percent escape in the path names no layout id.
|
|
63
64
|
return null;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
publishableMarketplaceLayout,
|
|
38
38
|
} from "../shares/portable-layout";
|
|
39
39
|
import { useLayoutMarketplace, useTeamLayouts } from "./use-marketplace";
|
|
40
|
+
import { logFailure } from "../utils/log-failure";
|
|
40
41
|
|
|
41
42
|
export interface LayoutGalleryController {
|
|
42
43
|
query: string;
|
|
@@ -198,7 +199,7 @@ export function LayoutMarketplaceGallery({
|
|
|
198
199
|
width={40}
|
|
199
200
|
/>
|
|
200
201
|
),
|
|
201
|
-
}).catch((
|
|
202
|
+
}).catch(logFailure("layout-marketplace.gallery", "Open layout name prompt failed"));
|
|
202
203
|
return typeof name === "string" ? name.trim() : "";
|
|
203
204
|
}, [dialog]);
|
|
204
205
|
|
|
@@ -269,7 +270,7 @@ export function LayoutMarketplaceGallery({
|
|
|
269
270
|
selectedChoiceId={defaultId ?? undefined}
|
|
270
271
|
/>
|
|
271
272
|
),
|
|
272
|
-
}).catch((
|
|
273
|
+
}).catch(logFailure("layout-marketplace.gallery", "Open team choice failed"));
|
|
273
274
|
return teams.find((team) => team.id === id) ?? null;
|
|
274
275
|
}, [dialog, pluginRegistry, teams]);
|
|
275
276
|
|
|
@@ -332,7 +333,7 @@ export function LayoutMarketplaceGallery({
|
|
|
332
333
|
selectedChoiceId="copy"
|
|
333
334
|
/>
|
|
334
335
|
),
|
|
335
|
-
}).catch((
|
|
336
|
+
}).catch(logFailure("layout-marketplace.gallery", "Open layout conflict choice failed"));
|
|
336
337
|
return choice === "copy" || choice === "overwrite" || choice === "discard" ? choice : null;
|
|
337
338
|
}, [dialog]);
|
|
338
339
|
|
|
@@ -3,10 +3,11 @@ import type { LayoutConfig, LayoutOrigin, SavedLayout } from "../types/config";
|
|
|
3
3
|
import type { PaneDef } from "../types/plugin";
|
|
4
4
|
import { layoutContentFingerprint, type CloudLayoutEntry } from "./cloud";
|
|
5
5
|
import { publishableMarketplaceLayout } from "../shares/portable-layout";
|
|
6
|
+
import { logFailure } from "../utils/log-failure";
|
|
6
7
|
|
|
7
8
|
export interface LinkedLayoutStatus {
|
|
8
9
|
origin: LayoutOrigin;
|
|
9
|
-
/** Local content differs from the revision the tab last matched. */
|
|
10
|
+
/** Local content differs from the revision the tab last matched, or cannot be compared with it. */
|
|
10
11
|
dirty: boolean;
|
|
11
12
|
/** The team holds a revision newer than the one linked. */
|
|
12
13
|
updateAvailable: number | null;
|
|
@@ -29,8 +30,8 @@ function fingerprintSavedLayout(
|
|
|
29
30
|
): string | null {
|
|
30
31
|
try {
|
|
31
32
|
return layoutContentFingerprint(publishableMarketplaceLayout(layout, paneState, panes), derivesTitle(panes));
|
|
32
|
-
} catch {
|
|
33
|
-
return null;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
return logFailure("layout-marketplace.linked", "Fingerprint linked layout failed", null)(error);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -47,7 +48,8 @@ export function linkedLayoutStatus(
|
|
|
47
48
|
);
|
|
48
49
|
return {
|
|
49
50
|
origin: saved.origin,
|
|
50
|
-
|
|
51
|
+
// A tab that cannot be fingerprinted may hold edits, so a newer team revision asks instead of replacing it.
|
|
52
|
+
dirty: fingerprint === null || fingerprint !== saved.origin.contentHash,
|
|
51
53
|
updateAvailable: remoteRevision != null && remoteRevision > saved.origin.revision ? remoteRevision : null,
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -14,6 +14,7 @@ import type { CloudLayoutEntry } from "./cloud";
|
|
|
14
14
|
import { linkedLayoutStatus, type LinkedLayoutStatus } from "./linked";
|
|
15
15
|
import type { LayoutMarketplaceEntry } from "../shares/portable-layout";
|
|
16
16
|
import { paneImagery, type PaneImagery } from "./pane-imagery";
|
|
17
|
+
import { logFailure } from "../utils/log-failure";
|
|
17
18
|
|
|
18
19
|
type PanePlacement = "docked" | "floating" | "detached";
|
|
19
20
|
|
|
@@ -93,8 +94,8 @@ function derivedPaneTitle(def: PaneDef | undefined, instance: PaneInstanceConfig
|
|
|
93
94
|
try {
|
|
94
95
|
const title: unknown = def.instanceTitle(instance);
|
|
95
96
|
return typeof title === "string" && title.trim() ? title.trim() : null;
|
|
96
|
-
} catch {
|
|
97
|
-
return null;
|
|
97
|
+
} catch (error) {
|
|
98
|
+
return logFailure("layout-marketplace.model", "Read derived pane title failed", null)(error);
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -30,11 +30,17 @@ const sharesShape = (value: FundFactsPayload["sharesOutstanding"]) => value == n
|
|
|
30
30
|
const flowsShape = (value: FundFlows | null | undefined) => value == null
|
|
31
31
|
|| (finite(value.shares) && (value.value === null || finite(value.value)) && typeof value.from === "string" && typeof value.asOf === "string");
|
|
32
32
|
|
|
33
|
+
/** Absent for any fund but a spot coin fund abroad; otherwise its coins and the units per coin, dated. */
|
|
34
|
+
const coinHoldingsShape = (value: FundFactsPayload["coinHoldings"]) => value == null
|
|
35
|
+
|| ((value.asset === "BTC" || value.asset === "ETH") && finite(value.coins) && finite(value.unitsPerCoin) && value.unitsPerCoin > 0
|
|
36
|
+
&& typeof value.asOf === "string" && typeof value.source === "string");
|
|
37
|
+
|
|
33
38
|
export function validateFundFacts(data: FundFactsPayload): FundFactsPayload {
|
|
34
39
|
if (!data || typeof data.ticker !== "string" || typeof data.covered !== "boolean"
|
|
35
40
|
|| ![data.expenseRatio, data.nav, data.premiumDiscount, data.netAssets, data.sponsor, data.inception, data.index].every(fact)
|
|
36
41
|
|| !estimateShape(data.nav) || !sharesShape(data.sharesOutstanding) || !flowsShape(data.flows)
|
|
37
|
-
|| !isBondFactsShape(data.bond) || !leverageShape(data.leverage) || !isMetalHoldingsShape(data.metalHoldings)
|
|
42
|
+
|| !isBondFactsShape(data.bond) || !leverageShape(data.leverage) || !isMetalHoldingsShape(data.metalHoldings)
|
|
43
|
+
|| !coinHoldingsShape(data.coinHoldings) || (data.currency !== undefined && typeof data.currency !== "string")) {
|
|
38
44
|
throw new Error("Unreadable fund facts response");
|
|
39
45
|
}
|
|
40
46
|
return data;
|