jsxc: Fix missing dependencies

Fixes: #2547.

- Earlier, FreedomBox itself depended on Bootstrap 4 as needed by the room we
built for JSXC. Since FreedomBox moved to Bootstrap 5 this library is no longer
available for JSXC. libjs-jsxc itself depends on libjs-bootstrap which is of
version 3.

- Also fix the path for jquery-slimscroll. This is was likely updated for Trixie
cycle.

Tests:

- Connect to JSXC with two different browsers. Add contacts. Initiate chat and
send messages.

- Re-run app setup and it succeeds.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2025-11-15 20:16:23 -08:00 committed by James Valleroy
parent a10ba40001
commit a66c011f0b
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,11 @@ class JSXCApp(app_module.App):
clients=info.clients, tags=info.tags)
self.add(shortcut)
packages = Packages('packages-jsxc', ['libjs-jsxc'])
packages = Packages('packages-jsxc', [
'libjs-jsxc', 'libjs-bootstrap4', 'libjs-jquery',
'libjs-jquery-ui', 'node-jquery-slimscroll',
'libjs-jquery-fullscreen'
])
self.add(packages)
firewall = Firewall('firewall-jsxc', info.name,

View File

@ -48,7 +48,7 @@
<script src="/javascript/jquery/jquery.min.js"></script>
<script src="/javascript/jquery-ui/jquery-ui.min.js"></script>
<script src="/javascript/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="/javascript/jquery-slimscroll/jquery-slimscroll.min.js"></script>
<script src="/javascript/jquery-fullscreen/jquery.fullscreen.js"></script>
<script src="/javascript/bootstrap4/js/bootstrap.bundle.min.js"></script>
<script src="/javascript/jsxc/lib/jsxc.dep.js"></script>