ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkeweb2/layout/default/node_modules/summernote/config/ |
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 }; }), };