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
kiwi.plugin('avatars', (kiwi) => { | |
kiwi.on('irc.join', (event, net) => { | |
kiwi.Vue.nextTick(() => { | |
updateAvatar(net, event.nick); | |
}); | |
}); | |
kiwi.on('irc.wholist', (event, net) => { | |
let nicks = event.users.map((user) => user.nick); | |
kiwi.Vue.nextTick(() => { |
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('userbox_whois_geoip', function(kiwi, log) { | |
var currentUser = null; | |
kiwi.on('userbox.show', function (user, buffer) { | |
currentUser = user; | |
}); | |
kiwi.on('sidebar.hide', function (user, buffer) { | |
currentUser = null; |
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('echo_on_highlight', function (kiwi, log) { | |
//let buffer = kiwi.state.getActiveBuffer(); | |
//let buffer = network.bufferByName(event.channel); | |
kiwi.on('irc.message', (event, network) => { | |
if (event.type !== 'privmsg') { return; } | |
if (event.message.indexOf(network.currentUser().nick) === -1) { return; } |
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
kiwi.plugin('force_one_network', function(kiwi, log) { | |
const server = kiwi.state.getSetting('settings.startupOptions.server'); | |
kiwi.state.networks.forEach((network) => { | |
if (server !== network.connection.server) { | |
kiwi.state.removeNetwork(network.id); | |
} | |
}); | |
}); |
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 kiwiirc.example.com; | |
location / { | |
# Redirect to https | |
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
<style> | |
.kiwi-startup-common-section-info { | |
display: none; | |
} | |
.kiwi-startup-common-section-connection { | |
margin: 0 auto; | |
} | |
.kiwi-welcome-simple-form { | |
border: 1px solid lightgrey; | |
border-radius: 16px; |
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="test-template"> | |
<div> | |
<span>test-template</span> | |
<span v-html="content" /> | |
</div> | |
</template> | |
<script> | |
kiwi.plugin('test-body-template', function (kiwi, log) { | |
const testTemplate = { |
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="ignorelist"> | |
<div class="kiwi-ignorelist-container"> | |
<table v-if="ignoredUsers.length > 0" class="kiwi-ignorelist-table"> | |
<tr> | |
<td colspan="3"> | |
<h3>{{ $t('plugin-ignorelist:ignore_list') }}</h3> | |
</td> | |
</tr> | |
<tr v-for="user in ignoredUsers" :key="user.nick"> | |
<td>{{ user.nick }}</td> |