mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 08:26:01 +00:00
query history with search
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import { onMount } from 'svelte';
|
||||
import socket from '../utility/socket';
|
||||
import axiosInstance from '../utility/axiosInstance';
|
||||
import openNewTab from '../utility/openNewTab';
|
||||
|
||||
let filter = '';
|
||||
let search = '';
|
||||
@@ -50,7 +51,24 @@
|
||||
</SearchBoxWrapper>
|
||||
<WidgetsInnerContainer>
|
||||
{#each historyItems as item}
|
||||
<div class="wrapper" title={item.sql}>
|
||||
<div
|
||||
class="wrapper"
|
||||
title={item.sql}
|
||||
on:click={() => {
|
||||
openNewTab(
|
||||
{
|
||||
title: 'Query #',
|
||||
icon: 'icon sql-file',
|
||||
tabComponent: 'QueryTab',
|
||||
props: {
|
||||
conid: item.conid,
|
||||
database: item.database,
|
||||
},
|
||||
},
|
||||
{ editor: item.sql }
|
||||
);
|
||||
}}
|
||||
>
|
||||
<div class="sql">
|
||||
<FontIcon icon="icon sql-file" />
|
||||
{item.sql}
|
||||
|
||||
Reference in New Issue
Block a user