constructor()

in public/components/content-list-item/content-list-item.js [68:90]


        constructor(item) {
            if (item.composerId) {
                this.composer = `${config.composerViewContent}/${item.composerId}`;
            }
            if (item.editorId) {
              if (item.contentType === "media") {
                  this.mediaAtomMaker = `${config.mediaAtomMakerViewAtom}${item.editorId}`;
                  this.editor = this.mediaAtomMaker;
              } else {
                if (config.atomTypes.includes(item.contentType)) {
                  this.atomWorkshop = `${config.atomWorkshopViewAtom}/${item.contentType}/${item.editorId}/edit`;
                  this.editor = this.atomWorkshop;
                }
              }
            }
            if (item.path) {
                this.preview = getViewerURL(item.path);
            }
            if (item.published && item.path) {
                this.live = LIVE_PATH + item.path;
                this.ophan = OPHAN_PATH + item.path;
            }
        }