gloomberb 0.20.13 → 0.20.16
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/package.json +2 -1
- package/patches/@opentui%2Fcore@0.3.2.patch +22 -4
- package/src/account/auth-dialog.tsx +22 -4
- package/src/account/auth-form.tsx +6 -1
- package/src/account/checkout-handoff.tsx +7 -14
- package/src/account/device-signin-dialog.tsx +35 -24
- package/src/api-client/crypto-markets.ts +10 -0
- package/src/api-client/errors.ts +3 -1
- package/src/api-client/index.ts +54 -0
- package/src/api-client/install-experiments.ts +8 -7
- package/src/api-client/money-markets.ts +7 -0
- package/src/api-client/paths.ts +2 -1
- package/src/api-client/product-waitlist.ts +63 -0
- package/src/api-client/request.ts +16 -4
- package/src/api-client/types/billing.ts +45 -0
- package/src/api-client/yearly-plan.ts +132 -0
- package/src/app/global-shortcuts.ts +5 -3
- package/src/app/pane-runtime/index.tsx +2 -2
- package/src/app/pane-runtime/plugin-bindings.ts +3 -1
- package/src/app/pane-runtime/ticker-open-runtime.ts +6 -1
- package/src/app/since-last-visit/keys.ts +26 -0
- package/src/app/since-last-visit/model.ts +266 -0
- package/src/app/since-last-visit/strip.tsx +193 -0
- package/src/app/since-last-visit/use-since-last-visit.ts +289 -0
- package/src/app/since-last-visit/visit-tracker.ts +191 -0
- package/src/app.tsx +15 -0
- package/src/architecture/floating-promise-allowlist.json +0 -1
- package/src/brokers/signed-in/sign-in-dialog.tsx +38 -38
- package/src/cli/commands/market.ts +103 -27
- package/src/cli/commands/overview.ts +18 -4
- package/src/cli/commands/system.ts +29 -1
- package/src/cli/commands/ticker.ts +12 -5
- package/src/cli/desktop-pane-shot-api-policy.ts +4 -1
- package/src/cli/desktop-pane-shot-browser.ts +2 -1
- package/src/cli/desktop-pane-shot-view.ts +3 -7
- package/src/cli/desktop-pane-shot.ts +26 -28
- package/src/cli/errors.ts +3 -1
- package/src/cli/freshness.ts +7 -2
- package/src/cli/glossary.ts +10 -5
- package/src/cli/help.ts +1 -0
- package/src/cli/helpers.ts +8 -16
- package/src/cli/history-export.ts +4 -0
- package/src/cli/history-rows.ts +24 -0
- package/src/cli/index.ts +4 -0
- package/src/cli/known-gaps.ts +2 -2
- package/src/cli/listing-arg.ts +79 -11
- package/src/cli/not-a-ticker.ts +4 -0
- package/src/cli/options.ts +29 -1
- package/src/cli/pane-functions/catalog.ts +70 -12
- package/src/cli/pane-functions/function-help.ts +1 -1
- package/src/cli/pane-functions/headless.ts +68 -3
- package/src/cli/pane-functions/index.ts +2 -2
- package/src/cli/pane-functions/options.ts +7 -0
- package/src/cli/pane-functions/resolver.ts +104 -15
- package/src/cli/pane-functions/screenshot-payload.ts +3 -0
- package/src/cli/report-tables.ts +20 -5
- package/src/cli/result.ts +22 -4
- package/src/cli/shot-temp-dir.ts +30 -0
- package/src/cli/suffixed-listing-rows.ts +11 -0
- package/src/cli/symbol-args.ts +5 -3
- package/src/cli/symbol-list.ts +23 -10
- package/src/cli/symbol-rows.ts +135 -3
- package/src/cli/treasury-yields.ts +15 -1
- package/src/components/chart/composite/composite-chart.tsx +3 -3
- package/src/components/chart/composite/format.ts +2 -1
- package/src/components/chart/composite/panel-surface/axis-markers.ts +133 -0
- package/src/components/chart/composite/panel-surface/level-labels.tsx +78 -0
- package/src/components/chart/composite/panel-surface/overlays.ts +108 -0
- package/src/components/chart/composite/panel-surface/pan-coast.ts +54 -0
- package/src/components/chart/composite/panel-surface/panel-cursor.tsx +138 -0
- package/src/components/chart/composite/panel-surface/panel-levels.ts +47 -0
- package/src/components/chart/composite/panel-surface/plot-gestures.ts +403 -0
- package/src/components/chart/composite/panel-surface/plot-pointer.ts +65 -0
- package/src/components/chart/composite/panel-surface/plot-wheel.ts +102 -0
- package/src/components/chart/composite/panel-surface/pointer.ts +12 -0
- package/src/components/chart/composite/panel-surface/props.ts +79 -0
- package/src/components/chart/composite/panel-surface/tool-readout.ts +151 -0
- package/src/components/chart/composite/panel-surface/value-axis-gestures.ts +152 -0
- package/src/components/chart/composite/panel-surface.tsx +81 -1177
- package/src/components/command-bar/commands/collection-list.ts +1 -0
- package/src/components/command-bar/commands/direct/index.ts +31 -8
- package/src/components/command-bar/commands/registry.ts +7 -0
- package/src/components/command-bar/routes/root/command-items.ts +8 -0
- package/src/components/command-bar/routes/root/results.ts +19 -2
- package/src/components/command-bar/routes/root/runtime.ts +3 -2
- package/src/components/command-bar/routes/root/selection.ts +3 -2
- package/src/components/command-bar/routes/root/shortcuts.ts +15 -0
- package/src/components/company-logo.tsx +10 -3
- package/src/components/data-table/sections.ts +6 -1
- package/src/components/layout/pane/title.ts +16 -6
- package/src/components/layout/shell/index.tsx +5 -1
- package/src/components/layout/shell/ticker-link-menu.ts +12 -9
- package/src/components/pane-settings-dialog/tui.tsx +6 -3
- package/src/components/pane-settings-dialog.tsx +2 -1
- package/src/components/pane-template-wizard.tsx +2 -0
- package/src/components/ticker/badge/format.ts +12 -3
- package/src/components/ticker/badge/index.tsx +9 -3
- package/src/components/ticker/list-table-view.tsx +119 -17
- package/src/components/ui/choice-dialog.tsx +1 -1
- package/src/components/ui/confirm-dialog.tsx +3 -2
- package/src/components/ui/data-table/display-columns.ts +16 -0
- package/src/components/ui/data-table/index.tsx +40 -9
- package/src/components/ui/data-table/types.ts +14 -0
- package/src/components/ui/frame.tsx +7 -3
- package/src/components/ui/icon.tsx +4 -2
- package/src/components/ui/list-view.tsx +8 -0
- package/src/components/ui/number-prompt-dialog.tsx +2 -1
- package/src/components/use-pane-notice-footer.tsx +3 -1
- package/src/core/state/app/layout-reducer.ts +3 -1
- package/src/core/state/app/layout.ts +2 -2
- package/src/data/config/layout.ts +14 -0
- package/src/data/config/store/normalize.ts +11 -1
- package/src/docs/snapshot.json +2 -2
- package/src/i18n/es.ts +39 -0
- package/src/i18n/ja.ts +39 -0
- package/src/i18n/ko.ts +39 -0
- package/src/i18n/zh-cn.ts +39 -0
- package/src/i18n/zh-tw.ts +39 -0
- package/src/layout/pane-follow.ts +141 -4
- package/src/layout/pane-layout-move.ts +10 -7
- package/src/layout/ticker-navigation.ts +13 -19
- package/src/layout/ticker-retarget.ts +3 -2
- package/src/market-data/market/format.ts +35 -1
- package/src/market-data/market/index-level.ts +19 -0
- package/src/market-data/quotes/contributions.ts +13 -0
- package/src/market-data/quotes/export-identity.ts +36 -1
- package/src/market-data/quotes/resolution.ts +16 -0
- package/src/plugins/builtin/account-management/keyboard.ts +14 -0
- package/src/plugins/builtin/account-management/model.ts +2 -0
- package/src/plugins/builtin/account-management/pane.tsx +79 -7
- package/src/plugins/builtin/account-management/password-dialog.tsx +2 -2
- package/src/plugins/builtin/account-management/payment-recovery-row.tsx +97 -0
- package/src/plugins/builtin/account-management/yearly-plan-row.tsx +359 -0
- package/src/plugins/builtin/analytics/risk-client.ts +12 -2
- package/src/plugins/builtin/analytics/risk-headless.ts +66 -6
- package/src/plugins/builtin/analytics/risk-math.ts +23 -6
- package/src/plugins/builtin/analytics/risk-model.ts +20 -9
- package/src/plugins/builtin/analytics/risk-pane.tsx +2 -2
- package/src/plugins/builtin/awards/pane.tsx +6 -8
- package/src/plugins/builtin/changelog/index.tsx +6 -44
- package/src/plugins/builtin/changelog/versions.ts +17 -68
- package/src/plugins/builtin/chart-composer/catalog-inventory.ts +5 -2
- package/src/plugins/builtin/chart-composer/editor.tsx +1 -0
- package/src/plugins/builtin/chart-composer/pane.tsx +1 -1
- package/src/plugins/builtin/chart-composer/quick-add.tsx +4 -1
- package/src/plugins/builtin/chart-composer/series-catalog.ts +17 -1
- package/src/plugins/builtin/cloud/askg/executor.ts +2 -1
- package/src/plugins/builtin/cloud/askg/sources.ts +2 -1
- package/src/plugins/builtin/cloud/plugin.tsx +2 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +2 -0
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +6 -2
- package/src/plugins/builtin/cpi/headless.ts +6 -1
- package/src/plugins/builtin/cpi/model.ts +17 -0
- package/src/plugins/builtin/cpi/pane.tsx +4 -2
- package/src/plugins/builtin/crypto-board/client.ts +6 -1
- package/src/plugins/builtin/crypto-board/headless.ts +10 -2
- package/src/plugins/builtin/crypto-board/model.ts +89 -11
- package/src/plugins/builtin/crypto-board/pane.tsx +20 -5
- package/src/plugins/builtin/debt-maturities/model.ts +1 -1
- package/src/plugins/builtin/dividend-yield/client.ts +24 -2
- package/src/plugins/builtin/dividend-yield/headless.ts +4 -2
- package/src/plugins/builtin/dividend-yield/ranking.ts +2 -1
- package/src/plugins/builtin/dividend-yield/view.ts +5 -1
- package/src/plugins/builtin/earnings/board-table.ts +1 -1
- package/src/plugins/builtin/earnings/board.tsx +36 -16
- package/src/plugins/builtin/earnings/highlight.ts +47 -0
- package/src/plugins/builtin/earnings/history-table.ts +9 -1
- package/src/plugins/builtin/earnings/index.tsx +1 -1
- package/src/plugins/builtin/earnings-calls/pane.tsx +2 -2
- package/src/plugins/builtin/earnings-ripple/index.tsx +2 -0
- package/src/plugins/builtin/econ/calendar-model.ts +17 -1
- package/src/plugins/builtin/econ/fred-catalog.ts +33 -4
- package/src/plugins/builtin/econ-statistics/headless.ts +21 -0
- package/src/plugins/builtin/estimate-revisions/model.ts +1 -1
- package/src/plugins/builtin/exposure/index.tsx +1 -1
- package/src/plugins/builtin/macro-day/headless.ts +21 -10
- package/src/plugins/builtin/macro-day/model.ts +42 -3
- package/src/plugins/builtin/macro-day/pane.tsx +26 -8
- package/src/plugins/builtin/macro-day/releases.ts +24 -1
- package/src/plugins/builtin/market-valuation/detail.tsx +3 -3
- package/src/plugins/builtin/market-valuation/headless.ts +11 -4
- package/src/plugins/builtin/market-valuation/pane.tsx +3 -1
- package/src/plugins/builtin/market-valuation/view.ts +14 -0
- package/src/plugins/builtin/money-markets/client.ts +4 -1
- package/src/plugins/builtin/money-markets/headless.ts +15 -4
- package/src/plugins/builtin/money-markets/index.tsx +1 -1
- package/src/plugins/builtin/money-markets/pane.tsx +7 -1
- package/src/plugins/builtin/news/wire/news/detail-view.tsx +20 -8
- package/src/plugins/builtin/pe-band/pane.tsx +1 -1
- package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +4 -2
- package/src/plugins/builtin/portfolio-list/cli/period-report.ts +61 -11
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +11 -3
- package/src/plugins/builtin/portfolio-list/cli/render.ts +8 -1
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +178 -17
- package/src/plugins/builtin/portfolio-list/headless.ts +33 -6
- package/src/plugins/builtin/portfolio-list/pane/groups.tsx +220 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +95 -18
- package/src/plugins/builtin/portfolio-list/pane/period-pnl.ts +24 -6
- package/src/plugins/builtin/portfolio-list/period-pnl.ts +16 -1
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +4 -1
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +6 -4
- package/src/plugins/builtin/portfolio-list/table.tsx +38 -16
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +4 -2
- package/src/plugins/builtin/research/relative-valuation-headless.ts +15 -5
- package/src/plugins/builtin/research/relative-valuation-model.ts +7 -1
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +7 -4
- package/src/plugins/builtin/shared/cloud-upgrade.ts +4 -2
- package/src/plugins/builtin/shared/cpi-year-gap.ts +67 -0
- package/src/plugins/builtin/shared/headless-options.ts +1 -1
- package/src/plugins/builtin/social-mentions/model.ts +2 -2
- package/src/plugins/builtin/thirteenf/pane.tsx +1 -1
- package/src/plugins/builtin/ticker-detail/adr-pair/headless.ts +45 -2
- package/src/plugins/builtin/ticker-detail/financials/model.ts +51 -16
- package/src/plugins/builtin/ticker-detail/financials/nopat.ts +16 -0
- package/src/plugins/builtin/ticker-detail/financials/ratios.ts +44 -13
- package/src/plugins/builtin/ticker-detail/financials/schema.ts +33 -2
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +4 -2
- package/src/plugins/builtin/ticker-detail/headless-schema.ts +30 -4
- package/src/plugins/builtin/ticker-detail/headless.ts +280 -35
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +4 -5
- package/src/plugins/builtin/ticker-detail/overview/model.ts +9 -2
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +10 -2
- package/src/plugins/builtin/ticker-detail/pharma-signals/eligibility.ts +32 -0
- package/src/plugins/builtin/ticker-detail/pharma-signals/tab.tsx +162 -0
- package/src/plugins/builtin/ticker-detail/pharma-signals/waitlist.ts +126 -0
- package/src/plugins/builtin/ticker-detail/research-groups.ts +6 -4
- package/src/plugins/builtin/ticker-detail/research-tabs.ts +11 -0
- package/src/portfolio/collection-name.ts +2 -1
- package/src/portfolio/column-values.ts +34 -12
- package/src/portfolio/listed-symbol.ts +4 -2
- package/src/portfolio/period-pnl.ts +51 -1
- package/src/portfolio/suffixed-listings.ts +3 -1
- package/src/portfolio/watchlist-groups.ts +212 -0
- package/src/react/ticker-source.ts +3 -1
- package/src/renderers/dom/dialog-host.tsx +5 -5
- package/src/renderers/dom/styles.css +7 -0
- package/src/renderers/electrobun/view/remote/capability-invoker.ts +1 -1
- package/src/renderers/opentui/dialog-host.tsx +3 -4
- package/src/sources/gloomberb-cloud/normalizers.ts +5 -0
- package/src/sources/provider-router/history.ts +5 -2
- package/src/state/app/bootstrap.ts +11 -0
- package/src/state/app/context/index.tsx +6 -0
- package/src/sync/collections-contributor.ts +5 -2
- package/src/sync/config-merge.ts +10 -2
- package/src/sync/sanitize.ts +28 -0
- package/src/telemetry/usage-counts.ts +17 -0
- package/src/test-support/plugin-persistence.ts +12 -0
- package/src/tickers/company-name-listing.ts +4 -3
- package/src/tickers/company-name.ts +19 -1
- package/src/tickers/instrument-coverage.ts +27 -0
- package/src/tickers/search/home-listing.ts +38 -1
- package/src/tickers/search/index.ts +3 -2
- package/src/tickers/search/ranking.ts +21 -2
- package/src/time-series/base-series.ts +4 -0
- package/src/time-series/chart-seed.ts +1 -1
- package/src/time-series/financial-period-coverage.ts +4 -12
- package/src/time-series/parsed-history-cache.ts +1 -1
- package/src/time-series/resolve.ts +1 -1
- package/src/time-series/types.ts +5 -2
- package/src/time-series/use-chart-resolution.ts +6 -1
- package/src/types/config.ts +32 -0
- package/src/types/financials.ts +13 -0
- package/src/types/headless.ts +7 -0
- package/src/types/plugin-context.ts +5 -0
- package/src/types/ticker.ts +14 -0
- package/src/ui/ascii-font.ts +1 -4
- package/src/ui/dialog-stack.ts +17 -0
- package/src/ui/dialog.tsx +6 -2
- package/src/utils/async-deadline.ts +2 -2
- package/src/utils/crypto-pair.ts +9 -0
- package/src/utils/csv.ts +44 -5
- package/src/utils/exchanges.ts +13 -0
- package/src/utils/financial-statements.ts +60 -3
- package/src/utils/futures-generic.ts +17 -0
- package/src/utils/trailing-dividend.ts +13 -3
|
@@ -24,6 +24,7 @@ import { migrateSavedConfig, type ConfigMigrationHost } from "./migrations";
|
|
|
24
24
|
import { encodeBuiltinDisabledPluginIds, expandBuiltinPluginGroups } from "../../../plugins/ownership";
|
|
25
25
|
import { sanitizeSavedPaneState } from "./pane-state";
|
|
26
26
|
import { isRecord } from "../../../utils/guards";
|
|
27
|
+
import { normalizeWatchlistGroups } from "../../../portfolio/watchlist-groups";
|
|
27
28
|
import { normalizeStoredBaseCurrency } from "../../../utils/base-currency";
|
|
28
29
|
import { debugLog } from "../../../utils/debug-log";
|
|
29
30
|
import { DEFAULT_THEME, themes } from "../../../theme/themes";
|
|
@@ -98,8 +99,10 @@ export function normalizeLoadedConfig(
|
|
|
98
99
|
...sanitizePluginSeedFailure(candidate.pluginSeedFailure),
|
|
99
100
|
...(candidate.portfolioCurrenciesAdopted === true ? { portfolioCurrenciesAdopted: true } : {}),
|
|
100
101
|
...(candidate.presentationMode === true ? { presentationMode: true } : {}),
|
|
102
|
+
...(candidate.sinceLastVisit === false ? { sinceLastVisit: false } : {}),
|
|
101
103
|
...withHeaderMarket(sanitizeHeaderMarketChoice(candidate.headerMarket)),
|
|
102
104
|
...(typeof candidate.timezone === "string" && candidate.timezone.trim() ? { timezone: candidate.timezone.trim() } : {}),
|
|
105
|
+
...(candidate.csvDecimal === "comma" ? { csvDecimal: "comma" as const } : {}),
|
|
103
106
|
disabledSources: sanitizeUniqueStringList(candidate.disabledSources ?? defaults.disabledSources),
|
|
104
107
|
pluginConfig: sanitizePluginConfig(candidate.pluginConfig),
|
|
105
108
|
theme: sanitizeTheme(candidate.theme, defaults.theme),
|
|
@@ -184,6 +187,9 @@ export function normalizeConfigForSave(config: AppConfig): AppConfig {
|
|
|
184
187
|
Object.assign(persisted, withStarPrompt(sanitizeStarPrompt(config.starPrompt)));
|
|
185
188
|
delete persisted.updates;
|
|
186
189
|
Object.assign(persisted, withUpdates(sanitizeUpdatesConfig(config.updates)));
|
|
190
|
+
// Only off is saved; on is the default.
|
|
191
|
+
delete persisted.sinceLastVisit;
|
|
192
|
+
if (config.sinceLastVisit === false) persisted.sinceLastVisit = false;
|
|
187
193
|
|
|
188
194
|
return persisted;
|
|
189
195
|
}
|
|
@@ -429,7 +435,11 @@ function sanitizeWatchlists(value: unknown, fallback: Watchlist[]): Watchlist[]
|
|
|
429
435
|
&& typeof (entry as Watchlist).id === "string"
|
|
430
436
|
&& typeof (entry as Watchlist).name === "string",
|
|
431
437
|
)
|
|
432
|
-
.map((
|
|
438
|
+
.map(({ groups, ...entry }) => {
|
|
439
|
+
// Malformed groups are dropped, and a list left with none has no `groups` at all.
|
|
440
|
+
const kept = normalizeWatchlistGroups(groups);
|
|
441
|
+
return kept ? { ...entry, groups: kept } : entry;
|
|
442
|
+
});
|
|
433
443
|
}
|
|
434
444
|
|
|
435
445
|
function sanitizeBrokerInstances(value: unknown): BrokerInstanceConfig[] {
|
package/src/docs/snapshot.json
CHANGED
|
@@ -8696,7 +8696,7 @@
|
|
|
8696
8696
|
"title": "Futures curves and rolling (CTM)",
|
|
8697
8697
|
"summary": "A futures curve lines up every contract month of one commodity, rising (contango) when storing costs money and falling (backwardation) when it is scarce now, and CTM shows it with the cost of rolling.",
|
|
8698
8698
|
"chapter": "Futures, commodities and energy",
|
|
8699
|
-
"minutes":
|
|
8699
|
+
"minutes": 5
|
|
8700
8700
|
},
|
|
8701
8701
|
{
|
|
8702
8702
|
"url": "/academy/futures-commodities-energy/positioning-cot",
|
|
@@ -8729,7 +8729,7 @@
|
|
|
8729
8729
|
{
|
|
8730
8730
|
"url": "/academy/futures-commodities-energy/macro-days",
|
|
8731
8731
|
"title": "How a stock reacts on macro days (MDAY)",
|
|
8732
|
-
"summary": "MDAY compares how a US listing moves on CPI, jobs and
|
|
8732
|
+
"summary": "MDAY compares how a US listing moves on CPI, jobs and central bank decision days with a normal day, over up to five years, and lists every release day with its figures and move.",
|
|
8733
8733
|
"chapter": "Futures, commodities and energy",
|
|
8734
8734
|
"minutes": 4
|
|
8735
8735
|
},
|
package/src/i18n/es.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const es: Record<string, string> = {
|
|
|
17
17
|
"Linked to {source}": "Vinculado a {source}",
|
|
18
18
|
"Link to {source}": "Vincular a {source}",
|
|
19
19
|
"Unlink from {source}": "Desvincular de {source}",
|
|
20
|
+
"Unlinked": "Desvinculado",
|
|
20
21
|
"Working…": "Procesando…",
|
|
21
22
|
"Searching…": "Buscando…",
|
|
22
23
|
"Loading...": "Cargando...",
|
|
@@ -761,6 +762,43 @@ export const es: Record<string, string> = {
|
|
|
761
762
|
"Status": "Estado",
|
|
762
763
|
"Manage Pro": "Gestionar Pro",
|
|
763
764
|
"Opening...": "Abriendo...",
|
|
765
|
+
"Payment": "Pago",
|
|
766
|
+
"Pay invoice": "Pagar factura",
|
|
767
|
+
"Your Pro payment did not go through.": "Tu pago de Pro no se ha completado.",
|
|
768
|
+
"Could not refresh your account. Try again.": "No se pudo actualizar tu cuenta. Inténtalo de nuevo.",
|
|
769
|
+
"Could not open invoice payment. Try again.": "No se pudo abrir el pago de la factura. Inténtalo de nuevo.",
|
|
770
|
+
"Invoice opened in your browser.": "La factura se ha abierto en tu navegador.",
|
|
771
|
+
"Yearly is {yearly} a year, {savings} less than twelve monthly payments of {monthly} ({twelve}).": "El plan anual cuesta {yearly} al año, {savings} menos que doce pagos mensuales de {monthly} ({twelve}).",
|
|
772
|
+
"The total changed since you reviewed it. Review it again.": "El total ha cambiado desde que lo revisaste. Revísalo de nuevo.",
|
|
773
|
+
"This total has expired. Review it again.": "Este total ha caducado. Revísalo de nuevo.",
|
|
774
|
+
"This review is no longer valid. Review the switch again.": "Esta revisión ya no es válida. Revisa el cambio de nuevo.",
|
|
775
|
+
"Your switch is already going through. Refresh in a moment.": "Tu cambio ya se está procesando. Actualiza en un momento.",
|
|
776
|
+
"Your switch to yearly is waiting for its payment.": "Tu cambio al plan anual está pendiente de pago.",
|
|
777
|
+
"Yearly billing can't be set up for this plan here. Your plan is unchanged.": "No se puede configurar la facturación anual para este plan aquí. Tu plan no ha cambiado.",
|
|
778
|
+
"The switch didn't go through and your plan is unchanged. Try again in a minute.": "El cambio no se ha completado y tu plan no ha cambiado. Inténtalo de nuevo en un minuto.",
|
|
779
|
+
"We couldn't confirm the switch. Refresh your account before trying again.": "No hemos podido confirmar el cambio. Actualiza tu cuenta antes de volver a intentarlo.",
|
|
780
|
+
"Couldn't work out the yearly total. Try again in a minute.": "No se ha podido calcular el total anual. Inténtalo de nuevo en un minuto.",
|
|
781
|
+
"Yearly Pro, today to {date}": "Pro anual, de hoy al {date}",
|
|
782
|
+
"Credit for the rest of this month": "Crédito por el resto de este mes",
|
|
783
|
+
"Tax": "Impuestos",
|
|
784
|
+
"Account credit": "Saldo a favor",
|
|
785
|
+
"Due today": "A pagar hoy",
|
|
786
|
+
"Then {amount} a year plus tax, renewing {date}.": "Después, {amount} al año más impuestos, con renovación el {date}.",
|
|
787
|
+
"Then {amount} a year, renewing {date}.": "Después, {amount} al año, con renovación el {date}.",
|
|
788
|
+
"Your switch to yearly needs the payment confirmed. You stay on monthly billing until it is paid.": "Tu cambio al plan anual necesita que confirmes el pago. Sigues con facturación mensual hasta que se pague.",
|
|
789
|
+
"Unpaid by {date}, the switch is dropped.": "Si no se paga antes del {date}, el cambio se cancela.",
|
|
790
|
+
"Your payment is processing. You move to yearly billing once it clears.": "Tu pago se está procesando. Pasarás a la facturación anual cuando se complete.",
|
|
791
|
+
"You're on yearly billing.": "Ya tienes facturación anual.",
|
|
792
|
+
"Paid {amount} today.": "Has pagado {amount} hoy.",
|
|
793
|
+
"Renews {date} at {amount}.": "Se renueva el {date} por {amount}.",
|
|
794
|
+
"Review Yearly": "Revisar plan anual",
|
|
795
|
+
"Switch to yearly billing": "Cambiar a facturación anual",
|
|
796
|
+
"Your saved payment method is charged today, and your plan stays monthly until it is paid.": "Se cobra hoy a tu método de pago guardado, y tu plan sigue siendo mensual hasta que se pague.",
|
|
797
|
+
"Switching...": "Cambiando...",
|
|
798
|
+
"Pay {amount} and Switch": "Pagar {amount} y cambiar",
|
|
799
|
+
"Switch to Yearly": "Cambiar a anual",
|
|
800
|
+
"Not Now": "Ahora no",
|
|
801
|
+
"Confirm Payment": "Confirmar pago",
|
|
764
802
|
"Upgrade to Pro": "Mejorar a Pro",
|
|
765
803
|
"Change Password": "Cambiar contraseña",
|
|
766
804
|
"Delete Account": "Eliminar cuenta",
|
|
@@ -1311,6 +1349,7 @@ export const es: Record<string, string> = {
|
|
|
1311
1349
|
"Pro trial · {days}d left": "Prueba Pro · quedan {days} d",
|
|
1312
1350
|
"{delay} delayed": "{delay} de retraso",
|
|
1313
1351
|
"{delay} delayed · try Pro live": "{delay} de retraso · prueba Pro en directo",
|
|
1352
|
+
"Stock quotes are {minutes} min delayed without Pro.": "Sin Pro, las cotizaciones de acciones llegan con {minutes} min de retraso.",
|
|
1314
1353
|
"Pro trial {days}d": "Prueba Pro {days} d",
|
|
1315
1354
|
"Pro trial — ends {date}": "Prueba Pro: termina el {date}",
|
|
1316
1355
|
"{amount}/mo": "{amount}/mes",
|
package/src/i18n/ja.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const ja: Record<string, string> = {
|
|
|
17
17
|
"Linked to {source}": "{source} にリンク中",
|
|
18
18
|
"Link to {source}": "{source} にリンク",
|
|
19
19
|
"Unlink from {source}": "{source} とのリンクを解除",
|
|
20
|
+
"Unlinked": "リンク解除済み",
|
|
20
21
|
"Working…": "処理中…",
|
|
21
22
|
"Searching…": "検索中…",
|
|
22
23
|
"Loading...": "読み込み中...",
|
|
@@ -697,6 +698,7 @@ export const ja: Record<string, string> = {
|
|
|
697
698
|
"Pro trial · {days}d left": "Pro トライアル · 残り{days}日",
|
|
698
699
|
"{delay} delayed": "{delay}遅延",
|
|
699
700
|
"{delay} delayed · try Pro live": "{delay}遅延 · Pro のリアルタイムを試す",
|
|
701
|
+
"Stock quotes are {minutes} min delayed without Pro.": "Pro なしでは株価は{minutes}分遅れです。",
|
|
700
702
|
"Pro trial {days}d": "Pro トライアル{days}日",
|
|
701
703
|
"Pro trial — ends {date}": "Pro トライアル — {date} まで",
|
|
702
704
|
"delayed": "遅延",
|
|
@@ -776,6 +778,43 @@ export const ja: Record<string, string> = {
|
|
|
776
778
|
"Status": "ステータス",
|
|
777
779
|
"Manage Pro": "Pro を管理",
|
|
778
780
|
"Opening...": "開いています...",
|
|
781
|
+
"Payment": "支払い",
|
|
782
|
+
"Pay invoice": "請求書を支払う",
|
|
783
|
+
"Your Pro payment did not go through.": "Proのお支払いを完了できませんでした。",
|
|
784
|
+
"Could not refresh your account. Try again.": "アカウントを更新できませんでした。もう一度お試しください。",
|
|
785
|
+
"Could not open invoice payment. Try again.": "請求書の支払い画面を開けませんでした。もう一度お試しください。",
|
|
786
|
+
"Invoice opened in your browser.": "ブラウザで請求書を開きました。",
|
|
787
|
+
"Yearly is {yearly} a year, {savings} less than twelve monthly payments of {monthly} ({twelve}).": "年額プランは年{yearly}で、月額{monthly}の12回払い({twelve})より{savings}お得です。",
|
|
788
|
+
"The total changed since you reviewed it. Review it again.": "確認後に合計金額が変わりました。もう一度確認してください。",
|
|
789
|
+
"This total has expired. Review it again.": "この合計金額の有効期限が切れました。もう一度確認してください。",
|
|
790
|
+
"This review is no longer valid. Review the switch again.": "この確認内容は無効になりました。切り替えをもう一度確認してください。",
|
|
791
|
+
"Your switch is already going through. Refresh in a moment.": "切り替えはすでに処理中です。しばらくしてから更新してください。",
|
|
792
|
+
"Your switch to yearly is waiting for its payment.": "年額への切り替えはお支払い待ちです。",
|
|
793
|
+
"Yearly billing can't be set up for this plan here. Your plan is unchanged.": "このプランではここで年額請求を設定できません。プランは変更されていません。",
|
|
794
|
+
"The switch didn't go through and your plan is unchanged. Try again in a minute.": "切り替えを完了できず、プランは変更されていません。1分後にもう一度お試しください。",
|
|
795
|
+
"We couldn't confirm the switch. Refresh your account before trying again.": "切り替えを確認できませんでした。もう一度試す前にアカウントを更新してください。",
|
|
796
|
+
"Couldn't work out the yearly total. Try again in a minute.": "年額の合計を計算できませんでした。1分後にもう一度お試しください。",
|
|
797
|
+
"Yearly Pro, today to {date}": "Pro年額(本日から{date}まで)",
|
|
798
|
+
"Credit for the rest of this month": "今月の残り期間分のクレジット",
|
|
799
|
+
"Tax": "税金",
|
|
800
|
+
"Account credit": "アカウントクレジット",
|
|
801
|
+
"Due today": "本日のお支払い",
|
|
802
|
+
"Then {amount} a year plus tax, renewing {date}.": "以降は年{amount}(税別)、{date}に更新されます。",
|
|
803
|
+
"Then {amount} a year, renewing {date}.": "以降は年{amount}、{date}に更新されます。",
|
|
804
|
+
"Your switch to yearly needs the payment confirmed. You stay on monthly billing until it is paid.": "年額への切り替えにはお支払いの確認が必要です。お支払いが完了するまで月額請求のままです。",
|
|
805
|
+
"Unpaid by {date}, the switch is dropped.": "{date}までにお支払いがない場合、切り替えは取り消されます。",
|
|
806
|
+
"Your payment is processing. You move to yearly billing once it clears.": "お支払いを処理中です。完了すると年額請求に切り替わります。",
|
|
807
|
+
"You're on yearly billing.": "年額請求に切り替わりました。",
|
|
808
|
+
"Paid {amount} today.": "本日{amount}をお支払いいただきました。",
|
|
809
|
+
"Renews {date} at {amount}.": "{date}に{amount}で更新されます。",
|
|
810
|
+
"Review Yearly": "年額を確認",
|
|
811
|
+
"Switch to yearly billing": "年額請求に切り替える",
|
|
812
|
+
"Your saved payment method is charged today, and your plan stays monthly until it is paid.": "保存済みのお支払い方法に本日請求されます。お支払いが完了するまでプランは月額のままです。",
|
|
813
|
+
"Switching...": "切り替え中...",
|
|
814
|
+
"Pay {amount} and Switch": "{amount}を支払って切り替え",
|
|
815
|
+
"Switch to Yearly": "年額に切り替え",
|
|
816
|
+
"Not Now": "後で",
|
|
817
|
+
"Confirm Payment": "支払いを確認",
|
|
779
818
|
"Upgrade to Pro": "Pro にアップグレード",
|
|
780
819
|
"Change Password": "パスワードを変更する",
|
|
781
820
|
"Delete Account": "アカウントを削除",
|
package/src/i18n/ko.ts
CHANGED
|
@@ -15,6 +15,7 @@ export const ko: Record<string, string> = {
|
|
|
15
15
|
"Linked to {source}": "{source}에 연결됨",
|
|
16
16
|
"Link to {source}": "{source}에 연결",
|
|
17
17
|
"Unlink from {source}": "{source} 연결 해제",
|
|
18
|
+
"Unlinked": "연결 해제됨",
|
|
18
19
|
"Working…": "처리 중…",
|
|
19
20
|
"Searching…": "검색 중…",
|
|
20
21
|
"Loading...": "불러오는 중...",
|
|
@@ -695,6 +696,7 @@ export const ko: Record<string, string> = {
|
|
|
695
696
|
"Pro trial · {days}d left": "Pro 체험 · {days}일 남음",
|
|
696
697
|
"{delay} delayed": "{delay} 지연",
|
|
697
698
|
"{delay} delayed · try Pro live": "{delay} 지연 · Pro 실시간 사용해 보기",
|
|
699
|
+
"Stock quotes are {minutes} min delayed without Pro.": "Pro가 없으면 주식 시세는 {minutes}분 지연됩니다.",
|
|
698
700
|
"Pro trial {days}d": "Pro 체험 {days}일",
|
|
699
701
|
"Pro trial — ends {date}": "Pro 체험 — {date} 종료",
|
|
700
702
|
"delayed": "지연",
|
|
@@ -774,6 +776,43 @@ export const ko: Record<string, string> = {
|
|
|
774
776
|
"Status": "상태",
|
|
775
777
|
"Manage Pro": "Pro 관리",
|
|
776
778
|
"Opening...": "여는 중...",
|
|
779
|
+
"Payment": "결제",
|
|
780
|
+
"Pay invoice": "청구서 결제",
|
|
781
|
+
"Your Pro payment did not go through.": "Pro 결제가 완료되지 않았습니다.",
|
|
782
|
+
"Could not refresh your account. Try again.": "계정을 새로고침하지 못했습니다. 다시 시도해 주세요.",
|
|
783
|
+
"Could not open invoice payment. Try again.": "청구서 결제 화면을 열지 못했습니다. 다시 시도해 주세요.",
|
|
784
|
+
"Invoice opened in your browser.": "브라우저에서 청구서를 열었습니다.",
|
|
785
|
+
"Yearly is {yearly} a year, {savings} less than twelve monthly payments of {monthly} ({twelve}).": "연간 요금은 연 {yearly}로, 월 {monthly}씩 12번 내는 금액({twelve})보다 {savings} 저렴합니다.",
|
|
786
|
+
"The total changed since you reviewed it. Review it again.": "검토한 이후 총액이 변경되었습니다. 다시 검토해 주세요.",
|
|
787
|
+
"This total has expired. Review it again.": "이 총액은 만료되었습니다. 다시 검토해 주세요.",
|
|
788
|
+
"This review is no longer valid. Review the switch again.": "이 검토는 더 이상 유효하지 않습니다. 전환을 다시 검토해 주세요.",
|
|
789
|
+
"Your switch is already going through. Refresh in a moment.": "전환이 이미 진행 중입니다. 잠시 후 새로고침해 주세요.",
|
|
790
|
+
"Your switch to yearly is waiting for its payment.": "연간 요금 전환이 결제를 기다리고 있습니다.",
|
|
791
|
+
"Yearly billing can't be set up for this plan here. Your plan is unchanged.": "이 요금제는 여기서 연간 결제를 설정할 수 없습니다. 요금제는 변경되지 않았습니다.",
|
|
792
|
+
"The switch didn't go through and your plan is unchanged. Try again in a minute.": "전환이 완료되지 않았으며 요금제는 변경되지 않았습니다. 잠시 후 다시 시도해 주세요.",
|
|
793
|
+
"We couldn't confirm the switch. Refresh your account before trying again.": "전환을 확인하지 못했습니다. 다시 시도하기 전에 계정을 새로고침해 주세요.",
|
|
794
|
+
"Couldn't work out the yearly total. Try again in a minute.": "연간 총액을 계산하지 못했습니다. 잠시 후 다시 시도해 주세요.",
|
|
795
|
+
"Yearly Pro, today to {date}": "연간 Pro, 오늘부터 {date}까지",
|
|
796
|
+
"Credit for the rest of this month": "이번 달 남은 기간 크레딧",
|
|
797
|
+
"Tax": "세금",
|
|
798
|
+
"Account credit": "계정 크레딧",
|
|
799
|
+
"Due today": "오늘 결제 금액",
|
|
800
|
+
"Then {amount} a year plus tax, renewing {date}.": "이후 연 {amount}(세금 별도), {date}에 갱신됩니다.",
|
|
801
|
+
"Then {amount} a year, renewing {date}.": "이후 연 {amount}, {date}에 갱신됩니다.",
|
|
802
|
+
"Your switch to yearly needs the payment confirmed. You stay on monthly billing until it is paid.": "연간 요금 전환에는 결제 확인이 필요합니다. 결제될 때까지 월간 결제가 유지됩니다.",
|
|
803
|
+
"Unpaid by {date}, the switch is dropped.": "{date}까지 결제되지 않으면 전환이 취소됩니다.",
|
|
804
|
+
"Your payment is processing. You move to yearly billing once it clears.": "결제를 처리하고 있습니다. 완료되면 연간 결제로 전환됩니다.",
|
|
805
|
+
"You're on yearly billing.": "연간 결제로 전환되었습니다.",
|
|
806
|
+
"Paid {amount} today.": "오늘 {amount}를 결제했습니다.",
|
|
807
|
+
"Renews {date} at {amount}.": "{date}에 {amount}로 갱신됩니다.",
|
|
808
|
+
"Review Yearly": "연간 요금 검토",
|
|
809
|
+
"Switch to yearly billing": "연간 결제로 전환",
|
|
810
|
+
"Your saved payment method is charged today, and your plan stays monthly until it is paid.": "저장된 결제 수단으로 오늘 청구되며, 결제될 때까지 요금제는 월간으로 유지됩니다.",
|
|
811
|
+
"Switching...": "전환 중...",
|
|
812
|
+
"Pay {amount} and Switch": "{amount} 결제하고 전환",
|
|
813
|
+
"Switch to Yearly": "연간으로 전환",
|
|
814
|
+
"Not Now": "나중에",
|
|
815
|
+
"Confirm Payment": "결제 확인",
|
|
777
816
|
"Upgrade to Pro": "Pro로 업그레이드",
|
|
778
817
|
"Change Password": "비밀번호 변경",
|
|
779
818
|
"Delete Account": "계정 삭제",
|
package/src/i18n/zh-cn.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const zhCN: Record<string, string> = {
|
|
|
17
17
|
"Linked to {source}": "已链接到 {source}",
|
|
18
18
|
"Link to {source}": "链接到 {source}",
|
|
19
19
|
"Unlink from {source}": "取消链接 {source}",
|
|
20
|
+
"Unlinked": "已取消链接",
|
|
20
21
|
"Working…": "处理中…",
|
|
21
22
|
"Searching…": "搜索中…",
|
|
22
23
|
"Loading...": "加载中...",
|
|
@@ -697,6 +698,7 @@ export const zhCN: Record<string, string> = {
|
|
|
697
698
|
"Pro trial · {days}d left": "Pro 试用 · 剩余 {days} 天",
|
|
698
699
|
"{delay} delayed": "延迟 {delay}",
|
|
699
700
|
"{delay} delayed · try Pro live": "延迟 {delay} · 试用 Pro 实时数据",
|
|
701
|
+
"Stock quotes are {minutes} min delayed without Pro.": "未开通 Pro 时,股票行情延迟 {minutes} 分钟。",
|
|
700
702
|
"Pro trial {days}d": "Pro 试用 {days} 天",
|
|
701
703
|
"Pro trial — ends {date}": "Pro 试用 — {date} 结束",
|
|
702
704
|
"delayed": "延迟",
|
|
@@ -776,6 +778,43 @@ export const zhCN: Record<string, string> = {
|
|
|
776
778
|
"Status": "状态",
|
|
777
779
|
"Manage Pro": "管理 Pro",
|
|
778
780
|
"Opening...": "正在打开...",
|
|
781
|
+
"Payment": "付款",
|
|
782
|
+
"Pay invoice": "支付账单",
|
|
783
|
+
"Your Pro payment did not go through.": "Pro 付款未成功。",
|
|
784
|
+
"Could not refresh your account. Try again.": "无法刷新账户,请重试。",
|
|
785
|
+
"Could not open invoice payment. Try again.": "无法打开账单付款页面,请重试。",
|
|
786
|
+
"Invoice opened in your browser.": "已在浏览器中打开账单。",
|
|
787
|
+
"Yearly is {yearly} a year, {savings} less than twelve monthly payments of {monthly} ({twelve}).": "年付为每年 {yearly},比按月付款 12 次(每次 {monthly},共 {twelve})少 {savings}。",
|
|
788
|
+
"The total changed since you reviewed it. Review it again.": "查看后总额已变化。请重新查看。",
|
|
789
|
+
"This total has expired. Review it again.": "此总额已过期。请重新查看。",
|
|
790
|
+
"This review is no longer valid. Review the switch again.": "此确认已失效。请重新查看切换。",
|
|
791
|
+
"Your switch is already going through. Refresh in a moment.": "切换正在处理中。请稍后刷新。",
|
|
792
|
+
"Your switch to yearly is waiting for its payment.": "年付切换正在等待付款。",
|
|
793
|
+
"Yearly billing can't be set up for this plan here. Your plan is unchanged.": "无法在此为该方案设置年付。方案未变。",
|
|
794
|
+
"The switch didn't go through and your plan is unchanged. Try again in a minute.": "切换未成功,方案未变。请一分钟后重试。",
|
|
795
|
+
"We couldn't confirm the switch. Refresh your account before trying again.": "无法确认切换。请先刷新账户再重试。",
|
|
796
|
+
"Couldn't work out the yearly total. Try again in a minute.": "无法计算年付总额。请一分钟后重试。",
|
|
797
|
+
"Yearly Pro, today to {date}": "年付 Pro,今天至 {date}",
|
|
798
|
+
"Credit for the rest of this month": "本月剩余时间的抵扣",
|
|
799
|
+
"Tax": "税费",
|
|
800
|
+
"Account credit": "账户余额",
|
|
801
|
+
"Due today": "今日应付",
|
|
802
|
+
"Then {amount} a year plus tax, renewing {date}.": "之后每年 {amount}(另加税费),于 {date} 续订。",
|
|
803
|
+
"Then {amount} a year, renewing {date}.": "之后每年 {amount},于 {date} 续订。",
|
|
804
|
+
"Your switch to yearly needs the payment confirmed. You stay on monthly billing until it is paid.": "年付切换需要确认付款。付款完成前仍按月计费。",
|
|
805
|
+
"Unpaid by {date}, the switch is dropped.": "如在 {date} 前未付款,切换将被取消。",
|
|
806
|
+
"Your payment is processing. You move to yearly billing once it clears.": "付款正在处理中。完成后将改为年付。",
|
|
807
|
+
"You're on yearly billing.": "已改为年付。",
|
|
808
|
+
"Paid {amount} today.": "今日已付 {amount}。",
|
|
809
|
+
"Renews {date} at {amount}.": "将于 {date} 以 {amount} 续订。",
|
|
810
|
+
"Review Yearly": "查看年付",
|
|
811
|
+
"Switch to yearly billing": "切换为年付",
|
|
812
|
+
"Your saved payment method is charged today, and your plan stays monthly until it is paid.": "今天将从已保存的付款方式扣款,付款完成前方案仍按月计费。",
|
|
813
|
+
"Switching...": "正在切换...",
|
|
814
|
+
"Pay {amount} and Switch": "支付 {amount} 并切换",
|
|
815
|
+
"Switch to Yearly": "改为年付",
|
|
816
|
+
"Not Now": "暂不",
|
|
817
|
+
"Confirm Payment": "确认付款",
|
|
779
818
|
"Upgrade to Pro": "升级到 Pro",
|
|
780
819
|
"Change Password": "修改密码",
|
|
781
820
|
"Delete Account": "删除账户",
|
package/src/i18n/zh-tw.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const zhTW: Record<string, string> = {
|
|
|
17
17
|
"Linked to {source}": "已連結至 {source}",
|
|
18
18
|
"Link to {source}": "連結至 {source}",
|
|
19
19
|
"Unlink from {source}": "取消連結 {source}",
|
|
20
|
+
"Unlinked": "已取消連結",
|
|
20
21
|
"Working…": "處理中…",
|
|
21
22
|
"Searching…": "搜尋中…",
|
|
22
23
|
"Loading...": "載入中...",
|
|
@@ -697,6 +698,7 @@ export const zhTW: Record<string, string> = {
|
|
|
697
698
|
"Pro trial · {days}d left": "Pro 試用 · 剩餘 {days} 天",
|
|
698
699
|
"{delay} delayed": "延遲 {delay}",
|
|
699
700
|
"{delay} delayed · try Pro live": "延遲 {delay} · 試用 Pro 即時資料",
|
|
701
|
+
"Stock quotes are {minutes} min delayed without Pro.": "未開通 Pro 時,股票報價延遲 {minutes} 分鐘。",
|
|
700
702
|
"Pro trial {days}d": "Pro 試用 {days} 天",
|
|
701
703
|
"Pro trial — ends {date}": "Pro 試用 — {date} 結束",
|
|
702
704
|
"delayed": "延遲",
|
|
@@ -776,6 +778,43 @@ export const zhTW: Record<string, string> = {
|
|
|
776
778
|
"Status": "狀態",
|
|
777
779
|
"Manage Pro": "管理 Pro",
|
|
778
780
|
"Opening...": "正在開啟...",
|
|
781
|
+
"Payment": "付款",
|
|
782
|
+
"Pay invoice": "支付帳單",
|
|
783
|
+
"Your Pro payment did not go through.": "Pro 付款未成功。",
|
|
784
|
+
"Could not refresh your account. Try again.": "無法重新整理帳戶,請重試。",
|
|
785
|
+
"Could not open invoice payment. Try again.": "無法開啟帳單付款頁面,請重試。",
|
|
786
|
+
"Invoice opened in your browser.": "已在瀏覽器中開啟帳單。",
|
|
787
|
+
"Yearly is {yearly} a year, {savings} less than twelve monthly payments of {monthly} ({twelve}).": "年繳為每年 {yearly},比按月付款 12 次(每次 {monthly},共 {twelve})少 {savings}。",
|
|
788
|
+
"The total changed since you reviewed it. Review it again.": "檢視後總額已變更。請重新檢視。",
|
|
789
|
+
"This total has expired. Review it again.": "此總額已過期。請重新檢視。",
|
|
790
|
+
"This review is no longer valid. Review the switch again.": "此確認已失效。請重新檢視切換。",
|
|
791
|
+
"Your switch is already going through. Refresh in a moment.": "切換正在處理中。請稍後重新整理。",
|
|
792
|
+
"Your switch to yearly is waiting for its payment.": "年繳切換正在等待付款。",
|
|
793
|
+
"Yearly billing can't be set up for this plan here. Your plan is unchanged.": "無法在此為此方案設定年繳。方案未變更。",
|
|
794
|
+
"The switch didn't go through and your plan is unchanged. Try again in a minute.": "切換未成功,方案未變更。請一分鐘後再試。",
|
|
795
|
+
"We couldn't confirm the switch. Refresh your account before trying again.": "無法確認切換。請先重新整理帳戶再試。",
|
|
796
|
+
"Couldn't work out the yearly total. Try again in a minute.": "無法計算年繳總額。請一分鐘後再試。",
|
|
797
|
+
"Yearly Pro, today to {date}": "年繳 Pro,今天至 {date}",
|
|
798
|
+
"Credit for the rest of this month": "本月剩餘期間的折抵",
|
|
799
|
+
"Tax": "稅金",
|
|
800
|
+
"Account credit": "帳戶餘額",
|
|
801
|
+
"Due today": "今日應付",
|
|
802
|
+
"Then {amount} a year plus tax, renewing {date}.": "之後每年 {amount}(另加稅金),於 {date} 續訂。",
|
|
803
|
+
"Then {amount} a year, renewing {date}.": "之後每年 {amount},於 {date} 續訂。",
|
|
804
|
+
"Your switch to yearly needs the payment confirmed. You stay on monthly billing until it is paid.": "年繳切換需要確認付款。付款完成前仍按月計費。",
|
|
805
|
+
"Unpaid by {date}, the switch is dropped.": "若在 {date} 前未付款,切換將被取消。",
|
|
806
|
+
"Your payment is processing. You move to yearly billing once it clears.": "付款正在處理中。完成後將改為年繳。",
|
|
807
|
+
"You're on yearly billing.": "已改為年繳。",
|
|
808
|
+
"Paid {amount} today.": "今日已付 {amount}。",
|
|
809
|
+
"Renews {date} at {amount}.": "將於 {date} 以 {amount} 續訂。",
|
|
810
|
+
"Review Yearly": "檢視年繳",
|
|
811
|
+
"Switch to yearly billing": "切換為年繳",
|
|
812
|
+
"Your saved payment method is charged today, and your plan stays monthly until it is paid.": "今天將從已儲存的付款方式扣款,付款完成前方案仍按月計費。",
|
|
813
|
+
"Switching...": "正在切換...",
|
|
814
|
+
"Pay {amount} and Switch": "支付 {amount} 並切換",
|
|
815
|
+
"Switch to Yearly": "改為年繳",
|
|
816
|
+
"Not Now": "暫不",
|
|
817
|
+
"Confirm Payment": "確認付款",
|
|
779
818
|
"Upgrade to Pro": "升級到 Pro",
|
|
780
819
|
"Change Password": "修改密碼",
|
|
781
820
|
"Delete Account": "刪除帳戶",
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
// Only types and the layout model: the public share page bundles this module, and the pane
|
|
2
|
+
// manager and ticker navigation would bring the app (and its signed-in clients) in with it.
|
|
3
|
+
import {
|
|
4
|
+
findPaneInstance,
|
|
5
|
+
getPlacedPaneInstanceIds,
|
|
6
|
+
TICKER_RESEARCH_PANE_ID,
|
|
7
|
+
type LayoutConfig,
|
|
8
|
+
type PaneInstanceConfig,
|
|
9
|
+
type PaneUnlinkedFrom,
|
|
10
|
+
} from "../types/config";
|
|
2
11
|
import type { BrokerContractRef } from "../types/instrument";
|
|
3
12
|
|
|
4
13
|
const PANE_TITLE_MNEMONIC = /^([A-Z][A-Z0-9]{0,7})(?=\s|$)/;
|
|
@@ -25,24 +34,152 @@ export function pinnedTitle(instance: PaneInstanceConfig, pinned: string): strin
|
|
|
25
34
|
return !rest || TITLE_TICKER.test(rest) ? `${mnemonic} ${pinned}` : null;
|
|
26
35
|
}
|
|
27
36
|
|
|
37
|
+
/** True when `fromInstanceId`'s follow chain reaches `targetInstanceId`. */
|
|
38
|
+
export function followBindingReaches(
|
|
39
|
+
layout: LayoutConfig,
|
|
40
|
+
fromInstanceId: string,
|
|
41
|
+
targetInstanceId: string,
|
|
42
|
+
seen = new Set<string>(),
|
|
43
|
+
): boolean {
|
|
44
|
+
if (seen.has(fromInstanceId)) return false;
|
|
45
|
+
seen.add(fromInstanceId);
|
|
46
|
+
const instance = findPaneInstance(layout, fromInstanceId);
|
|
47
|
+
if (instance?.binding?.kind !== "follow") return false;
|
|
48
|
+
const next = instance.binding.sourceInstanceId;
|
|
49
|
+
return next === targetInstanceId || followBindingReaches(layout, next, targetInstanceId, seen);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Who cut a follower's link, and the kind of pane it followed (`PaneUnlinkedFrom`). */
|
|
53
|
+
interface PaneUnlink {
|
|
54
|
+
/** The app, not the user: the source closed or left the layout, or another research pane took it. */
|
|
55
|
+
auto?: boolean;
|
|
56
|
+
sourcePaneId?: string | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** What a pin that cuts `instance`'s link records of it; none when it follows nothing. */
|
|
60
|
+
function unlinkedFrom(instance: PaneInstanceConfig, unlink: PaneUnlink): PaneUnlinkedFrom | undefined {
|
|
61
|
+
if (instance.binding?.kind !== "follow") return undefined;
|
|
62
|
+
return {
|
|
63
|
+
instanceId: instance.binding.sourceInstanceId,
|
|
64
|
+
...(unlink.sourcePaneId ? { paneId: unlink.sourcePaneId } : {}),
|
|
65
|
+
...(unlink.auto ? { auto: true as const } : {}),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* What a ticker the user picks for `instance` (ticker search, a ticker link in it) records: the
|
|
71
|
+
* link that takes it off, or the one an earlier pin cut, now the user's own pin. A pane the app
|
|
72
|
+
* pinned stops following its source back once the user has chosen what it shows.
|
|
73
|
+
*/
|
|
74
|
+
export function userUnlinkedFrom(instance: PaneInstanceConfig, layout: LayoutConfig): PaneUnlinkedFrom | undefined {
|
|
75
|
+
if (instance.binding?.kind === "follow") {
|
|
76
|
+
return unlinkedFrom(instance, { sourcePaneId: findPaneInstance(layout, instance.binding.sourceInstanceId)?.paneId });
|
|
77
|
+
}
|
|
78
|
+
const earlier = instance.unlinkedFrom;
|
|
79
|
+
return earlier && { instanceId: earlier.instanceId, ...(earlier.paneId ? { paneId: earlier.paneId } : {}) };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** A follower its link left, which its title marks until it follows a pane again. */
|
|
83
|
+
export function isUnlinkedFollower(instance: PaneInstanceConfig): boolean {
|
|
84
|
+
return !!instance.unlinkedFrom && instance.binding?.kind !== "follow";
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** `instance` following `sourceInstanceId`, with no record of an older link. */
|
|
88
|
+
export function linkFollower(instance: PaneInstanceConfig, sourceInstanceId: string): PaneInstanceConfig {
|
|
89
|
+
const { unlinkedFrom: _unlinkedFrom, ...rest } = instance;
|
|
90
|
+
return { ...rest, binding: { kind: "follow", sourceInstanceId } };
|
|
91
|
+
}
|
|
92
|
+
|
|
28
93
|
/**
|
|
29
94
|
* Pins a follower on the symbol it shows (unlink, a closed source, a single-pane share), or
|
|
30
95
|
* unbinds it when nothing resolved, retitled to name that symbol. Ticker Research computes its
|
|
31
|
-
* own title and is never retitled.
|
|
96
|
+
* own title and is never retitled. `unlink` records the link it cuts (`PaneUnlinkedFrom`); a
|
|
97
|
+
* shared pane leaves without one.
|
|
32
98
|
*/
|
|
33
99
|
export function pinFollowingPane(
|
|
34
100
|
instance: PaneInstanceConfig,
|
|
35
101
|
symbol: string | null | undefined,
|
|
36
102
|
instrument?: BrokerContractRef | null,
|
|
103
|
+
unlink?: PaneUnlink,
|
|
37
104
|
): PaneInstanceConfig {
|
|
105
|
+
const left = unlink ? unlinkedFrom(instance, unlink) : undefined;
|
|
106
|
+
const cut = left ? { ...instance, unlinkedFrom: left } : instance;
|
|
38
107
|
const pinned = symbol?.trim();
|
|
39
|
-
if (!pinned) return { ...
|
|
108
|
+
if (!pinned) return { ...cut, binding: { kind: "none" } };
|
|
40
109
|
const title = pinnedTitle(instance, pinned);
|
|
41
110
|
return {
|
|
42
|
-
...
|
|
111
|
+
...cut,
|
|
43
112
|
// Only a broker contract is worth keeping: a derived public `null` would stop the pinned pane
|
|
44
113
|
// matching `T AAPL` reuse, which tells null and unspecified contracts apart.
|
|
45
114
|
binding: { kind: "fixed", symbol: pinned, ...(instrument ? { instrument } : {}) },
|
|
46
115
|
...(title ? { title } : {}),
|
|
47
116
|
};
|
|
48
117
|
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* `normalizePaneLayout`'s `pinOrphan` for the app: a follower whose source is gone is pinned
|
|
121
|
+
* by the app, naming the kind of pane it followed from `previous`, the layout before the change.
|
|
122
|
+
*/
|
|
123
|
+
export function pinOrphanedFollower(
|
|
124
|
+
previous: LayoutConfig,
|
|
125
|
+
): (instance: PaneInstanceConfig, symbol: string | null) => PaneInstanceConfig {
|
|
126
|
+
return (instance, symbol) => {
|
|
127
|
+
const sourceId = instance.binding?.kind === "follow" ? instance.binding.sourceInstanceId : null;
|
|
128
|
+
const sourcePaneId = sourceId ? findPaneInstance(previous, sourceId)?.paneId : undefined;
|
|
129
|
+
return pinFollowingPane(instance, symbol, undefined, { auto: true, sourcePaneId });
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A research pane the app pinned (`PaneUnlinkedFrom.auto`) follows again once a source is free
|
|
135
|
+
* for it in `layout`: the pane it followed, back with no research pane following it (the one
|
|
136
|
+
* that took it closed, or moved on), or, while that pane is gone, one of its kind that `layout`
|
|
137
|
+
* adds to `previous` with none (a portfolio closed and opened again). A list that was already
|
|
138
|
+
* there when the link was cut does not take the pane away from its ticker. A pane the user
|
|
139
|
+
* unlinked, or gave a ticker of its own, stays pinned.
|
|
140
|
+
*/
|
|
141
|
+
export function relinkPinnedResearchPanes(layout: LayoutConfig, previous: LayoutConfig): LayoutConfig {
|
|
142
|
+
if (!layout.instances.some((pane) => pane.unlinkedFrom?.auto)) return layout;
|
|
143
|
+
// Relinking moves no pane, so what is placed stays as `layout` has it.
|
|
144
|
+
const placed = new Set(getPlacedPaneInstanceIds(layout));
|
|
145
|
+
let next = layout;
|
|
146
|
+
for (const pane of layout.instances) {
|
|
147
|
+
const from = pane.unlinkedFrom;
|
|
148
|
+
if (
|
|
149
|
+
pane.paneId !== TICKER_RESEARCH_PANE_ID
|
|
150
|
+
|| !from?.auto
|
|
151
|
+
|| pane.binding?.kind === "follow"
|
|
152
|
+
|| !placed.has(pane.instanceId)
|
|
153
|
+
) continue;
|
|
154
|
+
const hasResearch = (sourceId: string) => next.instances.some((instance) => (
|
|
155
|
+
instance.paneId === TICKER_RESEARCH_PANE_ID
|
|
156
|
+
&& instance.binding?.kind === "follow"
|
|
157
|
+
&& instance.binding.sourceInstanceId === sourceId
|
|
158
|
+
&& placed.has(instance.instanceId)
|
|
159
|
+
));
|
|
160
|
+
const free = (candidate: PaneInstanceConfig) => (
|
|
161
|
+
candidate.instanceId !== pane.instanceId
|
|
162
|
+
&& placed.has(candidate.instanceId)
|
|
163
|
+
&& !hasResearch(candidate.instanceId)
|
|
164
|
+
&& !followBindingReaches(next, candidate.instanceId, pane.instanceId)
|
|
165
|
+
);
|
|
166
|
+
const original = findPaneInstance(next, from.instanceId);
|
|
167
|
+
const source = original
|
|
168
|
+
? (free(original) ? original : undefined)
|
|
169
|
+
: from.paneId
|
|
170
|
+
? next.instances.find((candidate) => (
|
|
171
|
+
candidate.paneId === from.paneId
|
|
172
|
+
&& !findPaneInstance(previous, candidate.instanceId)
|
|
173
|
+
&& free(candidate)
|
|
174
|
+
))
|
|
175
|
+
: undefined;
|
|
176
|
+
if (!source) continue;
|
|
177
|
+
next = {
|
|
178
|
+
...next,
|
|
179
|
+
instances: next.instances.map((instance) => (
|
|
180
|
+
instance.instanceId === pane.instanceId ? linkFollower(instance, source.instanceId) : instance
|
|
181
|
+
)),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return next;
|
|
185
|
+
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
type PaneMovedFrom,
|
|
12
12
|
type PaneMovedLink,
|
|
13
13
|
} from "../types/config";
|
|
14
|
-
import {
|
|
14
|
+
import { linkFollower, pinOrphanedFollower } from "./pane-follow";
|
|
15
15
|
import { findDockLeaf, getNodeAtPath, getRepresentativeLeafId } from "./pane-manager/dock-tree";
|
|
16
16
|
import { dockPane, insertAtRootEdge, resizeSplitAtPath } from "./pane-manager/docking";
|
|
17
17
|
import { floatAtRect } from "./pane-manager/floating-actions";
|
|
@@ -68,20 +68,23 @@ function movedLink(before: PaneInstanceConfig, after: PaneInstanceConfig, symbol
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Pins every pane whose link source is gone on the ticker it showed, the way
|
|
71
|
-
* closing that source does, and says which links were cut.
|
|
71
|
+
* closing that source does, and says which links were cut. `previous` is the
|
|
72
|
+
* layout the source left.
|
|
72
73
|
*/
|
|
73
74
|
function pinOrphanedFollowers(
|
|
74
75
|
layout: LayoutConfig,
|
|
76
|
+
previous: LayoutConfig,
|
|
75
77
|
resolveSymbol: ResolvePaneSymbol,
|
|
76
78
|
): { layout: LayoutConfig; links: PaneMovedLink[] } {
|
|
77
79
|
const ids = new Set(layout.instances.map((instance) => instance.instanceId));
|
|
80
|
+
const pin = pinOrphanedFollower(previous);
|
|
78
81
|
const links: PaneMovedLink[] = [];
|
|
79
82
|
let changed = false;
|
|
80
83
|
const instances = layout.instances.map((instance) => {
|
|
81
84
|
if (instance.binding?.kind !== "follow" || ids.has(instance.binding.sourceInstanceId)) return instance;
|
|
82
85
|
changed = true;
|
|
83
86
|
const symbol = resolveSymbol(instance.instanceId)?.trim() || null;
|
|
84
|
-
const pinned =
|
|
87
|
+
const pinned = pin(instance, symbol);
|
|
85
88
|
if (symbol) links.push(movedLink(instance, pinned, symbol));
|
|
86
89
|
return pinned;
|
|
87
90
|
});
|
|
@@ -132,14 +135,14 @@ export function movePaneToOwnLayout(
|
|
|
132
135
|
const floating: FloatingPlacementMemory | undefined = floatingEntry
|
|
133
136
|
? { x: floatingEntry.x, y: floatingEntry.y, width: floatingEntry.width, height: floatingEntry.height }
|
|
134
137
|
: undefined;
|
|
135
|
-
const left = pinOrphanedFollowers(removePane(layout, paneId), resolveSymbol);
|
|
138
|
+
const left = pinOrphanedFollowers(removePane(layout, paneId), layout, resolveSymbol);
|
|
136
139
|
|
|
137
140
|
// Alone in its layout the pane has nothing to follow, so it keeps the ticker it shows.
|
|
138
141
|
let moved: PaneInstanceConfig = instance;
|
|
139
142
|
const links: PaneMovedLink[] = [];
|
|
140
143
|
if (instance.binding?.kind === "follow") {
|
|
141
144
|
const symbol = resolveSymbol(paneId)?.trim() || null;
|
|
142
|
-
moved =
|
|
145
|
+
moved = pinOrphanedFollower(layout)(instance, symbol);
|
|
143
146
|
if (symbol) links.push(movedLink(instance, moved, symbol));
|
|
144
147
|
}
|
|
145
148
|
links.push(...left.links);
|
|
@@ -223,7 +226,7 @@ function relink(layout: LayoutConfig, links: readonly PaneMovedLink[]): LayoutCo
|
|
|
223
226
|
...next,
|
|
224
227
|
instances: next.instances.map((entry) => (
|
|
225
228
|
entry.instanceId === link.instanceId
|
|
226
|
-
? { ...entry,
|
|
229
|
+
? { ...linkFollower(entry, link.sourceInstanceId), ...("title" in link ? { title: link.title } : {}) }
|
|
227
230
|
: entry
|
|
228
231
|
)),
|
|
229
232
|
};
|
|
@@ -246,7 +249,7 @@ export function movePaneBack(
|
|
|
246
249
|
const instance = findPaneInstance(layout, paneId);
|
|
247
250
|
const movedFrom = instance?.movedFrom;
|
|
248
251
|
if (!instance || !movedFrom) return null;
|
|
249
|
-
const left = pinOrphanedFollowers(removePane(layout, paneId), resolveSymbol).layout;
|
|
252
|
+
const left = pinOrphanedFollowers(removePane(layout, paneId), layout, resolveSymbol).layout;
|
|
250
253
|
const { movedFrom: _movedFrom, ...returning } = instance;
|
|
251
254
|
// A copy an undo put back in the target gives way to the pane coming home.
|
|
252
255
|
const base = findPaneInstance(target, paneId) ? removePane(target, paneId) : target;
|