@gloom-sh/terminal 0.20.9 → 0.20.11
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 +1 -1
- package/patches/@opentui%2Fcore@0.3.2.patch +16 -0
- package/src/api-client/auth.ts +6 -0
- package/src/api-client/data.ts +1 -0
- package/src/api-client/earnings.ts +15 -0
- package/src/api-client/index.ts +14 -3
- package/src/api-client/socket-connection.ts +355 -0
- package/src/api-client/socket-features.ts +75 -0
- package/src/api-client/socket-frames.ts +161 -0
- package/src/api-client/socket-listeners.ts +207 -0
- package/src/api-client/socket-quotes.ts +332 -0
- package/src/api-client/socket.ts +150 -983
- package/src/api-client/types/account.ts +10 -0
- package/src/api-client/types/billing.ts +10 -0
- package/src/api-client/types/econ.ts +19 -7
- package/src/api-client/types/market.ts +7 -0
- package/src/api-client/types/screener.ts +2 -0
- package/src/brokers/signed-in/adapter.ts +19 -5
- package/src/brokers/signed-in/client.ts +13 -1
- package/src/brokers/signed-in/sign-in-dialog.tsx +33 -9
- package/src/cli/commands/market.ts +18 -8
- package/src/cli/commands/overview.ts +26 -7
- package/src/cli/commands/ticker.ts +40 -15
- package/src/cli/desktop-pane-shot.ts +39 -0
- package/src/cli/errors.ts +20 -3
- package/src/cli/fx-pair.ts +11 -2
- package/src/cli/history-rows.ts +34 -3
- package/src/cli/index.ts +1 -1
- package/src/cli/listing-arg.ts +51 -13
- package/src/cli/pane-functions/headless.ts +4 -2
- package/src/cli/pane-functions/index.ts +1 -0
- package/src/cli/pane-functions/resolver.ts +2 -1
- package/src/cli/pane-functions/screenshot-assessment.ts +73 -5
- package/src/cli/pane-functions/screenshot-types.ts +4 -0
- package/src/components/chart/composite/chart-layout.ts +7 -4
- package/src/components/chart/composite/composite-chart.tsx +6 -16
- package/src/components/chart/composite/toolbar.tsx +258 -82
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +5 -6
- package/src/components/chart/native/kitty/manager.ts +2 -0
- package/src/components/chart/native/surface/manager.ts +211 -11
- package/src/components/command-bar/list/model.ts +13 -0
- package/src/components/command-bar/panel/index.tsx +2 -13
- package/src/components/command-bar/panel/layout.ts +1 -7
- package/src/components/command-bar/panel/runtime.ts +0 -1
- package/src/components/command-bar/panel/types.ts +0 -2
- package/src/components/command-bar/routes/ticker-search/actions.ts +2 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +15 -8
- package/src/components/command-bar/surface/index.tsx +10 -5
- package/src/components/command-bar/workflow/alert.ts +21 -7
- package/src/components/data-table/column-menu.tsx +89 -0
- package/src/components/data-table/sort-menu.tsx +9 -2
- package/src/components/data-table/table-pane.ts +3 -1
- package/src/components/data-table/view.tsx +33 -6
- package/src/components/form-modal/content.tsx +10 -0
- package/src/components/index.ts +1 -1
- package/src/components/layout/pane/footer/index.tsx +25 -11
- package/src/components/layout/pane/footer/model.ts +88 -21
- package/src/components/layout/pane/sidebar.tsx +125 -15
- package/src/components/layout/shell/active-drag.ts +18 -13
- package/src/components/layout/shell/drag/magnets.ts +34 -18
- package/src/components/metric-treemap/heat-surface.tsx +2 -1
- package/src/components/metric-treemap/index.tsx +3 -2
- package/src/components/ticker/list-table-view.tsx +5 -0
- package/src/components/ui/confirm-dialog.tsx +253 -7
- package/src/components/ui/data-table/column-order.ts +180 -0
- package/src/components/ui/data-table/index.tsx +13 -2
- package/src/components/ui/data-table/opentui/index.tsx +267 -23
- package/src/components/ui/data-table/opentui/model.ts +43 -4
- package/src/components/ui/data-table/types.ts +56 -0
- package/src/components/ui/data-table/use-column-order.ts +135 -0
- package/src/components/ui/index.ts +1 -1
- package/src/components/ui/list-view.tsx +4 -3
- package/src/components/ui/status.tsx +9 -6
- package/src/components/ui/table-layout.ts +120 -0
- package/src/docs/snapshot.json +39 -2
- package/src/i18n/es.ts +14 -0
- package/src/i18n/ja.ts +14 -0
- package/src/i18n/ko.ts +14 -0
- package/src/i18n/zh-cn.ts +14 -0
- package/src/i18n/zh-tw.ts +14 -0
- package/src/market-data/coordinator/index.ts +4 -3
- package/src/market-data/coordinator/quotes.ts +12 -4
- package/src/market-data/fx-closes.ts +14 -2
- package/src/market-data/market/change-basis.ts +35 -1
- package/src/market-data/market/status.ts +37 -0
- package/src/market-data/performance.ts +4 -1
- package/src/market-data/quotes/freshness.ts +12 -0
- package/src/market-data/quotes/live-valuation.ts +26 -3
- package/src/market-data/quotes/regular-session-valuation.ts +1 -1
- package/src/market-data/realized-volatility.ts +3 -0
- package/src/market-data/us-bond-market.ts +115 -0
- package/src/plugins/builtin/account-management/invite-row.tsx +54 -0
- package/src/plugins/builtin/account-management/keyboard.ts +3 -0
- package/src/plugins/builtin/account-management/model.ts +1 -0
- package/src/plugins/builtin/account-management/pane.tsx +51 -5
- package/src/plugins/builtin/account-management/trial-cancel.ts +32 -7
- package/src/plugins/builtin/broker-manager/detail.tsx +5 -3
- package/src/plugins/builtin/broker-manager/index.tsx +6 -6
- package/src/plugins/builtin/broker-manager/model.ts +15 -6
- package/src/plugins/builtin/broker-manager/pane-actions.tsx +11 -4
- package/src/plugins/builtin/broker-manager/sign-in-end.ts +50 -19
- package/src/plugins/builtin/broker-manager/table.ts +10 -4
- package/src/plugins/builtin/chat/sidebar.tsx +33 -16
- package/src/plugins/builtin/cloud/askg/pane-session.ts +94 -0
- package/src/plugins/builtin/cloud/askg/pane.tsx +40 -83
- package/src/plugins/builtin/cloud/askg/tool-timeline.tsx +2 -0
- package/src/plugins/builtin/congress-trades/pane.tsx +8 -2
- package/src/plugins/builtin/correlation/compute.ts +4 -3
- package/src/plugins/builtin/earnings/board-model.ts +33 -0
- package/src/plugins/builtin/earnings/board-table.ts +50 -11
- package/src/plugins/builtin/earnings/board.tsx +29 -13
- package/src/plugins/builtin/earnings/calendar.tsx +15 -3
- package/src/plugins/builtin/earnings/client.ts +4 -1
- package/src/plugins/builtin/earnings/headless.ts +27 -14
- package/src/plugins/builtin/econ/calendar-source.ts +3 -0
- package/src/plugins/builtin/equity-screener/live.ts +74 -18
- package/src/plugins/builtin/equity-screener/model.ts +19 -4
- package/src/plugins/builtin/equity-screener/pane.tsx +19 -14
- package/src/plugins/builtin/equity-screener/refresh-anchor.ts +45 -0
- package/src/plugins/builtin/equity-screener/results.ts +22 -2
- package/src/plugins/builtin/equity-screener/screen-check.ts +9 -3
- package/src/plugins/builtin/futures/index.tsx +15 -1
- package/src/plugins/builtin/futures/table.tsx +1 -1
- package/src/plugins/builtin/fx-matrix/index.tsx +2 -0
- package/src/plugins/builtin/help/index.tsx +1 -1
- package/src/plugins/builtin/holders/pane.tsx +30 -20
- package/src/plugins/builtin/ipo-calendar/model.ts +3 -3
- package/src/plugins/builtin/iv-history/events.ts +5 -0
- package/src/plugins/builtin/iv-history/headless.ts +19 -12
- package/src/plugins/builtin/kelly-sizer/sections.tsx +2 -0
- package/src/plugins/builtin/macro-day/headless.ts +27 -8
- package/src/plugins/builtin/macro-day/model.ts +17 -4
- package/src/plugins/builtin/macro-day/releases.ts +36 -15
- package/src/plugins/builtin/market-halts/model.ts +3 -2
- package/src/plugins/builtin/market-movers/headless.ts +2 -1
- package/src/plugins/builtin/market-movers/index.tsx +3 -2
- package/src/plugins/builtin/market-movers/model.ts +75 -22
- package/src/plugins/builtin/market-movers/screener.ts +2 -1
- package/src/plugins/builtin/market-movers/table.ts +7 -5
- package/src/plugins/builtin/options/view.tsx +2 -0
- package/src/plugins/builtin/options-scenario/pane.tsx +2 -1
- package/src/plugins/builtin/pe-band/model.ts +4 -0
- package/src/plugins/builtin/perps/cascade-tabs.tsx +2 -1
- package/src/plugins/builtin/portfolio-list/cell-version.ts +4 -4
- package/src/plugins/builtin/portfolio-list/cli/render.ts +9 -4
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +15 -1
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +24 -7
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +40 -11
- package/src/plugins/builtin/portfolio-list/table.tsx +18 -1
- package/src/plugins/builtin/rate-path/pane.tsx +2 -0
- package/src/plugins/builtin/research/analyst-headless.ts +9 -1
- package/src/plugins/builtin/research/analyst-pane.tsx +10 -4
- package/src/plugins/builtin/research/client.ts +25 -1
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +2 -1
- package/src/plugins/builtin/research/event-model.ts +3 -13
- package/src/plugins/builtin/research/event-sources.ts +3 -1
- package/src/plugins/builtin/revenue-breakdown/pane.tsx +2 -0
- package/src/plugins/builtin/reverse-dcf/pane.tsx +2 -1
- package/src/plugins/builtin/seasonality/pane.tsx +2 -1
- package/src/plugins/builtin/short-interest/headless.ts +2 -0
- package/src/plugins/builtin/short-interest/publications-headless.ts +2 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +1 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +2 -0
- package/src/plugins/builtin/ticker-detail/financials/model.ts +28 -6
- package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +26 -9
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +58 -35
- package/src/plugins/builtin/vol-surface/heat-grid.tsx +2 -1
- package/src/plugins/builtin/vol-surface/pane.tsx +2 -1
- package/src/plugins/builtin/world-indices/index.tsx +5 -1
- package/src/plugins/builtin/yield-curve/headless.ts +5 -1
- package/src/plugins/builtin/yield-curve/index.tsx +7 -1
- package/src/portfolio/column-values.ts +47 -14
- package/src/portfolio/return-metrics.ts +4 -2
- package/src/renderers/dom/data-table/column-drag.ts +147 -0
- package/src/renderers/dom/data-table/index.tsx +22 -0
- package/src/renderers/dom/data-table/row.tsx +27 -5
- package/src/renderers/dom/host/image-surface.tsx +19 -9
- package/src/renderers/dom/host/input.tsx +4 -0
- package/src/renderers/dom/styles.css +22 -0
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +23 -1
- package/src/renderers/opentui/chart-surface.tsx +1 -0
- package/src/renderers/opentui/frame-hits.ts +33 -0
- package/src/renderers/opentui/host.tsx +2 -0
- package/src/renderers/opentui/native-surface.ts +14 -21
- package/src/renderers/opentui/test-utils.tsx +3 -0
- package/src/sources/gloomberb-cloud/normalizers.ts +2 -0
- package/src/sources/provider-errors.ts +12 -0
- package/src/sources/provider-router/index.ts +12 -4
- package/src/state/app/context/index.tsx +22 -0
- package/src/state/pane-session.ts +145 -0
- package/src/test-support/app-store.ts +24 -1
- package/src/tickers/search/home-listing.ts +44 -1
- package/src/tickers/search/index.ts +5 -2
- package/src/tickers/search/ranking.ts +7 -7
- package/src/tickers/us-listing.ts +11 -5
- package/src/time-series/base-series.ts +7 -1
- package/src/time-series/fundamentals/current-valuation.ts +8 -0
- package/src/time-series/fundamentals/series.ts +6 -0
- package/src/time-series/live-quotes.ts +3 -9
- package/src/time-series/resolve.ts +1 -0
- package/src/types/financials.ts +20 -0
- package/src/types/headless.ts +9 -0
- package/src/ui/host.tsx +20 -0
- package/src/ui/pointer-drag.ts +11 -2
- package/src/utils/exchanges.ts +13 -8
- package/src/utils/fundamentals.ts +14 -3
- package/src/utils/price-earnings.ts +17 -10
- package/src/utils/price-history-integrity.ts +15 -0
- package/src/utils/reason-codes.ts +79 -0
- package/src/utils/share-multiples.cases.json +1667 -0
- package/src/utils/share-multiples.ts +384 -0
- package/src/utils/untrusted-text.ts +11 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { useCallback, useId, useMemo, useRef } from "react";
|
|
2
|
+
import { findPaneInstance } from "../../../types/config";
|
|
3
|
+
import {
|
|
4
|
+
useAppSelector,
|
|
5
|
+
useOptionalPaneInstanceId,
|
|
6
|
+
useOptionalPaneSettingUpdater,
|
|
7
|
+
} from "../../../state/app/context";
|
|
8
|
+
import { usePaneMenuItems } from "../../layout/pane/footer/registration";
|
|
9
|
+
import {
|
|
10
|
+
COLUMN_ORDER_SETTING,
|
|
11
|
+
defaultColumnOrder,
|
|
12
|
+
moveColumnId,
|
|
13
|
+
orderColumns,
|
|
14
|
+
readColumnOrders,
|
|
15
|
+
rememberColumnOrder,
|
|
16
|
+
rowAnchorColumnCount,
|
|
17
|
+
sameIds,
|
|
18
|
+
} from "./column-order";
|
|
19
|
+
import type { DataTableColumn, DataTableColumnReorder } from "./types";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A pane's column list to write, or undefined where it is the pane's own default
|
|
23
|
+
* list, so the pane's setting goes and columns later added to its defaults still
|
|
24
|
+
* reach it.
|
|
25
|
+
*/
|
|
26
|
+
function listOrDefault(order: string[], defaultOrder: readonly string[] | undefined): string[] | undefined {
|
|
27
|
+
return defaultOrder && sameIds(order, defaultOrder) ? undefined : order;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Joins a remembered order into one string, so the selector's value only changes when the order does. */
|
|
31
|
+
const ID_SEPARATOR = "\u0000";
|
|
32
|
+
|
|
33
|
+
export interface DataTableColumnOrder<C extends DataTableColumn> {
|
|
34
|
+
/** The columns in the order the reader left them. */
|
|
35
|
+
columns: C[];
|
|
36
|
+
/** Moves a column to an index of `columns`; absent where the order is fixed. */
|
|
37
|
+
onColumnMove?: (columnId: string, toIndex: number) => void;
|
|
38
|
+
anchoredColumns: number;
|
|
39
|
+
/** The reader has changed the order: Reset Columns has something to put back. */
|
|
40
|
+
customized: boolean;
|
|
41
|
+
reset: () => void;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A table's columns in the order its pane remembers, the move a header drag
|
|
46
|
+
* makes, and Reset Columns. The order is kept in the pane's settings, so it is
|
|
47
|
+
* saved and synced with the layout, per pane; a pane whose settings already
|
|
48
|
+
* order its columns passes them as `control` and the drag rewrites those
|
|
49
|
+
* instead. With `menu`, Reset Columns goes in the pane menu while the order
|
|
50
|
+
* is the reader's own; `DataTableView` lists it with the table's sort instead.
|
|
51
|
+
*/
|
|
52
|
+
export function useDataTableColumnOrder<C extends DataTableColumn>(
|
|
53
|
+
columns: readonly C[],
|
|
54
|
+
reorder: false | DataTableColumnReorder | undefined,
|
|
55
|
+
{ menu = true }: { menu?: boolean } = {},
|
|
56
|
+
): DataTableColumnOrder<C> {
|
|
57
|
+
const paneId = useOptionalPaneInstanceId();
|
|
58
|
+
const options = reorder === false ? null : reorder ?? {};
|
|
59
|
+
const control = options?.control;
|
|
60
|
+
const anchored = Math.min(columns.length, options?.anchored ?? rowAnchorColumnCount(columns));
|
|
61
|
+
// Kept under the column that names the row, so a mark before it that comes and goes with the width keeps the order.
|
|
62
|
+
const key = options?.key ?? columns[anchored - 1]?.id ?? columns[0]?.id ?? "";
|
|
63
|
+
const enabled = options !== null && (control !== undefined || paneId !== null) && columns.length - anchored >= 2;
|
|
64
|
+
const savedText = useAppSelector((state) => {
|
|
65
|
+
if (!enabled || control || !paneId) return null;
|
|
66
|
+
const ids = readColumnOrders(findPaneInstance(state.config.layout, paneId)?.settings?.[COLUMN_ORDER_SETTING])[key];
|
|
67
|
+
return ids ? ids.join(ID_SEPARATOR) : null;
|
|
68
|
+
});
|
|
69
|
+
const controlOrder = control?.order;
|
|
70
|
+
const saved = useMemo(
|
|
71
|
+
() => controlOrder ?? (savedText === null ? undefined : savedText.split(ID_SEPARATOR)),
|
|
72
|
+
[controlOrder, savedText],
|
|
73
|
+
);
|
|
74
|
+
const ordered = useMemo(
|
|
75
|
+
() => enabled ? orderColumns(columns, saved, anchored) : columns,
|
|
76
|
+
[anchored, columns, enabled, saved],
|
|
77
|
+
);
|
|
78
|
+
const updateSetting = useOptionalPaneSettingUpdater(paneId, COLUMN_ORDER_SETTING);
|
|
79
|
+
const latest = useRef({ columns, ordered, control, key, anchored });
|
|
80
|
+
latest.current = { columns, ordered, control, key, anchored };
|
|
81
|
+
|
|
82
|
+
const onColumnMove = useCallback((columnId: string, toIndex: number) => {
|
|
83
|
+
const current = latest.current;
|
|
84
|
+
const before = current.ordered.map((column) => column.id);
|
|
85
|
+
const after = moveColumnId(before, columnId, toIndex, current.anchored);
|
|
86
|
+
if (!after) return;
|
|
87
|
+
if (current.control) {
|
|
88
|
+
// Columns the pane adds on its own and does not list (a portfolio's target weights, its CCY column) stay
|
|
89
|
+
// out of the list and are drawn where the pane puts them. So a column dropped between two of them is
|
|
90
|
+
// written beside them in the list, and once they are drawn back in their own place it can land on their
|
|
91
|
+
// other side. Accepted: they follow the pane's rules, not the reader's order.
|
|
92
|
+
const { order, defaultOrder, onChange } = current.control;
|
|
93
|
+
const listed = new Set(order);
|
|
94
|
+
onChange(listOrDefault(rememberColumnOrder(order, before, after).filter((id) => listed.has(id)), defaultOrder));
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const defaults = current.columns.map((column) => column.id);
|
|
98
|
+
updateSetting((value) => {
|
|
99
|
+
const { [current.key]: previous, ...others } = readColumnOrders(value);
|
|
100
|
+
const next = rememberColumnOrder(previous, before, after);
|
|
101
|
+
// Dragged back to the pane's own order, with no other column's place to keep, it is forgotten.
|
|
102
|
+
const forget = sameIds(after, defaults) && next.every((id) => defaults.includes(id));
|
|
103
|
+
const orders = forget ? others : { ...others, [current.key]: next };
|
|
104
|
+
return Object.keys(orders).length > 0 ? orders : undefined;
|
|
105
|
+
});
|
|
106
|
+
}, [updateSetting]);
|
|
107
|
+
|
|
108
|
+
const reset = useCallback(() => {
|
|
109
|
+
const { control: current, key: tableKey } = latest.current;
|
|
110
|
+
if (!current) {
|
|
111
|
+
// Only this table's order: another table or tab in the pane keeps its own.
|
|
112
|
+
updateSetting((value) => {
|
|
113
|
+
const { [tableKey]: _reset, ...others } = readColumnOrders(value);
|
|
114
|
+
return Object.keys(others).length > 0 ? others : undefined;
|
|
115
|
+
});
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (current.defaultOrder) current.onChange(listOrDefault(defaultColumnOrder(current.order, current.defaultOrder), current.defaultOrder));
|
|
119
|
+
}, [updateSetting]);
|
|
120
|
+
|
|
121
|
+
const customized = enabled && (control
|
|
122
|
+
? !!control.defaultOrder && !sameIds(control.order, defaultColumnOrder(control.order, control.defaultOrder))
|
|
123
|
+
: ordered !== columns);
|
|
124
|
+
usePaneMenuItems(`data-table-columns:${useId()}`, () => menu && customized
|
|
125
|
+
? [{ id: "reset-columns", label: "Reset Columns", onSelect: reset }]
|
|
126
|
+
: null, [customized, menu, reset]);
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
columns: ordered as C[],
|
|
130
|
+
onColumnMove: enabled ? onColumnMove : undefined,
|
|
131
|
+
anchoredColumns: anchored,
|
|
132
|
+
customized,
|
|
133
|
+
reset,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
@@ -3,7 +3,7 @@ export { ListView } from "./list-view";
|
|
|
3
3
|
export type { ListViewItem, ListViewProps, ListRowState } from "./list-view";
|
|
4
4
|
|
|
5
5
|
export { DataTable } from "./data-table";
|
|
6
|
-
export type { DataTableCell, DataTableColumn, DataTableProps, DataTableVisibleRange } from "./data-table";
|
|
6
|
+
export type { DataTableCell, DataTableColumn, DataTableColumnReorder, DataTableProps, DataTableVisibleRange } from "./data-table";
|
|
7
7
|
|
|
8
8
|
export { Button, terminalButtonColumns } from "./button";
|
|
9
9
|
export { Icon, IconButton, ICON_GLYPHS } from "./icon";
|
|
@@ -71,9 +71,10 @@ export interface ListViewProps {
|
|
|
71
71
|
selectOnHover?: boolean;
|
|
72
72
|
autoScrollToIndex?: boolean;
|
|
73
73
|
/**
|
|
74
|
-
* The rows are checkboxes (ToggleList)
|
|
75
|
-
*
|
|
76
|
-
* leaves Enter to its
|
|
74
|
+
* The rows are checkboxes (ToggleList), or choices a dialog asks beside its
|
|
75
|
+
* buttons. A focused desktop row toggles or picks on Space and leaves Enter
|
|
76
|
+
* to the surface around the list, the way a checkbox leaves Enter to its
|
|
77
|
+
* dialog's default button.
|
|
77
78
|
*/
|
|
78
79
|
checkboxRows?: boolean;
|
|
79
80
|
onMouseScroll?: (event: any) => void;
|
|
@@ -3,6 +3,7 @@ import { t, tf } from "../../i18n";
|
|
|
3
3
|
import { useThemeColors } from "../../theme/theme-context";
|
|
4
4
|
import { Box, Text, useUiCapabilities } from "../../ui";
|
|
5
5
|
import { formatRelativeAge } from "../../utils/datetime-format";
|
|
6
|
+
import { readableError } from "../../utils/reason-codes";
|
|
6
7
|
import { Spinner } from "./loading";
|
|
7
8
|
import { ButtonActionScope } from "./action-scope";
|
|
8
9
|
import { blendForContrast, higherContrast } from "../../theme/color-utils";
|
|
@@ -206,7 +207,8 @@ function EmptyStateBody({ title, message, hint, actions, retry, status = "empty"
|
|
|
206
207
|
onPress={feedback.press}
|
|
207
208
|
/>
|
|
208
209
|
) : null;
|
|
209
|
-
// Provider messages must wrap at narrow pane widths rather than lose their tail
|
|
210
|
+
// Provider messages must wrap at narrow pane widths rather than lose their tail,
|
|
211
|
+
// and a bare reason code (UPSTREAM_ERROR) a pane passed on reads as words.
|
|
210
212
|
return (
|
|
211
213
|
<Box
|
|
212
214
|
id={domId}
|
|
@@ -215,9 +217,9 @@ function EmptyStateBody({ title, message, hint, actions, retry, status = "empty"
|
|
|
215
217
|
data-gloom-ui="empty-state"
|
|
216
218
|
style={inset ? NATIVE_STATE_INSET : undefined}
|
|
217
219
|
>
|
|
218
|
-
<Box><Text fg={status === "error" ? colors.negative : colors.textDim} wrapText>{t(title)}</Text></Box>
|
|
219
|
-
{message && <Box><Text fg={colors.textMuted} wrapText>{t(message)}</Text></Box>}
|
|
220
|
-
{hint && <Box><Text fg={colors.textMuted} wrapText>{t(hint)}</Text></Box>}
|
|
220
|
+
<Box><Text fg={status === "error" ? colors.negative : colors.textDim} wrapText>{t(readableError(title))}</Text></Box>
|
|
221
|
+
{message && <Box><Text fg={colors.textMuted} wrapText>{t(readableError(message))}</Text></Box>}
|
|
222
|
+
{hint && <Box><Text fg={colors.textMuted} wrapText>{t(readableError(hint))}</Text></Box>}
|
|
221
223
|
{/* Wraps in a narrow pane rather than clipping the second action; a terminal wraps without a blank row. */}
|
|
222
224
|
{(retryButton || actions) && (
|
|
223
225
|
<Box flexDirection="row" flexWrap="wrap" gap={1} rowGap={nativePaneChrome ? undefined : 0} marginTop={1}>
|
|
@@ -243,18 +245,19 @@ export function Notice({ children, tone = "warning", variant = "inline" }: Notic
|
|
|
243
245
|
const native = useUiCapabilities().nativePaneChrome;
|
|
244
246
|
const color = tone === "muted" ? colors.textDim : colors[tone];
|
|
245
247
|
const status = tone === "negative" ? "error" : "notice";
|
|
248
|
+
const body = typeof children === "string" ? readableError(children) : children;
|
|
246
249
|
// Inline feedback keeps its original single-text shape: a flex row here collapses inside content-sized parents.
|
|
247
250
|
if (variant !== "callout") {
|
|
248
251
|
return (
|
|
249
252
|
<Box data-gloom-status={status} data-gloom-ui="notice">
|
|
250
|
-
<Text fg={color} wrapText>{
|
|
253
|
+
<Text fg={color} wrapText>{body}</Text>
|
|
251
254
|
</Box>
|
|
252
255
|
);
|
|
253
256
|
}
|
|
254
257
|
const foreground = blendForContrast(color, colors.panel, higherContrast("#000000", "#ffffff", colors.panel), 4.5);
|
|
255
258
|
return (
|
|
256
259
|
<Box flexDirection="row" gap={1} paddingX={1} paddingY={native ? 0.35 : 0} backgroundColor={colors.panel} border={["left"]} borderColor={color} data-gloom-status={status} data-gloom-ui="notice" role={native ? tone === "negative" ? "alert" : "status" : undefined} aria-atomic={native ? true : undefined}>
|
|
257
|
-
<Text fg={foreground}>!</Text><Box flexGrow={1} minWidth={0}><Text fg={foreground} wrapText>{
|
|
260
|
+
<Text fg={foreground}>!</Text><Box flexGrow={1} minWidth={0}><Text fg={foreground} wrapText>{body}</Text></Box>
|
|
258
261
|
</Box>
|
|
259
262
|
);
|
|
260
263
|
}
|
|
@@ -321,6 +321,126 @@ export function hasMeaningfulTableHorizontalOverflow(
|
|
|
321
321
|
return viewportWidth > 0 && tableWidth - viewportWidth > columnGap;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
+
/**
|
|
325
|
+
* The columns a terminal table drew, by its body's scroll box, while
|
|
326
|
+
* `fitTableColumns` has moved them from the widths the pane set: a sideways
|
|
327
|
+
* step and the column a table opens on go by the edges the reader sees.
|
|
328
|
+
*/
|
|
329
|
+
export const drawnTableColumns = new WeakMap<object, readonly TableWidthColumn[]>();
|
|
330
|
+
|
|
331
|
+
/** Cells handed out one at a time, left to right, to the columns still short of their target. */
|
|
332
|
+
function growColumns(widths: number[], targets: readonly number[], indexes: readonly number[], extra: number): number {
|
|
333
|
+
let left = extra;
|
|
334
|
+
while (left > 0) {
|
|
335
|
+
const short = indexes.filter((index) => widths[index]! < targets[index]!);
|
|
336
|
+
if (short.length === 0) break;
|
|
337
|
+
for (const index of short) {
|
|
338
|
+
if (left <= 0) break;
|
|
339
|
+
widths[index]! += 1;
|
|
340
|
+
left -= 1;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return left;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The terminal table's columns as wide as the room and what they hold allow,
|
|
348
|
+
* before any column is cut or pushed out of view past the right edge.
|
|
349
|
+
* `contentWidths` is the widest text each column holds now, its header aside,
|
|
350
|
+
* or null where it draws something that cannot be measured (it keeps its set
|
|
351
|
+
* width). A table whose set widths fit (to its trailing gap) and cut nothing
|
|
352
|
+
* is left as set. Otherwise every column first gives up the blank past its
|
|
353
|
+
* text, down to its header and sort mark; a column that cuts its text then
|
|
354
|
+
* takes back what it needs while room is left, and the others take back
|
|
355
|
+
* their blank, a cell at a time. A column that grows (`flexGrow`) takes what
|
|
356
|
+
* is left after that, as it always did.
|
|
357
|
+
*
|
|
358
|
+
* When even that leaves columns past the edge, as many leading columns as fit
|
|
359
|
+
* whole beside the shortest form of the hint that says more follow
|
|
360
|
+
* (`edgeHint.least`) keep the room, or beside the table's padding without a
|
|
361
|
+
* hint. Their cut text takes what it needs first; then the hint's whole form
|
|
362
|
+
* (`edgeHint.whole`), unless a last column, a few cells of it then in view,
|
|
363
|
+
* would show them as cut text instead of the hint; then their blank, up to
|
|
364
|
+
* their set widths. The others wait past the edge at their narrowest.
|
|
365
|
+
*
|
|
366
|
+
* A fit that shows no more than the set widths do (no cut text longer, no
|
|
367
|
+
* column more in view) leaves the table as set.
|
|
368
|
+
*/
|
|
369
|
+
export function fitTableColumns<C extends TableWidthColumn>(
|
|
370
|
+
columns: readonly C[],
|
|
371
|
+
contentWidths: readonly (number | null)[],
|
|
372
|
+
viewportWidth: number,
|
|
373
|
+
columnGap = 1,
|
|
374
|
+
horizontalPadding = 1,
|
|
375
|
+
edgeHint: {
|
|
376
|
+
least: number;
|
|
377
|
+
whole: number;
|
|
378
|
+
/** How many leading columns these widths show whole beside the hint, as the table draws it. */
|
|
379
|
+
shownWhole?: (columns: readonly C[]) => number;
|
|
380
|
+
} = { least: 0, whole: 0 },
|
|
381
|
+
): C[] {
|
|
382
|
+
const set = normalizeTableColumns(columns);
|
|
383
|
+
if (viewportWidth <= 0 || set.length === 0) return set;
|
|
384
|
+
const floors = set.map((column) => (column.label ? Math.min(column.width, displayWidth(column.label) + HEADER_RESERVED_WIDTH) : 1));
|
|
385
|
+
const wants = set.map((column, index) => {
|
|
386
|
+
const content = contentWidths[index];
|
|
387
|
+
return content == null ? column.width : Math.max(floors[index]!, Math.ceil(content));
|
|
388
|
+
});
|
|
389
|
+
const cut = set.flatMap((column, index) => (wants[index]! > column.width ? [index] : []));
|
|
390
|
+
const room = Math.floor(viewportWidth);
|
|
391
|
+
const overflows = hasMeaningfulTableHorizontalOverflow(getTableWidth(set, columnGap, horizontalPadding), room, columnGap);
|
|
392
|
+
if (cut.length === 0 && !overflows) return set;
|
|
393
|
+
const widths = set.map((column, index) => Math.min(column.width, wants[index]!));
|
|
394
|
+
const sized = () => set.map((column, index) => (widths[index] === column.width ? column : { ...column, width: widths[index]! }));
|
|
395
|
+
const setWidths = set.map((column) => column.width);
|
|
396
|
+
const cutGrew = (indexes: readonly number[]) => indexes.some((index) => widths[index]! > setWidths[index]!);
|
|
397
|
+
let extra = room - getTableWidth(sized(), columnGap, horizontalPadding);
|
|
398
|
+
if (extra >= 0) {
|
|
399
|
+
extra = growColumns(widths, wants, cut, extra);
|
|
400
|
+
if (!overflows && !cutGrew(cut)) return set;
|
|
401
|
+
growColumns(widths, setWidths, set.map((_, index) => index), extra);
|
|
402
|
+
return sized();
|
|
403
|
+
}
|
|
404
|
+
// Where the first `count` columns end, without the blank after the last.
|
|
405
|
+
const prefixEnd = (count: number, columns: readonly C[] = sized()) => (
|
|
406
|
+
getTableWidth(columns.slice(0, count), columnGap, horizontalPadding) - columnGap - horizontalPadding
|
|
407
|
+
);
|
|
408
|
+
const least = edgeHint.least > 0 ? edgeHint.least : horizontalPadding;
|
|
409
|
+
// What the first `count` columns keep after them: the hint, or the padding, while columns follow; after the
|
|
410
|
+
// last its padding, unless the set widths already ran into it: the table runs no further past the edge.
|
|
411
|
+
const lastTail = Math.max(0, Math.min(horizontalPadding, room - prefixEnd(set.length, set)));
|
|
412
|
+
const tail = (count: number) => (count < set.length ? least : lastTail);
|
|
413
|
+
let count = 0;
|
|
414
|
+
while (count < set.length && prefixEnd(count + 1) + tail(count + 1) <= room) count += 1;
|
|
415
|
+
if (count === 0) return sized();
|
|
416
|
+
// The columns the set widths show whole, the last one's blank past it cut or not: a fit never shows fewer.
|
|
417
|
+
const shownWhole = edgeHint.shownWhole ?? ((columns: readonly C[]) => {
|
|
418
|
+
let shown = 0;
|
|
419
|
+
while (shown < set.length && prefixEnd(shown + 1, columns) + (shown + 1 < set.length ? least : 0) <= room) shown += 1;
|
|
420
|
+
return shown;
|
|
421
|
+
});
|
|
422
|
+
const setCount = shownWhole(set);
|
|
423
|
+
if (count < setCount) return set;
|
|
424
|
+
const shown = set.slice(0, count).map((_, index) => index);
|
|
425
|
+
extra = room - tail(count) - prefixEnd(count);
|
|
426
|
+
const shownCut = cut.filter((index) => index < count);
|
|
427
|
+
extra = growColumns(widths, wants, shownCut, extra);
|
|
428
|
+
if (count === setCount && !cutGrew(shownCut)) return set;
|
|
429
|
+
if (count < set.length) {
|
|
430
|
+
// Kept for the hint's whole form, a last column after them would have that many cells in view, which text
|
|
431
|
+
// shows cut rather than leave to the hint when they reach its label (hasColumnsPastRightEdge). With more
|
|
432
|
+
// columns past it the hint shows anyway.
|
|
433
|
+
const next = set[count]!;
|
|
434
|
+
const nextInView = edgeHint.whole - columnGap - tableColumnLeadGap(sized(), count, columnGap);
|
|
435
|
+
const nextShowsText = count === set.length - 1 && (next.align ?? "left") !== "right" && nextInView >= displayWidth(next.label ?? "");
|
|
436
|
+
const wholeHint = Math.max(0, edgeHint.whole - least);
|
|
437
|
+
if (edgeHint.least > 0 && wholeHint > 0 && extra >= wholeHint && !nextShowsText) extra -= wholeHint;
|
|
438
|
+
}
|
|
439
|
+
growColumns(widths, setWidths, shown, extra);
|
|
440
|
+
const fitted = sized();
|
|
441
|
+
return cutGrew(shownCut) || shownWhole(fitted) > setCount ? fitted : set;
|
|
442
|
+
}
|
|
443
|
+
|
|
324
444
|
export function expandTableColumns<C extends TableWidthColumn>(
|
|
325
445
|
columns: readonly C[],
|
|
326
446
|
targetWidth: number,
|
package/src/docs/snapshot.json
CHANGED
|
@@ -787,6 +787,18 @@
|
|
|
787
787
|
"shot": "https://gloom.sh/screenshots/fn/CRYP.png",
|
|
788
788
|
"lesson": "/academy/crypto-and-prediction-markets/crypto-from-zero"
|
|
789
789
|
},
|
|
790
|
+
{
|
|
791
|
+
"code": "GTP",
|
|
792
|
+
"name": "Layer 2 metrics",
|
|
793
|
+
"description": "Ethereum and its layer 2 chains",
|
|
794
|
+
"detail": "Ethereum and its layer 2 chains side by side: transactions, active addresses, fees, transaction cost, stablecoin supply and value secured, with 30-day changes and a daily history chart. Data from growthepie.",
|
|
795
|
+
"category": "markets",
|
|
796
|
+
"plugin": {
|
|
797
|
+
"id": "growthepie",
|
|
798
|
+
"name": "growthepie"
|
|
799
|
+
},
|
|
800
|
+
"shot": "https://gloom.sh/screenshots/fn/GTP.png"
|
|
801
|
+
},
|
|
790
802
|
{
|
|
791
803
|
"code": "ETFF",
|
|
792
804
|
"name": "Crypto ETF flows",
|
|
@@ -834,6 +846,18 @@
|
|
|
834
846
|
"shot": "https://gloom.sh/screenshots/fn/FNG.png",
|
|
835
847
|
"lesson": "/academy/macro-markets-and-news/markets/sentiment-and-valuation"
|
|
836
848
|
},
|
|
849
|
+
{
|
|
850
|
+
"code": "CFNG",
|
|
851
|
+
"name": "Crypto fear and greed",
|
|
852
|
+
"description": "Crypto sentiment gauge",
|
|
853
|
+
"detail": "The crypto Fear and Greed Index from Alternative.me: today's reading, yesterday, last week and last month, and its history.",
|
|
854
|
+
"category": "markets",
|
|
855
|
+
"plugin": {
|
|
856
|
+
"id": "crypto-fear-greed",
|
|
857
|
+
"name": "Crypto Fear & Greed"
|
|
858
|
+
},
|
|
859
|
+
"shot": "https://gloom.sh/screenshots/fn/CFNG.png"
|
|
860
|
+
},
|
|
837
861
|
{
|
|
838
862
|
"code": "COT",
|
|
839
863
|
"name": "CFTC positioning",
|
|
@@ -1138,6 +1162,18 @@
|
|
|
1138
1162
|
"shot": "https://gloom.sh/screenshots/fn/PM.png",
|
|
1139
1163
|
"lesson": "/academy/crypto-and-prediction-markets/prediction-markets"
|
|
1140
1164
|
},
|
|
1165
|
+
{
|
|
1166
|
+
"code": "ADJ",
|
|
1167
|
+
"name": "Adjacent indices",
|
|
1168
|
+
"description": "Prediction-market indices",
|
|
1169
|
+
"detail": "Adjacent's indices built on prediction markets, with each one's level and 1D and 7D moves, its chart and constituents, plus reference rates and CFTC filings.",
|
|
1170
|
+
"category": "markets",
|
|
1171
|
+
"plugin": {
|
|
1172
|
+
"id": "adjacent-indices",
|
|
1173
|
+
"name": "Adjacent"
|
|
1174
|
+
},
|
|
1175
|
+
"shot": "https://gloom.sh/screenshots/fn/ADJ.png"
|
|
1176
|
+
},
|
|
1141
1177
|
{
|
|
1142
1178
|
"code": "POLL",
|
|
1143
1179
|
"name": "Polls",
|
|
@@ -7346,8 +7382,9 @@
|
|
|
7346
7382
|
"They read brokerage accounts, not team portfolios (use `collections.get`).",
|
|
7347
7383
|
"An IBKR order instruction is not an order: IBKR returns a link where you review and submit it yourself.",
|
|
7348
7384
|
"IBKR allows one AI connection per user, and Gloom holds it: connecting IBKR in Gloom disconnects it from other AI apps, so reach it through Gloom.",
|
|
7349
|
-
"The IBKR sign-in ends seven days after you consent, however often it is used; only signing in again brings it back.",
|
|
7350
|
-
"
|
|
7385
|
+
"The IBKR sign-in ends seven days after you consent, however often it is used; only signing in again brings it back. Signing in before it ends starts a new seven days.",
|
|
7386
|
+
"The Brokers pane shows when it ends. Two days before, Gloom emails you once with a link to renew. IBKR then asks to replace your existing Gloom connection: choose replace.",
|
|
7387
|
+
"Connecting another AI app to the same IBKR account disconnects Gloom. Connect IBKR in Gloom again to get it back."
|
|
7351
7388
|
]
|
|
7352
7389
|
},
|
|
7353
7390
|
{
|
package/src/i18n/es.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const es: Record<string, string> = {
|
|
|
73
73
|
"Could not apply that setting.": "No se pudo aplicar ese ajuste.",
|
|
74
74
|
"Enter {action} · Esc cancel": "Enter {action} · Esc cancelar",
|
|
75
75
|
"y {action} · Enter or Esc {cancel}": "y {action} · Enter o Esc {cancel}",
|
|
76
|
+
"y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab nota · Enter o Esc {cancel}",
|
|
76
77
|
"Published {date}": "Publicado {date}",
|
|
77
78
|
"Language": "Idioma",
|
|
78
79
|
"Unsupported language": "Idioma no compatible",
|
|
@@ -736,6 +737,9 @@ export const es: Record<string, string> = {
|
|
|
736
737
|
"Link copied.": "Enlace copiado.",
|
|
737
738
|
"New link copied. The old one no longer works.": "Nuevo enlace copiado. El anterior ya no funciona.",
|
|
738
739
|
"Copy failed. Select the link below.": "No se pudo copiar. Selecciona el enlace de abajo.",
|
|
740
|
+
"Invite": "Invitar",
|
|
741
|
+
"Free months earned: {earned} of {cap}": "Meses gratis obtenidos: {earned} de {cap}",
|
|
742
|
+
"Copy failed. Select the link instead.": "No se pudo copiar. Selecciona el enlace.",
|
|
739
743
|
"Failed to create the calendar link.": "No se pudo crear el enlace del calendario.",
|
|
740
744
|
"Regenerate Link": "Regenerar enlace",
|
|
741
745
|
"Calendars using the current link stop updating.": "Los calendarios con el enlace actual dejarán de actualizarse.",
|
|
@@ -794,6 +798,13 @@ export const es: Record<string, string> = {
|
|
|
794
798
|
"If you keep your trial, you can still cancel before it ends without being charged.": "Si mantienes tu prueba, aún puedes cancelar antes de que termine sin que se te cobre.",
|
|
795
799
|
"End Trial Now": "Terminar prueba ahora",
|
|
796
800
|
"Keep Trial": "Mantener prueba",
|
|
801
|
+
"What made you decide to cancel? (optional)": "¿Qué te hizo decidir cancelar? (opcional)",
|
|
802
|
+
"Bugs or reliability": "Errores o fiabilidad",
|
|
803
|
+
"Missing feature": "Falta una función",
|
|
804
|
+
"Too expensive": "Demasiado caro",
|
|
805
|
+
"Not using it enough": "No lo uso lo suficiente",
|
|
806
|
+
"Only needed it temporarily": "Solo lo necesitaba temporalmente",
|
|
807
|
+
"Anything else? (optional)": "¿Algo más? (opcional)",
|
|
797
808
|
"Ending trial...": "Terminando prueba...",
|
|
798
809
|
"Ending...": "Terminando...",
|
|
799
810
|
"Trial ended. Pro is off and you won't be charged.": "Prueba terminada. Pro está desactivado y no se te cobrará.",
|
|
@@ -1651,6 +1662,8 @@ export const es: Record<string, string> = {
|
|
|
1651
1662
|
"Sign in to Gloom": "Inicia sesión en Gloom",
|
|
1652
1663
|
"Continue in your browser or scan the code.": "Continúa en tu navegador o escanea el código.",
|
|
1653
1664
|
"Other AI apps linked to {broker} get disconnected. Connect them to Gloom instead.": "Otras apps de IA vinculadas a {broker} se desconectarán. Conéctalas a Gloom en su lugar.",
|
|
1665
|
+
"{broker} will ask to replace your existing Gloom connection. Choose to replace it.": "{broker} te pedirá reemplazar tu conexión actual con Gloom. Elige reemplazarla.",
|
|
1666
|
+
"{broker} may ask to replace your existing Gloom connection. If it does, choose to replace it.": "{broker} puede pedirte reemplazar tu conexión actual con Gloom. Si lo hace, elige reemplazarla.",
|
|
1654
1667
|
"Waiting for {broker}...": "Esperando a {broker}...",
|
|
1655
1668
|
"Contacting Gloom...": "Contactando con Gloom...",
|
|
1656
1669
|
"Something went wrong.": "Algo salió mal.",
|
|
@@ -1691,6 +1704,7 @@ export const es: Record<string, string> = {
|
|
|
1691
1704
|
"newline": "nueva línea",
|
|
1692
1705
|
"Denied in {seconds} s": "Se deniega en {seconds} s",
|
|
1693
1706
|
"choose": "elegir",
|
|
1707
|
+
"note": "nota",
|
|
1694
1708
|
"select": "seleccionar",
|
|
1695
1709
|
"here": "aquí",
|
|
1696
1710
|
"new pane": "panel nuevo",
|
package/src/i18n/ja.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const ja: Record<string, string> = {
|
|
|
73
73
|
"Could not apply that setting.": "その設定を適用できませんでした。",
|
|
74
74
|
"Enter {action} · Esc cancel": "Enter {action} · Esc キャンセル",
|
|
75
75
|
"y {action} · Enter or Esc {cancel}": "y {action} · Enter または Esc {cancel}",
|
|
76
|
+
"y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab メモ · Enter または Esc {cancel}",
|
|
76
77
|
"Published {date}": "{date} 公開",
|
|
77
78
|
"Language": "言語",
|
|
78
79
|
"Unsupported language": "対応していない言語",
|
|
@@ -751,6 +752,9 @@ export const ja: Record<string, string> = {
|
|
|
751
752
|
"Link copied.": "リンクをコピーしました。",
|
|
752
753
|
"New link copied. The old one no longer works.": "新しいリンクをコピーしました。古いリンクは使えなくなりました。",
|
|
753
754
|
"Copy failed. Select the link below.": "コピーできませんでした。下のリンクを選択してください。",
|
|
755
|
+
"Invite": "招待",
|
|
756
|
+
"Free months earned: {earned} of {cap}": "獲得した無料月数: {cap}か月中{earned}か月",
|
|
757
|
+
"Copy failed. Select the link instead.": "コピーできませんでした。リンクを選択してください。",
|
|
754
758
|
"Failed to create the calendar link.": "カレンダーリンクを作成できませんでした。",
|
|
755
759
|
"Regenerate Link": "リンクを再生成",
|
|
756
760
|
"Calendars using the current link stop updating.": "現在のリンクを使うカレンダーは更新されなくなります。",
|
|
@@ -809,6 +813,13 @@ export const ja: Record<string, string> = {
|
|
|
809
813
|
"If you keep your trial, you can still cancel before it ends without being charged.": "トライアルを続ける場合も、終了前に解約すれば料金はかかりません。",
|
|
810
814
|
"End Trial Now": "今すぐトライアルを終了",
|
|
811
815
|
"Keep Trial": "トライアルを続ける",
|
|
816
|
+
"What made you decide to cancel? (optional)": "解約を決めた理由は?(任意)",
|
|
817
|
+
"Bugs or reliability": "バグや安定性",
|
|
818
|
+
"Missing feature": "機能が足りない",
|
|
819
|
+
"Too expensive": "高すぎる",
|
|
820
|
+
"Not using it enough": "あまり使っていない",
|
|
821
|
+
"Only needed it temporarily": "一時的に必要だっただけ",
|
|
822
|
+
"Anything else? (optional)": "ほかに何かあれば(任意)",
|
|
812
823
|
"Ending trial...": "トライアルを終了しています...",
|
|
813
824
|
"Ending...": "終了しています...",
|
|
814
825
|
"Trial ended. Pro is off and you won't be charged.": "トライアルを終了しました。Pro はオフになり、料金はかかりません。",
|
|
@@ -1648,6 +1659,8 @@ export const ja: Record<string, string> = {
|
|
|
1648
1659
|
"Sign in to Gloom": "Gloom にサインイン",
|
|
1649
1660
|
"Continue in your browser or scan the code.": "ブラウザーで続けるか、コードをスキャンしてください。",
|
|
1650
1661
|
"Other AI apps linked to {broker} get disconnected. Connect them to Gloom instead.": "{broker} に連携している他の AI アプリは切断されます。代わりに Gloom に接続してください。",
|
|
1662
|
+
"{broker} will ask to replace your existing Gloom connection. Choose to replace it.": "{broker} から既存の Gloom 接続を置き換えるか確認されます。置き換えを選んでください。",
|
|
1663
|
+
"{broker} may ask to replace your existing Gloom connection. If it does, choose to replace it.": "{broker} から既存の Gloom 接続を置き換えるか確認される場合があります。その場合は置き換えを選んでください。",
|
|
1651
1664
|
"Waiting for {broker}...": "{broker} を待っています...",
|
|
1652
1665
|
"Contacting Gloom...": "Gloom に接続中...",
|
|
1653
1666
|
"Something went wrong.": "問題が発生しました。",
|
|
@@ -1688,6 +1701,7 @@ export const ja: Record<string, string> = {
|
|
|
1688
1701
|
"newline": "改行",
|
|
1689
1702
|
"Denied in {seconds} s": "{seconds} 秒後に拒否",
|
|
1690
1703
|
"choose": "選ぶ",
|
|
1704
|
+
"note": "メモ",
|
|
1691
1705
|
"select": "決定",
|
|
1692
1706
|
"here": "ここ",
|
|
1693
1707
|
"new pane": "新しいペイン",
|
package/src/i18n/ko.ts
CHANGED
|
@@ -71,6 +71,7 @@ export const ko: Record<string, string> = {
|
|
|
71
71
|
"Could not apply that setting.": "해당 설정을 적용할 수 없습니다.",
|
|
72
72
|
"Enter {action} · Esc cancel": "Enter {action} · Esc 취소",
|
|
73
73
|
"y {action} · Enter or Esc {cancel}": "y {action} · Enter 또는 Esc {cancel}",
|
|
74
|
+
"y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab 메모 · Enter 또는 Esc {cancel}",
|
|
74
75
|
"Published {date}": "게시일 {date}",
|
|
75
76
|
"Language": "언어",
|
|
76
77
|
"Unsupported language": "지원하지 않는 언어",
|
|
@@ -749,6 +750,9 @@ export const ko: Record<string, string> = {
|
|
|
749
750
|
"Link copied.": "링크를 복사했습니다.",
|
|
750
751
|
"New link copied. The old one no longer works.": "새 링크를 복사했습니다. 이전 링크는 더 이상 작동하지 않습니다.",
|
|
751
752
|
"Copy failed. Select the link below.": "복사하지 못했습니다. 아래 링크를 선택하세요.",
|
|
753
|
+
"Invite": "초대",
|
|
754
|
+
"Free months earned: {earned} of {cap}": "받은 무료 개월: {cap}개월 중 {earned}개월",
|
|
755
|
+
"Copy failed. Select the link instead.": "복사하지 못했습니다. 링크를 선택하세요.",
|
|
752
756
|
"Failed to create the calendar link.": "캘린더 링크를 만들지 못했습니다.",
|
|
753
757
|
"Regenerate Link": "링크 재생성",
|
|
754
758
|
"Calendars using the current link stop updating.": "현재 링크를 쓰는 캘린더는 더 이상 업데이트되지 않습니다.",
|
|
@@ -807,6 +811,13 @@ export const ko: Record<string, string> = {
|
|
|
807
811
|
"If you keep your trial, you can still cancel before it ends without being charged.": "체험을 유지해도 종료 전에 해지하면 요금이 청구되지 않습니다.",
|
|
808
812
|
"End Trial Now": "지금 체험 종료",
|
|
809
813
|
"Keep Trial": "체험 유지",
|
|
814
|
+
"What made you decide to cancel? (optional)": "해지하기로 한 이유는 무엇인가요? (선택)",
|
|
815
|
+
"Bugs or reliability": "버그 또는 안정성",
|
|
816
|
+
"Missing feature": "필요한 기능 부족",
|
|
817
|
+
"Too expensive": "너무 비쌈",
|
|
818
|
+
"Not using it enough": "충분히 사용하지 않음",
|
|
819
|
+
"Only needed it temporarily": "잠시만 필요했음",
|
|
820
|
+
"Anything else? (optional)": "더 하실 말씀이 있나요? (선택)",
|
|
810
821
|
"Ending trial...": "체험 종료 중...",
|
|
811
822
|
"Ending...": "종료 중...",
|
|
812
823
|
"Trial ended. Pro is off and you won't be charged.": "체험이 종료되었습니다. Pro가 꺼졌으며 요금은 청구되지 않습니다.",
|
|
@@ -1646,6 +1657,8 @@ export const ko: Record<string, string> = {
|
|
|
1646
1657
|
"Sign in to Gloom": "Gloom에 로그인",
|
|
1647
1658
|
"Continue in your browser or scan the code.": "브라우저에서 계속하거나 코드를 스캔하세요.",
|
|
1648
1659
|
"Other AI apps linked to {broker} get disconnected. Connect them to Gloom instead.": "{broker}에 연결된 다른 AI 앱은 연결이 해제됩니다. 대신 Gloom에 연결하세요.",
|
|
1660
|
+
"{broker} will ask to replace your existing Gloom connection. Choose to replace it.": "{broker}에서 기존 Gloom 연결을 교체할지 묻습니다. 교체를 선택하세요.",
|
|
1661
|
+
"{broker} may ask to replace your existing Gloom connection. If it does, choose to replace it.": "{broker}에서 기존 Gloom 연결을 교체할지 물을 수 있습니다. 그러면 교체를 선택하세요.",
|
|
1649
1662
|
"Waiting for {broker}...": "{broker} 기다리는 중...",
|
|
1650
1663
|
"Contacting Gloom...": "Gloom에 연결하는 중...",
|
|
1651
1664
|
"Something went wrong.": "문제가 발생했습니다.",
|
|
@@ -1686,6 +1699,7 @@ export const ko: Record<string, string> = {
|
|
|
1686
1699
|
"newline": "줄바꿈",
|
|
1687
1700
|
"Denied in {seconds} s": "{seconds}초 후 거부",
|
|
1688
1701
|
"choose": "고르기",
|
|
1702
|
+
"note": "메모",
|
|
1689
1703
|
"select": "선택",
|
|
1690
1704
|
"here": "여기",
|
|
1691
1705
|
"new pane": "새 패널",
|
package/src/i18n/zh-cn.ts
CHANGED
|
@@ -73,6 +73,7 @@ export const zhCN: Record<string, string> = {
|
|
|
73
73
|
"Could not apply that setting.": "无法应用该设置。",
|
|
74
74
|
"Enter {action} · Esc cancel": "Enter {action} · Esc 取消",
|
|
75
75
|
"y {action} · Enter or Esc {cancel}": "y {action} · Enter 或 Esc {cancel}",
|
|
76
|
+
"y {action} · Tab note · Enter or Esc {cancel}": "y {action} · Tab 备注 · Enter 或 Esc {cancel}",
|
|
76
77
|
"Published {date}": "已发布 {date}",
|
|
77
78
|
"Language": "语言",
|
|
78
79
|
"Unsupported language": "不支持的语言",
|
|
@@ -751,6 +752,9 @@ export const zhCN: Record<string, string> = {
|
|
|
751
752
|
"Link copied.": "已复制链接。",
|
|
752
753
|
"New link copied. The old one no longer works.": "已复制新链接。旧链接已失效。",
|
|
753
754
|
"Copy failed. Select the link below.": "复制失败。请选择下方的链接。",
|
|
755
|
+
"Invite": "邀请",
|
|
756
|
+
"Free months earned: {earned} of {cap}": "已获得免费月数:{earned}/{cap}",
|
|
757
|
+
"Copy failed. Select the link instead.": "复制失败。请选择链接。",
|
|
754
758
|
"Failed to create the calendar link.": "无法创建日历链接。",
|
|
755
759
|
"Regenerate Link": "重新生成链接",
|
|
756
760
|
"Calendars using the current link stop updating.": "使用当前链接的日历将停止更新。",
|
|
@@ -809,6 +813,13 @@ export const zhCN: Record<string, string> = {
|
|
|
809
813
|
"If you keep your trial, you can still cancel before it ends without being charged.": "如果保留试用,在试用结束前取消仍不会扣费。",
|
|
810
814
|
"End Trial Now": "立即结束试用",
|
|
811
815
|
"Keep Trial": "保留试用",
|
|
816
|
+
"What made you decide to cancel? (optional)": "是什么让你决定取消?(可选)",
|
|
817
|
+
"Bugs or reliability": "错误或稳定性问题",
|
|
818
|
+
"Missing feature": "缺少功能",
|
|
819
|
+
"Too expensive": "太贵了",
|
|
820
|
+
"Not using it enough": "用得不够多",
|
|
821
|
+
"Only needed it temporarily": "只是临时需要",
|
|
822
|
+
"Anything else? (optional)": "还有什么想说的吗?(可选)",
|
|
812
823
|
"Ending trial...": "正在结束试用...",
|
|
813
824
|
"Ending...": "正在结束...",
|
|
814
825
|
"Trial ended. Pro is off and you won't be charged.": "试用已结束。Pro 已关闭,不会扣费。",
|
|
@@ -1648,6 +1659,8 @@ export const zhCN: Record<string, string> = {
|
|
|
1648
1659
|
"Sign in to Gloom": "登录 Gloom",
|
|
1649
1660
|
"Continue in your browser or scan the code.": "在浏览器中继续,或扫描二维码。",
|
|
1650
1661
|
"Other AI apps linked to {broker} get disconnected. Connect them to Gloom instead.": "已关联 {broker} 的其他 AI 应用会被断开。请改为将它们连接到 Gloom。",
|
|
1662
|
+
"{broker} will ask to replace your existing Gloom connection. Choose to replace it.": "{broker} 会询问是否替换你现有的 Gloom 连接。请选择替换。",
|
|
1663
|
+
"{broker} may ask to replace your existing Gloom connection. If it does, choose to replace it.": "{broker} 可能会询问是否替换你现有的 Gloom 连接。如果询问,请选择替换。",
|
|
1651
1664
|
"Waiting for {broker}...": "正在等待 {broker}...",
|
|
1652
1665
|
"Contacting Gloom...": "正在连接 Gloom...",
|
|
1653
1666
|
"Something went wrong.": "出了点问题。",
|
|
@@ -1688,6 +1701,7 @@ export const zhCN: Record<string, string> = {
|
|
|
1688
1701
|
"newline": "换行",
|
|
1689
1702
|
"Denied in {seconds} s": "{seconds} 秒后拒绝",
|
|
1690
1703
|
"choose": "选择",
|
|
1704
|
+
"note": "备注",
|
|
1691
1705
|
"select": "选定",
|
|
1692
1706
|
"here": "此处",
|
|
1693
1707
|
"new pane": "新面板",
|