Fork of GlowingBear, with a different login page pre-filling informations.
Find a file
Lorenz Hübschle-Schneider aab111bb80 Fix that bug where only one line was loaded
Let me tell the story backwards:
For some reason, only one line would be fetched in `fetchMoreLines`, but
neither `numLines` nor `buffer.requestedLines` were `undefined`. The
paramater `numLines` must have had some strange value, though.
`connection.fetchMoreLines` is invoked through the main controllers
`$scope.fetchMoreLines`, which sets the parameter to `$scope.lines` if it was
undefined before. That value is computed in `$scope.calculateNumLines`,
which takes the height of the lines area and divides it by the height of the first
bufferline. This computation is retriggered on every `resize` event.
The first bufferline is the 'fetch more lines' link at the top of the window. If the
currently active buffer doesn't have more lines, it is hidden with `ngHide`,
causing its `clientHeight` property to be `0`, and the number of lines to be
fetched `$scope.lines = Infinity` (due to a division by zero).
In `connection.fetchMoreLines`, the following request is then made:
`"buffer:0x" + buffer.id + "/own_lines/last_line(-" + numLines + ")/data"`
to which WeeChat responds with one line. Voilà, there's your mess.
2014-05-03 15:07:12 +01:00
3rdparty Update favico.js to beyond bleeding edge 2014-02-02 12:55:28 +00:00
assets Use svg logo on landing page 2014-03-10 17:32:22 +00:00
css Add space to bottom of bufferlines 2014-04-30 09:01:42 +01:00
directives Revert the revertion of multiline and clean it up for new directive. 2014-04-26 18:16:46 +02:00
js Fix that bug where only one line was loaded 2014-05-03 15:07:12 +01:00
.travis.yml Travis: Reduce IRC notification spam 2014-04-26 16:00:37 +01:00
COPYING Add license information 2013-10-04 16:52:45 -04:00
index.html Improve CSS layout. Fix 98% bug that affects chrome/ff differently. 2014-04-29 21:31:49 -04:00
manifest.json Update URL to point to new Github Org 2014-04-24 17:08:58 +02:00
manifest.webapp Update URL to point to new Github Org 2014-04-24 17:08:58 +02:00
README.md Fix a few things in the README 2014-04-25 21:13:33 +02:00

A web client for WeeChat Build Status

Glowing Bear is a HTML5 web frontend for WeeChat that strives to be a modern and slick interface on top of WeeChat. It relies on WeeChat to do all the heavy lifting (connection, servers, history, etc) and then provides a few features on top of that, like content embedding (images, video) and desktop notification.

Glowing Bear uses WeeChat directly as the backend through its relay plugin, which allows us to directly connect to WeeChat from the browser using Websockets. That means that the client does not need a special "backend service", everything is provided by the IRC client itself and this frontend is written in pure HTML/CSS/JavaScript.

You can run Glowing Bear in multiple ways: use it like any other webpage, as a Firefox or Chrome app, a full-screen Chrome app on Android ("Add to homescreen"), and we also provide an Android app that you can install from the Google Play Store.

Getting started

Required WeeChat version: 0.4.2

To use the web interface you first need to set a relay and a password:

/relay add weechat 9001
/set relay.network.password YOURPASSWORD

Then go to the GitHub hosted version of Glowing Bear!

Screenshots

Running as Chrome application in a separate window on Windows:

Glowing bear screenshot

Running as Firefox application on Android:

Glowing bear android screenshot

Hosting Glowing Bear yourself

If you want to host the HTML application yourself, it is enough to clone it and serve the pages with a webserver. Here's a simple example using the python simple web server:

git clone https://github.com/glowing-bear/glowing-bear
cd glowing-bear
python -m SimpleHTTPServer

Now you can point your browser to http://localhost:8000!


Interested in contributing or simply want to talk about the project? Join us at #glowing-bear on freenode!