mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 00:06:01 +00:00
removed free table (data sheet) concept
This commit is contained in:
17
packages/web/src/utility/openJsonLinesData.ts
Normal file
17
packages/web/src/utility/openJsonLinesData.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import uuidv1 from 'uuid/v1';
|
||||
import { apiCall } from './api';
|
||||
import openNewTab from './openNewTab';
|
||||
|
||||
export async function openJsonLinesData(rows) {
|
||||
const jslid = uuidv1();
|
||||
|
||||
await apiCall('jsldata/save-rows', { jslid, rows });
|
||||
openNewTab({
|
||||
tabComponent: 'ArchiveFileTab',
|
||||
icon: 'img archive',
|
||||
title: 'Data #',
|
||||
props: {
|
||||
jslid,
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user