This file contains 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
``` | |
# clone repos | |
git clone https://github.com/kiwiirc/kiwiirc.git ~/kiwiirc/kiwiirc | |
git clone https://github.com/kiwiirc/webircgateway.git ~/kiwiirc/webircgateway | |
git clone https://github.com/kiwiirc/plugin-fileuploader.git ~/kiwiirc/fileuploader | |
# make destination directories | |
mkdir -p ~/kiwiirc/run/{www,uploads} | |
# build webircgateway |
This file contains 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="embeds-toggle"> | |
<div @click="buttonClicked"> | |
<a :title="previewState ? 'Disable Embeds' : 'Enable Embeds'"> | |
<i | |
:class="['fa', previewState ? 'fa-cloud-download' : 'fa-cloud']" | |
aria-hidden="true" | |
></i> | |
</a> | |
</div> | |
</template> |
This file contains 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="custom-whois"> | |
<div> | |
<span class="kiwi-userbox-whois-line"> | |
{{ user.away ? | |
$t('whois_status') + ': ' + user.away : | |
$t('whois_status_available') | |
}} | |
</span> | |
<span v-if="user.account" class="kiwi-userbox-whois-line"> | |
{{ $t('user_account', {user: user.account}) }} |
This file contains 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> | |
@media screen and (max-width: 769px) { | |
.kiwi-header-name-container { | |
max-width: 8%; | |
min-width: 30px; | |
} | |
.kiwi-header-option a { | |
padding: 0 8px; | |
min-width: 32px; |
This file contains 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-workspace-background { | |
background-image: url("/static/img/chat-background-light.png"); | |
background-repeat: repeat; | |
opacity: 0.08; | |
} | |
.kiwi-wrap[data-theme="dark"] .kiwi-workspace-background, | |
.kiwi-wrap[data-theme="nightswatch"] .kiwi-workspace-background, | |
.kiwi-wrap[data-theme="radioactive"] .kiwi-workspace-background, |
This file contains 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="embed-restrict"> | |
<div class="embed-restrict"> | |
{{ message }} | |
</div> | |
</template> | |
<script> | |
kiwi.plugin('embed-restrict', function(kiwi, log) { | |
if (window === window.top) { | |
return; |
This file contains 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-statebrowser { | |
left: initial; | |
right: 0; | |
} | |
.kiwi-workspace { | |
margin-left: initial; | |
margin-right: 220px; | |
} |
This file contains 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-wrap .kiwi-workspace-background { | |
background-image: url('static/img/background.png'); | |
background-position: center; | |
z-index: 0; | |
} | |
</style> |
This file contains 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="example-template"> | |
<div @click="doClick">example plugin</div> | |
</template> | |
<script> | |
const componentObject = { | |
template: '#example-template', | |
props: [ | |
'network', | |
'buffer', |
This file contains 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
const IRC = require('irc-framework'); | |
const debugRaw = true; | |
const debugEvents = false; | |
// Catch uncaught exceptions so the bot does not crash | |
process.on('uncaughtException', function (err) { | |
console.error(err.stack); | |
}); |
NewerOlder