serverless-ircd 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +6 -1
- package/.gitmodules +3 -0
- package/CHANGELOG.md +214 -0
- package/README.md +110 -23
- package/apps/aws-stack/package.json +1 -1
- package/apps/cf-tcp-container/package.json +1 -1
- package/apps/cf-worker/package.json +1 -1
- package/apps/cf-worker/src/origin-allowlist.ts +99 -0
- package/apps/cf-worker/src/worker.ts +89 -9
- package/apps/cf-worker/tests/fixtures/web-dist/app/index.html +18 -0
- package/apps/cf-worker/tests/fixtures/web-dist/index.html +18 -0
- package/apps/cf-worker/tests/origin-allowlist.test.ts +101 -0
- package/apps/cf-worker/tests/smoke.test.ts +28 -2
- package/apps/cf-worker/tests/ws-origin.test.ts +89 -0
- package/apps/cf-worker/wrangler.test.toml +23 -0
- package/apps/cf-worker/wrangler.toml +54 -0
- package/apps/local-cli/package.json +1 -1
- package/apps/web/landing/index.html +217 -0
- package/apps/web/package.json +28 -0
- package/apps/web/scripts/build.mjs +125 -0
- package/apps/web/src/build-env.ts +43 -0
- package/apps/web/src/config-schema.ts +138 -0
- package/apps/web/static/config.json +28 -0
- package/apps/web/static/config.prod.json +28 -0
- package/apps/web/static/config.staging.json +28 -0
- package/apps/web/tests/build-env.test.ts +63 -0
- package/apps/web/tests/build-smoke.test.ts +103 -0
- package/apps/web/tests/config-schema.test.ts +432 -0
- package/apps/web/tests/workspace.test.ts +12 -0
- package/apps/web/tsconfig.json +10 -0
- package/apps/web/upstream/.browserslistrc +3 -0
- package/apps/web/upstream/.editorconfig +9 -0
- package/apps/web/upstream/.eslintignore +3 -0
- package/apps/web/upstream/.eslintrc.js +90 -0
- package/apps/web/upstream/.github/FUNDING.yml +12 -0
- package/apps/web/upstream/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/apps/web/upstream/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/apps/web/upstream/.github/workflows/push.yml +26 -0
- package/apps/web/upstream/.github/workflows/release.yml +33 -0
- package/apps/web/upstream/.github/workflows/release_manual.yml +55 -0
- package/apps/web/upstream/.prettierrc.js +9 -0
- package/apps/web/upstream/.stylelintignore +5 -0
- package/apps/web/upstream/.stylelintrc.js +21 -0
- package/apps/web/upstream/LICENSE +201 -0
- package/apps/web/upstream/README.md +76 -0
- package/apps/web/upstream/babel.config.js +25 -0
- package/apps/web/upstream/crowdin.yml +3 -0
- package/apps/web/upstream/index.html +35 -0
- package/apps/web/upstream/jest.config.js +7 -0
- package/apps/web/upstream/jsdoc.json +22 -0
- package/apps/web/upstream/package.json +80 -0
- package/apps/web/upstream/scripts/pre-commit +43 -0
- package/apps/web/upstream/src/components/App.vue +516 -0
- package/apps/web/upstream/src/components/AppSettings.vue +587 -0
- package/apps/web/upstream/src/components/AutoComplete.vue +284 -0
- package/apps/web/upstream/src/components/Avatar.vue +105 -0
- package/apps/web/upstream/src/components/AwayStatusIndicator.vue +77 -0
- package/apps/web/upstream/src/components/BufferKey.vue +121 -0
- package/apps/web/upstream/src/components/BufferSettings.vue +97 -0
- package/apps/web/upstream/src/components/Captcha.vue +85 -0
- package/apps/web/upstream/src/components/ChannelBanlist.vue +96 -0
- package/apps/web/upstream/src/components/ChannelInfo.vue +159 -0
- package/apps/web/upstream/src/components/ChannelInvitelist.vue +276 -0
- package/apps/web/upstream/src/components/ChannelList.vue +345 -0
- package/apps/web/upstream/src/components/Container.vue +401 -0
- package/apps/web/upstream/src/components/ContainerHeader.vue +522 -0
- package/apps/web/upstream/src/components/ControlInput.vue +1016 -0
- package/apps/web/upstream/src/components/LoadingAnimation.vue +104 -0
- package/apps/web/upstream/src/components/MediaViewer.vue +199 -0
- package/apps/web/upstream/src/components/MessageInfo.vue +192 -0
- package/apps/web/upstream/src/components/MessageList.vue +1028 -0
- package/apps/web/upstream/src/components/MessageListAvatar.vue +20 -0
- package/apps/web/upstream/src/components/MessageListMessageCompact.vue +361 -0
- package/apps/web/upstream/src/components/MessageListMessageInline.vue +257 -0
- package/apps/web/upstream/src/components/MessageListMessageModern.vue +430 -0
- package/apps/web/upstream/src/components/NetworkSettings.vue +528 -0
- package/apps/web/upstream/src/components/Nicklist.vue +309 -0
- package/apps/web/upstream/src/components/NicklistUser.vue +181 -0
- package/apps/web/upstream/src/components/NotConnected.vue +271 -0
- package/apps/web/upstream/src/components/SelfUser.vue +283 -0
- package/apps/web/upstream/src/components/ServerSelector.vue +162 -0
- package/apps/web/upstream/src/components/ServerView.vue +126 -0
- package/apps/web/upstream/src/components/SettingsAdvanced.vue +232 -0
- package/apps/web/upstream/src/components/SettingsAliases.vue +121 -0
- package/apps/web/upstream/src/components/Sidebar.vue +429 -0
- package/apps/web/upstream/src/components/SidebarAboutBuffer.vue +288 -0
- package/apps/web/upstream/src/components/SidebarState.vue +145 -0
- package/apps/web/upstream/src/components/StartupError.vue +35 -0
- package/apps/web/upstream/src/components/StateBrowser.vue +420 -0
- package/apps/web/upstream/src/components/StateBrowserBuffer.vue +124 -0
- package/apps/web/upstream/src/components/StateBrowserNetwork.vue +823 -0
- package/apps/web/upstream/src/components/StateBrowserUsermenu.vue +162 -0
- package/apps/web/upstream/src/components/TypingStatusIndicator.vue +34 -0
- package/apps/web/upstream/src/components/TypingUsersList.vue +56 -0
- package/apps/web/upstream/src/components/UrlEmbed.vue +149 -0
- package/apps/web/upstream/src/components/UserBox.vue +728 -0
- package/apps/web/upstream/src/components/inputtools/Emoji.vue +67 -0
- package/apps/web/upstream/src/components/inputtools/TextStyle.vue +142 -0
- package/apps/web/upstream/src/components/startups/CommonLayout.vue +208 -0
- package/apps/web/upstream/src/components/startups/CustomServer.vue +495 -0
- package/apps/web/upstream/src/components/startups/KiwiBnc.vue +361 -0
- package/apps/web/upstream/src/components/startups/Personal.vue +317 -0
- package/apps/web/upstream/src/components/startups/Welcome.vue +544 -0
- package/apps/web/upstream/src/components/startups/ZncLogin.vue +229 -0
- package/apps/web/upstream/src/components/utils/InputConfirm.vue +68 -0
- package/apps/web/upstream/src/components/utils/InputPrompt.vue +118 -0
- package/apps/web/upstream/src/components/utils/InputText.vue +172 -0
- package/apps/web/upstream/src/components/utils/IrcInput.vue +579 -0
- package/apps/web/upstream/src/components/utils/PluginWrapper.vue +26 -0
- package/apps/web/upstream/src/components/utils/TabbedView.vue +149 -0
- package/apps/web/upstream/src/components/utils/TransitionExpand.vue +97 -0
- package/apps/web/upstream/src/helpers/Colours.js +128 -0
- package/apps/web/upstream/src/helpers/IrcdDiffs.js +26 -0
- package/apps/web/upstream/src/helpers/Md5.js +193 -0
- package/apps/web/upstream/src/helpers/Misc.js +401 -0
- package/apps/web/upstream/src/helpers/TextFormatting.js +237 -0
- package/apps/web/upstream/src/libs/AliasRewriter.js +157 -0
- package/apps/web/upstream/src/libs/AudioManager.js +60 -0
- package/apps/web/upstream/src/libs/BouncerMiddleware.js +247 -0
- package/apps/web/upstream/src/libs/BouncerProvider.js +551 -0
- package/apps/web/upstream/src/libs/ChathistoryMiddleware.js +153 -0
- package/apps/web/upstream/src/libs/ConfigLoader.js +94 -0
- package/apps/web/upstream/src/libs/EmojiProvider.js +46 -0
- package/apps/web/upstream/src/libs/GlobalApi.js +346 -0
- package/apps/web/upstream/src/libs/IPC.js +51 -0
- package/apps/web/upstream/src/libs/InputHandler.js +921 -0
- package/apps/web/upstream/src/libs/IrcClient.js +1506 -0
- package/apps/web/upstream/src/libs/Logger.js +71 -0
- package/apps/web/upstream/src/libs/Message.js +169 -0
- package/apps/web/upstream/src/libs/MessageFormatter.js +364 -0
- package/apps/web/upstream/src/libs/MessageParser.js +249 -0
- package/apps/web/upstream/src/libs/Notifications.js +78 -0
- package/apps/web/upstream/src/libs/ServerConnection.js +270 -0
- package/apps/web/upstream/src/libs/ServerSession.js +102 -0
- package/apps/web/upstream/src/libs/SoundBleep.js +20 -0
- package/apps/web/upstream/src/libs/StatePersistence.js +90 -0
- package/apps/web/upstream/src/libs/ThemeManager.js +128 -0
- package/apps/web/upstream/src/libs/TypingMiddleware.js +105 -0
- package/apps/web/upstream/src/libs/WindowTitle.js +63 -0
- package/apps/web/upstream/src/libs/batchedAdd.js +74 -0
- package/apps/web/upstream/src/libs/bufferTools.js +177 -0
- package/apps/web/upstream/src/libs/polyfill/Element.closest.js +18 -0
- package/apps/web/upstream/src/libs/renderers/Html.js +113 -0
- package/apps/web/upstream/src/libs/settingTools.js +31 -0
- package/apps/web/upstream/src/libs/state/BufferState.js +703 -0
- package/apps/web/upstream/src/libs/state/NetworkState.js +158 -0
- package/apps/web/upstream/src/libs/state/UserState.js +89 -0
- package/apps/web/upstream/src/libs/state/common.js +26 -0
- package/apps/web/upstream/src/libs/state.js +961 -0
- package/apps/web/upstream/src/libs/storage/Local.js +51 -0
- package/apps/web/upstream/src/main.js +566 -0
- package/apps/web/upstream/src/res/autocompleteCommands.js +31 -0
- package/apps/web/upstream/src/res/configTemplates.js +373 -0
- package/apps/web/upstream/src/res/globalStyle.css +277 -0
- package/apps/web/upstream/src/res/kiwiLoadingLogo.png +0 -0
- package/apps/web/upstream/src/res/locales/app.af-ZA.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ar-SA.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.bg-BG.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.bs-BA.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ca-ES.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.cs-CZ.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.da-DK.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.de-DE.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.dev.po +1246 -0
- package/apps/web/upstream/src/res/locales/app.el-GR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.en-US.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.es-419.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.es-AR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.es-EM.po +536 -0
- package/apps/web/upstream/src/res/locales/app.es-ES.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.es-US.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.eu-ES.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.fi-FI.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.fr-FR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.gl-ES.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.he-IL.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.hi-IN.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.hu-HU.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.id-ID.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.it-IT.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ja-JP.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ko-KR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.nl-NL.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.no-NO.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.pl-PL.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.pt-BR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.pt-PT.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ro-RO.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.ru-RU.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.sl-SI.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.sq-AL.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.sr-SP.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.sv-SE.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.tr-TR.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.uk-UA.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.vi-VN.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.zh-CN.po +1145 -0
- package/apps/web/upstream/src/res/locales/app.zh-TW.po +1145 -0
- package/apps/web/upstream/src/res/localesList.json +27 -0
- package/apps/web/upstream/src/res/logo.png +0 -0
- package/apps/web/upstream/src/thirdparty/about.html +43 -0
- package/apps/web/upstream/src/thirdparty/index.js +5 -0
- package/apps/web/upstream/src/thirdparty/kiwiirccom.vue +185 -0
- package/apps/web/upstream/static/config.json +28 -0
- package/apps/web/upstream/static/emoticons/smile.png +0 -0
- package/apps/web/upstream/static/favicon.png +0 -0
- package/apps/web/upstream/static/highlight.mp3 +0 -0
- package/apps/web/upstream/static/highlight.ogg +0 -0
- package/apps/web/upstream/static/locales/.gitignore +2 -0
- package/apps/web/upstream/static/plugins/customise.html.example +10 -0
- package/apps/web/upstream/static/themes/coffee/theme.css +145 -0
- package/apps/web/upstream/static/themes/common/base.css +1064 -0
- package/apps/web/upstream/static/themes/dark/theme.css +196 -0
- package/apps/web/upstream/static/themes/default/theme.css +92 -0
- package/apps/web/upstream/static/themes/elite/theme.css +248 -0
- package/apps/web/upstream/static/themes/grayfox/theme.css +143 -0
- package/apps/web/upstream/static/themes/nightswatch/theme.css +367 -0
- package/apps/web/upstream/static/themes/osprey/theme.css +115 -0
- package/apps/web/upstream/static/themes/radioactive/theme.css +1211 -0
- package/apps/web/upstream/static/themes/sky/theme.css +107 -0
- package/apps/web/upstream/tests/unit/BatchAdd.spec.js +174 -0
- package/apps/web/upstream/tests/unit/MessageParser.spec.js +125 -0
- package/apps/web/upstream/tests/unit/Misc.spec.js +24 -0
- package/apps/web/upstream/tests/unit/NetworkState.spec.js +58 -0
- package/apps/web/upstream/tests/unit/StartupError.spec.js +20 -0
- package/apps/web/upstream/vue.config.js +150 -0
- package/apps/web/upstream/yarn.lock +9767 -0
- package/apps/web/vitest.config.ts +13 -0
- package/biome.json +1 -0
- package/docs/Home.md +1 -0
- package/docs/WebClientGuide.md +535 -0
- package/package.json +2 -2
- package/packages/aws-adapter/package.json +1 -1
- package/packages/cf-adapter/package.json +1 -1
- package/packages/cf-adapter/tests/cf-harness.ts +12 -1
- package/packages/in-memory-runtime/package.json +1 -1
- package/packages/irc-core/package.json +1 -1
- package/packages/irc-core/reports/mutation/mutation.html +342 -0
- package/packages/irc-core/tests/batch.test.ts +15 -0
- package/packages/irc-core/tests/numerics.test.ts +13 -0
- package/packages/irc-core/tests/parser.test.ts +109 -0
- package/packages/irc-server/package.json +1 -1
- package/packages/irc-test-support/package.json +1 -1
- package/packages/irc-test-support/src/scenarios.ts +24 -2
- package/tools/ci-hardening/package.json +1 -1
- package/tools/load-test/package.json +1 -1
- package/tools/tcp-ws-forwarder/package.json +1 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="kiwi-autocomplete kiwi-theme-bg">
|
|
3
|
+
|
|
4
|
+
<div
|
|
5
|
+
v-for="item in filteredAndLimitedItems"
|
|
6
|
+
:key="item.type+item.text"
|
|
7
|
+
:class="{
|
|
8
|
+
'kiwi-autocomplete-item': true,
|
|
9
|
+
'kiwi-autocomplete-item--selected': item.idx === selected_idx}
|
|
10
|
+
"
|
|
11
|
+
@click="selected_idx = item.idx; selectCurrentItem()"
|
|
12
|
+
>
|
|
13
|
+
<template v-if="item.type === 'user'">
|
|
14
|
+
<span class="kiwi-autocomplete-item-value">{{ item.text }}</span>
|
|
15
|
+
<span
|
|
16
|
+
class="u-link kiwi-autocomplete-item-action"
|
|
17
|
+
@click.stop="openQuery(item.text)"
|
|
18
|
+
>
|
|
19
|
+
{{ $t('send_message') }}
|
|
20
|
+
</span>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else-if="item.type === 'command'">
|
|
23
|
+
<span class="kiwi-autocomplete-item-value">{{ item.text }}</span>
|
|
24
|
+
<span class="u-link kiwi-autocomplete-item-description">
|
|
25
|
+
{{ item.description }}
|
|
26
|
+
</span>
|
|
27
|
+
</template>
|
|
28
|
+
<template v-else>
|
|
29
|
+
<span class="kiwi-autocomplete-item-value">{{ item.text }}</span>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
'kiwi public';
|
|
37
|
+
|
|
38
|
+
import * as Misc from '@/helpers/Misc';
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
props: ['filter', 'buffer', 'items', 'itemsPerPage'],
|
|
42
|
+
data() {
|
|
43
|
+
return {
|
|
44
|
+
// items: [
|
|
45
|
+
// { text: 'anick1', type: 'user' },
|
|
46
|
+
// { text: 'anick2', type: 'user' },
|
|
47
|
+
// { text: 'bnick3', type: 'user' },
|
|
48
|
+
// { text: 'cnick4' },
|
|
49
|
+
// { text: 'dnick5' },
|
|
50
|
+
// ],
|
|
51
|
+
selected_idx: 0,
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
computed: {
|
|
55
|
+
itemLimits() {
|
|
56
|
+
const itemLimit = parseInt(this.itemsPerPage, 10) || 7;
|
|
57
|
+
const halfLimit = (itemLimit - 1) / 2;
|
|
58
|
+
return {
|
|
59
|
+
all: itemLimit,
|
|
60
|
+
backward: Math.floor(halfLimit) || 1,
|
|
61
|
+
forward: Math.ceil(halfLimit) || 1,
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
filteredItems() {
|
|
65
|
+
const filterVal = (this.filter || '').toLowerCase();
|
|
66
|
+
|
|
67
|
+
return this.items.filter((item) => {
|
|
68
|
+
let s = false;
|
|
69
|
+
if (item.text.toLowerCase().indexOf(filterVal) === 0) {
|
|
70
|
+
s = true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
(item.alias || []).forEach((alias) => {
|
|
74
|
+
if (alias.toLowerCase().indexOf(filterVal) === 0) {
|
|
75
|
+
s = true;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
return s;
|
|
80
|
+
}).sort(Misc.strCompare);
|
|
81
|
+
},
|
|
82
|
+
filteredAndLimitedItems() {
|
|
83
|
+
return this.filteredItems.filter((item, itemIdx, items) => {
|
|
84
|
+
let numItems = items.length - 1;
|
|
85
|
+
let idxFrom = this.selected_idx - this.itemLimits.backward;
|
|
86
|
+
let idxTo = this.selected_idx + this.itemLimits.forward;
|
|
87
|
+
let isInRange = false;
|
|
88
|
+
|
|
89
|
+
// Adjust the number of items before and after the selected item
|
|
90
|
+
// when we reach either end of the list.
|
|
91
|
+
// If we don't do this then this:
|
|
92
|
+
// * Item 1
|
|
93
|
+
// * item 2
|
|
94
|
+
// * Item 3
|
|
95
|
+
// * Item 4
|
|
96
|
+
// * Item 5 < selected
|
|
97
|
+
// Can turn into this:
|
|
98
|
+
// * Item 4
|
|
99
|
+
// * Item 5 < selected
|
|
100
|
+
if (idxFrom < 0) {
|
|
101
|
+
idxTo += -idxFrom;
|
|
102
|
+
idxFrom = 0;
|
|
103
|
+
} else if (idxTo > numItems) {
|
|
104
|
+
idxFrom -= (idxTo - numItems);
|
|
105
|
+
idxTo = numItems;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (itemIdx >= idxFrom && itemIdx <= idxTo) {
|
|
109
|
+
isInRange = true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Keep track of the pre-limited index for item selection
|
|
113
|
+
item.idx = itemIdx;
|
|
114
|
+
|
|
115
|
+
return isInRange;
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
selectedItem() {
|
|
119
|
+
let item = this.filteredItems[this.selected_idx];
|
|
120
|
+
return item || null;
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
watch: {
|
|
124
|
+
selected_idx() {
|
|
125
|
+
// nextTick() as the DOM hasn't updated yet
|
|
126
|
+
this.$nextTick(() => {
|
|
127
|
+
let el = this.$el.querySelector('.kiwi-autocomplete-item--selected');
|
|
128
|
+
if (!el) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
this.$el.scrollTop = el.offsetTop - (el.getBoundingClientRect().height * 2);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
this.tempCurrentItem();
|
|
136
|
+
},
|
|
137
|
+
filter() {
|
|
138
|
+
const numItems = this.filteredAndLimitedItems.length - 1;
|
|
139
|
+
if (this.selected_idx > numItems) {
|
|
140
|
+
this.selected_idx = (numItems < 0) ? 0 : numItems;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
mounted() {
|
|
145
|
+
this.tempCurrentItem();
|
|
146
|
+
},
|
|
147
|
+
methods: {
|
|
148
|
+
handleOnKeyDown(event) {
|
|
149
|
+
let handled = false;
|
|
150
|
+
|
|
151
|
+
let cancelKeyCodes = [
|
|
152
|
+
13, // return
|
|
153
|
+
32, // space
|
|
154
|
+
186, // semi-colon
|
|
155
|
+
188, // comma
|
|
156
|
+
190, // period
|
|
157
|
+
];
|
|
158
|
+
|
|
159
|
+
if (cancelKeyCodes.indexOf(event.keyCode) > -1) {
|
|
160
|
+
// If no item is selected (ie. on an empty list), leave the return key
|
|
161
|
+
// to do its default action as if the autocomplete box isn't active.
|
|
162
|
+
if (!this.selectedItem) {
|
|
163
|
+
this.cancel();
|
|
164
|
+
} else {
|
|
165
|
+
this.selectCurrentItem();
|
|
166
|
+
if (event.keyCode === 13) {
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
}
|
|
169
|
+
handled = true;
|
|
170
|
+
}
|
|
171
|
+
} else if (event.keyCode === 38 || (event.keyCode === 9 && event.shiftKey)) {
|
|
172
|
+
// Up or tab + shift
|
|
173
|
+
if (this.selected_idx > 0) {
|
|
174
|
+
this.selected_idx--;
|
|
175
|
+
} else {
|
|
176
|
+
// Wrap around to the end
|
|
177
|
+
this.selected_idx = this.filteredItems.length - 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
event.preventDefault();
|
|
181
|
+
handled = true;
|
|
182
|
+
} else if ((event.keyCode === 40 && !event.altKey) || event.keyCode === 9) {
|
|
183
|
+
// Down or tab
|
|
184
|
+
if (this.selected_idx < this.filteredItems.length - 1) {
|
|
185
|
+
this.selected_idx++;
|
|
186
|
+
} else {
|
|
187
|
+
// Wrap around to the start
|
|
188
|
+
this.selected_idx = 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
event.preventDefault();
|
|
192
|
+
handled = true;
|
|
193
|
+
} else if (event.keyCode === 16) {
|
|
194
|
+
// shift
|
|
195
|
+
handled = true;
|
|
196
|
+
} else if (event.keyCode === 33 || event.keyCode === 34) {
|
|
197
|
+
// pageUp || pageDown
|
|
198
|
+
const maxIdx = this.filteredItems.length - 1;
|
|
199
|
+
const limits = this.itemLimits;
|
|
200
|
+
let jump = limits.all;
|
|
201
|
+
|
|
202
|
+
// current position is within the first or last 3
|
|
203
|
+
// correctly jump the right amount
|
|
204
|
+
if (this.selected_idx <= limits.backward) {
|
|
205
|
+
jump = (limits.all + limits.backward) - this.selected_idx;
|
|
206
|
+
} else if (this.selected_idx >= maxIdx - limits.forward) {
|
|
207
|
+
// the center point maybe offset if an even number of items is shown
|
|
208
|
+
jump = (limits.all + limits.forward) - (maxIdx - this.selected_idx);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// backwards or forward
|
|
212
|
+
if (event.keyCode === 33) {
|
|
213
|
+
this.selected_idx -= jump;
|
|
214
|
+
} else {
|
|
215
|
+
this.selected_idx += jump;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// ensure we are not out of bounds
|
|
219
|
+
if (this.selected_idx > maxIdx) {
|
|
220
|
+
this.selected_idx = maxIdx;
|
|
221
|
+
} else if (this.selected_idx < 0) {
|
|
222
|
+
this.selected_idx = 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
handled = true;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return handled;
|
|
229
|
+
},
|
|
230
|
+
openQuery(nick) {
|
|
231
|
+
let buffer = this.$state.addBuffer(this.buffer.networkid, nick);
|
|
232
|
+
this.$state.setActiveBuffer(buffer.networkid, buffer.name);
|
|
233
|
+
this.cancel();
|
|
234
|
+
},
|
|
235
|
+
tempCurrentItem() {
|
|
236
|
+
let item = this.selectedItem;
|
|
237
|
+
if (!item) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
this.$emit('temp', item.value || item.text, item);
|
|
241
|
+
},
|
|
242
|
+
selectCurrentItem() {
|
|
243
|
+
let item = this.selectedItem;
|
|
244
|
+
let value = '';
|
|
245
|
+
|
|
246
|
+
if (item) {
|
|
247
|
+
value = item.value || item.text;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
this.$emit('selected', value, item);
|
|
251
|
+
},
|
|
252
|
+
cancel() {
|
|
253
|
+
this.$emit('cancel');
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
</script>
|
|
258
|
+
|
|
259
|
+
<style>
|
|
260
|
+
|
|
261
|
+
.kiwi-autocomplete {
|
|
262
|
+
box-sizing: border-box;
|
|
263
|
+
overflow-y: auto;
|
|
264
|
+
position: absolute;
|
|
265
|
+
bottom: 100%;
|
|
266
|
+
right: 0;
|
|
267
|
+
left: 0;
|
|
268
|
+
z-index: 1;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.kiwi-autocomplete-item {
|
|
272
|
+
padding: 5px 2em;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.kiwi-autocomplete-item-value {
|
|
276
|
+
font-weight: bold;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.kiwi-autocomplete-item-action {
|
|
280
|
+
float: right;
|
|
281
|
+
font-size: 0.9em;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template functional>
|
|
2
|
+
<div
|
|
3
|
+
:data-nick="$options.m.nick(props)"
|
|
4
|
+
:class="[$options.m.hasAvatar(props) ? 'kiwi-avatar--image' : '', data.staticClass]"
|
|
5
|
+
class="kiwi-avatar"
|
|
6
|
+
>
|
|
7
|
+
<span
|
|
8
|
+
:style="$options.m.avatarStyle(props)"
|
|
9
|
+
:class="{'kiwi-avatar--default': $options.m.isDefault(props)}"
|
|
10
|
+
class="kiwi-avatar-inner"
|
|
11
|
+
>
|
|
12
|
+
{{ $options.m.hasAvatar(props) ? '' : $options.m.firstNickLetter(props) }}
|
|
13
|
+
</span>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
|
|
19
|
+
'kiwi public';
|
|
20
|
+
|
|
21
|
+
const methods = {
|
|
22
|
+
props: {},
|
|
23
|
+
avatar(props) {
|
|
24
|
+
// let props = this.props;
|
|
25
|
+
return (props.message && props.message.avatar) || (props.user && props.user.avatar);
|
|
26
|
+
},
|
|
27
|
+
nick(props) {
|
|
28
|
+
return ((props.message && props.message.nick) || (props.user && props.user.nick) || '').toLowerCase();
|
|
29
|
+
},
|
|
30
|
+
firstNickLetter(props) {
|
|
31
|
+
// let props = this.props;
|
|
32
|
+
return this.nick(props)[0].toUpperCase();
|
|
33
|
+
},
|
|
34
|
+
hasAvatar(props) {
|
|
35
|
+
// let props = this.props;
|
|
36
|
+
return !!(props.user.avatar && (props.user.avatar.small || props.user.avatar.large));
|
|
37
|
+
},
|
|
38
|
+
isDefault(props) {
|
|
39
|
+
return !this.colour(props) && !this.hasAvatar(props);
|
|
40
|
+
},
|
|
41
|
+
avatarStyle(props) {
|
|
42
|
+
// let props = this.props;
|
|
43
|
+
let style = {};
|
|
44
|
+
if (this.hasAvatar(props)) {
|
|
45
|
+
let url = (props.size === 'small' && this.avatar(props).small) ?
|
|
46
|
+
this.avatar(props).small :
|
|
47
|
+
// If large was requested but does not exist fallback to small
|
|
48
|
+
this.avatar(props).large || this.avatar(props).small;
|
|
49
|
+
style['background-image'] = `url("${url}")`;
|
|
50
|
+
} else {
|
|
51
|
+
style['background-color'] = `${this.colour(props)}`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return style;
|
|
55
|
+
},
|
|
56
|
+
colour(props) {
|
|
57
|
+
// let props = this.props;
|
|
58
|
+
let user = (props.message && props.message.user) || props.user;
|
|
59
|
+
return user.getColour();
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
props: {
|
|
65
|
+
message: Object,
|
|
66
|
+
user: Object,
|
|
67
|
+
size: String,
|
|
68
|
+
},
|
|
69
|
+
m: methods,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<style>
|
|
75
|
+
|
|
76
|
+
.kiwi-avatar {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kiwi-avatar-inner {
|
|
82
|
+
text-transform: uppercase;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
border: 2px solid;
|
|
87
|
+
border-radius: 50%;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
background-size: cover;
|
|
90
|
+
background-repeat: no-repeat;
|
|
91
|
+
background-position: center;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
user-select: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.kiwi-avatar--image > .kiwi-avatar-inner {
|
|
100
|
+
border: none;
|
|
101
|
+
|
|
102
|
+
/* box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5); */
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
</style>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template functional>
|
|
2
|
+
<span
|
|
3
|
+
v-if="$options.m.shouldShowStatus(props)"
|
|
4
|
+
:class="{
|
|
5
|
+
'kiwi-awaystatusindicator--away': !props.user || props.user.isAway(),
|
|
6
|
+
'kiwi-awaystatusindicator--self': $options.m.isUserSelf(props),
|
|
7
|
+
[data.staticClass]: !!data.staticClass,
|
|
8
|
+
}"
|
|
9
|
+
class="kiwi-awaystatusindicator"
|
|
10
|
+
@click="$options.m.toggleSelfAway(props)"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
'kiwi public';
|
|
16
|
+
|
|
17
|
+
import getState from '@/libs/state';
|
|
18
|
+
|
|
19
|
+
const methods = {
|
|
20
|
+
props: {},
|
|
21
|
+
toggleSelfAway(props) {
|
|
22
|
+
// let props = this.props;
|
|
23
|
+
if (props.isUserSelf) {
|
|
24
|
+
let val = props.user.isAway();
|
|
25
|
+
props.network.ircClient.raw('AWAY', val ? '' : 'Currently away');
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
isUserSelf(props) {
|
|
29
|
+
// let props = this.props;
|
|
30
|
+
if (props.toggle === false) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
let user = getState().getUser(props.network.id, props.network.nick);
|
|
34
|
+
return props.user === user;
|
|
35
|
+
},
|
|
36
|
+
shouldShowStatus(props) {
|
|
37
|
+
// let props = this.props;
|
|
38
|
+
if (!getState().setting('showAwayStatusIndicators')) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (props.network.state !== 'connected') {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let awayNotifyEnabled = props.network.ircClient.network.cap.isEnabled('away-notify');
|
|
47
|
+
return getState().setting('buffers.who_loop') || awayNotifyEnabled;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
props: {
|
|
53
|
+
network: Object,
|
|
54
|
+
user: Object,
|
|
55
|
+
toggle: Boolean,
|
|
56
|
+
},
|
|
57
|
+
m: methods,
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style>
|
|
62
|
+
|
|
63
|
+
.kiwi-awaystatusindicator {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
width: 7px;
|
|
66
|
+
height: 7px;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
margin: 0 4px 0 0;
|
|
69
|
+
border: 1px solid #fff;
|
|
70
|
+
transition: background 0.2s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kiwi-awaystatusindicator--self {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
</style>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="kiwi-bufferkey kiwi-warning-block">
|
|
3
|
+
<form @submit.prevent="joinChannel">
|
|
4
|
+
<label>{{ $t('bufferkey_input') }}</label>
|
|
5
|
+
<input v-model="buffer.key" v-focus type="password">
|
|
6
|
+
<div class="kiwi-bufferkey-buttons">
|
|
7
|
+
<span class="kiwi-bufferkey-button" @click="joinChannel">
|
|
8
|
+
<i class="fa fa-arrow-circle-o-right" aria-hidden="true" />
|
|
9
|
+
{{ $t('bufferkey_rejoin', {channel: buffer.name}) }}
|
|
10
|
+
</span>
|
|
11
|
+
</div>
|
|
12
|
+
</form>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
'kiwi public';
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
props: ['buffer', 'network'],
|
|
21
|
+
data: function data() {
|
|
22
|
+
return {
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
joinChannel() {
|
|
27
|
+
this.buffer.flags.channel_badkey = false;
|
|
28
|
+
this.buffer.join();
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<style lang="less">
|
|
35
|
+
.kiwi-bufferkey {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
text-align: center;
|
|
38
|
+
padding: 10% 0;
|
|
39
|
+
margin: 10px 0 0 0;
|
|
40
|
+
transition: background-color 0.3s;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.kiwi-bufferkey label {
|
|
44
|
+
width: 340px;
|
|
45
|
+
display: block;
|
|
46
|
+
margin: 0 auto 10px auto;
|
|
47
|
+
font-size: 1.2em;
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kiwi-bufferkey input[type="password"] {
|
|
52
|
+
height: 40px;
|
|
53
|
+
padding: 0 10px;
|
|
54
|
+
border-radius: 4px;
|
|
55
|
+
color: #000;
|
|
56
|
+
border: none;
|
|
57
|
+
width: 320px;
|
|
58
|
+
font-size: 1.2em;
|
|
59
|
+
margin: 0 0 20px 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.kiwi-bufferkey-buttons {
|
|
63
|
+
width: 100%;
|
|
64
|
+
text-align: center;
|
|
65
|
+
font-size: 1.6em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.kiwi-bufferkey-buttons span:hover {
|
|
69
|
+
text-decoration: underline;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.kiwi-bufferkey-button {
|
|
73
|
+
width: auto;
|
|
74
|
+
display: inline-block;
|
|
75
|
+
font-size: 0.8em;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
transition: all 0.3s;
|
|
78
|
+
border-radius: 4px;
|
|
79
|
+
padding: 5px 20px;
|
|
80
|
+
line-height: 40px;
|
|
81
|
+
border: 1px solid;
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
transition: all 0.2s;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
i {
|
|
88
|
+
float: left;
|
|
89
|
+
font-size: 1.6em;
|
|
90
|
+
line-height: 40px;
|
|
91
|
+
margin-right: 0.4em;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media screen and (max-width: 1024px) {
|
|
96
|
+
.kiwi-bufferkey-button {
|
|
97
|
+
clear: both;
|
|
98
|
+
margin: 0 5% 1em;
|
|
99
|
+
font-size: 1em;
|
|
100
|
+
display: block;
|
|
101
|
+
padding: 0.6em 0.8em 0.6em 0.4em;
|
|
102
|
+
width: 90%;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.kiwi-bufferkey-button i {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media screen and (max-width: 769px) {
|
|
112
|
+
.kiwi-bufferkey {
|
|
113
|
+
font-size: 0.8em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.kiwi-bufferkey-button {
|
|
117
|
+
font-size: 0.7em;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
</style>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="kiwi-buffersettings">
|
|
3
|
+
<div class="kiwi-buffersettings-alerts">
|
|
4
|
+
<h3>{{ $t('settings_notify') }}</h3>
|
|
5
|
+
<hr>
|
|
6
|
+
<form class="u-form">
|
|
7
|
+
<label class="u-checkbox-wrapper">
|
|
8
|
+
<input v-model="settingAlertOn" type="radio" name="alert_on" value="message">
|
|
9
|
+
<span>{{ $t('settings_notify_all') }}</span>
|
|
10
|
+
</label>
|
|
11
|
+
<label class="u-checkbox-wrapper">
|
|
12
|
+
<input v-model="settingAlertOn" type="radio" name="alert_on" value="highlight">
|
|
13
|
+
<span>{{ $t('settings_notify_mentioned') }}</span>
|
|
14
|
+
</label>
|
|
15
|
+
<label class="u-checkbox-wrapper">
|
|
16
|
+
<input v-model="settingAlertOn" type="radio" name="alert_on" value="never">
|
|
17
|
+
<span>{{ $t('settings_notify_never') }}</span>
|
|
18
|
+
</label>
|
|
19
|
+
</form>
|
|
20
|
+
|
|
21
|
+
<h3>{{ $t('settings') }}</h3>
|
|
22
|
+
<hr>
|
|
23
|
+
<form class="u-form">
|
|
24
|
+
<label>
|
|
25
|
+
<span>{{ $t('settings_notify_mute') }}</span>
|
|
26
|
+
<input v-model="settingMuteSound" type="checkbox">
|
|
27
|
+
</label>
|
|
28
|
+
<label>
|
|
29
|
+
<span>{{ $t('settings_show_message_counts') }}</span>
|
|
30
|
+
<input v-model="settingHideMessageCount" type="checkbox">
|
|
31
|
+
</label>
|
|
32
|
+
</form>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
'kiwi public';
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
components: {
|
|
42
|
+
},
|
|
43
|
+
props: ['buffer'],
|
|
44
|
+
data: function data() {
|
|
45
|
+
return {
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
settingAlertOn: {
|
|
50
|
+
get: function getSettingAlertOn() {
|
|
51
|
+
return this.buffer.setting('alert_on');
|
|
52
|
+
},
|
|
53
|
+
set: function setSettingAlertOn(val) {
|
|
54
|
+
let network = this.buffer.getNetwork();
|
|
55
|
+
let netId = network.connection.bncnetid;
|
|
56
|
+
if (netId) {
|
|
57
|
+
// If this buffer is on a BOUNCER account, update the setting there too
|
|
58
|
+
// TODO: Move this to BouncerProvider snapshots
|
|
59
|
+
network.ircClient.raw(
|
|
60
|
+
`BOUNCER changebuffer ${netId} ${this.buffer.name} notify=${val}`
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return this.buffer.setting('alert_on', val);
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
settingMuteSound: {
|
|
68
|
+
get: function getSettingAlertOn() {
|
|
69
|
+
return this.buffer.setting('mute_sound');
|
|
70
|
+
},
|
|
71
|
+
set: function setSettingAlertOn(val) {
|
|
72
|
+
return this.buffer.setting('mute_sound', val);
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
settingHideMessageCount: {
|
|
76
|
+
get: function getsettingHideMessageCount() {
|
|
77
|
+
return this.buffer.setting('hide_message_counts');
|
|
78
|
+
},
|
|
79
|
+
set: function setsettingHideMessageCount(val) {
|
|
80
|
+
return this.buffer.setting('hide_message_counts', val);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style>
|
|
88
|
+
|
|
89
|
+
.kiwi-buffersettings {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.kiwi-buffersettings-alerts {
|
|
94
|
+
margin-bottom: 1em;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
</style>
|