diff options
-rw-r--r-- | includes/sys_template.php | 2 | ||||
-rw-r--r-- | resources/assets/emojis/cry.gif (renamed from public/emojis/cry.gif) | bin | 498 -> 498 bytes | |||
-rw-r--r-- | resources/assets/emojis/evil.gif (renamed from public/emojis/evil.gif) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | resources/assets/emojis/lol.gif (renamed from public/emojis/lol.gif) | bin | 336 -> 336 bytes | |||
-rw-r--r-- | resources/assets/emojis/mad.gif (renamed from public/emojis/mad.gif) | bin | 174 -> 174 bytes | |||
-rw-r--r-- | resources/assets/emojis/question.gif (renamed from public/emojis/question.gif) | bin | 248 -> 248 bytes | |||
-rw-r--r-- | resources/assets/emojis/redface.gif (renamed from public/emojis/redface.gif) | bin | 650 -> 650 bytes | |||
-rw-r--r-- | resources/assets/emojis/rolleyes.gif (renamed from public/emojis/rolleyes.gif) | bin | 485 -> 485 bytes | |||
-rw-r--r-- | resources/assets/emojis/sad.gif (renamed from public/emojis/sad.gif) | bin | 171 -> 171 bytes | |||
-rw-r--r-- | resources/assets/emojis/smile.gif (renamed from public/emojis/smile.gif) | bin | 174 -> 174 bytes | |||
-rw-r--r-- | resources/assets/emojis/wind.gif (renamed from public/emojis/wind.gif) | bin | 170 -> 170 bytes | |||
-rw-r--r-- | src/Http/Response.php | 2 | ||||
-rw-r--r-- | webpack.config.js | 7 |
13 files changed, 9 insertions, 2 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index 19b0c2fa..e764c6e3 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -482,7 +482,7 @@ function ReplaceSmilies($msg) ) { $msg = str_ireplace($search, sprintf( '<img src="%s">', - sprintf($assets->getAsset('emojis/%s.gif'), $replace) + sprintf($assets->getAsset('assets/emojis/%s.gif'), $replace) ), $msg); } diff --git a/public/emojis/cry.gif b/resources/assets/emojis/cry.gif Binary files differindex 7d54b1f9..7d54b1f9 100644 --- a/public/emojis/cry.gif +++ b/resources/assets/emojis/cry.gif diff --git a/public/emojis/evil.gif b/resources/assets/emojis/evil.gif Binary files differindex ab1aa8e1..ab1aa8e1 100644 --- a/public/emojis/evil.gif +++ b/resources/assets/emojis/evil.gif diff --git a/public/emojis/lol.gif b/resources/assets/emojis/lol.gif Binary files differindex 374ba150..374ba150 100644 --- a/public/emojis/lol.gif +++ b/resources/assets/emojis/lol.gif diff --git a/public/emojis/mad.gif b/resources/assets/emojis/mad.gif Binary files differindex 1f6c3c2f..1f6c3c2f 100644 --- a/public/emojis/mad.gif +++ b/resources/assets/emojis/mad.gif diff --git a/public/emojis/question.gif b/resources/assets/emojis/question.gif Binary files differindex 9d072265..9d072265 100644 --- a/public/emojis/question.gif +++ b/resources/assets/emojis/question.gif diff --git a/public/emojis/redface.gif b/resources/assets/emojis/redface.gif Binary files differindex ad762832..ad762832 100644 --- a/public/emojis/redface.gif +++ b/resources/assets/emojis/redface.gif diff --git a/public/emojis/rolleyes.gif b/resources/assets/emojis/rolleyes.gif Binary files differindex d7f5f2f4..d7f5f2f4 100644 --- a/public/emojis/rolleyes.gif +++ b/resources/assets/emojis/rolleyes.gif diff --git a/public/emojis/sad.gif b/resources/assets/emojis/sad.gif Binary files differindex d2ac78c0..d2ac78c0 100644 --- a/public/emojis/sad.gif +++ b/resources/assets/emojis/sad.gif diff --git a/public/emojis/smile.gif b/resources/assets/emojis/smile.gif Binary files differindex 7b1f6d30..7b1f6d30 100644 --- a/public/emojis/smile.gif +++ b/resources/assets/emojis/smile.gif diff --git a/public/emojis/wind.gif b/resources/assets/emojis/wind.gif Binary files differindex d1482880..d1482880 100644 --- a/public/emojis/wind.gif +++ b/resources/assets/emojis/wind.gif diff --git a/src/Http/Response.php b/src/Http/Response.php index d79ab98b..4edf644a 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -22,7 +22,7 @@ class Response extends SymfonyResponse implements ResponseInterface public function __construct( $content = '', int $status = 200, - array $headers = array(), + array $headers = [], Renderer $view = null ) { $this->view = $view; diff --git a/webpack.config.js b/webpack.config.js index 261c1c44..fd36b0f9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -23,6 +23,11 @@ for (let i = 0; i < 7; i++) { themeEntries[`theme${i}`] = `./resources/assets/themes/theme${i}.less`; } +const emojis = {}; +for (let emoji of ['redface', 'wind', 'smile', 'sad', 'lol', 'cry', 'rolleyes', 'evil', 'mad', 'question']){ + emojis[`${emoji}`] = `./resources/assets/emojis/${emoji}.gif`; +} + module.exports = { context: __dirname, resolve: { @@ -31,6 +36,7 @@ module.exports = { entry: { ...themeEntries, vendor: './resources/assets/js/vendor.js', + ...emojis, }, output: { path: path.resolve('public/assets'), @@ -46,6 +52,7 @@ module.exports = { query: { cacheDirectory: true }, }, { test: /\.(eot|ttf|otf|svg|woff2?)(\?.*)?$/, loader: 'file-loader' }, + { test: /\.gif$/, loader: 'file-loader?name=emojis/[name].[ext]' }, { test: /\.json$/, loader: 'json-loader' }, { test: /\.css$/, loader: 'style-loader!css-loader' }, { test: /\.less$/, use: ExtractTextPlugin.extract({ |