Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
authn.checkUser().then((webId: string) => {
me = webId
})
var title =
store.any(subject, ns.dc('title')) || store.any(subject, ns.vcard('fn'))
if (paneOptions.solo && typeof window !== 'undefined' && title) {
window.document.title = title.value
}
options.exists = exists
padEle = pad.notepad(dom, padDoc, subject, me, options)
naviMain.appendChild(padEle)
var partipationTarget =
store.any(subject, ns.meeting('parentMeeting')) || subject
pad.manageParticipation(
dom,
naviMiddle2,
padDoc,
partipationTarget,
me,
options
)
// @@ TODO Remove casting of updater
;(store.updater as any).setRefreshHandler(padDoc, padEle.reloadAndSync) // initiated =
}
;(async () => {
// @@ TODO Remove castings...
await ((store as any).fetcher.load as any)(subject)
div.appendChild(tabs.tabWidget({
dom,
subject,
predicate: store.any(subject, ns.meeting('predicate')) || ns.meeting('toolList'),
ordered: true,
orientation: store.anyValue(subject, ns.meeting('orientation')) || 0,
renderMain: (containerDiv, item) => {
containerDiv.innerHTML = ''
const table = containerDiv.appendChild(context.dom.createElement('table'))
;(context.getOutliner(context.dom) as any).GotoSubject(item, true, null, false, undefined, table)
},
renderTab: (containerDiv, item) => {
const predicate = context.session.store.the(subject, ns.meeting('predicate'))
containerDiv.appendChild(widgets.personTR(context.dom, predicate, item, {}))
},
backgroundColor: store.anyValue(subject, ns.ui('backgroundColor')) || '#ddddcc'
}))
})()
return div
;(async () => {
// @@ TODO Remove castings...
await ((store as any).fetcher.load as any)(subject)
div.appendChild(tabs.tabWidget({
dom,
subject,
predicate: store.any(subject, ns.meeting('predicate')) || ns.meeting('toolList'),
ordered: true,
orientation: store.anyValue(subject, ns.meeting('orientation')) || 0,
renderMain: (containerDiv, item) => {
containerDiv.innerHTML = ''
const table = containerDiv.appendChild(context.dom.createElement('table'))
;(context.getOutliner(context.dom) as any).GotoSubject(item, true, null, false, undefined, table)
},
renderTab: (containerDiv, item) => {
const predicate = context.session.store.the(subject, ns.meeting('predicate'))
containerDiv.appendChild(widgets.personTR(context.dom, predicate, item, {}))
},
backgroundColor: store.anyValue(subject, ns.ui('backgroundColor')) || '#ddddcc'
}))
})()
return div
authn.checkUser().then((webId: string) => {
me = webId
})
var title =
store.any(subject, ns.dc('title')) || store.any(subject, ns.vcard('fn'))
if (paneOptions.solo && typeof window !== 'undefined' && title) {
window.document.title = title.value
}
options.exists = exists
padEle = pad.notepad(dom, padDoc, subject, me, options)
naviMain.appendChild(padEle)
var partipationTarget =
store.any(subject, ns.meeting('parentMeeting')) || subject
pad.manageParticipation(
dom,
naviMiddle2,
padDoc,
partipationTarget,
me,
options
)
// @@ TODO Remove casting of updater
;(store.updater as any).setRefreshHandler(padDoc, padEle.reloadAndSync) // initiated =
}
renderTab: (containerDiv, item) => {
const predicate = context.session.store.the(subject, ns.meeting('predicate'))
containerDiv.appendChild(widgets.personTR(context.dom, predicate, item, {}))
},
backgroundColor: store.anyValue(subject, ns.ui('backgroundColor')) || '#ddddcc'
label: (subject, context) => {
const kb = context.session.store
const typeURIs = kb.findTypeURIs(subject)
if (ns.meeting('Cluster').uri in typeURIs) {
return 'Tabbed'
}
return null
},