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 : 3.143.203.21
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
laravel-mix /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
builder
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
components
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
tasks
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
webpackPlugins
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
Api.js
1.96
KB
-rw-r--r--
2021-02-04 21:24
Assert.js
1.97
KB
-rw-r--r--
2021-02-04 21:24
Dependencies.js
1.42
KB
-rw-r--r--
2021-02-04 21:24
Dispatcher.js
887
B
-rw-r--r--
2021-02-04 21:24
File.js
5.37
KB
-rw-r--r--
2021-02-04 21:24
FileCollection.js
2.52
KB
-rw-r--r--
2021-02-04 21:24
Manifest.js
2.95
KB
-rw-r--r--
2021-02-04 21:24
Mix.js
2.41
KB
-rw-r--r--
2021-02-04 21:24
Paths.js
920
B
-rw-r--r--
2021-02-04 21:24
StandaloneSass.js
3.77
KB
-rw-r--r--
2021-02-04 21:24
config.js
6.84
KB
-rw-r--r--
2021-02-04 21:24
helpers.js
1.04
KB
-rw-r--r--
2021-02-04 21:24
index.js
1.83
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
let File = require('./File'); let path = require('path'); let spawn = require('child_process').spawn; let notifier = require('node-notifier'); class StandaloneSass { /** * Create a new StandaloneSass instance. * * @param {string} src * @param {string} output * @param {object} pluginOptions */ constructor(src, output, pluginOptions) { this.src = src; this.output = output; this.pluginOptions = pluginOptions; this.shouldWatch = process.argv.includes('--watch'); Mix.addAsset(this.output); } /** * Run the node-sass compiler. */ run() { this.compile(); if (this.shouldWatch) this.watch(); } /** * Compile Sass. * * @param {Boolean} watch */ compile(watch = false) { this.command = spawn( path.resolve('./node_modules/.bin/node-sass'), [this.src.path(), this.output.path()].concat(this.options(watch)), { shell: true } ); this.whenOutputIsAvailable((output, event) => { if (event === 'error') this.onFail(output); if (event === 'success') this.onSuccess(output); }); return this; } /** * Fetch the node-sass options. * * @param {Boolean} watch */ options(watch) { let sassOptions = [ '--precision=8', '--output-style=' + (Mix.inProduction() ? 'compressed' : 'expanded') ]; if (watch) sassOptions.push('--watch'); if (this.pluginOptions.includePaths) { this.pluginOptions.includePaths.forEach(path => sassOptions.push('--include-path=' + path) ); } if (this.pluginOptions.importer) { sassOptions.push('--importer ' + this.pluginOptions.importer); } if (Mix.isUsing('sourcemaps') && !Mix.inProduction()) { sassOptions.push('--source-map-embed'); } return sassOptions; } /** * Compile Sass, while registering a watcher. */ watch() { return this.compile(true); } /** * Register a callback for when output is available. * * @param {Function} callback */ whenOutputIsAvailable(callback) { this.command.stderr.on('data', output => { output = output.toString(); let event = 'change'; if (output.includes('Error')) event = 'error'; if (output.includes('Wrote CSS')) event = 'success'; callback(output, event); }); } /** * Handle successful compilation. * * @param {string} output */ onSuccess(output) { console.log('\n'); console.log(output); if (Config.notifications.onSuccess) { notifier.notify({ title: 'Laravel Mix', message: 'Sass Compilation Successful', contentImage: 'node_modules/laravel-mix/icons/laravel.png' }); } } /** * Handle failed compilation. * * @param {string} output */ onFail(output) { output = output.replace( /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '' ); console.log('\n'); console.log('Sass Compilation Failed!'); console.log(); console.log(output); if (Mix.isUsing('notifications')) { notifier.notify({ title: 'Laravel Mix', subtitle: 'Sass Compilation Failed', message: JSON.parse(output).message, contentImage: 'node_modules/laravel-mix/icons/laravel.png' }); } if (!this.shouldWatch) process.exit(); } } module.exports = StandaloneSass;