Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var showResults = function (exists: boolean) {
console.log('showResults()')
me = authn.currentUser()
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
var showResults = function (exists: boolean) {
console.log('showResults()')
me = authn.currentUser()
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
function getName (store: IndexedFormula, ownersProfile: NamedNode): string {
return (
store.anyValue(ownersProfile, ns.vcard('fn'), null, ownersProfile.doc()) ||
store.anyValue(ownersProfile, ns.foaf('name'), null, ownersProfile.doc()) ||
new URL(ownersProfile.uri).host.split('.')[0]
)
}
label: function (subject, context) {
var t = context.session.store.findTypeURIs(subject)
if (
t[ns.vcard('Individual').uri] ||
t[ns.vcard('Organization').uri] ||
t[ns.foaf('Person').uri] ||
t[ns.schema('Person').uri]
) {
return 'Profile'
}
return null
},
label: function (subject, context) {
var t = context.session.store.findTypeURIs(subject)
if (
t[ns.vcard('Individual').uri] ||
t[ns.vcard('Organization').uri] ||
t[ns.foaf('Person').uri] ||
t[ns.schema('Person').uri]
) {
return 'Profile'
}
return null
},
label: function (subject, context) {
var t = context.session.store.findTypeURIs(subject)
if (
t[ns.vcard('Individual').uri] ||
t[ns.vcard('Organization').uri] ||
t[ns.foaf('Person').uri] ||
t[ns.schema('Person').uri]
) {
return 'Profile'
}
return null
},
label: function (subject, context) {
var t = context.session.store.findTypeURIs(subject)
if (
t[ns.vcard('Individual').uri] ||
t[ns.vcard('Organization').uri] ||
t[ns.foaf('Person').uri] ||
t[ns.schema('Person').uri]
) {
return 'Profile'
}
return null
},