2013-02-16 19:18:14 +01:00
<!DOCTYPE html>
2013-10-07 00:12:44 +02:00
< html ng-app = "weechat" ng-cloak >
2013-02-16 18:49:20 +01:00
< head >
2013-10-09 17:53:25 +02:00
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=Edge" >
2013-12-14 23:35:10 +01:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
2014-01-25 14:55:08 +01:00
< meta name = "apple-mobile-web-app-capable" content = "yes" >
< meta name = "mobile-web-app-capable" content = "yes" >
2014-08-02 07:35:17 +02:00
< meta name = "apple-mobile-web-app-status-bar-style" content = "black" >
2015-03-30 11:02:22 +02:00
< meta name = "apple-mobile-web-app-title" content = "Glowing Bear" >
2015-12-20 14:51:40 +01:00
< meta name = "theme-color" content = "#181818" >
2015-11-19 19:46:52 +01:00
< meta http-equiv = "x-dns-prefetch-control" content = "off" >
2015-12-20 14:51:40 +01:00
<!-- https://w3c.github.io/manifest/ && https://developer.mozilla.org/en - US/docs/Web/Manifest -->
< link rel = "manifest" href = "webapp.manifest.json" >
2014-05-19 14:37:48 +02:00
< title ng-bind-template = "{{ notificationStatus }}Glowing Bear {{ pageTitle}}" > < / title >
2016-05-20 23:05:35 +02:00
< link href = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css" rel = "stylesheet" media = "screen" integrity = "sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin = "anonymous" >
2014-03-04 04:13:41 +01:00
< link rel = "shortcut icon" sizes = "128x128" href = "assets/img/glowing_bear_128x128.png" >
< link rel = "apple-touch-icon" sizes = "128x128" href = "assets/img/glowing_bear_128x128.png" >
< link rel = "shortcut icon" type = "image/png" href = "assets/img/favicon.png" >
2013-10-02 01:39:24 +02:00
< link href = "css/glowingbear.css" rel = "stylesheet" media = "screen" >
2015-03-21 12:45:32 +01:00
< link href = "css/themes/dark.css" rel = "stylesheet" media = "screen" id = "themeCSS" / >
2016-12-03 12:34:29 +01:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.9/angular.min.js" integrity = "sha256-xSfk1YU5PcIcFI45sbeoAZfcAPxmulrxHleQaCJQ3Jc=" crossorigin = "anonymous" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.9/angular-route.min.js" integrity = "sha256-r7kJt3yPvOIbWHcVk1q5XANFwn/IpsJVtv9yQHUQaYg=" crossorigin = "anonymous" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.9/angular-sanitize.min.js" integrity = "sha256-iHjJmALCPE3KE15AnjrtDRKbrHiC3NXY6dty1k3oeCc=" crossorigin = "anonymous" > < / script >
< script src = "https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.9/angular-touch.min.js" integrity = "sha256-mnuCdcRoZpXcbcfI76pvh1hZqYRDZyUF/jADhrkmE8U=" crossorigin = "anonymous" > < / script >
2016-10-13 11:25:26 +02:00
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js" integrity = "sha256-obZACiHd7gkOk9iIL/pimWMTJ4W/pBsKu+oZnSeBIek=" crossorigin = "anonymous" > < / script >
< script type = "text/javascript" src = "https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.6/lib/js/emojione.min.js" integrity = "sha256-r1QTE6OqyCP/xqQCml3O8jLnSm0/6DoIM473m+VnLPM=" crossorigin = "anonymous" > < / script >
2013-12-20 14:09:08 +01:00
< script type = "text/javascript" src = "3rdparty/inflate.min.js" > < / script >
2013-10-05 16:05:16 +02:00
< script type = "text/javascript" src = "js/localstorage.js" > < / script >
2013-10-16 23:10:49 +02:00
< script type = "text/javascript" src = "js/weechat.js" > < / script >
2013-10-27 00:44:48 +02:00
< script type = "text/javascript" src = "js/irc-utils.js" > < / script >
2014-02-07 02:32:25 +01:00
< script type = "text/javascript" src = "js/glowingbear.js" > < / script >
2014-12-22 22:17:01 +01:00
< script type = "text/javascript" src = "js/settings.js" > < / script >
2014-08-28 18:25:40 +02:00
< script type = "text/javascript" src = "js/utils.js" > < / script >
< script type = "text/javascript" src = "js/notifications.js" > < / script >
< script type = "text/javascript" src = "js/filters.js" > < / script >
< script type = "text/javascript" src = "js/handlers.js" > < / script >
< script type = "text/javascript" src = "js/connection.js" > < / script >
2015-10-09 13:50:55 +02:00
< script type = "text/javascript" src = "js/file-change.js" > < / script >
2015-10-09 20:11:30 +02:00
< script type = "text/javascript" src = "js/imgur-drop-directive.js" > < / script >
2015-12-19 15:44:34 +01:00
< script type = "text/javascript" src = "js/whenscrolled-directive.js" > < / script >
2014-08-28 18:25:40 +02:00
< script type = "text/javascript" src = "js/inputbar.js" > < / script >
< script type = "text/javascript" src = "js/plugin-directive.js" > < / script >
2014-02-08 16:46:58 +01:00
< script type = "text/javascript" src = "js/websockets.js" > < / script >
2016-09-06 18:11:05 +02:00
< script type = "text/javascript" src = "js/bufferResume.js" > < / script >
2013-10-08 02:42:19 +02:00
< script type = "text/javascript" src = "js/models.js" > < / script >
2013-10-08 23:06:47 +02:00
< script type = "text/javascript" src = "js/plugins.js" > < / script >
2015-10-09 13:59:34 +02:00
< script type = "text/javascript" src = "js/imgur.js" > < / script >
2016-10-13 11:29:16 +02:00
< script type = "text/javascript" src = "3rdparty/favico-0.3.10.min.js" > < / script >
2013-02-16 18:49:20 +01:00
< / head >
2015-05-12 04:27:27 +02:00
< body ng-controller = "WeechatCtrl" ng-keydown = "handleKeyPress($event)" ng-keyup = "handleKeyRelease($event)" ng-keypress = "handleKeyPress($event)" ng-class = "{'no-overflow': connected}" ng-init = "init()" lang = "en-US" >
2015-10-09 19:32:26 +02:00
< div class = "alert alert-danger upload-error" ng-show = "uploadError" >
< p > < strong > Upload error:< / strong > Image upload failed.< / p >
< / div >
2014-04-25 05:20:56 +02:00
< div ng-hide = "connected" class = "container" >
2013-10-09 17:53:25 +02:00
< h2 >
2014-03-09 12:22:52 +01:00
< img alt = "logo" src = "assets/img/glowing-bear.svg" >
2014-05-19 14:37:48 +02:00
< span > Glowing Bear< / span >
2014-03-09 11:32:35 +01:00
< small > WeeChat web frontend< / small >
2013-10-09 17:53:25 +02:00
< / h2 >
2016-11-11 13:09:55 +01:00
< div class = "alert alert-warning" ng-show = "show_tls_warning" > < strong > You're using Glowing Bear over an unencrypted connection (http://). This is not recommended!< / strong > We recommend using our secure hosted version at < a href = "https://www.glowing-bear.org/" > https://www.glowing-bear.org/< / a > , or < a href = "https://latest.glowing-bear.org/" > https://latest.glowing-bear.org< / a > for the latest development version. If your relay is on your local network, that is unfortunately impossible, but be aware of the implications.< / div >
2014-05-09 18:49:07 +02:00
< div class = "alert alert-danger" ng-show = "errorMessage" >
< strong > Connection error< / strong > The client was unable to connect to the WeeChat relay
< / div >
< div class = "alert alert-danger" ng-show = "sslError" >
< strong > Secure connection error< / strong > A secure connection with the WeeChat relay could not be initiated. This is most likely because your browser does not trust your relay's certificate. Please read the encryption instructions below!
< / div >
< div class = "alert alert-danger" ng-show = "securityError" >
2016-03-10 18:35:57 +01:00
< strong > Secure connection error< / strong > Unable to connect to unencrypted relay when you are connecting to Glowing Bear over HTTPS. Please use an encrypted relay or load the page without using HTTPS.
2014-05-09 18:49:07 +02:00
< / div >
2014-07-05 15:37:43 +02:00
< div class = "panel-group accordion" >
< div class = "panel" data-state = "active" >
2014-05-09 18:49:07 +02:00
< div class = "panel-heading" >
< h4 class = "panel-title" >
2014-07-05 15:37:43 +02:00
< a class = "accordion-toggle" ng-click = "toggleAccordion($event)" >
2014-05-09 18:49:07 +02:00
Connection settings
< / a >
< / h4 >
< / div >
2016-05-20 23:05:35 +02:00
< div id = "collapseOne" class = "panel-collapse collapse" >
2014-05-09 18:49:07 +02:00
< div class = "panel-body" >
2014-07-05 15:37:43 +02:00
< form class = "form-signin" role = "form" >
2014-05-09 18:49:07 +02:00
< div class = "form-group" >
< label class = "control-label" for = "host" > WeeChat relay hostname and port number< / label >
< div class = "input-group" >
2014-07-31 18:16:44 +02:00
< div class = "row no-gutter" >
< div class = "col-sm-9" >
2014-12-22 22:17:01 +01:00
< input type = "text" class = "form-control favorite-font" id = "host" ng-model = "settings.host" placeholder = "Address" autocapitalize = "off" >
2014-07-31 18:16:44 +02:00
< / div >
< div class = "col-sm-3" >
2014-12-22 22:17:01 +01:00
< input type = "text" class = "form-control favorite-font" id = "port" ng-model = "settings.port" placeholder = "Port" >
2014-07-31 18:16:44 +02:00
< / div >
< / div >
2014-05-09 18:49:07 +02:00
< / div >
< label class = "control-label" for = "password" > WeeChat relay password< / label >
2014-07-25 03:36:16 +02:00
< input type = "password" class = "form-control favorite-font" id = "password" ng-model = "password" placeholder = "Password" >
2014-05-09 18:49:07 +02:00
< div class = "alert alert-danger" ng-show = "passwordError" >
Error: wrong password
< / div >
2014-02-14 15:14:55 +01:00
2014-05-09 18:49:07 +02:00
< div class = "checkbox" >
< label class = "control-label" for = "savepassword" >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" id = "savepassword" ng-model = "settings.savepassword" >
2014-05-09 18:49:07 +02:00
Save password in your browser
< / label >
2013-10-15 16:09:08 +02:00
< / div >
2014-12-22 22:17:01 +01:00
< div class = "checkbox" ng-show = "settings.savepassword" >
2014-07-20 14:32:53 +02:00
< label class = "control-label" for = "autoconnect" >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" id = "autoconnect" ng-model = "settings.autoconnect" >
2014-07-20 14:32:53 +02:00
Automatically connect
< / label >
< / div >
2014-05-09 18:49:07 +02:00
< div class = "checkbox" >
< label class = "control-label" for = "ssl" >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" id = "ssl" ng-model = "settings.ssl" >
2016-11-01 10:31:17 +01:00
Encryption. < strong > Strongly recommended!< / strong > Need help? Check below.
2014-05-09 18:49:07 +02:00
< / label >
< / div >
< / div >
2015-12-14 16:02:49 +01:00
< button class = "btn btn-lg btn-primary" ng-click = "connect()" > {{ connectbutton }} < i ng-class = "connectbuttonicon" class = "glyphicon" > < / i > < / button >
2014-05-09 18:49:07 +02:00
< / form >
2013-10-15 16:09:08 +02:00
< / div >
< / div >
2014-05-09 18:49:07 +02:00
< / div >
2014-07-05 15:37:43 +02:00
< div class = "panel" data-state = "collapsed" >
2014-05-09 18:49:07 +02:00
< div class = "panel-heading" >
< h4 class = "panel-title" >
2014-07-05 15:37:43 +02:00
< a class = "accordion-toggle" ng-click = "toggleAccordion($event)" >
2016-11-01 10:31:17 +01:00
Getting Started
2014-05-09 18:49:07 +02:00
< / a >
< / h4 >
< / div >
2016-05-20 23:05:35 +02:00
< div id = "collapseTwo" class = "panel-collapse collapse" >
2014-05-09 18:49:07 +02:00
< div class = "panel-body" >
2016-11-01 10:02:19 +01:00
< p > < span class = "label label-danger" > WeeChat version 0.4.2 or higher is required—we recommend at least 1.0.< / p >
2016-11-01 10:31:17 +01:00
< p > To start using Glowing Bear, follow the instructions below to set up an encrypted relay. All communication goes directly between your browser and your WeeChat relay! This means that your server must be accessible. We never see any of your data or your password, and you don't need to trust a "cloud". All settings, including your password, are saved locally in your own browser between sessions.< / p >
2016-11-11 13:09:55 +01:00
< div class = "alert alert-warning" ng-show = "show_tls_warning" > < strong > You're using Glowing Bear over an unencrypted connection (http://). This is not recommended!< / strong > We recommend using our secure hosted version at < a href = "https://www.glowing-bear.org/" > https://www.glowing-bear.org/< / a > , or < a href = "https://latest.glowing-bear.org/" > https://latest.glowing-bear.org< / a > for the latest and greatest development version. You can still follow the instructions below to set up an encrypted relay, though.< / div >
2016-11-01 10:31:17 +01:00
< p > When using encryption, all communication between your browser and WeeChat will be securely encrypted with TLS. This means that you have to set up a certificate. While it's possible to use a self-signed cert, we recommend against it, because it's handled poorly in browsers, and may not work at all on mobile devices. If you don't already have a certificate for your domain (or you don't have a domain), we strongly encourage you to get a certificate from < a href = "https://letsencrypt.org/" > Let's Encrypt< / a > —it's free and easy. We'll walk you through it.< / p >
< p > < strong > If you don't have a domain< / strong > you can get a free subdomain from providers such as < a href = "https://freedns.afraid.org/" > afraid< / a > . You'll want to set up an 'A' record to your server's IP address, and quite possibly an AAAA record to its IPv6 address. These might take a few hours to propagate, if the steps below don't work right away, try again in a few hours.< / p >
< p > < strong > Getting a certificate< / strong > is easy. You'll need certbot—just follow the encryptions at < a href = "https://certbot.eff.org/" > https://certbot.eff.org< / a > . If you're not serving webpages on the same server or are unsure, select "none of the above" (if you are, you can probably use that webserver to proxy your relay, and skip this—check out the < a href = "https://github.com/glowing-bear/glowing-bear/wiki/Proxying-WeeChat-relay-with-a-web-server" > instructions in our Wiki< / a > ). Next, get the certificate with < code > certbot certonly --standalone -d {{ settings.host || your.domain.com }}< / code > and follow the instructions.< / p >
< p > Nearly done! Now you just need to copy the files into place. To do that, use the following commands, replacing the < strong > username< / strong > placeholder with your actual username:< / p >
< pre > mkdir -p ~< strong > username< / strong > /.weechat/ssl
cat /etc/letsencrypt/live/{{ settings.host || your.domain.com }}/{fullchain,privkey}.pem > ~< strong > username< / strong > /.weechat/ssl/relay.pem
chown -R < strong > username< / strong > :< strong > username< / strong > ~< strong > username< / strong > /.weechat/ssl/< / pre >
< p > Once you've got the certificate and moved it in place, you can set up an encrypted relay on port {{ settings.port || 9001 }} with these WeeChat commands:< / p >
2013-10-26 08:36:06 +02:00
< pre >
2016-11-01 10:31:17 +01:00
/set relay.network.password y0ur_StRonG-pa$sw0rd:of*choice
/relay sslcertkey
/relay add ssl.weechat {{ settings.port || 9001 }}
2013-10-26 08:36:06 +02:00
< / pre >
2016-11-01 10:31:17 +01:00
< p > Your certificate needs to be renewed every couple of months. Either follow the instructions for automatic renewal at < a href = "https://certbot.eff.org/" > https://certbot.eff.org< / a > , or run < code > certbot renew< / code > manually when renewal is due. < strong > Important:< / strong > You'll need to follow the instructions for copying the certificate to the right place again, and re-run < code > /relay sslcertkey< / code > in WeeChat.< / p >
< / div >
< / div >
< / div >
< div class = "panel" data-state = "collapsed" >
< div class = "panel-heading" >
< h4 class = "panel-title" >
< a class = "accordion-toggle" ng-click = "toggleAccordion($event)" >
Usage instructions
< / a >
< / h4 >
< / div >
< div id = "collapseThree" class = "panel-collapse collapse" >
< div class = "panel-body" >
< h3 style = "margin-top: 0px" > Shortcuts< / h3 >
2014-05-09 18:49:07 +02:00
Glowing Bear has a few shortcuts:
< ul >
2014-09-01 17:22:17 +02:00
< li > < kbd > ALT-n< / kbd > : Toggle nicklist< / li >
< li > < kbd > ALT-l< / kbd > : Focus on input bar< / li >
< li > < kbd > ALT-[0-9]< / kbd > : Switch to buffer number N< / li >
2016-03-04 10:15:12 +01:00
< li > < kbd > ALT-↑/↓< / kbd > : Switch to buffer above/below< / li >
2014-09-01 17:22:17 +02:00
< li > < kbd > ALT-a< / kbd > : Focus on next buffer with activity< / li >
< li > < kbd > ALT-< < / kbd > : Switch to previous active buffer< / li >
< li > < kbd > ALT-g< / kbd > : Focus on buffer list filter< / li >
2016-10-13 14:16:24 +02:00
< li > < kbd > ALT-h< / kbd > : Clear unread counters in every buffer (locally)< / li >
2014-09-01 17:22:17 +02:00
< li > < kbd > Esc-Esc< / kbd > : Disconnect (double-tap)< / li >
2016-08-03 15:05:25 +02:00
< li > Arrow keys: Navigate history, or navigate quick search buffer results.< / li >
2014-09-01 17:22:17 +02:00
< li > < kbd > Tab< / kbd > : Complete nick< / li >
< li > The following readline/emacs style keybindings can be enabled with a setting: < span title = "Move cursor to beginning of line" > < kbd > Ctrl-a< / kbd > < / span > , < span title = "Move cursor to te end of the line" > < kbd > Ctrl-e< / kbd > < / span > , < span title = "Delete from cursor to beginning of the line" > < kbd > Ctrl-u< / kbd > < / span > , < span title = "Delete from cursor to the end of the line" > < kbd > Ctrl-k< / kbd > < / span > , < span title = "Delete from cursor to previous space" > < kbd > Ctrl-w< / kbd > < / span > < / li >
2014-05-09 18:49:07 +02:00
< / ul >
2016-08-03 15:05:25 +02:00
< h3 > Pinning buffers< / h3 >
< p >
2016-09-27 15:48:24 +02:00
The option "Only show buffers with unread messages" is useful when you have a lot of buffers and can't meaningfully look at all of them at the same time. However, often you have a select few buffers that you use more frequently and would like to have displayed permanently.
2016-08-03 15:05:25 +02:00
< / p >
< p >
2016-09-27 15:48:24 +02:00
To pin a buffer, type < code > /buffer set localvar_set_pinned true< / code > . < strong > Note< / strong > : Local variables on buffers are not persisted across WeeChat restarts, so either use script < code > buffer_autoset.py< / code > to automatically apply that upon buffer creation or use a trigger if you want automatic repinning when buffers get recreated. To unpin, you can use the same command and set anything other than < code > true< / code > .
2016-08-03 15:05:25 +02:00
< / p >
< p >
2016-09-27 15:48:24 +02:00
Helpful trigger to automatically repin a buffer (in this instance, < var > irc.freenode.#weechat< / var > ): < pre > < code > /trigger add autopin signal "buffer_opened" "${buffer[${tg_signal_data}].full_name} =~ < var > irc.freenode.#weechat< / var > " "" "/command -buffer ${buffer[${tg_signal_data}].full_name} * /buffer set localvar_set_pinned true"< / code > < / pre >
2016-08-03 15:05:25 +02:00
< / p >
2013-10-21 15:51:05 +02:00
< / div >
< / div >
2014-05-09 18:49:07 +02:00
< / div >
2017-02-26 21:29:42 +01:00
< div class = "panel" data-state = "collapsed" >
2014-05-09 18:49:07 +02:00
< div class = "panel-heading" >
< h4 class = "panel-title" >
2014-07-05 15:37:43 +02:00
< a class = "accordion-toggle" ng-click = "toggleAccordion($event)" >
2014-05-09 18:49:07 +02:00
Install app
< / a >
< / h4 >
2013-10-15 16:09:08 +02:00
< / div >
2016-05-20 23:05:35 +02:00
< div id = "collapseFour" class = "panel-collapse collapse" >
2014-05-09 18:49:07 +02:00
< div class = "panel-body" >
2016-11-01 10:02:19 +01:00
< p > You don't need to install anything to use Glowing Bear, it works with any modern browser. Start using it < a data-toggle = "collapse" data-parent = "#accordion" href = "#collapseOne" > right now< / a > at the top of the page! However, there are a few ways to improve integration with your operating system.< / p >
2015-02-08 12:56:28 +01:00
< h3 > Mobile Applications< / h3 >
2016-11-01 10:02:19 +01:00
< p > If you're running Android 4.4 or later, you can install our app from the Google Play Store! We can't distribute on iOS unfortunately, but if you're a developer, you can < a href = "https://github.com/glowing-bear/glowing-bear-cordova" > follow the sideloading instructions< / a > .< / p >
< p > < a href = "https://play.google.com/store/apps/details?id=com.glowing_bear" > < img alt = "Android app on Google Play" src = "assets/img/badge_playstore.png" / > < / a > < / p >
< h3 > Electron< / h3 >
< p > Glowing Bear supports the electron shell. You'll have to build it yourself, though. Run the following commands, choosing your platform from the list in the last command: < pre > git clone https://github.com/glowing-bear/glowing-bear
cd glowing-bear
npm install
npm install electron-packager
npm run build-electron-{windows, darwin, linux}< / pre >
2015-02-08 12:56:28 +01:00
< h3 > Firefox Browser< / h3 >
2016-11-01 10:02:19 +01:00
< p > Firefox used to support apps, but this was removed from Firefox. There's nothing we can do about it. Sorry!< / p >
2014-05-09 18:49:07 +02:00
< h3 > Chrome< / h3 >
2015-02-08 12:56:28 +01:00
< p > To install Glowing Bear as an app in Chrome for Android, select < kbd > Menu - Add to home screen< / kbd > . In the desktop version of Chrome, click < kbd > Menu - More tools - Create application shortcuts< / kbd > .< / p >
2014-02-13 00:03:22 +01:00
< / div >
2014-05-09 18:49:07 +02:00
< / div >
< / div >
2014-07-05 15:37:43 +02:00
< div class = "panel" data-state = "collapsed" >
2014-05-09 18:49:07 +02:00
< div class = "panel-heading" >
< h4 class = "panel-title" >
2014-07-05 15:37:43 +02:00
< a class = "accordion-toggle" ng-click = "toggleAccordion($event)" >
2014-05-09 18:49:07 +02:00
Get involved
< / a >
< / h4 >
< / div >
2016-05-20 23:05:35 +02:00
< div id = "collapseFive" class = "panel-collapse collapse" >
2014-05-09 18:49:07 +02:00
< div class = "panel-body" >
< p > Glowing bear is built by a small group of developers in their free time. As we're always trying to improve it, we would love getting your feedback and help. If that sounds like something you might enjoy, check out our < a href = "https://github.com/glowing-bear/glowing-bear" > project page< / a > on GitHub!< / p >
2016-11-01 10:02:19 +01:00
< p > If you're interested in contributing or simply want to say hello, head over to < strong > #glowing-bear< / strong > on < strong > freenode!< / strong > We won't bite, promise :)< / p >
2014-02-13 00:03:22 +01:00
< / div >
< / div >
2013-10-11 23:21:51 +02:00
< / div >
2013-10-11 23:38:30 +02:00
< / div >
< / div >
2014-07-08 10:51:17 +02:00
< div class = "content" id = "content" sidebar-state = "visible" ng-show = "connected" >
2014-02-13 00:04:24 +01:00
< div id = "topbar" >
< div class = "brand" >
2014-07-08 10:51:17 +02:00
< a href = "#" ng-click = "toggleSidebar()" >
2014-12-22 22:17:01 +01:00
< img alt = "brand" src = "assets/img/favicon.png" title = "Connected to {{ settings.host }}:{{ settings.port}}" >
2014-02-13 00:04:24 +01:00
< / a >
2015-03-24 22:36:21 +01:00
< span class = "badge" ng-show = "unread > 0" > {{unread}}< / span >
< span class = "badge danger" ng-show = "notifications > 0" > {{notifications}}< / span >
2014-04-26 17:49:56 +02:00
< button ng-if = "debugMode" ng-click = "countWatchers()" > Count< br / > Watchers< / button >
2014-02-13 00:04:24 +01:00
< / div >
2015-03-24 22:57:36 +01:00
2014-11-19 14:25:31 +01:00
< div class = "title" title = "{{activeBuffer().rtitle}}" >
2016-10-13 11:14:48 +02:00
< span class = "desktop" ng-repeat = "part in activeBuffer().title" ng-class = "::part.classes" ng-bind-html = "::(part.text | linky:'_blank':{rel:'noopener noreferrer'} | DOMfilter:'irclinky')" > < / span >
2015-03-25 01:04:00 +01:00
< span class = "mobile" ng-click = "showModal('topicModal')" ng-class = "{'active': activeBuffer().active, 'channel': activeBuffer().type === 'channel', 'channel_hash': activeBuffer().prefix === '#', 'channel_plus': activeBuffer().prefix === '+', 'channel_ampersand': activeBuffer().prefix === '&'}" > {{ activeBuffer().trimmedName || activeBuffer().fullName }}< / span >
2014-11-19 14:25:31 +01:00
< / div >
2015-03-24 22:57:36 +01:00
2014-02-13 00:04:24 +01:00
< div class = "actions pull-right vertical-line-left" >
2015-11-28 21:08:42 +01:00
< a class = "settings-toggle" ng-click = "showModal('settingsModal')" title = "Options menu" href = "#" >
2015-03-25 00:00:07 +01:00
< i class = "glyphicon glyphicon-cog" > < / i >
< / a >
2015-11-28 21:08:42 +01:00
< a ng-click = "disconnect()" title = "Disconnect from WeeChat" href = "#" >
2014-08-24 18:14:35 +02:00
< i class = "glyphicon glyphicon-off" > < / i >
2014-02-26 02:09:10 +01:00
< / a >
< / div >
< / div >
2016-10-14 10:58:32 +02:00
< div id = "sidebar" data-state = "visible" ng-swipe-left = "hideSidebar()" ng-swipe-disable-mouse class = "vertical-line" >
2017-03-14 23:00:01 +01:00
< ul class = "nav nav-pills nav-stacked" ng-class = "{'indented': (predicate === 'serverSortKey'), 'showquickkeys': showQuickKeys, 'showjumpkeys': showJumpKeys}" >
2014-02-26 02:09:10 +01:00
< li class = "bufferfilter" >
< form role = "form" >
2017-03-18 16:23:12 +01:00
< div class = "input-group" >
< span class = "input-group-addon buffer-jump" id = "jump-addon" > Jump:< / span >
< input class = "form-control favorite-font" type = "text" id = "bufferFilter" ng-model = "search" ng-keydown = "handleSearchBoxKey($event)" placeholder = "Search" autocomplete = "off" aria-describedby = "jump-addon" >
< / div >
2014-02-26 02:09:10 +01:00
< / form >
< / li >
2016-10-13 16:02:10 +02:00
< li class = "buffer" ng-class = "{'active': buffer . active ,
2016-10-13 16:09:10 +02:00
'unread': buffer.unread,
'notification': buffer.notification,
2016-10-13 16:02:10 +02:00
'highlight': search & & search_highlight_key === key,
'indent': buffer.indent,
'channel': buffer.type === 'channel',
'channel_hash': buffer.prefix === '#',
'channel_plus': buffer.prefix === '+',
'channel_ampersand': buffer.prefix === '& ',
'private': buffer.type === 'private'}"
2017-03-18 16:31:55 +01:00
ng-repeat="(key, buffer) in (filteredBuffers = (getBuffers() | toArray:'withidx' | filter:bufferlistfilter | filter:hasUnread | orderBy:predicate | getBufferQuickKeys:this))">
2015-11-28 21:08:42 +01:00
< a ng-click = "setActiveBuffer(buffer.id)" title = "{{ buffer.fullName }}" href = "#" >
2016-10-13 15:57:33 +02:00
< span class = "badge pull-right" ng-class = "{'danger': buffer.notification}" ng-bind = "buffer.notification || buffer.unread" > < / span >
2014-09-03 14:21:11 +02:00
< span class = "buffer-quick-key" > {{ buffer.$quickKey }}< / span >
2017-03-18 16:20:08 +01:00
< span class = "buffer-jump-key" > {{ ("0" + buffer.$jumpKey).slice(-2) }}< / span >
2014-07-30 17:29:55 +02:00
< span class = "buffername" > {{ buffer.trimmedName || buffer.fullName }}< / span >
2014-02-26 02:09:10 +01:00
< / a >
< / li >
< / ul >
< / div >
2016-10-14 10:58:32 +02:00
< div id = "bufferlines" class = "favorite-font" ng-swipe-right = "showSidebar()" ng-swipe-left = "hideSidebar()" ng-swipe-disable-mouse ng-class = "{'withnicklist': showNicklist}" when-scrolled = "infiniteScroll()" imgur-drop >
< div id = "nicklist" ng-if = "showNicklist" ng-swipe-right = "closeNick()" ng-swipe-disable-mouse class = "vertical-line-left" >
2014-04-20 17:44:50 +02:00
< ul class = "nicklistgroup list-unstyled" ng-repeat = "group in nicklist" >
2014-05-09 17:16:33 +02:00
< li ng-repeat = "nick in group.nicks|orderBy:'name'" >
2014-08-23 13:23:47 +02:00
< a ng-click = "openBuffer(nick.name)" > < span ng-class = "::nick.prefixClasses" ng-bind = "::nick.prefix" > < / span > < span ng-class = "::nick.nameClasses" ng-bind = "::nick.name" > < / span > < / a >
2014-02-26 02:09:10 +01:00
< / li >
< / ul >
< / div >
2016-07-20 17:28:08 +02:00
< table >
2014-02-26 02:09:10 +01:00
< tbody >
< tr class = "bufferline" >
2014-02-28 03:50:50 +01:00
< td ng-hide = "activeBuffer().allLinesFetched" colspan = "3" >
2015-12-14 16:02:49 +01:00
< a class = "fetchmorelines btn btn-xs btn-primary" ng-click = "fetchMoreLines()" ng-hide = "loadingLines" href = "#" > Fetch more lines< / a >
< span ng-show = "loadingLines" > Fetching more lines < i class = "glyphicon glyphicon-refresh glyphicon-spin" > < / i > < / span >
2014-02-26 02:09:10 +01:00
< / td >
< / tr >
< / tbody >
2014-04-20 17:44:50 +02:00
< tbody ng-repeat = "bufferline in bufferlines" >
2014-02-26 02:09:10 +01:00
< tr class = "bufferline" >
2014-04-26 17:34:02 +02:00
< td class = "time" >
2014-08-23 13:23:47 +02:00
< span class = "date" ng-class = "::{'repeated-time': bufferline.shortTime==bufferlines[$index-1].shortTime}" >
2016-07-20 17:28:08 +02:00
< span class = "cof-chat_time cob-chat_time coa-chat_time" ng-bind-html = "::bufferline.formattedTime" > < / span >
2014-02-26 02:09:10 +01:00
< / span >
< / td >
2016-10-18 09:53:28 +02:00
< td class = "prefix" > < span ng-class = "::{'repeated-prefix': bufferline.prefixtext==bufferlines[$index-1].prefixtext}" > < a ng-click = "addMention(bufferline.prefix)" > < span class = "hidden-bracket" > < < / span > < span ng-repeat = "part in ::bufferline.prefix" ng-class = "::part.classes" ng-bind = "::part.text|prefixlimit:25" > < / span > < span class = "hidden-bracket" > > < / span > < / a > < / span > < / td > <!--
2014-09-17 13:51:00 +02:00
-->< td class = "message" > <!--
-->< div ng-repeat = "metadata in ::bufferline.metadata" plugin data = "::metadata" > < / div > <!--
2016-10-13 11:14:48 +02:00
-->< span ng-repeat = "part in ::bufferline.content" class = "text" ng-class = "::part.classes.concat(['line-' + part.$$hashKey.replace(':','_')])" ng-bind-html = "::part.text | linky:'_blank':{rel:'noopener noreferrer'} | DOMfilter:'irclinky' | DOMfilter:'emojify':settings.enableJSEmoji | DOMfilter:'inlinecolour' | DOMfilter:'latexmath':('.line-' + part.$$hashKey.replace(':','_')):settings.enableMathjax" > < / span >
2014-02-26 02:09:10 +01:00
< / td >
< / tr >
< tr class = "readmarker" ng-if = "activeBuffer().lastSeen==$index" >
< td colspan = "3" >
< hr id = "readmarker" >
< / td >
< / tr >
< / tbody >
2014-09-23 02:08:27 +02:00
< / table > < span id = "end-of-buffer" > < / span >
2014-02-26 02:09:10 +01:00
< / div >
2014-07-08 10:51:17 +02:00
< div class = "footer" ng-class = "{'withnicklist': showNicklist}" >
2014-08-31 16:29:13 +02:00
< div input-bar input-id = "sendMessage" command = "command" > < / div >
2014-03-01 19:55:22 +01:00
< / div >
2014-04-29 01:13:41 +02:00
< / div >
2014-05-09 18:49:07 +02:00
< div id = "soundNotification" > < / div >
2015-03-14 21:10:19 +01:00
< div id = "reconnect" class = "alert alert-danger" ng-click = "reconnect()" ng-show = "reconnecting" >
< p > < strong > Connection to WeeChat lost< / strong > < / p >
< i class = "glyphicon glyphicon-refresh" > < / i >
2015-12-14 16:02:49 +01:00
Reconnecting... < i class = "glyphicon glyphicon-spin glyphicon-refresh" > < / i > < a class = "btn btn-xs" ng-click = "reconnect()" href = "#" > Click to try to reconnect now< / a >
2015-03-14 21:10:19 +01:00
< / div >
2014-07-16 19:35:56 +02:00
< div id = "settingsModal" class = "gb-modal" data-state = "hidden" >
2014-07-20 12:40:23 +02:00
< div class = "backdrop" ng-click = "closeModal($event)" > < / div >
2014-02-26 02:09:10 +01:00
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2014-07-16 19:35:56 +02:00
< button type = "button" class = "close" ng-click = "closeModal($event)" aria-hidden = "true" > × < / button >
2016-12-03 12:39:24 +01:00
< span class = "pull-right version" > Glowing Bear version 0.7.0< / span >
2014-02-26 02:09:10 +01:00
< h4 class = "modal-title" > Settings< / h4 >
2014-07-10 18:37:39 +02:00
< p > Settings will be stored in your browser.< / p >
2014-02-26 02:09:10 +01:00
< / div >
< div class = "modal-body" >
< ul class = "" >
2014-08-30 17:21:32 +02:00
< li class = "standard-labels" >
2014-07-10 18:37:39 +02:00
< form class = "form-horizontal" role = "form" >
< div class = "form-group" >
2014-07-23 20:22:23 +02:00
< label for = "font" class = "col-sm-3 control-label make-thinner" > Preferred font< / label >
< div class = "col-sm-4" >
2014-12-22 22:17:01 +01:00
< input type = "text" ng-model = "settings.fontfamily" class = "form-control" id = "font" >
2014-07-10 18:37:39 +02:00
< / div >
< label for = "size" class = "col-sm-1 control-label" > Size< / label >
< div class = "col-sm-2" >
2014-12-22 22:17:01 +01:00
< input type = "text" ng-model = "settings.fontsize" class = "form-control" id = "size" >
2014-07-10 18:37:39 +02:00
< / div >
< / div >
< / form >
< / li >
2014-08-30 17:21:32 +02:00
< li class = "standard-labels" >
< form class = "form-horizontal" role = "form" >
< div class = "form-group" >
< label for = "theme" class = "col-sm-3 control-label make-thinner" > Theme< / label >
< div class = "col-sm-7" >
2014-12-22 22:17:01 +01:00
< select id = "theme" class = "form-control" ng-model = "settings.theme" ng-options = "theme for theme in themes" > < / select >
2014-08-30 17:21:32 +02:00
< / div >
< / div >
< / form >
< / li >
2016-01-10 11:37:27 +01:00
< li class = "standard-labels" >
< form class = "form-horizontal" role = "form" >
< div class = "form-group" >
< label for = "custom-css" class = "col-sm-3 control-label make-thinner" > Custom CSS< / label >
< div class = "col-sm-7" >
< textarea id = "custom-css" class = "form-control" ng-model = "settings.customCSS" > < / textarea >
< / div >
< / div >
< / form >
< / li >
2014-02-13 00:04:24 +01:00
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.onlyUnread" >
2014-11-20 13:04:11 +01:00
Only show buffers with unread messages
2014-02-13 00:04:24 +01:00
< / label >
< / div >
< / form >
< / li >
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.noembed" >
2015-01-04 18:45:36 +01:00
Hide embedded content by default< span class = "text-muted settings-help" > NSFW content will be hidden regardless of this choice< / span >
2014-02-13 00:04:24 +01:00
< / label >
< / div >
< / form >
< / li >
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.hotlistsync" >
2014-07-16 19:44:42 +02:00
Mark messages as read in WeeChat
2014-02-13 00:04:24 +01:00
< / label >
< / div >
< / form >
< / li >
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.nonicklist" >
2014-02-13 00:04:24 +01:00
Hide nicklist
< / label >
< / div >
< / form >
< / li >
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.orderbyserver" >
2014-07-18 13:35:13 +02:00
Hierarchical buffer view (order by server)
2014-02-13 00:04:24 +01:00
< / label >
< / div >
< / form >
< / li >
2014-02-20 23:35:34 +01:00
< li >
2014-07-21 16:07:38 +02:00
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.readlineBindings" >
2014-07-21 16:07:38 +02:00
Enable common readline keybindings in input bar
< / label >
< / div >
< / form >
< / li >
< li >
2014-02-20 23:35:34 +01:00
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.useFavico" >
2014-02-20 23:35:34 +01:00
Display unread count in favicon
< / label >
< / div >
< / form >
< / li >
2014-03-01 19:55:22 +01:00
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2014-12-22 22:17:01 +01:00
< input type = "checkbox" ng-model = "settings.soundnotification" >
2014-03-01 19:55:22 +01:00
Play sound on notification
< / label >
< / div >
< / form >
< / li >
2015-01-03 18:29:59 +01:00
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
2015-02-28 21:30:57 +01:00
< input type = "checkbox" ng-model = "settings.enableJSEmoji" >
2015-12-16 12:34:35 +01:00
Enable non-native Emoji support < span class = "text-muted settings-help" > Displays Emoji characters as images. Emoji provided free by < a href = "http://emojione.com" > http://emojione.com< / a > < / span >
2015-01-03 18:29:59 +01:00
< / label >
< / div >
< / form >
< / li >
2015-03-21 12:25:18 +01:00
< li >
< form class = "form-inline" role = "form" >
< div class = "checkbox" >
< label >
< input type = "checkbox" ng-model = "settings.enableMathjax" >
Enable LaTeX math rendering
< / label >
< / div >
< / form >
< / li >
2014-02-13 00:04:24 +01:00
< / ul >
< / div >
2014-02-26 02:09:10 +01:00
< div class = "modal-footer" >
2014-07-06 16:05:48 +02:00
< button type = "button" class = "btn btn-primary" ng-click = "closeModal($event)" > Close< / button >
2014-02-26 02:09:10 +01:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2015-03-24 23:01:16 +01:00
< div id = "topicModal" class = "gb-modal" data-state = "hidden" >
< div class = "backdrop" ng-click = "closeModal($event)" > < / div >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" ng-click = "closeModal($event)" aria-hidden = "true" > × < / button >
< h4 class = "modal-title" > Channel topic< / h4 >
2016-10-13 11:14:48 +02:00
< p ng-repeat = "part in activeBuffer().title" ng-class = "::part.classes" ng-bind-html = "::(part.text | linky:'_blank':{rel:'noopener noreferrer'} | DOMfilter:'irclinky')" > < / p >
2015-03-24 23:01:16 +01:00
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-primary" ng-click = "closeModal($event)" > Close< / button >
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2013-10-05 18:40:01 +02:00
< / body >
2013-02-16 18:49:20 +01:00
< / html >