Skip to content

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

Code hygine, remove unused import

Tianzhou Chen553bd575f9b2
diff --git a/frontend/src/bbkit/BBAvatar.vue b/frontend/src/bbkit/BBAvatar.vue
index 76fc2ec855..e16797398d 100644
--- a/frontend/src/bbkit/BBAvatar.vue
+++ b/frontend/src/bbkit/BBAvatar.vue
@@ -10,7 +10,6 @@
<script lang="ts">
import { computed, PropType } from "vue";
-import isEmpty from "lodash-es/isEmpty";
import { hashCode } from "./BBUtil";
diff --git a/frontend/src/bbkit/BBStepBar.vue b/frontend/src/bbkit/BBStepBar.vue
index afa226cd14..37bc7ef4c2 100644
--- a/frontend/src/bbkit/BBStepBar.vue
+++ b/frontend/src/bbkit/BBStepBar.vue
@@ -100,7 +100,7 @@
</template>
<script lang="ts">
-import { computed, reactive, PropType } from "vue";
+import { PropType } from "vue";
import { BBStep, BBStepStatus } from "./types";
export default {
diff --git a/frontend/src/bbkit/BBTabPanel.vue b/frontend/src/bbkit/BBTabPanel.vue
index 9cd5e054e2..a282ae2f56 100644
--- a/frontend/src/bbkit/BBTabPanel.vue
+++ b/frontend/src/bbkit/BBTabPanel.vue
@@ -5,8 +5,6 @@
</template>
<script lang="ts">
-import { computed, reactive } from "vue";
-
export default {
name: "BBTabPanel",
props: {
diff --git a/frontend/src/bbkit/BBTable/BBTableCell.vue b/frontend/src/bbkit/BBTable/BBTableCell.vue
index 75669bf4b0..a0888ff593 100644
--- a/frontend/src/bbkit/BBTable/BBTableCell.vue
+++ b/frontend/src/bbkit/BBTable/BBTableCell.vue
@@ -8,8 +8,6 @@
</template>
<script lang="ts">
-import { computed, reactive } from "vue";
-
export default {
name: "BBTableCell",
props: {
diff --git a/frontend/src/components/EnvironmentForm.vue b/frontend/src/components/EnvironmentForm.vue
index 4d4b39890c..606232292a 100644
--- a/frontend/src/components/EnvironmentForm.vue
+++ b/frontend/src/components/EnvironmentForm.vue
@@ -83,7 +83,6 @@ input[type="number"] {
import { computed, reactive, PropType } from "vue";
import isEqual from "lodash-es/isEqual";
import { Environment, NewEnvironment } from "../types";
-import environment from "../store/modules/environment";
interface LocalState {
environment?: Environment | NewEnvironment;
diff --git a/frontend/src/components/GroupSidePanel.vue b/frontend/src/components/GroupSidePanel.vue
index d3a8f6b8cd..b24de0f22b 100644
--- a/frontend/src/components/GroupSidePanel.vue
+++ b/frontend/src/components/GroupSidePanel.vue
@@ -39,7 +39,7 @@
</template>
<script lang="ts">
-import { onMounted, computed, inject, PropType } from "vue";
+import { computed, PropType } from "vue";
import { useStore } from "vuex";
import { Group, GroupId } from "../types";
diff --git a/frontend/src/components/ProjectSidePanel.vue b/frontend/src/components/ProjectSidePanel.vue
index f6e2abe248..bed261cc48 100644
--- a/frontend/src/components/ProjectSidePanel.vue
+++ b/frontend/src/components/ProjectSidePanel.vue
@@ -45,7 +45,7 @@
</template>
<script lang="ts">
-import { onMounted, computed, inject, PropType } from "vue";
+import { computed, PropType } from "vue";
import { useStore } from "vuex";
import { Project, ProjectId } from "../types";
diff --git a/frontend/src/miragejs/factories/environment.js b/frontend/src/miragejs/factories/environment.js
index b685e8dc9a..3d317180f5 100644
--- a/frontend/src/miragejs/factories/environment.js
+++ b/frontend/src/miragejs/factories/environment.js
@@ -1,6 +1,4 @@
import { Factory } from "miragejs";
-import faker from "faker";
-
export default {
environment: Factory.extend({
name(i) {
diff --git a/frontend/src/miragejs/factories/user.js b/frontend/src/miragejs/factories/user.js
index 661a7f92d1..e615dfe32c 100644
--- a/frontend/src/miragejs/factories/user.js
+++ b/frontend/src/miragejs/factories/user.js
@@ -1,5 +1,3 @@
-import { randomNumber } from "./utils";
-
/*
* Mirage JS guide on Factories: https://miragejs.com/docs/data-layer/factories
*/
diff --git a/frontend/src/miragejs/factories/workspace.js b/frontend/src/miragejs/factories/workspace.js
index d4f67c3e82..3e6b183c8f 100644
--- a/frontend/src/miragejs/factories/workspace.js
+++ b/frontend/src/miragejs/factories/workspace.js
@@ -1,4 +1,4 @@
-import { Factory, association } from "miragejs";
+import { Factory } from "miragejs";
import faker from "faker";
export default {
diff --git a/frontend/src/miragejs/factories/workspaceRole.js b/frontend/src/miragejs/factories/workspaceRole.js
index 185e3f5f85..149f745ca2 100644
--- a/frontend/src/miragejs/factories/workspaceRole.js
+++ b/frontend/src/miragejs/factories/workspaceRole.js
@@ -1,14 +1,11 @@
-import { randomNumber } from "./utils";
-
/*
* Mirage JS guide on Factories: https://miragejs.com/docs/data-layer/factories
*/
-import { Factory, trait, association } from "miragejs";
+import { Factory, association } from "miragejs";
/*
* Faker Github repository: https://github.com/Marak/Faker.js#readme
*/
-import faker from "faker";
export default {
workspaceRole: Factory.extend({
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.js
index ab07a83bfd..3a21dd8e2a 100644
--- a/frontend/src/miragejs/routes/index.js
+++ b/frontend/src/miragejs/routes/index.js
@@ -2,7 +2,6 @@
* Mirage JS guide on Routes: https://miragejs.com/docs/route-handlers/functions
*/
-import user from "../factories/user";
import { Response } from "miragejs";
const WORKSPACE_ID = 1;
diff --git a/frontend/src/store/modules/instance.ts b/frontend/src/store/modules/instance.ts
index 2a94c2b50c..a0207d65a0 100644
--- a/frontend/src/store/modules/instance.ts
+++ b/frontend/src/store/modules/instance.ts
@@ -1,5 +1,5 @@
import axios from "axios";
-import { UserId, InstanceId, Instance, InstanceState } from "../../types";
+import { InstanceId, Instance, InstanceState } from "../../types";
const state: () => InstanceState = () => ({
instanceList: [],
diff --git a/frontend/src/views/EnvironmentDetail.vue b/frontend/src/views/EnvironmentDetail.vue
index 97560e0693..8d359dffce 100644
--- a/frontend/src/views/EnvironmentDetail.vue
+++ b/frontend/src/views/EnvironmentDetail.vue
@@ -24,12 +24,11 @@
</template>
<script lang="ts">
-import { watchEffect, computed, inject, reactive, PropType } from "vue";
+import { reactive, PropType } from "vue";
import { useStore } from "vuex";
import { useRouter } from "vue-router";
import EnvironmentForm from "../components/EnvironmentForm.vue";
-import { Environment, EnvironmentId } from "../types";
-import environment from "../store/modules/environment";
+import { Environment } from "../types";
export default {
name: "EnvironmentDetail",