Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.217.230.80
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
html-loader /
Delete
Unzip
Name
Size
Permission
Date
Action
.github
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
lib
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
.editorconfig
67
B
-rw-r--r--
2017-02-24 17:53
.eslintrc
463
B
-rw-r--r--
2017-02-24 17:53
.jsbeautifyrc
708
B
-rw-r--r--
2017-02-24 17:53
.npmignore
133
B
-rw-r--r--
2017-02-24 17:53
.travis.yml
217
B
-rw-r--r--
2017-02-24 18:23
CONTRIBUTING.md
1.54
KB
-rw-r--r--
2017-02-24 17:53
LICENSE
1.05
KB
-rw-r--r--
2017-02-24 17:53
README.md
8.18
KB
-rw-r--r--
2017-02-24 17:53
index.js
3.75
KB
-rw-r--r--
2017-02-24 18:23
package.json
2.14
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var htmlMinifier = require("html-minifier"); var attrParse = require("./lib/attributesParser"); var loaderUtils = require("loader-utils"); var url = require("url"); var assign = require("object-assign"); var compile = require("es6-templates").compile; function randomIdent() { return "xxxHTMLLINKxxx" + Math.random() + Math.random() + "xxx"; } function getLoaderConfig(context) { var query = loaderUtils.getOptions(context) || {}; var configKey = query.config || 'htmlLoader'; var config = context.options && context.options.hasOwnProperty(configKey) ? context.options[configKey] : {}; delete query.config; return assign(query, config); } module.exports = function(content) { this.cacheable && this.cacheable(); var config = getLoaderConfig(this); var attributes = ["img:src"]; if(config.attrs !== undefined) { if(typeof config.attrs === "string") attributes = config.attrs.split(" "); else if(Array.isArray(config.attrs)) attributes = config.attrs; else if(config.attrs === false) attributes = []; else throw new Error("Invalid value to config parameter attrs"); } var root = config.root; var links = attrParse(content, function(tag, attr) { return attributes.indexOf(tag + ":" + attr) >= 0; }); links.reverse(); var data = {}; content = [content]; links.forEach(function(link) { if(!loaderUtils.isUrlRequest(link.value, root)) return; var uri = url.parse(link.value); if (uri.hash !== null && uri.hash !== undefined) { uri.hash = null; link.value = uri.format(); link.length = link.value.length; } do { var ident = randomIdent(); } while(data[ident]); data[ident] = link.value; var x = content.pop(); content.push(x.substr(link.start + link.length)); content.push(ident); content.push(x.substr(0, link.start)); }); content.reverse(); content = content.join(""); if (config.interpolate === 'require'){ var reg = /\$\{require\([^)]*\)\}/g; var result; var reqList = []; while(result = reg.exec(content)){ reqList.push({ length : result[0].length, start : result.index, value : result[0] }) } reqList.reverse(); content = [content]; reqList.forEach(function(link) { var x = content.pop(); do { var ident = randomIdent(); } while(data[ident]); data[ident] = link.value.substring(11,link.length - 3) content.push(x.substr(link.start + link.length)); content.push(ident); content.push(x.substr(0, link.start)); }); content.reverse(); content = content.join(""); } if(typeof config.minimize === "boolean" ? config.minimize : this.minimize) { var minimizeOptions = assign({}, config); [ "removeComments", "removeCommentsFromCDATA", "removeCDATASectionsFromCDATA", "collapseWhitespace", "conservativeCollapse", "removeAttributeQuotes", "useShortDoctype", "keepClosingSlash", "minifyJS", "minifyCSS", "removeScriptTypeAttributes", "removeStyleTypeAttributes", ].forEach(function(name) { if(typeof minimizeOptions[name] === "undefined") { minimizeOptions[name] = true; } }); content = htmlMinifier.minify(content, minimizeOptions); } if(config.interpolate && config.interpolate !== 'require') { content = compile('`' + content + '`').code; } else { content = JSON.stringify(content); } var exportsString = "module.exports = "; if (config.exportAsDefault) { exportsString = "exports.default = "; } else if (config.exportAsEs6Default) { exportsString = "export default "; } return exportsString + content.replace(/xxxHTMLLINKxxx[0-9\.]+xxx/g, function(match) { if(!data[match]) return match; return '" + require(' + JSON.stringify(loaderUtils.urlToRequest(data[match], root)) + ') + "'; }) + ";"; }