HUGE REFACTOR / CLEANUP

if there is a issue it's probably something in here that was changed
This commit is contained in:
2021-09-28 20:19:44 +00:00
parent 51eddfede9
commit d0afdd9855
238 changed files with 3127 additions and 8614 deletions

View File

@@ -19,22 +19,15 @@
</v-col>
</v-row>
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "ops-profile";
export default {
async created() {
let vm = this;
const vm = this;
try {
await initForm(vm);
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(vm);
// vm.getDataFromApi();
this.formState.ready = true;
} catch (err) {
vm.formState.ready = true;
@@ -47,7 +40,6 @@ export default {
data() {
return {
cardHeight: 300,
formState: {
ready: false,
loading: false,
@@ -62,9 +54,7 @@ export default {
onResize() {
this.cardHeight = window.innerHeight * 0.85;
},
profileUrl() {
// "http://localhost:7575/profiler/results-index?t=l47NWWuZo89MU1GuHV/tYY0d2xwsFrY/K5MZb1zTTvY";
return (
window.$gz.api.ServerBaseUrl() +
"profiler/results-index?t=" +
@@ -73,7 +63,7 @@ export default {
},
refreshProfile() {
let ifr = document.getElementById("profileFrame");
const ifr = document.getElementById("profileFrame");
ifr.src = ifr.src;
}
}
@@ -83,7 +73,7 @@ export default {
//
//
function generateMenu(vm) {
let menuOptions = {
const menuOptions = {
isMain: true,
icon: "$ayiBinoculars",
title: "ServerProfiler",
@@ -91,15 +81,7 @@ function generateMenu(vm) {
formData: {
ayaType: window.$gz.type.ServerMetrics
},
menuItems: [
// {
// title: "Copy"),
// icon: "$ayiCopy",
// surface: false,
// key: FORM_KEY + ":copylog",
// vm: vm
// }
]
menuItems: []
};
window.$gz.eventBus.$emit("menu-change", menuOptions);
@@ -112,13 +94,9 @@ function clickHandler(menuItem) {
if (!menuItem) {
return;
}
let m = window.$gz.menu.parseMenuItem(menuItem);
const m = window.$gz.menu.parseMenuItem(menuItem);
if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) {
// case "copylog":
// //put the log info on the clipboard:
// window.$gz.util.copyToClipboard("SERVER LOG\n" + m.vm.log);
// break;
default:
window.$gz.eventBus.$emit(
"notify-warning",