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
<?php | |
/** | |
* Smarty plugin | |
* ------------------------------------------------------------- | |
* File: block.geshi.php | |
* Type: block | |
* Name: geshi | |
* Version: 1.0, Oct 25th 2008 | |
* Author: Ben Keen ([email protected]), see: http://www.benjaminkeen.com |
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
/*global console:false,setTimeout:false,setInterval:false,clearInterval:false*/ | |
define([], function() { | |
"use strict"; | |
/** | |
* @name Queue | |
* @description A requireJS module for simplifying intensive DOM-insertion code. It lets you add a list of actions | |
* to perform on the DOM, each with a test to confirm when the DOM insertion is complete. The code then sequentially | |
* executes each action one by one, only performing the next action when the previous is compete. This ensures that |
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
Views.ConfigHeader = FauxtonAPI.View.extend({ | |
template: 'addons/config/templates/header', | |
className: 'header-right', | |
initialize: function () { | |
this.rightHeader = this.setView('#add-section-button', new Views.AddConfigOptionsButton({ | |
toggleTrayBtnSelector: '#add-new-section', | |
collection: this.collection |
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
{ | |
"deps": [ | |
{ | |
"name": "fauxton" | |
}, | |
{ | |
"name": "databases" | |
}, | |
{ | |
"name": "documents" |
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
var AddFilterForm = React.createClass({ | |
getDefaultProps: function () { | |
return { | |
tooltip: '' | |
}; | |
}, | |
componentDidMount: function () { | |
this.focusFilterField(); | |
}, |
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
var Table = React.createClass({ | |
getRows: function () { | |
return _.map(this.props.rows, function (row, i) { | |
return <TableRow key={i} row={row} /> | |
}); | |
}, | |
render: function () { | |
return ( | |
<table> | |
<thead> |
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
// the order of this file has to go lowest level elements first because they're referenced immediately | |
// as the JS first executes | |
var Tooltip = React.createClass({ | |
render: function () { | |
return ( | |
<div className="tt">{this.props.text}</div> | |
); | |
} | |
}); |
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
var registeredComponents = {}; | |
// registers a new component. Requires the component name to be unique | |
FauxtonAPI.registerComponent = function (name, component) { | |
if (_.has(registeredComponents, name)) { | |
console.error("Error: a component with the name " + name + " has already been registered."); | |
return; | |
} | |
registeredComponents[name] = component; | |
}; |
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
var Table = React.createClass({ | |
getRows: function () { | |
return _.map(this.props.rows, function (row, i) { | |
return <TableRow key={i} row={row} /> | |
}); | |
}, | |
render: function () { | |
return ( | |
<table> | |
<thead> |
OlderNewer