Fix links and embeds

Disable semi-broken plugins
cordova-0.4.4
Lorenz Hübschle-Schneider 11 years ago
parent d23d8c8d8e
commit 1c872c63fd
  1. 4
      index.html
  2. 1
      js/filters.js
  3. 4
      js/plugins.js
  4. 2
      test/unit/plugins.js

@ -185,7 +185,7 @@
</a> </a>
<button ng-if="debugMode" ng-click="countWatchers()">Count<br />Watchers</button> <button ng-if="debugMode" ng-click="countWatchers()">Count<br />Watchers</button>
</div> </div>
<div class="title" ng-bind-html="activeBuffer().title | linky:'_blank' | DOMfilter:'irclinky'" title="{{activeBuffer().title}}"></div> <div class="title" ng-bind-html="activeBuffer().title | linky:'_system' | DOMfilter:'irclinky'" title="{{activeBuffer().title}}"></div>
<div class="actions pull-right vertical-line-left"> <div class="actions pull-right vertical-line-left">
<div class="pull-left"> <div class="pull-left">
<a class="settings-toggle" ng-click="showModal('settingsModal')" title="Options menu"> <a class="settings-toggle" ng-click="showModal('settingsModal')" title="Options menu">
@ -240,7 +240,7 @@
<td class="prefix"><a ng-click="addMention(bufferline.prefix)"><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text"></span></a></td><!-- <td class="prefix"><a ng-click="addMention(bufferline.prefix)"><span ng-repeat="part in ::bufferline.prefix" ng-class="::part.classes" ng-bind="::part.text"></span></a></td><!--
--><td class="message"><!-- --><td class="message"><!--
--><div ng-repeat="metadata in ::bufferline.metadata" plugin data="::metadata"></div><!-- --><div ng-repeat="metadata in ::bufferline.metadata" plugin data="::metadata"></div><!--
--><span ng-repeat="part in ::bufferline.content" class="text" ng-class="::part.classes" ng-bind-html="::part.text | linky:'_blank' | DOMfilter:'irclinky' | DOMfilter:'inlinecolour'"></span> --><span ng-repeat="part in ::bufferline.content" class="text" ng-class="::part.classes" ng-bind-html="::part.text | linky:'_system' | DOMfilter:'irclinky' | DOMfilter:'inlinecolour'"></span>
</td> </td>
</tr> </tr>
<tr class="readmarker" ng-if="activeBuffer().lastSeen==$index"> <tr class="readmarker" ng-if="activeBuffer().lastSeen==$index">

@ -124,5 +124,4 @@ weechat.filter('getBufferQuickKeys', function () {
return obj; return obj;
}; };
}); });
})(); })();

@ -338,6 +338,7 @@ plugins.factory('userPlugins', function() {
); );
yrPlugin.name = "meteogram"; yrPlugin.name = "meteogram";
/*
// Embed GitHub gists // Embed GitHub gists
var gistPlugin = new Plugin( var gistPlugin = new Plugin(
urlPlugin(function(url) { urlPlugin(function(url) {
@ -390,9 +391,10 @@ plugins.factory('userPlugins', function() {
}) })
); );
tweetPlugin.name = 'Tweet'; tweetPlugin.name = 'Tweet';
*/
return { return {
plugins: [youtubePlugin, dailymotionPlugin, allocinePlugin, imagePlugin, spotifyPlugin, cloudmusicPlugin, googlemapPlugin, asciinemaPlugin, yrPlugin, gistPlugin, tweetPlugin] plugins: [youtubePlugin, dailymotionPlugin, allocinePlugin, imagePlugin, spotifyPlugin, cloudmusicPlugin, googlemapPlugin, asciinemaPlugin, yrPlugin]
}; };

@ -119,6 +119,7 @@ describe('filter', function() {
plugins); plugins);
})); }));
/*
it('should recognize gists', inject(function(plugins) { it('should recognize gists', inject(function(plugins) {
expectTheseMessagesToContain([ expectTheseMessagesToContain([
'https://gist.github.com/lorenzhs/e8c1a7d56fa170320eb8', 'https://gist.github.com/lorenzhs/e8c1a7d56fa170320eb8',
@ -135,6 +136,7 @@ describe('filter', function() {
'Tweet', 'Tweet',
plugins); plugins);
})); }));
*/
}); });
}); });

Loading…
Cancel
Save