1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 05:15:54 +00:00

This is a maintenance commit with no released build.

* Added: `npm run font` command for editing the Fontello icon font. Use it to get started, then start the development server with `npm start` and changes will automatically save when you click `Export Font` from Fontello.
* Changed: The list of Fontello icons is now extracted from our Fontello config file so that it doesn't have to be manually updated.
This commit is contained in:
SirStendec 2019-09-29 15:49:29 -04:00
parent 1c0f7edab5
commit 38c87840af
23 changed files with 1502 additions and 166 deletions

View file

@ -52,6 +52,23 @@ module.exports = merge(common, {
next();
});
app.get('/update_font', (req, res) => {
const proc = exec('npm run font:save');
proc.stdout.on('data', data => {
console.log('FONT>>', data);
});
proc.stderr.on('data', data => {
console.error('FONT>>', data);
});
proc.on('close', code => {
console.log('FONT>> Exited with code', code);
res.redirect(req.headers.referer);
});
});
app.get('/script/script.js', (req, res, next) => {
req.url = req.url.replace(/^\/script/, '/script/clips');
next();