Skip to content

Instantly share code, notes, and snippets.

View prawnsalad's full-sized avatar
💭
happening

Darren Whitlen prawnsalad

💭
happening
View GitHub Profile
<!-- THE ERROR
Switching from `isServer()` to `isChannel()` (template line 30 and 17)
DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
div.kiwi-header-options on line 31 fails to be removed.
-->
<template>
<div
@prawnsalad
prawnsalad / theme.css
Last active June 10, 2017 20:22
Example kiwiirc next theme
body {
background: red;
color: blacker;
}
import znc
VERSION = '2'
COMMAND = "BOUNCER"
class bouncer(znc.Module):
module_types = [znc.CModInfo.GlobalModule]
description = "Provides KiwiIRC BOUNCER support"
/work/personal/kiwiirc/src/components/App.vue
40:1 error Line 40 exceeds the maximum line length of 100 max-len
44:19 error 'v-else' directives require being preceded by the element which has a 'v-if' or 'v-else' directive vue/valid-v-else
/work/personal/kiwiirc/src/components/AppSettings.vue
18:1 error Line 18 exceeds the maximum line length of 100 max-len
20:1 error Line 20 exceeds the maximum line length of 100 max-len
20:37 error Elements in iteration expect to have 'v-bind:key' directives vue/require-v-for-key
45:1 error Line 45 exceeds the maximum line length of 100 max-len
<a v-if="networks.length>0" class="u-link kiwi-personal-existing-networks" @click.stop="toggleStateBrowser">{{ $t('personal_saved') }}</a>
<a
v-if="networks.length>0"
class="u-link kiwi-personal-existing-networks"
@click.stop="toggleStateBrowser">{{ $t('personal_saved') }}
</a>
<a
v-if="networks.length>0"
kiwi.plugin('autoconnect', function(kiwi) {
kiwi.state.networks.forEach(n => {
n.connect();
});
});
<!-- Screenshot: https://imgur.com/tcCqNsE -->
<template id="ly_customnicklist">
<div class="customnicklist">
<div v-for="user in buffer.users" class="user" :style="nickStyle(user)" @click="openQuery(user)">
{{ user.nick[0].toUpperCase() }}
</div>
</div>
</template>
<!-- `Screenshot: https://imgur.com/Lc9SDaT -->
<template id="ly_avatar">
<div
:style="{
'background-image': `url(http://avatars.kiwiirc.com/robohash/${message.nick})`,
'background-size': 'contain',
}"
:data-nick="message.nick"
class="kiwi-messagelist-avatar"
></div>
<template>
<div class="kiwi-startup-live">
<div class="kiwi-startup-live-messages">
<message-list :buffer="buffer" />
</div>
<div class="kiwi-startup-live-join">
<a class="u-button u-button-primary">Join to start talking!</a>
</div>
</div>
package main
import (
"net/http"
"io"
"github.com/kiwiirc/webircgateway/pkg/webircgateway"
)
// The entry point of a plugin. This is called when the plugin is loaded to webircgateway
func Start(gateway *webircgateway.Gateway) {