path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
test/DropdownSpec.js | thealjey/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Dropdown from '../src/Dropdown';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
import keycode from 'keycode';
class CustomMenu extends React.Compone... |
docs/src/app/components/pages/components/FloatingActionButton/Page.js | xmityaz/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 floatingButtonReadmeText from './README';
import floatingButtonExampleSim... |
src/components/CardTitleWithImage.js | carlyleec/cc-react | import React from 'react';
import styled from 'styled-components';
const Title = styled.h1`
font-size: 1.5em;
font-weight: 700;
line-height: 1.1;
color: inherit;
margin-left: 10px;
margin: 5px;
@media (min-width: 480px) {
font-size: 2em;
}
@media (min-width: 768px) {
font-size: 2em;
}
@me... |
src/svg-icons/editor/format-size.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatSize = (props) => (
<SvgIcon {...props}>
<path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/>
</SvgIcon>
);
EditorFormatSize = pure(EditorFormatSize);
EditorFormatSize.displayName = 'EditorFo... |
src/client/app/panels/workers.list.panel.js | mapkiwiz/sectorisation | import React from 'react';
import {Link} from 'react-router';
import {MenuLink} from './menu.link';
import {List} from '../shared/components/list/list.component';
import {SearchBox} from '../shared/components/list/searchbox.component';
import {SwitchInput} from '../shared/components/input/switch.component';
function m... |
packages/react-router/modules/__tests__/Switch-test.js | d-oliveros/react-router | import React from 'react'
import ReactDOM from 'react-dom'
import MemoryRouter from '../MemoryRouter'
import Switch from '../Switch'
import Route from '../Route'
import Redirect from '../Redirect'
describe('A <Switch>', () => {
it('renders the first <Route> that matches the URL', () => {
const node = document.cr... |
views/invocation.js | AnalogRez/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
stories/Accordion.stories.js | reactstrap/reactstrap | import React from 'react';
export default {
title: 'Components/Accordion',
parameters: {
docs: {
description: {
component: `
[Bootstrap Accordion](https://getbootstrap.com/docs/5.1/components/accordion/)
Used to build vertically collapsing accordions.
`,
}
}
}
};
export { de... |
webapp/src/components/Home.js | gcallah/Indra | import React, { Component } from 'react';
import { Loader, Dimmer } from 'semantic-ui-react';
import ListGroup from 'react-bootstrap/ListGroup';
import Col from 'react-bootstrap/Col';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import Tooltip from 'react-bootstrap/Tooltip';
import axios from 'axios';
i... |
react/features/video-menu/components/native/KickRemoteParticipantDialog.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { ConfirmDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractKickRemoteParticipantDialog
from '../AbstractKickRemoteParticipantDialog';
/**
* Dialog to confirm a remote part... |
src/components/menu/modals/user-modal-container.js | aautem/aa | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { View, Modal, Text, Slider, Switch, ActivityIndicator, TouchableHighlight, Dimensions } from 'react-native';
import { Grid, Col, Row } from 'react-native-easy-grid';
... |
src/components/LineGraphComponents/LineGraphKey/index.js | badT/Chatson | import React, { Component } from 'react';
import Tooltip from '../../Tooltip';
import { emoColors, socColors, splotchDesc, splotchDescLT25, splotchDescLT50, splotchDescGT75 } from '../descriptions';
import { capitalizeFirstLetter } from '../helpers';
import { styles } from './styles.scss';
export default class LineGra... |
packages/storybook/stories/DropdownList.js | haneev/react-widgets | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from './helpers'
import Container from './Container';
import DropdownList from 'react-widgets/lib/DropdownList';
let generateNames = global.generateNames;
let props = {
data: generateNames(),
valueField: 'id',
textField:... |
frontend/components/dashboard/disk/AttributeModalPresentational.js | wpmg/wpcl_hd | import React from 'react';
import PropTypes from 'prop-types';
import { DiskTimeFormat } from '../../../helpers/dates';
const AttributeModalPresentational = (p) => {
const attributeName = p.attribute.name || '';
const attributeThresh = p.attribute.thresh || '';
const attributeDataList = p.data[0] === 0 ? [] : ... |
analysis/warlockdemonology/src/modules/pets/PetTimelineTab/TabComponent/KeyCastsRow.js | anom0ly/WoWAnalyzer | import { SpellIcon } from 'interface';
import { Tooltip } from 'interface';
import { EventType } from 'parser/core/Events';
import PropTypes from 'prop-types';
import React from 'react';
const KeyCastsRow = (props) => {
const { className, events, start, totalWidth, secondWidth } = props;
return (
<div classNam... |
src/components/topbar.js | Carlado/Indieling | import React from 'react';
import FontAwesome from 'react-fontawesome';
import { Link, IndexLink } from 'react-router';
const Topbar = () => {
return (
<nav className="topbar">
<ul className="nav-items">
<li><IndexLink to="/" activeClassName="active"><FontAwesome className="nav-icon" name="music" s... |
client/components/photoGallery.js | oshirodk/dogMatch | import React from 'react';
import {Link} from 'react-router';
function PhotoGallery() {
return (
<div className="container photoContainer">
<div className="aboutLink">
<Link to="/about">About</Link>
</div>
<div className="row">
<h2 className="title">Let's find your Doggy match</h2>
</div>
... |
core/com.b2international.snowowl.core.rest/snow-owl-api-docs/src/App.js | b2ihealthcare/snow-owl | import 'antd/dist/antd.css';
import 'rapidoc';
import React from 'react';
import { BackTop } from 'antd';
import { parse } from 'qs';
class App extends React.Component {
state = {
selectedKey: 'core',
apis: [],
serverUrl: process.env.REACT_APP_SO_BASE_URL || process.env.PUBLIC_URL
}
componentDidMo... |
docs/src/app/components/pages/components/Menu/ExampleSecondary.js | pradel/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import Divider from 'material-ui/Divider';
import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right';
const style = {
display: 'inline-block',
flo... |
src/scenes/home/signup/signup.js | miaket/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import _ from 'lodash';
import * as CookieHelpers from 'shared/utils/cookieHelper';
import Form from 'shared/components/form/form';
import FormEmail from 'shared/components/form/formEmail/formEmail';
import FormZipCode from 'shared/components/form/for... |
src/index.js | aitorfernandez/trackicon-invaders | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/components/Elements/ScemaDataEntry/ScemaDataEntryRow.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-24 01:35:21
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-24 05:27:35
*/
import React from 'react';
var ScemaDataEntryRow = React.createClass({
getInitialState() {
return {data1: '', data2: '',teamid: ''};
},
componentDidMount() {
var valueTy... |
packages/material-ui-icons/src/BluetoothSearching.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.98 4.02l1.2 1.2c.97-1.54 1.54-3.36 1.54-5.31-.01-1.89-.55-... |
app/containers/NotFoundPage/Loadable.js | react-boilerplate/react-boilerplate | /**
* Asynchronously loads the component for NotFoundPage
*/
import React from 'react';
import loadable from 'utils/loadable';
import LoadingIndicator from 'components/LoadingIndicator';
export default loadable(() => import('./index'), {
fallback: <LoadingIndicator />,
});
|
src/views/DashboardManager/components/widgets/BarChart.js | blackshade91/daf-dataportal | import React from 'react';
import { Bar } from 'react-chartjs';
import { getRandomInt } from './util';
class BarChart extends React.Component {
constructor() {
super();
this.state = {
data: {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
... |
src/Select.js | lzcmaro/react-ratchet | import React from 'react';
import classNames from 'classnames';
import Input from './Input';
import List from './List';
import ActionSheet from './ActionSheet';
let Select = React.createClass ({
PropTypes:{
defaultValue: React.PropTypes.string,
onChange: React.PropTypes.func
},
childContext... |
examples/redux-with-actions/src/App.js | pbeshai/react-url-query | import React, { Component } from 'react';
import MainPage from './MainPage';
import history from './history';
class App extends Component {
componentDidMount() {
// force an update if the URL changes
history.listen(() => this.forceUpdate());
}
render() {
return (
<div>
<h3>react-url-qu... |
src/square/square.js | JithuTholoor/Tic-Tac | import React, { Component } from 'react';
class Square extends Component {
constructor(props) {
super(props);
this.onSquareClick = this.onSquareClick.bind(this);
this.onDrag = this.onDrag.bind(this);
this.onDrop = this.onDrop.bind(this);
this.onDragEnd = this.onDragEnd.bind... |
app/containers/HomePage.js | SimpleWeek/desktop-tray-app | import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
test/helpers/shallowRenderHelper.js | lvyidan/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/issue/screens/pull-merge.screen.js | housseindjirdeh/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, ScrollView, StyleSheet, TextInput, Alert } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import ActionSheet from 'react-native-actionsheet';
import { ViewContainer, SectionList } from 'compone... |
src/components/Groups.js | snsavage/timer-react | import React, { Component } from 'react';
import { Intervals } from './../components/Intervals'
import { List } from 'semantic-ui-react';
export class Groups extends Component {
render() {
const groups = this.props.groups.map((group, index) => {
return (
<List.Item key={index}>
<List.He... |
react-router-nb/react-router/modules/__tests__/push-test.js | zhangfaliang/learnReact | import expect from 'expect'
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from '../createMemoryHistory'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe('push', () => {
const Index = () => (
<h1>I... |
pages/about-us.js | aimanaiman/supernomadfriendsquad | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
import { Link } from 'react-router'
import aiman from '../image/me.jpg'
import blake from '../image/blake.jpg'
import brune2 from '../image/brune2.jpg'
import beck from '../i... |
user/themes/barefoot-funk/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | billybobjobo/barefootfunk | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/todos-with-undo/index.js | chentsulin/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import todoApp from './reducers'
const store = createStore(todoApp)
const rootElement = document.getElementById('root')
ren... |
client/modules/core/components/tree/categories_view.js | bompi88/grand-view | import React from 'react';
export default class CategoriesView extends React.Component {
renderTag(item) {
const { setCurrentCategory, getCurrentCategory, text } = this.props;
let className = 'element disable-select';
if (getCurrentCategory() === item.category) {
className += ' selected';
}
... |
webapp/src/containers/search/categoryLabel.js | nathandunn/agr | import React, { Component } from 'react';
import style from './style.css';
import { CATEGORIES } from '../../constants';
class CategoryLabel extends Component {
getCurrentOption() {
let current = CATEGORIES.filter( d => d.name === this.props.category )[0];
return current;
}
renderSprite() {
let cur... |
src/index.js | connectordb/connectordb-android | import React from 'react'
import { Component } from 'react-native';
import { Provider, connect } from 'react-redux';
import { createStore, applyMiddleware, combineReducers } from 'redux'
import createSagaMiddleware from 'redux-saga'
// Imports the sagas (asynchronous actions) that run on certain things.
// All networ... |
test/integration/image-component/base-path/pages/layout-intrinsic.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Intrinsic</p>
<Image
id="intrinsic1"
src="/docs/wide.png"
width="1200"
height="700"
layout="intrinsic"
></Image>
<Image
id="intrinsic2"
... |
webapp/src/component/page_user_list.js | hfcc/rflove | import './../css/unify/css/pages/profile.css';
import React from 'react';
import _ from 'lodash';
import UserCardMain from './user_card_main.js';
import userRepository from '../repository/user_repository.js';
export default class UserList extends React.Component {
constructor(props) {
super(props);
... |
src/utils/devTools.js | Architektor/idealist | import React from 'react';
import { createStore as initialCreateStore, compose } from 'redux';
export let createStore = initialCreateStore;
if (__DEV__) {
createStore = compose(
require('redux-devtools').devTools(),
require('redux-devtools').persistState(
window.location.href.match(/[?&]debug_session=(... |
app/imports/ui/client/pages/App/index.js | valcol/ScrumNinja | import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { Collections } from '../../../../api/common/collections.js';
import { browserHistory } from 'react-router';
import Header from '../../layouts/Header';
import Footer from '../../layouts/Footer';
import Menu fro... |
www/frontend/src/components/News2.js | lokiiart/upali-mobile | import React from 'react';
const News2 = () => {
return (
<div className="product sub-section section">
<h3 className="pr title">
优波粒浪漫普吉岛之行
</h3>
<p className="pr content">
2016年3月,像往年一样,优波粒团队开始了今年的浪漫之旅,这次的目的地是泰国的普吉岛,小伙伴到达普吉岛机场的时间是凌晨,天还没有亮,第... |
app/components/SplitView/index.js | vvnsze/Nexcast | /**
*
* SplitView
*
*/
import React from 'react';
import SideMenu from '../../containers/SideMenu';
import MainContent from '../MainContent';
// import styled from 'styled-components';
class SplitView extends React.Component {
render() {
return (
<div className="row splitViewWrapper" style={{ margin: 0 }}... |
boxroom/archive/js-remix_2018-04-27/src/main/internal/decorateComponent.js | js-works/js-scenery | import React from 'react';
export default function decorateComponent(component, config) {
const convertedConfig = convertToReactConfig(config);
if (component.prototype instanceof React.Component) {
ret = class Component extends component {
get context() {
throw new Error(
... |
test/electron-renderer/ui/tabs/PlaybackTab_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai from 'chai';
import { mount } from 'enzyme';
import PlaybackTab from '../../../../build/renderer/ui/components/settings/tabs/PlaybackTab';
import materialUIContext from '../_materialUIContext';
chai.should();
describe('<PlaybackTab />... |
src/Checkbox/Checkbox.driver.js | nirhart/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import $ from 'jquery';
const checkboxDriverFactory = ({element, wrapper, component}) => {
const checkbox = $(element).find('input')[0];
const isClassExists = (element, className) => !!(element.class... |
website/src/components/aside.js | honnibal/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classes from '../styles/aside.module.sass'
export default function Aside({ title, children }) {
return (
<aside className={classes.root}>
<div className={classes.content} role="complementary">
<div className={c... |
src/mui/input/ReferenceInput.spec.js | marmelab/admin-on-rest | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { getDataStatus, ReferenceInput } from './ReferenceInput';
describe('Reference Input', () => {
describe('getDataStatus', () => {
const data = {
input: {},
matc... |
src/scenes/Dashboard/TasksInfoBar/TaskInfoBarContainer.js | jmlweb/paskman | import React, { Component } from 'react';
import PT from 'prop-types';
import { connect } from 'react-redux';
import { modalOpen } from '../../../components/Modal/duck';
import constants from '../constants';
export function mapStateToProps() {
return {};
}
export const mapDispatchToProps = {
modalOpen,
};
const ... |
src/App.js | clothiersphere/sound-candy | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/parser/warlock/destruction/modules/talents/InternalCombustion.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statistic from 'interface/statistics/Statistic';
import Bor... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshPublicTimeline,
expandPublicTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/column... |
src/pages/demo2/index.js | lyc-chengzi/reactProject | /**
* Created by liuyc14 on 2016/7/26.
*/
import React from 'react';
import ReactDom from 'react-dom';
import TodoComponent from '../../component/ToDoListWithFlux/TodoComponent.react';
ReactDom.render(<TodoComponent />, document.getElementById('todoapp'));
|
blueocean-material-icons/src/js/components/svg-icons/action/invert-colors.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.... |
storybook/stories/bar-stack/standard.js | JesperLekland/react-native-svg-charts | import React from 'react'
import { StackedBarChart, Grid } from 'react-native-svg-charts'
class StackedBarChartExample extends React.PureComponent {
render() {
const data = [
{
month: new Date(2015, 0, 1),
apples: 3840,
bananas: 1920,
... |
src/pages/transactions.js | Hurtak/finances | // @flow
import React from 'react'
import * as utils from '../utils/utils.js'
import * as data from '../data/data.js'
const Transactions = () => (
<section>
<h1>Transactions</h1>
<table>
<thead>
<tr>
<th>Type</th>
<th>item</th>
<th>buySellPrice</th>
<th>... |
src/React/CollapsibleControls/LookupTableManagerControl/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import CollapsibleWidget from '../../Widgets/CollapsibleWidget';
import LookupTableWidget from '../../Widgets/LookupTableWidget';
import DropDownWidget from '../../Widgets/DropDownWidget';
export default class LookupTableManagerControl extends React.Compo... |
node_modules/react-bootstrap/es/Fade.js | NickingMeSpace/questionnaire | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import classNames from 'classnames';
import React fr... |
src/SignInApp.js | leemeli/game | import React from 'react';
import firebase from 'firebase';
import SignInForm from './SignInForm';
import {hashHistory} from 'react-router';
export default class SignInApp extends React.Component {
constructor(props){
super(props);
this.state = {incorrectLogin: false};
this.signIn = this.signIn.bind(this... |
nailgun/static/views/statistics_mixin.js | huntxu/fuel-web | /*
* Copyright 2014 Mirantis, Inc.
*
* Licensed 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
admin/client/App/shared/Popout/PopoutHeader.js | sendyhalim/keystone | /**
* Render a header for a popout
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
const PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.is... |
src/Row.js | victorzhang17/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
ui/src/main/js/pages/__tests__/Job-test.js | apache/aurora | import React from 'react';
import { shallow } from 'enzyme';
import Job from '../Job';
import Breadcrumb from 'components/Breadcrumb';
import { JobUpdateList } from 'components/UpdateList';
import UpdatePreview from 'components/UpdatePreview';
import { builderWithStatus } from 'test-utils/UpdateBuilders';
const par... |
src/Parser/DemonHunter/Havoc/CHANGELOG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Hewhosmites, Mamtooth } from 'CONTRIBUTORS';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-03-0... |
Libraries/Components/TextInput/InputAccessoryView.js | hoangpham95/react-native | /**
* 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.
*
* @flow
* @format
*/
'use strict';
const Platform = require('../../Utilities/Platform');
const React = require('react');
const ... |
test/TabbedAreaSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import TabbedArea from '../src/TabbedArea';
import NavItem from '../src/NavItem';
import TabPane from '../src/TabPane';
import ValidComponentChildren from '../src/utils/ValidComponentChildren';
import { render } from './helpers';
describ... |
src/encoded/static/components/experiment_series.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { svgIcon } from '../libs/svg-icons';
import UserRoles from '../libs/user_roles';
import { Panel, PanelHeading, PanelBody, PanelFooter } from '../libs/ui/panel';
import Tooltip from '../libs/ui/tooltip';
import { CartAddAl... |
packages/wix-style-react/src/DragAndDrop/docs/Styles/Styles.js | wix/wix-style-react | import React from 'react';
import Markdown from 'wix-storybook-utils/Markdown';
import CodeExample from 'wix-storybook-utils/CodeExample';
import ItemExample from './examples/Item';
import ItemExampleRaw from '!raw-loader!./examples/Item';
import ItemPlaceholderExample from './examples/ItemPlaceholder';
import ItemPl... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | jbbr/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
app/javascript/mastodon/features/ui/components/media_modal.js | corzntin/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import... |
breakless-react/src/index.js | jfaerman/breakless | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
pages/index.js | efleurine/alumnus | import React from 'react';
import BaseLayout from '../containers/BaseLayout'
export default () => (
<BaseLayout>
<p className="f1 tc">Welcome | Bienveni | Bienvenue</p>
</BaseLayout>
);
|
ZWRNProject/app/src/views/UI/TabBar/DemoBaseView.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import {
StyleSheet,
Text,
ListView,
Image,
View,
TouchableOpacity
} from 'react-native';
export default class APIBaseView extends Component {
static navigationOptions = {
title: 'React Native Demo',
tabBar: {
label: 'Demo',
icon: ({ focused, ... |
geonode/contrib/monitoring/frontend/src/components/cels/alert/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class Alert extends React.Component {
static propTypes = {
alert: PropTypes.object.isRequired,
}
constructor(props) {
super(props);
this.state = {
d... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | IsenrichO/mui-with-arrows | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
app/components/ListItem/index.js | mamaracas/MEventsRegistration | import React from 'react';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>
{props.item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: React.PropTypes.any,
};
export default ListItem;
|
style/index.js | KenHky/react-native-modal-date-picker | import React from 'react';
import { Dimensions, StyleSheet } from 'react-native';
export default StyleSheet.create({
picker: {
position:'absolute',
bottom:0,
left:0,
height:300,
backgroundColor:'rgba(255,255,255,0.8)',
},
pickerView: {
height:300,
},
pickerWrap: {
flexDirection: 'r... |
nextApp/pages/index.js | liximomo/toolpages | import React from 'react';
import injectGlobal from '../hoc/global';
import Link from 'next/link'
import TextField from 'material-ui/TextField';
// async function getInitialProps() {
// // eslint-disable-next-line no-undef
// const res = await fetch('https://api.github.com/repos/zeit/next.js');
// const json = ... |
src/components/CandidateAnswer.js | nick/boulder-vote | import React from 'react';
import styleHtml from '../lib/styleHtml'
import ProfilePic from './ProfilePic'
// import Rate from './components/Rate';
function onClickTweet(e, tweet) {
e.preventDefault();
var windowOpts = 'width=440,height=250,status=no,menubar=no,titlebar=no';
window.open(tweet, '_blank', wi... |
clients/packages/admin-client/src/pages/admin/bot/page.spec.js | nossas/bonde-client | import React from 'react';
import { shallow } from 'enzyme';
import * as mock from '../../../utils/mock';
import Page from './page';
describe('routes/admin/authenticated/external/community-list/page', () => {
const props = {
isLoaded: true,
isLoading: false,
communities: [{ id: 1 }],
user: { first_n... |
src/frame/rePCUI/util/Children/toArray.js | gejialun8888/shop-react | import React from 'react';
export default function toArray(children) {
const ret = [];
React.Children.forEach(children, (c) => {
ret.push(c);
});
return ret;
}
|
src/slider.js | sanbornmedia/react-slick | 'use strict';
import React from 'react';
import {InnerSlider} from './inner-slider';
import assign from 'object-assign';
import json2mq from 'json2mq';
import ResponsiveMixin from 'react-responsive-mixin';
import defaultProps from './default-props';
var Slider = React.createClass({
mixins: [ResponsiveMixin],
inne... |
frontend/src/routes/Home/components/HomeView.js | blalasaadri/TechTalent | import React from 'react';
import DuckImage from '../assets/Duck.jpg';
import './HomeView.scss';
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
);
export default HomeView;
|
ui/src/containers/EditConfirm/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Portal from 'react-portal';
import { compose, withHandlers, setPropTypes } from 'recompose';
import { withModel } from 'ui/utils/hocs';
import Input from 'ui/components/Material/Input';
const enhance = compose(
setPropTypes({
on... |
src/svg-icons/image/loupe.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLoupe = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.... |
docs/src/pages/components/no-ssr/FrameDeferring.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';
const useStyles = makeStyles({
container: {
width: 300,
display: 'flex',
flexWrap: 'wrap',
},
});
function LargeTree() {
return Array.from(new Array(5000)).map((_, index) =>... |
src/GiftedChat.js | atFriendly/react-native-friendly-chat | /* eslint
no-param-reassign: 0,
no-use-before-define: ["error", { "variables": false }],
no-return-assign: 0,
no-mixed-operators: 0,
react/sort-comp: 0
*/
import PropTypes from 'prop-types';
import React from 'react';
import { Animated, Platform, StyleSheet, View, Text, Keyboard, TouchableWithoutFe... |
packages/jsbattle-webpage/src/containers/test/ChallengeScreen.spec.js | jamro/jsbattle | import 'babel-polyfill';
import React from 'react';
import {shallow} from 'enzyme';
import {ChallengeScreen} from '../ChallengeScreen.js';
import LiveCode from '../../components/LiveCode.js';
import Loading from '../../components/Loading.js';
const dummyAiDef = {
"source": "code",
"name": "dummy",
"code": "impor... |
src/svg-icons/notification/priority-high.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPriorityHigh = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/>
</SvgIcon>
);
NotificationPriorityHigh = pure(NotificationPriorityHigh);
NotificationPrio... |
src/components/Footer/Footer.js | tarixgit/test | /**
* 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 withStyles from 'isomorp... |
client/common/components/field-errors.js | jaketrent/gratigoose | import React from 'react'
import styleable from 'react-styleable'
import css from './field-errors.css'
import * as errorsUtils from '../errors'
const { string, arrayOf, shape } = React.PropTypes
function renderError(props, error, i) {
return (
<li key={i} className={props.css.error}>
{error.detail}
<... |
list/parts/GridRow.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import _get from 'lodash-es/get';
import {view} from 'components';
export default class GridRow extends React.Component {
static propTypes = {
listId: PropTypes.string,
primaryKey: PropTypes.string,
itemComponent: PropTypes.fu... |
pages/me/edit/index.js | kylecarter/bank | import React from 'react'
import jQuery from 'jquery'
import Head from 'next/head'
import { Button } from 'react-bootstrap'
const $ = jQuery;
export default class Login extends React.Component {
constructor() {
super();
this.state = {
first_name: 'Client',
last_name: 'Tester',
... |
pages/error/index.js | The-Chanman/Parker | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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'
i... |
client/extensions/woocommerce/app/promotions/promotions-list.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import EmptyContent from 'components/empty-conten... |
src/routes/Search/components/SearchPage.js | far-fetched/kiwi | import React from 'react';
import PropTypes from 'prop-types';
import spinner from '../assets/gears.svg';
import ResultTable from './ResultTable';
import SearchForm from './SearchForm';
export const SearchPage = ({
date,
prompt,
isRequesting,
results,
searchPlace,
changeDate,
chooseOrigin,
chooseDestin... |
packages/material-ui-icons/src/SettingsPhone.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsPhone = 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-.66.... |
src/components/overview/OverviewContainer.js | sebpearce/cycad-react | import React from 'react';
import { connect } from 'react-redux';
export const Overview = () => (
<div>
<h2>Overview</h2>
</div>
);
export const OverviewContainer = connect(store => {
return {
transactions: store.transactions,
};
})(Overview);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.