path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/setup.js | samtgarson/MyFirstReactNativeApp | import App from './components/App';
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from './store';
const store = configureStore();
function setup() {
class Root extends Component {
render() {
return (
<Provider store={store}>
<App ... |
src/index.js | code-vagabond/journey_planner | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Grid, Segment } from 'semantic-ui-react';
import Slider from 'react-rangeslider'
import App from './components/app';
import SearchBar from './components/se... |
docs/src/main.js | adamrneary/nuclear-js | import React from 'react'
import ItemFilterExample from './components/item-filter-example'
import addScrollClass from './utils/scroll-class'
addScrollClass("scrolled")
render(ItemFilterExample, 'item-filter-example')
updateSideBar()
function render(component, id) {
var el = document.getElementById(id)
if (el) {... |
src/Requirements.js | davty/x-effect | import React, { Component } from 'react';
import { func } from 'prop-types';
import './Requirements.css';
class Requirements extends Component {
constructor() {
super();
this.state = { requirements: '' };
this.onChange = this.onChange.bind(this);
}
onChange(event) {
const { onRequirementsChange... |
src/modules/Form/components/Forms.js | YBox-POS/possys | import React from 'react';
import { Text, Image, View,ScrollView } from 'react-native';
import GridView from 'react-native-super-grid';
import { List, ListItem, Button,Grid, Row, Col} from 'react-native-elements';
import styles from './styles';
import Screens from '../../../components/commons/Screen'
import Formtopico... |
frontend/app/js/components/rules_v2/index.js | serverboards/serverboards | import React from 'react'
import i18n from 'app/utils/i18n'
import { goto, set_modal } from 'app/utils/store'
import cache from 'app/utils/cache'
import Rule from 'app/containers/rules_v2/rule'
import RuleAdd from 'app/containers/rules_v2/add'
import { sort_by_name, colorize, map_get, servername } from 'app/utils'
impo... |
html.js | islas27/islas27.github.io | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body, route} = this.... |
examples/pages/hello/client.js | jeffhandley/react-composite-pages | import React from 'react';
import ReactDOM from 'react-dom';
import Hello from './Hello';
import { getContainerState } from 'react-composite-pages/client';
const state = getContainerState('hello-container');
const container = document.getElementById('hello-container');
ReactDOM.render(
<Hello to={state.to} />,
... |
Native/Learn_Style/index.android.js | renxlWin/React-Native_Demo | /**
* 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 Learn_Style extends Component {
render() {
return (
<View style={styles.contain... |
src/components/molecules/social-icons-with-label.js | jameslutley/jameslutley.com | import React from 'react'
import styled from 'react-emotion'
import t from 'tachyons-js'
import Icon from 'react-icons-kit'
import { twitter } from 'react-icons-kit/fa/twitter'
import { instagram } from 'react-icons-kit/fa/instagram'
import { dribbble } from 'react-icons-kit/fa/dribbble'
import { github } from 'react-i... |
StarterRNP/src/screens/common/Card.js | khanhqd/ProjectOT1 | import React, { Component } from 'react';
import { View, Text } from 'react-native';
const Card = (props) => {
// const { cardStyle } = styles;
return (
<View style={styles.container}>
{props.children}
</View>
)
}
const styles={
container: {
borderWidth:1,
borderRadius:3,
border... |
example/test/components/Title.js | wyze/redux-debounce | import { shallow } from 'enzyme'
import React from 'react'
import Title from '../../src/components/Title.jsx'
import test from 'ava'
test('renders a value', t => {
const component = shallow(<Title />)
t.is(component.find('h1').text(), 'redux-debounce demo')
})
|
server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
ajax/libs/react-instantsearch/4.1.2/Dom.js | jdh8/cdnjs | /*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
src/config/viewPluginPlain.js | timscott/react-devise | import React from 'react';
import {Link} from 'react-router-dom';
const plugin = ({
formProps = {
className: 'auth-form'
},
formErrorProps = {
className: 'auth-error',
style: {
marginTop: '5px',
color: 'red'
}
},
formSuccessProps = {
className: 'auth-success',
style: {
... |
src/components/UserMenu.js | branch-bookkeeper/pina | import React from 'react';
import PropTypes from 'prop-types';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';
const propTypes = {
onOpenSettings: PropTypes.func,
onLogout: PropTypes.func,
open: PropTypes.bool,
anchorEl: PropTypes.object,
anchorOrigin: ... |
src/templates/Template.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import MessageIcons from './helpers/MessageIcons';
import Server from "../helpers/Server";
/**
* This is a template for a new component.
* To use it:
* 1. Rename all occurrences of NewComponentTemplate to your component nam... |
desktop/apps/auction2/components/works_by_followed_artists/index.js | dblock/force | import { nextPageOfFollowedArtistArtworks, previousPageOfFollowedArtistArtworks } from '../../actions'
import classNames from 'classnames'
import AuctionGridArtwork from '../auction_grid_artwork'
import ChevronLeft from '../../../../components/main_layout/public/icons/chevron-left.svg'
import ChevronRight from '../../.... |
app/js/main.js | Tequila-js/code_dojos | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, Link, hashHistory } from 'react-router';
import Header from './Component/Header';
import Members from './Scenario/Members';
import Katas from './Scenario/Katas'
import Details from './Scenario/Details'
import NotFoundPag... |
app/user/modal.js | lagden/es6-react | 'use strict';
import React from 'react';
import {userInfo} from '../tools/utility';
let el = React.createElement;
class UserModal extends React.Component {
constructor(props) {
super(props);
this.state = {
data: {},
open: false
};
}
componentWillReceiveProps(props) {
this.props = p... |
src/main/js/players/components/PlayerHatedAffinities.js | Bernardo-MG/dreadball-toolkit-webpage | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import Box from 'grommet/components/Box';
import Label from 'grommet/components/Label';
import Title from 'grommet/components/Title';
import playerMessages from 'i18n/player';
import affinityMessages from 'i18n/a... |
docs/app/Examples/collections/Grid/Variations/GridExampleCentered.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleCentered = () => (
<Grid centered columns={2}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Row centered columns={4}>
<Grid.Column>
<Imag... |
src/spares/toggle/Toggle.js | korchemkin/spares-uikit | /**
*
* Spares-uikit
*
* @author Dmitri Korchemkin
* @source https://github.com/korchemkin/spares-uikit
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Toggle.css';
class Toggle extends Component {
constructor(props) {
super(props);
this.toggle = thi... |
example/src/index.js | erikras/redux-spy | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import reducer from './reducer'
const dest = document.getElementById('content')
const store =
(window.devToolsExtension ? window.devToolsExtension()(createStore) : createStore)(reduce... |
test/test_helper.js | blanck-space/reacTube | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
admin/lib/dashboard/components/PluginManager.js | synthesis-js/react-synthesis | // PluginManager.js
import React from 'react';
export default class PluginManager extends React.Component {
constructor(props) {
super(props);
this.displayName = 'PluginManager';
}
render() {
let installedPlugins = this.props.installedPlugins;
let installedList = installedPlugins.map((plugin, i) =... |
frontend/components/rss-registration/form.js | apostolidhs/wiregoose | import React from 'react';
import Form from 'react-bootstrap/lib/Form';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Col from 'react-bootstrap/lib/Col';
import FormControl from 'react-bootstrap/lib/FormControl';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-boot... |
tests/react_custom_funs/create_factory.js | JonathanUsername/flow | // @flow
import React from 'react';
declare var any: any;
React.createFactory(any)(); // OK
React.createFactory(any)({}); // OK
React.createFactory(any)(undefined); // OK
React.createFactory(any)(null); // OK
class A extends React.Component<{foo: number, bar: number}, void> {}
function B(props: {foo: number, bar: n... |
src/routes/Home/Home.js | townmi/ReactExamples | /**
*
*/
import React, { Component } from 'react';
import axios from 'axios';
import { Link } from 'react-router';
import Load from '../../components/Load';
import Page from '../../components/Page';
import './home.scss';
class Home extends Component {
constructor(props) {
super(props);
this.st... |
test/integration/client-navigation/pages/fragment-syntax.js | JeromeFitz/next.js | /* eslint-disable */
import React from 'react'
export default () => <>My component!</>
|
src/components/calendar/content/rows.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
const Rows = ({rows}) => {
const rowsLength = rows.length;
const styles = {
gridTemplateRows: `repeat(${rowsLength}, calc(${73 / rowsLength}vh - ${4 / rowsLength}px))`
};
return (
<div className="calendar__body" style={styles}>
{rows... |
client/index.js | zhenyulin/ultimate-hot-boilerplate | import React from 'react';
import { render } from 'react-dom';
import App from './app';
const renderToPage = Component => {
render(<Component />, document.getElementById('app'));
};
renderToPage(App);
if (process.env.NODE_ENV === 'development' && module.hot) {
module.hot.accept('./app', () => {
const HotApp... |
src/playground/index.js | arqex/react-datetime | // This is the entry file for the playground, not part of the library
// it's used by running `npm run playground`
import React from 'react';
import ReactDOM from 'react-dom';
import '../../css/react-datetime.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
web/app/components/sections/stat/routes/OverviewSection.js | sunkeyhub/jedi_monitor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import ReactDOM from 'react-dom';
import { Icon } from 'antd';
import echarts from 'echarts';
class OverviewSection extends Component {
componentDidMount() {
var lineChartTpl = {
title: {
text: ''
... |
src/components/demo/side_menu.js | VicStor/react-pdf-viewer | import React from 'react';
import Toggle from 'material-ui/Toggle';
import SidebarSection from './sidebar_section';
import Form from '../helpers/form';
import Input from '../helpers/input';
import DropZone from './drop_zone';
// convert image.pdf[0] image.jpg
const SideMenu = ({ renderToggleHandler, renderToSvg, se... |
client/memories.js | BillZito/greenfield | import React from 'react';
import {
StyleSheet,
AsyncStorage,
View,
Text,
TouchableHighlight,
Image
} from 'react-native';
import { Font } from 'exponent';
import { Container, Header, Title, Content, Footer, InputGroup, Input, Button } from 'native-base';
import { Ionicons } from '@exponent/vector-icons';
... |
client/src/components/BudgetTable.js | Nauktis/inab | import React from 'react';
import { getCategoryGroups } from '../selectors/categoryGroups';
import { getCategoriesByGroupId } from '../selectors/categories';
import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems';
import { getTransactionsSumUpT... |
src/components/AddTodo.js | cmd-kvn/one_file_todo_redux | import React from 'react';
import PropTypes from 'prop-types';
const AddTodo = ({ handleSubmit }) => { /* the handleSubmit function from App is on the props object */
let inputText;
return (
<div>
<form
onSubmit={e => {
e.preventDefault();
... |
src/components/course/CourseForm.spec.js | simonpkerr/react-redux | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import CourseForm from './CourseForm';
function setup (saving) {
let props = {
course: {},
saving: saving,
errors: {},
onSave: () => {},
onChange: () => {}
};
let renderer = TestUtils.crea... |
src/js/app/components/Footer.js | FlyBase/gene2function | import React from 'react';
export default class Footer extends React.Component {
render() {
return (
<div className="container">
<p className="text-muted">
This site is brought to you by <a href="http://flybase.org">FlyBase</a> & the <a href="http://www.flyrn... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/LifeCycleHistory.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
src/index.js | css459/personal-website | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
formUtil.js | moe3000/render-generate | import React from 'react';
import {
Form,
Input,
Row,
Col,
Button,
DatePicker,
Select,
Icon,
Radio,
InputNumber,
Checkbox,
message,
Upload,
notification
} from 'antd';
const FormItem = Form.Item;
const RadioGroup = Radio.Group;
const CheckboxGro... |
fields/types/cloudinaryimage/CloudinaryImageField.js | matthieugayon/keystone | import xhr from 'xhr';
import React from 'react';
import ReactDOM from 'react-dom';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../components/Lightbox';
import classnames from 'classnames';
const SUPPORTE... |
packages/wix-style-react/src/TableActionCell/HoverSlot/HoverSlot.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from '../TableActionCell.st.css';
const HoverSlot = ({ display, children, ...props }) => (
<span className={st(classes.hoverSlot, classes[display])} {...props}>
{children}
</span>
);
HoverSlot.propTypes = {
display: PropTy... |
src/svg-icons/communication/call-received.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallReceived = (props) => (
<SvgIcon {...props}>
<path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/>
</SvgIcon>
);
CommunicationCallReceived = pure(CommunicationCallReceived);
CommunicationCa... |
src/app.js | kbeathanabhotla/react-safari | import React from 'react';
import ReactDOM from 'react-dom';
import NavBar from './components/NavBar';
import Page from './components/Page';
class App extends React.Component {
render() {
return (
<div id="content">
<NavBar userName="Sai" />
<Page>
<h1>
Hello World!
... |
src/Parser/DemonologyWarlock/Modules/Features/DoomguardInfernal.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Combatants from 'Parser/Core/Modules/Combatants';
import { calculateMaxCasts } from 'Parser/Core/getCastEfficiency';
import SPELLS from 'common/SPELLS';
import SpellLink from 'co... |
src/routes/account/Role/index.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { checkPower } from 'utils'
import { ADD, UPDATE, DELETE } from 'constants/options'
import RoleList from './List'
import RoleSearch from './Search'
import RoleModal from './ModalForm'
const namespace = 'accountRole'
func... |
node_modules/react-router/es6/Route.js | sharonjean/React-Netflix | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route> is use... |
tp-2/marisol/src/sovos-reactivo/componentes/new/NewContent.js | solp/sovos-reactivo-2017 | import React from 'react';
class NewContent extends React.Component{
render(){
return(
<p>
{this.props.New.content}
</p>
);
}
}
export default NewContent; |
frontend/src/components/InsightsDashboard.js | WildflowerSchools/sensei | import React from 'react';
import _ from 'lodash';
import d3 from 'd3';
import {Grid, Row, Col, Thumbnail, Button, ButtonToolbar} from 'react-bootstrap';
import {frontendBaseUrl, getClassroomId, getSchoolId} from './../constants';
import './InsightsDashboard.css';
class InsightsDashboard extends React.Component {
c... |
src/svg-icons/av/playlist-add-check.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
app/components/CompList.js | FermORG/FermionJS | // @flow
import React, { Component } from 'react';
import styles from './photon.scss';
import panelStyles from './Panels.scss';
import { WORKSPACE_ID } from '../constants';
// import { Link } from 'react-router-dom';
// import BlackBox from './VisComponents/BlackBox';
// function List(props){
class List extends Compo... |
packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/existing-esm-import.output.js | mingaldrichgan/gatsby | /* eslint-disable */
import React from 'react';
import { graphql, navigate } from 'gatsby';
export default function Example() {
return <button onClick={() => navigate('/sample')}>waddup</button>;
}
export const pageQuery = graphql`
query {
allSitePages {
prefix
}
}
`;
|
src/svg-icons/action/watch-later.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWatchLater = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/>
</SvgIcon>
);
ActionWatchLater = pure(Ac... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js | amido/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(prefix) {
return [
{ id: 1, [`${prefi... |
src/svg-icons/editor/border-top.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
src/svg-icons/content/save.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSave = (props) => (
<SvgIcon {...props}>
<path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>
</Svg... |
es/components/style/form-number-input.js | cvdlab/react-planner | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
src/@ui/TableView/TableView.stories.js | NewSpring/Apollos | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import FlexedView from '@ui/FlexedView';
import Icon from '@ui/Icon';
import { Switch } from '@ui/inputs';
import TableView, { Cell, CellText, Divider } from './';
storiesOf('TableView', module)
.add('default', () => (
<FlexedView>
... |
src/routes/Expense/components/sections/Notebook.js | formulaslug/expense | import React from 'react'
import './sections.scss'
export const Notebook = (props) => (
<section>
I'm a Notebook!
This is the main screen, and likely what you'll interact with most often.
Here, you'll be able to find:
<ul className='todoList'>
<li>health, temp, max and current</li>
<li>sp... |
readable/src/containers/AddPost.js | custertian/readable | import React from 'react'
import {connect} from 'react-redux'
import {Modal, Form, Input, Select} from 'antd';
import { addNewPost } from '../actions/posts'
import {closeNewPostModal} from '../actions/modalvisible'
const Option = Select.Option;
const FormItem = Form.Item;
// 展示组件
const NewPostForm = Form.create()((pro... |
frontend/src/Components/Form/RootFolderSelectInputSelectedValue.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import formatBytes from 'Utilities/Number/formatBytes';
import EnhancedSelectInputSelectedValue from './EnhancedSelectInputSelectedValue';
import styles from './RootFolderSelectInputSelectedValue.css';
function RootFolderSelectInputSelectedValue(props) {
... |
test/components_test/form-inputs/time.js | aichbauer/redux-valid-form | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import Time from '../../../src/components/form-inputs/time';
test('Time | default props', (t) => {
const timeWrapper = shallow(<Time />);
t.deepEqual(timeWrapper.props(), {
type: 'time',
'data-form-id': '',
className... |
fields/components/CollapsedFieldLabel.js | ONode/keystone | import React from 'react';
import { Button } from '../../admin/client/App/elemental';
// NOTE marginBottom of 1px stops things jumping around
// TODO find out why this is necessary
function CollapsedFieldLabel ({ style, ...props }) {
const __style__ = {
marginBottom: 1,
paddingLeft: 0,
paddingRight: 0,
...st... |
css2/app.js | kgraves/learnyoureact-lessons | import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data} />, document.getElementById("app"));
|
lib/optionList.js | zeeskhan1990/react-native-option-select | const Overlay = require('./overlay');
const Items = require('./items');
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View,
NativeModules,
findNodeHandle
} from 'react-native';
const window = Dimensions.get('window');
class OptionList extends Component {
constructor(props) {
... |
examples/Basic/Menu.js | Kureev/react-native-side-menu | import React from 'react';
import PropTypes from 'prop-types';
import {
Dimensions,
StyleSheet,
ScrollView,
View,
Image,
Text,
} from 'react-native';
const window = Dimensions.get('window');
const uri = 'https://pickaface.net/gallery/avatar/Opi51c74d0125fd4.png';
const styles = StyleSheet.create({
menu:... |
src/js/components/Nav/stories/CustomThemed/CustomAnchor.js | HewlettPackard/grommet | import React from 'react';
import { Anchor, Box, Grommet, Main, Nav } from 'grommet';
import { grommet } from 'grommet/themes';
import { deepMerge } from 'grommet/utils';
const navItems = [
{ label: 'HTML', href: '#' },
{ label: 'JS', href: '#' },
{ label: 'CSS', href: '#' },
{ label: 'REACT', href: '#' },
];... |
src/svg-icons/image/tonality.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTonality = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.... |
src/main.js | antoinegrant/react-flux-01 | import React from 'react';
import store from './stores/store';
import App from './components/App';
React.render(React.createElement(App, null), window.document.getElementById('app')); |
src/app/core/atoms/icon/icons/edit.js | blowsys/reservo | import React from 'react'; const Edit = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><path d="M9.185,0.86L0.907,9.141l-0.046,4.172l4.172-0.046l8.279-8.281L9.185,0.86z M11.182,4.987l-1.128,1.128 L8.06,4.117l1.126-1.126L11.182,4.987z M4.402,11.768l-0.844,0.009l-1.161-1.161l0.009-0.844l4.588-4.59... |
packages/material-ui-icons/src/MovieCreation.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z" /></g>
, 'MovieCreation');
|
docs/app/Examples/elements/Button/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ButtonTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Button'
description='A st... |
src/svg-icons/action/perm-scan-wifi.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
public/components/tehtPage/tabsComponents/pohjapiirrokset/subcontent/SubitemContent.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import GMap from '../../reusables/googleMaps/GMap';
import GStreetView from '../../reusables/googleMaps/GStreetView';
import SubitemImage from '../../reusables/templates/SubitemImage';
const SubitemContent = (props) => {
if(props.maptype === 'roadma... |
src/svg-icons/maps/train.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/components/common/cards/MediaCard.js | landrysoules/mmdb_front_react | import React from 'react';
import Img from 'react-image';
import { IMAGE_PROFILE_PATH } from '../../../constants/paths';
import ClipLoader from 'react-spinners';
import './MediaCard.css';
import moment from 'moment';
import CircularProgressbar from 'react-circular-progressbar';
import 'react-circular-progressbar/dist/s... |
ui/mobile/src/screens/HomeScreen.js | ivosh/jcm2018 | import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import { WebBrowser } from 'expo';
import { MonoText } from '../components/StyledText';
export default class HomeScreen extends React.Component {
static navigationOptions = ... |
src/components/TopMenu.js | jmporchet/bravakin-client | import React from 'react';
import { Link } from 'react-router-dom'
class TopMenu extends React.Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
isOpen: false
};
}
toggle() {
this.setState({
isOpen: !this.state.isOpen
});
}
... |
demo/views/tables/cssbg/cssbg.js | ShirlyKong/components_demo | import React, { Component } from 'react';
import './cssbg.css';
export default class CssBg extends Component {
render() {
return (
<div>
<div className="vp20 txt">
<ul>说明:
<li>本页主要采用css background-image:linear-gradient()属性实现的各种背景图案, 以及切角效果。</li>
... |
src/components/DataTable/DataTable.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table } from 'antd'
import { request } from 'utils'
import lodash from 'lodash'
import './DataTable.less'
class DataTable extends React.Component {
constructor (props) {
super(props)
const { dataSource, pagination = {
showSizeChanger... |
examples/js/utils.js | neelvadgama-hailo/react-bootstrap-table | import React from 'react';
function renderLinks(examplePath) {
const gitHubBase = 'https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js';
return (
<h5>Source in
<a href={ `${gitHubBase}/${examplePath}` } target='_blank'> /examples/js/{ examplePath }</a>
</h5>
);
}
export defa... |
webgui/src/routes/index.js | ZetaTwo/RESTenAvSverige | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../screens/app';
import Start from '../screens/start';
const url = "http://localhost:5000";
export const API = {
yrkesgrupper: url + "/yrkesgrupper",
search: url + "/search",
geografi: url + "/geografi",
};
export def... |
Libraries/Image/Image.ios.js | xiayz/react-native | /**
* 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.
*
* @provides... |
examples/disable-esc/components/App.js | chentsulin/react-redux-sweetalert | import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import { reducer } from 'react-redux-sweetalert'; // eslint-disable-line
import 'sweetalert/d... |
src/pages/paper/paperInfo/index.js | sunway-official/acm-admin | import React from 'react';
import { Col, Row } from 'react-flexbox-grid';
const S3_GET_PREFIX = process.env.REACT_APP_S3_GET_PREFIX;
const PaperInfo = props => {
return (
<section className="paper-section">
<Row className="paper-card" around="xs">
<Col xs={12} sm={12} md={12} lg={12} className="pa... |
feedly-search/node_modules/eslint-config-airbnb/test/test-react-order.js | uraway/Learnings | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import baseConfig from '../base';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: {indent: 0},
});
function... |
react/features/room-lock/components/RoomLockPrompt.native.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Dialog } from '../../base/dialog';
import { endRoomLockRequest } from '../actions';
/**
* Implements a React Component which prompts the user for a password to lock a
* conference/room.
*/
class RoomLockPrompt extends Compon... |
docs/src/app/components/pages/components/Divider/Page.js | spiermar/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
src/components/common/svg-icons/image/camera-roll.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
example/examples/DisplayLatLng.js | carleryd/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { MAP_TYPES } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
docs/src/sections/MenuItemSection.js | dozoisch/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function MenuItemSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/components/Dashboard/index.js | leonid/react-template | import React from 'react';
import './b-dashboard.scss';
const Dashboard = React.createClass({
getInitialState: function () {
return {
analytics: [],
staff: [],
clients: []
};
},
propTypes: {
visible: React.PropTypes.bool
},
contextTypes... |
src/Portal.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
let Portal = React.createClass({
displayName: 'Portal',
propTypes: {
/**
* The DOM Node that the Component will render it's children into
*/
container: CustomPropTypes.moun... |
src/repository/screens/pull-diff.screen.js | Antoine38660/git-point | /* eslint-disable react/no-array-index-key */
import React, { Component } from 'react';
import { View, ScrollView, Text, FlatList, StyleSheet } from 'react-native';
import { Card } from 'react-native-elements';
import Parse from 'parse-diff';
import { ViewContainer, DiffBlocks, CodeLine } from 'components';
import { t... |
examples/src/components/CustomRender.js | Paveltarno/react-select | import React from 'react';
import Select from 'react-select';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setState({ value });
console.log('Support level sel... |
client/projectDataRetriever.js | RSG-Group/website | // Import React.
import React from 'react'
// Get Material-UI, Link from Next.js and our project cards..
import {
Typography as Text, Grid, Card, CardContent, CardMedia, CardActions, Button
} from '@material-ui/core'
import Link from 'next/link'
import data from './projects'
// Create a React Component.
export defa... |
src/icons/Settings.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
const Settings = React.forwardRef(function Settings(props, ref) {
const { size = 24, ...oth... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.