Files
ploi-core/public/build/assets/Article.56442ebd.js
Dennis b1667ff445 wip
2022-08-17 09:59:02 +02:00

140 lines
4.8 KiB
JavaScript
Vendored

import TopBar from "./TopBar.00aeaa0f.js";
import { C as Container } from "./Container.76729bd1.js";
import { M as MainLayout, C as Content, P as Page, a as PageHeader, b as PageHeaderTitle, c as PageBody, L as List, d as ListItem, S as StatusBubble, N as NotificationBadge } from "./MainLayout.ab2dba71.js";
import { B as Button } from "./Button.4cabfde3.js";
import { E as EmptyImage } from "./EmptyImage.4b2693fd.js";
import { I as IconBox, a as IconGlobe, b as IconStorage } from "./IconStorage.7ab2388b.js";
import { M as Modal, a as ModalContainer } from "./ModalContainer.534f00e2.js";
import { F as FormInput } from "./FormInput.93482162.js";
import { F as FormTextarea } from "./FormTextarea.6e6c0f78.js";
import { F as FormActions } from "./Form.998044c1.js";
import { S as SettingsSegment } from "./SettingsSegment.b5cc94eb.js";
import { S as SettingsLayout } from "./SettingsLayout.df16cf93.js";
import Tabs from "./Tabs.3412a749.js";
import { g as createBlock, w as withCtx, r as resolveComponent, o as openBlock, a as createVNode, f as createTextVNode, t as toDisplayString, b as createBaseVNode } from "./app.2c3b9863.js";
import { _ as _export_sfc } from "./_plugin-vue_export-helper.cdc0426e.js";
import "./TabBar.abe46315.js";
import "./notification.9b4732d8.js";
const _sfc_main = {
layout: MainLayout,
components: {
TopBar,
Container,
Content,
Page,
PageHeader,
PageHeaderTitle,
PageBody,
Button,
List,
ListItem,
StatusBubble,
NotificationBadge,
IconBox,
IconGlobe,
IconStorage,
Modal,
ModalContainer,
FormInput,
FormTextarea,
FormActions,
EmptyImage,
Tabs,
SettingsLayout,
SettingsSegment
},
props: {
category: Object,
items: Object,
article: Object
},
data() {
return {
breadcrumbs: [
{
title: this.$page.props.settings.name,
to: "/"
},
{
title: this.__("Documentation"),
to: this.route("documentation.index")
},
{
title: this.category.title,
to: this.route("documentation.show", this.category.id)
},
{
title: this.article.title,
to: this.route("documentation.article.show", [this.category.id, this.article.id])
}
]
};
}
};
const _hoisted_1 = ["innerHTML"];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_Head = resolveComponent("Head");
const _component_TopBar = resolveComponent("TopBar");
const _component_PageHeaderTitle = resolveComponent("PageHeaderTitle");
const _component_PageHeader = resolveComponent("PageHeader");
const _component_Tabs = resolveComponent("Tabs");
const _component_SettingsLayout = resolveComponent("SettingsLayout");
const _component_PageBody = resolveComponent("PageBody");
const _component_Container = resolveComponent("Container");
const _component_Content = resolveComponent("Content");
const _component_Page = resolveComponent("Page");
return openBlock(), createBlock(_component_Page, null, {
default: withCtx(() => [
createVNode(_component_Head, {
title: $props.article.title
}, null, 8, ["title"]),
createVNode(_component_TopBar, { breadcrumbs: $data.breadcrumbs }, null, 8, ["breadcrumbs"]),
createVNode(_component_Content, null, {
default: withCtx(() => [
createVNode(_component_Container, null, {
default: withCtx(() => [
createVNode(_component_PageHeader, null, {
start: withCtx(() => [
createVNode(_component_PageHeaderTitle, null, {
default: withCtx(() => [
createTextVNode(toDisplayString($props.article.title), 1)
], void 0, true),
_: 1
})
]),
_: 1
}),
createVNode(_component_PageBody, null, {
default: withCtx(() => [
createVNode(_component_SettingsLayout, null, {
nav: withCtx(() => [
createVNode(_component_Tabs, {
items: $props.items.data
}, null, 8, ["items"])
]),
segments: withCtx(() => [
createBaseVNode("div", {
class: "prose",
innerHTML: $props.article.content
}, null, 8, _hoisted_1)
]),
_: 1
})
], void 0, true),
_: 1
})
], void 0, true),
_: 1
})
], void 0, true),
_: 1
})
], void 0, true),
_: 1
});
}
const Article = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
Article as default
};