ConverseJS 9.0.0: first attempt to integrate.
This commit is contained in:
parent
9ac40efb54
commit
79876e1750
@ -150,6 +150,7 @@ window.initConverse = async function initConverse ({
|
||||
theme: theme || 'peertube',
|
||||
persistent_store: 'sessionStorage',
|
||||
show_images_inline: false, // for security reason, and to avoid bugs when image is larger that iframe
|
||||
render_media: false, // for security reason, and to avoid bugs when image is larger that iframe
|
||||
whitelisted_plugins: ['livechatWindowTitlePlugin']
|
||||
}
|
||||
|
||||
|
@ -13,9 +13,10 @@
|
||||
--peertube-link-hover: #000;
|
||||
}
|
||||
|
||||
#conversejs.theme-peertube,
|
||||
.conversejs.theme-peertube,
|
||||
.conversejs-bg.theme-peertube,
|
||||
#conversejs-bg.theme-peertube,
|
||||
.converse-fullscreen.theme-peertube {
|
||||
body.converse-fullscreen.theme-peertube {
|
||||
--subdued-color: #a8aba1;
|
||||
--green: #3aa569; // only in this file
|
||||
--redder-orange: #e77051; // only in this file
|
||||
@ -41,8 +42,10 @@
|
||||
--message-text-color: var(--peertube-main-foreground);
|
||||
--message-receipt-color: var(--green);
|
||||
--save-button-color: var(--green);
|
||||
--button-text-color: white;
|
||||
--message-avatar-width: 36px;
|
||||
--message-avatar-height: 36px;
|
||||
--chat-background-color: white;
|
||||
--chat-textarea-color: var(--peertube-input-foreground);
|
||||
--chat-textarea-background-color: var(--peertube-input-background);
|
||||
--chat-textarea-height: 60px;
|
||||
@ -58,6 +61,7 @@
|
||||
--chat-head-text-color: var(--peertube-main-foreground);
|
||||
--chat-toolbar-btn-color: var(--peertube-button-background);
|
||||
--chat-toolbar-btn-disabled-color: var(--peertube-grey-background);
|
||||
--toolbar-btn-text-color: white;
|
||||
--chat-content-background-color: var(--peertube-main-background);
|
||||
--chat-info-color: var(--peertube-grey-foreground); // FIXME: dont know if it is used, and what it is.
|
||||
--highlight-color: var(--peertube-grey-foreground); // FIXME: dont know if it is used, and what it is.
|
||||
@ -94,6 +98,7 @@
|
||||
--branding-font: "Source Sans Pro", sans-serif;
|
||||
--heading-display: inline;
|
||||
--heading-color: #9b4d;
|
||||
--chatroom-color: var(--redder-orange);
|
||||
--chatroom-badge-color: var(--peertube-button-background);
|
||||
--chatroom-badge-hover-color: var(--peertube-button-background);
|
||||
--chatroom-correcting-color: var(--peertube-grey-background);
|
||||
@ -137,8 +142,6 @@
|
||||
--occupants-border-bottom: 1px solid var(--peertube-grey-foreground);
|
||||
--embedded-emoji-picker-height: 300px;
|
||||
--avatar-border-radius: 10%;
|
||||
--avatar-border: 0;
|
||||
--avatar-background-color: none;
|
||||
--fullpage-chat-height: calc(var(--vh, 1vh) * 100);
|
||||
--fullpage-chat-width: 100%;
|
||||
--fullpage-emoji-picker-height: 300px;
|
@ -1,5 +1,5 @@
|
||||
@import "./variables";
|
||||
@import "sass/converse";
|
||||
@import "shared/styles/index";
|
||||
@import "./peertubetheme";
|
||||
|
||||
body.livechat-iframe #conversejs .chat-head {
|
@ -1,5 +1,5 @@
|
||||
import { html } from 'lit-html'
|
||||
import { api } from '@converse/headless/converse-core'
|
||||
import { api } from '@converse/headless/core.js'
|
||||
|
||||
export default () => html`
|
||||
<div class="inner-content converse-brand row">
|
||||
|
@ -9,8 +9,8 @@ module.exports = merge(prod, {
|
||||
alias: {
|
||||
// To override a template, use this syntax:
|
||||
// 'templates/muc_sidebar.js': path.resolve(__dirname, 'custom/templates/muc_sidebar.js')
|
||||
'templates/background_logo.js': path.resolve(__dirname, 'custom/templates/background_logo.js'),
|
||||
'../sass/converse.scss': path.resolve(__dirname, 'custom/sass/livechat.scss')
|
||||
'../../templates/background_logo.js$': path.resolve(__dirname, 'custom/templates/background_logo.js'),
|
||||
'./styles/index.scss$': path.resolve(__dirname, 'custom/shared/styles/livechat.scss')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
2
vendor/converse.js
vendored
2
vendor/converse.js
vendored
@ -1 +1 @@
|
||||
Subproject commit e9967882a94ee48667d6d1aac33118dd32edebbb
|
||||
Subproject commit 077162529d7074253167640c753c6a7c2c9d6e1d
|
Loading…
Reference in New Issue
Block a user