This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
kiwi.plugin('mobile-keepalive', function(kiwi, log) { | |
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
return; | |
} | |
var keepAliveElement = document.createElement('audio'); | |
keepAliveElement.style.display = 'none'; | |
keepAliveElement.autoplay = true; | |
keepAliveElement.loop = true; | |
keepAliveElement.src= 'data:audio/mp3;base64,SUQzBAAAAAIYBFRJVDIAAAAUAAAAMSBTZWNvbmQgb2YgU2lsZW5jZVRQRTEAAAASAAAAQW5hciBTb2Z0d2FyZSBMTENUQUxCAAAADAAAAEJsYW5rIEF1ZGlvQVBJQwACDwIAAABpbWFnZS9qcGVnAAMAiVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAg9AAAIPQEFlVW2AAAAB3RJTUUH3woLBRwxA28EdgAAIABJREFUeNrs3XuUVWXdB/DfMAw3AQEvKOqAiVcsU7A0saIyb4FWKt41TVEIM2mVpqaoeeviLTWvpK+AmsvUNA0NQ1m9lnkpvKRkctEQBIERYbiM8/7RWwucmXPOnjln5jwzn89a73pr72c/e+/fs89wzrdn710REfUBAAAAkLBOSgAAAACkTsABAAAAJE/AAQAAACRPwAEAAAAkT8ABAAAAJE/AAQAAACRPwAEAAAAkT8ABAAAAJE/AAQAAACRPwAEAAAAkT8ABAAAAJE/AAQAAACRPwAEAAAAkT8ABAAAAJE/AAQAAACRPwAEAAAAkT8ABAAAAJE/AAQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=KiwiIRC plugin fileuploader | |
After=network.target | |
[Service] | |
User=kiwiirc | |
Group=kiwiirc | |
ExecStart=/usr/bin/kiwiirc-fileuploader --config=/etc/kiwiirc/fileuploader.toml | |
ExecReload=/bin/kill -HUP $MAINPID | |
WorkingDirectory=/usr/local/kiwiirc/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name irc.example.com; | |
# uncomment to redirect all users to https | |
#location / { | |
# return 301 https://$server_name$request_uri; | |
#} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
kiwi.plugin('test', function(kiwi, log){ | |
var misc = kiwi.require('helpers/Misc'); | |
if (!!misc.queryStringVal('autoconnect')) { | |
kiwi.state.setSetting('settings.startupOptions.autoConnect', true); | |
} | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var count = 100; | |
var nick = 'TestNick'; | |
var channel = '#testers'; | |
kiwi.plugin('fake_users', function(kiwi, log) { | |
kiwi.on('network.new', function(event, opt) { | |
let buffer = kiwi.state.getOrAddBufferByName(event.network.id, channel); | |
for (var i = count; i > 0; i--) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
kiwi.state.$watch('ui.active_buffer', function(){ | |
if (kiwi.state.getActiveBuffer().isChannel()) { | |
kiwi.emit('sidebar.show', 'nicklist'); | |
} | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"windowTitle": "Kiwi IRC - The web IRC client", | |
"startupScreen": "personal", | |
"kiwiServer": "http://example.com/webirc/kiwiirc/", | |
"restricted": false, | |
"theme": "Default", | |
"themes": [ | |
{ "name": "Default", "url": "static/themes/default" }, | |
{ "name": "Dark", "url": "static/themes/dark" }, | |
{ "name": "Coffee", "url": "static/themes/coffee" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template id="avatar"> | |
<div | |
:data-nick="message&&message.nick" | |
:class="[hasAvatar ? 'kiwi-avatar--image' : '']" | |
class="kiwi-avatar" | |
> | |
<span :style="avatarStyle">{{ hasAvatar ? '' : firstNickLetter }}</span> | |
</div> | |
</template> |