Skip to content

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

fix: miscellaneous after pinia refactor (part.2) (#1115)

Liu Ji3642f2f766ef
diff --git a/frontend/src/composables/useSQLEditorConnection.ts b/frontend/src/composables/useSQLEditorConnection.ts
index 42e251d0bb..7cddbb23e1 100644
--- a/frontend/src/composables/useSQLEditorConnection.ts
+++ b/frontend/src/composables/useSQLEditorConnection.ts
@@ -2,7 +2,7 @@ import { useRouter } from "vue-router";
import { DEFAULT_PROJECT_ID, SheetState, UNKNOWN_ID } from "../types";
import { connectionSlug } from "../utils";
-import { getDefaultConnectionContext } from "@/store/pinia-modules/sqlEditor";
+import { getDefaultConnectionContext } from "@/store";
import {
useDatabaseStore,
useTabStore,
diff --git a/frontend/src/store/mutation-types.ts b/frontend/src/store/mutation-types.ts
deleted file mode 100644
index eb109853d6..0000000000
--- a/frontend/src/store/mutation-types.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// SQL Editor mutation types
-export const SET_SQL_EDITOR_STATE = "SET_SQL_EDITOR_STATE";
-export const SET_CONNECTION_TREE = "SET_CONNECTION_TREE";
-export const SET_CONNECTION_CONTEXT = "SET_CONNECTION_CONTEXT";
-export const SET_SHOULD_SET_CONTENT = "SET_SHOULD_SET_CONTENT";
-export const SET_SHOULD_FORMAT_CONTENT = "SET_SHOULD_FORMAT_CONTENT";
-export const SET_IS_EXECUTING = "SET_IS_EXECUTING";
-export const SET_QUERY_HISTORY_LIST = "SET_QUERY_HISTORY_LIST";
-export const SET_IS_FETCHING_QUERY_HISTORY = "SET_IS_FETCHING_QUERY_HISTORY";
-
-// Sheet mutation types
-export const SET_SHEET_STATE = "SET_SHEET_STATE";
-export const SET_SHEET_LIST = "SET_SHEET_LIST";
-export const SET_SHEET_BY_ID = "SET_SHEET_BY_ID";
-export const DELETE_SHEET = "DELETE_SHEET";
diff --git a/frontend/src/store/pinia.ts b/frontend/src/store/pinia.ts
deleted file mode 100644
index 0d4348a4ec..0000000000
--- a/frontend/src/store/pinia.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { createPinia } from "pinia";
-
-export const pinia = createPinia();
-
-export * from "./pinia-modules";