diff --git a/src/api/constants.ts b/src/api/constants.ts index 59c9e00f..75aa334b 100644 --- a/src/api/constants.ts +++ b/src/api/constants.ts @@ -1,7 +1,5 @@ const API_V1 = 'api/v1'; -// const baseURL = process.env.REACT_APP_API_URL || '/'; - // Streams Management export const LOG_STREAM_LIST_URL = `${API_V1}/logstream`; export const LOG_STREAMS_SCHEMA_URL = (streamName: string) => `${LOG_STREAM_LIST_URL}/${streamName}/schema`; @@ -20,12 +18,5 @@ export const USER_URL = (username: string) => `${USERS_LIST_URL}/${username}`; export const USER_ROLES_URL = (username: string) => `${USER_URL(username)}/role`; export const USER_PASSWORD_URL = (username: string) => `${USER_URL(username)}/generate-new-password`; -// Roles Management -export const ROLES_LIST_URL = `${API_V1}/role`; -export const ROLE_URL = (roleName: string) => `${ROLES_LIST_URL}/${roleName}`; - -//USERS LOGIN -export const LOGIN_URL = `${API_V1}/o/login?redirect=${window.location.origin}`; - // LLM queries export const LLM_QUERY_URL = `${API_V1}/llm`; diff --git a/src/pages/Query/QueryCodeEditor.tsx b/src/pages/Query/QueryCodeEditor.tsx index 09d44153..832aa3b4 100644 --- a/src/pages/Query/QueryCodeEditor.tsx +++ b/src/pages/Query/QueryCodeEditor.tsx @@ -112,6 +112,15 @@ const QueryCodeEditor: FC = () => { const query = sanitseSqlString(inputQuery); resetData(); + notifications.show({ + id: 'load-data', + loading: true, + color: '#545BEB', + title: 'Running Query', + message: 'Data will be loaded.', + autoClose: false, + withCloseButton: false, + }); let LogQuery = { startTime: subLogQuery.get().startTime, endTime: subLogQuery.get().endTime, diff --git a/src/utils/index.ts b/src/utils/index.ts index ed3e529d..3b739354 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,4 +1,3 @@ -import { Field } from '@/@types/parseable/dataType'; import dayjs from 'dayjs'; export const wait = (sec = 1) => new Promise((res) => setTimeout(res, sec * 1000));