This repository has been archived by the owner on May 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add missing exports to src/index.js * remove unused index.js * cleanup build scripts for reps * update path to mc reps * synchronize tests from mc * update mc path in publish assets * add load-reps to reps/ * update bundle exports to be compatible with latest mc changes * migrate reps tests to use load-reps * synchronize reps from mc * cleanup prepare-mochitest-dev
- Loading branch information
1 parent
b004daf
commit ff762ea
Showing
71 changed files
with
1,051 additions
and
591 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
const React = require("react"); | ||
|
||
const { MODE } = require("./reps/constants"); | ||
const Rep = React.createFactory(require("./reps/rep")); | ||
const Grip = require("./reps/grip"); | ||
const { REPS } = require("./reps/rep"); | ||
const { createFactories, parseURLEncodedText, parseURLParams } = require("./reps/rep-utils"); | ||
|
||
module.exports = { | ||
Rep, | ||
Grip, | ||
MODE | ||
REPS, | ||
MODE, | ||
createFactories, | ||
parseURLEncodedText, | ||
parseURLParams, | ||
}; |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
// Dependencies | ||
const React = require("react"); | ||
const DOM = React.DOM; | ||
|
||
const { wrapRender } = require("./rep-utils"); | ||
|
||
/** | ||
* Renders a caption. This template is used by other components | ||
* that needs to distinguish between a simple text/value and a label. | ||
*/ | ||
const Caption = React.createClass({ | ||
displayName: "Caption", | ||
|
||
render: function () { | ||
propTypes: { | ||
object: React.PropTypes.object, | ||
}, | ||
|
||
render: wrapRender(function () { | ||
return ( | ||
DOM.span({"className": "caption"}, this.props.object) | ||
); | ||
}, | ||
}), | ||
}); | ||
|
||
// Exports from this module | ||
module.exports = Caption; |
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
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
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
Oops, something went wrong.