mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
apply suggestions
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
e91a7e0285
commit
7e6a937a2c
@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CubeSpinner from "@/_vue/components/CubeSpinner";
|
import CubeSpinner from "@/_vue/components/CubeSpinner";
|
||||||
import { remote, shell } from 'electron';
|
|
||||||
export default {
|
export default {
|
||||||
name: "ClusterPage",
|
name: "ClusterPage",
|
||||||
components: {
|
components: {
|
||||||
@ -106,7 +105,7 @@ export default {
|
|||||||
activateLens: async function() {
|
activateLens: async function() {
|
||||||
console.log("activate lens")
|
console.log("activate lens")
|
||||||
if (!this.lens.webview) {
|
if (!this.lens.webview) {
|
||||||
console.log("creating webview or iframe")
|
console.log("creating an iframe")
|
||||||
const webview = document.createElement('iframe');
|
const webview = document.createElement('iframe');
|
||||||
webview.addEventListener('load', this.lensLoaded);
|
webview.addEventListener('load', this.lensLoaded);
|
||||||
webview.src = this.cluster.url;
|
webview.src = this.cluster.url;
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { ClusterInfo } from "../../../../main/cluster"
|
|||||||
import { MutationTree, ActionTree, GetterTree } from "vuex"
|
import { MutationTree, ActionTree, GetterTree } from "vuex"
|
||||||
import { PromiseIpc } from 'electron-promise-ipc'
|
import { PromiseIpc } from 'electron-promise-ipc'
|
||||||
import { Tracker } from "../../../../common/tracker"
|
import { Tracker } from "../../../../common/tracker"
|
||||||
import { remote, WebviewTag } from "electron"
|
import { remote } from "electron"
|
||||||
import { clusterStore } from "../../../../common/cluster-store"
|
import { clusterStore } from "../../../../common/cluster-store"
|
||||||
import { Workspace } from "../../../../common/workspace-store"
|
import { Workspace } from "../../../../common/workspace-store"
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ const tracker = new Tracker(remote.app);
|
|||||||
export interface LensWebview {
|
export interface LensWebview {
|
||||||
id: string;
|
id: string;
|
||||||
loaded: boolean;
|
loaded: boolean;
|
||||||
webview?: WebviewTag | HTMLIFrameElement;
|
webview?: HTMLIFrameElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ClusterState {
|
export interface ClusterState {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user