mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 17:22:34 +01:00
26 lines
738 B
JavaScript
26 lines
738 B
JavaScript
import { createElement } from "../lib/skeleton/index.js";
|
|
|
|
import "../components/breadcrumb.js";
|
|
|
|
export default function(render) {
|
|
const currentPath = decodeURIComponent(location.pathname).replace(new RegExp("/view"), "");
|
|
const $page = createElement(`
|
|
<div class="component_page_filespage">
|
|
<div is="component-breadcrumb" path="${currentPath}" animateOut="test"></div>
|
|
<div class="page_container">
|
|
viewerpage - TODO
|
|
</div>
|
|
</div>
|
|
`);
|
|
render($page);
|
|
}
|
|
|
|
const tmp = () => {
|
|
const { previous } = history.state;
|
|
if (!previous) return;
|
|
|
|
const path = previous.split("/").slice(2)
|
|
};
|
|
|
|
|
|
const cleanupPath = (path = "") => path.split("/").slice(2);
|