mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-18 17:52:54 +00:00
[editor] Add bot version to frontend
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a501dcd81d
commit
71ea4a0c34
@ -59,11 +59,13 @@ func registerEditorFrontend() {
|
||||
KnownEvents []*string
|
||||
TemplateFunctions []string
|
||||
TwitchClientID string
|
||||
Version string
|
||||
}{
|
||||
IRCBadges: twitch.KnownBadges,
|
||||
KnownEvents: knownEvents,
|
||||
TemplateFunctions: tplFuncs.GetFuncNames(),
|
||||
TwitchClientID: cfg.TwitchClient,
|
||||
Version: version,
|
||||
}); err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
}
|
||||
|
15
src/app.vue
15
src/app.vue
@ -112,6 +112,21 @@
|
||||
<span v-else>Disconnected from Bot</span>
|
||||
</b-tooltip>
|
||||
</b-nav-text>
|
||||
|
||||
<b-nav-text class="ml-2">
|
||||
<font-awesome-icon
|
||||
id="botInfo"
|
||||
fixed-width
|
||||
class="mr-1"
|
||||
:icon="['fas', 'info-circle']"
|
||||
/>
|
||||
<b-tooltip
|
||||
target="botInfo"
|
||||
triggers="hover"
|
||||
>
|
||||
Version: <code>{{ $root.vars.Version }}</code>
|
||||
</b-tooltip>
|
||||
</b-nav-text>
|
||||
</b-navbar-nav>
|
||||
</b-collapse>
|
||||
</b-navbar>
|
||||
|
Loading…
Reference in New Issue
Block a user