![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/libs/absol-doc/content/absol/ |
Upload File : |
var md = `# Library Indexed\n\n`; var lines = []; var dontRecursive = { language2LocalDateFormat: true, dateFormat2LocationList: true, operatorOrder: true, PAGE_SIZE_IN_DOT: true, PAGE_SIZE_IN_POINT: true, allWordDict: true } var dontShow = { formartDateString: true }; function iconOf(obj) { var iconName = 'cube'; var type = typeof obj; if (obj && (type === "object") && obj.constructor === Object) { iconName = 'code-braces'; } else if (type === 'function') { if (obj.render && obj.tag) { iconName = 'webpack'; } else if (obj.name.match(/^[A-Z]/)) { iconName = 'cube-scan'; } else iconName = 'function' } else if (obj instanceof Array) { iconName = 'view-array-outline'; } else if (type === 'number') { iconName = 'numeric'; } else if (type === "string") { iconName = 'format-text-variant'; } return `<span class="mdi mdi-${iconName}"></span>`; } function makeRow(obj, name, path) { if (dontShow[name]) return; if (name.startsWith('_') && name.length > 1) return; var type = typeof obj; var level = path.length; path = path.concat([name]); var pathText = path.join('.'); var line = '<div onclick="copyLibMapItem(\'' + pathText + '\');" class="as-lib-map-item" title="' + pathText + '"><span>' + ' '.repeat(level * 4) + '</span>'; line += iconOf(obj) + ' '; line += `<span>${name}</span>`; line += '</div>'; lines.push(line); if (dontRecursive[name]) return; if (obj instanceof Array) { } else if (obj && (type === "object") && obj.constructor === Object) { Object.keys(obj).forEach(function (key) { makeRow(obj[key], key, path) }) } } makeRow(absol, 'absol', []); md += lines.join('\n'); window.copyLibMapItem = window.copyLibMapItem || function (pathText) { absol.clipboard.copyText(pathText); absol.require('snackbar').show('copy: ' + pathText); } module.exports = md;