Skip to content

Commit 1506096

Browse files
committed
Rename converse-chats to converse-app-chat
1 parent 7ab22b1 commit 1506096

File tree

21 files changed

+55
-129
lines changed

21 files changed

+55
-129
lines changed

src/plugins/chatboxviews/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ converse.plugins.add('converse-chatboxviews', {
2828
render: () => {
2929
const extra_classes = api.settings.get('singleton') ? ['converse-singleton'] : [];
3030
extra_classes.push(`converse-${api.settings.get('view_mode')}`);
31-
return html`<converse-chats
31+
return html`<converse-app-chat
3232
class="converse-chatboxes row justify-content-start g-0 ${extra_classes.join(' ')}"
33-
></converse-chats>`;
33+
></converse-app-chat>`;
3434
},
3535
renderControlbox: () => html`
3636
<converse-headlines-feeds-list class="controlbox-section"></converse-headlines-feeds-list>

src/plugins/chatboxviews/styles/chats.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
.conversejs {
21-
converse-chats {
21+
converse-app-chat {
2222
&.converse-overlayed {
2323
> .row {
2424
flex-direction: row-reverse;
@@ -60,7 +60,7 @@
6060

6161
@include media-breakpoint-down(sm) {
6262
.conversejs {
63-
converse-chats {
63+
converse-app-chat {
6464
width: 100%;
6565
}
6666
}

src/plugins/chatboxviews/view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CustomElement } from 'shared/components/element.js';
33
import tplChats from './templates/chats.js';
44

55

6-
class ConverseChats extends CustomElement {
6+
class ChatApp extends CustomElement {
77

88
initialize () {
99
this.model = _converse.state.chatboxes;
@@ -39,4 +39,4 @@ class ConverseChats extends CustomElement {
3939
}
4040
}
4141

42-
api.elements.define('converse-chats', ConverseChats);
42+
api.elements.define('converse-app-chat', ChatApp);

src/plugins/chatview/styles/chatbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.conversejs {
2-
converse-chats {
2+
converse-app-chat {
33
&.converse-overlayed {
44
.chatbox {
55
margin: 0 var(--overlayed-chat-gutter);

src/plugins/chatview/styles/index.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/* ******************* Overlay and embedded styles *************************** */
99

1010
.conversejs {
11-
converse-chats.converse-embedded,
12-
converse-chats.converse-overlayed {
11+
converse-app-chat.converse-embedded,
12+
converse-app-chat.converse-overlayed {
1313
.controlbox-head {
1414
padding: 0.5em;
1515
}
@@ -28,7 +28,7 @@
2828
}
2929
}
3030

31-
converse-chats.converse-overlayed {
31+
converse-app-chat.converse-overlayed {
3232
.chat-head, .box-flyout {
3333
border-top-left-radius: var(--chatbox-border-radius);
3434
border-top-right-radius: var(--chatbox-border-radius);
@@ -78,8 +78,8 @@
7878
}
7979

8080
.conversejs {
81-
converse-chats.converse-embedded,
82-
converse-chats.converse-fullscreen {
81+
converse-app-chat.converse-embedded,
82+
converse-app-chat.converse-fullscreen {
8383
.flyout {
8484
border-radius: 0;
8585
border:none;
@@ -94,7 +94,7 @@
9494
}
9595
}
9696

97-
converse-chats.converse-fullscreen {
97+
converse-app-chat.converse-fullscreen {
9898
&:not(.converse-singleton) {
9999
.chatbox {
100100
@include media-breakpoint-up(md) {
@@ -124,7 +124,7 @@
124124
}
125125
}
126126

127-
converse-chats.converse-embedded {
127+
converse-app-chat.converse-embedded {
128128
.chat-head {
129129
font-size: var(--font-size-huge);
130130
}
@@ -147,7 +147,7 @@
147147
/* ******************* Fullpage styles *************************** */
148148

149149
.conversejs {
150-
converse-chats.converse-fullscreen {
150+
converse-app-chat.converse-fullscreen {
151151
.chatbox-btn {
152152
font-size: var(--fullpage-chatbox-button-size);
153153
}
@@ -186,7 +186,7 @@
186186

187187
@include media-breakpoint-down(md) {
188188
.conversejs {
189-
converse-chats:not(.converse-embedded) {
189+
converse-app-chat:not(.converse-embedded) {
190190
> .row {
191191
flex-direction: row-reverse;
192192
}
@@ -208,8 +208,8 @@
208208
}
209209
}
210210

211-
converse-chats.converse-overlayed,
212-
converse-chats.converse-fullscreen {
211+
converse-app-chat.converse-overlayed,
212+
converse-app-chat.converse-fullscreen {
213213
.chat-head {
214214
converse-controlbox-navback {
215215
margin: auto 0;

src/plugins/controlbox/styles/_controlbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
}
165165

166166
.conversejs {
167-
converse-chats {
167+
converse-app-chat {
168168
&.converse-overlayed {
169169
display: flex;
170170
flex-direction: row-reverse;

src/plugins/controlbox/styles/loginform.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
.conversejs {
51-
converse-chats {
51+
converse-app-chat {
5252
&.converse-overlayed {
5353
#controlbox {
5454
converse-login-form {

src/plugins/controlbox/tests/controlbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("The Controlbox", function () {
4747
const chatview = _converse.chatboxviews.get(sender_jid);
4848
minimize(chatview.model);
4949

50-
const el = document.querySelector('converse-chats');
50+
const el = document.querySelector('converse-app-chat');
5151
expect(el.querySelector('.restore-chat .message-count') === null).toBeTruthy();
5252
const rosterview = document.querySelector('converse-roster');
5353
expect(rosterview.querySelector('.msgs-indicator') === null).toBeTruthy();

src/plugins/headlines-view/styles/headlines-head.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
}
4242

43-
converse-chats {
43+
converse-app-chat {
4444
&.converse-fullscreen {
4545
.chatbox.headlines {
4646
.chat-head {

src/plugins/headlines-view/styles/headlines.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242

43-
converse-chats {
43+
converse-app-chat {
4444
&.converse-fullscreen {
4545
.chatbox.headlines {
4646
.box-flyout {

0 commit comments

Comments
 (0)