|
|
@ -417,7 +417,7 @@ q-page.admin-storage
|
|
|
|
q-card-section
|
|
|
|
q-card-section
|
|
|
|
.text-subtitle1 {{state.target.title}}
|
|
|
|
.text-subtitle1 {{state.target.title}}
|
|
|
|
q-img.q-mt-sm.rounded-borders(
|
|
|
|
q-img.q-mt-sm.rounded-borders(
|
|
|
|
:src='target.banner'
|
|
|
|
:src='state.target.banner'
|
|
|
|
fit='cover'
|
|
|
|
fit='cover'
|
|
|
|
no-spinner
|
|
|
|
no-spinner
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -585,7 +585,7 @@ q-page.admin-storage
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import { cloneDeep, find, transform } from 'lodash-es'
|
|
|
|
import { cloneDeep, find, transform } from 'lodash-es'
|
|
|
|
import gql from 'graphql-tag'
|
|
|
|
import gql from 'graphql-tag'
|
|
|
|
import * as VNetworkGraph from 'v-network-graph'
|
|
|
|
import * as VNG from 'v-network-graph'
|
|
|
|
|
|
|
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
import { useMeta, useQuasar } from 'quasar'
|
|
|
|
import { useMeta, useQuasar } from 'quasar'
|
|
|
@ -645,9 +645,9 @@ const state = reactive({
|
|
|
|
nodes: {}
|
|
|
|
nodes: {}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deliveryPaths: [],
|
|
|
|
deliveryPaths: [],
|
|
|
|
deliveryConfig: VNetworkGraph.defineConfigs({
|
|
|
|
deliveryConfig: VNG.defineConfigs({
|
|
|
|
view: {
|
|
|
|
view: {
|
|
|
|
layoutHandler: new VNetworkGraph.GridLayout({ grid: 15 }),
|
|
|
|
layoutHandler: new VNG.GridLayout({ grid: 15 }),
|
|
|
|
fit: true,
|
|
|
|
fit: true,
|
|
|
|
mouseWheelZoomEnabled: false,
|
|
|
|
mouseWheelZoomEnabled: false,
|
|
|
|
grid: {
|
|
|
|
grid: {
|
|
|
@ -736,13 +736,13 @@ watch(() => state.targets, (newValue) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
watch(() => route.params.id, (to, from) => {
|
|
|
|
watch(() => route.params.id, (to, from) => {
|
|
|
|
if (!to.params.id) {
|
|
|
|
if (!to) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (state.targets.length < 1) {
|
|
|
|
if (state.targets.length < 1) {
|
|
|
|
state.desiredTarget = to.params.id
|
|
|
|
state.desiredTarget = to
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
state.selectedTarget = to.params.id
|
|
|
|
state.selectedTarget = to
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -1165,7 +1165,7 @@ function generateGraph () {
|
|
|
|
|
|
|
|
|
|
|
|
for (const [i, tp] of types.entries()) {
|
|
|
|
for (const [i, tp] of types.entries()) {
|
|
|
|
state.deliveryNodes[tp.key] = { name: tp.label, color: '#3f51b5', icon: tp.icon, iconText: tp.iconText }
|
|
|
|
state.deliveryNodes[tp.key] = { name: tp.label, color: '#3f51b5', icon: tp.icon, iconText: tp.iconText }
|
|
|
|
state.deliveryEdges[`user_${tp.key}`] = { source: 'user', target: t.key }
|
|
|
|
state.deliveryEdges[`user_${tp.key}`] = { source: 'user', target: tp.key }
|
|
|
|
state.deliveryLayouts.nodes[tp.key] = { x: 0, y: (i + 1) * 15 }
|
|
|
|
state.deliveryLayouts.nodes[tp.key] = { x: 0, y: (i + 1) * 15 }
|
|
|
|
|
|
|
|
|
|
|
|
// -> Find target with direct access
|
|
|
|
// -> Find target with direct access
|
|
|
@ -1218,6 +1218,8 @@ function generateGraph () {
|
|
|
|
state.deliveryPaths.push({ edges: [`${tp.key}_db_in`], color: '#f03a4755' })
|
|
|
|
state.deliveryPaths.push({ edges: [`${tp.key}_db_in`], color: '#f03a4755' })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.info(state.deliveryEdges)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MOUNTED
|
|
|
|
// MOUNTED
|
|
|
|