Showing 337 of 337 total issues
Function setACLUserPublic
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setACLUserPublic (
docURI: $rdf.NamedNode,
me: $rdf.NamedNode,
options: {
defaultForNew?: boolean,
Function renderAppsButton
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private renderAppsButton (): HTMLElement {
return widgets.button(
this.groupList.controller.dom,
`${icons.iconBase}noun_15177.svg`,
'A Web App (origin)',
Function personTR
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buttons.personTR = function (dom, pred, obj, options) {
var tr = dom.createElement('tr')
options = options || {}
// tr.predObj = [pred.uri, obj.uri] moved to acl-control
var td1 = tr.appendChild(dom.createElement('td'))
Function patchPromises
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const patchPromises = [group.doc(), groupIndex].map(doc => {
const typeStatement = rdf.st(
group,
ns.rdf('type'),
ns.vcard('Group'),
Function loadController
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function loadController (
doc: NamedNode,
kb: IndexedFormula,
subject: NamedNode,
noun: string,
Function makeACLGraphbyCombo
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function makeACLGraphbyCombo (
kb: $rdf.IndexedFormula,
x: $rdf.NamedNode,
byCombo: ComboList,
aclDoc: $rdf.NamedNode,
Function readACL
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function readACL (
x: $rdf.NamedNode,
aclDoc: $rdf.NamedNode,
kb2: $rdf.IndexedFormula = kb,
getDefaults?: boolean
Function tryReload
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var tryReload = function () {
console.log('try reload - timeout = ' + retryTimeout)
updater.reload(updater.store, padDoc, function (ok, message, xhr) {
reloading = false
if (ok) {
Function turnOnInput
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var turnOnInput = function () {
creatorAndDate(lhs, me, '', null)
field = dom.createElement('textarea')
middle.innerHTML = ''
Function cameraOLD
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UI.media.cameraOLD = function (context, _gotBlob) {
function takeSnapshot () {
var dom = context.dom
var img = dom.createElement('img')
var ctx
Function insertPreviousMessages
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function insertPreviousMessages (backwards) {
const extremity = backwards ? earliest : latest
let date = extremity.messageTable.date // day in mssecs
date = await dateFolder.loadPrevious(date, backwards) // backwards
Function turnOnInput
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var turnOnInput = function () {
creatorAndDate(lhs, me, '', null)
field = dom.createElement('textarea')
middle.innerHTML = ''
Function applyColumnSort
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function applyColumnSort (rows, column, sortFunction, reverse) {
var columnKey = column.getKey()
// Sort the rows array.
rows.sort(function (row1, row2) {
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public render (): HTMLElement {
this.rootElement.innerHTML = ''
if (this.isUsingDefaults) {
this.renderStatus(`The sharing for this ${this.noun} is the default for folder `)
if (this.defaultHolder) {
Function editFormButton
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forms.editFormButton = function (
dom,
container,
form,
store,
Function _trySetImage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buttons._trySetImage = function _trySetImage (element, thing, iconForClassMap) {
const kb = UI.store
const explitImage = buttons.findImage(thing)
if (explitImage) {
Function updateMany
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateMany (ds, is, callback) {
var docs = []
is.forEach(st => {
if (!docs.includes(st.why.uri)) docs.push(st.why.uri)
})
Function propertiesForClass
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
forms.propertiesForClass = function (kb, c) {
var ns = UI.ns
var explicit = kb.each(undefined, ns.rdf('range'), c)
;[
ns.rdfs('comment'),
Function deleteThisItem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function deleteThisItem () {
if (ordered) {
console.log('pre delete: ' + debugString(list.elements))
for (let i = 0; i < list.elements.length; i++) {
if (list.elements[i].sameTerm(object)) {
Function buildCheckboxForm
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildCheckboxForm (dom, kb, lab, del, ins, form, store, tristate) {