X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/amd/src
home
/
cbholdings
/
pasukulu
/
lib
/
amd
/
src
/
📁
..
📄
adapter.js
(123.08 KB)
📄
addblockmodal.js
(4.4 KB)
📄
ajax.js
(11.97 KB)
📄
aria.js
(1011 B)
📄
auto_rows.js
(3.46 KB)
📄
autoscroll.js
(6.49 KB)
📄
backoff_timer.js
(4.98 KB)
📄
chart_axis.js
(7.39 KB)
📄
chart_bar.js
(3.08 KB)
📄
chart_base.js
(11.36 KB)
📄
chart_builder.js
(1.65 KB)
📄
chart_line.js
(2.08 KB)
📄
chart_output.js
(1.08 KB)
📄
chart_output_base.js
(2.03 KB)
📄
chart_output_chartjs.js
(10.86 KB)
📄
chart_output_htmltable.js
(3.3 KB)
📄
chart_pie.js
(3.03 KB)
📄
chart_series.js
(8.35 KB)
📄
chartjs-lazy.js
(488.32 KB)
📄
chartjs.js
(913 B)
📄
checkbox-toggleall.js
(12.78 KB)
📄
config.js
(1002 B)
📄
copy_to_clipboard.js
(7.39 KB)
📄
custom_interaction_events.js
(22.18 KB)
📁
datafilter
📄
datafilter.js
(15.28 KB)
📄
dragdrop.js
(12.92 KB)
📄
drawer.js
(3.49 KB)
📄
drawer_events.js
(967 B)
📄
dynamic_tabs.js
(6.68 KB)
📄
edit_switch.js
(3.45 KB)
📁
emoji
📄
event.js
(3.11 KB)
📄
event_dispatcher.js
(2.79 KB)
📄
first.js
(1.36 KB)
📄
form-autocomplete.js
(51.21 KB)
📄
form-cohort-selector.js
(2.46 KB)
📄
form-course-selector.js
(3.77 KB)
📄
fragment.js
(5.03 KB)
📄
fullscreen.js
(1.62 KB)
📄
icon_system.js
(2.56 KB)
📄
icon_system_fontawesome.js
(4.01 KB)
📄
icon_system_standard.js
(2.3 KB)
📄
inplace_editable.js
(17.25 KB)
📄
key_codes.js
(1.34 KB)
📄
loadingicon.js
(3.88 KB)
📁
local
📄
localstorage.js
(2.08 KB)
📄
log.js
(1.74 KB)
📄
loglevel.js
(10.63 KB)
📄
menu_navigation.js
(9.2 KB)
📄
modal.js
(31.18 KB)
📄
modal_backdrop.js
(4.46 KB)
📄
modal_cancel.js
(1.49 KB)
📄
modal_copy_to_clipboard.js
(3.82 KB)
📄
modal_delete_cancel.js
(2.22 KB)
📄
modal_events.js
(1.35 KB)
📄
modal_factory.js
(8.97 KB)
📄
modal_registry.js
(2.38 KB)
📄
modal_save_cancel.js
(2.21 KB)
📁
moodlenet
📄
moremenu.js
(10.3 KB)
📄
mustache.js
(28.75 KB)
📄
network.js
(9.66 KB)
📄
normalise.js
(1.9 KB)
📄
notification.js
(11.8 KB)
📄
page_global.js
(5.38 KB)
📄
paged_content.js
(2.87 KB)
📄
paged_content_events.js
(1.17 KB)
📄
paged_content_factory.js
(20.93 KB)
📄
paged_content_pages.js
(11.75 KB)
📄
paged_content_paging_bar.js
(20.36 KB)
📄
paged_content_paging_bar_limit_selector.js
(2.36 KB)
📄
paged_content_paging_dropdown.js
(7.36 KB)
📄
pending.js
(4.48 KB)
📄
permissionmanager.js
(9.77 KB)
📄
popover_region_controller.js
(13.04 KB)
📄
popper.js
(79.2 KB)
📄
prefetch.js
(5.85 KB)
📄
process_monitor.js
(3.55 KB)
📄
pubsub.js
(2.17 KB)
📄
reactive.js
(1.38 KB)
📄
scroll_manager.js
(5.5 KB)
📄
sessionstorage.js
(2.22 KB)
📄
showhidesettings.js
(11.82 KB)
📄
sortable_list.js
(29.51 KB)
📄
sticky-footer.js
(2.58 KB)
📄
storagewrapper.js
(5.21 KB)
📄
str.js
(7.84 KB)
📄
tag.js
(19.84 KB)
📄
templates.js
(51.36 KB)
📄
toast.js
(3.32 KB)
📄
tooltip.js
(4.09 KB)
📄
tree.js
(18.39 KB)
📄
truncate.js
(6.56 KB)
📄
url.js
(3.65 KB)
📄
user_date.js
(9.32 KB)
📄
userfeedback.js
(2.91 KB)
📄
usermenu.js
(5.13 KB)
📄
utility.js
(6.15 KB)
📄
utils.js
(2.73 KB)
📄
yui.js
(1.13 KB)
Editing: loglevel.js
// Copyright (c) 2013 Tim Perry // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. // Description of import into Moodle: // Download from https://github.com/pimterry/loglevel/tree/master/dist // Copy loglevel.js into lib/amd/src/ in Moodle folder. // Add the license as a comment to the file and these instructions. /*! loglevel - v1.8.1 - https://github.com/pimterry/loglevel - (c) 2022 Tim Perry - licensed MIT */ (function (root, definition) { "use strict"; if (typeof define === 'function' && define.amd) { define(definition); } else if (typeof module === 'object' && module.exports) { module.exports = definition(); } else { root.log = definition(); } }(this, function () { "use strict"; // Slightly dubious tricks to cut down minimized file size var noop = function() {}; var undefinedType = "undefined"; var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && ( /Trident\/|MSIE /.test(window.navigator.userAgent) ); var logMethods = [ "trace", "debug", "info", "warn", "error" ]; // Cross-browser bind equivalent that works at least back to IE6 function bindMethod(obj, methodName) { var method = obj[methodName]; if (typeof method.bind === 'function') { return method.bind(obj); } else { try { return Function.prototype.bind.call(method, obj); } catch (e) { // Missing bind shim or IE8 + Modernizr, fallback to wrapping return function() { return Function.prototype.apply.apply(method, [obj, arguments]); }; } } } // Trace() doesn't print the message in IE, so for that case we need to wrap it function traceForIE() { if (console.log) { if (console.log.apply) { console.log.apply(console, arguments); } else { // In old IE, native console methods themselves don't have apply(). Function.prototype.apply.apply(console.log, [console, arguments]); } } if (console.trace) console.trace(); } // Build the best logging method possible for this env // Wherever possible we want to bind, not wrap, to preserve stack traces function realMethod(methodName) { if (methodName === 'debug') { methodName = 'log'; } if (typeof console === undefinedType) { return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives } else if (methodName === 'trace' && isIE) { return traceForIE; } else if (console[methodName] !== undefined) { return bindMethod(console, methodName); } else if (console.log !== undefined) { return bindMethod(console, 'log'); } else { return noop; } } // These private functions always need `this` to be set properly function replaceLoggingMethods(level, loggerName) { /*jshint validthis:true */ for (var i = 0; i < logMethods.length; i++) { var methodName = logMethods[i]; this[methodName] = (i < level) ? noop : this.methodFactory(methodName, level, loggerName); } // Define log.log as an alias for log.debug this.log = this.debug; } // In old IE versions, the console isn't present until you first open it. // We build realMethod() replacements here that regenerate logging methods function enableLoggingWhenConsoleArrives(methodName, level, loggerName) { return function () { if (typeof console !== undefinedType) { replaceLoggingMethods.call(this, level, loggerName); this[methodName].apply(this, arguments); } }; } // By default, we use closely bound real methods wherever possible, and // otherwise we wait for a console to appear, and then try again. function defaultMethodFactory(methodName, level, loggerName) { /*jshint validthis:true */ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments); } function Logger(name, defaultLevel, factory) { var self = this; var currentLevel; defaultLevel = defaultLevel == null ? "WARN" : defaultLevel; var storageKey = "loglevel"; if (typeof name === "string") { storageKey += ":" + name; } else if (typeof name === "symbol") { storageKey = undefined; } function persistLevelIfPossible(levelNum) { var levelName = (logMethods[levelNum] || 'silent').toUpperCase(); if (typeof window === undefinedType || !storageKey) return; // Use localStorage if available try { window.localStorage[storageKey] = levelName; return; } catch (ignore) {} // Use session cookie as fallback try { window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";"; } catch (ignore) {} } function getPersistedLevel() { var storedLevel; if (typeof window === undefinedType || !storageKey) return; try { storedLevel = window.localStorage[storageKey]; } catch (ignore) {} // Fallback to cookies if local storage gives us nothing if (typeof storedLevel === undefinedType) { try { var cookie = window.document.cookie; var location = cookie.indexOf( encodeURIComponent(storageKey) + "="); if (location !== -1) { storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1]; } } catch (ignore) {} } // If the stored level is not valid, treat it as if nothing was stored. if (self.levels[storedLevel] === undefined) { storedLevel = undefined; } return storedLevel; } function clearPersistedLevel() { if (typeof window === undefinedType || !storageKey) return; // Use localStorage if available try { window.localStorage.removeItem(storageKey); return; } catch (ignore) {} // Use session cookie as fallback try { window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC"; } catch (ignore) {} } /* * * Public logger API - see https://github.com/pimterry/loglevel for details * */ self.name = name; self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3, "ERROR": 4, "SILENT": 5}; self.methodFactory = factory || defaultMethodFactory; self.getLevel = function () { return currentLevel; }; self.setLevel = function (level, persist) { if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) { level = self.levels[level.toUpperCase()]; } if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) { currentLevel = level; if (persist !== false) { // defaults to true persistLevelIfPossible(level); } replaceLoggingMethods.call(self, level, name); if (typeof console === undefinedType && level < self.levels.SILENT) { return "No console available for logging"; } } else { throw "log.setLevel() called with invalid level: " + level; } }; self.setDefaultLevel = function (level) { defaultLevel = level; if (!getPersistedLevel()) { self.setLevel(level, false); } }; self.resetLevel = function () { self.setLevel(defaultLevel, false); clearPersistedLevel(); }; self.enableAll = function(persist) { self.setLevel(self.levels.TRACE, persist); }; self.disableAll = function(persist) { self.setLevel(self.levels.SILENT, persist); }; // Initialize with the right level var initialLevel = getPersistedLevel(); if (initialLevel == null) { initialLevel = defaultLevel; } self.setLevel(initialLevel, false); } /* * * Top-level API * */ var defaultLogger = new Logger(); var _loggersByName = {}; defaultLogger.getLogger = function getLogger(name) { if ((typeof name !== "symbol" && typeof name !== "string") || name === "") { throw new TypeError("You must supply a name when creating a logger."); } var logger = _loggersByName[name]; if (!logger) { logger = _loggersByName[name] = new Logger( name, defaultLogger.getLevel(), defaultLogger.methodFactory); } return logger; }; // Grab the current global log variable in case of overwrite var _log = (typeof window !== undefinedType) ? window.log : undefined; defaultLogger.noConflict = function() { if (typeof window !== undefinedType && window.log === defaultLogger) { window.log = _log; } return defaultLogger; }; defaultLogger.getLoggers = function getLoggers() { return _loggersByName; }; // ES6 default export, for compatibility defaultLogger['default'] = defaultLogger; return defaultLogger; }));
Upload File
Create Folder