mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-21 07:42:30 +01:00
25 lines
830 B
JavaScript
25 lines
830 B
JavaScript
import { createElement } from "../../lib/skeleton/index.js";
|
|
import rxjs, { effect, htmlContent } from "../../lib/rxjs/index.js"
|
|
import CSSLoader from "../../helpers/css.js";
|
|
import transition from "./animate.js";
|
|
|
|
import Release from "./model_release.js";
|
|
import AdminOnly from "./decorator_admin_only.js";
|
|
import WithShell from "./decorator_sidemenu.js";
|
|
|
|
export default AdminOnly(WithShell(async function(render) {
|
|
const $page = createElement(`
|
|
<div class="component_page_about">
|
|
<style>${css}</style>
|
|
<div data-bind="about"><Loader /></div>
|
|
</div>
|
|
`);
|
|
render(transition($page));
|
|
|
|
effect(Release.get().pipe(
|
|
rxjs.map(({ html }) => html),
|
|
htmlContent($page, `[data-bind="about"]`),
|
|
));
|
|
}));
|
|
|
|
const css = await CSSLoader(import.meta, "ctrl_about.css");
|