Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chatterbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
element-hq
Chatterbox
Commits
94ca178b
Commit
94ca178b
authored
2 years ago
by
RMidhunSuresh
Browse files
Options
Downloads
Patches
Plain Diff
Add fields for footer in config
parent
874a8b56
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/config.json
+4
-0
4 additions, 0 deletions
public/config.json
src/types/IChatterboxConfig.ts
+9
-0
9 additions, 0 deletions
src/types/IChatterboxConfig.ts
with
13 additions
and
0 deletions
public/config.json
+
4
−
0
View file @
94ca178b
...
...
@@ -6,6 +6,10 @@
"title"
:
"Chatterbox Test Room"
,
"avatar"
:
"https://i.imgur.com/KkSYCKB.png"
},
"footer"
:
{
"chatterbox_link"
:
"https://element.io/solutions/embedded-live-chat-for-customer-service"
,
"matrix_link"
:
"https://matrix.org"
},
"token"
:
"k9SL1R~GcdbjiFjC"
,
"invite_user"
:
"@botuser:matrix.midhun.dev"
,
"encrypt_room"
:
true
,
...
...
This diff is collapsed.
Click to expand it.
src/types/IChatterboxConfig.ts
+
9
−
0
View file @
94ca178b
...
...
@@ -11,6 +11,8 @@ export interface IChatterboxConfig {
encrypt_room
:
boolean
;
// Configurations for header on chatterbox (containing title, avatar, minimize button)
header
:
IHeader
;
// Configurations for footer on chatterbox (containing what links to use)
footer
:
IFooter
;
// Token needed for token-authenticated registration
token
:
string
;
// URL of the image that should be used as the users avatar
...
...
@@ -23,3 +25,10 @@ interface IHeader {
// An optional link to static avatar. If this is not given, the room avatar is used instead
avatar
?:
string
;
}
interface
IFooter
{
// Specifies the link which must be opened when chatterbox logo in the footer is clicked.
chatterbox_link
:
string
;
// Specifies the link which must be opened when matrix branding in the footer is clicked.
matrix_link
:
string
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment