Download:
child 46:e3696f4866fc
parent 44:3f0465a92b8f
45:3e09cda9a660
Anton Shestakov <av6@dwimlabs.net>, Fri, 25 Mar 2016 10:16:40 +0800
contacts: use rivets more, don't spread model attributes

7 файлов изменено, 43 вставок(+), 28 удалений(-) [+]
coffee/contacts.coffee file | annotate | diff | comparison | revisions
coffee/rivets.coffee file | annotate | diff | comparison | revisions
index.html file | annotate | diff | comparison | revisions
js/contacts.js file | annotate | diff | comparison | revisions
js/contacts.js.map file | annotate | diff | comparison | revisions
js/rivets.js file | annotate | diff | comparison | revisions
js/rivets.js.map file | annotate | diff | comparison | revisions
--- a/coffee/contacts.coffee Fri Mar 25 00:24:05 2016 +0800
+++ b/coffee/contacts.coffee Fri Mar 25 10:16:40 2016 +0800
@@ -37,14 +37,8 @@
colors: Tram.colors.avatar
template: $('#avatar-template').html()
- hash: (string) ->
- result = 0
- for i in [0...string.length]
- result += string.charCodeAt(i)
- result
-
- getHashedColors: ->
- ci = @hash(@model.get 'bjid') % @colors.length
+ getColors: (hash) =>
+ ci = hash % @colors.length
"color: white; background: #{ @colors[ci] };"
render: ->
@@ -73,8 +67,8 @@
bind: ->
- getPipStyle: ->
- "background: #{ @colors[@model.get('show')] || @colors['default'] };"
+ getPipColor: (show) =>
+ "background: #{ @colors[show] || @colors['default'] };"
render: ->
@rivet = rivets.bind(@el, model: @model, view: this)
--- a/coffee/rivets.coffee Fri Mar 25 00:24:05 2016 +0800
+++ b/coffee/rivets.coffee Fri Mar 25 10:16:40 2016 +0800
@@ -16,6 +16,18 @@
value?.charAt?(0) ? ' '
+rivets.formatters['dumb-hash'] = (value) ->
+ result = 0
+ if value?.length
+ for i in [0...value.length]
+ result += value.charCodeAt(i)
+ return result
+
+
+rivets.formatters['fn'] = (value, fn) ->
+ return fn(value)
+
+
rivets.formatters['only'] = (value, allowed...) ->
if value in allowed then value else ''
--- a/index.html Fri Mar 25 00:24:05 2016 +0800
+++ b/index.html Fri Mar 25 10:16:40 2016 +0800
@@ -72,7 +72,7 @@
<script type="text/template" id="avatar-template">
<img class="avatar" rv-if="model:d/avatar" rv-src="model:d/avatar">
- <div class="avatar" rv-unless="model:d/avatar" rv-text="model:d/handle | first-letter" rv-style="view.getHashedColors < model:bjid"></div>
+ <div class="avatar" rv-unless="model:d/avatar" rv-text="model:d/handle | first-letter" rv-style="model:bjid | dumb-hash | fn view.getColors"></div>
</script>
<script type="text/template" id="message-template">
<div class="splitter" rv-if="model:d/split"></div>
@@ -87,7 +87,7 @@
</script>
<script type="text/template" id="contact-template">
<div class="column avatar-column">
- <div class="status-pip" rv-title="model:show" rv-style="view.getPipStyle < model:show"></div>
+ <div class="status-pip" rv-title="model:show" rv-style="model:show | fn view.getPipColor"></div>
</div>
<div class="column uk-width-1-1">
<div class="uk-text-bold" rv-text="model:d/handle"></div>
--- a/js/contacts.js Fri Mar 25 00:24:05 2016 +0800
+++ b/js/contacts.js Fri Mar 25 10:16:40 2016 +0800
@@ -1,7 +1,8 @@
// Generated by CoffeeScript 1.10.0
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- hasProp = {}.hasOwnProperty;
+ hasProp = {}.hasOwnProperty,
+ bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Tram.Contact = (function(superClass) {
extend(Contact, superClass);
@@ -67,6 +68,7 @@
extend(AvatarView, superClass);
function AvatarView() {
+ this.getColors = bind(this.getColors, this);
return AvatarView.__super__.constructor.apply(this, arguments);
}
@@ -78,18 +80,9 @@
AvatarView.prototype.template = $('#avatar-template').html();
- AvatarView.prototype.hash = function(string) {
- var i, j, ref, result;
- result = 0;
- for (i = j = 0, ref = string.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
- result += string.charCodeAt(i);
- }
- return result;
- };
-
- AvatarView.prototype.getHashedColors = function() {
+ AvatarView.prototype.getColors = function(hash) {
var ci;
- ci = this.hash(this.model.get('bjid')) % this.colors.length;
+ ci = hash % this.colors.length;
return "color: white; background: " + this.colors[ci] + ";";
};
@@ -115,6 +108,7 @@
extend(ContactView, superClass);
function ContactView() {
+ this.getPipColor = bind(this.getPipColor, this);
return ContactView.__super__.constructor.apply(this, arguments);
}
@@ -135,8 +129,8 @@
ContactView.prototype.bind = function() {};
- ContactView.prototype.getPipStyle = function() {
- return "background: " + (this.colors[this.model.get('show')] || this.colors['default']) + ";";
+ ContactView.prototype.getPipColor = function(show) {
+ return "background: " + (this.colors[show] || this.colors['default']) + ";";
};
ContactView.prototype.render = function() {
--- a/js/contacts.js.map Fri Mar 25 00:24:05 2016 +0800
+++ b/js/contacts.js.map Fri Mar 25 10:16:40 2016 +0800
@@ -6,5 +6,5 @@
"coffee/contacts.coffee"
],
"names": [],
- "mappings": ";AAAA;AAAA,MAAA;;;EAAM,IAAI,CAAC;;;;;;;sBACT,WAAA,GAAa;;sBACb,QAAA,GACE;MAAA,QAAA,EAAU,aAAV;MACA,IAAA,EAAM,SADN;;;sBAGF,UAAA,GAAY,SAAA;MACV,IAAC,CAAA,EAAD,CAAI,mBAAJ,EAAyB,SAAA;AACvB,YAAA;QAAA,MAAA,GAAS,IAAC,CAAA,GAAD,CAAK,QAAL;QACT,sBAAG,MAAM,CAAE,cAAR,sBAAiB,MAAM,CAAE,cAA5B;iBACE,IAAC,CAAA,GAAD,CAAK,UAAL,EAAiB,OAAA,GAAS,MAAM,CAAC,IAAhB,GAAsB,UAAtB,GAAiC,MAAM,CAAC,IAAzD,EADF;SAAA,MAAA;iBAGE,IAAC,CAAA,KAAD,CAAO,UAAP,EAHF;;MAFuB,CAAzB;aAOA,IAAC,CAAA,EAAD,CAAI,iDAAJ,EAAuD,SAAA;eACrD,IAAC,CAAA,GAAD,CAAK,UAAL,EAAiB,IAAC,CAAA,GAAD,CAAK,UAAL,CAAA,IAAoB,IAAC,CAAA,GAAD,CAAK,UAAL,CAApB,IAAwC,I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C,EAAhB,CAAmB,EAAA,GAAK,CAAxB,CAA0B,CAAC,KAA3B,CAAiC,EAAjC,EAHF;;IAJK;;0BASP,MAAA,GAAQ,SAAC,UAAD,EAAa,OAAb;MACN,IAAG,CAAI,OAAO,CAAC,GAAf;eACE,UAAU,CAAC,IAAX,CAAgB,CAAA,SAAA,KAAA;iBAAA,SAAC,KAAD;YACd,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAf,CAAA;mBACA,KAAC,CAAA,GAAG,CAAC,MAAL,CAAY,KAAK,CAAC,IAAI,CAAC,EAAvB;UAFc;QAAA,CAAA,CAAA,CAAA,IAAA,CAAhB,EADF;;IADM;;;;KAdqB,QAAQ,CAAC;AAnFxC"
}
\ No newline at end of file
--- a/js/rivets.js Fri Mar 25 00:24:05 2016 +0800
+++ b/js/rivets.js Fri Mar 25 10:16:40 2016 +0800
@@ -23,6 +23,21 @@
return (ref = value != null ? typeof value.charAt === "function" ? value.charAt(0) : void 0 : void 0) != null ? ref : ' ';
};
+ rivets.formatters['dumb-hash'] = function(value) {
+ var i, j, ref, result;
+ result = 0;
+ if (value != null ? value.length : void 0) {
+ for (i = j = 0, ref = value.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
+ result += value.charCodeAt(i);
+ }
+ }
+ return result;
+ };
+
+ rivets.formatters['fn'] = function(value, fn) {
+ return fn(value);
+ };
+
rivets.formatters['only'] = function() {
var allowed, value;
value = arguments[0], allowed = 2 <= arguments.length ? slice.call(arguments, 1) : [];
--- a/js/rivets.js.map Fri Mar 25 00:24:05 2016 +0800
+++ b/js/rivets.js.map Fri Mar 25 10:16:40 2016 +0800
@@ -6,5 +6,5 @@
"coffee/rivets.coffee"
],
"names": [],
- "mappings": ";AAAA;AAAA,MAAA;;;EAAA,MAAM,CAAC,QAAS,CAAA,GAAA,CAAhB,GACE;IAAA,OAAA,EAAS,SAAC,GAAD,EAAM,OAAN,EAAe,QAAf;aACP,GAAG,CAAC,EAAJ,CAA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