Récupérer les sources:
git clone -b formation-detail https://github.com/KleeGroup/rodolphe-demo.git
/* Process the occupied size in the local storage. | |
* @return {localstorageSize} [description] | |
*/ | |
function processLocalStorageSize() { | |
var total = 0; | |
for (var x in localStorage) { | |
total += (localStorage[x].length * 2) / 1024 / 1024; | |
//console.log(x + " = " + amount.toFixed(2) + " MB"); | |
} | |
return total.toFixed(2) + " MB"; |
export PYTHONPATH=/c/Python27/ | |
export GYP_MSVS_VERSION=2013 | |
#Define the proxy variables. | |
export HTTPS_PROXY=http://proxy:port | |
export HTTP_PROXY=http://proxy:port | |
export no_proxy=localhost,otherdomain.lan.net |
{ | |
"movId": 220005, | |
"title": "Bokura no jidai", | |
"released": "2012-04-22T00:00:00.000Z", | |
"year": 2007, | |
"metadasJson": "\"Bokura no jidai\" (2007) {Shun Oguri, Tôma Ikuta \u0026 Masaki Okada 1/2}", | |
"rank": 220005, | |
"actors": [ | |
{ | |
"peoId": 5169769, |
/*global React, Focus */ | |
//Récupération des dépendances. | |
var createDetail = Focus.components.page.createDetail; | |
var Detail = Focus.components.common.detail.component; | |
//Blocs composants la page. | |
var MovieDetails = require('./movieDetails'); | |
var Castings = require('./castings'); | |
var MovieProducers = require('./movieProducers'); | |
var MovieDirectors = require('./movieDirectors'); |
Built-in Atom packages (84)
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
Le keynote est présenté par @vjeux, qui travaille chez Facebook. Il insiste sur le fait que React a pour but de se concentrer sur le V de MVC. Il explique que React est construit autour de deux principe:
Il a ensuite donné la vision de React, les sujets importants:
npm install --save-dev [email protected] babel-eslint eslint-plugin-react |
Regular expression are used for many things. It whould be complex to write code to check validation.
There is two part:
//
|
/** | |
<FileUpload> | |
{this.fieldFor('maProp')} | |
</Fileupload> | |
*/ | |
module.exports = React.createClass({ | |
render: function() { | |
return ( | |
<form method='post' action={this.props.action} encType="multipart/form-data"> |