mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix tracker event
This commit is contained in:
parent
1fa523c012
commit
d387ba9004
@ -1,13 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app_vue">
|
<div class="draggable-top" />
|
||||||
<div class="draggable-top" />
|
<div class="main-view" :class="{ 'menu-visible': isMenuVisible }">
|
||||||
<div id="lens-container" />
|
<main-menu v-if="isMenuVisible" />
|
||||||
<div class="main-view" :class="{ 'menu-visible': isMenuVisible }">
|
<router-view />
|
||||||
<main-menu v-if="isMenuVisible" />
|
|
||||||
<router-view />
|
|
||||||
</div>
|
|
||||||
<bottom-bar v-if="isMenuVisible" />
|
|
||||||
</div>
|
</div>
|
||||||
|
<bottom-bar v-if="isMenuVisible" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -25,3 +22,13 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.draggable-top{
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
position: absolute;
|
||||||
|
height: 20px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -25,6 +25,17 @@ pre {
|
|||||||
color: $lens-text-color-light;
|
color: $lens-text-color-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// react-app container (dashboard)
|
||||||
|
#app {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 70px;
|
||||||
|
right: 0;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 100;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#app_vue {
|
#app_vue {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -57,15 +68,6 @@ pre {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggable-top{
|
|
||||||
-webkit-app-region: drag;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
position: absolute;
|
|
||||||
height: 20px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
|
|
||||||
@ -203,13 +205,3 @@ h1, h2, h3, h4, h5, h6{
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#lens-container {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 70px;
|
|
||||||
right: 0;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 100;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
@ -88,7 +88,7 @@ const actions: ActionTree<ClusterState, any> = {
|
|||||||
await promiseIpc.send("removeCluster", cluster.id).catch((error: Error) => {
|
await promiseIpc.send("removeCluster", cluster.id).catch((error: Error) => {
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
tracker.event("cluster", "remove´");
|
tracker.event("cluster", "remove");
|
||||||
await dispatch("refreshClusters", getters.currentWorkspace)
|
await dispatch("refreshClusters", getters.currentWorkspace)
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@ -166,7 +166,7 @@ const actions: ActionTree<ClusterState, any> = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
attachWebview({commit}, lens: LensWebview) {
|
attachWebview({commit}, lens: LensWebview) {
|
||||||
const container: any = document.getElementById("lens-container");
|
const container: any = document.getElementById("app");
|
||||||
if (!container || !lens.webview) {
|
if (!container || !lens.webview) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ const actions: ActionTree<ClusterState, any> = {
|
|||||||
promiseIpc.send("enableClusterSettingsMenuItem", lens.id)
|
promiseIpc.send("enableClusterSettingsMenuItem", lens.id)
|
||||||
},
|
},
|
||||||
detachWebview({commit}, lens: LensWebview) {
|
detachWebview({commit}, lens: LensWebview) {
|
||||||
const container: any = document.getElementById("lens-container");
|
const container: any = document.getElementById("app");
|
||||||
if (!container) { return }
|
if (!container) { return }
|
||||||
container.childNodes.forEach((child: any) => {
|
container.childNodes.forEach((child: any) => {
|
||||||
if (child === lens.webview) {
|
if (child === lens.webview) {
|
||||||
@ -203,7 +203,7 @@ const actions: ActionTree<ClusterState, any> = {
|
|||||||
promiseIpc.send("disableClusterSettingsMenuItem")
|
promiseIpc.send("disableClusterSettingsMenuItem")
|
||||||
},
|
},
|
||||||
hideWebviews({commit}) {
|
hideWebviews({commit}) {
|
||||||
const container: any = document.getElementById("lens-container");
|
const container: any = document.getElementById("app");
|
||||||
if (!container) { return }
|
if (!container) { return }
|
||||||
container.style = "display: none;"
|
container.style = "display: none;"
|
||||||
container.childNodes.forEach((child: any) => {
|
container.childNodes.forEach((child: any) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user