!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/zrender/build/   drwxrwxr-x
Free 12.98 GB of 57.97 GB (22.39%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     build.js (3.47 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// const typescript = require('@rollup/plugin-typescript');
const typescript = require('rollup-plugin-typescript2');
const replace = require('@rollup/plugin-replace');
const rollup = require('rollup');
const path = require('path');
const processs = require('process');
const chalk = require('chalk');
const progress = require('./progress');
const UglifyJS = require('uglify-js');
const fs = require('fs');

function current() {
    return (new Date()).toLocaleString();
}

function createInputOption(env, isWatch) {
    return {
        input: path.resolve(__dirname, '../index.ts'),
        plugins: [
            typescript({
                clean: !isWatch,
                tsconfigOverride: {
                    compilerOptions: {
                        // Rollup don't use CommonJS by default.
                        module: 'ES2015',
                        sourceMap: true,
                        // Use the esm d.ts
                        declaration: false
                    }
                }
            }),
            replace({
                preventAssignment: true,
                'process.env.NODE_ENV': JSON.stringify(env)
            }),
            progress({
                scope: {
                    total: 0
                }
            })
        ]
    };
}

const outputOption = {
    format: 'umd',
    file: path.resolve(__dirname, '../dist/zrender.js'),
    sourcemap: true,
    name: 'zrender'
};

function minify(outPath) {
    const code = fs.readFileSync(outPath, 'utf-8');
    const uglifyResult = UglifyJS.minify(code);
    if (uglifyResult.error) {
        throw new Error(uglifyResult.error);
    }
    fs.writeFileSync(outPath, uglifyResult.code, 'utf-8');
}

if (processs.argv.includes('--watch')) {
    const watcher = rollup.watch({
        ...createInputOption('development', true),
        output: [outputOption],
        watch: {
            clearScreen: true
        }
    });
    watcher.on('event', event => {
        switch(event.code) {
            // case 'START':
            //     console.log(chalk.green('Begin to watch'));
            //     break;
            case 'BUNDLE_START':
                console.log(
                    chalk.gray(current()),
                    chalk.blue('File changed. Begin to bundle')
                );
                break;
            case 'BUNDLE_END':
                console.log(
                    chalk.gray(current()),
                    chalk.green('Finished bundle')
                );
                break;
            case 'ERROR':
                console.log(
                    chalk.gray(current()),
                    chalk.red(event.error)
                );
                break;
        }
    });
}
else {
    // Unminified
    rollup.rollup({
        ...createInputOption('development', false)
    }).then(bundle => {
        bundle.write(outputOption)
            .then(() => {
                // Minified
                if (process.argv.indexOf('--minify') >= 0) {
                    rollup.rollup({
                        ...createInputOption('production', false)
                    }).then(bundle => {
                        const file = outputOption.file.replace(/.js$/, '.min.js');
                        bundle.write(Object.assign(outputOption, {
                            file,
                            sourcemap: false
                        })).then(function () {
                            minify(file);
                        });
                    });
                }
            });
    });
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--