Compare commits
8 Commits
7269a51188
...
net10-port
| Author | SHA1 | Date | |
|---|---|---|---|
| a716934efe | |||
| f5c73cbb41 | |||
| 21f8acb6b3 | |||
| 1865dc4cca | |||
| 11c6c11388 | |||
| b8d6234886 | |||
| 45e8d2a19f | |||
| 380b1ebb0a |
33
.gitignore
vendored
33
.gitignore
vendored
@@ -1,24 +1,17 @@
|
||||
# Dependencies
|
||||
node_modules/
|
||||
|
||||
# Build output
|
||||
dist/
|
||||
|
||||
# IDE
|
||||
.vscode/settings.json
|
||||
|
||||
# OS
|
||||
Thumbs.db
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
/tests/e2e/videos/
|
||||
/tests/e2e/screenshots/
|
||||
|
||||
# local env files
|
||||
# Environment
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw*
|
||||
/logfile
|
||||
|
||||
17
README.md
17
README.md
@@ -1,8 +1,19 @@
|
||||
# sockeye
|
||||
|
||||
# AyaNova client ui
|
||||
test for test push
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
First confirm all dependencies are installed as per AyaNova-client project's BUILT-ENVIRONMENT.md doc. They are very specific and in many cases outdated.
|
||||
|
||||
Then clone/checkout repository from GIT
|
||||
|
||||
Finally:
|
||||
|
||||
Install frontend dependencies:
|
||||
|
||||
cd c:\data\code\sockeye-client
|
||||
npm ci
|
||||
|
||||
Note: Use `npm ci` (not `npm install`) to install exact versions from package-lock.json
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sockeye",
|
||||
"version": "8.0.16",
|
||||
"version": "8.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
||||
@@ -487,15 +487,6 @@ ServiceContractor = 5 */
|
||||
route: "/ops-metrics",
|
||||
key: key++
|
||||
});
|
||||
|
||||
// //PROFILE
|
||||
// //metrics rights
|
||||
// sub.push({
|
||||
// title: "ServerProfiler",
|
||||
// icon: "$sockiBinoculars",
|
||||
// route: "/ops-profile",
|
||||
// key: key++
|
||||
// });
|
||||
}
|
||||
|
||||
//NOTIFICATION CONFIG AND HISTORY
|
||||
|
||||
@@ -591,12 +591,6 @@ export default new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ops" */ "./views/ops-metrics.vue")
|
||||
},
|
||||
{
|
||||
path: "/ops-profile",
|
||||
name: "ops-profile",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ops" */ "./views/ops-profile.vue")
|
||||
},
|
||||
{
|
||||
path: "/ops-notify-queue",
|
||||
name: "ops-notify-queue",
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
<template>
|
||||
<v-row v-if="formState.ready" v-resize="onResize" dense>
|
||||
<gz-error :error-box-message="formState.errorBoxMessage"></gz-error>
|
||||
<v-col cols="12">
|
||||
<v-btn @click="refreshProfile">
|
||||
<v-icon>$sockiSync</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<v-card elevation="4" data-cy="profileCard">
|
||||
<v-card :height="cardHeight">
|
||||
<iframe
|
||||
id="profileFrame"
|
||||
style="width:100%;height:100%"
|
||||
:src="profileUrl()"
|
||||
></iframe>
|
||||
</v-card>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<script>
|
||||
const FORM_KEY = "ops-profile";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
cardHeight: 300,
|
||||
formState: {
|
||||
ready: false,
|
||||
loading: false,
|
||||
errorBoxMessage: null,
|
||||
appError: null,
|
||||
serverError: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
const vm = this;
|
||||
try {
|
||||
await initForm(vm);
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
generateMenu(vm);
|
||||
this.formState.ready = true;
|
||||
} catch (err) {
|
||||
vm.formState.ready = true;
|
||||
window.$gz.errorHandler.handleFormError(err, vm);
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
window.$gz.eventBus.$off("menu-click", clickHandler);
|
||||
},
|
||||
|
||||
methods: {
|
||||
onResize() {
|
||||
this.cardHeight = window.innerHeight * 0.8;
|
||||
},
|
||||
profileUrl() {
|
||||
return (
|
||||
window.$gz.api.ServerBaseUrl() +
|
||||
"profiler/results-index?t=" +
|
||||
this.$store.state.downloadToken
|
||||
);
|
||||
},
|
||||
|
||||
refreshProfile() {
|
||||
const ifr = document.getElementById("profileFrame");
|
||||
//trigger refresh? wtf? I don't know and at this point I'm not changing it in case it breaks something 2022-08-20
|
||||
// eslint-disable-next-line no-self-assign
|
||||
ifr.src = ifr.src;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//////////////////////
|
||||
//
|
||||
//
|
||||
function generateMenu() {
|
||||
const menuOptions = {
|
||||
isMain: true,
|
||||
icon: "$sockiBinoculars",
|
||||
title: "ServerProfiler",
|
||||
helpUrl: "ops-profile",
|
||||
formData: {
|
||||
sockType: window.$gz.type.ServerMetrics
|
||||
},
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
//
|
||||
//
|
||||
function clickHandler(menuItem) {
|
||||
if (!menuItem) {
|
||||
return;
|
||||
}
|
||||
const m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
switch (m.key) {
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
FORM_KEY + "::context click: [" + m.key + "]"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////
|
||||
//
|
||||
//
|
||||
async function initForm() {
|
||||
await fetchTranslatedText();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////
|
||||
//
|
||||
// Ensures UI translated text is available
|
||||
//
|
||||
async function fetchTranslatedText() {
|
||||
await window.$gz.translation.cacheTranslations(["ServerProfiler"]);
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user