path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/semantic-ui-react/src/elements/List/ListList.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, } from '../../lib' /** * A list can contain a sub list. */ function ListList(props) { const { children, className } = props const res...
examples/with-sentry-simple/pages/client/test1.js
BlancheXu/test
import React from 'react' const Test1 = () => <h1>Client Test 1</h1> Test1.getInitialProps = () => { throw new Error('Client Test 1') } export default Test1
src/containers/Home/target/Target.js
UncleYee/crm-ui
import React from 'react'; import {WhitePanel, CircleProgress, LineProgress} from 'components'; import {primaryColor} from 'utils/colors'; const styles = { root: { marginRight: 10, width: 900, height: 180 }, circle: { marginLeft: 28 }, lists: { display: 'inline-block', width: 700, ...
blueocean-material-icons/src/js/components/svg-icons/maps/local-airport.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalAirport.displayName = 'MapsLocalAi...
examples/with-reason-relay/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' const isStatusCodeOk = (res) => { try { return `${res.statusCode}`.startsWith('2') } catch (e) { return true } } class MyApp extends App { static async getInitialProps({ Component, ctx }) { let pageProps = {} if (Component.getInitialProps) ...
benchmarks/dom-comparison/src/implementations/aphrodite/Box.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; import View from './View'; import { StyleSheet } from 'aphrodite'; const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => ( <View {...other} style={[ styles[`color${color}`], fixed && styles.fixed, ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/Parser/Druid/Restoration/Modules/Traits/RelicTraits.js
enragednuke/WoWAnalyzer
import React from 'react'; import StatisticsListBox, { STATISTIC_ORDER } from 'Main/StatisticsListBox'; import Analyzer from 'Parser/Core/Analyzer'; import ArmorOfTheAncients from './ArmorOfTheAncients'; import BlessingOfTheWorldTree from './BlessingOfTheWorldTree'; import EssenceOfNordrassil from './EssenceOfNordra...
src/Home/Stats.js
Software-Eng-THU-2015/pacific-rim
import React, { Component } from 'react'; export default class Stats extends Component { render() { return ( <div> <div className = "col-xs-12 label label-primary" style={{"padding":"10px 10px 10px 10px"}}> <h1> 900 Miles </h1> </div> <div className = "col-xs-6 label label-info" style={{"padding":"...
imports/ui/components/holidays-list.js
gagpmr/app-met
import React from 'react'; import { Loading } from './loading.js'; import { Pagination } from 'react-bootstrap'; import { removeHoliday } from '/imports/api/holidays/methods.js'; export const HolidaysList = React.createClass({ getInitialState() { return { activePage: 1, range: 15 }; }, remove(id, e) { ...
src/containers/SettingsPageContainer.js
alistairmgreen/soaring-analyst
import React from 'react'; import SettingsPage from '../components/pages/SettingsPage'; export default function SettingsPageContainer() { return ( <SettingsPage /> ); }
src/components/pages/Home/sections/ExpeditionSection/index.js
humaniq/humaniq-pwa-website
import React from 'react' import A_Title_H from 'A_Title_H' import A_Btn_H from 'A_Btn_H' import SectionCounter from '../common/SectionCounter/index.js' import InfoColumns from '../common/InfoColumns' import './styles.scss' import { cssClassName } from 'utils' const cn = cssClassName('SE_Home_Expedition') const SE_Ho...
examples/01 Dustbin/Multiple Targets/Container.js
nagaozen/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; import ItemTypes from './ItemTypes'; import update from 'react/lib/update'; @DragDropContext(HTM...
app/javascript/components/provider-dashboard-charts/servers-pie-chart/serversAvailablePieChart.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import PropTypes from 'prop-types'; import { PieChart } from '@carbon/charts-react'; import EmptyChart from '../emptyChart'; const ServersAvailablePieChart = ({ data, config }) => { const pieChartData = [ { group: config.usageDataName, value: data.data.columns.used, }, ...
app/jsx/shared/SpaceTile/index.js
sfu/canvas-spaces
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SpaceTile_Information from './SpaceTile_Information'; import SpaceTile_Avatar from './SpaceTile_Avatar'; import SpaceSettingsModal from '../SpaceSettingsModal'; class SpaceTile extends Component { constructor(props) ...
stories/radio/index.js
lanyuechen/dh-component
import React from 'react'; import { Radio } from '../../src'; import { storiesOf, action, linkTo } from '@kadira/storybook'; const options = { inline: true } storiesOf('单选框', module) .addWithInfo( '单选框1', () => ( <Radio.Group defaultSelectKey="b" onChange={(key) => console.log('select =', key)}> ...
ui/src/main/js/components/UpdateStatus.js
crashlytics/aurora
import React from 'react'; import UpdateTime from 'components/UpdateTime'; import { UPDATE_STATUS } from 'utils/Thrift'; import { isInProgressUpdate } from 'utils/Update'; export default function UpdateStatus({ update }) { const time = isInProgressUpdate(update) ? '' : <UpdateTime update={update} />; return (<di...
index.ios.js
calvinchengcc/busnapper
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ "use strict"; import React, { Component } from 'react'; import { Alert, AppRegistry, Button, Navigator, StyleSheet, Text, TouchableHighlight, TouchableOpacity, Vibration, View } from 'react-native'; import Ma...
es/components/HeaderBar/Volume.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import ...
src/js/main.js
NGU2016/gallery-picture
import React from 'react'; import ReactDOM from 'react-dom'; import "../style/main.css" var imageData=require('../data/imgData.json'); import ImgFigure from "../component/ImgFigure.js"; import ControllerUI from "../component/Controller.js"; //将信息转换成图片路径 var imageDatas=(function imgUrl(imgDataArray) { for(var i=0,j...
src/icons/IosFilmOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosFilmOutline extends React.Component { render() { if(this.props.bare) { return <g> <path d="M56,88v336h400V88H56z M128,408H72v-48h56V408z M128,344H72v-48h56V344z M128,280H72v-48h56V280z M128,216H72v-48h56V2...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/launch.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionLaunch = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> ); ActionLaunch.displayName = 'ActionL...
ui/src/containers/Visualisations/TemplateWeekdaysActivity/Viewer.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import SourceResults from 'ui/containers/VisualiseResults/SourceResults'; import ColumnChartResults from 'ui/containers/VisualiseResults/ColumnChartResults'; /** * @param {string} props.visualisationId * @param {boolean} props.showSourceView */ const V...
src/js/components/icons/base/Checkbox.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
public/controllers/management/components/management/ruleset/main-ruleset.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for registering agents. * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at ...
packages/material-ui-icons/legacy/NetworkWifiOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.94L12 21.5l8.47-10.56c-.43-.33-3.66-2.95-8.47-2.95s-8.04 2.62-8.47 2.95z" /...
src/svg-icons/navigation/more-vert.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreVert = (props) => ( <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"...
src/components/HomePage.js
tony-luisi/eMazon-Me
import React from 'react' import SearchBar from './SearchBar' import StoresListings from './StoresListings' import testData from '.././data/thumbnailSampleData' class HomePage extends React.Component { constructor(props) { super(props) } render () { return ( <div className="homePage"> <Se...
src/Controller.js
dog-days/react-router-controller
import React from 'react'; //基本的配置,会在当前类和./index.jsx中使用。 export let ControllerConfig = {}; //所有view是否是第一次载入状态 const allViewFirstLoad = {}; /** * url风格定义如下,跟php框架的Yii一致,例如: * pathname=/main/about/id/100/appid/aiermu * 上面的pathname会解析为 * {contollerId: 'main',viewId: 'about',id: "100",appid: 'aiermu'} * 然后根据解析的参数运行对应的...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
gutenye/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({ id, ...rest } = { id: 0, user: { id: 42, ...
src/components/todo/TodoList.js
leonpapazianis/react-boilerplate
import React from 'react'; import { TodoItem } from './TodoItem'; export const TodoList = props => ( <div className="Todo-List"> <ul> {props.todos.map(todo => <TodoItem handleToggle={props.handleToggle} key={todo.id} {...todo}/>)} </ul> </div> ); TodoList.propTypes = { todos: React.PropType...
ui/js/pages/page/PageItem.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const PageItem = (props) => { const { align, className, item: page } = props; const classNames = ['item__container', className]; const itemClassNames = ['item']; if (align) { itemClassNames.push(`item--...
examples/todomvc/containers/TodoApp.js
blackxored/redux-devtools
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; class TodoApp extends Component { render(...
src/decorators/withViewport.js
18621032336/Three
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
docs/app/Examples/collections/Grid/Variations/GridExampleColumnCount.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleColumnCount = () => ( <Grid> <Grid.Row columns={3}> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='http://semantic...
app/components/H3/index.js
Rohitbels/KolheshwariIndustries
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/parser/demonhunter/havoc/modules/talents/DemonBlades.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } fro...
src/icons/Chatbox.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Chatbox extends React.Component { render() { if(this.props.bare) { return <g> <path d="M124.3,400H277c14.4,0,14.4,0.1,21.3,5.2S384,464,384,464v-64h3.7c42.2,0,76.3-31.8,76.3-71.4V119.7 c0-39.6-34.2-71.7-76.3-...
src/renderer.js
bcgodfrey91/git-in-the-game
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import rootReducer from './reducers/index'; import Home from './components/Home'; import Settings from './comp...
src/svg-icons/action/settings-phone.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
assets/main.js
rmccue/new-list-tables
import React from 'react'; import ReactDOM from 'react-dom'; import CommentsTable from './Tables/Comments'; import PostsTable from './Tables/Posts'; const init = () => { let Component; switch ( window.nlkOptions.id ) { case 'comments': Component = CommentsTable; break; case 'posts': Component = PostsT...
src/screens/Shared/Detail.js
alphasp/pxview
import React, { Component } from 'react'; import { StyleSheet, Text, View, InteractionManager, Platform, LayoutAnimation, UIManager, DeviceEventEmitter, } from 'react-native'; import { connect } from 'react-redux'; import { withTheme } from 'react-native-paper'; import analytics from '@react-native-fire...
tests/react/createElement_string.js
JonathanUsername/flow
// @flow import React from 'react'; class Bar extends React.Component<{}> {} class Foo extends React.Component<{}> { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
src/app/d3components/utilities/axisLabel.js
cox-auto-kc/react-d3-responsive
'use strict'; import React from 'react'; const AxisLabel = ({w, h, axisLabel, axisType, padding}) => { const translateLabelX = "translate("+(w/2)+","+(h+40)+")"; const translateLabelY = "translate(" + (-40 - padding) + ","+(h/2)+") rotate(270)"; return ( <text className={axisType + "-axis-label"} textAncho...
src/svg-icons/editor/strikethrough-s.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorStrikethroughS = (props) => ( <SvgIcon {...props}> <path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ...
public/components/MyApp.js
rolandfung/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { renderChart } from '../D3graphTemplate'; import { Panel, Grid, Row, Col, PageHeader, Button, Image} from 'react-bootstrap'; import request from '../util/restH...
app/scripts/views/typography.js
transmute-industries/monarch-portal
import React from 'react' export function addr (addr) { return <code className='webui-address'>{addr}</code> }
cheesecakes/admin/admin/src/containers/LocaleToggle/index.js
strapi/strapi-examples
/* * * LanguageToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { bindActionCreators } from 'redux'; import cn from 'classnames'; import { ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle }...
lib/manager.js
pressly/scene-router
// @flow import React from 'react' import route from 'trie-route' import * as constants from './constants' import { Scene } from './scene' import type { SceneConfig, Route, Router, SceneResolver, SceneRejecter, RouterExtra, GestureStatus } from './types' // types ////////////////////////////////////////////////////...
admin/client/App/screens/Home/components/ListTile.js
rafmsou/keystone
import React from 'react'; import { Link } from 'react-router'; /** * Displays information about a list and lets you create a new one. */ var ListTile = React.createClass({ propTypes: { count: React.PropTypes.string, hideCreateButton: React.PropTypes.bool, href: React.PropTypes.string, label: React.PropType...
app/components/ReleaseHeader.js
jackokerman/discogs-dj
import React from 'react'; import { Table } from 'react-bootstrap'; const ReleaseHeader = (props) => { const { label, releaseDate, styles } = props; return ( <Table condensed> <tbody> <tr> <td>Label</td> <td>{label}</td> </tr> <tr> <td>Released</td> ...
components/OrderedList.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { children: PropTypes.node, className: PropTypes.string, nested: PropTypes.bool, }; const defaultProps = { nested: false, }; const OrderedList = ({ children, className, nested, ...other }) =>...
examples/todos-with-undo/components/App.js
neighborhood999/redux
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' import UndoRedo from '../containers/UndoRedo' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> <UndoRedo /> </div> ) e...
src/EventRowMixin.js
manishksmd/react-scheduler-smartdata
import PropTypes from 'prop-types'; import React from 'react'; import { findDOMNode } from 'react-dom'; import EventCell from './EventCell'; import getHeight from 'dom-helpers/query/height'; import { accessor, elementType } from './utils/propTypes'; import { segStyle } from './utils/eventLevels'; import { isSelected } ...
src/client.js
niketpathak/npk-website
/** * @author Niket Pathak. (http://www.niketpathak.com/) * * Copyright © 2014-present. 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 ReactDOM from 'react-dom'; import de...
src/frontend/src/components/auth/LoginDialog.js
ziroby/dmassist
import React from 'react'; import './LoginDialog.css'; class LoginDialog extends React.Component { constructor(props) { super(props); this.state = {value: ''}; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event)...
src/components/app.js
blueeyess/redux-intermediate
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
app/components/home/Home.js
dingo-d/wp-api
import React from 'react'; import DataStore from './../../stores/DataStore.js'; class Home extends React.Component { render() { let allData = DataStore.getAll(); return ( <div> <h1>Hello World</h1> </div> ); } } module.exports = Home;
react/src/browser/app/Root.js
janprasil/mi-vmm-product-quality-rating
/* @flow */ import App from './App'; import BrowserHistory from 'react-history/BrowserHistory'; import React from 'react'; import { Provider as Redux, connect } from 'react-redux'; import { StaticRouter } from 'react-router'; import { setLocation } from '../../common/app/actions'; type RouterProps = { dispatch: () =...
src/svg-icons/communication/rss-feed.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRssFeed = (props) => ( <SvgIcon {...props}> <circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17...
src/svg-icons/image/brightness-2.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness2 = (props) => ( <SvgIcon {...props}> <path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/> </SvgIcon> ); I...
docs/src/sections/PaginationSection.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 PaginationSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/icons/GlyphMail.js
ipfs/webui
import React from 'react' const GlyphMail = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M47.94 55.76a2.12 2.12 0 0 0 2.83 0L81.5 28.91a5.85 5.85 0 0 0-4.67-2.52H24.08a7.27 7.27 0 0 0-5.35 2.74zm-9.78-4.92L17.24 31.76A5.62 5.62 0 0 0 17 33.5v33.77A5.76 5.76 0 0 0 18.47 71zm22.68.06l20.51 20.77a6.49...
frontend/src/pages/org-admin/org-logs-file-update.js
miurahr/seahub
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; import { seafileAPI } from '../../utils/seafile-api'; import { siteRoot, gettext, lang } from '../../utils/constants'; import { Ut...
src/components/Footer/Footer.js
history007/karma-one
import React from 'react'; const Footer = () => <footer >< /footer> export {Footer}; export default Footer;
test/App-test.js
octopitus/feather
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import styles from '../src/App.css' import { App, Counter } from '../src/App.js'; test('render 2 counters component', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('.' + styles.container).length, 1);...
test/test_helper.js
MrmRed/test
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...
src/index.js
anuragaryan/webpack-react-redux-starter
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
src/client.js
mattijsbliek/record-client
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
src/addons/Pagination/Pagination.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { ModernAutoControlledComponent as Component, createPaginationItems, customPropTypes, getUnhandledProps, } from '../../lib' import Menu from '../../collections/Menu' import PaginationItem from './PaginationItem' /** * ...
docs/src/app/AppRoutes.js
spiermar/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import Prerequisites from './components/pages/get-started/Prerequisites'; import In...
src/components/Layout/SimpleHeader.js
yining1023/thesisBook
import React from 'react' import {Link} from 'react-router-dom' import s from './SimpleHeader.css' import logo from '../../img/itp-logo-tisch.svg' import {Drawer, IconButton} from 'material-ui' import MenuIcon from 'material-ui/svg-icons/navigation/menu' import SimpleFilterMenu from '../SimpleFilterMenu/SimpleFilterMen...
packages/reactor-kitchensink/src/examples/Tabs/BasicTabs/BasicTabs.js
markbrocato/extjs-reactor
import React from 'react'; import { TabPanel, Container } from '@extjs/ext-react'; export default function BasicTabsExample() { return ( <TabPanel flex={1} shadow defaults={{ cls: "card", layout: "center" }} > ...
src/components/modals/NewMarkerMenu/index.js
Guseff/services-on-map-demo
import React, { Component } from 'react'; import ReactModal from 'react-modal'; import NewMarkerForm from '../NewMarkerForm'; import './style.css'; class NewMarkerMenu extends Component { constructor() { super(); this.handleCloseModal = this.handleCloseModal.bind(this); } handleCloseModal() { this...
src/svg-icons/content/text-format.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
src/app/pages/About.js
skratchdot/web-audio-api-archive
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import { connect } from 'react-redux'; import marked from 'marked'; import readmeContents from '~/README.md'; const readmeHtml = marked(readmeContents); class About extends Component { render() { return ( <div style={{ padding...
src/assets/js/react/components/Template/TemplateActivateButton.js
blueliquiddesigns/gravity-forms-pdf-extended
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { selectTemplate } from '../../actions/templates' import { withRouter } from 'react-router-dom' /** * Renders the button used to trigger the current active PDF template * On click it triggers our Redux action. ...
doc/src/pages/examples/extend-webgl-renderer.js
mapillary/mapillary-js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import React from 'react'; import Layout from '@theme/Layout'; import {Code} from '../../js/components/Code'; import...
src/user/ui/logoutbutton/LogoutButton.js
Solvocracy/solvocracy-dapp
import React from 'react' const LogoutButton = ({ onLogoutUserClick }) => { return( <li className="pure-menu-item"> <a href="#" className="pure-menu-link" onClick={(event) => onLogoutUserClick(event)}>Logout</a> </li> ) } export default LogoutButton
src/app/components/SearchBarOverlay/SearchBar/index.js
ajacksified/reddit-mobile
import './styles.less'; import React from 'react'; import { Form } from '@r/platform/components'; const T = React.PropTypes; function focusInput(x) { if (x) { x.focus(); } } export default class SearchBar extends React.Component { static propTypes = { // onClear: T.func.isRequired, // TODO: uncomment this wh...
src/apps/Hosting/HostingPublishDialog.js
Syncano/syncano-dashboard
import React from 'react'; import Reflux from 'reflux'; import { withRouter } from 'react-router'; import { DialogMixin } from '../../mixins'; import HostingPublishDialogActions from './HostingPublishDialogActions'; import HostinPublishDialogStore from './HostingPublishDialogStore'; import { Dialog } from '../../com...
packages/material-ui-icons/src/Help.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-...
plugins/react/frontend/components/common/IFrame/index.js
carteb/carte-blanche
/* eslint-disable max-len */ // based on https://github.com/ryanseddon/react-frame-component import React from 'react'; import path from 'path'; const createHtml = ( componentPath, basePath = '', userFiles, injectTags, commonsChunkFilename ) => { const iframeClientBundle = path.join(basePath, 'iframe-clie...
RNTester/js/ActivityIndicatorExample.js
clozr/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. * * @flow * ...
components/admin/tools/table/actions/DeleteAction.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; // Services import { deleteTool } from 'services/tools'; import { toastr } from 'react-redux-toastr'; class DeleteAction extends React.Component { handleOnClickDelete = (e) => { if (e) { e.preventDefault(); e.stopPropagation(); } ...
blueocean-material-icons/src/js/components/svg-icons/av/airplay.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay.displayName = 'AvAirplay'; AvAirplay.muiName = 'S...
benim/src/app.js
SentiyWhen/Ben-IM
import React from 'react' import Login from './container/login/login' import Register from './container/register/register' import AuthRoute from './component/authroute/authroute' import BossInfo from './container/bossinfo/bossinfo' import GeniusInfo from './container/geniusinfo/geniusinfo' import Chat from './component...
packages/ringcentral-widgets-docs/src/app/pages/Components/Line/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/components/Profile/UserInfo.js
devcharleneg/twitter-react-app
import React from 'react'; import request from 'superagent'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Profile.css'; import {Row,Col,Image} from 'react-bootstrap'; import AppConstants from '../../constants/AppConstants'; import Session from '../../core/Session'; class UserInfo e...
src/components/dashboard/DndWidget.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import { DragSource, DropTarget } from 'react-dnd'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const cardSource = { beginDrag(props) { return { id: props.id, index: props.index, isNew: props.isNew, }; }, }; const car...
server/sonar-web/src/main/js/apps/account/components/Home.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
packages/react-server-cli/test/fixtures/BasicPage.js
redfin/react-server
import React from 'react'; class TransitionPage { getElements() { return React.createElement('h1', null, 'Yay!'); } } module.exports = TransitionPage;
src/index.js
kunwardeep/todo-list
import 'babel-polyfill'; import React from 'react'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import '../node_modules/toastr/build/toastr.min.css'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import routes from '...
app/routes.js
DenQ/electron-react-lex
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import CounterPage from './containers/Counter/CounterPage'; import ListAlbumsPage from './containers/pages/list-albums/container'; import AddAlbumPage from './containe...
fields/types/password/PasswordField.js
asifiqbal84/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
react-flux-mui/js/material-ui/src/svg-icons/content/delete-sweep.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
src/main/webapp/resources/modules/lobby/JoinGameDialog/JoinGameDialog.js
cwoolner/flex-poker
import React from 'react' import Button from 'react-bootstrap/Button' import Modal from 'react-bootstrap/Modal' import Form from 'react-bootstrap/Form' export default ({gameId, showModal, hideDialogCallback, submitFormCallback}) => { return ( <Modal size="sm" show={showModal} onHide={hideDialogCallback}> <...
frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MenuItem from 'Components/Menu/MenuItem'; class AddNotificationPresetMenuItem extends Component { // // Listeners onPress = () => { const { name, implementation } = this.props; this.props.onPress({ ...
src/pages/auth.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...