summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/sys_template.php2
-rw-r--r--resources/assets/emojis/cry.gif (renamed from public/emojis/cry.gif)bin498 -> 498 bytes
-rw-r--r--resources/assets/emojis/evil.gif (renamed from public/emojis/evil.gif)bin236 -> 236 bytes
-rw-r--r--resources/assets/emojis/lol.gif (renamed from public/emojis/lol.gif)bin336 -> 336 bytes
-rw-r--r--resources/assets/emojis/mad.gif (renamed from public/emojis/mad.gif)bin174 -> 174 bytes
-rw-r--r--resources/assets/emojis/question.gif (renamed from public/emojis/question.gif)bin248 -> 248 bytes
-rw-r--r--resources/assets/emojis/redface.gif (renamed from public/emojis/redface.gif)bin650 -> 650 bytes
-rw-r--r--resources/assets/emojis/rolleyes.gif (renamed from public/emojis/rolleyes.gif)bin485 -> 485 bytes
-rw-r--r--resources/assets/emojis/sad.gif (renamed from public/emojis/sad.gif)bin171 -> 171 bytes
-rw-r--r--resources/assets/emojis/smile.gif (renamed from public/emojis/smile.gif)bin174 -> 174 bytes
-rw-r--r--resources/assets/emojis/wind.gif (renamed from public/emojis/wind.gif)bin170 -> 170 bytes
-rw-r--r--src/Http/Response.php2
-rw-r--r--webpack.config.js7
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
index 7d54b1f9..7d54b1f9 100644
--- a/public/emojis/cry.gif
+++ b/resources/assets/emojis/cry.gif
Binary files differ
diff --git a/public/emojis/evil.gif b/resources/assets/emojis/evil.gif
index ab1aa8e1..ab1aa8e1 100644
--- a/public/emojis/evil.gif
+++ b/resources/assets/emojis/evil.gif
Binary files differ
diff --git a/public/emojis/lol.gif b/resources/assets/emojis/lol.gif
index 374ba150..374ba150 100644
--- a/public/emojis/lol.gif
+++ b/resources/assets/emojis/lol.gif
Binary files differ
diff --git a/public/emojis/mad.gif b/resources/assets/emojis/mad.gif
index 1f6c3c2f..1f6c3c2f 100644
--- a/public/emojis/mad.gif
+++ b/resources/assets/emojis/mad.gif
Binary files differ
diff --git a/public/emojis/question.gif b/resources/assets/emojis/question.gif
index 9d072265..9d072265 100644
--- a/public/emojis/question.gif
+++ b/resources/assets/emojis/question.gif
Binary files differ
diff --git a/public/emojis/redface.gif b/resources/assets/emojis/redface.gif
index ad762832..ad762832 100644
--- a/public/emojis/redface.gif
+++ b/resources/assets/emojis/redface.gif
Binary files differ
diff --git a/public/emojis/rolleyes.gif b/resources/assets/emojis/rolleyes.gif
index d7f5f2f4..d7f5f2f4 100644
--- a/public/emojis/rolleyes.gif
+++ b/resources/assets/emojis/rolleyes.gif
Binary files differ
diff --git a/public/emojis/sad.gif b/resources/assets/emojis/sad.gif
index d2ac78c0..d2ac78c0 100644
--- a/public/emojis/sad.gif
+++ b/resources/assets/emojis/sad.gif
Binary files differ
diff --git a/public/emojis/smile.gif b/resources/assets/emojis/smile.gif
index 7b1f6d30..7b1f6d30 100644
--- a/public/emojis/smile.gif
+++ b/resources/assets/emojis/smile.gif
Binary files differ
diff --git a/public/emojis/wind.gif b/resources/assets/emojis/wind.gif
index d1482880..d1482880 100644
--- a/public/emojis/wind.gif
+++ b/resources/assets/emojis/wind.gif
Binary files differ
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({