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

4.0.0-rc5.3

* Fixed: Twitch emotes not displaying in Whispers.
* Fixed: Alignment of in-line actions when using Emote Alignment: Padded.
* Changed: Display the git commit hash for the current build in the FFZ Control Center, rather than the webpack build hash.
This commit is contained in:
SirStendec 2018-07-16 13:57:56 -04:00
parent aab1177d1f
commit c139de9d60
8 changed files with 31 additions and 7 deletions

View file

@ -100,7 +100,8 @@ class FrankerFaceZ extends Module {
FrankerFaceZ.Logger = Logger; FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = { const VER = FrankerFaceZ.version_info = {
major: 4, minor: 0, revision: 0, extra: '-rc5.2', major: 4, minor: 0, revision: 0, extra: '-rc5.3',
commit: __git_commit__,
build: __webpack_hash__, build: __webpack_hash__,
toString: () => toString: () =>
`${VER.major}.${VER.minor}.${VER.revision}${VER.extra || ''}${DEBUG ? '-dev' : ''}` `${VER.major}.${VER.minor}.${VER.revision}${VER.extra || ''}${DEBUG ? '-dev' : ''}`

View file

@ -252,7 +252,7 @@ export default class Actions extends Module {
}); });
return (<div return (<div
class="ffz--inline-actions ffz-action-data tw-inline tw-mg-r-05" class="ffz--inline-actions ffz-action-data tw-inline-block tw-mg-r-05"
data-msg-id={msg.id} data-msg-id={msg.id}
data-user={user} data-user={user}
data-room={room} data-room={room}

View file

@ -586,7 +586,7 @@ export default class Chat extends Module {
user: msg.from, user: msg.from,
message: msg.content.slice(offset), message: msg.content.slice(offset),
is_action, is_action,
emotes, ffz_emotes: emotes,
timestamp: msg.sentAt && msg.sentAt.getTime(), timestamp: msg.sentAt && msg.sentAt.getTime(),
deleted: false deleted: false
}; };

View file

@ -74,7 +74,18 @@
{{ t('main-menu.version', 'Version %{version}', {version: version.toString()}) }} {{ t('main-menu.version', 'Version %{version}', {version: version.toString()}) }}
</div> </div>
<div class="tw-c-text-alt-2"> <div class="tw-c-text-alt-2">
{{ version.build }} <a
v-if="version.commit"
:href="`https://www.github.com/FrankerFaceZ/FrankerFaceZ/commit/${version.commit}`"
class="tw-link tw-link--inherit"
target="_blank"
rel="noopener noreferrer"
>
{{ version.commit.slice(0,7) }}
</a>
<span v-else>
{{ version.build }}
</span>
</div> </div>
</footer> </footer>
</nav> </nav>

View file

@ -277,6 +277,7 @@ export default class RavenLogger extends Module {
out = {}; out = {};
out.build = __webpack_hash__; out.build = __webpack_hash__;
out.git_commit = __git_commit__;
if ( core ) if ( core )
out.twitch_build = core.config.buildID; out.twitch_build = core.config.buildID;

View file

@ -223,8 +223,7 @@ export default class ChatLine extends Module {
props.showTimestamps !== this.props.showTimestamps; props.showTimestamps !== this.props.showTimestamps;
} }
cls.prototype.render = function() { cls.prototype.render = function() { try {
try {
const types = t.parent.message_types || {}, const types = t.parent.message_types || {},

View file

@ -4,6 +4,7 @@ const merge = require('webpack-merge');
const common = require('./webpack.web.common.js'); const common = require('./webpack.web.common.js');
const CopyPlugin = require('copy-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin');
const webpack = require('webpack');
/* global module */ /* global module */
@ -16,7 +17,10 @@ module.exports = merge(common, {
from: './src/entry.js', from: './src/entry.js',
to: 'script.js' to: 'script.js'
} }
]) ]),
new webpack.DefinePlugin({
__git_commit__: null
})
], ],
devServer: { devServer: {

View file

@ -1,3 +1,4 @@
const webpack = require('webpack');
const merge = require('webpack-merge'); const merge = require('webpack-merge');
const common = require('./webpack.web.common.js'); const common = require('./webpack.web.common.js');
@ -8,6 +9,10 @@ const CleanPlugin = require('clean-webpack-plugin');
const uglify = require('uglify-es'); const uglify = require('uglify-es');
// Get Git info
const commit_hash = require('child_process').execSync('git rev-parse HEAD').toString().trim();
/* global module Buffer */ /* global module Buffer */
const config = module.exports = merge(common, { const config = module.exports = merge(common, {
@ -28,6 +33,9 @@ const config = module.exports = merge(common, {
} }
} }
}), }),
new webpack.DefinePlugin({
__git_commit__: JSON.stringify(commit_hash)
}),
new CopyPlugin([ new CopyPlugin([
{ {
from: './src/entry.js', from: './src/entry.js',