mirror of https://github.com/statping/statping
implemented tree structure for particular downtime in a service
parent
fb62487998
commit
43926a1ff9
|
@ -28,6 +28,7 @@
|
||||||
"querystring": "^0.2.0",
|
"querystring": "^0.2.0",
|
||||||
"sass": "^1.26.10",
|
"sass": "^1.26.10",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
|
"v-tooltip": "^2.1.3",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-apexcharts": "^1.6.0",
|
"vue-apexcharts": "^1.6.0",
|
||||||
"vue-clipboard2": "^0.3.1",
|
"vue-clipboard2": "^0.3.1",
|
||||||
|
|
|
@ -303,6 +303,10 @@ class Api {
|
||||||
async downtime_delete (id) {
|
async downtime_delete (id) {
|
||||||
return axios.delete(`/api/downtimes/${id}`).then((response) => response.data);
|
return axios.delete(`/api/downtimes/${id}`).then((response) => response.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async service_status (sec) {
|
||||||
|
return axios.get(`/api/services/status?time=${sec}`).then((response) => response.data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const api = new Api()
|
const api = new Api()
|
||||||
export default api
|
export default api
|
||||||
|
|
|
@ -232,3 +232,113 @@ A {
|
||||||
top:0;
|
top:0;
|
||||||
background: darken($card-background, 10%);
|
background: darken($card-background, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
display: block !important;
|
||||||
|
z-index: 10000;
|
||||||
|
|
||||||
|
.tooltip-inner {
|
||||||
|
background: black;
|
||||||
|
color: white;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 5px 10px 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip-arrow {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-style: solid;
|
||||||
|
position: absolute;
|
||||||
|
margin: 5px;
|
||||||
|
border-color: black;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[x-placement^="top"] {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
|
.tooltip-arrow {
|
||||||
|
border-width: 5px 5px 0 5px;
|
||||||
|
border-left-color: transparent !important;
|
||||||
|
border-right-color: transparent !important;
|
||||||
|
border-bottom-color: transparent !important;
|
||||||
|
bottom: -5px;
|
||||||
|
left: calc(50% - 5px);
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&[x-placement^="bottom"] {
|
||||||
|
margin-top: 5px;
|
||||||
|
|
||||||
|
.tooltip-arrow {
|
||||||
|
border-width: 0 5px 5px 5px;
|
||||||
|
border-left-color: transparent !important;
|
||||||
|
border-right-color: transparent !important;
|
||||||
|
border-top-color: transparent !important;
|
||||||
|
top: -5px;
|
||||||
|
left: calc(50% - 5px);
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&[x-placement^="right"] {
|
||||||
|
margin-left: 5px;
|
||||||
|
|
||||||
|
.tooltip-arrow {
|
||||||
|
border-width: 5px 5px 5px 0;
|
||||||
|
border-left-color: transparent !important;
|
||||||
|
border-top-color: transparent !important;
|
||||||
|
border-bottom-color: transparent !important;
|
||||||
|
left: -5px;
|
||||||
|
top: calc(50% - 5px);
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&[x-placement^="left"] {
|
||||||
|
margin-right: 5px;
|
||||||
|
|
||||||
|
.tooltip-arrow {
|
||||||
|
border-width: 5px 0 5px 5px;
|
||||||
|
border-top-color: transparent !important;
|
||||||
|
border-right-color: transparent !important;
|
||||||
|
border-bottom-color: transparent !important;
|
||||||
|
right: -5px;
|
||||||
|
top: calc(50% - 5px);
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.popover {
|
||||||
|
$color: #f9f9f9;
|
||||||
|
|
||||||
|
.popover-inner {
|
||||||
|
background: $color;
|
||||||
|
color: black;
|
||||||
|
padding: 24px;
|
||||||
|
border-radius: 5px;
|
||||||
|
box-shadow: 0 5px 30px rgba(black, .1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-arrow {
|
||||||
|
border-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&[aria-hidden='true'] {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity .15s, visibility .15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[aria-hidden='false'] {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity .15s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
<div class="card contain-card mb-4">
|
||||||
|
<div class="card-header">
|
||||||
|
Services Tree View
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<ServiceTreeView />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="card contain-card mb-4">
|
<div class="card contain-card mb-4">
|
||||||
<div class="card-header">{{ $t('services') }}
|
<div class="card-header">{{ $t('services') }}
|
||||||
|
@ -64,7 +72,6 @@
|
||||||
<FormGroup v-if="$store.state.admin" :edit="editChange" :in_group="group"/>
|
<FormGroup v-if="$store.state.admin" :edit="editChange" :in_group="group"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -73,7 +80,8 @@
|
||||||
const ToggleSwitch = () => import(/* webpackChunkName: "dashboard" */ '@/forms/ToggleSwitch')
|
const ToggleSwitch = () => import(/* webpackChunkName: "dashboard" */ '@/forms/ToggleSwitch')
|
||||||
const ServicesList = () => import(/* webpackChunkName: "dashboard" */ '@/components/Dashboard/ServicesList')
|
const ServicesList = () => import(/* webpackChunkName: "dashboard" */ '@/components/Dashboard/ServicesList')
|
||||||
import Api from "../../API";
|
import Api from "../../API";
|
||||||
const draggable = () => import(/* webpackChunkName: "dashboard" */ 'vuedraggable')
|
const draggable = () => import(/* webpackChunkName: "dashboard" */ 'vuedraggable');
|
||||||
|
const ServiceTreeView = () => import(/* webpackChunkName: "dashboard" */ '@/components/Dashboard/ServiceTreeView');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DashboardServices',
|
name: 'DashboardServices',
|
||||||
|
@ -82,7 +90,8 @@
|
||||||
ServicesList,
|
ServicesList,
|
||||||
ToggleSwitch,
|
ToggleSwitch,
|
||||||
FormGroup,
|
FormGroup,
|
||||||
draggable
|
draggable,
|
||||||
|
ServiceTreeView
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -0,0 +1,188 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<form>
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-sm-3 mb-md-0">
|
||||||
|
<FlatPickr
|
||||||
|
id="start"
|
||||||
|
v-model="dateTime"
|
||||||
|
type="text"
|
||||||
|
name="start"
|
||||||
|
class="form-control form-control-plaintext"
|
||||||
|
:config="{
|
||||||
|
altFormat: 'J M, Y, h:iK',
|
||||||
|
altInput: true,
|
||||||
|
enableTime: true,
|
||||||
|
dateFormat: 'Z',
|
||||||
|
maxDate: new Date().toJSON(),
|
||||||
|
}"
|
||||||
|
placeholder="Select Start Date"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group col-sm-3 mb-md-0">
|
||||||
|
<div role="group">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-primary mr-1"
|
||||||
|
:disabled="dateTime === '' || isLoading"
|
||||||
|
@click.prevent="handleFilterSearch"
|
||||||
|
>
|
||||||
|
{{ $t('search') }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-outline-secondary"
|
||||||
|
@click.prevent="handleClearFilter"
|
||||||
|
>
|
||||||
|
Reset
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="mt-3">
|
||||||
|
<h4>Heading</h4>
|
||||||
|
<div
|
||||||
|
v-if="isLoading"
|
||||||
|
>
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<FontAwesomeIcon
|
||||||
|
icon="circle-notch"
|
||||||
|
size="3x"
|
||||||
|
spin
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 text-center mt-3 mb-3">
|
||||||
|
<span class="text-muted">
|
||||||
|
Loading Services
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul
|
||||||
|
v-else
|
||||||
|
class="parent-list-group pl-0 mb-0"
|
||||||
|
>
|
||||||
|
<TreeItem
|
||||||
|
v-for="service in treeData"
|
||||||
|
:key="service.id"
|
||||||
|
:item="service"
|
||||||
|
/>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import TreeItem from '../Elements/TreeItem.vue';
|
||||||
|
import FlatPickr from 'vue-flatpickr-component';
|
||||||
|
import 'flatpickr/dist/flatpickr.css';
|
||||||
|
|
||||||
|
const getRootNodes = (data) => {
|
||||||
|
if (!data || data.lenght === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const rootNode = data.reduce((acc, service) => {
|
||||||
|
const isChild = data.find((item) => {
|
||||||
|
if (item.sub_services_detail) {
|
||||||
|
return Object.keys(item.sub_services_detail).includes(String(service.id));
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!isChild) {
|
||||||
|
acc.push(service);
|
||||||
|
}
|
||||||
|
|
||||||
|
return acc;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return rootNode;
|
||||||
|
};
|
||||||
|
|
||||||
|
const getTreeData = (parentServices, serviceStatus) => {
|
||||||
|
const treeData = [];
|
||||||
|
|
||||||
|
for (let i=0; i<parentServices.length; i++) {
|
||||||
|
if (!parentServices[i].sub_services_detail) {
|
||||||
|
treeData.push({ parent: parentServices[i], children: [] });
|
||||||
|
} else {
|
||||||
|
const subServices = Object.keys(parentServices[i].sub_services_detail).reduce((acc, key) => {
|
||||||
|
const service = serviceStatus.find((item) => item.id == key);
|
||||||
|
|
||||||
|
if (service) {
|
||||||
|
acc.push({ ...service, ...parentServices[i].sub_services_detail[key] });
|
||||||
|
}
|
||||||
|
|
||||||
|
return acc;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const children = getTreeData(subServices, serviceStatus);
|
||||||
|
|
||||||
|
treeData.push({ parent: parentServices[i], children });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return treeData;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'ServiceTreeView',
|
||||||
|
components: {
|
||||||
|
TreeItem,
|
||||||
|
FlatPickr
|
||||||
|
},
|
||||||
|
data: function () {
|
||||||
|
return {
|
||||||
|
isLoading: false,
|
||||||
|
dateTime: new Date().toJSON(),
|
||||||
|
treeData: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
serviceStatus () {
|
||||||
|
return this.$store.state.serviceStatus;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created: async function () {
|
||||||
|
await this.getServiceStatus(this.dateTime);
|
||||||
|
|
||||||
|
const rootNode = getRootNodes(this.serviceStatus);
|
||||||
|
const treeData = getTreeData(rootNode, this.serviceStatus);
|
||||||
|
this.treeData = treeData;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getServiceStatus: async function (dateTime) {
|
||||||
|
let sec = null;
|
||||||
|
|
||||||
|
this.isLoading = true;
|
||||||
|
if (!dateTime) {
|
||||||
|
sec = this.convertDateObjToSec(new Date());
|
||||||
|
} else {
|
||||||
|
sec = this.convertDateObjToSec(dateTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.$store.dispatch({ type: 'getServiceStatus', payload: sec });
|
||||||
|
// 1643680748
|
||||||
|
this.isLoading = false;
|
||||||
|
},
|
||||||
|
handleFilterSearch: function () {
|
||||||
|
this.getServiceStatus(this.dateTime);
|
||||||
|
},
|
||||||
|
handleClearFilter: function () {
|
||||||
|
this.dateTime = new Date().toJSON();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.parent-list-group li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,144 @@
|
||||||
|
<template>
|
||||||
|
<li
|
||||||
|
v-if="item"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
class="toggle btn btn-sm d-flex align-items-stretch px-0"
|
||||||
|
type="button"
|
||||||
|
@click="handleIsOpen"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
v-if="item.children.length > 0"
|
||||||
|
class="toggle-icon pl-2 pr-2 border border-dark rounded-left bg-white d-flex align-items-center"
|
||||||
|
>
|
||||||
|
<FontAwesomeIcon
|
||||||
|
v-if="!isOpen"
|
||||||
|
icon="plus-circle"
|
||||||
|
class="fa-lg"
|
||||||
|
/>
|
||||||
|
<FontAwesomeIcon
|
||||||
|
v-if="isOpen"
|
||||||
|
icon="minus-circle"
|
||||||
|
class="fa-lg"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-tooltip="{ content: `${item.parent.downtime ? `${niceDateWithYear(item.parent.downtime.start)} - ${niceDateWithYear(item.parent.downtime.end)}`: ''}`, offset: 5, autoHide: true}"
|
||||||
|
class="parent-name rounded-right"
|
||||||
|
:class="[{ 'cursor-text rounded': item.children.length === 0 }, item.parent.downtime ? item.parent.downtime.sub_status === 'down' ? 'bg-shade-danger' : 'bg-shade-warning' : 'bg-shade-success']"
|
||||||
|
>
|
||||||
|
{{ item.parent.name }}
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<ul
|
||||||
|
v-if="item.children.length > 0 && isOpen"
|
||||||
|
class="list-child pl-0"
|
||||||
|
>
|
||||||
|
<TreeItem
|
||||||
|
v-for="service in item.children"
|
||||||
|
:key="service.id"
|
||||||
|
class="item"
|
||||||
|
:item="service"
|
||||||
|
/>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'TreeItem',
|
||||||
|
props: {
|
||||||
|
item: {
|
||||||
|
type: Object,
|
||||||
|
default: () => null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data: function () {
|
||||||
|
return {
|
||||||
|
isOpen: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleIsOpen: function () {
|
||||||
|
this.isOpen = !this.isOpen;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
ul, li {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-shade-success {
|
||||||
|
background-color: #D6E7D4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-shade-danger {
|
||||||
|
background-color: #f7cecc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-shade-warning {
|
||||||
|
background-color: #FFE6CC;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-text {
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle {
|
||||||
|
line-height: 2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle .toggle-icon {
|
||||||
|
border-right: 0 !important;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle .parent-name {
|
||||||
|
font-size: 16px;
|
||||||
|
padding: 0px 5px;
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle:focus {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-child {
|
||||||
|
margin-left: 13px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-child li {
|
||||||
|
padding: 0 0 0 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-child li::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
left: 5px;
|
||||||
|
border-left: 1px solid #A9A9A9;
|
||||||
|
border-bottom: 1px solid #A9A9A9;
|
||||||
|
width: 15px;
|
||||||
|
height: 22px;
|
||||||
|
border-radius: 0 0 0 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-child li:not(:last-child)::after{
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
top: 5px;
|
||||||
|
left: 5px;
|
||||||
|
border-left: 1px solid #A9A9A9;
|
||||||
|
width: 20px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -5,6 +5,7 @@ import VueObserveVisibility from 'vue-observe-visibility'
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
import VueCookies from 'vue-cookies'
|
import VueCookies from 'vue-cookies'
|
||||||
import VueI18n from 'vue-i18n'
|
import VueI18n from 'vue-i18n'
|
||||||
|
import VTooltip from 'v-tooltip'
|
||||||
import router from './routes'
|
import router from './routes'
|
||||||
import "./mixin"
|
import "./mixin"
|
||||||
import "./icons"
|
import "./icons"
|
||||||
|
@ -20,6 +21,7 @@ Vue.use(VueRouter);
|
||||||
Vue.use(VueObserveVisibility);
|
Vue.use(VueObserveVisibility);
|
||||||
Vue.use(VueCookies);
|
Vue.use(VueCookies);
|
||||||
Vue.use(VueI18n);
|
Vue.use(VueI18n);
|
||||||
|
Vue.use(VTooltip);
|
||||||
|
|
||||||
const i18n = new VueI18n({
|
const i18n = new VueI18n({
|
||||||
fallbackLocale: "en",
|
fallbackLocale: "en",
|
||||||
|
|
|
@ -260,5 +260,8 @@ export default Vue.mixin({
|
||||||
niceDateWithYear (val) {
|
niceDateWithYear (val) {
|
||||||
return format(parseISO(val), 'do MMM, yyyy h:mma');
|
return format(parseISO(val), 'do MMM, yyyy h:mma');
|
||||||
},
|
},
|
||||||
|
convertDateObjToSec (val) {
|
||||||
|
return Math.floor((new Date(val).getTime())/1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,6 +33,7 @@ export default new Vuex.Store({
|
||||||
admin: false,
|
admin: false,
|
||||||
user: false,
|
user: false,
|
||||||
loggedIn: false,
|
loggedIn: false,
|
||||||
|
serviceStatus: [],
|
||||||
modal: {
|
modal: {
|
||||||
visible: false,
|
visible: false,
|
||||||
title: "Modal Header",
|
title: "Modal Header",
|
||||||
|
@ -155,6 +156,9 @@ export default new Vuex.Store({
|
||||||
},
|
},
|
||||||
setDowntimes (state, downtimes) {
|
setDowntimes (state, downtimes) {
|
||||||
state.downtimes = downtimes;
|
state.downtimes = downtimes;
|
||||||
|
},
|
||||||
|
setServiceStatus (state, serviceStatus) {
|
||||||
|
state.serviceStatus = serviceStatus;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -166,6 +170,10 @@ export default new Vuex.Store({
|
||||||
const { output } = await Api.downtimes(payload);
|
const { output } = await Api.downtimes(payload);
|
||||||
context.commit('setDowntimes', output ?? []);
|
context.commit('setDowntimes', output ?? []);
|
||||||
},
|
},
|
||||||
|
async getServiceStatus (context, { payload }) {
|
||||||
|
const { output } = await Api.service_status(payload);
|
||||||
|
context.commit("setServiceStatus", output ?? []);
|
||||||
|
},
|
||||||
async loadCore(context) {
|
async loadCore(context) {
|
||||||
const core = await Api.core()
|
const core = await Api.core()
|
||||||
const token = await Api.token()
|
const token = await Api.token()
|
||||||
|
|
Loading…
Reference in New Issue