pkg/rancher-network/config.js0000644000175000001440000000071515264272302016223 0ustar00dusers00000000000000// Names shared by the product and its route. export const PRODUCT = 'rancher-network'; // Rancher's placeholder cluster id for products that live outside any // cluster (inStore: 'management'). export const BLANK_CLUSTER = '_'; // The network map is served by this same Epinio app, from public/network/. // The app name sets the host: ato-demo2 in the ato namespace. export const MAP_URL = 'https://ato-demo2.apps-dev.internal.krum.io/network/index.html'; pkg/rancher-network/index.js0000644000175000001440000000104315264272303016061 0ustar00dusers00000000000000import { PRODUCT, BLANK_CLUSTER } from './config'; import NetworkMap from './pages/index.vue'; // Adds a top-level "Rancher Network" entry to the left nav that opens the // network map. export default function(plugin) { plugin.metadata = require('./package.json'); plugin.addProduct(require('./product')); plugin.addRoutes([ { name: `${ PRODUCT }-c-cluster`, path: `/${ PRODUCT }/c/:cluster`, component: NetworkMap, meta: { product: PRODUCT, cluster: BLANK_CLUSTER, pkg: PRODUCT }, }, ]); } pkg/rancher-network/pages/index.vue0000644000175000001440000000105115264272303017342 0ustar00dusers00000000000000