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
// ==========================================================================
// Project: Dragtest - mainPage
// Copyright: ©2010 Matthias Loitsch
// ==========================================================================
/*globals Dragtest */
// This page describes the main user interface for your application.
Dragtest.button = SC.ButtonView.extend({
enyo@matbook:client $ ll
total 16
-rw-r--r-- 1 enyo staff 295 Mar 3 15:57 Buildfile
-rw-r--r-- 1 enyo staff 342 Mar 3 15:58 README
drwxr-xr-x 5 enyo staff 204 Mar 7 19:08 apps
drwxr-xr-x 2 enyo staff 102 Mar 11 18:36 frameworks
drwxr-xr-x 3 enyo staff 102 Mar 11 18:45 tmp
enyo@matbook:client $ ll frameworks/
total 8
lrwxr-xr-x 1 enyo staff 46 Mar 11 18:15 sproutcore -> /Volumes/CaseFS/git/enyo-sproutcore/frameworks
components: SC.ScrollView.design({
layout: { top: 20, bottom: 10, left: 10, right: 10 },
contentView: SC.ListView.design({
content: [
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
// The menu:
menu: SC.SourceListView.design({
layout: { top: 0, left:0, bottom: 0, width: 250 },
contentValueKey: 'displayName',
contentBinding: 'Settings.menuItemsController.arrangedObjects',
selectionBinding: 'Settings.menuItemsController.selection',
localize: YES,
rowHeight: 24,
hasContentIcon: YES,
contentIconKey: 'icon',
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'