Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: rename `Sql` to `SQL` (#1146)

STEVENbb11f2f493c1
diff --git a/frontend/src/components/CreateInstanceForm.vue b/frontend/src/components/CreateInstanceForm.vue
index 731b95915e..681e3220e4 100644
--- a/frontend/src/components/CreateInstanceForm.vue
+++ b/frontend/src/components/CreateInstanceForm.vue
@@ -237,7 +237,7 @@ import {
InstanceCreate,
UNKNOWN_ID,
ConnectionInfo,
- SqlResultSet,
+ SQLResultSet,
EngineType,
} from "../types";
import isEmpty from "lodash-es/isEmpty";
@@ -391,7 +391,7 @@ const tryCreate = () => {
host: state.instance.host,
port: state.instance.port,
};
- sqlStore.ping(connectionInfo).then((resultSet: SqlResultSet) => {
+ sqlStore.ping(connectionInfo).then((resultSet: SQLResultSet) => {
if (isEmpty(resultSet.error)) {
doCreate();
} else {
@@ -438,7 +438,7 @@ const testConnection = () => {
useEmptyPassword: false,
instanceId: undefined,
};
- sqlStore.ping(connectionInfo).then((resultSet: SqlResultSet) => {
+ sqlStore.ping(connectionInfo).then((resultSet: SQLResultSet) => {
if (isEmpty(resultSet.error)) {
pushNotification({
module: "bytebase",
diff --git a/frontend/src/components/DatabaseTable.vue b/frontend/src/components/DatabaseTable.vue
index 28e24ac3ca..e6ea014cec 100644
--- a/frontend/src/components/DatabaseTable.vue
+++ b/frontend/src/components/DatabaseTable.vue
@@ -66,8 +66,8 @@
<BBTableCell v-if="showMiscColumn" class="w-16">
{{ humanizeTs(database.lastSuccessfulSyncTs) }}
</BBTableCell>
- <BBTableCell v-if="showSqlEditorLink" class="w-16">
- <button class="btn-icon" @click.stop="gotoSqlEditor(database)">
+ <BBTableCell v-if="showSQLEditorLink" class="w-16">
+ <button class="btn-icon" @click.stop="gotoSQLEditor(database)">
<heroicons-outline:terminal class="w-4 h-4" />
</button>
</BBTableCell>
@@ -266,7 +266,7 @@ const showMiscColumn = computed(() => {
const columnList = computed(() => {
var list: BBTableColumn[] = columnListMap.value.get(props.mode)!;
- if (showSqlEditorLink.value) {
+ if (showSQLEditorLink.value) {
// Use cloneDeep, otherwise it will alter the one in columnListMap
list = cloneDeep(list);
list.push({ title: t("sql-editor.self") });
@@ -274,14 +274,14 @@ const columnList = computed(() => {
return list;
});
-const showSqlEditorLink = computed(() => {
+const showSQLEditorLink = computed(() => {
if (props.mode == "ALL_SHORT" || props.mode == "PROJECT_SHORT") {
return false;
}
return true;
});
-const gotoSqlEditor = (database: Database) => {
+const gotoSQLEditor = (database: Database) => {
// SQL editors can only query databases in the projects available to the user.
if (
database.projectId === UNKNOWN_ID ||
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index 2762efd514..e03aa432dd 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -284,7 +284,7 @@ import {
InstancePatch,
DataSourceType,
Instance,
- SqlResultSet,
+ SQLResultSet,
ConnectionInfo,
DataSource,
UNKNOWN_ID,
@@ -627,7 +627,7 @@ const testConnection = () => {
port: state.instance.port,
instanceId: state.instance.id,
};
- sqlStore.ping(connectionInfo).then((resultSet: SqlResultSet) => {
+ sqlStore.ping(connectionInfo).then((resultSet: SQLResultSet) => {
if (isEmpty(resultSet.error)) {
pushNotification({
module: "bytebase",
diff --git a/frontend/src/components/MonacoEditor/MonacoEditor.vue b/frontend/src/components/MonacoEditor/MonacoEditor.vue
index 6a063675c9..4b8c1438f1 100644
--- a/frontend/src/components/MonacoEditor/MonacoEditor.vue
+++ b/frontend/src/components/MonacoEditor/MonacoEditor.vue
@@ -24,7 +24,7 @@ import {
useSQLEditorStore,
useSheetStore,
} from "@/store";
-import { SqlDialect } from "../../types";
+import { SQLDialect } from "../../types";
import { useLineDecorations } from "./lineDecorations";
const props = defineProps({
@@ -150,7 +150,7 @@ const init = async () => {
});
return;
}
- formatContent(editorInstance, language.value as SqlDialect);
+ formatContent(editorInstance, language.value as SQLDialect);
nextTick(() => setPositionAtEndOfLine(editorInstance));
},
});
@@ -230,7 +230,7 @@ watch(
() => sqlEditorStore.shouldFormatContent,
() => {
if (sqlEditorStore.shouldFormatContent) {
- formatContent(editorInstance, language.value as SqlDialect);
+ formatContent(editorInstance, language.value as SQLDialect);
nextTick(() => {
setPositionAtEndOfLine(editorInstance);
editorInstance.focus();
diff --git a/frontend/src/components/MonacoEditor/sqlFormatter.ts b/frontend/src/components/MonacoEditor/sqlFormatter.ts
index acd6fb38a5..595047ab10 100644
--- a/frontend/src/components/MonacoEditor/sqlFormatter.ts
+++ b/frontend/src/components/MonacoEditor/sqlFormatter.ts
@@ -1,13 +1,13 @@
import { format, FormatOptions } from "sql-formatter";
-import { SqlDialect } from "../../types";
+import { SQLDialect } from "../../types";
type FormatResult = {
data: string;
error: Error | null;
};
-const formatSQL = (sql: string, dialect: SqlDialect): FormatResult => {
+const formatSQL = (sql: string, dialect: SQLDialect): FormatResult => {
const options: FormatOptions = {
language: dialect,
};
diff --git a/frontend/src/components/MonacoEditor/useMonaco.ts b/frontend/src/components/MonacoEditor/useMonaco.ts
index 2917c81598..a734abce4e 100644
--- a/frontend/src/components/MonacoEditor/useMonaco.ts
+++ b/frontend/src/components/MonacoEditor/useMonaco.ts
@@ -3,7 +3,7 @@ import * as monaco from "monaco-editor";
import type { editor as Editor } from "monaco-editor";
import AutoCompletion from "./AutoCompletion";
-import { Database, Table, CompletionItems, SqlDialect } from "../../types";
+import { Database, Table, CompletionItems, SQLDialect } from "../../types";
import sqlFormatter from "./sqlFormatter";
import {
useDatabaseStore,
@@ -200,7 +200,7 @@ const useMonaco = async (lang: string) => {
const formatContent = (
editorInstance: Editor.IStandaloneCodeEditor,
- language: SqlDialect
+ language: SQLDialect
) => {
if (editorInstance) {
const sql = editorInstance.getValue();
diff --git a/frontend/src/components/ProvideSqlEditorContext.vue b/frontend/src/components/ProvideSQLEditorContext.vue
similarity index 97%
rename from frontend/src/components/ProvideSqlEditorContext.vue
rename to frontend/src/components/ProvideSQLEditorContext.vue
index d755a93c87..56d507e052 100644
--- a/frontend/src/components/ProvideSqlEditorContext.vue
+++ b/frontend/src/components/ProvideSQLEditorContext.vue
@@ -66,7 +66,7 @@ const prepareAccessibleConnectionByProject = async () => {
await Promise.all(promises);
};
-const prepareSqlEditorContext = async () => {
+const prepareSQLEditorContext = async () => {
sqlEditorStore.setConnectionContext({ isLoadingTree: true });
let connectionTree = [];
@@ -125,6 +125,6 @@ const prepareSqlEditorContext = async () => {
onMounted(async () => {
await prepareAccessibleConnectionByProject();
- await prepareSqlEditorContext();
+ await prepareSQLEditorContext();
});
</script>
diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.ts
index 65cb2a00b0..80f7dc7b94 100644
--- a/frontend/src/composables/useExecuteSQL.ts
+++ b/frontend/src/composables/useExecuteSQL.ts
@@ -80,7 +80,7 @@ const useExecuteSQL = () => {
}
// only DDL and DML statements are allowed
if (isDDLStatement(data) || isDMLStatement(data)) {
- sqlEditorStore.setSqlEditorState({
+ sqlEditorStore.setSQLEditorState({
isShowExecutingHint: true,
});
return;
diff --git a/frontend/src/layouts/SqlEditorLayout.vue b/frontend/src/layouts/SQLEditorLayout.vue
similarity index 89%
rename from frontend/src/layouts/SqlEditorLayout.vue
rename to frontend/src/layouts/SQLEditorLayout.vue
index 7107b2fbfd..f81b726933 100644
--- a/frontend/src/layouts/SqlEditorLayout.vue
+++ b/frontend/src/layouts/SQLEditorLayout.vue
@@ -15,9 +15,9 @@
<!-- Suspense is experimental, be aware of the potential change -->
<Suspense>
<template #default>
- <ProvideSqlEditorContext>
+ <ProvideSQLEditorContext>
<router-view />
- </ProvideSqlEditorContext>
+ </ProvideSQLEditorContext>
</template>
<template #fallback>
<div class="flex flex-row justify-between p-4 space-x-2">
@@ -35,8 +35,8 @@
</template>
<script lang="ts" setup>
-import ProvideSqlEditorContext from "@/components/ProvideSqlEditorContext.vue";
-import EditorHeader from "@/views/SqlEditor/EditorHeader.vue";
+import ProvideSQLEditorContext from "@/components/ProvideSQLEditorContext.vue";
+import EditorHeader from "@/views/sql-editor/EditorHeader.vue";
import BannerDemo from "@/views/BannerDemo.vue";
import BannerTrial from "@/views/BannerTrial.vue";
import { ServerInfo } from "../types";
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 8900d26b16..c5c26e4258 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -4,7 +4,6 @@ import { createApp } from "vue";
import App from "./App.vue";
import i18n from "./plugins/i18n";
-import splitpanes from "./plugins/splitpanes";
import NaiveUI from "./plugins/naive-ui";
import dayjs from "./plugins/dayjs";
import "./assets/css/inter.css";
@@ -135,7 +134,6 @@ app
.use(pinia)
.use(router)
.use(i18n)
- .use(splitpanes)
.use(NaiveUI);
// We need to restore the basic info in order to perform route authentication.
diff --git a/frontend/src/plugins/splitpanes.ts b/frontend/src/plugins/splitpanes.ts
deleted file mode 100644
index 34e1319ef0..0000000000
--- a/frontend/src/plugins/splitpanes.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { App } from "vue";
-
-import { Splitpanes, Pane } from "splitpanes";
-import "splitpanes/dist/splitpanes.css";
-
-export default function install(app: App): void {
- app.component("Splitpanes", Splitpanes);
- app.component("Pane", Pane);
-}
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 27edabcc6c..f5e4dad907 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -10,7 +10,7 @@ import DashboardLayout from "../layouts/DashboardLayout.vue";
import DatabaseLayout from "../layouts/DatabaseLayout.vue";
import InstanceLayout from "../layouts/InstanceLayout.vue";
import SplashLayout from "../layouts/SplashLayout.vue";
-import SqlEditorLayout from "../layouts/SqlEditorLayout.vue";
+import SQLEditorLayout from "../layouts/SQLEditorLayout.vue";
import { t } from "../plugins/i18n";
import {
useAuthStore,
@@ -782,27 +782,27 @@ const routes: Array<RouteRecordRaw> = [
{
path: "/sql-editor",
name: "sql-editor",
- component: SqlEditorLayout,
+ component: SQLEditorLayout,
children: [
{
path: "",
name: "sql-editor.home",
meta: { title: () => "SQL Editor" },
- component: () => import("../views/SqlEditor/SqlEditor.vue"),
+ component: () => import("../views/sql-editor/SQLEditor.vue"),
props: true,
},
{
path: "/sql-editor/:connectionSlug",
name: "sql-editor.detail",
meta: { title: () => "SQL Editor" },
- component: () => import("../views/SqlEditor/SqlEditor.vue"),
+ component: () => import("../views/sql-editor/SQLEditor.vue"),
props: true,
},
{
path: "/sql-editor/:connectionSlug/:sheetSlug",
name: "sql-editor.share",
meta: { title: () => "SQL Editor" },
- component: () => import("../views/SqlEditor/SqlEditor.vue"),
+ component: () => import("../views/sql-editor/SQLEditor.vue"),
props: true,
},
],
@@ -1215,7 +1215,7 @@ router.beforeEach((to, from, next) => {
tabStore.updateCurrentTab({
sheetId: sheet.id,
});
- useSQLEditorStore().setSqlEditorState({
+ useSQLEditorStore().setSQLEditorState({
sharedSheet: sheet,
});
diff --git a/frontend/src/store/modules/instance.ts b/frontend/src/store/modules/instance.ts
index bda3e2a351..a53c471146 100644
--- a/frontend/src/store/modules/instance.ts
+++ b/frontend/src/store/modules/instance.ts
@@ -20,7 +20,7 @@ import {
ResourceIdentifier,
ResourceObject,
RowStatus,
- SqlResultSet,
+ SQLResultSet,
unknown,
} from "@/types";
import { InstanceUser } from "@/types/InstanceUser";
@@ -387,14 +387,14 @@ export const useInstanceStore = defineStore("instance", {
error: data.attributes.error,
};
},
- async createMigrationSetup(instanceId: InstanceId): Promise<SqlResultSet> {
+ async createMigrationSetup(instanceId: InstanceId): Promise<SQLResultSet> {
const data = (
await axios.post(`/api/instance/${instanceId}/migration`, undefined, {
timeout: INSTANCE_OPERATION_TIMEOUT,
})
).data.data;
- return useSQLStore().convert(data) as SqlResultSet;
+ return useSQLStore().convert(data) as SQLResultSet;
},
async fetchMigrationHistoryById({
instanceId,
diff --git a/frontend/src/store/modules/sheet.ts b/frontend/src/store/modules/sheet.ts
index 3d60c050f9..e5a499be15 100644
--- a/frontend/src/store/modules/sheet.ts
+++ b/frontend/src/store/modules/sheet.ts
@@ -189,7 +189,7 @@ export const useSheetStore = defineStore("sheet", {
// retrieve
async fetchSheetList() {
const sqlEditorStore = useSQLEditorStore();
- sqlEditorStore.setSqlEditorState({ isFetchingSheet: true });
+ sqlEditorStore.setSQLEditorState({ isFetchingSheet: true });
const data = (await axios.get(`/api/sheet`)).data;
const sheetList: Sheet[] = data.data.map((rawData: ResourceObject) => {
const sheet = convertSheet(rawData, data.included);
@@ -201,7 +201,7 @@ export const useSheetStore = defineStore("sheet", {
});
this.setSheetList(sheetList.sort((a, b) => b.createdTs - a.createdTs));
- sqlEditorStore.setSqlEditorState({ isFetchingSheet: false });
+ sqlEditorStore.setSQLEditorState({ isFetchingSheet: false });
},
async fetchSheetById(sheetId: SheetId) {
const data = (await axios.get(`/api/sheet/${sheetId}`)).data;
diff --git a/frontend/src/store/modules/sql.ts b/frontend/src/store/modules/sql.ts
index 7f3e87c86a..2a97d3f9a5 100644
--- a/frontend/src/store/modules/sql.ts
+++ b/frontend/src/store/modules/sql.ts
@@ -6,12 +6,12 @@ import {
INSTANCE_OPERATION_TIMEOUT,
QueryInfo,
ResourceObject,
- SqlResultSet,
+ SQLResultSet,
} from "@/types";
import { useDatabaseStore } from "./database";
import { useInstanceStore } from "./instance";
-function convert(resultSet: ResourceObject): SqlResultSet {
+function convert(resultSet: ResourceObject): SQLResultSet {
return {
data: JSON.parse((resultSet.attributes.data as string) || "{}"),
error: resultSet.attributes.error as string,
@@ -20,7 +20,7 @@ function convert(resultSet: ResourceObject): SqlResultSet {
export const useSQLStore = defineStore("sql", {
actions: {
- convert(resultSet: ResourceObject): SqlResultSet {
+ convert(resultSet: ResourceObject): SQLResultSet {
return convert(resultSet);
},
diff --git a/frontend/src/store/modules/sqlEditor.ts b/frontend/src/store/modules/sqlEditor.ts
index 3b0953157d..fc44562bc2 100644
--- a/frontend/src/store/modules/sqlEditor.ts
+++ b/frontend/src/store/modules/sqlEditor.ts
@@ -2,7 +2,7 @@ import { defineStore } from "pinia";
import dayjs from "dayjs";
import { isEmpty } from "lodash-es";
import {
- SqlEditorState,
+ SQLEditorState,
ConnectionAtom,
QueryInfo,
ConnectionContext,
@@ -38,7 +38,7 @@ export const getDefaultConnectionContext = () => ({
});
export const useSQLEditorStore = defineStore("sqlEditor", {
- state: (): SqlEditorState => ({
+ state: (): SQLEditorState => ({
connectionTree: [],
connectionContext: getDefaultConnectionContext(),
isExecuting: false,
@@ -140,7 +140,7 @@ export const useSQLEditorStore = defineStore("sqlEditor", {
},
actions: {
- setSqlEditorState(payload: Partial<SqlEditorState>) {
+ setSQLEditorState(payload: Partial<SQLEditorState>) {
Object.assign(this, payload);
},
setConnectionTree(payload: ConnectionAtom[]) {
@@ -176,7 +176,7 @@ export const useSQLEditorStore = defineStore("sqlEditor", {
async fetchConnectionByInstanceIdAndDatabaseId({
instanceId,
databaseId,
- }: Pick<SqlEditorState["connectionContext"], "instanceId" | "databaseId">) {
+ }: Pick<SQLEditorState["connectionContext"], "instanceId" | "databaseId">) {
const instance = await useInstanceStore().fetchInstanceById(instanceId);
const database = await useDatabaseStore().fetchDatabaseById(databaseId);
diff --git a/frontend/src/types/sql.ts b/frontend/src/types/sql.ts
index fb5a3be61d..81ec9b6f1b 100644
--- a/frontend/src/types/sql.ts
+++ b/frontend/src/types/sql.ts
@@ -23,7 +23,7 @@ export type QueryInfo = {
limit?: number;
};
-export type SqlResultSet = {
+export type SQLResultSet = {
data: string;
error: string;
};
diff --git a/frontend/src/types/sqlEditor.ts b/frontend/src/types/sqlEditor.ts
index 6a5c70a507..1f66bded4c 100644
--- a/frontend/src/types/sqlEditor.ts
+++ b/frontend/src/types/sqlEditor.ts
@@ -16,7 +16,7 @@ export type EditorPosition = monaco.Position;
export type CompletionItems = monaco.languages.CompletionItem[];
export type ConnectionAtomType = "instance" | "database" | "table" | "view";
-export type SqlDialect = "mysql" | "postgresql";
+export type SQLDialect = "mysql" | "postgresql";
export interface ConnectionAtom {
parentId: InstanceId | DatabaseId | TableId | ViewId;
diff --git a/frontend/src/types/store.ts b/frontend/src/types/store.ts
index 130a8fd3be..867ef642ec 100644
--- a/frontend/src/types/store.ts
+++ b/frontend/src/types/store.ts
@@ -184,8 +184,7 @@ export interface LabelState {
labelList: Label[];
}
-// type for vuex
-export interface SqlEditorState {
+export interface SQLEditorState {
connectionTree: ConnectionAtom[];
connectionContext: ConnectionContext;
shouldSetContent: boolean;
diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vue
index 30ce882d3a..2f2b0a5121 100644
--- a/frontend/src/views/DatabaseDetail.vue
+++ b/frontend/src/views/DatabaseDetail.vue
@@ -83,7 +83,7 @@
</template>
<dd
class="flex items-center text-sm md:mr-4 cursor-pointer textlabel hover:text-accent"
- @click.prevent="gotoSqlEditor"
+ @click.prevent="gotoSQLEditor"
>
<span class="mr-1">{{ $t("sql-editor.self") }}</span>
<heroicons-outline:terminal class="w-4 h-4" />
@@ -628,7 +628,7 @@ export default defineComponent({
}
};
- const gotoSqlEditor = () => {
+ const gotoSQLEditor = () => {
// SQL editors can only query databases in the projects available to the user.
if (
database.value.projectId === UNKNOWN_ID ||
@@ -686,7 +686,7 @@ export default defineComponent({
updateProject,
updateLabels,
selectTab,
- gotoSqlEditor,
+ gotoSQLEditor,
doTransfer,
hidePrefix,
};
diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vue
index 945c618991..ff94cfce71 100644
--- a/frontend/src/views/InstanceDetail.vue
+++ b/frontend/src/views/InstanceDetail.vue
@@ -151,7 +151,7 @@ import {
Instance,
InstanceMigration,
MigrationSchemaStatus,
- SqlResultSet,
+ SQLResultSet,
} from "../types";
import { BBTabFilterItem } from "../bbkit/types";
import { useI18n } from "vue-i18n";
@@ -367,7 +367,7 @@ const doCreateMigrationSchema = () => {
state.creatingMigrationSchema = true;
instanceStore
.createMigrationSetup(instance.value.id)
- .then((resultSet: SqlResultSet) => {
+ .then((resultSet: SQLResultSet) => {
state.creatingMigrationSchema = false;
if (resultSet.error) {
pushNotification({
@@ -398,7 +398,7 @@ const syncSchema = () => {
state.syncingSchema = true;
sqlStore
.syncSchema(instance.value.id)
- .then((resultSet: SqlResultSet) => {
+ .then((resultSet: SQLResultSet) => {
state.syncingSchema = false;
if (resultSet.error) {
pushNotification({
diff --git a/frontend/src/views/TableDetail.vue b/frontend/src/views/TableDetail.vue
index 13877ef22f..b00e598981 100644
--- a/frontend/src/views/TableDetail.vue
+++ b/frontend/src/views/TableDetail.vue
@@ -71,7 +71,7 @@
<span class="ml-2 textlabel">
{{ $t("sql-editor.self") }}
</span>
- <button class="ml-1 btn-icon" @click.prevent="gotoSqlEditor">
+ <button class="ml-1 btn-icon" @click.prevent="gotoSQLEditor">
<heroicons-outline:terminal class="w-4 h-4" />
</button>
</dd>
@@ -241,7 +241,7 @@ export default defineComponent({
return table.value.database;
});
- const gotoSqlEditor = () => {
+ const gotoSQLEditor = () => {
router.push({
name: "sql-editor.detail",
params: {
@@ -253,7 +253,7 @@ export default defineComponent({
return {
table,
database,
- gotoSqlEditor,
+ gotoSQLEditor,
bytesToString,
};
},
diff --git a/frontend/src/views/SqlEditor/AsidePanel/AsidePanel.vue b/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/AsidePanel/AsidePanel.vue
rename to frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
diff --git a/frontend/src/views/SqlEditor/AsidePanel/DatabaseTree.vue b/frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/AsidePanel/DatabaseTree.vue
rename to frontend/src/views/sql-editor/AsidePanel/DatabaseTree.vue
diff --git a/frontend/src/views/SqlEditor/AsidePanel/QueryHistoryContainer.vue b/frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/AsidePanel/QueryHistoryContainer.vue
rename to frontend/src/views/sql-editor/AsidePanel/QueryHistoryContainer.vue
diff --git a/frontend/src/views/SqlEditor/AsidePanel/SheetContainer.vue b/frontend/src/views/sql-editor/AsidePanel/SheetContainer.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/AsidePanel/SheetContainer.vue
rename to frontend/src/views/sql-editor/AsidePanel/SheetContainer.vue
diff --git a/frontend/src/views/SqlEditor/AsidePanel/TableSchema.vue b/frontend/src/views/sql-editor/AsidePanel/TableSchema.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/AsidePanel/TableSchema.vue
rename to frontend/src/views/sql-editor/AsidePanel/TableSchema.vue
diff --git a/frontend/src/views/SqlEditor/EditorHeader.vue b/frontend/src/views/sql-editor/EditorHeader.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorHeader.vue
rename to frontend/src/views/sql-editor/EditorHeader.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/ConnectionHolder.vue b/frontend/src/views/sql-editor/EditorPanel/ConnectionHolder.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/ConnectionHolder.vue
rename to frontend/src/views/sql-editor/EditorPanel/ConnectionHolder.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/EditorAction.vue b/frontend/src/views/sql-editor/EditorPanel/EditorAction.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/EditorAction.vue
rename to frontend/src/views/sql-editor/EditorPanel/EditorAction.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/EditorPanel.vue b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
similarity index 98%
rename from frontend/src/views/SqlEditor/EditorPanel/EditorPanel.vue
rename to frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
index 8264e90b2b..cb228326ef 100644
--- a/frontend/src/views/SqlEditor/EditorPanel/EditorPanel.vue
+++ b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue
@@ -44,7 +44,7 @@ const sheetStore = useSheetStore();
const isShowSaveSheetModal = ref(false);
const handleClose = () => {
- sqlEditorStore.setSqlEditorState({
+ sqlEditorStore.setSQLEditorState({
isShowExecutingHint: false,
});
};
diff --git a/frontend/src/views/SqlEditor/EditorPanel/ExecuteHint.vue b/frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/ExecuteHint.vue
rename to frontend/src/views/sql-editor/EditorPanel/ExecuteHint.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/QueryEditor.vue b/frontend/src/views/sql-editor/EditorPanel/QueryEditor.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/QueryEditor.vue
rename to frontend/src/views/sql-editor/EditorPanel/QueryEditor.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/SaveSheetModal.vue b/frontend/src/views/sql-editor/EditorPanel/SaveSheetModal.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/SaveSheetModal.vue
rename to frontend/src/views/sql-editor/EditorPanel/SaveSheetModal.vue
diff --git a/frontend/src/views/SqlEditor/EditorPanel/SharePopover.vue b/frontend/src/views/sql-editor/EditorPanel/SharePopover.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/EditorPanel/SharePopover.vue
rename to frontend/src/views/sql-editor/EditorPanel/SharePopover.vue
diff --git a/frontend/src/views/SqlEditor/GettingStarted.vue b/frontend/src/views/sql-editor/GettingStarted.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/GettingStarted.vue
rename to frontend/src/views/sql-editor/GettingStarted.vue
diff --git a/frontend/src/views/SqlEditor/SqlEditor.vue b/frontend/src/views/sql-editor/SQLEditor.vue
similarity index 96%
rename from frontend/src/views/SqlEditor/SqlEditor.vue
rename to frontend/src/views/sql-editor/SQLEditor.vue
index 9705956608..dd82f50ff4 100644
--- a/frontend/src/views/SqlEditor/SqlEditor.vue
+++ b/frontend/src/views/sql-editor/SQLEditor.vue
@@ -26,12 +26,14 @@
<script lang="ts" setup>
import { computed } from "vue";
+import { useTabStore, useSQLEditorStore } from "@/store";
import AsidePanel from "./AsidePanel/AsidePanel.vue";
import EditorPanel from "./EditorPanel/EditorPanel.vue";
import TabListContainer from "./TabListContainer.vue";
import TablePanel from "./TablePanel/TablePanel.vue";
import GettingStarted from "./GettingStarted.vue";
-import { useTabStore, useSQLEditorStore } from "@/store";
+import { Splitpanes, Pane } from "splitpanes";
+import "splitpanes/dist/splitpanes.css";
const tabStore = useTabStore();
const sqlEditorStore = useSQLEditorStore();
diff --git a/frontend/src/views/SqlEditor/TabListContainer.vue b/frontend/src/views/sql-editor/TabListContainer.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/TabListContainer.vue
rename to frontend/src/views/sql-editor/TabListContainer.vue
diff --git a/frontend/src/views/SqlEditor/TablePanel/TablePanel.vue b/frontend/src/views/sql-editor/TablePanel/TablePanel.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/TablePanel/TablePanel.vue
rename to frontend/src/views/sql-editor/TablePanel/TablePanel.vue
diff --git a/frontend/src/views/SqlEditor/TablePanel/TableView.vue b/frontend/src/views/sql-editor/TablePanel/TableView.vue
similarity index 100%
rename from frontend/src/views/SqlEditor/TablePanel/TableView.vue
rename to frontend/src/views/sql-editor/TablePanel/TableView.vue