Skip to content

Commit 2120944

Browse files
committed
fixes
1 parent ced7deb commit 2120944

14 files changed

Lines changed: 60 additions & 15 deletions

File tree

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
1-
`The README.md typically serves as a guide for using the extension.`
1+
# Chat - An [LNbits](https://github.com/lnbits/lnbits) Extension
22

3-
# chat - An [LNbits](https://github.com/lnbits/lnbits) Extension
3+
Live support chat built for LNbits. Create categories, share public chat links, and manage incoming conversations from the admin dashboard.
44

5-
## A Starter Template for Your Own Extension
5+
## Features
66

7-
This extension was created with The LNbits Extension Builder
7+
- Category-based public chats with shareable links and multi-participant sessions.
8+
- Admin dashboard with list or grid view, unread/resolved indicators, and inline replies.
9+
- Paid guest messages with per-character pricing and Lightning invoices.
10+
- Optional tips from the public chat interface.
11+
- Notifications for new chats (Telegram, Nostr, Email) including the first message and link.
12+
- Embeddable widget/iframe with minimized launcher.
13+
14+
## Screenshots
15+
16+
![Chat logo](static/image/chat.png)
17+
18+
![Public chat page](static/image/1.png)
19+
20+
![Notification example](static/image/2.png)
21+
22+
![Admin dashboard](static/image/3.png)
23+
24+
![Embed minimized](static/image/4.png)
25+
26+
![Payment request](static/image/5.png)
27+
28+
![Embed expanded](static/image/6.png)

description.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
## <extension_id>>
2-
3-
### <<short_description>>
4-
5-
<<description>>
1+
Live support chat for LNbits with public links and an embeddable widget.
2+
Paid guest messages, tips, and notifications keep support organized and responsive.

static/embed.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ window.PageChatEmbed = {
114114
)
115115
this.chatId = data.id
116116
this.chatData = data
117+
},
118+
119+
updateChatUrl() {
120+
if (this.$route?.params?.chat) return
117121
const query = window.location.search || ''
118122
const target = `/chat/embed/${this.categoriesId}/${this.chatId}${query}`
119-
if (this.$router) {
120-
this.$router.replace(target).catch(() => {})
121-
}
122123
window.history.replaceState({}, '', target)
123124
},
124125

@@ -146,6 +147,7 @@ window.PageChatEmbed = {
146147
null,
147148
payload
148149
)
150+
this.updateChatUrl()
149151
if (data.pending && data.payment_request) {
150152
this.pendingAmount = data.amount || 0
151153
this.paymentDialog = {

static/embed.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@
140140
</template>
141141

142142
<style>
143+
html,
144+
body {
145+
overflow: hidden;
146+
}
147+
143148
.q-header {
144149
display: none !important;
145150
}
@@ -154,6 +159,7 @@
154159
155160
.chat-embed {
156161
height: 100%;
162+
overflow: hidden;
157163
}
158164
159165
.chat-embed-launcher-wrap {

static/image/1.png

157 KB
Loading

static/image/2.png

18.1 KB
Loading

static/image/3.png

312 KB
Loading

static/image/4.png

12.6 KB
Loading

static/image/5.png

32 KB
Loading

static/image/6.png

92.6 KB
Loading

0 commit comments

Comments
 (0)