2013-08-29 23:38:28 -04:00
( function ( ) {
var root = this , exports = { } ;
// The jade runtime:
var jade = exports . jade = function ( exports ) { Array . isArray || ( Array . isArray = function ( arr ) { return "[object Array]" == Object . prototype . toString . call ( arr ) } ) , Object . keys || ( Object . keys = function ( obj ) { var arr = [ ] ; for ( var key in obj ) obj . hasOwnProperty ( key ) && arr . push ( key ) ; return arr } ) , exports . merge = function merge ( a , b ) { var ac = a [ "class" ] , bc = b [ "class" ] ; if ( ac || bc ) ac = ac || [ ] , bc = bc || [ ] , Array . isArray ( ac ) || ( ac = [ ac ] ) , Array . isArray ( bc ) || ( bc = [ bc ] ) , ac = ac . filter ( nulls ) , bc = bc . filter ( nulls ) , a [ "class" ] = ac . concat ( bc ) . join ( " " ) ; for ( var key in b ) key != "class" && ( a [ key ] = b [ key ] ) ; return a } ; function nulls ( val ) { return val != null } return exports . attrs = function attrs ( obj , escaped ) { var buf = [ ] , terse = obj . terse ; delete obj . terse ; var keys = Object . keys ( obj ) , len = keys . length ; if ( len ) { buf . push ( "" ) ; for ( var i = 0 ; i < len ; ++ i ) { var key = keys [ i ] , val = obj [ key ] ; "boolean" == typeof val || null == val ? val && ( terse ? buf . push ( key ) : buf . push ( key + '="' + key + '"' ) ) : 0 == key . indexOf ( "data" ) && "string" != typeof val ? buf . push ( key + "='" + JSON . stringify ( val ) + "'" ) : "class" == key && Array . isArray ( val ) ? buf . push ( key + '="' + exports . escape ( val . join ( " " ) ) + '"' ) : escaped && escaped [ key ] ? buf . push ( key + '="' + exports . escape ( val ) + '"' ) : buf . push ( key + '="' + val + '"' ) } } return buf . join ( " " ) } , exports . escape = function escape ( html ) { return String ( html ) . replace ( /&(?!(\w+|\#\d+);)/g , "&" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) . replace ( /"/g , """ ) } , exports . rethrow = function rethrow ( err , filename , lineno ) { if ( ! filename ) throw err ; var context = 3 , str = require ( "fs" ) . readFileSync ( filename , "utf8" ) , lines = str . split ( "\n" ) , start = Math . max ( lineno - context , 0 ) , end = Math . min ( lines . length , lineno + context ) , context = lines . slice ( start , end ) . map ( function ( line , i ) { var curr = i + start + 1 ; return ( curr == lineno ? " > " : " " ) + curr + "| " + line } ) . join ( "\n" ) ; throw err . path = filename , err . message = ( filename || "Jade" ) + ":" + lineno + "\n" + context + "\n\n" + err . message , err } , exports } ( { } ) ;
// create our folder objects
exports . includes = { } ;
2013-09-12 14:18:44 -04:00
exports . misc = { } ;
2013-08-29 23:38:28 -04:00
exports . pages = { } ;
// body.jade compiled template
exports . body = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 08:56:02 -05:00
buf . push ( '<body><div id="connectionOverlay"><aside id="connectionStatus" class="box"><p>You\'re currently<strong>disconnected</strong></p><button class="primary reconnect">Reconnect</button></aside></div><div id="updateBar"><p>Update available!</p><button class="primary upgrade">Upgrade</button></div><div id="wrapper"><aside id="menu"><section id="roster"><h1>Roster</h1><input type="text" id="addcontact" class="inline"/><button class="primary small addContact">Add</button><ul id="contactrequests"></ul><nav></nav></section><section id="bookmarks"><h1>Rooms</h1><input type="text" id="joinmuc" class="inline"/><button class="primary small joinMUC">Add</button><nav></nav></section></aside><header id="me"><h1><img class="avatar"/><span class="name"></span><span contenteditable="true" class="status"></span></h1><a href="/" class="button secondary settings"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 25 25" height="25" width="25"><g transform="scale(0.4)"><path d="M37.418,34.3c-2.1-2.721-2.622-6.352-1.292-9.604c0.452-1.107,1.104-2.1,1.902-2.951 c-0.753-0.877-1.573-1.697-2.507-2.387l-2.609,1.408c-1.05-0.629-2.194-1.112-3.414-1.421l-0.845-2.833 c-0.75-0.112-1.512-0.188-2.287-0.188c-0.783,0-1.54,0.075-2.288,0.188l-0.851,2.833c-1.215,0.309-2.355,0.792-3.41,1.421 l-2.614-1.408c-1.229,0.912-2.318,2-3.228,3.231l1.404,2.612c-0.628,1.053-1.11,2.193-1.419,3.411l-2.832,0.849 c-0.114,0.75-0.187,1.508-0.187,2.287c0,0.778,0.073,1.537,0.187,2.286l2.832,0.848c0.309,1.22,0.791,2.36,1.419,3.413l-1.404,2.61 c0.909,1.231,1.999,2.321,3.228,3.231l2.614-1.406c1.055,0.628,2.195,1.11,3.41,1.42l0.851,2.832 c0.748,0.114,1.505,0.188,2.288,0.188c0.775,0,1.537-0.074,2.287-0.188l0.845-2.832c1.224-0.31,2.364-0.792,3.414-1.42l0.062,0.033 l2.045-3.02L37.418,34.3z M26.367,36.776c-2.777,0-5.027-2.253-5.027-5.027c0-2.775,2.25-5.028,5.027-5.028 c2.774,0,5.024,2.253,5.024,5.028C31.391,34.523,29.141,36.776,26.367,36.776z"></path><path d="M51.762,24.505l-1.125-0.459l-1.451,3.55c-0.814,1.993-2.832,3.054-4.505,2.37l-0.355-0.144 c-1.673-0.686-2.37-2.856-1.558-4.849l1.451-3.551l-1.125-0.46c-2.225,0.608-4.153,2.2-5.092,4.501 c-1.225,2.997-0.422,6.312,1.771,8.436l-2.958,6.812l-2.204,3.249l-0.007,2.281l5.275,2.154l1.593-1.633l0.7-3.861l2.901-6.836 c3.049,0.018,5.947-1.785,7.174-4.779C53.186,28.983,52.924,26.499,51.762,24.505z"></path></g></svg>Settings</a></header></div><main id="pages"></main></body>' ) ;
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
// head.jade compiled template
exports . head = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 09:06:57 -05:00
buf . push ( ' < meta name = "viewport" content = "width=device-width,initial-scale=1.0,maximum-scale=1.0" / > < meta name = "apple-mobile-web-app-capable" content = "yes" / > < link rel = "stylesheet" type = "text/css" href = "//fonts.googleapis.com/css?family=Lato:400,700" / > < link rel = "stylesheet" type = "text/css" href = "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" / > < link rel = "stylesheet" type = "text/css" href = "//cloud.typography.com/7773252/657662/css/fonts.css" / > < link rel = "shortcut icon" type = "image/png" href = " data : image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAEJGlDQ1BJQ0MgUHJvZmlsZQAAOBGFVd9v21QUPolvUqQWPyBYR4eKxa9VU1u5GxqtxgZJk6XtShal6dgqJOQ6N4mpGwfb6baqT3uBNwb8AUDZAw9IPCENBmJ72fbAtElThyqqSUh76MQPISbtBVXhu3ZiJ1PEXPX6yznfOec7517bRD1fabWaGVWIlquunc8klZOnFpSeTYrSs9RLA9Sr6U4tkcvNEi7BFffO6 + EdigjL7ZHu / k72I796i9zRiSJPwG4VHX0Z + AxRzNRrtksUvwf7 + Gm3BtzzHPDTNgQCqwKXfZwSeNHHJz1OIT8JjtAq6xWtCLwGPLzYZi + 3 YV8DGMiT4VVuG7oiZpGzrZJhcs / hL49xtzH / Dy6bdfTsXYNY + 5 yluWO4D4neK / ZUvok / 17 X0HPBLsF + vuUlhfwX4j / rSfAJ4H1H0qZJ9dN7nR19frRTeBt4Fe9FwpwtN + 2 p1MXscGLHR9SXrmMgjONd1ZxKzpBeA71b4tNhj6JGoyFNp4GHgwUp9qplfmnFW5oTdy7NamcwCI49kv6fN5IAHgD + 0 rbyoBc3SOjczohbyS1drbq6pQdqumllRC / 0 ymTtej8gpbbuVwpQfyw66dqEZyxZKxtHpJn + tZnpnEdrYBbueF9qQn93S7HQGGHnYP7w6L + YGHNtd1FJitqPAR + hERCNOFi1i1alKO6RQnjKUxL1GNjwlMsiEhcPLYTEiT9ISbN15OY / jx4SMshe9LaJRpTvHr3C / ybFYP1PZAfwfYrPsMBtnE6SwN9ib7AhLwTrBDgUKcm06FSrTfSj187xPdVQWOk5Q8vxAfSiIUc7Z7xr6zY / + hpqwSyv0I0 / QMTRb7RMgBxNodTfSPqdraz / sDjzKBrv4zu2 + a2t0 / HHzjd2Lbcc2sG7GtsL42K + xLfxtUgI7YHqKlqHK8HbCCXgjHT1cAdMlDetv4FnQ2lLasaOl6vmB0CMmwT / IPszSueHQqv6i / qluqF + oF9TfO2qEGTumJH0qfSv9KH0nfS / 9 TIp0Wboi / SRdlb6RLgU5u ++ 9 nyXYe69fYRPdil1o1WufNSdTTsp75BfllPy8 / LI8G7AUuV8ek6fkvfDsCfbNDP0dvRh0CrNqTbV7LfEEGDQPJQadBtfGVMWEq3QWWdufk6ZSNsjG2PQjp3ZcnOWWing6noonSInvi0 / Ex + IzAreevPhe + CawpgP1 / pMTMDo64G0sTCXIM + KdOnFWRfQKdJvQzV1 + Bt8OokmrdtY2yhVX2a + qrykJfMq4Ml3VR4cVzTQVz + UoNne4vcKLoyS + gyKO6EHe + 75 Fdt0Mbe5bRIf / wjvrVmhbqBN97RD1vxrahvBOfOYzoosH9bq94uejSOQGkVM6sN / 7 HelL4t10t9F4gPdVzydEOx83Gv + uNxo7XyL / FtFl8z9ZAHF4bBsrEwAAHLlJREFUeNrtnXmcVdWV739r732mO1XdKopiKBAEVCBOgWBsQ4SgGCPGmAgvQ2s0AybPp5k6MSafpIrEKaLJa0nbkTahpbtNUhVfOnacgq0YcYhRcQAnFBkKKKl5uMMZ9l79xy0c0qafWOcWVeVdl1Of + / k U d Y a 1 v 2 f t t f f a a 2 1 i Z l T k 3 S u i o o I K A B W p A F C R C g A V q Q B Q k Q o A F a k A U J E K A B W p A F C R C g A V q Q B Q k Q o A F a k A U J E K A B U Z o 6 L e b Q 9 M R A S A m p q a R G d n p 8 z t 3 G k b I W S u Y I l M J o O i X Y z G b w / C 1 g Z o A L q l p c U A A I / R u D m N 1 f U A R E R N i x b J 9 u z U q u T + 3 P R 0 a B 2 b I f d o T 6 p x N o S 0 y R K u I W U R K T A J g A k Q A L N h Z h 0 K E x W F 0 R E b 4 7 M O c 1 H w U q / 2 N 3 c L s y 2 c j j 3 j W 1 r y j c y m A s A I k s W L F 6 s F 3 s w J T l v n B 8 a x t 7 j G y 9 R U W 2 7 S g a w l F g 2 S x K S M 5 c K C h E U C N g t Y J A A Q g A N 6 I D A Y I R s E p K G Z 4 X O E g c j P A d h t w P s D R D 0 d Q T 6 / 3 + / b u z / q v 2 d g f P b R u o X r u x s b R x 8 Q o x 6 A x Y s X q y X Z m b P o p Z 5 P 1 F r J o y d 5 1 e M 8 o Q 7 3 y J p W b S W Q E A o u W S A Q i M F E x E Q E A i B A K P U I / 1 0 M M 0 o f g E v f x Q E 4 A t b o N z 4 6 g 5 y O 2 L z o c 7 B z T 7 G v u 0 3 3 P 9 n f k P r t D u 8 j 2 5 u b l + s K A O U 0 7 2 e u r M 2 0 B + f U B N b J E 5 K Z q S 7 U M V n l p T L S h S M U C M S C i A 8 0 9 O t P y W / 4 + T a u 9 R f f D t g K A 4 Z h F g w g 4 A h 9 u o D O K N / r G / 1 M W 7 G v t R P F T X 6 d a v 7 O n e s 6 R r L / M K o A I C J x 2 Z L z Z j b 0 y 8 9 P l q n j M t I 7 t l Y l 6 q u V B 0 d a U E S G X 2 v d g 2 v o g 7 6 X N 3 4 r / Y M 2 R o S s 0 R X l 0 R n m 2 w d 0 4 a l d Z m B r W 8 L 8 k z x 5 + n O N j Y 2 m A s A 7 f O M v + 8 D / m n V 4 m P 7 y B D t 9 Q j W 5 7 5 1 k p R 1 X W L C E N E Q E M O N Q P w m B U L o V R m i M K J o Q e 6 O + q N c U N r f 6 / U / s d P y 1 V z 7 w r 0 / y C H I e R z w A 3 z 3 l i / V T e s O L p z g 1 H x q n E v M n W B n L I Q k l h D n Q J 4 9 I a A d t R G Q M + Y i o L e g 3 7 V H u q V 1 + 1 8 b 2 e v n T x t / / f H s F g P 9 B L v n I J c 7 k 7 q 7 z j h A 1 5 4 y X y Q 8 2 O F n X F R Z L o k E D P z q 6 L h r 0 G j S D i h x S q 9 8 T 7 o 1 6 H 9 k e 9 t 3 a c R T d t H r 9 + l w F g L + Q q x Z f c N R h / e 4 3 J n q Z s 6 Y 4 1 X V p 6 U C S M K O p 4 d / a Z y B E b E S / 9 r E 7 6 O 5 p 0 w P / 0 U r + 9 Z c + + I v H D 5 W j O K I A u H D + f O s o 9 Z 6 / n a W y n 2 t Q m b + Z Y G e E J a V h H r 0 N / 5 Z + A o C Q t W g L + 3 i P 3 7 d 5 d 7 F 3 3 b 0 z B t Y 2 N z c H 7 1 o A V p 1 9 Q f X 0 v c 5 3 G u y q 8 w 5 z q u s z y m U C 8 V h p + L c C w T B T T g e 0 2 + / p b o 1 6 1 z 3 h 9 l x 1 7 X 2 3 d L z r A L h 8 y f k z 5 v j p 7 0 9 R 1 Z + c 5 F T Z D k n z b k h Y O 9 A t h K z F n r A 3 a A 1 6 f / M U d 1 / V + O D 6 L e 8 a A H 6 0 5 A s f P D J K f 3 u 6 r D p t g p 0 R E m T e b d m K B E C D x f 6 w 3 2 w P u u 5 9 W Q 5 c + f W N P 7 9 v T A N A R H T d / H N P n + 3 W f e 9 w p + b 9 1 d K D I D J 4 F w s z R E 9 U w P a g 8 9 E t Q e c P v v n o z X e U 2 z l U h 6 r x f 7 r g v I 8 d a Y 3 / / u F O 7 X E Z 6 f L Y j U u + f R E E U 6 u S p E A L j O H L 1 8 z / r A R w 2 5 i z A N f O P / e M e d 6 k y w 9 3 a 4 9 L S p s Z l R z 1 N / k F T N R n i v R y s f P x F 4 s d l 1 3 0 5 3 U b x g w A a 5 a u P H l 2 k L 1 6 h l X z / r R 0 m T E C u n w e j B a J N 4 w 2 6 V C D I K g v K t A r Q e c f t / C r 3 / r K A + v / V B a r M 5 w P d f 3 J F 8 y a 7 V d d d r i V f X 9 a D G / j E 4 D B Q L B 4 7 W A S M B B c 6 o C I G W J Q J 4 I Y p d 8 z B H j 4 c W A Y z i i P p 9 u 1 C 4 9 G / a V X L P j U l F F t A a 5 e 9 p n s e / s m X D / d r v 1 U V i X E c J j 9 w d C t o M E r S V A k S E b M Y F i C o y q b i y L q A V E 3 J R 2 Y g p 9 Q h s Y 5 Q i r q K p L w D R l i Y c C K w a J k H a j U Z d F w g U u i N y y G r / h d P 3 + w p v c b j b f d m B 9 1 T u C F 8 y + 0 T h X Z 7 0 5 M V i 2 v V p 5 k l D k a x i A q t R S U J Q M o G R U d 3 l 6 s 8 e 6 S h p 6 k b r / L h F H I 1 V K T a x X I d n 3 U J Y D 2 f u X n g o Q h o 0 w
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
2013-09-25 23:38:00 -04:00
// bareMessage.jade compiled template
exports . includes . bareMessage = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( "<div" + jade . attrs ( {
id : "chat" + message . cid ,
"class" : "message" + " " + message . classList
} , {
"class" : true ,
id : true
2014-01-02 03:52:26 -05:00
} ) + '><span class="timestamp">' + jade . escape ( null == ( jade . interp = message . formattedTime ) ? "" : jade . interp ) + '</span><p class="body">' + ( ( jade . interp = message . processedBody ) == null ? "" : jade . interp ) + "</p>" ) ;
var urls = message . urls ;
buf . push ( '<section class="embeds">' ) ;
( function ( ) {
var $$obj = urls ;
if ( "number" == typeof $$obj . length ) {
for ( var $index = 0 , $$l = $$obj . length ; $index < $$l ; $index ++ ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
} else {
var $$l = 0 ;
for ( var $index in $$obj ) {
$$l ++ ;
if ( $$obj . hasOwnProperty ( $index ) ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
}
}
} ) . call ( this ) ;
buf . push ( "</section></div>" ) ;
2013-09-25 23:38:00 -04:00
}
return buf . join ( "" ) ;
} ;
2013-10-15 15:15:25 -04:00
// call.jade compiled template
exports . includes . call = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2013-10-15 22:16:09 -04:00
buf . push ( '<div class="call"><img class="callerAvatar"/><h1 class="caller"><span class="callerName"></span><span class="callerNumber"></span></h1><h2 class="callTime"></h2><div class="callActions"><button class="answer">Answer</button><button class="ignore">Ignore</button><button class="cancel">Cancel</button><button class="end">End</button><button class="mute">Mute</button><button class="unmute">Unmute</button></div></div>' ) ;
2013-10-15 15:15:25 -04:00
}
return buf . join ( "" ) ;
} ;
2013-08-29 23:38:28 -04:00
// contactListItem.jade compiled template
exports . includes . contactListItem = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2013-09-27 12:36:04 -04:00
buf . push ( '<li class="contact"><div class="wrap"><img' + jade . attrs ( {
2013-08-29 23:38:28 -04:00
src : contact . avatar ,
"class" : "avatar"
} , {
src : true
2013-09-27 12:36:04 -04:00
} ) + '/><div class="user"><span class="name">' + jade . escape ( null == ( jade . interp = contact . displayName ) ? "" : jade . interp ) + '</span><span class="idleTime">' + jade . escape ( null == ( jade . interp = contact . idleSince ) ? "" : jade . interp ) + '</span></div><div class="unread">' + jade . escape ( null == ( jade . interp = contact . unreadCount ) ? "" : jade . interp ) + '</div><div class="status">' + jade . escape ( null == ( jade . interp = contact . status ) ? "" : jade . interp ) + "</div></div></li>" ) ;
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
// contactListItemResource.jade compiled template
exports . includes . contactListItemResource = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( '<li><p class="jid">' + jade . escape ( null == ( jade . interp = resource . jid ) ? "" : jade . interp ) + '</p><p class="status">' + jade . escape ( null == ( jade . interp = resource . status ) ? "" : jade . interp ) + "</p></li>" ) ;
}
return buf . join ( "" ) ;
} ;
2013-10-16 13:48:40 -04:00
// contactRequest.jade compiled template
exports . includes . contactRequest = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 08:56:02 -05:00
buf . push ( '<li><div class="jid"></div><button class="primary small approve">Approve</button><button class="secondary small deny">Deny</button></li>' ) ;
2013-10-16 13:48:40 -04:00
}
return buf . join ( "" ) ;
} ;
2014-01-01 19:24:11 -05:00
// embeds.jade compiled template
exports . includes . embeds = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
if ( locals . type === "photo" ) {
2014-01-02 05:48:21 -05:00
buf . push ( '<section class="embed active"><a' + jade . attrs ( {
2014-01-01 19:24:11 -05:00
href : locals . original ,
target : "_blank" ,
2014-01-02 03:52:26 -05:00
"class" : "photo"
2014-01-01 19:24:11 -05:00
} , {
href : true ,
target : true
} ) + "><img" + jade . attrs ( {
width : locals . width ,
height : locals . height ,
src : locals . url ,
alt : locals . title ,
"class" : "embedded"
} , {
width : true ,
height : true ,
src : true ,
alt : true
2014-01-02 03:52:26 -05:00
} ) + "/>" ) ;
if ( locals . title || locals . description ) {
buf . push ( '<div class="description">' ) ;
if ( locals . title ) {
buf . push ( "<h3>" + jade . escape ( null == ( jade . interp = locals . title ) ? "" : jade . interp ) + "</h3>" ) ;
}
if ( locals . description ) {
buf . push ( "<p>" + jade . escape ( null == ( jade . interp = locals . description ) ? "" : jade . interp ) + "</p>" ) ;
}
buf . push ( "</div>" ) ;
}
2014-01-02 05:48:21 -05:00
buf . push ( "</a></section>" ) ;
2014-01-01 19:24:11 -05:00
} else if ( locals . type === "video" && locals . thumbnail _url ) {
2014-01-02 05:48:21 -05:00
buf . push ( '<section class="embed active"><a' + jade . attrs ( {
2014-01-01 19:24:11 -05:00
href : locals . original ,
target : "_blank" ,
2014-01-02 05:48:21 -05:00
"class" : "preview"
2014-01-01 19:24:11 -05:00
} , {
href : true ,
target : true
} ) + "><img" + jade . attrs ( {
width : locals . width ,
height : locals . height ,
src : locals . thumbnail _url ,
alt : locals . title ,
"class" : "embedded"
} , {
width : true ,
height : true ,
src : true ,
alt : true
2014-01-02 03:52:26 -05:00
} ) + "/>" ) ;
if ( locals . title || locals . description ) {
buf . push ( '<div class="description">' ) ;
if ( locals . title ) {
buf . push ( "<h3>" + jade . escape ( null == ( jade . interp = locals . title ) ? "" : jade . interp ) + "</h3>" ) ;
}
if ( locals . description ) {
buf . push ( "<p>" + jade . escape ( null == ( jade . interp = locals . description ) ? "" : jade . interp ) + "</p>" ) ;
}
buf . push ( "</div>" ) ;
}
2014-01-02 05:48:21 -05:00
buf . push ( "</a></section>" ) ;
2014-01-01 19:24:11 -05:00
}
}
return buf . join ( "" ) ;
} ;
2013-08-29 23:38:28 -04:00
// message.jade compiled template
exports . includes . message = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2014-01-06 22:40:18 -05:00
buf . push ( '<li><div class="message"><span class="timestamp">' + jade . escape ( null == ( jade . interp = message . timestamp ) ? "" : jade . interp ) + '</span><p class="body">' + jade . escape ( null == ( jade . interp = message . body ) ? "" : jade . interp ) + "</p></div></li>" ) ;
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
2013-09-25 23:38:00 -04:00
// messageGroup.jade compiled template
exports . includes . messageGroup = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( "<li></li>" ) ;
}
return buf . join ( "" ) ;
} ;
2013-12-13 19:16:40 -05:00
// mucBareMessage.jade compiled template
exports . includes . mucBareMessage = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( "<div" + jade . attrs ( {
id : "chat" + message . cid ,
"class" : "message" + " " + message . classList
} , {
"class" : true ,
id : true
2014-01-02 04:13:57 -05:00
} ) + '><span class="timestamp">' + jade . escape ( null == ( jade . interp = message . formattedTime ) ? "" : jade . interp ) + '</span><p class="body">' + ( ( jade . interp = message . processedBody ) == null ? "" : jade . interp ) + "</p>" ) ;
var urls = message . urls ;
buf . push ( '<section class="embeds">' ) ;
( function ( ) {
var $$obj = urls ;
if ( "number" == typeof $$obj . length ) {
for ( var $index = 0 , $$l = $$obj . length ; $index < $$l ; $index ++ ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
} else {
var $$l = 0 ;
for ( var $index in $$obj ) {
$$l ++ ;
if ( $$obj . hasOwnProperty ( $index ) ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
}
}
} ) . call ( this ) ;
buf . push ( "</section></div>" ) ;
2013-12-13 19:16:40 -05:00
}
return buf . join ( "" ) ;
} ;
2013-09-16 19:12:00 -04:00
// mucListItem.jade compiled template
exports . includes . mucListItem = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 08:56:02 -05:00
buf . push ( '<li class="contact"><div class="unread">' + jade . escape ( null == ( jade . interp = contact . unreadCount ) ? "" : jade . interp ) + '</div><div class="name">' + jade . escape ( null == ( jade . interp = contact . displayName ) ? "" : jade . interp ) + '</div><button class="primary small joinRoom">Join</button><button class="secondary small leaveRoom">Leave</button></li>' ) ;
2013-09-16 19:12:00 -04:00
}
return buf . join ( "" ) ;
} ;
2013-12-31 18:02:07 -05:00
// mucRosterItem.jade compiled template
exports . includes . mucRosterItem = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( '<li class="online"><div class="name"></div></li>' ) ;
}
return buf . join ( "" ) ;
} ;
2013-12-13 19:16:40 -05:00
// mucWrappedMessage.jade compiled template
exports . includes . mucWrappedMessage = function anonymous ( locals ) {
2013-09-18 19:24:40 -04:00
var buf = [ ] ;
with ( locals || { } ) {
2013-12-19 18:34:29 -05:00
buf . push ( '<li><div class="sender"><div class="name">' + jade . escape ( null == ( jade . interp = message . from . resource ) ? "" : jade . interp ) + '</div></div><div class="messageWrapper"><div' + jade . attrs ( {
2013-12-13 19:16:40 -05:00
id : "chat" + message . cid ,
"class" : "message" + " " + message . classList
} , {
"class" : true ,
id : true
2014-01-02 04:13:57 -05:00
} ) + '><span class="timestamp">' + jade . escape ( null == ( jade . interp = message . formattedTime ) ? "" : jade . interp ) + '</span><p class="body">' + ( ( jade . interp = message . processedBody ) == null ? "" : jade . interp ) + "</p>" ) ;
var urls = message . urls ;
buf . push ( '<section class="embeds">' ) ;
( function ( ) {
var $$obj = urls ;
if ( "number" == typeof $$obj . length ) {
for ( var $index = 0 , $$l = $$obj . length ; $index < $$l ; $index ++ ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
} else {
var $$l = 0 ;
for ( var $index in $$obj ) {
$$l ++ ;
if ( $$obj . hasOwnProperty ( $index ) ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
}
}
} ) . call ( this ) ;
buf . push ( "</section></div></div></li>" ) ;
2013-09-18 19:24:40 -04:00
}
return buf . join ( "" ) ;
} ;
2013-09-25 23:38:00 -04:00
// wrappedMessage.jade compiled template
exports . includes . wrappedMessage = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2013-12-13 19:16:40 -05:00
buf . push ( '<li><div class="sender"><a href="#" class="messageAvatar"><img' + jade . attrs ( {
2013-09-25 23:38:00 -04:00
src : message . sender . avatar ,
alt : message . sender . displayName ,
"data-placement" : "below"
} , {
src : true ,
alt : true ,
"data-placement" : true
2013-12-13 19:16:40 -05:00
} ) + '/></a></div><div class="messageWrapper"><div' + jade . attrs ( {
2013-09-25 23:38:00 -04:00
id : "chat" + message . cid ,
"class" : "message" + " " + message . classList
} , {
"class" : true ,
id : true
2014-01-02 03:52:26 -05:00
} ) + '><span class="timestamp">' + jade . escape ( null == ( jade . interp = message . formattedTime ) ? "" : jade . interp ) + '</span><p class="body">' + ( ( jade . interp = message . processedBody ) == null ? "" : jade . interp ) + "</p>" ) ;
var urls = message . urls ;
buf . push ( '<section class="embeds">' ) ;
( function ( ) {
var $$obj = urls ;
if ( "number" == typeof $$obj . length ) {
for ( var $index = 0 , $$l = $$obj . length ; $index < $$l ; $index ++ ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
} else {
var $$l = 0 ;
for ( var $index in $$obj ) {
$$l ++ ;
if ( $$obj . hasOwnProperty ( $index ) ) {
var item = $$obj [ $index ] ;
if ( item . source == "body" ) {
buf . push ( '<section class="embed hidden"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
} else {
buf . push ( '<section class="embed"><a' + jade . attrs ( {
href : item . href ,
"class" : "source"
} , {
href : true
} ) + ">" + jade . escape ( null == ( jade . interp = item . desc ) ? "" : jade . interp ) + "</a></section>" ) ;
}
}
}
}
} ) . call ( this ) ;
buf . push ( "</section></div></div></li>" ) ;
2013-09-25 23:38:00 -04:00
}
return buf . join ( "" ) ;
} ;
2013-09-12 14:18:44 -04:00
// growlMessage.jade compiled template
exports . misc . growlMessage = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
buf . push ( '<div class="growlMessage">' ) ;
if ( icon ) {
buf . push ( "<img" + jade . attrs ( {
src : icon ,
height : "30" ,
width : "30"
} , {
src : true ,
height : true ,
width : true
} ) + "/>" ) ;
}
if ( title ) {
buf . push ( "<h1>" + jade . escape ( null == ( jade . interp = title ) ? "" : jade . interp ) + "</h1>" ) ;
}
if ( description ) {
buf . push ( "<p>" + jade . escape ( null == ( jade . interp = description ) ? "" : jade . interp ) + "</p>" ) ;
}
buf . push ( "</div>" ) ;
}
return buf . join ( "" ) ;
} ;
2013-08-29 23:38:28 -04:00
// chat.jade compiled template
exports . pages . chat = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 08:56:02 -05:00
buf . push ( '<section class="page chat"><section class="conversation"><header><h1><span class="status"></span><span class="name"></span><button class="primary small call">Call</button><button class="secondary small remove">Remove</button></h1><div class="tzo"></div><div class="activeCall"><video autoplay="autoplay" class="remote"></video><video autoplay="autoplay" muted="muted" class="local"></video><aside class="button-wrap"><button class="accept primary">Accept</button><button class="end secondary">End</button><div class="button-group outlined"><button class="mute">Mute</button><button class="unmute">Unmute</button></div></aside></div></header><ul class="messages scroll-container"></ul><div class="chatBox"><form><textarea name="chatInput" type="text" placeholder="Send a message..." autocomplete="off"></textarea></form></div></section></section>' ) ;
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
2013-09-16 19:12:00 -04:00
// groupchat.jade compiled template
exports . pages . groupchat = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2014-11-17 15:09:54 -05:00
buf . push ( '<section class="page chat"><section class="group conversation"><header class="online"><h1><span class="name"></span><span contenteditable="true" class="status"></span></h1><div class="controls"><button class="primary small joinRoom">Join</button><button class="secondary small leaveRoom">Leave</button></div></header><ul class="messages"></ul><ul class="groupRoster"></ul><div class="chatBox"><form><textarea name="chatInput" type="text" placeholder="Send a message..." autocomplete="off"></textarea></form></div></section></section>' ) ;
2013-09-16 19:12:00 -04:00
}
return buf . join ( "" ) ;
} ;
2013-08-29 23:38:28 -04:00
// main.jade compiled template
exports . pages . main = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2015-02-09 08:56:02 -05:00
buf . push ( '<section class="page main"><div id="avatarChanger"><h4>Change Avatar</h4><div class="uploadRegion"><p>Drag and drop a new avatar here</p><img/><form><input id="uploader" type="file"/></form></div></div><div><h4>Desktop Integration</h4><button class="enableAlerts">Enable alerts</button><button class="primary installFirefox">Install app</button></div><div><button class="logout">Logout</button></div></section>' ) ;
2013-09-03 18:25:14 -04:00
}
return buf . join ( "" ) ;
} ;
// signin.jade compiled template
exports . pages . signin = function anonymous ( locals ) {
var buf = [ ] ;
with ( locals || { } ) {
2013-10-24 17:32:20 -04:00
buf . push ( '<section class="page signin"><div id="loginForm"><form><label>JID:<input type="text" id="jid" placeholder="you@aweso.me"/></label><label>Password:<input type="password" id="password"/></label><label>WebSocket URL:<input type="text" id="wsURL" placeholder="wss://aweso.me:5281/xmpp-websocket"/></label><input type="submit" value="Connect" class="button primary"/></form></div></section>' ) ;
2013-08-29 23:38:28 -04:00
}
return buf . join ( "" ) ;
} ;
// attach to window or export with commonJS
if ( typeof module !== "undefined" && typeof module . exports !== "undefined" ) {
module . exports = exports ;
} else if ( typeof define === "function" && define . amd ) {
define ( exports ) ;
} else {
root . templatizer = exports ;
}
} ) ( ) ;