Evolution of the frontend-stack
Kenneth Auchenberg
@auchenberg
LBI, May 2012
Kenneth Auchenberg
@auchenberg
LBI, May 2012
SWNS, DailyMail
class Podio::Comment < ActivePodio::Base
property :comment_id, :integer
has_one :created_by, :class => 'ByLine'
has_many :files, :class => 'FileAttachment'
class << self
def create(commentable_type, commentable_id, attributes)
response = Podio.connection.post do |req|
req.url "/comment/#{commentable_type}/#{commentable_id}"
req.body = attributes
end
response.body['comment_id']
end
...
.podio-autocompleter {
ul {
@include border-bottom-radius(5px);
@include box-shadow-default();
border: 1px solid $color-form-input-active;
> li {
@include font-mini;
cursor: pointer;
color: $color-text-light-grey;
background-color: $color-bg-light-grey;
height: 28px;
&.active, &:hover {
@include gradient(top, $color-bg-light-grey, $color-white);
}
}
}
}
http://www.kotancode.com/2010/08/05/mef-and-the-zen-of-lego/
(function (window, $, _, Podio, undefined) {
Podio.Views.ActionBar = Backbone.PodioView.extend({
initialize: function(options) {
_.bindAll(this, 'onActionNextClicked', 'onActionPreviousClicked', 'onShortcutLikePressed', 'onShortcutNextPressed', 'onShortcutPreviousPressed');
this.podioDelegateEvents();
this.eventBus = this.options.eventBus;
},
podioEvents: {
'click .action-bar .follow' : 'onActionFollowClicked',
'click .action-bar .like' : 'onActionLikeClicked',
'click .action-bar .next' : 'onActionNextClicked',
'click .action-bar .previous' : 'onActionPreviousClicked'
},
shortcuts: {
'l' : 'onShortcutLikePressed',
'left' : 'onShortcutPreviousPressed',
'right' : 'onShortcutNextPressed'
},
onActionPreviousClicked: function(elmTarget, e) {
this.trigger('actionBar:previousItemClicked', this.model );
}
...
}