Skip to content

Instantly share code, notes, and snippets.

View enyo's full-sized avatar
🙌
Primarily working on Pausly

Matias Meno enyo

🙌
Primarily working on Pausly
View GitHub Profile
content: SC.ContainerView.design({
layout: { left: 250, top: 0, bottom: 0, right: 0 },
nowShowing: 'Settings.BankView'
})
<?php
$user = $userDao->get();
$user->username = 'enyo';
$user->find(); // Calls $userDao->find($this) internally
$users = $userDao->get();
$users->firstName = 'Matthias';
foreach ($users->findAll() as $user) { /* blabla */ }
@view(sc-button-view).main-menu-button {
background: none;
.sc-button-main-menu-image {
width: 40px;
height: 40px;
display: block;
}
}
.sc-theme .sc-view.sc-button-view.main-menu-button {
background: none;
.sc-button-main-menu-image {
width: 40px;
height: 40px;
display: block;
}
}
# Add initial buildfile information here
config :all, :required => [:sproutcore ], :theme => :'inc_theme'
config :inventory, :required => [:sproutcore, :"inc" ], :title=>"Inventory"
config :settings, :required => [:sproutcore, :"inc" ], :title=>"Settings"
# The proxy may needs adaption
proxy '/proxy/', :to => "localhost", :url => '/inc-proxy/', :protocol => 'http'
enyo@matbook:inc-frontend $ ../abbot/bin/sc-build settings --verbose
INFO ~ Loaded project at: /Volumes/CaseFS/git/inc-frontend
INFO ~ Building targets: /settings
INFO ~ Building languages: de,en
INFO ~ Building manifest for: /settings:de
INFO ~ Building manifest for: /settings:en
INFO ~ Building entries for /settings:de...
INFO ~ javascript.js -> tmp/build/static/settings/de/00bd0c774e5be91999c75f0937c60d65575b3f77/javascript.js
INFO ~ Compressing CSS with YUI .... /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/stylesheet__2.css
INFO ~ Compressing with YUI: /Volumes/CaseFS/git/inc-frontend/tmp/staging/static/inc_theme/de/2d94377a36363b73b41fc811a4be0366670d7cbe/javascript-packed__5.js...
var tagGroups = Inc.store.find(Inc.ALL_TAG_GROUPS_QUERY);
Inc.allTagGroupsController.set('content', tagGroups);
Inc.allTagGroupsController.get('selection').clear();
// The Tag model
isAssignedToSelectedArticle: function(key, value) {
// writing ...
if (value !== undefined) {
if (value === true) {
Inventory.editedArticleController.get('tags').pushObject(this);
}
else {
Inventory.editedArticleController.get('tags').popObject(this);
// handle checkbox
key = this.getDelegateProperty('contentCheckboxKey', del) ;
if (key) {
value = content ? (content.get ? content.get(key) : content[key]) : NO ;
this.renderCheckbox(working, value);
classArray.push('has-checkbox');
}
clearSelection: function() {
// When the content changes, reset the selection.
this.set('selection', null);
}.observes('content')