dsh-data-window 0.0.0-stage → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +111 -0
- package/CHANGELOG.md +267 -0
- package/LICENSE +21 -0
- package/README.md +151 -2
- package/client.js +8271 -0
- package/cordis.patch.yml +4 -0
- package/docs/BRIDGE.md +106 -0
- package/docs/DESIGN.md +417 -0
- package/docs/DETAIL.md +242 -0
- package/docs/screenshots/ddl.png +0 -0
- package/docs/screenshots/workbench.png +0 -0
- package/icon.svg +30 -0
- package/index.js +180 -0
- package/locale/en.json +304 -0
- package/locale/zh.json +304 -0
- package/package.json +68 -4
- package/src/client/00-css.js +1110 -0
- package/src/client/05-icons.js +156 -0
- package/src/client/05-theme.js +107 -0
- package/src/client/06-shortcuts.js +89 -0
- package/src/client/07-bridge.js +202 -0
- package/src/client/10-core.js +1320 -0
- package/src/client/20-tree.js +293 -0
- package/src/client/25-sql.js +631 -0
- package/src/client/30-editor.js +742 -0
- package/src/client/40-results.js +556 -0
- package/src/client/45-export.js +219 -0
- package/src/client/50-panel.js +768 -0
- package/src/client/60-settings.js +180 -0
- package/src/client/63-schema.js +186 -0
- package/src/client/64-manual.js +350 -0
- package/src/client/65-ai.js +320 -0
- package/src/client/66-optimize.js +217 -0
- package/src/client/90-apply.js +183 -0
- package/src/host/ai.js +721 -0
- package/src/host/cache.js +157 -0
- package/src/host/catalog.js +161 -0
- package/src/host/consoles.js +116 -0
- package/src/host/discovery.js +603 -0
- package/src/host/manual.js +276 -0
- package/src/host/mysql.js +650 -0
- package/src/host/remembered.js +225 -0
- package/src/host/rpc.js +487 -0
- package/src/host/shared.js +180 -0
- package/src/host/yaml.js +335 -0
package/locale/en.json
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Data window",
|
|
4
|
+
"description": "A DataGrip-style database window: the workspace's own configuration supplies each environment's host and credentials, so the tree shows instances, databases, tables and columns, F4 shows one table's create statement, and every database gets its own read-only SQL workbench.",
|
|
5
|
+
"detail": "docs/DETAIL.md"
|
|
6
|
+
},
|
|
7
|
+
"openPanel": "Data window",
|
|
8
|
+
"openPanelHint": "Open the data window",
|
|
9
|
+
"treeTitle": "Explorer",
|
|
10
|
+
"filterPlaceholder": "Filter the loaded databases and tables",
|
|
11
|
+
"treeLoading": "Loading…",
|
|
12
|
+
"treeNoMatch": "Nothing matches this filter",
|
|
13
|
+
"treeEmpty": "No database configuration found for this workspace",
|
|
14
|
+
"clearFilter": "Clear the filter",
|
|
15
|
+
"retry": "Failed — click to retry",
|
|
16
|
+
"browseAllDatabases": "List every database on this instance",
|
|
17
|
+
"closeTab": "Close",
|
|
18
|
+
"run": "Run",
|
|
19
|
+
"running": "Running",
|
|
20
|
+
"runHint": "⌘/Ctrl + Enter",
|
|
21
|
+
"sqlPlaceholder": "Write a SELECT statement, then press ⌘/Ctrl + Enter",
|
|
22
|
+
"ddlLoading": "Reading the create statement…",
|
|
23
|
+
"ddlFailed": "Could not read the create statement",
|
|
24
|
+
"ddlEmpty": "The server returned an empty create statement",
|
|
25
|
+
"copyDdl": "Copy",
|
|
26
|
+
"refreshDdl": "Re-read the create statement",
|
|
27
|
+
"openData": "Open rows",
|
|
28
|
+
"columns": "columns",
|
|
29
|
+
"resultIdle": "Not run yet",
|
|
30
|
+
"resultHint": "Press ⌘/Ctrl + Enter in the editor to run the statement",
|
|
31
|
+
"noRows": "The statement returned no rows",
|
|
32
|
+
"rows": "rows",
|
|
33
|
+
"truncated": "truncated to",
|
|
34
|
+
"copy": "Copy",
|
|
35
|
+
"limit": "Limit",
|
|
36
|
+
"queryFailed": "The statement failed",
|
|
37
|
+
"noWorkspace": "No workspace",
|
|
38
|
+
"loading": "Loading",
|
|
39
|
+
"stateError": "Configuration could not be read",
|
|
40
|
+
"environments": "environments",
|
|
41
|
+
"envInstances": "instances",
|
|
42
|
+
"envDatabases": "databases",
|
|
43
|
+
"pickWorkspace": "Choose a workspace",
|
|
44
|
+
"refresh": "Reload",
|
|
45
|
+
"refreshHint": "Re-read the workspace configuration and the Nacos cache",
|
|
46
|
+
"ddlShortcutHint": "F4 · DDL",
|
|
47
|
+
"menuDdl": "Show create statement",
|
|
48
|
+
"menuOpenData": "Open table rows",
|
|
49
|
+
"menuOpenConsole": "Open SQL workbench",
|
|
50
|
+
"menuCopyName": "Copy name",
|
|
51
|
+
"menuExpand": "Expand",
|
|
52
|
+
"menuEmpty": "No action",
|
|
53
|
+
"emptyTitle": "No database window yet",
|
|
54
|
+
"emptyHint": "Open a workspace and the window reads its own configuration: the Nacos cache supplies each environment's host and credentials, and every database in it gets a SQL workbench.",
|
|
55
|
+
"emptyReadyTitle": "Pick a database",
|
|
56
|
+
"emptyReadyHint": "Click a database in the explorer to open its SQL workbench, or a table to see its columns. Double-click a table to open its rows.",
|
|
57
|
+
"shortcutSummary": "F4 or ⌘/Ctrl + Shift + D on a table shows its create statement · ⌘/Ctrl + Enter runs the statement · every statement is read-only",
|
|
58
|
+
"discovering": "Reading the workspace configuration",
|
|
59
|
+
"discoveringHint": "Looking for bootstrap.yml, the Nacos snapshot cache and the data-ids that define the placeholders",
|
|
60
|
+
"logTitle": "Run log",
|
|
61
|
+
"logHasError": "errors",
|
|
62
|
+
"clear": "Clear",
|
|
63
|
+
"log.ready": "Database window ready",
|
|
64
|
+
"log.discovered": "Configuration read: {envs} environments · {databases} configured databases{cached}",
|
|
65
|
+
"log.cachedSuffix": " (cached)",
|
|
66
|
+
"log.discoverFailed": "Could not read the workspace configuration: {message}",
|
|
67
|
+
"log.hostRestarted": "The Host restarted; re-reading the configuration and retrying",
|
|
68
|
+
"log.tables": "{database}: {count} tables/views · {ms}",
|
|
69
|
+
"log.allDatabases": "{instance}: {count} databases on this instance",
|
|
70
|
+
"log.loadFailed": "{name}: {message}",
|
|
71
|
+
"log.databasesFailed": "Could not list the databases of this instance: {message}",
|
|
72
|
+
"log.ddl": "SHOW CREATE TABLE `{table}` · {ms}",
|
|
73
|
+
"log.query": "{database} · {rows} rows · {ms}{truncated}",
|
|
74
|
+
"log.truncatedSuffix": " (capped at {limit})",
|
|
75
|
+
"log.noStatement": "There is no statement to run",
|
|
76
|
+
"log.copiedDdl": "Copied the create statement of {table}",
|
|
77
|
+
"log.copiedName": "Copied the name {name}",
|
|
78
|
+
"log.pickFailed": "Could not open the directory picker: {message}",
|
|
79
|
+
"error.readOnly": "This window only runs queries, so the write was blocked",
|
|
80
|
+
"error.hostRestarted": "The Host forgot this connection; retrying once",
|
|
81
|
+
"error.databaseRequired": "Pick a database before running this",
|
|
82
|
+
"error.noSuchTable": "The table does not exist in this database",
|
|
83
|
+
"error.badField": "The statement names a column that does not exist",
|
|
84
|
+
"error.accessDenied": "The database refused these credentials",
|
|
85
|
+
"error.timeout": "The database did not answer in time",
|
|
86
|
+
"error.refused": "The database refused the connection",
|
|
87
|
+
"error.unresolved": "The database host could not be resolved",
|
|
88
|
+
"error.interrupted": "The statement was interrupted by the server",
|
|
89
|
+
"manualWorkspace": "manual",
|
|
90
|
+
"followWorkspace": "Follow the workspace",
|
|
91
|
+
"emptyNoEnvTitle": "This workspace resolved no data source",
|
|
92
|
+
"emptyNoEnvHint": "The window reads only this project's own spring.datasource entries: the application name in bootstrap.yml must match a Nacos snapshot, and the data source must be a jdbc:mysql URL. Other data-ids in the snapshot are read only for the ${…} values they define — no file name is assumed — and instances declared elsewhere are never listed.",
|
|
93
|
+
"warning.project-no-application-name": "The project's bootstrap.yml declares no spring.application.name, so the window matched configuration by directory name.",
|
|
94
|
+
"warning.nacos-cache-missing": "No local Nacos cache was found under ~/nacos/config; start the service once so the Nacos client writes its snapshot.",
|
|
95
|
+
"warning.no-environment": "No data source declared by this project could be resolved; only databases from this project's own configuration are read.",
|
|
96
|
+
"warning.unparsed-jdbc-url": "A datasource URL could not be parsed as jdbc:mysql.",
|
|
97
|
+
"projectSwitch": "Switch workspace",
|
|
98
|
+
"resizeTree": "Drag to resize the list (double-click resets)",
|
|
99
|
+
"hideSidebar": "Hide the DSH sidebar",
|
|
100
|
+
"showSidebar": "Show the DSH sidebar",
|
|
101
|
+
"formatSql": "Format",
|
|
102
|
+
"formatSqlHint": "Beautify the statement (keyword case is kept)",
|
|
103
|
+
"suggestColumn": "column",
|
|
104
|
+
"suggestTable": "table",
|
|
105
|
+
"suggestKeyword": "keyword",
|
|
106
|
+
"settingsNav": "Data window",
|
|
107
|
+
"settingsIntro": "These options only affect the data window and are kept in this browser.",
|
|
108
|
+
"settingsAutoHide": "Fold the sidebar when entering",
|
|
109
|
+
"settingsAutoHideHint": "Applies when the window is at least 1024px wide; with this off the sidebar stays as it is, and the toolbar button still folds it.",
|
|
110
|
+
"settingsLimit": "Default row limit",
|
|
111
|
+
"settingsLimitHint": "Used by new queries; the limit control above the grid still overrides it for one run.",
|
|
112
|
+
"settingsLimitAuto": "Use plugin config",
|
|
113
|
+
"settingsShortcut": "Open the data window",
|
|
114
|
+
"settingsShortcutHint": "Press this shortcut anywhere to open the data window.",
|
|
115
|
+
"settingsStorage": "Console snapshots",
|
|
116
|
+
"settingsStorageHint": "One 0600 file per workspace under ~/.dsh/storages/dsh-data-window/workspaces/.",
|
|
117
|
+
"countRows": "Refresh total rows",
|
|
118
|
+
"countRowsHint": "Run one COUNT query for the current statement (read-only)",
|
|
119
|
+
"countRowsUnknown": "— rows total",
|
|
120
|
+
"countRowsRunning": "Counting…",
|
|
121
|
+
"countRowsFailed": "Count failed",
|
|
122
|
+
"countRowsValue": "{rows} rows total",
|
|
123
|
+
"log.count": "Counted {rows} rows · {ms}",
|
|
124
|
+
"settingsGroupDisplay": "Display",
|
|
125
|
+
"settingsGroupStorage": "Storage",
|
|
126
|
+
"settingsShortcuts": "Shortcuts",
|
|
127
|
+
"settingsShortcutsHint": "Shortcuts are editable, and future ones will be listed here.",
|
|
128
|
+
"settingsShortcutChange": "Change",
|
|
129
|
+
"settingsShortcutCancel": "Cancel",
|
|
130
|
+
"settingsShortcutRecording": "Press keys…",
|
|
131
|
+
"settingsShortcutRecordingHint": "Press the new combination (⌘/Ctrl/⌥ required); Esc cancels.",
|
|
132
|
+
"settingsShortcutReset": "Reset",
|
|
133
|
+
"settingsShortcutNeedsModifier": "Use a combination with ⌘/Ctrl/⌥",
|
|
134
|
+
"settingsTheme": "Colour theme",
|
|
135
|
+
"settingsThemeHint": "Follows the theme chosen in the code workspace (dsh-ide-window); with none chosen, DSH colours are used.",
|
|
136
|
+
"settingsThemeDsh": "Follow DSH",
|
|
137
|
+
"cancel": "Cancel",
|
|
138
|
+
"close": "Close",
|
|
139
|
+
"aiOpen": "AI analysis",
|
|
140
|
+
"aiOpenHint": "Let a model read the workspace configuration for addresses the rules missed",
|
|
141
|
+
"aiRunningShort": "Analyzing…",
|
|
142
|
+
"aiEmptyHint": "When the rules do not recognise this project's configuration shape, a model can read the workspace. Every proposed address is proven with a real connection first; unproven ones stay out of the tree.",
|
|
143
|
+
"aiTitle": "Analyze the workspace with AI",
|
|
144
|
+
"aiLoadingModels": "Reading the models configured in DSH…",
|
|
145
|
+
"aiPickModel": "Choose a model",
|
|
146
|
+
"aiNoModels": "DSH has no usable model: configure a provider in Settings, then come back.",
|
|
147
|
+
"aiNoLlm": "The Host exposes no LLM service, so AI analysis is unavailable.",
|
|
148
|
+
"aiProviderFailed": "This provider failed to list models: {message}",
|
|
149
|
+
"aiPrivacy": "Only redacted configuration excerpts are sent (password values become <redacted>). The model returns file and key paths; the Host reads the secret itself and proves every address with a read-only connection.",
|
|
150
|
+
"aiStart": "Start analysis",
|
|
151
|
+
"aiRunning": "Analyzing the workspace with {model}…",
|
|
152
|
+
"aiRunningHint": "Up to 2 minutes. The Host then tries each proposed address; ones that do not connect stay out of the tree.",
|
|
153
|
+
"aiFailedTitle": "AI analysis failed",
|
|
154
|
+
"aiFailed": "The analysis did not finish",
|
|
155
|
+
"aiRetry": "Retry",
|
|
156
|
+
"aiDone": "{accepted} connection(s) verified (the model proposed {candidates})",
|
|
157
|
+
"aiDoneEmpty": "None of the proposed addresses connected",
|
|
158
|
+
"aiDoneHint": "Verified addresses joined the “AI” group in the tree; failures are listed below and written to the run log.",
|
|
159
|
+
"aiAgain": "Try another model",
|
|
160
|
+
"aiNoWorkspace": "Pick a workspace first",
|
|
161
|
+
"aiNeedModel": "Choose a model first",
|
|
162
|
+
"aiBusy": "An AI analysis is already running",
|
|
163
|
+
"settingsGroupAi": "AI fallback",
|
|
164
|
+
"settingsAiModel": "Default model",
|
|
165
|
+
"settingsAiModelHint": "Used to read the workspace when the rules resolve no database configuration. Proposed addresses are verified by a real connection before they reach the tree.",
|
|
166
|
+
"settingsAiModelNone": "Not chosen",
|
|
167
|
+
"settingsAiChoose": "Choose a model",
|
|
168
|
+
"settingsAiChange": "Change model",
|
|
169
|
+
"log.aiStart": "AI analysis started: {model}",
|
|
170
|
+
"log.aiDone": "AI analysis finished: {accepted}/{candidates} candidates verified · {ms}",
|
|
171
|
+
"log.aiFailed": "AI analysis failed: {message}",
|
|
172
|
+
"warning.ai-no-evidence": "No configuration excerpt the model could read was found in the workspace.",
|
|
173
|
+
"warning.ai-candidate-unresolved": "A proposed address cited no resolvable account or password, so it was ignored.",
|
|
174
|
+
"warning.ai-connect-failed": "A proposed address refused the connection and was ignored.",
|
|
175
|
+
"warning.ai-unvalidated": "The Host cannot validate connections, so the AI result is unverified.",
|
|
176
|
+
"aiDefaultTag": "DSH default",
|
|
177
|
+
"manualTitle": "Add a connection",
|
|
178
|
+
"manualOpen": "Add connection",
|
|
179
|
+
"manualOpenHint": "Add a database connection by hand (independent of the workspace configuration)",
|
|
180
|
+
"manualHint": "For databases neither the rules nor the AI can find: a local container, a shared test instance, a customer's replica. The connection is tested once before it is saved; a failed test writes nothing.",
|
|
181
|
+
"manualLabel": "Environment name",
|
|
182
|
+
"manualLabelPlaceholder": "e.g. Local / Staging / Customer A",
|
|
183
|
+
"manualLabelHint": "Connections sharing a name form one environment group; an empty name falls back to “host:port”",
|
|
184
|
+
"manualHost": "Host",
|
|
185
|
+
"manualPort": "Port",
|
|
186
|
+
"manualUser": "User",
|
|
187
|
+
"manualPassword": "Password",
|
|
188
|
+
"manualDatabase": "Database (optional)",
|
|
189
|
+
"manualDatabaseHint": "Leave empty to add the instance only; then use “List every database on this instance”",
|
|
190
|
+
"manualPrivacy": "The Host stores these settings (password included) in a 0600 file under this workspace's storage directory; the browser only receives connection ids, and every query still passes the read-only gateway.",
|
|
191
|
+
"manualSave": "Test and save",
|
|
192
|
+
"manualSaving": "Connecting…",
|
|
193
|
+
"manualNoWorkspace": "Pick a workspace first",
|
|
194
|
+
"manualBadge": "manual",
|
|
195
|
+
"removeConnection": "Remove this connection",
|
|
196
|
+
"aiManualInstead": "Or enter the connection by hand",
|
|
197
|
+
"error.manualConnectFailed": "Connection failed; nothing was saved",
|
|
198
|
+
"log.manualRemoved": "Removed the manually added connection",
|
|
199
|
+
"log.manualRemoveFailed": "Could not remove the connection: {message}",
|
|
200
|
+
"log.manualSaved": "Added a manual connection",
|
|
201
|
+
"rememberedBadge": "saved",
|
|
202
|
+
"forgetDatabase": "Forget this database",
|
|
203
|
+
"log.remembered": "Remembered this database for the workspace: {database}",
|
|
204
|
+
"log.forgotDatabase": "Removed the remembered database: {database}",
|
|
205
|
+
"log.forgetDatabaseFailed": "Could not remove the remembered database: {message}",
|
|
206
|
+
"chooseDatabases": "Choose databases…",
|
|
207
|
+
"schemaTitle": "Choose databases",
|
|
208
|
+
"schemaSearch": "Search databases",
|
|
209
|
+
"schemaCount": "{chosen} of {total} selected",
|
|
210
|
+
"schemaConfigured": "configured",
|
|
211
|
+
"schemaHint": "Checked databases appear in the tree and are remembered for this workspace; the configured ones always stay.",
|
|
212
|
+
"schemaApply": "Apply",
|
|
213
|
+
"schemaApplying": "Applying…",
|
|
214
|
+
"schemaLoading": "Reading this instance's databases…",
|
|
215
|
+
"schemaFailed": "Could not read the database list",
|
|
216
|
+
"schemaNoMatch": "No matching database",
|
|
217
|
+
"manualFromSaved": "Import a saved connection",
|
|
218
|
+
"manualFromSavedNone": "No import — fill it in",
|
|
219
|
+
"manualFromSavedHint": "Connections resolved or added in other workspaces appear here; picking one fills host, port, user and database.",
|
|
220
|
+
"manualSourceHint": "The password is reused from that connection and is never shown in the form.",
|
|
221
|
+
"error.savedConnectionMissing": "That saved connection no longer exists; enter it again",
|
|
222
|
+
"renameEnvironment": "Rename environment",
|
|
223
|
+
"renameTitle": "Rename environment",
|
|
224
|
+
"renameLabel": "Environment name",
|
|
225
|
+
"renameHint": "Only the group name changes; databases already picked in this environment stay.",
|
|
226
|
+
"renameApply": "Save",
|
|
227
|
+
"log.renamedEnvironment": "Environment renamed",
|
|
228
|
+
"removeEnvironment": "Delete environment",
|
|
229
|
+
"removeEnvironmentTitle": "Delete this environment?",
|
|
230
|
+
"removeEnvironmentHint": "Every connection under “{name}” and its picked databases are removed and no longer shown; import it again from another workspace when needed.",
|
|
231
|
+
"removeEnvironmentConfirm": "Delete",
|
|
232
|
+
"log.removedEnvironment": "Environment deleted: {name}",
|
|
233
|
+
"log.removeEnvironmentFailed": "Could not delete the environment: {message}",
|
|
234
|
+
"pagePrev": "Previous",
|
|
235
|
+
"pageNext": "Next",
|
|
236
|
+
"pageLabel": "Page {page} · {size} per page",
|
|
237
|
+
"log.page": "Page {page}: {rows} rows · {ms}",
|
|
238
|
+
"log.pageEnd": "No more rows: this is the last page",
|
|
239
|
+
"editingCellHint": "Editing: Enter commits, Esc cancels",
|
|
240
|
+
"menuCopyUpdate": "Copy UPDATE statement",
|
|
241
|
+
"menuCopyUpdateHint": "Builds an UPDATE from the edited cells (copied, never executed)",
|
|
242
|
+
"menuCopyCell": "Copy cell value",
|
|
243
|
+
"updateNeedsEdits": "Double-click a cell and edit it before copying an UPDATE",
|
|
244
|
+
"updateNeedsPrimaryKey": "This result has no primary-key column, so no safe WHERE can be built",
|
|
245
|
+
"updateNeedsSingleTable": "This statement is not a single-table SELECT; no UPDATE can be built",
|
|
246
|
+
"copyUpdateFailed": "Clipboard unavailable; nothing was copied",
|
|
247
|
+
"editsCount": "{count} edited",
|
|
248
|
+
"clearEdits": "Clear",
|
|
249
|
+
"log.copiedUpdate": "UPDATE copied ({table}, not executed)",
|
|
250
|
+
"log.copiedCell": "Cell value copied",
|
|
251
|
+
"copyEdits": "Copy",
|
|
252
|
+
"copyEditsHint": "Copy the UPDATE statements of every edited row (copied, never executed)",
|
|
253
|
+
"log.copiedUpdates": "{count} UPDATE statement(s) copied (not executed)",
|
|
254
|
+
"export": "Export",
|
|
255
|
+
"exportHint": "Export the {rows} rows on this page",
|
|
256
|
+
"exportXlsx": "Excel workbook (.xlsx)",
|
|
257
|
+
"exportCsv": "CSV file (.csv)",
|
|
258
|
+
"exportInsert": "INSERT SQL script (.sql)",
|
|
259
|
+
"insertNeedsTable": "This is not a single-table SELECT (it uses a join, several tables or a subquery), so the target table is unknown. Export from a single-table query instead.",
|
|
260
|
+
"exportFailed": "Export failed: {message}",
|
|
261
|
+
"log.exported": "Exported {name} ({rows} rows)",
|
|
262
|
+
"log.exportCancelled": "Export cancelled",
|
|
263
|
+
"log.exportDownloaded": "This host cannot choose a save location; downloaded {name} to the default downloads folder",
|
|
264
|
+
"cellDetailTitle": "{column} · row {row}",
|
|
265
|
+
"editCell": "Edit cell",
|
|
266
|
+
"insertNeedsTitle": "Cannot export an INSERT script",
|
|
267
|
+
"refreshStructure": "Refresh structure",
|
|
268
|
+
"log.refreshingConnection": "Refreshing connection: {name}",
|
|
269
|
+
"log.refreshedStructure": "Structure refreshed: {name}",
|
|
270
|
+
"editorUndo": "Undo",
|
|
271
|
+
"editorRedo": "Redo",
|
|
272
|
+
"editorCut": "Cut",
|
|
273
|
+
"editorCopy": "Copy",
|
|
274
|
+
"editorPaste": "Paste",
|
|
275
|
+
"editorSelectAll": "Select all",
|
|
276
|
+
"editorPasteBlocked": "The browser does not allow reading the clipboard; paste with ⌘V",
|
|
277
|
+
"sqlOptimize": "AI optimize SQL",
|
|
278
|
+
"optimizeTitle": "SQL optimization",
|
|
279
|
+
"optimizeRunning": "Analyzing the statement…",
|
|
280
|
+
"optimizeNoModel": "No model selected yet — choose one in Settings → Data window → AI",
|
|
281
|
+
"optimizeModelLabel": "Model: {model}",
|
|
282
|
+
"aiModelUnknown": "not configured",
|
|
283
|
+
"optimizeNotes": "Notes",
|
|
284
|
+
"optimizeCopy": "Copy SQL",
|
|
285
|
+
"log.optimizeCopied": "Optimized SQL copied",
|
|
286
|
+
"tabClose": "Close",
|
|
287
|
+
"tabCloseOthers": "Close other tabs",
|
|
288
|
+
"tabCloseAll": "Close all tabs",
|
|
289
|
+
"tabCloseLeft": "Close tabs to the left",
|
|
290
|
+
"tabCloseRight": "Close tabs to the right",
|
|
291
|
+
"copyReference": "Copy reference",
|
|
292
|
+
"copyReferenceToChat": "Copy reference to chat",
|
|
293
|
+
"log.copiedReference": "Reference copied: {reference}",
|
|
294
|
+
"log.copiedReferenceToChat": "Reference inserted into the chat: {reference}",
|
|
295
|
+
"log.copiedReferenceOnly": "Chat input is closed; reference copied: {reference}",
|
|
296
|
+
"tabMenuLabel": "Tab menu",
|
|
297
|
+
"optimizeOriginal": "Original SQL",
|
|
298
|
+
"optimizeOptimized": "Optimized SQL",
|
|
299
|
+
"menuDdlAll": "Show all create statements",
|
|
300
|
+
"ddlAllEmpty": "This database has no tables",
|
|
301
|
+
"ddlAllPartial": "{count} table(s) could not be read; noted at the end of the script",
|
|
302
|
+
"log.ddlAll": "Read all create statements of {database}: {count} tables · {ms}",
|
|
303
|
+
"log.copiedDdlAll": "Copied all create statements of {database} ({count} tables)"
|
|
304
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "数据窗口",
|
|
4
|
+
"description": "DataGrip 风格的数据库窗口:从工作区自己的配置解析出各环境的主机与账号,树里能看到实例、库、表与字段,F4 直接查看建表语句,每个库都有自己的只读 SQL 工作台。",
|
|
5
|
+
"detail": "docs/DETAIL.md"
|
|
6
|
+
},
|
|
7
|
+
"openPanel": "数据窗口",
|
|
8
|
+
"openPanelHint": "打开数据窗口",
|
|
9
|
+
"treeTitle": "资源管理器",
|
|
10
|
+
"filterPlaceholder": "过滤已加载的库名与表名",
|
|
11
|
+
"treeLoading": "加载中…",
|
|
12
|
+
"treeNoMatch": "没有匹配的节点",
|
|
13
|
+
"treeEmpty": "没有在当前工作区发现数据库配置",
|
|
14
|
+
"clearFilter": "清空过滤",
|
|
15
|
+
"retry": "加载失败,点此重试",
|
|
16
|
+
"browseAllDatabases": "列出该实例上的全部库",
|
|
17
|
+
"closeTab": "关闭",
|
|
18
|
+
"run": "运行",
|
|
19
|
+
"running": "执行中",
|
|
20
|
+
"runHint": "⌘/Ctrl + Enter",
|
|
21
|
+
"sqlPlaceholder": "在此输入 SELECT 语句,按 ⌘/Ctrl + Enter 执行",
|
|
22
|
+
"ddlLoading": "正在读取建表语句…",
|
|
23
|
+
"ddlFailed": "读取建表语句失败",
|
|
24
|
+
"ddlEmpty": "服务端返回了空的建表语句",
|
|
25
|
+
"copyDdl": "复制",
|
|
26
|
+
"refreshDdl": "重新读取建表语句",
|
|
27
|
+
"openData": "查看数据",
|
|
28
|
+
"columns": "字段",
|
|
29
|
+
"resultIdle": "尚未执行",
|
|
30
|
+
"resultHint": "在编辑器中按 ⌘/Ctrl + Enter 执行语句",
|
|
31
|
+
"noRows": "语句没有返回数据",
|
|
32
|
+
"rows": "行",
|
|
33
|
+
"truncated": "已截断到",
|
|
34
|
+
"copy": "复制",
|
|
35
|
+
"limit": "上限",
|
|
36
|
+
"queryFailed": "语句执行失败",
|
|
37
|
+
"noWorkspace": "未选择工作区",
|
|
38
|
+
"loading": "加载中",
|
|
39
|
+
"stateError": "读取配置失败",
|
|
40
|
+
"environments": "个环境",
|
|
41
|
+
"envInstances": "实例",
|
|
42
|
+
"envDatabases": "库",
|
|
43
|
+
"pickWorkspace": "选择工作区",
|
|
44
|
+
"refresh": "重新读取",
|
|
45
|
+
"refreshHint": "重新读取工作区配置与 Nacos 缓存",
|
|
46
|
+
"ddlShortcutHint": "F4 · 建表语句",
|
|
47
|
+
"menuDdl": "查看建表语句",
|
|
48
|
+
"menuOpenData": "查看表数据",
|
|
49
|
+
"menuOpenConsole": "打开 SQL 工作台",
|
|
50
|
+
"menuCopyName": "复制名称",
|
|
51
|
+
"menuExpand": "展开",
|
|
52
|
+
"menuEmpty": "无可用操作",
|
|
53
|
+
"emptyTitle": "还没有打开数据库",
|
|
54
|
+
"emptyHint": "打开一个工作区,窗口会读取它自己的配置:Nacos 本地缓存提供各环境的主机与账号,配置里的每个库都会得到自己的 SQL 工作台。",
|
|
55
|
+
"emptyReadyTitle": "选择一个数据库",
|
|
56
|
+
"emptyReadyHint": "在左侧点一下库名就能打开它的 SQL 工作台,点表名可以展开字段,双击表名直接查看数据。",
|
|
57
|
+
"shortcutSummary": "选中表后按 F4 或 ⌘/Ctrl + Shift + D 查看建表语句 · ⌘/Ctrl + Enter 执行语句 · 所有语句都是只读的",
|
|
58
|
+
"discovering": "正在读取工作区配置",
|
|
59
|
+
"discoveringHint": "查找 bootstrap.yml、Nacos 快照缓存与定义占位符的配置",
|
|
60
|
+
"logTitle": "运行日志",
|
|
61
|
+
"logHasError": "有错误",
|
|
62
|
+
"clear": "清空",
|
|
63
|
+
"log.ready": "数据库窗口已就绪",
|
|
64
|
+
"log.discovered": "配置已读取:{envs} 个环境 · {databases} 个已配置库{cached}",
|
|
65
|
+
"log.cachedSuffix": "(缓存)",
|
|
66
|
+
"log.discoverFailed": "读取工作区配置失败:{message}",
|
|
67
|
+
"log.hostRestarted": "Host 已重启,正在重新读取配置并重试",
|
|
68
|
+
"log.tables": "{database}:{count} 张表/视图 · {ms}",
|
|
69
|
+
"log.allDatabases": "{instance}:该实例上共 {count} 个库",
|
|
70
|
+
"log.loadFailed": "{name}:{message}",
|
|
71
|
+
"log.databasesFailed": "读取实例库列表失败:{message}",
|
|
72
|
+
"log.ddl": "SHOW CREATE TABLE `{table}` · {ms}",
|
|
73
|
+
"log.query": "{database} · {rows} 行 · {ms}{truncated}",
|
|
74
|
+
"log.truncatedSuffix": "(已截断到 {limit} 行)",
|
|
75
|
+
"log.noStatement": "没有可执行的语句",
|
|
76
|
+
"log.copiedDdl": "已复制 {table} 的建表语句",
|
|
77
|
+
"log.copiedName": "已复制名称 {name}",
|
|
78
|
+
"log.pickFailed": "打开目录选择器失败:{message}",
|
|
79
|
+
"error.readOnly": "这个窗口只允许查询语句,写操作已被拦截",
|
|
80
|
+
"error.hostRestarted": "Host 已忘记这个连接,正在重试一次",
|
|
81
|
+
"error.databaseRequired": "请先选择一个库再执行",
|
|
82
|
+
"error.noSuchTable": "这个库里没有这张表",
|
|
83
|
+
"error.badField": "语句里的字段不存在",
|
|
84
|
+
"error.accessDenied": "数据库拒绝了这组账号密码",
|
|
85
|
+
"error.timeout": "数据库没有在超时时间内响应",
|
|
86
|
+
"error.refused": "数据库拒绝了连接",
|
|
87
|
+
"error.unresolved": "无法解析数据库主机名",
|
|
88
|
+
"error.interrupted": "语句被服务端中断",
|
|
89
|
+
"manualWorkspace": "手动选择",
|
|
90
|
+
"followWorkspace": "跟随工作区",
|
|
91
|
+
"emptyNoEnvTitle": "这个工作区没有解析到数据源",
|
|
92
|
+
"emptyNoEnvHint": "窗口只读取本项目自己的 spring.datasource 配置:先确认 bootstrap.yml 的 spring.application.name 与 Nacos 快照对得上,且配置里写的是 jdbc:mysql 地址。快照里的其它配置只用来解析 ${…} 占位符(文件名由项目决定),不会把别处的实例列进来。",
|
|
93
|
+
"warning.project-no-application-name": "项目的 bootstrap.yml 没有声明 spring.application.name,窗口改为按目录名匹配配置。",
|
|
94
|
+
"warning.nacos-cache-missing": "在 ~/nacos/config 下没有找到本地 Nacos 缓存;先启动一次服务,Nacos 客户端才会写入快照。",
|
|
95
|
+
"warning.no-environment": "当前工作区没有解析到本项目自己声明的数据源(窗口只读本项目配置里的库)。",
|
|
96
|
+
"warning.unparsed-jdbc-url": "有数据源地址无法解析为 jdbc:mysql。",
|
|
97
|
+
"projectSwitch": "切换工作区",
|
|
98
|
+
"resizeTree": "拖动调整列表宽度(双击还原)",
|
|
99
|
+
"hideSidebar": "隐藏 DSH 侧栏",
|
|
100
|
+
"showSidebar": "显示 DSH 侧栏",
|
|
101
|
+
"formatSql": "格式化",
|
|
102
|
+
"formatSqlHint": "一键美化当前 SQL(保留关键字大小写)",
|
|
103
|
+
"suggestColumn": "字段",
|
|
104
|
+
"suggestTable": "表",
|
|
105
|
+
"suggestKeyword": "关键字",
|
|
106
|
+
"settingsNav": "数据窗口",
|
|
107
|
+
"settingsIntro": "这些选项只影响数据窗口本身,保存在本机浏览器里。",
|
|
108
|
+
"settingsAutoHide": "进入窗口时自动收起侧栏",
|
|
109
|
+
"settingsAutoHideHint": "窗口宽度 ≥1024 时生效;关闭后侧栏保持原样,仍可用工具栏按钮手动收起。",
|
|
110
|
+
"settingsLimit": "默认行数上限",
|
|
111
|
+
"settingsLimitHint": "新查询的默认值;结果栏里的上限选择仍可临时调整。",
|
|
112
|
+
"settingsLimitAuto": "跟随插件配置",
|
|
113
|
+
"settingsShortcut": "打开数据窗口",
|
|
114
|
+
"settingsShortcutHint": "在任意界面按该快捷键即可打开数据窗口。",
|
|
115
|
+
"settingsStorage": "控制台保存位置",
|
|
116
|
+
"settingsStorageHint": "每个工作区一份 0600 文件,位于 ~/.dsh/storages/dsh-data-window/workspaces/。",
|
|
117
|
+
"countRows": "刷新总行数",
|
|
118
|
+
"countRowsHint": "对当前语句执行一次 COUNT 查询(只读)",
|
|
119
|
+
"countRowsUnknown": "共 — 行",
|
|
120
|
+
"countRowsRunning": "统计中…",
|
|
121
|
+
"countRowsFailed": "统计失败",
|
|
122
|
+
"countRowsValue": "共 {rows} 行",
|
|
123
|
+
"log.count": "总行数 {rows} 行 · {ms}",
|
|
124
|
+
"settingsGroupDisplay": "显示",
|
|
125
|
+
"settingsGroupStorage": "存储",
|
|
126
|
+
"settingsShortcuts": "快捷键",
|
|
127
|
+
"settingsShortcutsHint": "快捷键可以修改;以后新增的快捷键也会列在这里。",
|
|
128
|
+
"settingsShortcutChange": "修改",
|
|
129
|
+
"settingsShortcutCancel": "取消",
|
|
130
|
+
"settingsShortcutRecording": "按下组合键…",
|
|
131
|
+
"settingsShortcutRecordingHint": "按下新的组合键(需要 ⌘/Ctrl/⌥),按 Esc 取消。",
|
|
132
|
+
"settingsShortcutReset": "恢复默认",
|
|
133
|
+
"settingsShortcutNeedsModifier": "需要带 ⌘/Ctrl/⌥ 的组合键",
|
|
134
|
+
"settingsTheme": "界面配色",
|
|
135
|
+
"settingsThemeHint": "在代码工作区(dsh-ide-window)切换主题后自动同步;未选择主题时跟随 DSH。",
|
|
136
|
+
"settingsThemeDsh": "跟随 DSH",
|
|
137
|
+
"cancel": "取消",
|
|
138
|
+
"close": "关闭",
|
|
139
|
+
"aiOpen": "AI 分析",
|
|
140
|
+
"aiOpenHint": "让模型读取工作区配置,补上规则没解析到的地址",
|
|
141
|
+
"aiRunningShort": "分析中…",
|
|
142
|
+
"aiEmptyHint": "规则没认出这个项目的配置形态时,可以让模型读一遍工作区;候选地址会用真实连接验证,验证不过的不会进树。",
|
|
143
|
+
"aiTitle": "用 AI 分析工作区配置",
|
|
144
|
+
"aiLoadingModels": "正在读取 DSH 已配置的模型…",
|
|
145
|
+
"aiPickModel": "选择模型",
|
|
146
|
+
"aiNoModels": "DSH 里没有可用模型:先在设置里配置一个模型提供方,再回来。",
|
|
147
|
+
"aiNoLlm": "Host 没有可用的 LLM 服务,AI 分析暂时不可用。",
|
|
148
|
+
"aiProviderFailed": "该提供方读取模型失败:{message}",
|
|
149
|
+
"aiPrivacy": "只发送脱敏后的配置片段(密码值替换为 <redacted>);模型只返回文件和键路径,密码由 Host 自己读取,候选地址会用只读连接实测。",
|
|
150
|
+
"aiStart": "开始分析",
|
|
151
|
+
"aiRunning": "正在用 {model} 分析工作区…",
|
|
152
|
+
"aiRunningHint": "最长 2 分钟。模型返回后 Host 会逐个尝试连接,连不上的地址不会进树。",
|
|
153
|
+
"aiFailedTitle": "AI 分析失败",
|
|
154
|
+
"aiFailed": "分析没有完成",
|
|
155
|
+
"aiRetry": "重试",
|
|
156
|
+
"aiDone": "验证通过 {accepted} 个连接(模型共提议 {candidates} 个)",
|
|
157
|
+
"aiDoneEmpty": "模型给出的地址都没能连上",
|
|
158
|
+
"aiDoneHint": "通过的地址已并入左侧环境的「AI」分组;失败的原因在下面,也会写进运行日志。",
|
|
159
|
+
"aiAgain": "换模型再来",
|
|
160
|
+
"aiNoWorkspace": "先选择一个工作区",
|
|
161
|
+
"aiNeedModel": "先选择一个模型",
|
|
162
|
+
"aiBusy": "已有一次 AI 分析在进行",
|
|
163
|
+
"settingsGroupAi": "AI 兜底",
|
|
164
|
+
"settingsAiModel": "默认模型",
|
|
165
|
+
"settingsAiModelHint": "规则没解析到数据库配置时,用这个模型读一遍工作区。候选地址会经真实连接验证后才进树。",
|
|
166
|
+
"settingsAiModelNone": "未选择",
|
|
167
|
+
"settingsAiChoose": "选择模型",
|
|
168
|
+
"settingsAiChange": "更换模型",
|
|
169
|
+
"log.aiStart": "AI 分析开始:{model}",
|
|
170
|
+
"log.aiDone": "AI 分析完成:验证通过 {accepted}/{candidates} 个候选 · {ms}",
|
|
171
|
+
"log.aiFailed": "AI 分析失败:{message}",
|
|
172
|
+
"warning.ai-no-evidence": "工作区里没有找到可供模型分析的配置片段。",
|
|
173
|
+
"warning.ai-candidate-unresolved": "模型提议的地址缺少可解析的账号或密码引用,已忽略。",
|
|
174
|
+
"warning.ai-connect-failed": "模型提议的地址连接失败,已忽略。",
|
|
175
|
+
"warning.ai-unvalidated": "Host 缺少连接校验能力,AI 结果未验证。",
|
|
176
|
+
"aiDefaultTag": "DSH 默认",
|
|
177
|
+
"manualTitle": "手动添加连接",
|
|
178
|
+
"manualOpen": "添加连接",
|
|
179
|
+
"manualOpenHint": "手动添加一个数据库连接(不受工作区配置限制)",
|
|
180
|
+
"manualHint": "给规则和 AI 都找不到的库用:本地容器、共享测试库、客户机房实例。保存前会先连一次,连不上不会写入。",
|
|
181
|
+
"manualLabel": "环境名称",
|
|
182
|
+
"manualLabelPlaceholder": "例如:本地 / 测试库 / 客户 A",
|
|
183
|
+
"manualLabelHint": "同名的连接会合并成同一个环境分组;留空则用「主机:端口」作为环境名",
|
|
184
|
+
"manualHost": "主机",
|
|
185
|
+
"manualPort": "端口",
|
|
186
|
+
"manualUser": "用户名",
|
|
187
|
+
"manualPassword": "密码",
|
|
188
|
+
"manualDatabase": "数据库(可选)",
|
|
189
|
+
"manualDatabaseHint": "留空则只添加实例,进入后可点「列出该实例上的全部库」",
|
|
190
|
+
"manualPrivacy": "连接信息(含密码)由 Host 保存在本工作区目录下的 0600 文件里,浏览器只拿连接 id;所有查询仍走只读网关。",
|
|
191
|
+
"manualSave": "测试并保存",
|
|
192
|
+
"manualSaving": "连接中…",
|
|
193
|
+
"manualNoWorkspace": "先选择一个工作区",
|
|
194
|
+
"manualBadge": "手动",
|
|
195
|
+
"removeConnection": "移除此连接",
|
|
196
|
+
"aiManualInstead": "或者手动填写连接信息",
|
|
197
|
+
"error.manualConnectFailed": "连接失败,未保存",
|
|
198
|
+
"log.manualRemoved": "已移除手动添加的连接",
|
|
199
|
+
"log.manualRemoveFailed": "移除连接失败:{message}",
|
|
200
|
+
"log.manualSaved": "已添加手动连接",
|
|
201
|
+
"rememberedBadge": "已记住",
|
|
202
|
+
"forgetDatabase": "不再记住此库",
|
|
203
|
+
"log.remembered": "已将该库记到工作区:{database}",
|
|
204
|
+
"log.forgotDatabase": "已移除记住的库:{database}",
|
|
205
|
+
"log.forgetDatabaseFailed": "移除记住的库失败:{message}",
|
|
206
|
+
"chooseDatabases": "选择数据库…",
|
|
207
|
+
"schemaTitle": "选择数据库",
|
|
208
|
+
"schemaSearch": "搜索数据库",
|
|
209
|
+
"schemaCount": "已选 {chosen} / 共 {total}",
|
|
210
|
+
"schemaConfigured": "配置",
|
|
211
|
+
"schemaHint": "勾选的库会出现在树里,并记到当前工作区;配置里的库始终显示。",
|
|
212
|
+
"schemaApply": "应用",
|
|
213
|
+
"schemaApplying": "应用中…",
|
|
214
|
+
"schemaLoading": "正在读取实例上的库…",
|
|
215
|
+
"schemaFailed": "读取库列表失败",
|
|
216
|
+
"schemaNoMatch": "没有匹配的库",
|
|
217
|
+
"manualFromSaved": "从已保存的连接带出",
|
|
218
|
+
"manualFromSavedNone": "不导入,手动填写",
|
|
219
|
+
"manualFromSavedHint": "其它工作区解析过、或手动添加过的连接会出现在这里;选中后会填好主机、端口、账号与库。",
|
|
220
|
+
"manualSourceHint": "密码将复用该连接已保存的凭据,不会显示在表单里。",
|
|
221
|
+
"error.savedConnectionMissing": "这条已保存的连接已不存在,请重新填写",
|
|
222
|
+
"renameEnvironment": "重命名环境",
|
|
223
|
+
"renameTitle": "重命名环境",
|
|
224
|
+
"renameLabel": "环境名称",
|
|
225
|
+
"renameHint": "只改显示分组名;这个环境里已选的库会跟着保留。",
|
|
226
|
+
"renameApply": "保存",
|
|
227
|
+
"log.renamedEnvironment": "环境已重命名",
|
|
228
|
+
"removeEnvironment": "删除环境",
|
|
229
|
+
"removeEnvironmentTitle": "删除这个环境?",
|
|
230
|
+
"removeEnvironmentHint": "「{name}」下的连接和已选的库都会被移除,树里不再显示;需要时可从其它工作区重新导入。",
|
|
231
|
+
"removeEnvironmentConfirm": "删除",
|
|
232
|
+
"log.removedEnvironment": "已删除环境:{name}",
|
|
233
|
+
"log.removeEnvironmentFailed": "删除环境失败:{message}",
|
|
234
|
+
"pagePrev": "上一页",
|
|
235
|
+
"pageNext": "下一页",
|
|
236
|
+
"pageLabel": "第 {page} 页 · 每页 {size} 行",
|
|
237
|
+
"log.page": "第 {page} 页:{rows} 行 · {ms}",
|
|
238
|
+
"log.pageEnd": "已到最后一页",
|
|
239
|
+
"editingCellHint": "编辑中:Enter 提交,Esc 取消",
|
|
240
|
+
"menuCopyUpdate": "复制 UPDATE 语句",
|
|
241
|
+
"menuCopyUpdateHint": "用已修改的单元格生成一条 UPDATE(只复制,不执行)",
|
|
242
|
+
"menuCopyCell": "复制单元格值",
|
|
243
|
+
"updateNeedsEdits": "先双击编辑单元格,再复制 UPDATE",
|
|
244
|
+
"updateNeedsPrimaryKey": "当前结果没有主键列,无法生成安全的 WHERE",
|
|
245
|
+
"updateNeedsSingleTable": "当前语句不是单表 SELECT,无法生成 UPDATE",
|
|
246
|
+
"copyUpdateFailed": "剪贴板不可用,复制失败",
|
|
247
|
+
"editsCount": "{count} 处修改",
|
|
248
|
+
"clearEdits": "清除",
|
|
249
|
+
"log.copiedUpdate": "已复制 UPDATE 语句({table},未执行)",
|
|
250
|
+
"log.copiedCell": "已复制单元格值",
|
|
251
|
+
"copyEdits": "复制",
|
|
252
|
+
"copyEditsHint": "复制所有已修改行的 UPDATE 语句(只复制,不执行)",
|
|
253
|
+
"log.copiedUpdates": "已复制 {count} 条 UPDATE 语句(未执行)",
|
|
254
|
+
"export": "导出",
|
|
255
|
+
"exportHint": "导出当前页 {rows} 行",
|
|
256
|
+
"exportXlsx": "Excel 工作簿(.xlsx)",
|
|
257
|
+
"exportCsv": "CSV 文件(.csv)",
|
|
258
|
+
"exportInsert": "INSERT SQL 脚本(.sql)",
|
|
259
|
+
"insertNeedsTable": "当前语句不是单表 SELECT(包含 JOIN / 多表 / 子查询),无法确定写入哪张表。请改成单表查询后再导出。",
|
|
260
|
+
"exportFailed": "导出失败:{message}",
|
|
261
|
+
"log.exported": "已导出 {name}({rows} 行)",
|
|
262
|
+
"log.exportCancelled": "已取消导出",
|
|
263
|
+
"log.exportDownloaded": "当前环境不支持选择保存位置,已下载到默认下载目录:{name}",
|
|
264
|
+
"cellDetailTitle": "{column} · 第 {row} 行",
|
|
265
|
+
"editCell": "编辑单元格",
|
|
266
|
+
"insertNeedsTitle": "无法导出 INSERT 脚本",
|
|
267
|
+
"refreshStructure": "刷新结构",
|
|
268
|
+
"log.refreshingConnection": "正在刷新连接:{name}",
|
|
269
|
+
"log.refreshedStructure": "已刷新 {name} 的结构",
|
|
270
|
+
"editorUndo": "撤销",
|
|
271
|
+
"editorRedo": "重做",
|
|
272
|
+
"editorCut": "剪切",
|
|
273
|
+
"editorCopy": "复制",
|
|
274
|
+
"editorPaste": "粘贴",
|
|
275
|
+
"editorSelectAll": "全选",
|
|
276
|
+
"editorPasteBlocked": "浏览器不允许读取剪贴板,请用 ⌘V 粘贴",
|
|
277
|
+
"sqlOptimize": "AI 优化 SQL",
|
|
278
|
+
"optimizeTitle": "SQL 优化建议",
|
|
279
|
+
"optimizeRunning": "正在分析 SQL…",
|
|
280
|
+
"optimizeNoModel": "还没有配置模型:请到「设置 → 数据库窗口 → AI」里选一个模型",
|
|
281
|
+
"optimizeModelLabel": "模型:{model}",
|
|
282
|
+
"aiModelUnknown": "未配置",
|
|
283
|
+
"optimizeNotes": "优化说明",
|
|
284
|
+
"optimizeCopy": "复制 SQL",
|
|
285
|
+
"log.optimizeCopied": "优化后的 SQL 已复制",
|
|
286
|
+
"tabClose": "关闭",
|
|
287
|
+
"tabCloseOthers": "关闭其他标签页",
|
|
288
|
+
"tabCloseAll": "关闭所有标签页",
|
|
289
|
+
"tabCloseLeft": "关闭左侧标签页",
|
|
290
|
+
"tabCloseRight": "关闭右侧标签页",
|
|
291
|
+
"copyReference": "复制引用",
|
|
292
|
+
"copyReferenceToChat": "复制引用到对话",
|
|
293
|
+
"log.copiedReference": "已复制引用:{reference}",
|
|
294
|
+
"log.copiedReferenceToChat": "已把引用插入对话:{reference}",
|
|
295
|
+
"log.copiedReferenceOnly": "对话输入框未打开,已复制引用:{reference}",
|
|
296
|
+
"tabMenuLabel": "标签页菜单",
|
|
297
|
+
"optimizeOriginal": "原始 SQL",
|
|
298
|
+
"optimizeOptimized": "优化后 SQL",
|
|
299
|
+
"menuDdlAll": "查看全部建表语句",
|
|
300
|
+
"ddlAllEmpty": "这个库还没有表",
|
|
301
|
+
"ddlAllPartial": "{count} 张表读取失败,已在脚本末尾用注释标出",
|
|
302
|
+
"log.ddlAll": "读取 {database} 的全部建表语句:{count} 张表 · {ms}",
|
|
303
|
+
"log.copiedDdlAll": "已复制 {database} 的全部建表语句({count} 张表)"
|
|
304
|
+
}
|