This file contains 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
{ | |
init:[ | |
'<div id="list"></div>' | |
], | |
data:{ | |
data: [ | |
{ idfield:'abc', desc: 'parent1', children: [ { id:'fgh', desc: 'child1' }, { id:'lmn', desc: 'child2' } ] }, | |
{ idfield:'def', desc: 'parent2', children: [ { id:'xyz', desc: 'child1' } ] } | |
] | |
}, |
This file contains 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
({ | |
"id": "cw.Sys.Diff", | |
"require": [{ | |
"jsondiffpatch": "lib/diff.js" | |
}], | |
"params": { | |
}, | |
"data": { | |
"cmd": "", | |
"title": "Diff", |
This file contains 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
.. Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
.. use this file except in compliance with the License. You may obtain a copy of | |
.. the License at | |
.. | |
.. http://www.apache.org/licenses/LICENSE-2.0 | |
.. | |
.. Unless required by applicable law or agreed to in writing, software | |
.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
.. License for the specific language governing permissions and limitations under |
This file contains 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
.. Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
.. use this file except in compliance with the License. You may obtain a copy of | |
.. the License at | |
.. | |
.. http://www.apache.org/licenses/LICENSE-2.0 | |
.. | |
.. Unless required by applicable law or agreed to in writing, software | |
.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
.. License for the specific language governing permissions and limitations under |
This file contains 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
function(doc){ | |
// Validates ddoc map functions to prevent them | |
// from calling send(), getRow() and so on. | |
// Ddoc with this validate_doc_update must have | |
// property .Uglify with UglifyJS lib (tested for 2.4.15). | |
require("Uglify"); | |
This file contains 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
.. Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
.. use this file except in compliance with the License. You may obtain a copy of | |
.. the License at | |
.. | |
.. http://www.apache.org/licenses/LICENSE-2.0 | |
.. | |
.. Unless required by applicable law or agreed to in writing, software | |
.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
.. License for the specific language governing permissions and limitations under |
This file contains 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
(function () { | |
// matches.js | |
// ---------- | |
// Powerful pattern matching for Javascript | |
// | |
// version : 0.5.1 | |
// author : Nathan Faubion <nathan@n-son.com> | |
// repo : https://github.com/natefaubion/matches.js | |
// license : MIT |
This file contains 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
===> Cleaning out couch... | |
===> Cleaning out couch_changes... | |
===> Cleaning out couch_dbupdates... | |
===> Cleaning out couch_httpd... | |
===> Cleaning out couch_index... | |
===> Cleaning out couch_mrview... | |
===> Cleaning out couch_randomdoc... | |
===> Cleaning out couch_replicator... | |
===> Cleaning out geocouch... | |
===> Verifying dependencies... |
This file contains 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
// Tests process switching penalties for calling | |
// CouchDB query server js functions. | |
// Requires jQuery | |
var passes = 50, host="https://cloudwall.cloudant.com/testr/"; | |
function go (msg, url) { | |
var pi = $.Deferred(), | |
ctr = passes, |
This file contains 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
({ | |
// name must be present for widgets, | |
// and it must be unique | |
name:"Expense report demo", | |
id:"in.ExpenseReportDemo", | |
// Default data | |
data:{ | |
ERROR:false, // holds overall error state, true if form has errors | |
title:"", |
NewerOlder