Files
ploi-core/public/build/assets/TopBar.253b5b54.js
Dennis d1f50c8dd9 prod
2022-08-27 20:03:25 +02:00

61 lines
1.9 KiB
JavaScript
Vendored

import { T as TopBar$1, B as Breadcrumbs, a as TabBar, b as TopBarTabBarContainer } from "./TabBar.ba53a1e9.js";
import { g as createBlock, w as withCtx, r as resolveComponent, o as openBlock, a as createVNode } from "./app.dd23b2e7.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper.cdc0426e.js";
import "./Container.4a8c422e.js";
const _sfc_main = {
components: {
TopBar: TopBar$1,
Breadcrumbs,
TabBar,
TopBarTabBarContainer
},
props: {
breadcrumbs: Array
},
data() {
return {
tabBars: [
{
title: this.__("Dashboard"),
to: this.route("dashboard"),
active: this.route().current("dashboard")
},
{
title: this.__("Sites"),
to: this.route("sites.index"),
active: this.route().current("sites.*")
},
{
title: "Servers",
to: this.route("servers.index"),
active: this.route().current("servers.*")
}
]
};
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_Breadcrumbs = resolveComponent("Breadcrumbs");
const _component_TabBar = resolveComponent("TabBar");
const _component_TopBarTabBarContainer = resolveComponent("TopBarTabBarContainer");
const _component_TopBar = resolveComponent("TopBar", true);
return openBlock(), createBlock(_component_TopBar, null, {
breadcrumbs: withCtx(() => [
createVNode(_component_Breadcrumbs, { items: $props.breadcrumbs }, null, 8, ["items"])
]),
"tab-bar": withCtx(() => [
createVNode(_component_TopBarTabBarContainer, null, {
default: withCtx(() => [
createVNode(_component_TabBar, { items: $data.tabBars }, null, 8, ["items"])
], void 0, true),
_: 1
})
]),
_: 1
});
}
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
TopBar as default
};