Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
refactor: remove old components and not used code parts
Browse files Browse the repository at this point in the history
Removed unnecessary components and code parts.

Signed-off-by: evgeniybryzh<evgeniy@merge.rocks>
Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
evgeniybryzh authored and Unix4ever committed Mar 29, 2022
1 parent f704684 commit 5d9bf0f
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 2,907 deletions.
45 changes: 7 additions & 38 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<template>
<div :class="{ dark: dark }" v-if="connected">
<!-- <t-modal /> -->
<t-header />
<t-shell>
<template v-slot:menu>
Expand All @@ -17,40 +16,12 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
<router-view class="w-full h-full" />
</template>
</t-shell>
<!-- Old Views Below -->
<!-- <shell class="h-screen">
<template v-slot:menu>
<sidebar-change-context
v-if="selectContext"
:contexts="contexts"
:active="explicitContext ? explicitContext['name'] : currentContext"
:changed="switchContext"
:cancel="() => (selectContext = false)"
class="overflow-y-hidden h-screen"
/>
<sidebar v-else />
<t-button @click="toggleContextChange" :disabled="!contexts">
<t-spinner v-if="!currentContext && !explicitContext" />
<div v-else class="flex-1">
{{ explicitContext ? explicitContext["name"] : currentContext }}
</div>
</t-button>
</template>
<template v-slot:content>
<router-view class="w-full h-full" />
</template>
</shell> -->
</div>
</template>

<script lang="ts">
import { ref, onMounted, watch } from "vue";
import { useRouter, useRoute } from "vue-router";
// import Shell from "./components/Shell.vue";
// import SidebarChangeContext from "./views/SidebarChangeContext.vue";
// import Sidebar from "./views/Sidebar.vue";
// import TButton from "./components/TButton.vue";
// import TSpinner from "./components/TSpinner.vue";
import { context, changeContext, detectCapabilities } from "./context";
import { theme, systemTheme, isDark } from "./theme";
import { ContextService } from "./api/grpc";
Expand All @@ -61,11 +32,6 @@ import TShell from "./components/common/Shell/TShell.vue";
export default {
components: {
// Shell,
// SidebarChangeContext,
// Sidebar,
// TButton,
// TSpinner,
THeader,
TSideBar,
TShell,
Expand Down Expand Up @@ -109,11 +75,14 @@ export default {
updateTheme(val);
});
watch(() => route.query, (val, old) => {
if (val.cluster != old.cluster) {
detectCapabilities(route);
watch(
() => route.query,
(val, old) => {
if (val.cluster != old.cluster) {
detectCapabilities(route);
}
}
})
);
watch(context.current, (val, old) => {
if (val != old) detectCapabilities(route);
Expand Down
229 changes: 0 additions & 229 deletions frontend/src/components/ClusterListItem.vue

This file was deleted.

69 changes: 0 additions & 69 deletions frontend/src/components/LogView.vue

This file was deleted.

Loading

0 comments on commit 5d9bf0f

Please sign in to comment.