path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-icons/io/social-yahoo-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSocialYahooOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30.1 5.3c0.8 0 1.6-0.1 2.4-0.3l-10 16.6v13.4c-0.8-0.3-1.6-0.3-2.5-0.3s-1.7 0-2.5 0.3v-13.4l-10-16.6c0.8 0.3 1.6 0.3 2.5 0.3s1.7 0 2.5-0.3l7.5 12.5 7.5-12.5c0.8 0.3 1.7 0.3 2.6 0.3z m-8.7 15.6l8.7-14.3h-0.1c-0.5 0-1.2 0-1.9-0.2l-7 11.7-1.1 1.8-1.1-1.8-6.9-11.7c-0.7 0.2-1.4 0.2-2 0.2h-0.1l8.7 14.3 0.2 0.4v12.1c0.4 0 0.8 0 1.2 0s0.9 0 1.3 0v-12.1z"/></g> </Icon> ) export default IoSocialYahooOutline
node_modules/react-icons/md/local-shipping.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdLocalShipping = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 30.9c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m2.5-15h-4.1v4.1h7.4z m-22.5 15c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m23.4-17.5l5 6.6v8.4h-3.4c0 2.7-2.3 5-5 5s-5-2.3-5-5h-10c0 2.7-2.3 5-5 5s-5-2.3-5-5h-3.4v-18.4c0-1.8 1.6-3.4 3.4-3.4h23.4v6.8h5z"/></g> </Icon> ) export default MdLocalShipping
node_modules/react-icons/fa/gamepad.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaGamepad = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.3 24v-2.7q0-0.3-0.2-0.4t-0.5-0.2h-4v-4q0-0.3-0.2-0.5t-0.4-0.2h-2.7q-0.3 0-0.5 0.2t-0.2 0.5v4h-3.9q-0.3 0-0.5 0.1t-0.2 0.5v2.7q0 0.3 0.2 0.5t0.5 0.2h3.9v3.9q0 0.3 0.2 0.5t0.5 0.2h2.7q0.3 0 0.4-0.2t0.2-0.5v-3.9h4q0.3 0 0.5-0.2t0.2-0.5z m11.9 1.3q0-1.1-0.7-1.9t-1.9-0.7-1.9 0.7-0.8 1.9 0.8 1.9 1.9 0.8 1.9-0.8 0.7-1.9z m5.4-5.3q0-1.1-0.8-1.9t-1.9-0.8-1.9 0.8-0.8 1.9 0.8 1.9 1.9 0.8 1.9-0.8 0.8-1.9z m5.3 2.7q0 4.4-3.1 7.5t-7.6 3.1q-4 0-7-2.7h-4.6q-3 2.7-7 2.7-4.4 0-7.5-3.1t-3.1-7.5 3.1-7.6 7.5-3.1h18.6q4.4 0 7.6 3.1t3.1 7.6z"/></g> </Icon> ) export default FaGamepad
node_modules/react-icons/fa/cart-plus.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaCartPlus = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.6 15.7q0-0.6-0.4-1t-1-0.4h-2.8v-2.9q0-0.6-0.5-1t-1-0.4-1 0.4-0.4 1v2.9h-2.9q-0.5 0-1 0.4t-0.4 1 0.4 1 1 0.4h2.9v2.9q0 0.6 0.4 1t1 0.4 1-0.4 0.5-1v-2.9h2.8q0.6 0 1-0.4t0.4-1z m-12.8 18.6q0 1.2-0.9 2t-2 0.8-2-0.8-0.8-2 0.8-2 2-0.9 2 0.9 0.9 2z m20 0q0 1.2-0.9 2t-2 0.8-2-0.8-0.8-2 0.8-2 2-0.9 2 0.9 0.9 2z m2.8-24.3v11.4q0 0.6-0.3 1t-0.9 0.5l-23.3 2.7q0 0.1 0.1 0.5t0.1 0.6 0.1 0.4q0 0.4-0.6 1.5h20.6q0.5 0 1 0.4t0.4 1-0.4 1-1 0.4h-22.9q-0.6 0-1-0.4t-0.4-1q0-0.3 0.2-0.9t0.7-1.3 0.4-0.9l-3.9-18.3h-4.6q-0.6 0-1-0.5t-0.4-1 0.4-1 1-0.4h5.7q0.4 0 0.7 0.2t0.4 0.3 0.3 0.6 0.2 0.5 0.1 0.7 0.1 0.6h26.8q0.6 0 1 0.4t0.4 1z"/></g> </Icon> ) export default FaCartPlus
node_modules/react-icons/md/store.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdStore = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 30v-6.6h-10v6.6h10z m15-6.6h-1.6v10h-3.4v-10h-6.6v10h-16.8v-10h-1.6v-3.4l1.6-8.4h26.8l1.6 8.4v3.4z m-1.6-16.8v3.4h-26.8v-3.4h26.8z"/></g> </Icon> ) export default MdStore
node_modules/react-icons/md/settings-bluetooth.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdSettingsBluetooth = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m24.8 23.8l-3.2-3.1v6.3z m-3.2-17.4v6.3l3.2-3.2z m7.9 3.1l-7.2 7.1 7.2 7.2-9.5 9.6h-1.6v-12.7l-7.7 7.7-2.3-2.4 9.3-9.4-9.3-9.3 2.3-2.3 7.7 7.7v-12.7h1.6z m-4.5 30.5v-3.4h3.4v3.4h-3.4z m-13.4 0v-3.4h3.4v3.4h-3.4z m6.8 0v-3.4h3.2v3.4h-3.2z"/></g> </Icon> ) export default MdSettingsBluetooth
node_modules/react-icons/md/show-chart.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdShowChart = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m5.9 30.8l-2.5-2.5 12.5-12.5 6.6 6.7 11.8-13.3 2.3 2.4-14.1 15.9-6.6-6.7z"/></g> </Icon> ) export default MdShowChart
node_modules/react-icons/io/fork.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoFork = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.1 11.6z m3.9 1.4c0 2-1.2 3.7-2.9 4.5-0.9 0.5-0.8 0.9-0.8 0.9s1.2 15.6 1.2 16.6-0.2 1.4-0.7 1.9-1.2 0.6-1.8 0.6-1.2-0.2-1.7-0.6-0.8-1-0.8-1.9 1.3-16.6 1.3-16.6 0-0.5-0.9-0.9c-1.7-0.8-2.9-2.5-2.9-4.5 0-3.4 1.2-7.3 1.9-10.5h0.6v9.1c0 0.5 0.2 0.9 0.7 0.9s0.7-0.3 0.8-0.8v-0.1l0.7-9.1h0.6l0.8 9.1v0.1c0.1 0.5 0.2 0.8 0.7 0.8s0.7-0.4 0.7-0.9v-9.1h0.6c0.7 3.1 1.9 7.1 1.9 10.5z"/></g> </Icon> ) export default IoFork
node_modules/react-icons/fa/y-combinator.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaYCombinator = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.1 22.4l5.9-11.1h-2.5l-3.5 6.9q-0.5 1.1-1 2.1l-0.9-2.1-3.5-6.9h-2.7l5.9 11v7.2h2.3v-7.1z m16.2-19.5v34.2h-34.3v-34.2h34.3z"/></g> </Icon> ) export default FaYCombinator
node_modules/react-icons/io/ios-videocam.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosVideocam = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m23.6 10c1.5 0 2.6 1.1 2.6 2.6v14.7c0 1.5-1.1 2.7-2.6 2.7h-17.3c-1.5 0-2.8-1.2-2.8-2.7v-14.7c0-1.5 1.3-2.6 2.8-2.6h17.3z m4.9 6.6l7.7-4.1v15l-7.7-4.1v-6.8z"/></g> </Icon> ) export default IoIosVideocam
node_modules/react-icons/ti/cross.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiCross = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m27.5 15c-0.2 0-0.4 0-0.6 0-1.4-3.9-5.5-6.7-9.8-6.7-5.5 0-10.4 4.5-10.4 10v0.2c-1.7 0.8-4.6 3.4-4.6 6.5 0 3.7 3.4 6.7 7.1 6.7h18.3c4.6 0 8.3-3.8 8.3-8.4s-3.7-8.3-8.3-8.3z m0 13.3h-7.5v-6.3l3.6 3.6c0.1 0.2 0.4 0.2 0.6 0.2s0.4-0.1 0.6-0.2c0.3-0.3 0.3-0.9 0-1.2l-5-5c-0.1-0.1-0.2-0.1-0.3-0.2-0.2-0.1-0.4-0.1-0.7 0-0.1 0.1-0.1 0.1-0.2 0.2l-5 5c-0.3 0.3-0.3 0.9 0 1.2 0.1 0.2 0.4 0.2 0.6 0.2s0.4-0.1 0.6-0.2l3.5-3.6v6.3h-9.1c-1.9 0-3.4-1.5-3.4-3.3s1.5-3.3 3.2-3.3l2.4 0-0.4-2c-0.1-0.5-0.2-0.9-0.2-1.4 0-3.6 3-6.6 6.7-6.6 3.3 0 6 2.3 6.6 5.5l0.3 1.9 1.8-0.5c0.5-0.2 0.9-0.3 1.3-0.3 2.8 0 5 2.3 5 5s-2.2 5-5 5z"/></g> </Icon> ) export default TiCross
node_modules/react-icons/ti/cancel-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiCancelOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 34.2c-7.8 0-14.2-6.4-14.2-14.2s6.4-14.2 14.2-14.2c7.8 0 14.2 6.4 14.2 14.2s-6.4 14.2-14.2 14.2z m0-25c-6 0-10.8 4.8-10.8 10.8s4.8 10.8 10.8 10.8 10.8-4.8 10.8-10.8-4.8-10.8-10.8-10.8z m0 5c3.2 0 5.8 2.6 5.8 5.8 0 0.3 0 0.7-0.1 1l-6.7-6.7c0.3-0.1 0.7-0.1 1-0.1z m0-1.7c-1.5 0-2.8 0.4-4 1.2l10.3 10.3c0.8-1.2 1.2-2.5 1.2-4 0-4.1-3.4-7.5-7.5-7.5z m-5.7 6.5l6.7 6.7c-0.3 0.1-0.7 0.1-1 0.1-3.2 0-5.8-2.6-5.8-5.8 0-0.3 0-0.7 0.1-1z m-0.6-3c-0.8 1.2-1.2 2.5-1.2 4 0 4.1 3.4 7.5 7.5 7.5 1.5 0 2.8-0.4 4-1.2l-10.3-10.3z"/></g> </Icon> ) export default TiCancelOutline
node_modules/react-icons/fa/venus-double.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaVenusDouble = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m40 11.8q0.2 3.5-1.2 6.5t-4.2 5-6 2.3v5.8h5q0.3 0 0.5 0.2t0.2 0.5v1.5q0 0.3-0.2 0.5t-0.5 0.2h-5v5q0 0.3-0.2 0.5t-0.5 0.2h-1.5q-0.3 0-0.5-0.2t-0.2-0.5v-5h-11.4v5q0 0.3-0.2 0.5t-0.5 0.2h-1.5q-0.3 0-0.5-0.2t-0.2-0.5v-5h-5q-0.3 0-0.5-0.2t-0.2-0.5v-1.5q0-0.3 0.2-0.5t0.5-0.2h5v-5.8q-3.3-0.3-6-2.3t-4.2-5-1.2-6.5q0.4-4.6 3.7-7.9t7.9-3.8q4.6-0.5 8.4 2.1 3.8-2.6 8.4-2.1 4.6 0.4 7.9 3.8t3.7 7.9z m-20 8q2.9-2.9 2.9-6.9t-2.9-7q-2.9 2.9-2.9 7t2.9 6.9z m-7.1 3.1q2.5 0 4.8-1.3-3.4-3.7-3.4-8.7 0-5 3.4-8.8-2.3-1.2-4.8-1.2-4.2 0-7.1 2.9t-2.9 7.1 2.9 7 7.1 3z m12.8 8.5v-5.8q-3-0.3-5.7-2.1-2.7 1.8-5.7 2.1v5.8h11.4z m1.4-8.5q4.2 0 7.1-3t2.9-7-2.9-7.1-7.1-2.9q-2.5 0-4.8 1.2 3.4 3.8 3.4 8.8 0 5-3.4 8.7 2.3 1.3 4.8 1.3z"/></g> </Icon> ) export default FaVenusDouble
node_modules/react-icons/fa/github.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaGithub = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.1 2.9q4.7 0 8.6 2.3t6.3 6.2 2.3 8.6q0 5.6-3.3 10.1t-8.4 6.2q-0.6 0.1-0.9-0.2t-0.3-0.7q0 0 0-1.7t0-3q0-2.1-1.2-3.1 1.3-0.2 2.3-0.4t2.1-0.9 1.8-1.5 1.2-2.3 0.5-3.4q0-2.7-1.8-4.6 0.8-2-0.2-4.5-0.6-0.2-1.8 0.2t-2 1l-0.9 0.5q-2-0.6-4.3-0.6t-4.2 0.6q-0.4-0.2-1-0.6t-1.9-0.8-1.9-0.3q-1 2.5-0.1 4.5-1.8 1.9-1.8 4.6 0 1.9 0.5 3.4t1.1 2.3 1.8 1.5 2.1 0.9 2.3 0.4q-0.9 0.8-1.1 2.3-0.4 0.2-1 0.3t-1.3 0.1-1.4-0.5-1.3-1.4q-0.4-0.7-1-1.1t-1.1-0.6l-0.5 0q-0.5 0-0.6 0.1t-0.1 0.2 0.2 0.3 0.2 0.3l0.2 0.1q0.5 0.2 1 0.9t0.7 1.1l0.2 0.5q0.3 0.9 1 1.4t1.5 0.7 1.5 0.1 1.3-0.1l0.5 0q0 0.8 0 1.9t0 1.2q0 0.5-0.3 0.7t-0.9 0.2q-5.2-1.7-8.4-6.2t-3.3-10.1q0-4.7 2.3-8.6t6.2-6.2 8.6-2.3z m-10.6 24.6q0.1-0.2-0.2-0.3-0.2-0.1-0.2 0.1-0.1 0.1 0.1 0.2 0.2 0.2 0.3 0z m0.7 0.7q0.1-0.1-0.1-0.3-0.2-0.2-0.3-0.1-0.2 0.1 0 0.4 0.3 0.2 0.4 0z m0.7 1q0.2-0.1 0-0.4-0.2-0.3-0.4-0.1-0.2 0.1 0 0.4t0.4 0.1z m0.9 1q0.2-0.2-0.1-0.4-0.3-0.3-0.4-0.1-0.2 0.2 0 0.4 0.3 0.3 0.5 0.1z m1.3 0.5q0-0.2-0.3-0.3-0.4-0.1-0.4 0.1t0.2 0.4q0.4 0.1 0.5-0.2z m1.4 0.1q0-0.2-0.4-0.2-0.4 0-0.4 0.2 0 0.3 0.4 0.3 0.4 0 0.4-0.3z m1.3-0.2q-0.1-0.2-0.4-0.2-0.4 0.1-0.3 0.4t0.4 0.1 0.3-0.3z"/></g> </Icon> ) export default FaGithub
node_modules/react-icons/md/nature-people.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdNaturePeople = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m7.5 18.4c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z m29.5-3.1c0 6-4.6 10.9-10.4 11.6v6.5h5v3.2h-26.6v-8.2h-1.6v-6.8c0-0.9 0.7-1.6 1.6-1.6h5c0.9 0 1.6 0.7 1.6 1.6v6.8h-1.6v5h13.4v-6.6c-5.6-0.9-9.8-5.7-9.8-11.5 0-6.5 5.2-11.7 11.7-11.7s11.7 5.2 11.7 11.7z"/></g> </Icon> ) export default MdNaturePeople
node_modules/react-icons/fa/ban.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaBan = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.3 19.9q0-3.6-2-6.6l-16.8 16.9q3.1 1.9 6.6 1.9 2.5 0 4.8-0.9t3.8-2.6 2.6-3.9 1-4.8z m-22.3 6.7l16.8-16.8q-3-2.1-6.7-2.1-3.3 0-6.1 1.7t-4.4 4.4-1.6 6.1q0 3.6 2 6.7z m27.3-6.7q0 3.5-1.4 6.7t-3.6 5.5-5.5 3.7-6.7 1.3-6.6-1.3-5.5-3.7-3.6-5.5-1.4-6.7 1.4-6.7 3.6-5.4 5.5-3.7 6.6-1.4 6.7 1.4 5.5 3.7 3.6 5.4 1.4 6.7z"/></g> </Icon> ) export default FaBan
node_modules/react-icons/md/ac-unit.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdAcUnit = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m36.6 18.4v3.2h-6.9l5.4 5.4-2.4 2.5-7.7-7.9h-3.4v3.4l7.9 7.7-2.5 2.4-5.4-5.4v6.9h-3.2v-6.9l-5.4 5.4-2.4-2.4 7.8-7.7v-3.4h-3.4l-7.7 7.9-2.4-2.5 5.4-5.4h-6.9v-3.2h6.9l-5.4-5.4 2.4-2.4 7.7 7.8h3.4v-3.4l-7.9-7.7 2.5-2.4 5.4 5.4v-6.9h3.2v6.9l5.4-5.4 2.5 2.4-7.9 7.7v3.4h3.4l7.7-7.9 2.4 2.5-5.4 5.4h6.9z"/></g> </Icon> ) export default MdAcUnit
node_modules/react-icons/fa/youtube.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaYoutube = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m24.7 27.8v4.7q0 1.5-0.9 1.5-0.5 0-1-0.5v-6.7q0.5-0.5 1-0.5 0.9 0 0.9 1.5z m7.5 0v1h-2v-1q0-1.5 1-1.5t1 1.5z m-21.5-4.9h2.3v-2.1h-6.9v2.1h2.3v12.7h2.3v-12.7z m6.4 12.7h2v-11h-2v8.4q-0.7 1-1.3 1-0.4 0-0.5-0.5 0-0.1 0-0.8v-8.1h-2v8.7q0 1.1 0.2 1.7 0.3 0.8 1.3 0.8 1.1 0 2.3-1.4v1.2z m9.6-3.3v-4.4q0-1.6-0.2-2.2-0.4-1.2-1.6-1.2-1.1 0-2.1 1.2v-4.9h-2v14.8h2v-1q1 1.2 2.1 1.2 1.2 0 1.6-1.2 0.2-0.6 0.2-2.3z m7.5-0.2v-0.3h-2q0 1.1-0.1 1.4-0.1 0.8-0.9 0.8-1 0-1-1.6v-1.9h4v-2.3q0-1.8-0.6-2.6-0.9-1.1-2.4-1.1-1.5 0-2.4 1.1-0.6 0.8-0.6 2.6v3.9q0 1.7 0.7 2.5 0.8 1.2 2.4 1.2 1.6 0 2.4-1.2 0.4-0.6 0.5-1.2 0-0.2 0-1.3z m-13.6-20.4v-4.7q0-1.5-0.9-1.5t-1 1.5v4.7q0 1.6 1 1.6t0.9-1.6z m16.1 16.8q0 5.2-0.6 7.8-0.3 1.3-1.3 2.2t-2.3 1q-4.1 0.5-12.4 0.5t-12.3-0.5q-1.3-0.1-2.3-1t-1.3-2.2q-0.6-2.5-0.6-7.8 0-5.2 0.6-7.8 0.3-1.3 1.3-2.2t2.3-1.1q4.1-0.4 12.3-0.4t12.4 0.4q1.3 0.2 2.3 1.1t1.3 2.2q0.6 2.5 0.6 7.8z m-22.3-28.5h2.3l-2.7 8.9v6.1h-2.2v-6.1q-0.4-1.6-1.4-4.7-0.8-2.3-1.5-4.2h2.4l1.6 5.9z m8.3 7.4v3.9q0 1.8-0.7 2.7-0.8 1.1-2.3 1.1-1.5 0-2.4-1.1-0.6-0.9-0.6-2.7v-3.9q0-1.8 0.6-2.6 0.9-1.1 2.4-1.1 1.5 0 2.3 1.1 0.7 0.8 0.7 2.6z m7.4-3.6v11.2h-2v-1.3q-1.2 1.4-2.3 1.4-1 0-1.3-0.8-0.2-0.5-0.2-1.7v-8.8h2v8.2q0 0.7 0.1 0.8 0 0.5 0.4 0.5 0.6 0 1.3-1v-8.5h2z"/></g> </Icon> ) export default FaYoutube
node_modules/react-icons/md/notifications-none.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdNotificationsNone = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.6 28.4v-10c0-4.2-2.5-7.5-6.6-7.5s-6.6 3.3-6.6 7.5v10h13.2z m3.4-1.8l3.4 3.4v1.6h-26.8v-1.6l3.4-3.4v-8.2c0-5.2 2.7-9.4 7.5-10.6v-1.2c0-1.4 1.1-2.5 2.5-2.5s2.5 1.1 2.5 2.5v1.2c4.8 1.2 7.5 5.5 7.5 10.6v8.2z m-10 10c-1.8 0-3.4-1.4-3.4-3.2h6.8c0 1.8-1.6 3.2-3.4 3.2z"/></g> </Icon> ) export default MdNotificationsNone
node_modules/react-icons/md/poll.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPoll = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.4 28.4v-6.8h-3.4v6.8h3.4z m-6.8 0v-16.8h-3.2v16.8h3.2z m-6.6 0v-11.8h-3.4v11.8h3.4z m16.6-23.4c1.8 0 3.4 1.6 3.4 3.4v23.2c0 1.8-1.6 3.4-3.4 3.4h-23.2c-1.8 0-3.4-1.6-3.4-3.4v-23.2c0-1.8 1.6-3.4 3.4-3.4h23.2z"/></g> </Icon> ) export default MdPoll
node_modules/react-icons/fa/tencent-weibo.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaTencentWeibo = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m24.3 12.8q0 1.8-1.3 3t-3 1.3q-1.4 0-2.5-0.8-1.4 1.5-2.6 3.3-5.5 8.2-4.5 19.1 0.1 0.5-0.2 0.9t-0.8 0.4h-0.1q-0.5 0-0.8-0.3t-0.4-0.8q-0.3-2.8-0.1-5.5t0.7-4.8 1.2-4.2 1.5-3.4 1.7-2.8q1.3-2 2.9-3.7-0.3-0.8-0.3-1.7 0-1.8 1.2-3.1t3.1-1.2 3 1.2 1.3 3.1z m8.5 0.2q0 3.5-1.7 6.5t-4.8 4.8-6.5 1.7q-1.4 0-2.9-0.3-0.5-0.1-0.8-0.5t-0.1-0.9q0.1-0.5 0.5-0.7t0.9-0.2q1.1 0.3 2.4 0.3 2.2 0 4.1-0.8t3.5-2.3 2.2-3.4 0.9-4.2-0.9-4.1-2.2-3.5-3.5-2.2-4.1-0.9-4.2 0.9-3.4 2.2-2.3 3.5-0.8 4.1q0 2.6 1.2 4.9 0.2 0.4 0 0.9t-0.5 0.6-0.9 0.1-0.7-0.6q-1.4-2.7-1.4-5.9 0-2.6 1-5.1t2.8-4.1 4.1-2.8 5.1-1q3.5 0 6.5 1.7t4.8 4.8 1.7 6.5z"/></g> </Icon> ) export default FaTencentWeibo
node_modules/react-icons/io/social-youtube-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSocialYoutubeOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.7 7.5h-1.4c-5.1 0-9.2 0.2-13.1 0.3h-0.2c-1.8 0-3.3 1.7-3.3 3.8v0.2c-0.1 2.7-0.2 5.5-0.2 8.2 0 2.7 0.1 5.5 0.2 8.1v0.3c0 1.1 0.4 2 1.1 2.8 0.7 0.7 1.4 1 2.2 1h0.2c4 0.1 8.4 0.3 12.9 0.3h1.8c4.5 0 8.8-0.2 12.9-0.3h0.2c0.8 0 1.5-0.3 2.2-1 0.7-0.8 1.1-1.7 1.1-2.8v-0.3c0.1-2.6 0.2-5.3 0.2-8.1 0-2.8-0.1-5.5-0.2-8.2v-0.2c0-2.1-1.5-3.9-3.3-3.9h-0.2c-3.8-0.1-8-0.2-13.1-0.2z m0-2.5c4.5 0 9 0 13.3 0.2 3.2 0 5.8 2.8 5.8 6.4 0.1 2.8 0.2 5.6 0.2 8.4s-0.1 5.5-0.2 8.4c0 3.5-2.6 6.3-5.8 6.3-4.3 0.2-8.7 0.3-13.1 0.3h-1.8c-4.4 0-8.8-0.1-13.1-0.3-3.2 0-5.8-2.8-5.8-6.3-0.1-2.9-0.2-5.6-0.2-8.4s0.2-5.5 0.3-8.4c0-3.5 2.5-6.4 5.7-6.4 4.3-0.1 8.8-0.2 13.3-0.2h1.4z m-4.5 22.7v-15.4l11.3 7.7z"/></g> </Icon> ) export default IoSocialYoutubeOutline
node_modules/react-icons/fa/glide.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaGlide = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m22.3 11.5q0 0.6-0.3 2.1-0.2 1.1-0.7 3.3t-0.6 3.4q-0.1 0.2-0.1 0.3t-0.3 0q-0.5 0.1-0.7 0.1-1.3 0-1.9-1.1t-0.6-2.6q0-1.9 0.8-3.9t2.3-2.7q0.6-0.3 1.1-0.3 0.7 0 0.8 0.3t0.2 1.1z m10.9 9.5q0-0.4-0.9-1.7t-1.2-1.5q-0.4-0.2-0.7-0.2-2 0-5.1 1.7l0 0q0.1-0.5 0.6-3t0.6-4q0-5.2-5.4-5.2-0.6 0-1.6 0.1-2.1 0.4-3.7 2t-2.5 3.8-0.8 4.2q0 3.2 1.8 5t5 1.8q0.6 0 0.6 0t0 0.1q-0.1 0.8-0.6 2.6-0.3 1.2-1.2 2.3t-1.8 1.1q-0.9 0-0.9-1.1 0-0.5 0.2-1t0.6-0.9 0.6-0.6 0.6-0.5 0.2-0.2q0 0-0.1-0.2-0.6-0.5-1.3-0.8t-1.5-0.3q-0.8 0-1.4 0.7t-0.9 1.7-0.3 1.7q0 1.9 1.2 3.1t3 1.2q1.9 0 3.5-1.1t2.6-2.8 1.5-3.5q0.1-0.5 0.3-1.4t0.4-1.5q0-0.3 0.3-0.4 2.6-1.4 5-1.4 1.1 0 2.9 0.4 0 0.1 0.1 0.1 0.1 0 0.2-0.1t0.1-0.2z m4.1-11.7v21.4q0 2.7-1.9 4.6t-4.5 1.8h-21.5q-2.6 0-4.5-1.8t-1.9-4.6v-21.4q0-2.7 1.9-4.6t4.5-1.8h21.5q2.6 0 4.5 1.8t1.9 4.6z"/></g> </Icon> ) export default FaGlide
node_modules/react-icons/md/filter-2.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdFilter2 = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.4 21.6v3.4h-10v-6.6c0-1.9 1.4-3.4 3.2-3.4h3.4v-3.4h-6.6v-3.2h6.6c1.8 0 3.4 1.4 3.4 3.2v3.4c0 1.9-1.6 3.4-3.4 3.4h-3.4v3.2h6.8z m6.6 6.8v-23.4h-23.4v23.4h23.4z m0-26.8c1.8 0 3.4 1.6 3.4 3.4v23.4c0 1.8-1.6 3.2-3.4 3.2h-23.4c-1.8 0-3.2-1.4-3.2-3.2v-23.4c0-1.8 1.4-3.4 3.2-3.4h23.4z m-30 6.8v26.6h26.6v3.4h-26.6c-1.8 0-3.4-1.6-3.4-3.4v-26.6h3.4z"/></g> </Icon> ) export default MdFilter2
node_modules/react-icons/ti/video-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiVideoOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m13.3 18.3c0 1-0.7 1.7-1.6 1.7s-1.7-0.7-1.7-1.7c0-0.9 0.7-1.6 1.7-1.6s1.6 0.7 1.6 1.6z m22.7-6.3c-0.5-0.3-1-0.4-1.5-0.2l-2.9 0.9c-0.3-2.5-2.4-4.4-4.9-4.4h-18.4c-2.7 0-5 2.3-5 5v10c0 2.8 2.3 5 5 5h5v1.9l0 0.1c0.2 1.3 0.7 2.4 1.5 3.2 1 1 2.2 1.5 3.5 1.5s2.6-0.5 3.5-1.5c1-0.9 1.5-2.2 1.5-3.5v-1.7h3.4c2.5 0 4.6-1.9 4.9-4.3l2.9 0.9c0.5 0.2 1 0.1 1.5-0.2 0.4-0.3 0.7-0.8 0.7-1.4v-10c0-0.5-0.3-1-0.7-1.3z m-16 18c0 0.5-0.2 0.9-0.5 1.2-0.3 0.3-0.7 0.5-1.2 0.5-0.4 0-0.8-0.2-1.1-0.5-0.3-0.3-0.5-0.7-0.5-1.2v-3.3h3.3v3.3z m8.3-6.7c0 1-0.7 1.7-1.6 1.7h-18.4c-0.9 0-1.6-0.7-1.6-1.7v-10c0-0.9 0.7-1.6 1.6-1.6h18.4c0.9 0 1.6 0.7 1.6 1.6v10z m5-2.3s-3.1-1-3.3-1v-3.3c0.2 0 3.3-1.1 3.3-1.1v5.4z"/></g> </Icon> ) export default TiVideoOutline
node_modules/react-icons/io/pricetag.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoPricetag = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.3 20.4c0.9 0.9 0.9 2.4 0 3.4l-12.9 13c-0.9 0.9-2.3 0.9-3.3 0.1l-0.2-0.3-16.1-16.3-0.5-0.4c-0.4-0.5-0.7-1.1-0.8-1.9v-0.1l-0.5-7.7v-0.3c0-0.9 0.3-1.9 1-2.6l3.8-3.8c0.7-0.7 1.6-1 2.5-1h0.3l7.8 0.3c0.9 0 1.7 0.3 2.3 1l0.2 0.1 16.4 16.5z m-25.5-5.4c2 0 3.7-1.7 3.7-3.7s-1.7-3.8-3.7-3.8-3.8 1.7-3.8 3.8 1.7 3.7 3.8 3.7z"/></g> </Icon> ) export default IoPricetag
node_modules/react-icons/io/android-wifi.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoAndroidWifi = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 17.9c1.7 0 3.2 1.4 3.2 3.2s-1.5 3.2-3.2 3.2-3.3-1.4-3.3-3.2 1.5-3.2 3.3-3.2z m9.7 3.2c0 3.5-2 6.6-4.9 8.4l-1.6-2.9c2-1.1 3.2-3.1 3.2-5.5 0-3.5-2.9-6.4-6.4-6.4s-6.5 2.9-6.5 6.4c0 2.4 1.2 4.4 3.2 5.5l-1.6 2.9c-2.9-1.8-4.9-4.9-4.9-8.4 0-5.3 4.4-9.7 9.7-9.7s9.8 4.4 9.8 9.7z m-9.7-16.1c8.9 0 16.2 7.3 16.2 16.1 0 5.9-3.3 11.1-8.1 13.9l-1.7-2.8c3.9-2.2 6.5-6.3 6.5-11.1 0-7.1-5.8-12.9-13-12.9s-12.9 5.8-12.9 12.9c0 4.8 2.6 8.8 6.5 11.1l-1.7 2.8c-4.8-2.8-8.1-8-8.1-13.9 0-8.8 7.3-16.1 16.2-16.1z"/></g> </Icon> ) export default IoAndroidWifi
node_modules/react-icons/go/file-code.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoFileCode = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m16.3 15l-6.3 6.3 6.3 6.2 2.5-2.5-3.8-3.7 3.8-3.8-2.5-2.5z m5 2.5l3.7 3.8-3.7 3.7 2.5 2.5 6.2-6.2-6.2-6.3-2.5 2.5z m6.2-15h-22.5v35h30v-27.5l-7.5-7.5z m5 32.5h-25v-30h17.5l7.5 7.5v22.5z"/></g> </Icon> ) export default GoFileCode
node_modules/react-icons/io/ios-help-empty.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosHelpEmpty = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.3 28.6c-0.7 0-1.3-0.6-1.3-1.3s0.6-1.4 1.3-1.4 1.3 0.7 1.3 1.4-0.6 1.3-1.3 1.3z m2.7-9c-1.8 1.7-1.7 2.1-1.8 4.2h-1.5c0.1-2.2 0.5-3.4 2.3-5 0.9-0.8 1.5-1.9 1.5-3.1 0-1.9-1.5-3-3.3-3-2.5 0-3.8 1.2-3.7 3.6h-1.5c0-3.3 2-4.9 5.3-4.9 2.6 0 4.7 1.6 4.7 4.2 0 1.7-0.9 2.9-2 4z"/></g> </Icon> ) export default IoIosHelpEmpty
node_modules/react-icons/md/settings-phone.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdSettingsPhone = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.6 15h3.4v3.4h-3.4v-3.4z m1.8 10.9c0.9 0 1.6 0.7 1.6 1.6v5.9c0 0.9-0.7 1.6-1.6 1.6-15.7 0-28.4-12.7-28.4-28.4 0-0.9 0.7-1.6 1.6-1.6h5.9c0.9 0 1.6 0.7 1.6 1.6 0 2.2 0.4 4.1 1 6 0.1 0.5 0.1 1.2-0.4 1.7l-3.7 3.7c2.4 4.7 6.3 8.6 11 11l3.7-3.7c0.5-0.5 1.2-0.5 1.7-0.4 1.9 0.7 3.9 1 6 1z m-5-10.9v3.4h-3.4v-3.4h3.4z m-6.8 0v3.4h-3.2v-3.4h3.2z"/></g> </Icon> ) export default MdSettingsPhone
node_modules/react-icons/io/sad-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSadOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.7 22.2c0.2 0.7-0.2 1.3-0.9 1.5-0.2 0-0.5 0-0.8-0.1-0.4-0.2-0.7-0.4-0.8-0.8s-0.3-0.9-1-1.2-1.1 0-1.5 0.3c-0.3 0.2-0.8 0.2-1.2 0.1-0.2-0.1-0.5-0.3-0.7-0.5-0.5-0.6-0.2-1.3 0.4-1.7 1.2-0.7 2.3-1 3.8-0.5s2.3 1.6 2.7 2.9z m-15.8-2.4c0.6 0.4 0.8 1.1 0.3 1.7-0.2 0.2-0.5 0.4-0.7 0.5-0.4 0.1-0.9 0.1-1.2-0.1-0.4-0.3-0.8-0.5-1.5-0.3s-0.8 0.8-1 1.2-0.4 0.6-0.8 0.8c-0.3 0.1-0.6 0.2-0.8 0.1-0.7-0.2-1.1-0.8-0.9-1.5 0.4-1.3 1.1-2.4 2.7-2.9s2.7-0.2 3.9 0.5z m4.6-17.3c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5-17.5-7.8-17.5-17.5 7.8-17.5 17.5-17.5z m10.6 28.1c2.8-2.8 4.4-6.6 4.4-10.6s-1.6-7.8-4.4-10.6-6.6-4.4-10.6-4.4-7.8 1.6-10.6 4.4-4.4 6.6-4.4 10.6 1.6 7.8 4.4 10.6 6.6 4.4 10.6 4.4 7.8-1.6 10.6-4.4z m-3.3-2.6c0.4 0.6 0.2 1.4-0.3 1.8-0.3 0.1-0.5 0.2-0.7 0.2-0.4 0-0.8-0.2-1.1-0.5 0 0-1.4-2-5.2-2s-5.2 2-5.2 2c-0.3 0.3-0.7 0.5-1 0.5-0.3 0-0.5-0.1-0.8-0.2-0.5-0.4-0.7-1.2-0.3-1.8 0.1-0.1 2.2-3 7.3-3s7.2 2.9 7.3 3z"/></g> </Icon> ) export default IoSadOutline
node_modules/react-icons/go/link-external.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoLinkExternal = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 30h-20v-19.9l5-0.1v-5h-10v30h30v-12.5h-5v7.5z m-10-25l5 5-7.5 7.5 5 5 7.5-7.5 5 5v-15h-15z"/></g> </Icon> ) export default GoLinkExternal
node_modules/react-icons/io/ios-star.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosStar = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 16.2l-10.9 7.6 4.2 12.5-10.8-7.8-10.8 7.8 4.2-12.5-10.9-7.6h13.4l4.1-12.4 4.1 12.4h13.4z"/></g> </Icon> ) export default IoIosStar
node_modules/react-icons/io/soup-can.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSoupCan = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m7.5 6.3c0-3.4 4.1-5 12.5-5s12.5 1.6 12.5 5-4.1 5-12.5 5-12.5-1.7-12.5-5z m12.5 28.1c-3.4 0-6.2-0.5-8.5-1.4s-3.4-2.2-3.4-3.6v-10c0 0.7 0.3 1.5 1 2.1s1.7 1.2 2.9 1.6 2.6 0.8 4.3 1c0 1 0.5 1.8 1.2 2.5s1.6 0.9 2.5 0.9 1.8-0.3 2.5-0.9 1.2-1.5 1.3-2.5c2.4-0.3 4.3-0.9 5.8-1.8s2.3-1.8 2.3-2.9v10c0 1.4-1.1 2.6-3.4 3.6s-5.1 1.4-8.5 1.4z m0-21.9c3.4 0 6.4-0.5 8.8-1.4s3.7-2.2 3.7-3.6v0.6c0 0.4-0.1 0.9-0.2 1.4s-0.2 0.9-0.4 1.1v7.5c0 1.1-0.8 2.1-2.3 3s-3.4 1.5-5.9 1.8c-0.2-0.9-0.7-1.5-1.4-2s-1.4-0.9-2.3-0.9-1.6 0.3-2.3 0.9-1.2 1.1-1.4 2c-2.5-0.3-4.4-0.9-5.9-1.8s-2.3-1.9-2.3-3v-7.5c-0.4-0.4-0.6-1.4-0.6-3.1 0 1.4 1.2 2.7 3.7 3.6s5.4 1.4 8.8 1.4z m11.9 18.1v1.9l0.6 1.3c0 0.5-0.2 1-0.6 1.5-0.9 1-2.4 1.9-4.6 2.5s-4.6 1-7.3 1-5.2-0.4-7.3-1-3.7-1.5-4.6-2.5c-0.4-0.5-0.6-1-0.6-1.5l0.6-1.3v-1.9c0 1.4 1.1 2.7 3.4 3.6s5.1 1.4 8.5 1.4 6.3-0.4 8.5-1.4 3.4-2.2 3.4-3.6z"/></g> </Icon> ) export default IoSoupCan
node_modules/react-icons/fa/hand-paper-o.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaHandPaperO = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.6 2.9q-1 0-1.7 0.7t-0.8 1.8v14.6h-0.7v-11.8q0-1-0.7-1.7t-1.8-0.8-1.7 0.8-0.8 1.7v17.5l-3.4-4.6q-0.9-1.1-2.3-1.1-1.2 0-2 0.8t-0.8 2.1q0 0.9 0.5 1.7l8.6 11.4q0.9 1.1 2.3 1.1h15.3q0.8 0 1.4-0.4t0.8-1.3l1.7-9q0.1-0.8 0.1-1.4v-11.1q0-1-0.8-1.7t-1.7-0.8-1.8 0.8-0.7 1.7v6.1h-0.7v-11.8q0-1-0.8-1.7t-1.7-0.8-1.8 0.8-0.7 1.7v11.8h-0.8v-14.6q0-1.1-0.7-1.8t-1.8-0.7z m0-2.9q1.6 0 2.8 0.8t2 2.1q0.4 0 1 0 2.2 0 3.7 1.5t1.6 3.8v0.4q2.4-0.1 4 1.4t1.7 3.9v11.1q0 0.9-0.2 1.9l-1.6 9q-0.4 1.8-1.8 2.9t-3.2 1.2h-15.3q-1.4 0-2.6-0.6t-2-1.7l-8.6-11.4q-1.1-1.5-1.1-3.4 0-2.4 1.7-4.1t4-1.7q1.8 0 2.9 0.8v-9.7q0-2.2 1.5-3.8t3.8-1.5q0.5 0 1 0 0.7-1.3 1.9-2.1t2.8-0.8z"/></g> </Icon> ) export default FaHandPaperO
node_modules/react-icons/fa/plus-circle.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaPlusCircle = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"/></g> </Icon> ) export default FaPlusCircle
node_modules/react-icons/md/play-circle-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPlayCircleOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 33.4q5.5 0 9.4-4t4-9.4-4-9.4-9.4-4-9.4 4-4 9.4 4 9.4 9.4 4z m0-30q6.9 0 11.8 4.8t4.8 11.8-4.8 11.8-11.8 4.8-11.8-4.8-4.8-11.8 4.8-11.8 11.8-4.8z m-3.4 24.1v-15l10 7.5z"/></g> </Icon> ) export default MdPlayCircleOutline
node_modules/react-icons/go/broadcast.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoBroadcast = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 7.5c5.5 0 10 4.5 10 10 0 2.7-1.1 5.2-2.8 7l-0.6 3.6c3.5-2.2 5.9-6.1 5.9-10.6 0-6.9-5.6-12.5-12.5-12.5s-12.5 5.6-12.5 12.5c0 4.5 2.4 8.4 5.9 10.6l-0.6-3.6c-1.7-1.8-2.8-4.3-2.8-7 0-5.5 4.5-10 10-10z m-2.5 12.5c-1.4 0-2.5 1.1-2.5 2.5v5c0 1.4 1.2 2.5 2.5 2.5v10h5v-10c1.3 0 2.5-1.1 2.5-2.5v-5c0-1.4-1.1-2.5-2.5-2.5h-5z m7.5-5c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z m-5-15c-9.6 0-17.5 7.9-17.5 17.5 0 7.7 5 14.2 11.9 16.5l-0.5-2.8c-5.2-2.3-8.9-7.6-8.9-13.7 0-8.3 6.7-15 15-15s15 6.7 15 15c0 6.1-3.7 11.4-8.9 13.7l-0.5 2.8c6.9-2.3 11.9-8.8 11.9-16.5 0-9.6-7.9-17.5-17.5-17.5z"/></g> </Icon> ) export default GoBroadcast
node_modules/react-icons/ti/chart-area-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiChartAreaOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.3 28.3h-26.6c-1 0-1.7-0.7-1.7-1.6v-5c0-1.2 0.4-2.3 1.1-3.2l6.7-8.3c1.6-2 4.8-2.4 6.9-0.9l2.8 2.1 3.6-4.5c1-1.2 2.4-1.9 3.9-1.9 1.1 0 2.2 0.4 3.1 1.1 1.2 0.9 1.9 2.4 1.9 3.9v16.7c0 0.9-0.7 1.6-1.7 1.6z m-25-3.3h23.4v-15c0-0.5-0.3-1-0.7-1.3-0.3-0.3-0.7-0.4-1-0.4-0.5 0-1 0.3-1.3 0.7l-4.6 5.8c-0.6 0.7-1.6 0.8-2.4 0.3l-4-3.1c-0.7-0.5-1.8-0.4-2.3 0.3l-6.7 8.3c-0.3 0.4-0.4 0.8-0.4 1.1v3.3z m25 10h-26.6c-1 0-1.7-0.7-1.7-1.7s0.7-1.6 1.7-1.6h26.6c1 0 1.7 0.7 1.7 1.6s-0.7 1.7-1.7 1.7z"/></g> </Icon> ) export default TiChartAreaOutline
node_modules/react-icons/io/toggle.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoToggle = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25 12.5h-15c-4.1 0-7.5 3.4-7.5 7.5s3.4 7.5 7.5 7.5h15c4.1 0 7.5-3.4 7.5-7.5s-3.4-7.5-7.5-7.5z m0-2.5c5.5 0 10 4.5 10 10s-4.5 10-10 10h-15c-5.5 0-10-4.5-10-10s4.5-10 10-10h15z m-15 6.3c-2 0-3.7 1.7-3.7 3.7s1.7 3.8 3.7 3.8 3.8-1.8 3.8-3.8-1.8-3.7-3.8-3.7z m0-2.5c3.4 0 6.3 2.8 6.3 6.2s-2.9 6.3-6.3 6.3-6.2-2.9-6.2-6.3 2.8-6.2 6.2-6.2z"/></g> </Icon> ) export default IoToggle
node_modules/react-icons/md/devices-other.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdDevicesOther = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 30v-13.4h-6.6v13.4h6.6z m1.6-16.6c0.9 0 1.8 0.7 1.8 1.6v16.6c0 0.9-0.9 1.8-1.8 1.8h-10c-0.8 0-1.6-0.9-1.6-1.8v-16.6c0-0.9 0.8-1.6 1.6-1.6h10z m-18.2 15.7c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m3.2-9.1v3c1.1 0.9 1.8 2.2 1.8 3.6s-0.7 2.9-1.8 3.8v3h-6.6v-3c-1-0.9-1.6-2.3-1.6-3.8s0.6-2.7 1.6-3.6v-3h6.6z m-16.6-10v20h6.6v3.4h-6.6c-1.8 0-3.4-1.6-3.4-3.4v-20c0-1.8 1.6-3.4 3.4-3.4h30v3.4h-30z"/></g> </Icon> ) export default MdDevicesOther
node_modules/react-icons/fa/dot-circle-o.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaDotCircleO = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25.9 20q0 2.4-1.7 4t-4.1 1.7-4-1.7-1.7-4 1.7-4 4-1.7 4.1 1.7 1.7 4z m-5.8-12.1q-3.3 0-6.1 1.6t-4.4 4.4-1.6 6.1 1.6 6.1 4.4 4.4 6.1 1.6 6.1-1.6 4.5-4.4 1.6-6.1-1.6-6.1-4.5-4.4-6.1-1.6z m17.2 12.1q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"/></g> </Icon> ) export default FaDotCircleO
node_modules/react-icons/io/hammer.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoHammer = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32 2.5c0.3 0 0.5 0.2 0.5 0.5v6.5c0 0.3-0.2 0.5-0.5 0.5h-4c-0.3 0-0.5-0.2-0.5-0.5v-1.1c-0.5-0.4-1.2-0.7-1.7-0.5-0.6 0.1-1.8 1-2.4 1.9s-0.4 2.2-0.4 5.2l0.6 0.2c0.4 0 0.5 0.4 0.5 0.7v5.4c0 7.5 0.9 15.7 0.9 15.7 0 0.3-0.2 0.5-0.5 0.5h-6.5c-0.3 0-0.5-0.2-0.5-0.5 0 0 0.9-8.2 0.9-15.7v-5.4c0-0.3 0.2-0.7 0.5-0.7l0.5-0.2c0-3.4-0.3-4.5-1.7-5.8-1.4-1.2-3.2-1.5-4.9-1.3s-4 2.7-4.5 3.5-0.8-0.1-0.8-0.9c0.1-1.2 1.7-4.6 5.6-6.3s7.1-1.7 8-1.7 2.1 0.1 3 0.2 1.2 1.4 2 1.4c0.5 0 1.1-0.3 1.4-0.7v-0.4c0-0.3 0.2-0.5 0.5-0.5h4z"/></g> </Icon> ) export default IoHammer
node_modules/react-icons/io/ios-moon.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosMoon = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.7 24.6c0.6 0 1.1-0.1 1.7-0.2-0.3 0.5-0.6 0.9-1 1.4-1.6 1.9-4.1 3.2-6.8 3.2-5 0-9.1-4-9.1-9 0-4.1 2.7-7.5 6.3-8.7 0.6-0.1 1.1-0.2 1.7-0.3-0.3 0.5-0.6 1-0.8 1.4-0.6 1.1-0.9 2.4-0.9 3.7 0 2.3 0.9 4.4 2.5 6s3.8 2.5 6 2.5h0.4z"/></g> </Icon> ) export default IoIosMoon
node_modules/react-icons/io/quote.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoQuote = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 5c-3.2 0-5.7 0.9-7.4 2.6s-2.6 4.2-2.6 7.4v20h12.5v-20h-7.5c0-1.8 0.4-3 1.2-3.8s2-1.2 3.8-1.2z m17.5 0c-3.2 0-5.7 0.9-7.4 2.6s-2.6 4.2-2.6 7.4v20h12.5v-20h-7.5c0-1.8 0.4-3 1.2-3.8s2-1.2 3.8-1.2z"/></g> </Icon> ) export default IoQuote
node_modules/react-icons/go/primitive-dot.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoPrimitiveDot = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m10 20c0-5.5 4.5-10 10-10 5.5 0 10 4.5 10 10s-4.5 10-10 10c-5.5 0-10-4.5-10-10z"/></g> </Icon> ) export default GoPrimitiveDot
node_modules/react-icons/fa/user-md.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaUserMd = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m13.1 30q0 0.6-0.5 1t-1 0.4-1-0.4-0.4-1 0.4-1 1-0.4 1 0.4 0.5 1z m22.8 1.4q0 2.7-1.6 4.2t-4.3 1.5h-19.5q-2.7 0-4.4-1.5t-1.6-4.2q0-1.6 0.1-3t0.6-3 1-3 1.8-2.3 2.7-1.4q-0.5 1.2-0.5 2.7v4.6q-1.3 0.4-2.1 1.5t-0.7 2.5q0 1.8 1.2 3t3 1.3 3.1-1.3 1.2-3q0-1.4-0.8-2.5t-2-1.5v-4.6q0-1.4 0.5-2 3 2.3 6.6 2.3t6.6-2.3q0.6 0.6 0.6 2v1.5q-2.4 0-4.1 1.6t-1.7 4.1v2q-0.7 0.6-0.7 1.5 0 0.9 0.7 1.6t1.5 0.6 1.5-0.6 0.6-1.6q0-0.9-0.7-1.5v-2q0-1.2 0.9-2t2-0.9 2 0.9 0.8 2v2q-0.7 0.6-0.7 1.5 0 0.9 0.6 1.6t1.5 0.6 1.6-0.6 0.6-1.6q0-0.9-0.7-1.5v-2q0-1.5-0.8-2.9t-2.1-2.1q0-0.2 0-0.9t0-1.1 0-0.9-0.2-1.1-0.3-0.8q1.5 0.3 2.7 1.3t1.8 2.3 1.1 3 0.5 3 0.1 3z m-7.1-20q0 3.6-2.5 6.1t-6.1 2.5-6-2.5-2.6-6.1 2.6-6 6-2.5 6.1 2.5 2.5 6z"/></g> </Icon> ) export default FaUserMd
src/components/game/board/game-row.js
aautem/aa
import React from 'react'; import PropTypes from 'prop-types'; import { Row } from 'react-native-easy-grid'; import GameColumn from './game-column'; const appSS = require('../../../styles/app'); export default class GameRow extends React.Component { render() { const columns = []; for (let count = 0; count < this.props.game.boardSize; count ++) { columns.push( <GameColumn key={`col-${count}`} rowId={this.props.rowId} colId={count} game={this.props.game} /> ); } return ( <Row size={12/12}> { columns } </Row> ); } } GameRow.propTypes = { rowId: PropTypes.number, game: PropTypes.object, };
src/components/LookCell.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, Image, PixelRatio, StyleSheet, Text, TouchableOpacity, View, Dimensions, } from 'react-native'; import globalVariables from '../globalVariables.js'; import UserCell from './UserCell.js'; import moment from 'moment'; import LookDetail from './LookDetail.js'; import LookCellFooter from './LookCellFooter.js'; const { width, height } = Dimensions.get('window'); var LookCell = React.createClass({ getDefaultProps() { return { look: {}, onSelect:false, onUserSelect:false, navigator:"", userCell:false, }; }, getInitialState() { return { needShowTime:true, }; }, shouldComponentUpdate: function(nextProps, nextState) { // return false; return JSON.stringify(nextState)!=JSON.stringify(this.state); }, render() { if(!this.props.look.photos){ return false; } if(this.props.userCell){ return ( <View style={styles.item}> <UserCell user={this.props.look.user} needShowTime={this.props.needShowTime} time={this.props.look.created_at} title={this.props.look.title} onSelect={this.props.onUserSelect} navigator={this.props.navigator}/> <TouchableOpacity activeOpacity={0.8} onPress={this.onSelect} style={{backgroundColor:globalVariables.textBase2}}> <Image source={{uri: this.props.look.photos.medium}} style={{height: (this.props.look.photo_height*width)/this.props.look.photo_width,resizeMode: 'cover'}}/> </TouchableOpacity> <LookCellFooter look={this.props.look} onSelect={this.onSelect} navigator={this.props.navigator}/> </View>); } return ( <View style={styles.item}> <TouchableOpacity activeOpacity={0.8} onPress={this.onSelect} style={{backgroundColor:globalVariables.textBase2}}> <Image source={{uri: this.props.look.photos.medium}} style={{height: (this.props.look.photo_height*width)/this.props.look.photo_width,resizeMode: 'cover'}}/> </TouchableOpacity> <LookCellFooter look={this.props.look} onSelect={this.onSelect} navigator={this.props.navigator}/> </View> ); }, onSelect() { console.log(new Date()-0); if(this.props.onSelect){ this.props.onSelect(this.props.look); }else{ this.props.navigator.push({ component: LookDetail, backButtonTitle:' ', // backButtonIcon:this.state.backIcon, title: 'Details', passProps: { look:this.props.look, user:this.props.look.user, navigator:this.props.navigator, }, }); } }, }); const styles = StyleSheet.create({ item: { backgroundColor: globalVariables.background, margin: 0, marginTop: 0, marginBottom: 10, padding: 0, }, spinner: { position: 'absolute', left: (width/2)-20, top: 90 }, }); export default LookCell;
client/components/MapBox/index.js
lafin/talks-on-map
import React, { Component } from 'react'; import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; import HeatmapLayer from 'react-leaflet-heatmap-layer'; import L from 'leaflet'; import style from './style.css'; class MapBox extends Component { constructor(props, context) { super(props, context); this.state = { overlay: { width: window.innerWidth, height: window.innerHeight, zoom: 10, url: `http://tiles.maps.sputnik.ru/{z}/{x}/{y}.png${L.Browser.retina ? '?tag=retina' : ''}`, attribution: false } }; } onChangeViewport(opt) { this.setState({ overlay: Object.assign({}, this.state.overlay, opt) }); } render() { const position = [0, 0]; const gradient = { 0.1: 'blue', 0.2: 'lime', '1.0': 'red' }; const { talks } = this.props; const points = talks.points; const { overlay } = this.state; return ( <div className={style.main}> <Map center={position} {...overlay} > <HeatmapLayer fitBoundsOnLoad fitBoundsOnUpdate points={points} radius={15} minOpacity={0.6} gradient={gradient} longitudeExtractor={point => point.longitude} latitudeExtractor={point => point.latitude} intensityExtractor={_ => 30} /> <TileLayer {...overlay} /> <Marker position={position}> <Popup> <span>A pretty CSS3 popup.<br />Easily customizable.</span> </Popup> </Marker> </Map> </div> ); } } MapBox.propTypes = { talks: React.PropTypes.shape({ bounds: React.PropTypes.array, points: React.PropTypes.array }).isRequired }; export default MapBox;
client/src/index.js
zhangmingkai4315/NewAssetManagement
// 引入全局的promise,解决ie环境下的不兼容 require('es6-promise/auto'); require('es6-object-assign').polyfill(); import React from 'react'; // eslint-disable-line no-unused-vars import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import routes from './routes'; import {AUTH_USER} from './actions/actionTypes'; import '../style/style.css'; import '../node_modules/toastr/build/toastr.min.css'; import initialState from './store/initialState'; import configStore from './store'; import axios from 'axios'; const store = configStore(initialState); const token = localStorage.getItem('token'); const auth_data = JSON.parse(localStorage.getItem('auth_data')); if(token){ // 如果用户token存在则更新用户的登录状态 axios.defaults.headers.common['x-auth']=token; store.dispatch({type:AUTH_USER,payload:Object.assign({},auth_data,{token,authenticate:true})}); } ReactDOM.render( <Provider store={store}> {routes} </Provider> , document.querySelector('#App'));
ui/src/index.js
m3db/m3ctl
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Link, withRouter, matchPath, Redirect, } from 'react-router-dom'; import {Layout, Menu, Icon, LocaleProvider} from 'antd'; import enUS from 'antd/lib/locale-provider/en_US'; import 'antd/dist/antd.css'; import 'basscss/css/basscss.css'; import 'nprogress/nprogress.css'; import './index.css'; import NamespacesPage from 'pages/Namespaces'; import NamespacePage from 'pages/Namespace'; const {Sider, Content} = Layout; const MenuSideBar = withRouter(({location}) => { let selectedKey; if ( matchPath(location.pathname, { path: '/namespaces', }) ) { selectedKey = 'namespaces'; } return ( <Menu theme="dark" selectedKeys={[selectedKey]}> <Menu.Item key="namespaces"> <Link to="/namespaces"> <Icon type="user" /> <span>Namespaces</span> </Link> </Menu.Item> <Menu.Item key="api-doc"> <a href="/public/r2/v1/swagger"> <span>API Docs</span> </a> </Menu.Item> </Menu> ); }); function AppContainer() { return ( <LocaleProvider locale={enUS}> <Router> <Layout style={{height: '100%'}}> <Sider collapsible className="pt2"> <MenuSideBar /> </Sider> <Layout> <Content style={{ margin: '0px 8px', padding: 24, height: '100%', overflow: 'scroll', }}> <Route exact path="/namespaces" component={NamespacesPage} /> <Route exact path="/namespaces/:id" component={NamespacePage} /> <Route exact path="/namespaces/:id/:tab" component={NamespacePage} /> <Route exact path="/" render={() => <Redirect to="/namespaces" />} /> </Content> </Layout> </Layout> </Router> </LocaleProvider> ); } ReactDOM.render(<AppContainer />, document.getElementById('root'));
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
chengjunjian/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(props) { super(props); } render() { const title = this.props.title; const image = this.props.image; const size = this.props.size; let placeholder, avatar; let placeholderClassName = classNames('avatar__placeholder', `avatar__placeholder--${this.props.placeholder}`); let avatarClassName = classNames('avatar', { 'avatar--tiny': size === 'tiny', 'avatar--small': size === 'small', 'avatar--medium': size === 'medium', 'avatar--big': size === 'big', 'avatar--huge': size === 'huge', 'avatar--square': size === 'square' }); placeholder = <span className={placeholderClassName}>{title[0]}</span>; if (image) { avatar = <img alt={title} className="avatar__image" src={image}/>; } return ( <div className={avatarClassName}> {avatar} {placeholder} </div> ); } } export default AvatarItem;
information/blendle-frontend-react-source/app/containers/ManifestPopoverContainer.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BrowserEnvironment from 'instances/browser_environment'; import ManifestContainer from 'containers/ManifestContainer'; import PortalPopover from 'components/PortalPopover'; import TileActions from 'actions/TileActions'; import TilesStore from 'stores/TilesStore'; import AuthStore from 'stores/AuthStore'; import AltContainer from 'alt-container'; class ManifestPopoverContainer extends Component { static propTypes = { itemId: PropTypes.string.isRequired, x: PropTypes.number.isRequired, y: PropTypes.number.isRequired, onClose: PropTypes.func.isRequired, onMouseLeave: PropTypes.func.isRequired, onMouseEnter: PropTypes.func.isRequired, from: PropTypes.string, }; componentDidMount() { const { itemId } = this.props; const userId = AuthStore.getState().user.id; if (!TilesStore.getState().tiles.get(itemId)) { TileActions.fetchTile(userId, itemId); } } _onScroll = (e) => { const isStockAndroid = window.BrowserDetect.browser === 'Android Browser'; if (isStockAndroid && parseFloat(window.BrowserDetect.version) <= 4.3) { return; } // This hack is needed to make sure the manifest is removed in some cases // https://github.com/blendle/blendle-web-client/pull/4343 this.props.onClose(e); }; _renderPopover = ({ tilesState }) => { const { itemId } = this.props; if (tilesState.tiles.get(itemId)) { return ( <PortalPopover layout="manifest" x={this.props.x} y={this.props.y} offset={20} mobile={BrowserEnvironment.isMobile()} viewportOffsetTop={112} viewportOffsetBottom={0} viewportOffsetLeft={40} viewportOffsetRight={40} onClose={this.props.onClose} onScroll={this._onScroll} onMouseEnter={this.props.onMouseEnter} onMouseLeave={this.props.onMouseLeave} > <ManifestContainer itemId={this.props.itemId} analytics={{ type: this.props.from }} hideImage onNavigate={this.props.onClose} /> </PortalPopover> ); } return null; }; render() { return <AltContainer stores={{ tilesState: TilesStore }} render={this._renderPopover} />; } } export default ManifestPopoverContainer; // WEBPACK FOOTER // // ./src/js/app/containers/ManifestPopoverContainer.js
src/routes/content/index.js
Calvin-Huang/LiveAPIExplore-Server
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import fetch from '../../core/fetch'; import Layout from '../../components/Layout'; import Content from './Content'; export default { path: '*', async action({ path }) { // eslint-disable-line react/prop-types const resp = await fetch('/graphql', { method: 'post', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ query: `{content(path:"${path}"){path,title,content,component}}`, }), credentials: 'include', }); if (resp.status !== 200) throw new Error(resp.statusText); const { data } = await resp.json(); if (!data || !data.content) return undefined; return { title: data.content.title, component: <Layout title={title}><Content {...data.content} /></Layout>, }; }, };
src/containers/PuzzleContainer.js
thiagosf/react-jogo-do-quinze
import React from 'react' import { connect } from 'react-redux' import classNames from 'classnames' import { FormattedMessage } from 'react-intl' import { startPuzzleItems, checkWinner } from '../actions/puzzle' import { play, stop } from '../actions/sound' import { Puzzle, PuzzleStats } from '../components' import { PuzzleControlsContainer } from './' import { directions, getFromTo } from '../helpers' class PuzzleContainer extends React.Component { componentDidMount() { this.props.startPuzzleItems() } componentWillReceiveProps() { this.props.checkWinner() } onClickItem(position) { const { puzzle } = this.props let { moves } = puzzle directions.map(direction => { const { from_position, to_position } = getFromTo(direction, puzzle) if (from_position == position) { this.refs.puzzleControlsContainer.dispatchProps.movePuzzleItem( direction, from_position, to_position, ++moves ) this.props.stop() this.props.play('puzzle_move') } }) } render() { const congratulations = classNames({ 'winner-message': true, 'on': this.props.puzzle.winner, 'computer': this.props.puzzle.winner_computer }) return ( <div className="puzzle-container-box"> <h2 className={congratulations}> <FormattedMessage id="congratulations" values={{ you_win: ( <span className="you-win"> <FormattedMessage id="you_win" /> </span> ) }} /> </h2> <Puzzle puzzle={this.props.puzzle} onClickItem={this.onClickItem.bind(this)} /> <PuzzleStats puzzle={this.props.puzzle} /> <PuzzleControlsContainer ref="puzzleControlsContainer" /> </div> ); } } const mapStateToProps = (state) => { return { puzzle: state.puzzle } } const mapDispatchToProps = (dispatch) => { return { startPuzzleItems: () => { return dispatch(startPuzzleItems()) }, checkWinner: () => { return dispatch(checkWinner()) }, play: (sound) => { return dispatch(play(sound)) }, stop: () => { return dispatch(stop()) } } } export default connect(mapStateToProps, mapDispatchToProps)(PuzzleContainer)
src/svg-icons/notification/phone-missed.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneMissed = (props) => ( <SvgIcon {...props}> <path d="M6.5 5.5L12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71s.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2.66-1.85.33-.16.56-.5.56-.9v-3.1c1.45-.48 3-.73 4.6-.73 1.6 0 3.15.25 4.6.72v3.1c0 .39.23.74.56.9.98.49 1.87 1.12 2.67 1.85.18.18.43.28.7.28.28 0 .53-.11.71-.29l2.48-2.48c.18-.18.29-.43.29-.71s-.12-.52-.3-.7z"/> </SvgIcon> ); NotificationPhoneMissed = pure(NotificationPhoneMissed); NotificationPhoneMissed.displayName = 'NotificationPhoneMissed'; export default NotificationPhoneMissed;
components/SpinnerWrapper.js
dawnlabs/carbon
import React from 'react' import Spinner from 'react-spinner' export default function SpinnerWrapper(props) { if (props.loading) { return ( <div> <Spinner /> <style jsx> {` div { width: 876px; height: 240px; } `} </style> </div> ) } return props.children }
src/apps/dynamicUI/component/select.js
ziaochina/reactMonkey
import React from 'react' import {Map} from 'immutable' import {Select} from 'xComponent' export default class SelectComponent extends React.Component { state = { data : Map({ path: '', value:'', isFocus: false, dataSourceFetchMode: 0, //0:只从元数据取,1:只获取一次,2:每次焦点进入都获取 默认0 dataSource:[], displayMember:'', valueMember:'', style:{} }) } constructor(props){ super(props) this.state = this.calculateState(this.props) } componentWillReceiveProps(nextProps){ this.setState(this.calculateState(nextProps)) } shouldComponentUpdate(nextProps, nextState){ return !this.state.data.equals(nextState.data) } calculateState(props){ let {data} = this.state, { _path, _getter, _isFocus, style, className } = props, pValus = _getter(_path, ['value', 'isFocus', 'dataSourceFetchMode', 'displayMember', 'valueMember', 'width']), value = pValus.get('value') || '', isFocus = _isFocus || pValus.get('isFocus') || false, dataSourceFetchMode = pValus.get('dataSourceFetchMode'), dataSource = _getter(_path, 'dataSource'), displayMember = pValus.get( 'displayMember') || 'name', valueMember = pValus.get( 'valueMember') || 'code', width = pValus.get('width') this.oldValue = value if(!style && width){ style = {width} } data = this.set(null, {path:_path, value, isFocus, dataSourceFetchMode, dataSource, displayMember, valueMember, style}) return {data} } get(propertyName) { if (!propertyName || propertyName === '') { return this.state.data } return this.state.data.getIn(propertyName.split('.')) } set(propertyName, value) { let data = this.state.data if (!propertyName || propertyName === '') { return data.mergeDeep(value) } if(typeof value === 'object'){ return data.mergeDeepIn(propertyName.split('.'), value) } else{ return data.setIn(propertyName.split('.'), value) } } lazyLoadDataSource(){ let dataSourceFetchMode = this.get('dataSourceFetchMode') if(dataSourceFetchMode === 0) return if(dataSourceFetchMode === 1 && this.get('dataSource')) return this.props.lazyLoad(this.get('path'), 'dataSource', {fetchMode:dataSourceFetchMode}) } getOptions(){ let dataSource = this.get('dataSource') return dataSource ? dataSource.map((item,index)=> <Option value={item.get(this.get('valueMember'))}> {item.get(this.get('displayMember'))} </Option>) : [] } findItem(input, dataSource){ return dataSource.find(x=>(x.get(this.get('valueMember')) === input || x.get(this.get('displayMember')) === input)) } handleChange(e){ let value = e, oldValue = this.oldValue, path = this.get('path'), dataSource = this.get('dataSource') value = this.findItem(value, dataSource) if(!this.props.onFieldChange) return if( (!!this.oldValue !== !!value) || (this.oldValue.get(this.get('valueMember')) !== value.get(this.get('valueMember')))) setTimeout( ()=>this.props.onFieldChange(path, oldValue, value), 0) } handleFocus(e){ this.lazyLoadDataSource() if(!this.get('isFocus')) this.props.onFieldFocus(this.get('bindField')) } render(){ let dataSource = this.get('dataSource') return ( <div onFocus={::this.handleFocus}> <Select ref='internal' value = {dataSource ? this.get('value.'+ this.get('valueMember')) : this.get('value.'+this.get('displayMember'))} style={this.get('style') && this.get('style').toJS()} onChange={::this.handleChange} > {::this.getOptions()} </Select> </div> ) } }
src/svg-icons/av/replay-30.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay30 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4 0 .6.1s.3.1.5.2.2.2.3.4.1.3.1.5v.3s-.1.2-.1.3-.1.2-.2.2-.2.1-.3.2c.2.1.4.2.5.4s.2.4.2.6c0 .2 0 .4-.1.5s-.2.3-.3.4-.3.2-.5.2-.4.1-.6.1c-.2 0-.4 0-.5-.1s-.3-.1-.5-.2-.2-.2-.3-.4-.1-.4-.1-.6h.8v.2s.1.1.1.2.1.1.2.1h.5s.1-.1.2-.1.1-.1.1-.2v-.5s-.1-.1-.1-.2-.1-.1-.2-.1h-.6v-.7zm5.7.7c0 .3 0 .6-.1.8l-.3.6s-.3.3-.5.3-.4.1-.6.1-.4 0-.6-.1-.3-.2-.5-.3-.2-.3-.3-.6-.1-.5-.1-.8v-.7c0-.3 0-.6.1-.8l.3-.6s.3-.3.5-.3.4-.1.6-.1.4 0 .6.1.3.2.5.3.2.3.3.6.1.5.1.8v.7zm-.8-.8v-.5c0-.1-.1-.2-.1-.3s-.1-.1-.2-.2-.2-.1-.3-.1-.2 0-.3.1l-.2.2s-.1.2-.1.3v2s.1.2.1.3.1.1.2.2.2.1.3.1.2 0 .3-.1l.2-.2s.1-.2.1-.3v-1.5z"/> </SvgIcon> ); AvReplay30 = pure(AvReplay30); AvReplay30.displayName = 'AvReplay30'; AvReplay30.muiName = 'SvgIcon'; export default AvReplay30;
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
bttf/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import React from 'react'; export default () => ( <span id="feature-public-url">{process.env.PUBLIC_URL}.</span> );
src/shared/components/heading/heading.js
NestorSegura/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './heading.css'; const Heading = ({ text, headingLines, theme, ...otherProps }) => { const classes = classNames({ [`${styles.heading}`]: true, [`${styles[theme]}`]: true, [`${styles.headingLines}`]: headingLines }); return <h2 className={classes} {...otherProps}>{text}</h2>; }; Heading.propTypes = { id: PropTypes.string, text: PropTypes.string.isRequired, headingLines: PropTypes.bool, theme: PropTypes.string, }; Heading.defaultProps = { id: null, headingLines: true, theme: 'dark', }; export default Heading;
src/modules/Player/component.js
svmn/ace-rx
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import IconButton from 'material-ui/IconButton'; import Slider from 'material-ui/Slider'; import { green900 as likeColor, red900 as dislikeColor } from 'material-ui/styles/colors'; import get from 'lodash/get'; import debounce from 'lodash/debounce'; import throttle from 'lodash/throttle'; import { isMobile } from '../../utils'; export default class Player extends Component { constructor(props) { super(props); this.state = { playing: false, position: 0, duration: null, volume: typeof localStorage.volume !== 'undefined' ? Number(localStorage.volume) : 0.5 }; this.onProgress = throttle(this.onProgress.bind(this), 500); this.setVolume = debounce(this.setVolume.bind(this), 100); } componentDidMount() { this.audio.volume = this.state.volume; } componentDidUpdate(prevProps) { // auto play on track selection if (this.props.track && get(this.props, 'track.url') !== get(prevProps, 'track.url')) { this.play(); } } onProgress() { this.setState({ position: this.audio.currentTime }); } onEnd() { this.setState({ playing: false, position: 0 }); this.props.next(); } setDuration() { this.setState({ duration: this.audio.duration }); } setVolume(e, value) { this.audio.volume = value; this.setState({ volume: value }); localStorage.setItem('volume', value); } play() { this.setState({ playing: true }); this.audio.play(); } pause() { this.setState({ playing: false }); this.audio.pause(); } seek(e, value) { this.audio.currentTime = value * this.state.duration; } like() { this.props.vote(this.props.track.id, 1); } dislike() { this.props.vote(this.props.track.id, -1); } render() { const { track } = this.props; const { playing, position, duration, volume } = this.state; const url = track ? `https://tuzach.in${track.url}` : ''; const progressBar = ( <Slider style={{ position: 'absolute', top: 16, left: 16, right: 16 }} sliderStyle={{ margin: '0' }} disableFocusRipple value={position / duration} onChange={this.seek.bind(this)} /> ); const volumeBar = isMobile() ? null : ( <Slider style={{ flex: 1 }} sliderStyle={{ margin: '15px 0' }} disableFocusRipple value={volume} onChange={this.setVolume} /> ); const playerUI = !track ? null : ( <div key='player' className='player' style={{ backgroundImage: `url('${track.cover_big}')` }} > <div className='inner'> {progressBar} { !playing ? <IconButton onTouchTap={this.play.bind(this)} iconClassName='material-icons'>play_arrow</IconButton> : <IconButton onTouchTap={this.pause.bind(this)} iconClassName='material-icons'>pause</IconButton> } <IconButton iconClassName='material-icons' onTouchTap={this.props.next} >skip_next</IconButton> {volumeBar} <IconButton href={url} iconClassName='material-icons' >file_download</IconButton> <IconButton iconClassName='material-icons' iconStyle={track.voted !== '1' ? {} : { color: likeColor }} onTouchTap={this.like.bind(this)} >thumb_up</IconButton> <IconButton iconClassName='material-icons' iconStyle={track.voted !== '-1' ? {} : { color: dislikeColor }} onTouchTap={this.dislike.bind(this)} >thumb_down</IconButton> <IconButton iconClassName='material-icons' onTouchTap={this.props.deselect} >keyboard_arrow_up</IconButton> </div> </div> ); return ( <ReactCSSTransitionGroup transitionName='player' transitionEnterTimeout={200} transitionLeaveTimeout={200}> <audio ref={ref => (this.audio = ref)} src={url} onTimeUpdate={this.onProgress} onDurationChange={this.setDuration.bind(this)} onEnded={this.onEnd.bind(this)} /> {playerUI} </ReactCSSTransitionGroup> ); } } Player.propTypes = { track: PropTypes.object, next: PropTypes.func.isRequired, vote: PropTypes.func.isRequired, deselect: PropTypes.func.isRequired };
react-flux-mui/js/material-ui/src/svg-icons/action/report-problem.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReportProblem = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); ActionReportProblem = pure(ActionReportProblem); ActionReportProblem.displayName = 'ActionReportProblem'; ActionReportProblem.muiName = 'SvgIcon'; export default ActionReportProblem;
example/src/screens/Transitions.js
snapme/react-native-navigation
import React from 'react'; import {StyleSheet, ScrollView, Text} from 'react-native'; import Row from '../components/Row'; class Transitions extends React.Component { showCollapsingHeader = () => { this.props.navigator.showModal({ title: 'Collapsing Header', screen: 'example.Transitions.CollapsingHeader', }); }; showSharedElementTransitions = () => { this.props.navigator.showModal({ title: 'Shared Element Transition Examples', screen: 'example.Transitions.SharedElementTransitions', }); }; render() { return ( <ScrollView style={styles.container}> <Row title={'Collapsing Header'} onPress={this.showCollapsingHeader}/> <Row title={'Shared Element Transition'} onPress={this.showSharedElementTransitions}/> </ScrollView> ); } } const styles = StyleSheet.create({ container: { flex: 1, }, }); export default Transitions;
src/svg-icons/action/pregnant-woman.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPregnantWoman = (props) => ( <SvgIcon {...props}> <path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/> </SvgIcon> ); ActionPregnantWoman = pure(ActionPregnantWoman); ActionPregnantWoman.displayName = 'ActionPregnantWoman'; ActionPregnantWoman.muiName = 'SvgIcon'; export default ActionPregnantWoman;
examples/dev/src/components/Nested/Card/index.js
pure-ui/styleguide
import React from 'react'; export default () => ( <div> This is the nested card. </div> );
src/components/Splitter.js
codegaze/jekyll-admin
import React from 'react'; const Splitter = () => <div className="splitter"></div>; export default Splitter;
src/shared/components/accordian/accordian.js
sethbergman/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import AccordianItem from './accordianItem/accordianItem'; import styles from './accordian.css'; const Accordian = ({ children }) => ( <div className={styles.accordian}> <dl> {children} </dl> </div> ); Accordian.propTypes = { children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.instanceOf(AccordianItem)), PropTypes.instanceOf(AccordianItem) ]).isRequired, }; export default Accordian;
actor-apps/app-web/src/app/components/common/MessageItem.react.js
sc4599/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; import VisibilitySensor from 'react-visibility-sensor'; import AvatarItem from 'components/common/AvatarItem.react'; import Image from './Image.react'; import DialogActionCreators from 'actions/DialogActionCreators'; import { MessageContentTypes } from 'constants/ActorAppConstants'; let lastMessageSenderId = null, lastMessageContentType = null; var MessageItem = React.createClass({ displayName: 'MessageItem', propTypes: { message: React.PropTypes.object.isRequired, newDay: React.PropTypes.bool, index: React.PropTypes.number, onVisibilityChange: React.PropTypes.func }, mixins: [PureRenderMixin], onClick() { DialogActionCreators.selectDialogPeerUser(this.props.message.sender.peer.id); }, onVisibilityChange(isVisible) { this.props.onVisibilityChange(this.props.message, isVisible); }, render() { const message = this.props.message; const newDay = this.props.newDay; const isFirstMessage = this.props.index === 0; let header, visibilitySensor, leftBlock; let isSameSender = message.sender.peer.id === lastMessageSenderId && lastMessageContentType !== MessageContentTypes.SERVICE && message.content.content !== MessageContentTypes.SERVICE && !isFirstMessage && !newDay; let messageClassName = classNames({ 'message': true, 'row': true, 'message--same-sender': isSameSender }); if (isSameSender) { leftBlock = ( <div className="message__info text-right"> <time className="message__timestamp">{message.date}</time> <MessageItem.State message={message}/> </div> ); } else { leftBlock = ( <div className="message__info message__info--avatar"> <a onClick={this.onClick}> <AvatarItem image={message.sender.avatar} placeholder={message.sender.placeholder} title={message.sender.title}/> </a> </div> ); header = ( <header className="message__header"> <h3 className="message__sender"> <a onClick={this.onClick}>{message.sender.title}</a> </h3> <time className="message__timestamp">{message.date}</time> <MessageItem.State message={message}/> </header> ); } if (message.content.content === MessageContentTypes.SERVICE) { leftBlock = null; header = null; } if (this.props.onVisibilityChange) { visibilitySensor = <VisibilitySensor onChange={this.onVisibilityChange}/>; } lastMessageSenderId = message.sender.peer.id; lastMessageContentType = message.content.content; return ( <li className={messageClassName}> {leftBlock} <div className="message__body col-xs"> {header} <MessageItem.Content content={message.content}/> {visibilitySensor} </div> </li> ); } }); emojify.setConfig({ mode: 'img', img_dir: 'assets/img/emoji' // eslint-disable-line }); const mdRenderer = new marked.Renderer(); // target _blank for links mdRenderer.link = function(href, title, text) { let external, newWindow, out; external = /^https?:\/\/.+$/.test(href); newWindow = external || title === 'newWindow'; out = '<a href=\"' + href + '\"'; if (newWindow) { out += ' target="_blank"'; } if (title && title !== 'newWindow') { out += ' title=\"' + title + '\"'; } return (out + '>' + text + '</a>'); }; const markedOptions = { sanitize: true, breaks: true, highlight: function (code) { return hljs.highlightAuto(code).value; }, renderer: mdRenderer }; const inversedEmojiCharacters = _.invert(_.mapValues(emojiCharacters, (e) => e.character)); const emojiVariants = _.map(Object.keys(inversedEmojiCharacters), function(name) { return name.replace(/\+/g, '\\+'); }); const emojiRegexp = new RegExp('(' + emojiVariants.join('|') + ')', 'gi'); const processText = function(text) { let markedText = marked(text, markedOptions); // need hack with replace because of https://github.com/Ranks/emojify.js/issues/127 const noPTag = markedText.replace(/<p>/g, '<p> '); let emojifiedText = emojify .replace(noPTag.replace(emojiRegexp, (match) => ':' + inversedEmojiCharacters[match] + ':')); return emojifiedText; }; const memoizedProcessText = memoize(processText, { length: 1000, maxAge: 60 * 60 * 1000, max: 10000 }); MessageItem.Content = React.createClass({ propTypes: { content: React.PropTypes.object.isRequired }, render() { const content = this.props.content; // TODO: move all types to subcomponents let contentClassName = classNames('message__content', { 'message__content--service': content.content === MessageContentTypes.SERVICE, 'message__content--text': content.content === MessageContentTypes.TEXT, 'message__content--document': content.content === MessageContentTypes.DOCUMENT, 'message__content--unsupported': content.content === MessageContentTypes.UNSUPPORTED }); switch (content.content) { case 'service': return ( <div className={contentClassName}> {content.text} </div> ); case 'text': return ( <div className={contentClassName} dangerouslySetInnerHTML={{__html: memoizedProcessText(content.text)}}> </div> ); case 'photo': return ( <Image content={content} loadingClassName="message__content--photo" loadedClassName="message__content--photo message__content--photo--loaded"/> ); case 'document': contentClassName = classNames(contentClassName, 'row'); let availableActions; if (content.isUploading === true) { availableActions = <span>Loading...</span>; } else { availableActions = <a href={content.fileUrl}>Open</a>; } return ( <div className={contentClassName}> <div className="document row"> <div className="document__icon"> <i className="material-icons">attach_file</i> </div> <div className="col-xs"> <span className="document__filename">{content.fileName}</span> <div className="document__meta"> <span className="document__meta__size">{content.fileSize}</span> <span className="document__meta__ext">{content.fileExtension}</span> </div> <div className="document__actions"> {availableActions} </div> </div> </div> <div className="col-xs"></div> </div> ); default: } } }); MessageItem.State = React.createClass({ propTypes: { message: React.PropTypes.object.isRequired }, render() { const message = this.props.message; if (message.content.content === MessageContentTypes.SERVICE) { return null; } else { let icon = null; switch(message.state) { case 'pending': icon = <i className="status status--penging material-icons">access_time</i>; break; case 'sent': icon = <i className="status status--sent material-icons">done</i>; break; case 'received': icon = <i className="status status--received material-icons">done_all</i>; break; case 'read': icon = <i className="status status--read material-icons">done_all</i>; break; case 'error': icon = <i className="status status--error material-icons">report_problem</i>; break; default: } return ( <div className="message__status">{icon}</div> ); } } }); export default MessageItem;
src/views/reminders/ReminderItem.js
project-abigail/app
/* global TwitterCldr, TwitterCldrDataBundle */ import React, { Component } from 'react'; import moment from 'moment'; import './ReminderItem.css'; const COLOURS = [ 'red', 'salmon', 'goldenrod', 'orange', 'green', 'cyan', 'blue', 'violet', 'slategrey', 'grey', ]; class ReminderItem extends Component { constructor(props) { super(props); if (typeof TwitterCldr !== 'undefined') { TwitterCldr.set_data(TwitterCldrDataBundle); this.listFormatter = new TwitterCldr.ListFormatter(); } else { this.listFormatter = { format: (a) => a.join(' and ') }; } this.reminder = props.reminder; this.onDelete = props.onDelete; this.onEdit = props.onEdit; } componentWillReceiveProps(props) { this.reminder = props.reminder; } getColour(forenames = '') { const hash = (string) => { let hash = 0, i, chr, len; string = string.toLowerCase().trim(); if (string.length === 0) { return 0; } for (i = 0, len = string.length; i < len; i++) { chr = string.charCodeAt(i); hash = ((hash << 5) - hash) + chr; hash |= 0; // Convert to 32bit integer } return Math.abs(hash); }; return COLOURS[hash(forenames) % COLOURS.length]; } render() { const reminder = this.reminder; const users = ((reminder && reminder.recipients) || []) .map((user) => user.forename); const recipients = this.listFormatter.format(users); const contentClassName = [ 'reminders__item-content', this.getColour(recipients), ] .join(' '); return ( <li className="ReminderItem"> <div className="reminders__item-time"> {moment((reminder && reminder.due) || undefined).format('LT')} </div> <div className={contentClassName}> <h3 className="reminders__item-recipient"> {recipients} </h3> <p className="reminders__item-text"> <span>{(reminder && reminder.action) || ''}</span> <button className="reminders__button reminders__edit" onClick={this.onEdit}> Edit </button> <button className="reminders__button reminders__delete" onClick={this.onDelete}> Delete </button> </p> </div> </li> ); } } ReminderItem.propTypes = { reminder: React.PropTypes.object, onDelete: React.PropTypes.func, onEdit: React.PropTypes.func, }; export default ReminderItem;
src/useDispatch.js
nheyn/react-async-dispatcher
/* @flow */ import React from 'react'; import getDispatcher from './getDispatcher'; import type { Dispatcher } from 'async-dispatcher'; import type { HigherOrderComponent } from 'react-async-dispatcher'; /** * */ export default function useDispatch(fnName: string = 'dispatch', dispatcher?: Dispatcher): HigherOrderComponent { return (Component) => { class UseDispatch extends React.Component<*, *, *> { render(): React.Element<*> { const currDispatcher = getDispatcher(this.props, this.context, dispatcher); let dispatchProps = {}; dispatchProps[fnName] = (action) => currDispatcher.dispatch(action); return <Component {...dispatchProps} {...this.props} />; } } UseDispatch.contextTypes = { dispatcher: React.PropTypes.object, }; return UseDispatch; }; }
src/svg-icons/navigation/apps.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ); NavigationApps = pure(NavigationApps); NavigationApps.displayName = 'NavigationApps'; NavigationApps.muiName = 'SvgIcon'; export default NavigationApps;
app/src/HomePage/components/Dialog.js
rmonnier/hypertube
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import { injectIntl } from 'react-intl'; import FlatButton from 'material-ui/FlatButton'; import CircularProgress from 'material-ui/CircularProgress'; import UploadPicture from './UploadPicture'; /** * A modal dialog can only be closed by selecting one of the actions. */ class CustomDialog extends Component { state = { open: false, } componentWillReceiveProps(nextProps) { const { status } = nextProps; this.setState({ open: status === 'open' }); } handleClose = () => { this.setState({ open: false }); if (this.props.handleClose !== undefined) { this.props.handleClose(); } }; render() { const file = this.props.file === undefined ? {} : this.props.file; const preview = this.props.file === undefined ? null : this.props.file.preview; let error; if (this.props.error[0].msg) { error = this.props.intl.formatMessage({ id: this.props.error[0].msg }); } else if (this.props.file === undefined) { error = this.props.intl.formatMessage({ id: 'error.imageOnly' }); } else { error = ''; } const cancel = this.props.intl.formatMessage({ id: 'general.cancel' }); const submit = this.props.intl.formatMessage({ id: 'general.submit' }); const actions = [ <FlatButton label={cancel} primary onClick={this.handleClose} />, <FlatButton label={submit} primary disabled={!preview} onClick={this.props.handleSubmit} />, ]; if (this.props.status === 'loading') return <CircularProgress />; return ( <div> <Dialog actions={actions} modal open={this.state.open} > <UploadPicture file={file} handleUpload={this.props.handleUpload} /> <p style={{ color: 'red' }}>{error}</p> </Dialog> </div> ); } } export default injectIntl(CustomDialog);
react-client/src/components/Text.js
lowtalkers/escape-reality
import {Entity} from 'aframe-react'; import React from 'react'; export default props => { const extraProps = AFRAME.utils.extend({}, props); delete extraProps.color; delete extraProps.text; return <Entity text={{text: props.text}} material={{color: props.color}} {...extraProps}/> };
src/containers/tool/AvatarAdder/index.js
mydearxym/mastani
/* * * AvatarAdder * */ import React from 'react' import T from 'prop-types' import { ICON } from '@/config' import { buildLog } from '@/utils/logger' import { pluggedIn } from '@/utils/mobx' import Tooltip from '@/widgets/Tooltip' import AdderPanel from './AdderPanel' import { Wrapper, SettingIcon } from './styles' import { useInit, adderOnConfirm, onPopoverVisible } from './logic' /* eslint-disable-next-line */ const log = buildLog('C:AvatarAdder') const AvatarAdderContainer = ({ avatarAdder: store, onConfirm }) => { useInit(store) const { popoverVisible, githubUserData, searching, searchValue } = store return ( <Tooltip visible={popoverVisible} hideOnClick={false} content={ <AdderPanel user={githubUserData} searchValue={searchValue} searching={searching} onConfirm={adderOnConfirm(githubUserData, onConfirm)} /> } placement="bottom" trigger="click" onVisibleChange={onPopoverVisible} > <Wrapper> <SettingIcon src={`${ICON}/shape/settings.svg`} /> </Wrapper> </Tooltip> ) } AvatarAdderContainer.propTypes = { avatarAdder: T.object.isRequired, onConfirm: T.func, } AvatarAdderContainer.defaultProps = { onConfirm: log, } export default pluggedIn(AvatarAdderContainer)
examples/bookmark/app.js
jjmulenex/sdk
/** Demo of bookmarks zooming between points in an SDK map. * Custom Open Layer Controls are added * */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import fetch from 'isomorphic-fetch'; import {Provider} from 'react-redux'; import SdkMap from '@boundlessgeo/sdk/components/map'; import SdkMapReducer from '@boundlessgeo/sdk/reducers/map'; import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom-control'; import * as mapActions from '@boundlessgeo/sdk/actions/map'; import BookmarkComponent from './bookmarks'; import MoveButtonComponent from './moveButton'; import AddBookmarkComponent from './addBookmark'; import bookmarkReducer from './reducer'; import * as bookmarkAction from './action'; // This will have webpack include all of the SDK styles. import '@boundlessgeo/sdk/stylesheet/sdk.scss'; /* eslint-disable no-underscore-dangle */ const store = createStore(combineReducers({ map: SdkMapReducer, bookmark: bookmarkReducer, }), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), applyMiddleware(thunkMiddleware)); function main() { // load in the map style from a external .json store.dispatch(mapActions.setContext({url: './bookmarks.json'})); // This is the name of the source that the bookmark component will iterate over const SOURCENAMES = ['paris-bakeries', 'saint-louis-bakeries']; // Fetch the geoJson file from a url and add it to the map at the named source const addDataFromGeoJSON = (url, sourceName) => { // Fetch URL return fetch(url) .then( response => response.json(), error => console.error('An error occured.', error), ) // addFeatures with the features, source name // .then(json => store.dispatch(mapActions.addFeatures(sourceName, json))); .then(json => { store.dispatch(mapActions.addSource(sourceName, { type: 'geojson', data: json })); store.dispatch(mapActions.addLayer({ id: sourceName, type: 'circle', source: sourceName, paint: { 'circle-radius': 5, 'circle-color': '#f46b42', 'circle-stroke-color': '#3a160b', } })); }); }; // Change the souce as needed const changeSource = (sourceName) => { store.dispatch(bookmarkAction.changeSource(sourceName)); }; // Add bookmark to redux store const addBookmark = () => { store.dispatch(bookmarkAction.addBookmark(true)); }; // Delete bookmark to redux store const deleteBookmark = () => { const bookmark = store.getState().bookmark; const features = store.getState().map.sources[bookmark.source].data.features; // Simple check to make sure we have more feature to remove if (features.length > 0) { // move to the next feature before it's deleted if (features.length > 1) { store.dispatch(mapActions.setView(features[bookmark.count + 1].geometry.coordinates, 18)); } // Assumes address is unique // In a larger dataset adding in a uuid would be a good idea const filter = ['==', 'address', features[bookmark.count].properties.address]; store.dispatch(mapActions.removeFeatures(bookmark.source, filter)); } else { alert('No features left to delete'); } }; // Fetch data from local files addDataFromGeoJSON('./data/stlouis.json', SOURCENAMES[1]); addDataFromGeoJSON('./data/paris.json', SOURCENAMES[0]); // Init source for the bookmarks changeSource(SOURCENAMES[0]); //this.props.zoomTo(feature.geometry.coordinates, 18); // place the map on the page ReactDOM.render(<Provider store={store}> <SdkMap className='map-container' style={{position: 'relative'}}> <SdkZoomControl style={{position: 'absolute', top: 20, left: 20}}/> </SdkMap> </Provider>, document.getElementById('map')); // place the bookmark control and pass in the features and zoom function ReactDOM.render(<BookmarkComponent className='bookmark-item' store={store}/>, document.getElementById('bookmark')); // place the bookmark control and pass in the features and zoom function ReactDOM.render(<AddBookmarkComponent store={store}/>, document.getElementById('addForm')); // place the move slide compoent, same slide used in bookmark component ReactDOM.render( (<div> <button className="sdk-btn" onClick={() => { changeSource(SOURCENAMES[1]); } } >St. Louis Bakeries</button> <button className="sdk-btn" onClick={() => { changeSource(SOURCENAMES[0]); } } >Paris Bakeries</button> <button className="sdk-btn" onClick={() => { addBookmark(); } } >Add Bookmark</button> <button className="sdk-btn" onClick={() => { deleteBookmark(); } } >Delete Bookmark</button> <MoveButtonComponent className="sdk-btn" store={store}/> </div>), document.getElementById('controls')); } main();
examples/with-webpack-public-path/src/real.client.js
jaredpalmer/razzle
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
node_modules/react-native/local-cli/templates/HelloWorld/index.android.js
nauman-ahmad-qureshi/adsManagement
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </Text> <Text style={styles.instructions}> To get started, edit index.android.js </Text> <Text style={styles.instructions}> Double tap R on your keyboard to reload,{'\n'} Shake or press menu button for dev menu </Text> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('HelloWorld', () => HelloWorld);
src/svg-icons/action/copyright.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCopyright = (props) => ( <SvgIcon {...props}> <path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/> </SvgIcon> ); ActionCopyright = pure(ActionCopyright); ActionCopyright.displayName = 'ActionCopyright'; ActionCopyright.muiName = 'SvgIcon'; export default ActionCopyright;
src/client/components/JumbotronDashboardWidget/JumbotronDashboardWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { DashboardMenuWidget } from '../index' import { JumbotronDashboardWidget as appConfig } from '../../config/appConfig' const JumbotronDashboardWidget = ({ title = appConfig.title, subTitle = appConfig.subTitle, user }) => { return ( <div className="jumbotron-dashboard-widget"> <div className="container"> <h1>{title}</h1> <DashboardMenuWidget {...user} /> </div> </div> ) } JumbotronDashboardWidget.displayName = 'JumbotronDashboardWidget' export default JumbotronDashboardWidget
lib/components/helpers/ContactButtons.js
sljohnson32/networkr
import React, { Component } from 'react'; export default class EditSubmitButton extends Component { render() { const { addNewContact, editContact, setSelectedContact, existingContact, editView, toggleEditContact, submitContact } = this.props if(existingContact && !editView ) { return ( <button className ='edit-button' onClick = { () => toggleEditContact() } >Edit Contact </button> ) } else if (existingContact && editView) { return ( <button className = 'save-changes' onClick = { () => submitContact(editContact, setSelectedContact) } >SAVE CHANGES </button> ) } else { return ( <button className ='submit-contact' onClick = { () => submitContact(addNewContact, setSelectedContact) } >SUBMIT </button> ) } } }
packages/mineral-ui-icons/src/IconMoreHoriz.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconMoreHoriz(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> <g> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/> </g> </Icon> ); } IconMoreHoriz.displayName = 'IconMoreHoriz'; IconMoreHoriz.category = 'navigation';
tests/Rules-isFloat-spec.js
sdemjanenko/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { return ( <Formsy.Form> <TestInput name="foo" validations="isFloat" value={this.props.inputValue}/> </Formsy.Form> ); } }); export default { 'should pass with a default value': function (test) { const form = TestUtils.renderIntoDocument(<TestForm/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with an empty string': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue=""/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should fail with a string': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue="abc"/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), false); test.done(); }, 'should pass with a number as string': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue="+42"/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should fail string with digits': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue="42 is an answer"/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), false); test.done(); }, 'should pass with an int': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue={42}/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with a float': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue={Math.PI}/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with a float in science notation': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue="-1e3"/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with undefined': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue={undefined}/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with null': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue={null}/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); }, 'should pass with a zero': function (test) { const form = TestUtils.renderIntoDocument(<TestForm inputValue={0}/>); const inputComponent = TestUtils.findRenderedComponentWithType(form, TestInput); test.equal(inputComponent.isValid(), true); test.done(); } };
src/svg-icons/social/domain.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"/> </SvgIcon> ); SocialDomain = pure(SocialDomain); SocialDomain.displayName = 'SocialDomain'; SocialDomain.muiName = 'SvgIcon'; export default SocialDomain;
src/components/LeftBar/ResultsPanel/index.js
pl-buiquang/cap
import React from 'react'; import ListView from './ListView'; class ResultsPanel extends React.Component { render() { const {filteredActors} = this.props; return ( <ListView actors={filteredActors} focus={this.props.focusActor} open={this.props.openActor}/> ); } } export default ResultsPanel;
archive/js-surface-react/src/main/ReactAdapter.js
mcjazzyfunky/js-bling
'use strict'; import {Content, ComponentAdapter, ComponentConfig, Emitter, Publisher} from 'js-surface'; import React from 'react'; import ReactDOM from 'react-dom'; export default class ReactAdapter extends ComponentAdapter { constructor(id) { super(id); } createElement(tag, props, children) { // TODO: For performance reasons if (tag === undefined || tag === null) { throw new TypeError( '[ReactAdapter.createElement] ' + "First argument 'tag' must not be undefined or null"); } return (tag && tag.adaptedFactory) ? tag.adaptedFactory(props, children) : React.createElement(tag, props, ...children); } isElement(what) { return React.isValidElement(what); // TODO - is this really correct??? } createAdaptedFactory(componentConfig, view) { if (!(componentConfig instanceof ComponentConfig)) { throw new TypeError( '[ReactAdapter.createAdaptedFactory] ' + "First argument 'componentConfig' must be an instance " + 'of class ComponentConfig'); } else if (typeof view !== 'function') { throw new TypeError( '[ReactAdapter.createAdapterFactory] ' + "Second argument 'view' must be a function"); } const constructor = function (...args) { ReactAdapterComponent.call(this, componentConfig, view, args); }; constructor.displayName = componentConfig.getTypeName(); constructor.defaultProps = componentConfig.getDefaultProps(); constructor.prototype = Object.create(ReactAdapterComponent.prototype); return React.createFactory(constructor); } mount(content, targetNode) { if (!React.isValidElement(content)) { throw new TypeError( '[ReactAdapter.mount] ' + "First argument 'content' has to be a valid element"); } ReactDOM.render(content, targetNode); } /** * @ignore */ toString() { return 'ReactAdapter/instance'; } /** * @ignore */ static toString() { return 'ReactAdapter/class'; } } class ReactAdapterComponent extends React.Component { constructor(componentConfig, view, superArgs) { if (!(componentConfig instanceof ComponentConfig)) { throw new TypeError( '[ReactAdapterComponent.constructor] ' + "First argument 'componentConfig' must be an instance " + 'of class ComponentConfig'); } else if (typeof view !== 'function') { throw new TypeError( '[ReactAdapterComponent.constructor] ' + "Second argument 'view' must be a function"); } super(...superArgs); this.__componentConfig = componentConfig; this.__contentToRender = null; this.__propsEmitter = new Emitter(); this.__contentEmitter = new Emitter(); this.__viewSubscription = null; this.__mounted = false; this.__viewPublisher = view( this.__propsEmitter.asPublisher(), this.__contentEmitter.asPublisher(), this.context); if (!(this.__viewPublisher instanceof Publisher)) { throw new TypeError( '[ReactAdapter.constructor] ' + "The invocation of second argument 'view' " + 'must return an instance of class Publisher'); } } componentWillMount() { const self = this; this.__viewSubscription = this.__viewPublisher.subscribe({ next(value) { self.__contentToRender = value; if (self.__mounted) { self.forceUpdate(); } } }); this.__propsEmitter.next(this.props); this.__mounted = true; } componentDidMount() { this.componentDidUpdate(); } componentWillUnmount() { this.__mounted = false; this.__viewSubscription.unsubscribe(); this.__viewSubscription = null; } componentWillReceiveProps(nextProps) { this.__propsEmitter.next(nextProps); } componentDidUpdate() { const domNode = ReactDOM.findDOMNode(this); this.__contentEmitter.next(new Content(domNode)); } shouldComponentUpdate() { return false; } render() { if (!this.__contentToRender) { throw new Error( '[ReactAdapter#render] Something went wrong - no content to render'); } const ret = this.__contentToRender; this.__contentToRender = null; return ret; } /** * @ignore */ toString() { return 'ReactAdapterComponent/class'; } }
src/svg-icons/device/brightness-auto.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessAuto = (props) => ( <SvgIcon {...props}> <path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 16l-.7-2h-3.2l-.7 2H7.8L11 7h2l3.2 9h-1.9z"/> </SvgIcon> ); DeviceBrightnessAuto = pure(DeviceBrightnessAuto); DeviceBrightnessAuto.displayName = 'DeviceBrightnessAuto'; DeviceBrightnessAuto.muiName = 'SvgIcon'; export default DeviceBrightnessAuto;
src/routes/error/index.js
utage2002/mm
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ErrorPage from './ErrorPage'; function action() { return { title: 'Demo Error', component: <ErrorPage />, }; } export default action;
src/containers/Drama/Drama.js
polinazolotukhina/redux-movieDB
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators} from 'redux'; import * as actions from '../../actions/moviesActions'; import List from '../../components/List'; class Drama extends React.Component { constructor(props){ super(props); } componentDidMount(){ const params = { with_genres: 18, sort_by:'vote_average.desc', 'vote_count.gte':10 } this.props.actions.getMovies(params, '/3/discover/movie?'); } render() { const { actions, movies, movieOnHover } = this.props; console.log(actions); return ( <div> <h1>Drama movies</h1> <List movieprops={movies} actions={actions} hoverprops = {movieOnHover} /> </div> ); } } Drama.propTypes = { actions: PropTypes.object.isRequired, movies: PropTypes.object.isRequired, movieOnHover: PropTypes.object.isRequired, }; function mapStateToProps(state) { const { movies, isLoading, error, movieOnHover } = state; return { movies, isLoading, error, movieOnHover }; } function mapDispatchToProps(dispatch) { return { actions: bindActionCreators(actions, dispatch) }; } export default connect( mapStateToProps, mapDispatchToProps )(Drama) ;
src/Autocomplete.js
chris-gooley/react-materialize
/* eslint no-unused-vars: ["error", { "ignoreRestSiblings": true }] */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import constants from './constants'; import Icon from './Icon'; class Autocomplete extends Component { constructor (props) { super(props); this.state = { value: props.value || '' }; this.renderIcon = this.renderIcon.bind(this); this.renderDropdown = this.renderDropdown.bind(this); this._onChange = this._onChange.bind(this); } componentWillReceiveProps ({ value }) { if (value !== undefined) { this.setState({ value }); } } renderIcon (icon, iconClassName) { return <Icon className={iconClassName}>{icon}</Icon>; } renderDropdown (data, minLength, limit) { const { value } = this.state; if (minLength && minLength > value.length || !value) { return null; } let matches = Object.keys(data).filter(key => { const index = key.toUpperCase().indexOf(value.toUpperCase()); return index !== -1 && value.length < key.length; }); if (limit) matches = matches.slice(0, limit); if (matches.length === 0) { return null; } return ( <ul className='autocomplete-content dropdown-content'> {matches.map((key, idx) => { const index = key.toUpperCase().indexOf(value.toUpperCase()); return ( <li key={key + '_' + idx} onClick={this._onAutocomplete.bind(this, key)}> {data[key] ? <img src={data[key]} className='right circle' /> : null} <span> {index !== 0 ? key.substring(0, index) : ''} <span className='highlight'>{value}</span> {key.length !== index + value.length ? key.substring(index + value.length) : ''} </span> </li> ); })} </ul> ); } _onChange (evt) { const { onChange } = this.props; const value = evt.target.value; if (onChange) { onChange(evt, value); } this.setState({ value }); } _onAutocomplete (value, evt) { const { onChange, onAutocomplete } = this.props; if (onAutocomplete) { onAutocomplete(value); } if (onChange) { onChange(evt, value); } this.setState({ value }); } render () { const { className, title, data, icon, iconClassName, s, m, l, offset, minLength, placeholder, limit, // these are mentioned here only to prevent from getting into ...props value, onChange, onAutocomplete, ...props } = this.props; const _id = 'autocomplete-input'; const sizes = { s, m, l }; let classes = { col: true }; constants.SIZES.forEach(size => { classes[size + sizes[size]] = sizes[size]; }); return ( <div offset={offset} className={cx('input-field', className, classes)} {...props}> {icon && this.renderIcon(icon, iconClassName)} <input placeholder={placeholder} className='autocomplete' id={_id} onChange={this._onChange} type='text' value={this.state.value} /> <label htmlFor={_id}>{title}</label> {this.renderDropdown(data, minLength, limit)} </div> ); } } Autocomplete.propTypes = { className: PropTypes.string, /* * The title of the autocomplete component. */ title: PropTypes.string, /* * An object with the keys of the items to match in autocomplete * The values are either null or a location to an image */ data: PropTypes.object.isRequired, /* * Optional materialize icon to add to the autocomplete bar */ icon: PropTypes.string, iconClassName: PropTypes.string, s: PropTypes.number, m: PropTypes.number, l: PropTypes.number, offset: PropTypes.string, /* * Determine input length before dropdown */ minLength: PropTypes.number, /** * The max amount of results that can be shown at once. Default: Infinity * */ limit: PropTypes.number, /** * Placeholder for input element * */ placeholder: PropTypes.string, /** * Called when the value of the input gets changed - by user typing or clicking on an auto-complete item. * Function signature: (event, value) => () */ onChange: PropTypes.func, /** * Called when auto-completed item is selected. * Function signature: (value) => () */ onAutocomplete: PropTypes.func, /** * The value of the input */ value: PropTypes.string }; export default Autocomplete;
app/js/containers/HomeContainer.js
sgt39007/waji_redux
import React from 'react'; import { connect } from 'react-redux'; import * as AppActions from '../redux/actions/AppActions'; import { Container, List, Group, View, } from 'amazeui-touch'; import { Link, } from 'react-router'; class HomeContainer extends React.Component { componentWillMount() { const { dispatch } = this.props; dispatch(AppActions.hideTabbar(false)); dispatch(AppActions.hideNavLeft(true)); dispatch(AppActions.setNavTitle('首页')); } renderItems() { const pages = [ 'sell', 'buy', 'lease', 'rent', 'recruit', 'apply', ]; const titles = [ '卖车信息', '买车信息', '出租信息', '求租信息', '招聘信息', '求职信息', ]; return pages.map((item, index) => { return ( <List.Item linkComponent={Link} // 传递 query 参数 //linkProps={{to: {pathname: `/home/${item}`, query: {type: titles[index]}}}} linkProps={{to: {pathname: `/home/${item}`}}} title={titles[index]} key={index} /> ); }); } render() { return ( <View> <Container scrollable> <Group noPadded> <List> {this.renderItems()} </List> </Group> </Container> </View> ); } } export default connect()(HomeContainer)
app/javascript/mastodon/features/ui/components/tabs_bar.js
Toootim/mastodon
import React from 'react'; import NavLink from 'react-router-dom/NavLink'; import { FormattedMessage } from 'react-intl'; const links = [ <NavLink className='tabs-bar__link primary' activeClassName='active' to='/statuses/new'><i className='fa fa-fw fa-pencil' /><FormattedMessage id='tabs_bar.compose' defaultMessage='Compose' /></NavLink>, <NavLink className='tabs-bar__link primary' activeClassName='active' to='/timelines/home'><i className='fa fa-fw fa-home' /><FormattedMessage id='tabs_bar.home' defaultMessage='Home' /></NavLink>, <NavLink className='tabs-bar__link primary' activeClassName='active' to='/notifications'><i className='fa fa-fw fa-bell' /><FormattedMessage id='tabs_bar.notifications' defaultMessage='Notifications' /></NavLink>, <NavLink className='tabs-bar__link secondary' activeClassName='active' to='/timelines/public/local'><i className='fa fa-fw fa-users' /><FormattedMessage id='tabs_bar.local_timeline' defaultMessage='Local' /></NavLink>, <NavLink className='tabs-bar__link secondary' activeClassName='active' exact to='/timelines/public'><i className='fa fa-fw fa-globe' /><FormattedMessage id='tabs_bar.federated_timeline' defaultMessage='Federated' /></NavLink>, <NavLink className='tabs-bar__link primary' activeClassName='active' style={{ flexGrow: '0', flexBasis: '30px' }} to='/getting-started'><i className='fa fa-fw fa-asterisk' /></NavLink>, ]; export function getPreviousLink (path) { const index = links.findIndex(link => link.props.to === path); if (index > 0) { return links[index - 1].props.to; } return null; }; export function getNextLink (path) { const index = links.findIndex(link => link.props.to === path); if (index !== -1 && index < links.length - 1) { return links[index + 1].props.to; } return null; }; export default class TabsBar extends React.Component { render () { return ( <div className='tabs-bar'> {React.Children.toArray(links)} </div> ); } }
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
geng890518/editor-ui
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
public/js/cat_source/es6/components/header/cattol/SubHeaderContainer.js
Ostico/MateCat
import React from 'react' import CatToolConstants from '../../../constants/CatToolConstants' import CatToolStore from '../../../stores/CatToolStore' import SegmentSelectionPanel from './bulk_selection_bar/BulkSelectionBar' import SegmentsFilter from './segment_filter/SegmentsFilter' import Search from './search/Search' import QaComponent from './QAComponent' import SegmentConstants from '../../../constants/SegmentConstants' import SegmentStore from '../../../stores/SegmentStore' class SubHeaderContainer extends React.Component { constructor(props) { super(props) this.state = { selectionBar: true, search: false, segmentFilter: false, qaComponent: false, totalWarnings: 0, warnings: { ERROR: { Categories: {}, total: 0, }, WARNING: { Categories: {}, total: 0, }, INFO: { Categories: {}, total: 0, }, }, } this.closeSubHeader = this.closeSubHeader.bind(this) this.toggleContainer = this.toggleContainer.bind(this) this.showContainer = this.showContainer.bind(this) this.receiveGlobalWarnings = this.receiveGlobalWarnings.bind(this) } showContainer(container) { switch (container) { case 'search': this.setState({ search: true, segmentFilter: false, qaComponent: false, }) break case 'segmentFilter': this.setState({ search: false, segmentFilter: true, qaComponent: false, }) break case 'qaComponent': this.setState({ search: false, segmentFilter: false, qaComponent: true, }) break } } toggleContainer(container) { switch (container) { case 'search': this.setState({ search: !this.state.search, segmentFilter: false, qaComponent: false, }) break case 'segmentFilter': this.setState({ search: false, segmentFilter: !this.state.segmentFilter, qaComponent: false, }) break case 'qaComponent': this.setState({ search: false, segmentFilter: false, qaComponent: !this.state.qaComponent, }) break } } updateIcon(total, warnings) { if (total > 0) { if (warnings.ERROR.total > 0) { $('#notifbox') .attr('class', 'warningbox action-submenu') .attr('title', 'Click to see the segments with potential issues') .find('.numbererror') .text(total) .removeClass('numberwarning numberinfo action-submenu') } else if (warnings.WARNING.total > 0) { $('#notifbox') .attr('class', 'warningbox') .attr('title', 'Click to see the segments with potential issues') .find('.numbererror') .text(total) .addClass('numberwarning') .removeClass('numberinfo') } else { $('#notifbox') .attr('class', 'warningbox action-submenu') .attr('title', 'Click to see the segments with potential issues') .find('.numbererror') .text(total) .addClass('numberinfo') .removeClass('numberwarning') } } else { $('#notifbox') .attr('class', 'notific disabled action-submenu') .attr('title', 'Well done, no errors found!') .find('.numbererror') .text('') } } closeSubHeader() { this.setState({ search: false, segmentFilter: false, qaComponent: false, }) } componentDidMount() { CatToolStore.addListener( CatToolConstants.SHOW_CONTAINER, this.showContainer, ) CatToolStore.addListener( CatToolConstants.TOGGLE_CONTAINER, this.toggleContainer, ) CatToolStore.addListener( CatToolConstants.CLOSE_SUBHEADER, this.closeSubHeader, ) SegmentStore.addListener( SegmentConstants.UPDATE_GLOBAL_WARNINGS, this.receiveGlobalWarnings, ) } componentWillUnmount() { CatToolStore.removeListener( CatToolConstants.SHOW_CONTAINER, this.showContainer, ) CatToolStore.removeListener( CatToolConstants.TOGGLE_CONTAINER, this.toggleContainer, ) CatToolStore.removeListener( CatToolConstants.CLOSE_SUBHEADER, this.closeSubHeader, ) SegmentStore.removeListener( SegmentConstants.UPDATE_GLOBAL_WARNINGS, this.receiveGlobalWarnings, ) } receiveGlobalWarnings(warnings) { let totalWarnings = [] if (warnings.lexiqa && warnings.lexiqa.length > 0) { warnings.matecat.INFO.Categories['lexiqa'] = _.uniq(warnings.lexiqa) } Object.keys(warnings.matecat).map((key) => { let totalCategoryWarnings = [] Object.keys(warnings.matecat[key].Categories).map((key2) => { totalCategoryWarnings.push(...warnings.matecat[key].Categories[key2]) totalWarnings.push(...warnings.matecat[key].Categories[key2]) }) warnings.matecat[key].total = totalCategoryWarnings.filter( (value, index, self) => { return self.indexOf(value) === index }, ).length }) let tot = totalWarnings.filter((value, index, self) => { return self.indexOf(value) === index }).length this.updateIcon(tot, warnings.matecat) this.setState({ warnings: warnings.matecat, totalWarnings: tot, }) } render() { return ( <div> <Search active={this.state.search} isReview={config.isReview} searchable_statuses={config.searchable_statuses} /> {this.props.filtersEnabled ? ( <SegmentsFilter active={this.state.segmentFilter} isReview={config.isReview} /> ) : null} <QaComponent active={this.state.qaComponent} isReview={config.isReview} warnings={this.state.warnings} totalWarnings={this.state.totalWarnings} /> <SegmentSelectionPanel active={this.state.selectionBar} isReview={config.isReview} /> </div> ) } } export default SubHeaderContainer
docs/src/HomePage.js
omerts/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component{ render() { return ( <div> <NavMain activePage="home" /> <main className="bs-docs-masthead" id="content" role="main"> <div className="container"> <span className="bs-docs-booticon bs-docs-booticon-lg bs-docs-booticon-outline"></span> <p className="lead">The most popular front-end framework, rebuilt for React.</p> </div> </main> <Grid> <Alert bsStyle='warning'> <p><Glyphicon glyph='bullhorn' /> We are actively working to reach a 1.0.0 release, and we would love your help to get there.</p> <p><Glyphicon glyph='check' /> Check out the <a href="https://github.com/react-bootstrap/react-bootstrap/wiki#100-roadmap">1.0.0 Roadmap</a> and <a href="https://github.com/react-bootstrap/react-bootstrap/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> to see where you can help out.</p> <p><Glyphicon glyph='sunglasses' /> A great place to start is any <a target='_blank' href="https://github.com/react-bootstrap/react-bootstrap/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22">issues</a> with a <Label bsStyle='success'>help-wanted</Label> label.</p> <p><Glyphicon glyph='ok' /> We are open to pull requests that address bugs, improve documentation, enhance accessibility,</p> <p>add test coverage, or bring us closer to feature parity with <a target='_blank' href='http://getbootstrap.com/'>Bootstrap</a>.</p> <p><Glyphicon glyph='user' /> We actively seek to invite frequent pull request authors to join the organization. <Glyphicon glyph='thumbs-up' /></p> </Alert> <Alert bsStyle='danger'> <p><Glyphicon glyph='warning-sign' /> The project is under active development, and APIs will change. </p> <p><Glyphicon glyph='bullhorn' /> Prior to the 1.0.0 release, breaking changes should result in a Minor version bump.</p> </Alert> </Grid> <PageFooter /> </div> ); } }
actor-apps/app-web/src/app/components/ToolbarSection.react.js
Rogerlin2013/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import AvatarItem from 'components/common/AvatarItem.react'; const getStateFromStores = () => { return { dialogInfo: DialogStore.getSelectedDialogInfo(), isActivityOpen: ActivityStore.isOpen() }; }; @ReactMixin.decorate(IntlMixin) class ToolbarSection extends React.Component { state = { dialogInfo: null, isActivityOpen: false }; constructor(props) { super(props); DialogStore.addSelectedChangeListener(this.onChange); ActivityStore.addChangeListener(this.onChange); } componentWillUnmount() { DialogStore.removeSelectedChangeListener(this.onChange); ActivityStore.removeChangeListener(this.onChange); } onClick = () => { if (!this.state.isActivityOpen) { ActivityActionCreators.show(); } else { ActivityActionCreators.hide(); } }; onChange = () => { this.setState(getStateFromStores()); }; render() { const info = this.state.dialogInfo; const isActivityOpen = this.state.isActivityOpen; let infoButtonClassName = classnames('button button--icon', { 'button--active': isActivityOpen }); if (info != null) { return ( <header className="toolbar"> <div className="pull-left"> <div className="toolbar__peer row"> <div className="toolbar__peer__body col-xs"> <span className="toolbar__peer__title">{info.name}</span> <span className="toolbar__peer__presence">{info.presence}</span> </div> </div> </div> <div className="toolbar__controls pull-right"> <div className="toolbar__controls__search pull-left hide"> <i className="material-icons">search</i> <input className="input input--search" placeholder={this.getIntlMessage('search')} type="search"/> </div> <div className="toolbar__controls__buttons pull-right"> <button className={infoButtonClassName} onClick={this.onClick}> <i className="material-icons">info</i> </button> <button className="button button--icon hide"> <i className="material-icons">more_vert</i> </button> </div> </div> </header> ); } else { return ( <header className="toolbar"> </header> ); } } } export default ToolbarSection;
fields/components/DateInput.js
belafontestudio/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { d1.setHours(0, 0, 0, 0); d2.setHours(0, 0, 0, 0); return d1.getTime() === d2.getTime(); } module.exports = React.createClass({ displayName: 'DateInput', // set default properties getDefaultProps () { return { format: 'YYYY-MM-DD' }; }, getInitialState () { return { selectedDay: new Date(), id: Math.round(Math.random() * 100000), pickerIsOpen: false }; }, // componentWillReceiveProps: function(newProps) { // console.log(moment(newProps.value).format("ddd MMMM DD YYYY hh:mm:ss a Z")); // if (newProps.value === this.state.selectedDay) return; // this.setState({ // selectedDay: moment(newProps.value).format("ddd MMMM DD YYYY hh:mm:ss a Z") // }); // }, handleChange (e, day) { this.setState({ selectedDay: day }, () => { setTimeout(() => { this.setState({ pickerIsOpen: false }); }, 200); }); }, handleFocus (e) { this.setState({ pickerIsOpen: true }); }, handleBlur (e) { }, render () { let { selectedDay } = this.state; let modifiers = { 'selected': (day) => isSameDay(selectedDay, day) }; return ( <div> <FormInput autoComplete="off" id={this.state.id} name={this.props.name} onBlur={this.handleBlur} onFocus={this.handleFocus} onChange={this.handleChange} placeholder={this.props.format} value={moment(selectedDay).format(this.props.format)} /> <Popout isOpen={this.state.pickerIsOpen} onCancel={() => this.setState({ pickerIsOpen: false })} relativeToID={this.state.id} width={260}> <DayPicker modifiers={ modifiers } onDayClick={ this.handleChange } style={{ marginBottom: 9 }} tabIndex={-1} /> </Popout> </div> ); // return <FormInput name={this.props.name} value={this.state.value} placeholder={this.props.format} onChange={this.handleChange} onBlur={this.handleBlur} autoComplete="off" />; } });
lib/ui/example/client/provider.js
bigassdragon/storybook
import React from 'react'; import Preview from './preview'; import keycode from 'keycode'; import { EventEmitter } from 'events'; import parseKeyEvent from '../../src/libs/key_events'; import { Provider } from '../../src'; const id = 0; const style = { flex: 1, display: 'flex', alignItems: 'center', justifyContent: 'center', }; export default class ReactProvider extends Provider { constructor() { super(); this.globalState = new EventEmitter(); } getPanels() { const panels = { test1: { title: 'Test 1', render: () => { let inp; return ( <div style={style}> <input ref={i => { inp = i; }} value={ this.api.getQueryParam('text') === undefined ? 'ONE' : this.api.getQueryParam('text') } onChange={() => { this.api.setQueryParams({ text: inp.value }); }} /> </div> ); }, }, test2: { title: 'Test 2', render: () => <div style={style}>II</div>, }, test3: { title: 'Test 3', render: () => <div style={style}>III</div>, }, test4: { title: 'Test 4', render: () => <div style={style}>IV</div>, }, }; return panels; } // You must implement this public API. renderPreview(selectedKind, selectedStory) { // We need to do this here to avoid memory leaks in the globalState. // That's because renderPreview can be called multiple times. this._handlePreviewEvents(); // create preview React component. const preview = new Preview(this.globalState); this.globalState.emit('change', selectedKind, selectedStory); return preview; } // You must implement this public API. handleAPI(api) { this.api = api; this.api.setOptions({ name: 'REACT-STORYBOOK', }); // set stories this.api.setStories([ { kind: 'Component 1', stories: ['State 1', 'State 2'], }, { kind: 'Component 2', stories: ['State a', 'State b'], }, ]); // listen to the story change and update the preview. this.api.onStory((kind, story) => { this.globalState.emit('change', kind, story); }); } _handlePreviewEvents() { this.globalState.removeAllListeners(); // jumping to an story. this.globalState.on('jump', (kind, story) => { this.api.selectStory(kind, story); }); // calling a shortcut functionality. this.globalState.on('toggleFullscreen', () => { const event = { ctrlKey: true, shiftKey: true, keyCode: keycode('F'), preventDefault() {}, }; const parsedEvent = parseKeyEvent(event); this.api.handleShortcut(parsedEvent); }); } }
src/index.js
davertron/react-spa
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import About from './About'; import { Router, Route, Link, hashHistory } from 'react-router'; ReactDOM.render(<Router history={hashHistory}> <Route path="/" component={App}> </Route> </Router>, document.getElementById('root'));