⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
summernote
/
config
/
Edit File: common.js
const { readdirSync, readFileSync } = require('fs'); const glob = require('glob'); const path = require('path'); const defaultStyle = 'bs3'; module.exports = { defaultStyle, // Styles in /src/styles // Each entity becomes an entry point in Webpack build process. styles: readdirSync('./src/styles', { withFileTypes: true }) .filter(dirent => dirent.isDirectory() && dirent.name != 'summernote') .map(dirent => { const id = dirent.name; const target = id === defaultStyle ? 'summernote' : `summernote-${id}`; let name; // Try to find information json file and get them. try { let info = JSON.parse(readFileSync(`./src/styles/${id}/summernote-${id}.json`)); name = info.name ?? id; } catch { name = id; } return { id, name, target }; }), // Translation files in /src/locales languages: glob.sync('./src/lang/*.js') .map(name => path.basename(name, '.js')), // Regard all html files in examples directory as examples examples: glob.sync('./examples/*.html') .filter(f => f.charAt(0) != '_') // except files start with underscore .map(filepath => { let title; let name = path.parse(filepath).name; // Try to parse html and get <title> from it. try { let html = readFileSync(filepath).toString(); title = html.match(/<title[^>]*>([^<]+)<\/title>/)[1]; } catch { title = name; } return { filepath, name, title }; }), };
Simpan