UNPKG

ember-alexandria

Version:

Document management frontend for the alexandria backend

64 lines (51 loc) 1.35 kB
import Service from "@ember/service"; import { tracked } from "@glimmer/tracking"; export default class AlexandriaConfigService extends Service { namespace = undefined; zipDownloadHost = undefined; zipDownloadNamespace = undefined; enablePDFConversion = false; enableWebDAV = false; enableOriginalDocumentFilename = false; allowedWebDAVMimeTypes = [ "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ]; additionalFileTypes = {}; markIcons = {}; @tracked alexandriaQueryParams = {}; /** * The active group is used for the createdByGroup property when creating new * documents and files. This is important as a user can be in multiple groups. */ @tracked activeGroup = null; /** * Defaults so we can lookup * `this.config.modelMetaFilters.document` * without an exeption on modelMetaFilters. */ get modelMetaFilters() { return {}; } get defaultModelMeta() { return {}; } get suggestedTagsFilters() { return {}; } resolveUser(id) { return id; } resolveGroup(id) { return id; } documentsPostProcess(documents) { return documents; } documentListLinkTo(document) { return { route: "index", label: document.title, }; } }