2023-01-20 13:59:27 +01:00
|
|
|
const { Component } = owl;
|
2024-10-23 15:45:29 +02:00
|
|
|
import { ContextMenu } from "../context_menu/context_menu";
|
|
|
|
|
import { useStore } from "../store/store";
|
2023-01-20 13:59:27 +01:00
|
|
|
import { ComponentsTab } from "./components_tab/components_tab";
|
|
|
|
|
import { ProfilerTab } from "./profiler_tab/profiler_tab";
|
2024-10-23 15:45:29 +02:00
|
|
|
import { Tab } from "./tab/tab";
|
2023-01-20 13:59:27 +01:00
|
|
|
|
|
|
|
|
export class DevtoolsWindow extends Component {
|
|
|
|
|
static props = [];
|
|
|
|
|
static template = "devtools.DevtoolsWindow";
|
2024-10-23 15:45:29 +02:00
|
|
|
static components = { ComponentsTab, Tab, ProfilerTab, ContextMenu };
|
2023-01-20 13:59:27 +01:00
|
|
|
setup() {
|
|
|
|
|
this.store = useStore();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
selectFrame(ev) {
|
|
|
|
|
const val = ev.target.value;
|
|
|
|
|
this.store.selectFrame(val);
|
|
|
|
|
}
|
|
|
|
|
}
|