Giter Club home page Giter Club logo

xabber-web's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xabber-web's Issues

Suppport for XEP-0070: Verifying HTTP Requests via XMPP

XEP-0070 allows a client to verify HTTP Requests via XMPP. It can be used in 2 factor authentication or as a replacement of passwords.

See:
https://xmpp.org/extensions/xep-0070.html
https://blog.agayon.be/xmpp_auth_django.html

There are some implementations on the server side:

If the XEP-0070 is not supported, there is a fall back method (just plain text) so the client doesn't necessarily has to have support for this. Unfortunately, this method is usable with xabber-web.

In order to test several clients support, I made a small website:

https://demo.agayon.be/

I aim to make a website for non-tech people based on this feature.

Unfortunately, it is not really usable with xabber-web at the moment.

  • The message of the component are not received even with the fallback method.
  • It is not possible to add the component to roster (I don't know if it would respect the protocol)

As a result, people not familiarized with XMPP cannot use the functionality with xabber-web.

XEPs and RFCs support page with version

Can't find message recipient while forwarding

Can't forward a message to a new contact from roster, not from recent chats.

Please add a search for the recipient of forwarded messages in the roster. Now the search is only in the recent chats

Modifies the url of messages containing an address with the %40 string.

I sent this address from the movim client to a friend using the xabber web client:
https://mov.im/?blog/yannv%40conversations.im/be029218-ba98-43d6-a3fc-dd58cd295480

When he received it and wanted to open the link, he had been transformed into :
https://mov.im/?blog/yannv%2540conversations.im/be029218-ba98-43d6-a3fc-dd58cd295480 (not in appearance, but the link opens the browser at this address)

which prevented him from accessing the content.
The client apparently added "25" between "%" and "40".

xabber account removal

Is there a way to run this without the Xabber account connection? I'm curious why the URL wasn't just hard-coded into the script, this seems to suggest that there is a deploy-able backend? Is this the case?

XEP-0443: XMPP Compliance Suites 2021

Please add support of XEP-0443: XMPP Compliance Suites 2021: https://xmpp.org/extensions/xep-0443.html

Which replaces:

How to search in contacts?

I know these is an option to search when you click the left hand side contacts icon, but the one which we see on the main screen is something that also needs search bar
xabber web

Are configuration options working?

Hello.
I've installed xabber web to my own web server to work in conjuction with my own ejabberd server.
Version - latest git master.

There is a wiki https://github.com/redsolution/xabber-web/wiki that mentions some config options, namely:

USE_SOCIAL_AUTH - true/false, if set to true, Social Authorisation to Xabber Account is available. Default value is true.

DEFAULT_LOGIN_SCREEN - 'xabber' or 'xmpp', which auth type would be displayed first on welcome screen. Default value is 'xabber'.

Are they working?

If I set USE_SOCIAL_AUTH = false, the social auth icons still appear on the login page.
DEFAULT_LOGIN_SCREEN = 'xmpp' does nothing too. What is it meant to do?

I don't need xabber accounts. I want to use xabber web only as web ui to my own xmpp server.

Need to help to resolve make run command

hello, can any one help me how can i resolve issue when run make.

getting following logs:

username:~/xabber-websocket$ make run
Getting Xabber Web client .... done.
Copying Xabber Web files to 'priv' directory  ........ done.
make[1]: Entering directory '/home/inextrix/xabber-websocket/deps/cowlib'
 DEPEND cowlib.d
 ERLC   cow_cookie.erl cow_date.erl cow_hpack.erl cow_http.erl cow_http2.erl cow_http_hd.erl cow_http_te.erl cow_mimetypes.erl cow_multipart.erl cow_qs.erl cow_spdy.erl cow_uri.erl cow_ws.erl
 APP    cowlib
make[1]: Leaving directory '/home/inextrix/xabber-websocket/deps/cowlib'
make[1]: Entering directory '/home/inextrix/xabber-websocket/deps/cowboy'
 DEP    ranch
make[2]: Entering directory '/home/inextrix/xabber-websocket/deps/ranch'
 DEPEND ranch.d
 ERLC   ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_listener_sup.erl ranch_protocol.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl
 APP    ranch
make[2]: Leaving directory '/home/inextrix/xabber-websocket/deps/ranch'
 DEPEND cowboy.d
 ERLC   cowboy.erl cowboy_app.erl cowboy_bstr.erl cowboy_children.erl cowboy_clear.erl cowboy_clock.erl cowboy_compress_h.erl cowboy_constraints.erl cowboy_handler.erl cowboy_http.erl cowboy_http2.erl cowboy_iolists.erl cowboy_loop.erl cowboy_metrics_h.erl cowboy_middleware.erl cowboy_req.erl cowboy_rest.erl cowboy_router.erl cowboy_static.erl cowboy_stream.erl cowboy_stream_h.erl cowboy_sub_protocol.erl cowboy_sup.erl cowboy_tls.erl cowboy_tracer_h.erl cowboy_websocket.erl
src/cowboy_metrics_h.erl:26: syntax error before: ':='
src/cowboy_metrics_h.erl:37: syntax error before: ':='
src/cowboy_metrics_h.erl:48: syntax error before: ':='
src/cowboy_metrics_h.erl:112: type metrics() undefined
src/cowboy_metrics_h.erl:124: type proc_metrics() undefined
src/cowboy_metrics_h.erl:125: type informational_metrics() undefined
../../erlang.mk:5053: recipe for target 'ebin/cowboy.app' failed
make[2]: *** [ebin/cowboy.app] Error 1
../../erlang.mk:4857: recipe for target 'app' failed
make[1]: *** [app] Error 2
make[1]: Leaving directory '/home/inextrix/xabber-websocket/deps/cowboy'
erlang.mk:4180: recipe for target 'deps' failed
make: *** [deps] Error 2

Update Xabber Web

hello,

I have a strange error lately using xabber-web.
When I log in, it asks me, if I should update to ne version, but that never succeeds.

Update Xabber Web
New version 2.1.0 (1) is available.
Reload page to fetch this changes?

I tried clearing all my history, started login from scratch, but this still pops up.

Any ideas?

I'm using xabber on android and through web.

Best,
Matej

Preview of images/docs in chat

In Xabber for web, when I send a file it shows up a link like this:
uknowva messenger 10

Can we show the preview of it? like it happens in the mobile app?

invalid jid for new contact

Hello,
I am trying to add a new contact (from xabber-web) but "invalid jid" error appears, although I can add the same contact from xabber-android.

My xmpp server is "ejabberd" installed on windows 7.

Please, help me to solve the problem.

Not working on Microsoft Edge and Internet Explorer

Hello, Xabber Web is not working on Edge and Internet Explorer web browsers. My implementation is
`<script>

    require(['xabber'], function (xabber) {
        xabber.configure({
            // Please specify location of xabber-websocket service,
            // e.g. 'wss://web.xabber.com/websocket
            // To run your own server visit https://github.com/redsolution/xabber-websocket
            CONNECTION_URL: '/http-bind/',
            LOG_LEVEL: 'DEBUG',
			DEBUG: true,
			DEFAULT_LOGIN_SCREEN:'xmpp'
        });
        xabber.start();
    });
</script>`

I am getting only blank page without login screen. Please help if anyone has faced this issue and could solve it. Thanks

Chat Markers issue

Hello. I'm here again with ejabberd and Conversations.

I've found an issue with Chat Markers in 2.1.0.

  • Messages are never marked as "Read".

  • Messages sometimes are not marked as "Delivered".
    Namely, messages sent from Conversations to Conversations and carbon-copied to Xabber Web are marked as "Delivered". Messages sent from Xabber Web to Conversations stays in "Sent" status despite being actually delivered.

The point is that it worked fine in 2.0.2. Messages were getting marked as "Delivered" when they were delivered and thay also were getting marked as "Read" when they were actually read by user.

Did you break this feature or switched to a proprietary protocol?

Which configurations require for Group chat working?

Hello , can any one help me to do xabber-web configuration with ejabberd ?
I have done following configuration in index.html file

require(['xabber'], function (xabber) {
            xabber.configure({
                CONNECTION_URL: 'wss://domain/ws/',
                LOG_LEVEL: 'INFO',
                DEBUG: true,
                XABBER_ACCOUNT_URL:'', **// what will be here?(Using ejabberd as backend)**
                API_SERVICE_URL: '', **//what will be here ?(Using ejabberd as backend)**
                STORAGE_NAME_ENDING: 'mydev1'
            });
            xabber.start();
        });

Archived chats and messages do not load

When opengin Xabber in Windows environment archived messages do not load:

  • Left list of chats stay empty
  • When clicking on an account in the right list I get "Error while loading archived messages".
    In debug console:
MAM error error @ xabber.js?v2.1.0:43753
<iq xmlns="jabber:client" id="494f4372-d77a-42a5-8b79-90cad8c3c6aa:sendIQ" to="[email protected]/xabber-web-bf386528" type="error">
	<error type="cancel">
		<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
	</error>
</iq>

I can start a "new" chat with some contact and messages are correctly seen in the existing chat of the recipient if using Ubuntu.

Additional information:

  • Problem occurs in Edge/Firefox/Opera on Windows 10 laptop. Firewall and privacy/ads blockers disabled
  • Works correctly (and perfectly, wonderful work!) in Epiphany/Ubuntu laptop connected to same Wifi network as Windows laptop.

Edit: Fixed, this was not related to the platform (Win vs Ubuntu) but to the XMPP server, actually jabber.fr. One more time France demonstrates its incredible capabilities to do things differently as the rest of the world (I'm French)

Add translation of one line wiki

https://github.com/redsolution/xabber-web/wiki#1-install-and-setup-xabber-websocket-server

You need GNU make and git in your PATH. Также в системе должен быть предустановлен erlang (для Ubuntu - erlang или esl-erlang).

You need GNU make and git in your PATH. Also you should install erlang package (or esl-erlang), maybe different for your system.

I would like to suppose my own translation but I could not find way to do it. Thanks

Docker file

Hello,

I would like to run xabber-web as web client.
I have already a openfire xmpp server, but I could not find the correct instructions to run xabber on my VPS.
Kindly I would check out a docker-compose file, if you provide.

Thanks

Reloading history in a chat window

Sometimes when I am chatting from a different mobile client and web client simultaneously, some chats are missed in both the clients, can we have a button called Reload History in the chat options that simply will reload the last few chats
xabber web 1

Incoming and outgoing messages splitted into two discussions

Please, have a look at this screenshot:

I have the only contact for [email protected]. And seems like server stores the contact in lower:

select distinct(peer, bare_peer) from archive where username = 'oxpa' and peer ilike 'V.exeR%'; 
row 
--------------------------------------------- 
(v.exer@jabber.ru,v.exer@jabber.ru)
(v.exer@jabber.ru/Miranda,v.exer@jabber.ru) 
(2 rows) 

Still, I have all outgoing messages in the first entry (V.exeR) and all incoming messages in the second one ([email protected]).
Feel free to ask additional questions as for now I can't say what causes this bug

How to make voice call or video call?

I have 3 machines, one installed openfire-4.5.1, and created several accounts, and also compiled xabber-websocket on it, after that modified the file "_rel/xabber_ws/lib/xabber_ws-0.3.1/priv/client/index.html", change CONNECTION_URL: to (location.protocol == 'https:'? 'wss: 192.168.18.7:7443/ws': 'ws:192.168.18.7:7070/ws'), then execute : _rel/xabber_ws/bin/xabber_ws start, it's very good. then open the chrome browser on both other pc, enter http://192.168.18.7:8080/client, log in with different xmpp accounts, send some Text messages to each other, can also transfer files, it's great, but voice calls or video calls do not work, and there is no response at the other end.

what should I do?

Translate to Spanish

I want translate Xabber Web to Spanish, but I don’t know how... Can you provide me a guide? Please...

Повысить автономность Веб-клиента

Здравствуйте.
Имеется свой Jabber-сервер и установленный рядом Xabber-web.
При заблокированных DNS клиент не работает, поскольку не может загрузить скрипты из сети Интернет.
Снимок экрана от 2020-12-24 13-29-53

Для повышения автономности клиента, просьба отвязать от веб-скриптов, положив их локальную папку и обращаться к ним.

  1. По умолчанию клиент пытается подключиться к xabber.com. Я немного подправил код, что бы можно было обращаться к собственному серверу

<html lang="en">
<head>
    <title>Xabber Web</title>
    <meta charset="utf-8">
    <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
    <link rel="manifest" href="manifest.json">
    <script src="https://www.gstatic.com/firebasejs/4.3.1/firebase.js"></script>
    <script src="https://www.gstatic.com/firebasejs/4.3.1/firebase-app.js"></script>
    <script src="https://www.gstatic.com/firebasejs/4.3.1/firebase-messaging.js"></script>
    <link rel="stylesheet" href="dist/xabber.min.css?v2.1.0">
    <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
    <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
    <script src="dist/xabber.min.js?v2.1.0"></script>
    <script src="custom.js"></script>
    <script>
        var result = getGet();
        var ip= result['ip'];

        if (ip!= 'undefined')
        {
        document.cookie = "ip="+ip;
        }
        require(['xabber'], function (xabber) {
            xabber.configure({
                // Please specify location of xabber-websocket service,
                // e.g. 'wss://web.xabber.com/websocket
                // To run your own server visit https://github.com/redsolution/xabber-websocket
                CONNECTION_URL: 'ws://'+GetCookie('ip')+':15281/xmpp',
                LOG_LEVEL: 'WARN'
            });
            xabber.start();
        });
    </script>
</head>

<body>
<div class="login-container"></div>
</body>
</html>

После этого, можно подключиться к серверу через URL-запрос: http://192.168.18.15/xabber/?ip=192.168.18.15
Просьба сделать в клиенте возможность указывать любой сервер без костылей.

  1. При загрузке файла клиент пытается подключится к домену, который указывается в логине учетки (допустим [email protected]), однако если машина не имеет домена, а домен у учетки просто формальность, то обмен файлами и голосовыми сообщениями не работают, поскольку он пытается подключится по несуществующему домену domen.local, а не по подключаемому IP. Просьба в клиенте сделать возможность указывать реальный адрес сервера, что бы можно было полноценно использовать клиент.

  2. Неплохо бы сделать поддержку клиента и на русском языке.

addContact: rege failing on JID

When clicking on the "ADD" button, when adding a contact, the "Invalid JID" message shows up, even if the JID is in proper format (e.g. [email protected]). It appears to be an issue with the regex. I believe I have fixed this, and have a PR ready.

Missing libsignal-protocol.js

The index.html is missing the libsignal-protocol.js library, and attempts to open the Xabber Web client in Safari or Firefox results in grey screen and an error in the web console saying Error: Signal library required!.

By downloading the missing .js file from https://raw.githubusercontent.com/signalapp/libsignal-protocol-javascript/master/dist/libsignal-protocol.js to xabber_ws/lib/xabber_ws-0.3.1/priv/client/dist and updating the index.html file with <script src="dist/libsignal-protocol.js"></script> the Xabber Web successfully starts.

XEP-0045: MUC features

hello,i think xabber-web is really great and has rich features,but it will be much greater if there's multi user chat or groupchat,because you know,it's the one of the most crucial features for chatapps,so,any future plan for it ?

Needs electron desktop webapp

Xabber for web can't be beaten as the traditional desktop clients for various platforms are dying out. I'd like to have xabber-web on my desktop without the need to run my main browser if possible. I have set up my xmpp server lately after years of not using the protocol and I am having issues finding updated and reliable clients for Linux. A webapp of xabber would make a huge difference I think and would probably become the goto for those of us still using XMPP.

Please consider at least looking into the matter. I will be happy to throw some cash at the project on and off as the months go by when I can afford it. Take care, thanks for the fantastic work from everyone!

Support for MUC

Where is MUC support ? I can't see any group in my chat ?
We want XEP-0045

How to search within chats

Current Search bar just searches on basis of names of users, can we also extend this functionality to search within chats as well?
xabber web 2

How to create a chat group ?

Hello, I would like to create a private chat group in Xabber (both Web and Mobile) to talk to several friends at once, but I can't find how to do so. Is that possible in the current state of xabber-web ? How should I do ?

I would like to use Xabber to completely replace another well-known proprietary solution, and chat group creation seems to be the only thing missing.

Thank you very much for your help !

Setting the developer environment. Authorization does not work - authentication error.

Loved your jabber-web.
I wanted to make a few changes to the design of the web page, it did not work out.

Operating system: Ubuntu-server 18.04

$ sudo apt install nodejs
$ node -v
v8.10.0

$ sudo apt install npm

$ git clone https://github.com/redsolution/xabber-web
$ cd xabber-web

Changed the CONNECTION_URL line: '', in the example_dev.html and example_index.html files:
on CONNECTION_URL: 'wss: //ws.xabber.com/websocket',

Established dependencies
$ make deps-install

Launched web development server:
$ make httpserver

Login successful
http://localhost:8000/example_**index**.html
Authorization is an error at:
http://localhost:8000/example_**dev**.html

If you run make minify and try to log in again at http://localhost:8000/example_index.html - Authorization Error.
In the browser console, the error is Invalid token.

I tried releases 1.0.15, 1.0.14, 1.0.13, 1.0.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.