aboutsummaryrefslogtreecommitdiff
path: root/lib/client.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-04Update channel join status when kickedSimon Ser1-1/+4
2021-12-03components/buffer-header: fix missing "join" button for parted channelSimon Ser1-4/+4
2021-12-01Disable debug logs in productionSimon Ser3-2/+23
console.debug logs cause some performance issues because the browser is forced to save the logged objects just in case the user opens the debugging tools. They can be force-enabled back by adding ?debug=1 to the URL. Only console.debug is disabled, console.log and other levels are a lot less verbose and still enabled by default.
2021-12-01Add usage message to development serverSimon Ser2-3/+22
2021-12-01Add custom developement serverSimon Ser4-336/+217
This implements a tiny WebSocket proxy useful for development purposes.
2021-11-30Mark auth dialog as loadingSimon Ser1-15/+23
2021-11-30Mark register/verify dialogs as loadingSimon Ser2-5/+36
2021-11-30Show "Manage network" even if upstream is disconnectedSimon Ser1-0/+2
Fixes: 86853eb2e552 ("components/buffer-header: hide action buttons when disconnected")
2021-11-30Add link to verify account next to VERIFICATION_REQUIRED messageSimon Ser2-3/+20
2021-11-30Add support for draft/account-registrationSimon Ser6-13/+278
A new UI to register and verify accounts is added.
2021-11-29Improve noscript UI appearanceDrew DeVault2-1/+8
2021-11-29Linkify error messagesSimon Ser2-2/+3
Sometimes servers will put links and channels in their error messages. Make it easy for users to click them.
2021-11-29Clear channel joined field when disconnectedSimon Ser1-1/+16
2021-11-29components/buffer-header: hide action buttons when disconnectedSimon Ser1-27/+45
2021-11-28components/member-list: re-render on State.users updateSimon Ser1-2/+4
2021-11-28Dim away users in member listSimon Ser2-1/+10
References: https://todo.sr.ht/~emersion/gamja/13
2021-11-27Add embedded Content-Security-PolicySimon Ser1-0/+1
Add a baseline CSP applicable to all gamja deployments. Resources can only be loaded from the current host, frames and objects are disallowed, and scripts are allowed to connect to any host (to allow cross-site WebSocket connections). If the server returns a different CSP via an HTTP header, the effective CSP will be the intersection.
2021-11-27readme: add nginx file server directiveSimon Ser1-0/+4
2021-11-27components/connect-form: replace auto-join text field with checkboxSimon Ser1-28/+21
The intent of the auto-join field is to ask the user whether they really want to join the pre-filled channel. Users rarely want to customize this field, they can just manually click "Join" after connecting if they want to join another channel.
2021-11-23Ignore RPL_AWAYSimon Ser2-0/+2
2021-11-21Add post-connect UI to login via SASLSimon Ser4-3/+120
If the server supports SASL and if we aren't logged in with any account, add a UI to authenticate via SASL. This allows users to login anonymously then login via SASL. This will also ease the draft/account-registration implementation.
2021-11-21lib/client: make authenticate() return a promiseSimon Ser1-19/+32
This lets the caller handle the success/failure.
2021-11-21lib/client: send BOUNCER BIND and CAP END immediatelySimon Ser1-27/+24
Don't wait for auth to finish. This reduces the number of roundtrips.
2021-11-21lib/client: catch handleMessage errorsSimon Ser1-1/+9
2021-11-21lib/client: always request sasl cap when availableSimon Ser1-10/+9
This will allow us to issue post-registration SASL commands.
2021-11-21lib/client: don't disconnect on SASL error if registeredSimon Ser1-1/+3
This will let users try multiple auth attempts when we'll implement post-registration auth.
2021-11-21lib/client: remove one roundtrip during SASL authSimon Ser1-26/+29
Instead of waiting for the server's empty challenge, send two AUTHENTICATE commands in a row.
2021-11-21state: add account to serverSimon Ser1-0/+5
2021-11-19lib/client: don't error out if SASL isn't available on RPL_WELCOMESimon Ser1-1/+3
Some servers (soju) might remove the sasl cap on connection registration.
2021-11-18commands: Add LIST commandCara Salter1-0/+8
Signed-off-by: Cara Salter <cara@devcara.com>
2021-11-17Avoid inline script in index.htmlSimon Ser2-6/+5
This helps Parcel generate a proper standalone JS bundle.
2021-11-17ci: fix deploy branch check again, exclude config.jsonSimon Ser1-2/+3
2021-11-17ci: fix deploy branch checkSimon Ser1-1/+1
2021-11-17ci: add deploy taskSimon Ser1-0/+8