serverless-ircd 0.6.0 → 0.8.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 +9 -4
- package/.gitmodules +4 -1
- package/CHANGELOG.md +480 -22
- package/README.md +244 -57
- package/apps/aws-stack/package.json +1 -1
- package/apps/aws-stack/src/aws-stack.ts +186 -18
- package/apps/aws-stack/tests/stack.test.ts +400 -56
- 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/index.html +18 -0
- package/apps/cf-worker/tests/fixtures/web-dist/webclient/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 +56 -0
- package/apps/local-cli/package.json +1 -1
- package/apps/local-cli/src/config-loader.ts +8 -0
- package/apps/local-cli/src/main.ts +16 -0
- package/apps/local-cli/src/server.ts +1 -0
- package/apps/local-cli/tests/config-loader.test.ts +14 -0
- package/apps/web/landing/index.html +215 -0
- package/apps/web/package.json +28 -0
- package/apps/web/scripts/build.mjs +132 -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/AWS-Deployment.md +21 -8
- package/docs/Cloudflare-Deployment-Guide.md +22 -6
- package/docs/Home.md +1 -0
- package/docs/PlanExtensions.md +113 -3
- package/docs/Release-Process.md +23 -13
- package/docs/Services.md +546 -0
- package/docs/WebClientGuide.md +536 -0
- package/package.json +2 -2
- package/packages/aws-adapter/package.json +1 -1
- package/packages/aws-adapter/src/aws-runtime.ts +5 -0
- package/packages/aws-adapter/src/cdk-table-defs.ts +6 -0
- package/packages/aws-adapter/src/config-loader.ts +11 -0
- package/packages/aws-adapter/src/connection-counter.ts +89 -0
- package/packages/aws-adapter/src/dynamo-services-store.ts +649 -0
- package/packages/aws-adapter/src/handlers/connect.ts +55 -51
- package/packages/aws-adapter/src/handlers/default.ts +36 -4
- package/packages/aws-adapter/src/handlers/index.ts +15 -0
- package/packages/aws-adapter/src/handlers/nlb-stream.ts +15 -0
- package/packages/aws-adapter/src/handlers/sweeper.ts +5 -1
- package/packages/aws-adapter/src/index.ts +4 -0
- package/packages/aws-adapter/src/stats.ts +6 -1
- package/packages/aws-adapter/src/tables.ts +34 -4
- package/packages/aws-adapter/tests/aws-harness.ts +3 -0
- package/packages/aws-adapter/tests/config-loader.test.ts +8 -0
- package/packages/aws-adapter/tests/connect.test.ts +158 -32
- package/packages/aws-adapter/tests/connection-counter.test.ts +127 -0
- package/packages/aws-adapter/tests/dynamo-services-store-dynamo.test.ts +183 -0
- package/packages/aws-adapter/tests/dynamo-services-store-unit.test.ts +568 -0
- package/packages/aws-adapter/tests/handlers.test.ts +105 -3
- package/packages/aws-adapter/tests/tables.test.ts +6 -1
- package/packages/cf-adapter/package.json +1 -1
- package/packages/cf-adapter/src/config-loader.ts +11 -0
- package/packages/cf-adapter/src/connection-do.ts +112 -2
- package/packages/cf-adapter/src/d1-services-store.ts +703 -0
- package/packages/cf-adapter/src/env.ts +8 -0
- package/packages/cf-adapter/src/index.ts +5 -0
- package/packages/cf-adapter/tests/cf-harness.ts +12 -1
- package/packages/cf-adapter/tests/config-loader.test.ts +19 -0
- package/packages/cf-adapter/tests/connection-do-nickserv-d1.test.ts +128 -0
- package/packages/cf-adapter/tests/connection-do.test.ts +150 -2
- package/packages/cf-adapter/tests/d1-services-store.test.ts +582 -0
- package/packages/cf-adapter/tests/serialize.test.ts +1 -0
- 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/scripts/generate-build-info.mjs +26 -5
- package/packages/irc-core/src/commands/account-auth.ts +172 -0
- package/packages/irc-core/src/commands/chanserv.ts +882 -0
- package/packages/irc-core/src/commands/hostserv.ts +487 -0
- package/packages/irc-core/src/commands/index.ts +12 -0
- package/packages/irc-core/src/commands/join.ts +164 -8
- package/packages/irc-core/src/commands/markread.ts +202 -0
- package/packages/irc-core/src/commands/memoserv.ts +319 -0
- package/packages/irc-core/src/commands/mode.ts +96 -4
- package/packages/irc-core/src/commands/nickserv.ts +390 -0
- package/packages/irc-core/src/commands/oper.ts +18 -1
- package/packages/irc-core/src/commands/operserv.ts +346 -0
- package/packages/irc-core/src/commands/pre-away.ts +3 -1
- package/packages/irc-core/src/commands/privmsg.ts +42 -0
- package/packages/irc-core/src/commands/read-marker.ts +8 -8
- package/packages/irc-core/src/commands/registration.ts +61 -6
- package/packages/irc-core/src/commands/sasl.ts +18 -49
- package/packages/irc-core/src/commands/tagmsg.ts +41 -6
- package/packages/irc-core/src/commands/topic.ts +37 -0
- package/packages/irc-core/src/config.ts +36 -5
- package/packages/irc-core/src/effects.ts +56 -1
- package/packages/irc-core/src/ports.ts +1653 -84
- package/packages/irc-core/src/protocol/numerics.ts +8 -0
- package/packages/irc-core/src/state/channel.ts +21 -1
- package/packages/irc-core/src/state/connection.ts +25 -1
- package/packages/irc-core/src/types.ts +48 -12
- package/packages/irc-core/tests/batch.test.ts +15 -0
- package/packages/irc-core/tests/commands/chanserv.test.ts +1668 -0
- package/packages/irc-core/tests/commands/chathistory.test.ts +6 -0
- package/packages/irc-core/tests/commands/hostserv.test.ts +935 -0
- package/packages/irc-core/tests/commands/join.test.ts +393 -1
- package/packages/irc-core/tests/commands/markread.test.ts +361 -0
- package/packages/irc-core/tests/commands/memoserv.test.ts +654 -0
- package/packages/irc-core/tests/commands/mode.test.ts +381 -2
- package/packages/irc-core/tests/commands/nickserv.test.ts +807 -0
- package/packages/irc-core/tests/commands/oper.test.ts +13 -0
- package/packages/irc-core/tests/commands/operserv.test.ts +656 -0
- package/packages/irc-core/tests/commands/privmsg.test.ts +147 -0
- package/packages/irc-core/tests/commands/read-marker.test.ts +28 -28
- package/packages/irc-core/tests/commands/registration.test.ts +788 -14
- package/packages/irc-core/tests/commands/sasl.test.ts +185 -12
- package/packages/irc-core/tests/commands/server-info.test.ts +9 -5
- package/packages/irc-core/tests/commands/tagmsg.test.ts +73 -33
- package/packages/irc-core/tests/commands/topic.test.ts +94 -2
- package/packages/irc-core/tests/commands/unified-account.test.ts +416 -0
- package/packages/irc-core/tests/config.test.ts +49 -5
- package/packages/irc-core/tests/effects.test.ts +19 -0
- package/packages/irc-core/tests/message-store.test.ts +63 -0
- package/packages/irc-core/tests/numerics.test.ts +13 -0
- package/packages/irc-core/tests/parser.test.ts +109 -0
- package/packages/irc-core/tests/persistent-services-store.test.ts +582 -0
- package/packages/irc-core/tests/services-store.test.ts +1289 -0
- package/packages/irc-core/tests/state/channel.test.ts +3 -0
- package/packages/irc-server/package.json +1 -1
- package/packages/irc-server/src/actor.ts +71 -16
- package/packages/irc-server/src/dispatch.ts +94 -7
- package/packages/irc-server/src/routing.ts +19 -0
- package/packages/irc-server/tests/actor.test.ts +623 -12
- package/packages/irc-server/tests/dispatch.test.ts +270 -2
- package/packages/irc-server/tests/routing.test.ts +6 -0
- package/packages/irc-test-support/package.json +1 -1
- package/packages/irc-test-support/src/in-memory-harness.ts +29 -3
- package/packages/irc-test-support/src/index.ts +1 -0
- package/packages/irc-test-support/src/scenarios.ts +24 -2
- package/packages/irc-test-support/tests/in-memory-harness.test.ts +32 -0
- 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
- package/tools/tcp-ws-forwarder/tests/forwarder.test.ts +2 -2
- package/packages/irc-core/tests/read-marker-store.test.ts +0 -108
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="{
|
|
4
|
+
'kiwi-wrap--statebrowser-drawopen': stateBrowserDrawOpen,
|
|
5
|
+
'kiwi-wrap--monospace': $state.setting('useMonospace'),
|
|
6
|
+
'kiwi-wrap--touch': $state.ui.is_touch,
|
|
7
|
+
}"
|
|
8
|
+
:data-activebuffer="buffer ? buffer.name.toLowerCase() : ''"
|
|
9
|
+
class="kiwi-wrap kiwi-theme-bg"
|
|
10
|
+
@click="emitDocumentClick"
|
|
11
|
+
@paste.capture="emitBufferPaste"
|
|
12
|
+
>
|
|
13
|
+
<link :href="themeUrl" rel="stylesheet" type="text/css">
|
|
14
|
+
|
|
15
|
+
<template v-if="!hasStarted || (!fallbackComponent && networks.length === 0)">
|
|
16
|
+
<component :is="startupComponent" @start="startUp" />
|
|
17
|
+
</template>
|
|
18
|
+
<template v-else>
|
|
19
|
+
<state-browser :networks="networks" :sidebar-state="sidebarState" />
|
|
20
|
+
<div
|
|
21
|
+
:class="{
|
|
22
|
+
'kiwi-workspace--disconnected': network && network.state !== 'connected'
|
|
23
|
+
}"
|
|
24
|
+
class="kiwi-workspace"
|
|
25
|
+
@click="stateBrowserDrawOpen = false"
|
|
26
|
+
>
|
|
27
|
+
<div class="kiwi-workspace-background" />
|
|
28
|
+
|
|
29
|
+
<template v-if="!activeComponent && network">
|
|
30
|
+
<container
|
|
31
|
+
:network="network"
|
|
32
|
+
:buffer="buffer"
|
|
33
|
+
:sidebar-state="sidebarState"
|
|
34
|
+
>
|
|
35
|
+
<template v-if="mediaviewerOpen" #before>
|
|
36
|
+
<media-viewer
|
|
37
|
+
:url="mediaviewerUrl"
|
|
38
|
+
:component="mediaviewerComponent"
|
|
39
|
+
:component-props="mediaviewerComponentProps"
|
|
40
|
+
:is-iframe="mediaviewerIframe"
|
|
41
|
+
class="kiwi-main-mediaviewer"
|
|
42
|
+
@close="$state.$emit('mediaviewer.hide', { source: 'user' });"
|
|
43
|
+
/>
|
|
44
|
+
</template>
|
|
45
|
+
</container>
|
|
46
|
+
<control-input
|
|
47
|
+
v-if="buffer.show_input"
|
|
48
|
+
:network="network"
|
|
49
|
+
:buffer="buffer"
|
|
50
|
+
:sidebar-state="sidebarState"
|
|
51
|
+
/>
|
|
52
|
+
</template>
|
|
53
|
+
<component
|
|
54
|
+
:is="fallbackComponent"
|
|
55
|
+
v-else-if="!activeComponent"
|
|
56
|
+
v-bind="fallbackComponentProps"
|
|
57
|
+
/>
|
|
58
|
+
<component :is="activeComponent" v-else v-bind="activeComponentProps" />
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
<script>
|
|
65
|
+
'kiwi public';
|
|
66
|
+
|
|
67
|
+
import cssVarsPonyfill from 'css-vars-ponyfill';
|
|
68
|
+
import '@/res/globalStyle.css';
|
|
69
|
+
import Tinycon from 'tinycon';
|
|
70
|
+
|
|
71
|
+
import startupWelcome from '@/components/startups/Welcome';
|
|
72
|
+
import startupZncLogin from '@/components/startups/ZncLogin';
|
|
73
|
+
import startupCustomServer from '@/components/startups/CustomServer';
|
|
74
|
+
import startupKiwiBnc from '@/components/startups/KiwiBnc';
|
|
75
|
+
import startupPersonal from '@/components/startups/Personal';
|
|
76
|
+
import StateBrowser from '@/components/StateBrowser';
|
|
77
|
+
import AppSettings from '@/components/AppSettings';
|
|
78
|
+
import Container from '@/components/Container';
|
|
79
|
+
import ControlInput from '@/components/ControlInput';
|
|
80
|
+
import MediaViewer from '@/components/MediaViewer';
|
|
81
|
+
import { State as SidebarState } from '@/components/Sidebar';
|
|
82
|
+
import * as Notifications from '@/libs/Notifications';
|
|
83
|
+
import * as bufferTools from '@/libs/bufferTools';
|
|
84
|
+
import ThemeManager from '@/libs/ThemeManager';
|
|
85
|
+
import Logger from '@/libs/Logger';
|
|
86
|
+
|
|
87
|
+
let log = Logger.namespace('App.vue');
|
|
88
|
+
|
|
89
|
+
export default {
|
|
90
|
+
components: {
|
|
91
|
+
StateBrowser,
|
|
92
|
+
Container,
|
|
93
|
+
ControlInput,
|
|
94
|
+
MediaViewer,
|
|
95
|
+
},
|
|
96
|
+
data() {
|
|
97
|
+
return {
|
|
98
|
+
startupComponent: null,
|
|
99
|
+
hasStarted: false,
|
|
100
|
+
// When on mobile screens, the statebrowser turns into a drawer
|
|
101
|
+
stateBrowserDrawOpen: false,
|
|
102
|
+
// If set, will become the main view instead of a buffer/nicklist container
|
|
103
|
+
activeComponent: null,
|
|
104
|
+
activeComponentProps: {},
|
|
105
|
+
// If set, will become the main view when no networks are available to be shown
|
|
106
|
+
// and there is no active component set
|
|
107
|
+
fallbackComponent: null,
|
|
108
|
+
fallbackComponentProps: {},
|
|
109
|
+
mediaviewerOpen: false,
|
|
110
|
+
mediaviewerUrl: '',
|
|
111
|
+
mediaviewerComponent: null,
|
|
112
|
+
mediaviewerComponentProps: {},
|
|
113
|
+
mediaviewerIframe: false,
|
|
114
|
+
themeUrl: '',
|
|
115
|
+
sidebarState: new SidebarState(),
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
computed: {
|
|
119
|
+
networks() {
|
|
120
|
+
return this.$state.networks;
|
|
121
|
+
},
|
|
122
|
+
network() {
|
|
123
|
+
return this.$state.getActiveNetwork();
|
|
124
|
+
},
|
|
125
|
+
buffer() {
|
|
126
|
+
return this.$state.getActiveBuffer();
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
created() {
|
|
130
|
+
this.listenForActiveComponents();
|
|
131
|
+
this.watchForThemes();
|
|
132
|
+
this.initStateBrowser();
|
|
133
|
+
this.initMediaviewer();
|
|
134
|
+
this.configureFavicon();
|
|
135
|
+
|
|
136
|
+
this.listen(document, 'keydown', (event) => this.onKeyDown(event));
|
|
137
|
+
this.listen(window, 'focus', (event) => this.onFocus(event));
|
|
138
|
+
this.listen(window, 'blur', (event) => this.onBlur(event));
|
|
139
|
+
this.listen(window, 'touchstart', (event) => this.onTouchStart(event));
|
|
140
|
+
},
|
|
141
|
+
mounted() {
|
|
142
|
+
// Decide which startup screen to use depending on the config
|
|
143
|
+
let startupScreens = {
|
|
144
|
+
welcome: startupWelcome,
|
|
145
|
+
customServer: startupCustomServer,
|
|
146
|
+
kiwiBnc: startupKiwiBnc,
|
|
147
|
+
znc: startupZncLogin,
|
|
148
|
+
personal: startupPersonal,
|
|
149
|
+
};
|
|
150
|
+
let extraStartupScreens = this.$state.getStartups();
|
|
151
|
+
|
|
152
|
+
let startupName = this.$state.settings.startupScreen || 'personal';
|
|
153
|
+
let startup = extraStartupScreens[startupName] || startupScreens[startupName];
|
|
154
|
+
|
|
155
|
+
if (!startup) {
|
|
156
|
+
Logger.error(`Startup screen "${startupName}" does not exist`);
|
|
157
|
+
} else {
|
|
158
|
+
this.startupComponent = startup;
|
|
159
|
+
}
|
|
160
|
+
this.trackWindowDimensions();
|
|
161
|
+
},
|
|
162
|
+
methods: {
|
|
163
|
+
// Triggered by a startup screen event
|
|
164
|
+
startUp(opts) {
|
|
165
|
+
log('startUp()');
|
|
166
|
+
if (opts && opts.fallbackComponent) {
|
|
167
|
+
this.fallbackComponent = opts.fallbackComponent;
|
|
168
|
+
}
|
|
169
|
+
if (opts && opts.fallbackComponentProps) {
|
|
170
|
+
this.fallbackComponentProps = opts.fallbackComponentProps;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Make sure a startup screen can't trigger these more than once
|
|
174
|
+
if (!this.hasStarted) {
|
|
175
|
+
this.warnOnPageClose();
|
|
176
|
+
|
|
177
|
+
// Wait for a click or sending a message before asking for notification permission.
|
|
178
|
+
// Not doing this on an input event will get it blocked by some browsers.
|
|
179
|
+
let requestNotificationPermission = () => {
|
|
180
|
+
this.$state.$off('document.clicked', requestNotificationPermission);
|
|
181
|
+
this.$state.$off('input.raw', requestNotificationPermission);
|
|
182
|
+
|
|
183
|
+
Notifications.requestPermission(this.$state);
|
|
184
|
+
Notifications.listenForNewMessages(this.$state);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
this.$state.$once('document.clicked', requestNotificationPermission);
|
|
188
|
+
this.$state.$once('input.raw', requestNotificationPermission);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
this.hasStarted = true;
|
|
192
|
+
},
|
|
193
|
+
listenForActiveComponents() {
|
|
194
|
+
this.listen(this.$state, 'active.component', (component, props) => {
|
|
195
|
+
this.activeComponent = null;
|
|
196
|
+
if (component) {
|
|
197
|
+
this.activeComponentProps = props;
|
|
198
|
+
this.activeComponent = component;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
this.listen(this.$state, 'active.component.toggle', (component, props) => {
|
|
202
|
+
if (component === this.activeComponent) {
|
|
203
|
+
this.activeComponent = null;
|
|
204
|
+
} else if (component) {
|
|
205
|
+
this.activeComponentProps = props;
|
|
206
|
+
this.activeComponent = component;
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
watchForThemes() {
|
|
211
|
+
let themes = ThemeManager.instance();
|
|
212
|
+
this.themeUrl = ThemeManager.themeUrl(themes.currentTheme());
|
|
213
|
+
this.$nextTick(() => cssVarsPonyfill());
|
|
214
|
+
this.listen(this.$state, 'theme.change', () => {
|
|
215
|
+
this.themeUrl = ThemeManager.themeUrl(themes.currentTheme());
|
|
216
|
+
this.$nextTick(() => cssVarsPonyfill());
|
|
217
|
+
});
|
|
218
|
+
},
|
|
219
|
+
initStateBrowser() {
|
|
220
|
+
this.listen(this.$state, 'statebrowser.toggle', () => {
|
|
221
|
+
this.stateBrowserDrawOpen = !this.stateBrowserDrawOpen;
|
|
222
|
+
});
|
|
223
|
+
this.listen(this.$state, 'statebrowser.show', () => {
|
|
224
|
+
this.stateBrowserDrawOpen = true;
|
|
225
|
+
});
|
|
226
|
+
this.listen(this.$state, 'statebrowser.hide', () => {
|
|
227
|
+
this.stateBrowserDrawOpen = false;
|
|
228
|
+
});
|
|
229
|
+
},
|
|
230
|
+
initMediaviewer() {
|
|
231
|
+
this.listen(this.$state, 'mediaviewer.show', (url) => {
|
|
232
|
+
let opts = {};
|
|
233
|
+
|
|
234
|
+
// The passed url may be a string or an options object
|
|
235
|
+
if (typeof url === 'string') {
|
|
236
|
+
opts = { url: url };
|
|
237
|
+
} else {
|
|
238
|
+
opts = url;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
this.mediaviewerUrl = opts.url;
|
|
242
|
+
this.mediaviewerComponent = opts.component;
|
|
243
|
+
this.mediaviewerComponentProps = opts.componentProps;
|
|
244
|
+
this.mediaviewerIframe = opts.iframe;
|
|
245
|
+
this.mediaviewerOpen = true;
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
this.listen(this.$state, 'mediaviewer.hide', () => {
|
|
249
|
+
this.mediaviewerOpen = false;
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
configureFavicon() {
|
|
253
|
+
// favicon bubble
|
|
254
|
+
Tinycon.setOptions({
|
|
255
|
+
width: 7,
|
|
256
|
+
height: 9,
|
|
257
|
+
color: '#ffffff',
|
|
258
|
+
background: '#b32d2d',
|
|
259
|
+
fallback: true,
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
this.$state.$watch('ui.favicon_counter', (newVal) => {
|
|
263
|
+
if (newVal) {
|
|
264
|
+
Tinycon.setBubble(newVal);
|
|
265
|
+
} else {
|
|
266
|
+
Tinycon.reset();
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
this.listen(this.$state, 'message.new', (event) => {
|
|
271
|
+
let message = event.message;
|
|
272
|
+
if (!message.isHighlight || message.ignore || this.$state.ui.app_has_focus) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
this.$state.ui.favicon_counter++;
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
trackWindowDimensions() {
|
|
280
|
+
// Track the window dimensions into the reactive ui state
|
|
281
|
+
let trackWindowDims = () => {
|
|
282
|
+
this.$state.ui.app_width = this.$el.clientWidth;
|
|
283
|
+
this.$state.ui.app_height = this.$el.clientHeight;
|
|
284
|
+
this.$state.ui.is_narrow = this.$el.clientWidth <= 769;
|
|
285
|
+
};
|
|
286
|
+
this.listen(window, 'resize', trackWindowDims);
|
|
287
|
+
trackWindowDims();
|
|
288
|
+
},
|
|
289
|
+
warnOnPageClose() {
|
|
290
|
+
window.onbeforeunload = () => {
|
|
291
|
+
if (this.$state.setting('warnOnExit')) {
|
|
292
|
+
return this.$t('window_unload');
|
|
293
|
+
}
|
|
294
|
+
return undefined;
|
|
295
|
+
};
|
|
296
|
+
window.onunload = () => {
|
|
297
|
+
this.$state.networks.forEach((net) => {
|
|
298
|
+
if (net.connection.direct && net.state === 'connected') {
|
|
299
|
+
net.ircClient.raw('QUIT', this.$state.setting('quitMessage') || 'Client Closed Connection');
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
emitBufferPaste(event) {
|
|
305
|
+
// bail if no buffer is active, or the buffer is hidden by another component
|
|
306
|
+
if (!this.$state.getActiveBuffer() || this.activeComponent !== null) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// bail if the target is an input-like element
|
|
311
|
+
if (
|
|
312
|
+
event.target instanceof HTMLInputElement ||
|
|
313
|
+
event.target instanceof HTMLSelectElement ||
|
|
314
|
+
event.target instanceof HTMLTextAreaElement
|
|
315
|
+
) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
this.$state.$emit('buffer.paste', event);
|
|
320
|
+
},
|
|
321
|
+
emitDocumentClick(event) {
|
|
322
|
+
this.$state.$emit('document.clicked', event);
|
|
323
|
+
},
|
|
324
|
+
onTouchStart(event) {
|
|
325
|
+
// Parts of the UI adjust themselves if we're known to be using a touchscreen
|
|
326
|
+
this.$state.ui.is_touch = true;
|
|
327
|
+
},
|
|
328
|
+
onBlur(event) {
|
|
329
|
+
this.$state.ui.app_has_focus = false;
|
|
330
|
+
},
|
|
331
|
+
onFocus(event) {
|
|
332
|
+
this.$state.ui.app_has_focus = true;
|
|
333
|
+
let buffer = this.$state.getActiveBuffer();
|
|
334
|
+
if (buffer) {
|
|
335
|
+
buffer.markAsRead(true);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
this.$state.ui.favicon_counter = 0;
|
|
339
|
+
},
|
|
340
|
+
onKeyDown(event) {
|
|
341
|
+
this.$state.$emit('document.keydown', event);
|
|
342
|
+
|
|
343
|
+
let meta = false;
|
|
344
|
+
|
|
345
|
+
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
|
346
|
+
meta = event.metaKey;
|
|
347
|
+
} else {
|
|
348
|
+
// none english languages use ctrl + alt to access extended chars
|
|
349
|
+
// make sure we do not interfere with that by only acting on ctrl
|
|
350
|
+
meta = event.ctrlKey && !event.altKey;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (meta && event.keyCode === 221) {
|
|
354
|
+
// meta + ]
|
|
355
|
+
let buffer = bufferTools.getNextBuffer();
|
|
356
|
+
if (buffer) {
|
|
357
|
+
this.$state.setActiveBuffer(buffer.networkid, buffer.name);
|
|
358
|
+
}
|
|
359
|
+
event.preventDefault();
|
|
360
|
+
} else if (meta && event.keyCode === 219) {
|
|
361
|
+
// meta + [
|
|
362
|
+
let buffer = bufferTools.getPreviousBuffer();
|
|
363
|
+
if (buffer) {
|
|
364
|
+
this.$state.setActiveBuffer(buffer.networkid, buffer.name);
|
|
365
|
+
}
|
|
366
|
+
event.preventDefault();
|
|
367
|
+
} else if (meta && event.keyCode === 79) {
|
|
368
|
+
// meta + o
|
|
369
|
+
this.$state.$emit('active.component.toggle', AppSettings);
|
|
370
|
+
event.preventDefault();
|
|
371
|
+
} else if (meta && event.keyCode === 83) {
|
|
372
|
+
// meta + s
|
|
373
|
+
let network = this.$state.getActiveNetwork();
|
|
374
|
+
if (network) {
|
|
375
|
+
network.showServerBuffer('settings');
|
|
376
|
+
}
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
};
|
|
382
|
+
</script>
|
|
383
|
+
|
|
384
|
+
<style lang="less">
|
|
385
|
+
@import "~font-awesome/less/variables.less";
|
|
386
|
+
/* stylelint-disable-next-line at-rule-no-unknown */
|
|
387
|
+
@fa-font-path "~font-awesome/fonts/";
|
|
388
|
+
|
|
389
|
+
/* stylelint-disable no-invalid-position-at-import-rule */
|
|
390
|
+
@import "~font-awesome/less/mixins.less";
|
|
391
|
+
@import "~font-awesome/less/core.less";
|
|
392
|
+
@import "~font-awesome/less/fixed-width.less";
|
|
393
|
+
@import "~font-awesome/less/icons.less";
|
|
394
|
+
@import "~font-awesome/less/path.less";
|
|
395
|
+
@import "~font-awesome/less/animated.less";
|
|
396
|
+
|
|
397
|
+
html {
|
|
398
|
+
height: 100%;
|
|
399
|
+
margin: 0;
|
|
400
|
+
padding: 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
body {
|
|
404
|
+
height: 100%;
|
|
405
|
+
margin: 0;
|
|
406
|
+
padding: 0;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.kiwi-wrap {
|
|
410
|
+
font-size: 90%;
|
|
411
|
+
line-height: 1.6em;
|
|
412
|
+
font-family: Source Sans Pro, Helvetica, sans-serif;
|
|
413
|
+
-webkit-font-smoothing: antialiased;
|
|
414
|
+
height: 100%;
|
|
415
|
+
overflow: hidden;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* .kiwi-workspace has ::before and ::after 4px above itself for the connection status */
|
|
419
|
+
.kiwi-workspace {
|
|
420
|
+
position: relative;
|
|
421
|
+
margin-left: 220px;
|
|
422
|
+
left: 0;
|
|
423
|
+
top: 4px;
|
|
424
|
+
display: flex;
|
|
425
|
+
flex-direction: column;
|
|
426
|
+
height: 100%;
|
|
427
|
+
transition: left 0.2s, margin-left 0.2s;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.kiwi-workspace::before,
|
|
431
|
+
.kiwi-workspace::after {
|
|
432
|
+
position: absolute;
|
|
433
|
+
content: '';
|
|
434
|
+
left: 0;
|
|
435
|
+
right: auto;
|
|
436
|
+
margin-top: -4px;
|
|
437
|
+
width: 100%;
|
|
438
|
+
height: 4px;
|
|
439
|
+
z-index: 0;
|
|
440
|
+
transition: width 0.3s;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.kiwi-workspace::after {
|
|
444
|
+
right: 0;
|
|
445
|
+
left: auto;
|
|
446
|
+
width: 0;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.kiwi-workspace--disconnected::before {
|
|
450
|
+
width: 0;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.kiwi-workspace--disconnected::after {
|
|
454
|
+
width: 100%;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.kiwi-workspace-background {
|
|
458
|
+
position: absolute;
|
|
459
|
+
top: 0;
|
|
460
|
+
left: 0;
|
|
461
|
+
height: 100%;
|
|
462
|
+
width: 100%;
|
|
463
|
+
z-index: -1;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.kiwi-statebrowser {
|
|
467
|
+
position: absolute;
|
|
468
|
+
top: 0;
|
|
469
|
+
left: 0;
|
|
470
|
+
width: 220px;
|
|
471
|
+
bottom: 0;
|
|
472
|
+
z-index: 11; /* Must be at least 1 higher than the workspace :after z-index; */
|
|
473
|
+
transition: left 0.145s, margin-left 0.145s;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.kiwi-container {
|
|
477
|
+
flex-grow: 1;
|
|
478
|
+
|
|
479
|
+
/* The nicklist scroller needs some type of height set on it's parent, but since we use flexbox
|
|
480
|
+
it starts conflicting on firefox. Luckily flexbox ignores this 5% and resizes it as we intend
|
|
481
|
+
anyway. */
|
|
482
|
+
height: 5%;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.kiwi-main-mediaviewer {
|
|
486
|
+
max-height: 70%;
|
|
487
|
+
overflow: auto;
|
|
488
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.kiwi-controlinput {
|
|
492
|
+
z-index: 2;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* Small screen will cause the statebrowser to act as a drawer */
|
|
496
|
+
@media screen and (max-width: 769px) {
|
|
497
|
+
.kiwi-workspace {
|
|
498
|
+
left: 0;
|
|
499
|
+
margin-left: 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.kiwi-statebrowser {
|
|
503
|
+
left: -220px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.kiwi-wrap--statebrowser-drawopen .kiwi-statebrowser {
|
|
507
|
+
left: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.kiwi-wrap--statebrowser-drawopen .kiwi-workspace {
|
|
511
|
+
left: 75%;
|
|
512
|
+
transition: left 0.1s;
|
|
513
|
+
transition-delay: 0s;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
</style>
|