Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Getting Dropzone back on track

Matias Meno enyo

🤓
Getting Dropzone back on track
View GitHub Profile
View dragfail.js
// ==========================================================================
// Project: Dragtest - mainPage
// Copyright: ©2010 Matthias Loitsch
// ==========================================================================
/*globals Dragtest */
// This page describes the main user interface for your application.
Dragtest.button = SC.ButtonView.extend({
View gist:329417
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
View test.js
components: SC.ScrollView.design({
layout: { top: 20, bottom: 10, left: 10, right: 10 },
contentView: SC.ListView.design({
content: [
{ name: 'test' },
{ name: 'test2' },
{ name: 'test3' },
View links.html
View prob.js
// 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',
View containerView.js
content: SC.ContainerView.design({
layout: { left: 250, top: 0, bottom: 0, right: 0 },
nowShowing: 'Settings.BankView'
})
View dao.php
<?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 less.css
@view(sc-button-view).main-menu-button {
background: none;
.sc-button-main-menu-image {
width: 40px;
height: 40px;
display: block;
}
}
View less2.css
.sc-theme .sc-view.sc-button-view.main-menu-button {
background: none;
.sc-button-main-menu-image {
width: 40px;
height: 40px;
display: block;
}
}
View gist:402899
# 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'