2013-02-16 19:18:14 +01:00
|
|
|
<!DOCTYPE html>
|
2013-10-02 00:16:27 +02:00
|
|
|
<html>
|
2013-02-16 18:49:20 +01:00
|
|
|
<head>
|
2013-10-02 01:27:18 +02:00
|
|
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
|
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" rel="stylesheet" media="screen">
|
2013-10-06 12:34:41 +02:00
|
|
|
<link rel="shortcut icon" type="image/png" href="img/favicon.png" >
|
2013-10-02 01:39:24 +02:00
|
|
|
<link href="css/glowingbear.css" rel="stylesheet" media="screen">
|
2013-02-16 19:18:14 +01:00
|
|
|
<script type="text/javascript" src="js/angular.min.js"></script>
|
2013-07-28 05:59:12 +02:00
|
|
|
<script type="text/javascript" src="js/underscore.js"></script>
|
2013-10-05 16:05:16 +02:00
|
|
|
<script type="text/javascript" src="js/localstorage.js"></script>
|
2013-02-24 20:44:03 +01:00
|
|
|
<script type="text/javascript" src="js/protocol.js"></script>
|
2013-02-16 19:18:14 +01:00
|
|
|
<script type="text/javascript" src="js/websockets.js"></script>
|
2013-02-16 18:49:20 +01:00
|
|
|
</head>
|
2013-10-02 00:16:27 +02:00
|
|
|
<body ng-app="weechat">
|
2013-02-16 19:18:14 +01:00
|
|
|
<div ng-controller="WeechatCtrl">
|
2013-10-06 13:59:34 +02:00
|
|
|
<div ng-hide="connected" class="container">
|
|
|
|
<h2>
|
|
|
|
<img src="img/favicon.png">
|
|
|
|
glowing bear
|
|
|
|
<small>
|
|
|
|
WeeChat web frontend
|
|
|
|
</small>
|
|
|
|
</h2>
|
|
|
|
<div>To start using, please enable relay in your WeeChat client:
|
|
|
|
<pre>
|
|
|
|
/set relay.network.password yourpassword
|
|
|
|
/relay add weechat 9001</pre>
|
|
|
|
Note: The communication goes directly between your browser and your weechat in clear text.
|
|
|
|
Connection settings are saved between sessions, including password, in your own browser.
|
|
|
|
</div>
|
|
|
|
<h3>Connection settings</h3>
|
|
|
|
<form role="form">
|
2013-10-03 01:55:30 +02:00
|
|
|
<div class="alert alert-danger" ng-show="errorMessage">
|
2013-10-06 13:59:34 +02:00
|
|
|
<strong>Oh no!</strong> We cannot connect!
|
2013-10-03 01:55:30 +02:00
|
|
|
</div>
|
2013-10-06 13:59:34 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label" for="hostport">Hostname and port</label>
|
|
|
|
<input type="text" class="form-control" id="hostport" ng-model="hostport" placeholder="Hostport">
|
|
|
|
<p class="help-block">Enter the hostname and the port to the WeeChat relay, separated by a :</p>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-06 13:59:34 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label" for="password">WeeChat relay password</label>
|
|
|
|
<input type="password"class="form-control" id="password" ng-model="password" placeholder="Password">
|
|
|
|
<p class="help-block">Password will be stored in your browser session</p>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-06 13:59:34 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label" for="proto">Proto</label>
|
|
|
|
<input type="text" class="form-control" id="proto" ng-model="proto" placeholder="proto">
|
|
|
|
<p class="help-block">Default is fine.</p>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
2013-10-06 13:59:34 +02:00
|
|
|
<button class="btn btn-lg btn-primary" ng-click="connect()">Connect!</button>
|
2013-02-16 19:18:14 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2013-02-18 00:49:42 +01:00
|
|
|
<div ng-show="connected">
|
2013-07-30 15:22:37 +02:00
|
|
|
|
2013-10-06 13:42:45 +02:00
|
|
|
<span class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers | toArray | orderBy:'content.number':true">
|
2013-07-30 15:22:37 +02:00
|
|
|
<a ng-click="setActiveBuffer(key)">{{ content.full_name }}</a>
|
2013-08-06 17:06:42 +02:00
|
|
|
</span>
|
2013-07-30 15:22:37 +02:00
|
|
|
<div ng-repeat="bufferline in activeBuffer.lines">
|
2013-08-03 17:25:38 +02:00
|
|
|
|
2013-10-06 13:42:45 +02:00
|
|
|
<span ng-repeat="part in bufferline.message" class="text" style="{{ part.fg }}">
|
2013-08-03 17:25:38 +02:00
|
|
|
{{ part.text }}
|
|
|
|
</span>
|
2013-08-06 23:07:29 +02:00
|
|
|
|
|
|
|
<div ng-repeat="metadata in bufferline.metadata">
|
|
|
|
<div ng-show="metadata.visible">
|
|
|
|
<a ng-click="metadata.visible = false">Hide additional content</a>
|
|
|
|
<div ng-bind-html-unsafe="metadata.content"></div>
|
|
|
|
|
2013-08-06 22:39:10 +02:00
|
|
|
</div>
|
2013-08-06 23:07:29 +02:00
|
|
|
<div ng-hide="metadata.visible">
|
|
|
|
<a ng-click="metadata.visible = true">Show additional content</a>
|
|
|
|
</div>
|
|
|
|
|
2013-08-06 22:39:10 +02:00
|
|
|
</div>
|
|
|
|
|
2013-08-03 17:25:38 +02:00
|
|
|
|
2013-08-06 23:07:29 +02:00
|
|
|
|
2013-02-18 00:49:42 +01:00
|
|
|
</div>
|
2013-02-24 20:44:03 +01:00
|
|
|
<form ng-submit="sendMessage()">
|
2013-02-18 00:49:42 +01:00
|
|
|
<input type="text" ng-model="command"></input>
|
2013-02-24 20:44:03 +01:00
|
|
|
<input type="submit" class="btn btn-primary"></button>
|
|
|
|
</form>
|
2013-02-16 19:18:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-02-16 18:49:20 +01:00
|
|
|
</body>
|
|
|
|
</html>
|