This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centerEdit: SC.View.design({ | |
layout: { top: 0, left: 0, right: 0, bottom: 0 }, | |
childViews: 'editToolbar editFooter editMiddle'.w(), | |
editToolbar: SC.View.design({ | |
layout: { top: 0, left: 0, right: 0, height: 36 }, | |
classNames: ['bb-toolbar'], | |
childViews: 'addProperty addRelation'.w(), | |
addProperty: SC.ButtonView.design({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in main.js : | |
var store = BB.get('store'); | |
//var source = store._getDataSource(); | |
//var libraries = source.fetch(store, 'BB.Library'); | |
//var descriptions = source.fetch(store, 'BB.Description'); | |
store.findAll('BB.Library'); | |
store.findAll('BB.Description'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SC.MyCouchdbDataSource = SC.DataSource.extend( { | |
root: "/couchdb/", | |
database: "", | |
design: "", | |
databasePath: function(){ | |
return this.get('root') + this.get('database'); | |
}.property('database'), | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllowEncodedSlashes On | |
ProxyRequests Off | |
KeepAlive Off | |
<Proxy *> | |
Order deny,allow | |
Deny from all | |
Allow from localhost 192.168.0 | |
</Proxy> | |
ProxyPass /couchdb http://localhost:5984/ nocanon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Global formatters | |
* from display to internal representation and back | |
* | |
* @author Thomas Langemann | |
*/ | |
sc_require('core'); | |
BB.mixin({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////// | |
// state transformers | |
// | |
goStateVdatabase: function(){ | |
if (this.activeB) this.activeB.disconnect(); | |
this.databaseB.connect().sync(); | |
this.activeB = this.databaseB; | |
this.viewController.set('tabSelection', 'database'); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Project: BB.listSelectionController | |
// Copyright: ©2009 My Company, Inc. | |
// ========================================================================== | |
/*globals BB */ | |
/** @class | |
(Document Your Controller Here) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activeUnits: function(){ | |
console.log('activeUnits'); | |
var us = this.get('units'); | |
if (us == this.previousUnits) return this.previousActiveUnits; | |
this.previousUnits = us; | |
var l = us.get('length'); | |
var list = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ========================================================================== | |
// Project: BB.Concept | |
// Copyright: ©2009 My Company, Inc. | |
// ========================================================================== | |
/*globals BB */ | |
/** @class | |
(Document your Model here) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contentView: SC.ListView.design({ | |
listItemActionProperty: 'actionClassName', | |
contentValueKey: "title", | |
contentBinding: "BB.associationListController.arrangedObjects", | |
//isEditable: YES, | |
//canReorderContent: YES, | |
exampleView: SC.ListItemView.extend({ | |
renderAction: function(context, actionClassName){ | |
context.push('<img src="', | |
SC.BLANK_IMAGE_URL, |
NewerOlder