UNPKG

@e280/quay

Version:

File-browser and outliner UI for the web

33 lines 1.13 kB
import { Group } from "../../group.js"; import { Permissions } from "../../permissions.js"; import { Codex } from "../../aspects/codex/codex.js"; export class PlainGroup extends Group { static config = () => { const codex = Codex.setup({ item: { icon: "📄" }, }); const root = codex.root(codex.create("item", { label: "root" })); return { codex, root, defaultSort: "id", sorts: new Map() .set("label", (a, b) => a.id.localeCompare(b.id)), defaultFilter: "all", filters: new Map() .set("all", () => true), search: (terms, item) => { return terms.some(term => (item.kind.includes(term) || item.id.includes(term))); }, renderLabel: item => item.id, renderIcon: item => item.taxon.icon, renderPreview: () => null, permissions: item => Permissions.all, }; }; constructor() { super(PlainGroup.config()); } } //# sourceMappingURL=group.js.map