mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 01:46:01 +00:00
raw mode
This commit is contained in:
@@ -722,7 +722,7 @@
|
|||||||
openDatabaseObjectDetail(
|
openDatabaseObjectDetail(
|
||||||
menu.tab,
|
menu.tab,
|
||||||
menu.scriptTemplate,
|
menu.scriptTemplate,
|
||||||
{ ...data, defaultActionId: menu.defaultActionId },
|
{ ...data, defaultActionId: menu.defaultActionId, isRawMode: menu.isRawMode },
|
||||||
menu.forceNewTab,
|
menu.forceNewTab,
|
||||||
menu.initialData,
|
menu.initialData,
|
||||||
menu.icon,
|
menu.icon,
|
||||||
@@ -757,7 +757,7 @@
|
|||||||
export async function openDatabaseObjectDetail(
|
export async function openDatabaseObjectDetail(
|
||||||
tabComponent,
|
tabComponent,
|
||||||
scriptTemplate,
|
scriptTemplate,
|
||||||
{ schemaName, pureName, conid, database, objectTypeField, defaultActionId },
|
{ schemaName, pureName, conid, database, objectTypeField, defaultActionId, isRawMode },
|
||||||
forceNewTab?,
|
forceNewTab?,
|
||||||
initialData?,
|
initialData?,
|
||||||
icon?,
|
icon?,
|
||||||
@@ -791,6 +791,7 @@
|
|||||||
objectTypeField,
|
objectTypeField,
|
||||||
initialArgs: scriptTemplate ? { scriptTemplate } : null,
|
initialArgs: scriptTemplate ? { scriptTemplate } : null,
|
||||||
defaultActionId,
|
defaultActionId,
|
||||||
|
isRawMode,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
initialData,
|
initialData,
|
||||||
@@ -857,6 +858,7 @@
|
|||||||
database,
|
database,
|
||||||
objectTypeField,
|
objectTypeField,
|
||||||
defaultActionId: prefferedAction.defaultActionId,
|
defaultActionId: prefferedAction.defaultActionId,
|
||||||
|
isRawMode: prefferedAction?.isRawMode ?? false,
|
||||||
},
|
},
|
||||||
forceNewTab,
|
forceNewTab,
|
||||||
null,
|
null,
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ function getTableLikeActions(dataTab) {
|
|||||||
tab: dataTab,
|
tab: dataTab,
|
||||||
defaultActionId: 'openTable',
|
defaultActionId: 'openTable',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Open raw data',
|
||||||
|
tab: dataTab,
|
||||||
|
defaultActionId: 'openRawTable',
|
||||||
|
isRawMode: true,
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// label: 'Open form',
|
// label: 'Open form',
|
||||||
// tab: dataTab,
|
// tab: dataTab,
|
||||||
|
|||||||
@@ -108,6 +108,7 @@
|
|||||||
export let database;
|
export let database;
|
||||||
export let schemaName;
|
export let schemaName;
|
||||||
export let pureName;
|
export let pureName;
|
||||||
|
export let isRawMode = false;
|
||||||
|
|
||||||
export const activator = createActivator('TableDataTab', true);
|
export const activator = createActivator('TableDataTab', true);
|
||||||
|
|
||||||
@@ -245,6 +246,8 @@
|
|||||||
...INTERVALS.map(seconds => ({ command: `tableData.setAutoRefresh.${seconds}`, text: `...${seconds} seconds` })),
|
...INTERVALS.map(seconds => ({ command: `tableData.setAutoRefresh.${seconds}`, text: `...${seconds} seconds` })),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: console.log('isRawMode', isRawMode);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ToolStripContainer>
|
<ToolStripContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user