path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
geonode/monitoring/frontend/monitoring/src/components/organisms/alert-setting/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# 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 3 of the License, or
# ... |
docs/src/components/App.js | tannerlinsley/react-move | // @flow
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider'
import { createMuiTheme } from '@material-ui/core/styles'
import grey from '@material-ui/core/colors/grey'
import deepOrange from '@materi... |
src/components/display.js | ShaneFairweather/React-iTunes | import React, { Component } from 'react';
import Result from './result';
const Display = (props) => {
var shortList = props.results;
var newArray = shortList.slice(0, 25);
const resultsList = newArray.map((item) => {
return (
<Result artistName={item.artistName}
trac... |
src/containers/posts_index.js | JonnyPickard/blog-app-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { fetchPosts, deletePost } from '../actions';
class PostsIndex extends Component {
componentDidMount() {
this.props.fetchPo... |
src/Parser/SubtletyRogue/TALENT_DESCRIPTIONS.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default {
descriptions: {
// lv15
[SPELLS.MASTER_OF_SUBTLETY_TALENT.id]: <span>Default talent for burst-damage build. Incr... |
app/components/OrderItem.js | nosplashurinal/order-management | import React from 'react';
import PropTypes from 'prop-types';
import styles from '../styles/orderItem.scss';
import { Strings } from '../model/Strings';
import classNames from 'classnames';
import { Link } from 'react-router';
const OrderItem = ({ orderId }) =>
<Link to={'/order/' + orderId } className={s... |
packages/rmw-shell/src/components/Icons/ReduxIcon.js | TarikHuber/react-most-wanted | import React from 'react'
import SvgIcon from '@mui/material/SvgIcon'
const GitHubIcon = (props) => {
return (
<SvgIcon width={22} height={22} viewBox="0 0 100 100" {...props}>
<path
d={
'M65.6 65.4c2.9-.3 5.1-2.8 5-5.8-.1-3-2.6-5.4-5.6-5.4h-.2c-3.1.1-5.5 2.7-5.4 5.8.1 1.5.7 2.8 1.6 3.7-3... |
docs/src/examples/elements/Label/Variations/LabelExampleBasic.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleBasic = () => (
<div>
<Label as='a' basic>
Basic
</Label>
<Label as='a' basic pointing>
Pointing
</Label>
<Label as='a' basic image>
<img src='/images/avatar/small/elliot.jpg' />
Elliot
... |
src/components/Footer/Footer.js | CrossNJU/Languist | /**
* 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, { Component } from 'react';
import withStyle... |
docs/src/components/Docs/Content/index.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import 'highlight.js/styles/github-gist.css';
import Highlight from '../../Highlight';
import './style.css';
const DocsContent = ({ title, content, editUrl }) => (
<div id="docs-content">
<div className="content">
<h2 className="title">{title}... |
webpack/move_to_foreman/components/common/table/components/Table.js | ares/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table as PfTable } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import EmptyState from 'foremanReact/components/common/EmptyState';
import Pagination from 'foremanReact/components/Pagination/PaginationWrapper';
impo... |
examples/src/components/CustomOption.js | sarahbkim/react-select-custom | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
src/svg-icons/device/signal-cellular-0-bar.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
yymobile/popover/__tests__/index.test.native.js | 77ircloud/yymobile2 | import React from 'react';
import renderer from 'react-test-renderer';
// import { shallow } from 'enzyme';
import Popover from '../index';
describe('Popover', () => {
it('renders correctly', () => {
const wrapper = renderer.create(
<Popover overlay={[
(<Popover.Item key="4" value="scan">扫一扫</Popo... |
fields/types/number/NumberFilter.js | Adam14Four/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' ... |
src/MenuItem.js | IveWong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... |
src/js/discussion/camps/CampParent.js | TTFG-Analytics/commonground | import React from 'react';
import Camp from './Camp';
import AddCamp from './AddCamp';
import CampList from './CampList';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import BackButton from './BackButton';
import FaceBookIntegration from 'FaceBookIntegration';
import ProfileButton ... |
src/svg-icons/action/schedule.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
tests/layouts/PageLayout.spec.js | tylerbarabas/bbTools | import React from 'react'
import PageLayout from 'layouts/PageLayout/PageLayout'
import { shallow } from 'enzyme'
describe('(Layout) PageLayout', () => {
it('renders as a <div>', () => {
shallow(<PageLayout />).should.have.tagName('div')
})
it('renders a project title', () => {
shallow(<PageLayout />).f... |
src/shared/lokalita-detail/__tests__/LokalitaDetail.spec.js | hhjcz/too-simple-react-skeleton | /** Created by hhj on 2/2/16. */
/* eslint-disable no-unused-expressions, no-unused-vars, import/no-extraneous-dependencies */
import { expect } from 'chai'
import React from 'react'
import sd from 'skin-deep'
import LokalitaDetail from '../LokalitaDetail'
describe('zarizeni ZarizeniDetail component', () => {
const... |
markbin/client/components/bins/bins_viewer.js | tpechacek/learn-react-native | import React, { Component } from 'react';
import { markdown } from 'markdown';
class BinsViewer extends Component {
render() {
const rawHTML = markdown.toHTML(this.props.bin.content);
return (
<div className="col-xs-4">
<h5>Output</h5>
<div dangerouslySetInnerHTML={{ __html: rawHTML }}... |
src/svg-icons/content/markunread.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
react/CloseIcon/CloseIcon.js | seek-oss/seek-style-guide | import svgMarkup from './CloseIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function CloseIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
CloseIcon.displayName = 'CloseIcon';
|
examples/src/Examples.js | Amirus/react-autosuggest | require('./Examples.less');
require('./Autosuggest.less');
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import BasicExample from './BasicExample/BasicExample';
import CustomRenderer from './CustomRenderer/CustomRenderer';
import MultipleSections from './MultipleSections/MultipleSe... |
src/links.js | 7fffffff/linkgrabber | import chrome from 'chrome';
import React from 'react';
import ReactDOM from 'react-dom';
import LinkList from './components/LinkList';
const target = document.getElementById('LinkList');
function domainPattern(domains) {
// ['foo.com', 'bar.com']
// /^(?:[\w-]+\.)*(?:foo\.com|bar\.com)+$/i
if (!domains || doma... |
src/components/user/Register.js | teamNOne/showdown | import React from 'react';
import Form from '../app/form/Form';
import TextGroup from '../app/form/TextGroup';
import RadioGroup from '../app/form/RadioGroup';
import RadioElement from '../app/form/RadioElement';
import Submit from '../app/form/Submit';
export default class Register extends React.Component {
render()... |
src/hoc/withStorage.js | MMMalik/react-show-app | import React, { Component } from 'react';
export default function withStorage(Cmp) {
return class WithStorage extends Component {
storage = window.localStorage || {};
setItems = (items) => {
Object.keys(items).forEach(key => {
this.storage[key] = items[key];
... |
src/routes/Login/components/Login.js | dima-bu/b2b.core | import React from 'react';
import LoginForm from './../../../components/form-login/form-login';
import style from './Login.less';
const Login = props => {
const {LogIn, loggedIn, userName, errorMessage} = props;
const onSubmitHandler = (credentials) => {
LogIn(credentials);
};
return (
<div className... |
src/index.js | tech-dojo/React-Task-Manager | import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import ManagerView from './component/manager/managerView.js'
import ProgrammerView from './component/programmer/programmerView'
import ProgrammerTask from './component/programmer/programmerT... |
client/extensions/woocommerce/app/order/order-fulfillment/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { first, includes } from 'lodash';
import Gridicon from 'gridicons'... |
packages/wix-style-react/src/CarouselWIP/Slide/Slide.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { DATA_HOOKS } from '../constants';
const Slide = ({
dataHook,
className,
children,
image,
width,
gutter,
imagePosition,
imageFit,
}) => (
<div
data-hook={dataHook}
className={className}
style={{
flex: '0 0 auto',... |
src/FilePicker/FilePicker.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
const filePickerDriverFactory = ({element, wrapper, component}) => {
const error = element.querySelector(`[data-hook=filePicker-error]`);
const input = element.querySelector(`input`);
const subLabel = element.querySelector(`[data-hook="sub-label"]`);
... |
client/main.js | ahmetkasif/xox | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Noty from 'noty';
import App from '../imports/ui/App.jsx';
import '../imports/startup/accounts-config.js';
Meteor.startup(() => {
injectTapEventPlu... |
src/Hello.js | ChineseCubes/react-vtt | import React from 'react';
export const hello = 'hello, world';
export function Hello() {
return (
<span>{hello}</span>
);
}
|
src/components/shared/screen-description.js | gabrielecker/animapp | import React, { Component } from 'react';
import { Container } from 'semantic-ui-react';
export default class ScreenDescription extends Component {
render() {
return (
<Container text>
{this.props.children}
</Container>
);
}
}
ScreenDescription.propTypes = {
children: React.PropType... |
app/javascript/mastodon/features/ui/components/column_header.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
common/components/admin/CourseTableRow.js | ebertmi/webbox | import React from 'react';
import { Link } from 'react-router';
import { Time } from '../Time';
/**
* Renders a course row
*/
export function CourseTableRow (props) {
const courseDetailPath = `/admin/course/${props.data.id}`;
const creatorDetailPath = `/admin/user/${props.data._creatorId}`;
const courseViewPat... |
src/parser/monk/brewmaster/modules/features/DamageTakenTable.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import DamageTakenTableComponent, { MITIGATED_MAGICAL, MITIGATED_PHYSICAL, MITIGATED_UNKNOWN } from 'interface/others/DamageTakenTable';
import Panel from 'interface/others/Panel';
import SPELLS from 'common/SPELLS';
import SPECS from 'game/SPECS';... |
packages/cf-component-typography/test/Underline.js | manatarms/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import Underline from '../src/Underline';
test('should render', () => {
const component = renderer.create(<Underline>Underline</Underline>);
expect(component.toJSON()).toMatchSnapshot();
});
|
src/js/app/components/svgs/add.js | ericf89/survey | import React from 'react';
export default () => (
<svg fill="#FFFFFF" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>
);
|
src/GridList/GridTile.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import GridTile from './GridTile';
import getMuiTheme from '../styles/getMuiTheme';
describe('<GridTile />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {co... |
src/components/ListView.js | aryalprakash/backlect-design | import 'rc-dialog/assets/index.css';
import React, { Component } from 'react';
import Header from './Header'
import Dialog from 'rc-dialog';
import NewDialog from "./NewDialog";
export default class ListElements extends Component {
constructor(){
super()
this.state = {
visible: false,
... |
app/components/HowDoes.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './HowDoes.css';
export default class HowDoes extends Component {
render() {
return (
<div className={styles.container}>
<Link to="/" className={styles.home}></Link>
<Link to="/HowDoes/2" c... |
frontend/src/components/login/loginForm.js | unicef/un-partner-portal | import React from 'react';
import { reduxForm, SubmissionError, clearSubmitErrors } from 'redux-form';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Snackbar from 'material-ui/Snackbar';
import Ty... |
src/templates/page-template.js | ivanminutillo/faircoopWebSite | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import PageTemplateDetails from '../components/PageTemplateDetails'
import Header from '../components/Header'
import Footer from '../components/Footer'
class PageTemplate extends React.Component {
render () {
const { t... |
front/src/components/Ebets.js | ethbets/ebets | /* Copyright (C) 2017 ethbets
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
import React, { Component } from 'react';
import Paginate from 'react-paginate';
import EbetsJson from 'build/contracts/Ebets.json';
imp... |
src/DropdownButton.js | xiaoking/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... |
CompositeUi/src/views/form/Register.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
wp-content/plugins/liveblog/src/react/Editor/blocks/CreateBlockHOC.js | MinnPost/minnpost-wordpress | /* eslint-disable react/display-name */
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import removeBlock from '../modifiers/removeBlock';
const CreateBlock = (Block, editorState, onChange) => class extends Component {
constructor() {
supe... |
src/components/Header/Refresher/index.js | RayBenefield/halo-forge | import React from 'react';
import equip from './equip';
const Refresher = ({ refresh }) => (
<svg
onClick={refresh}
style={{
display: 'inline-block',
color: 'rgb(255, 255, 255)',
fill: 'currentcolor',
height: '24px',
width: '24px',
... |
src/views/inlet/Login.js | anysome/objective | /**
* Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 2016/11/9.
*/
import React from 'react';
import {View, StyleSheet, Image, Text, Dimensions, TouchableOpacity, Keyboard, LayoutAnimation} from 'react-native';
import {analytics, styles, colors, airloy, api, toast, L, hang} from '../../app';
imp... |
src/components/Drawer/MyDrawerComponent.js | trixyrabbit/Exile | import React from 'react'
import './Drawer.scss'
import { IndexLink, Link } from 'react-router'
import Drawer from 'material-ui/Drawer'
import MenuItem from 'material-ui/MenuItem'
import Subheader from 'material-ui/Subheader'
let leftNavTop = {
fontSize: '24px',
color: 'rgb(255, 255, 255)',
lineHeight: '64px',
... |
src/containers/FuelSavingsPage.spec.js | hanndbn/appDemo | import React from 'react';
import {shallow} from 'enzyme';
import {FuelSavingsPage} from './FuelSavingsPage';
import FuelSavingsForm from '../components/FuelSavingsForm';
describe('<FuelSavingsPage />', () => {
it('should contain <FuelSavingsForm />', () => {
const actions = {
saveFuelSavings: () => { },
... |
src/pages/BranchQueue.js | branch-bookkeeper/pina | import classNames from 'classnames';
import {
compose,
map,
prop,
contains,
} from 'ramda';
import ease from 'ease-component';
import React, { Component } from 'react';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import { setPropTypes, defaultProps, pure } from 'recom... |
src/server.js | NicholasAzar/ntensitycustoms | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
blueocean-material-icons/src/js/components/svg-icons/image/filter-tilt-shift.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilterTiltShift = (props) => (
<SvgIcon {...props}>
<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.0... |
mdbreact/components/FreeBird.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class FreeBird extends Component {
render() {
const {
className,
tag: Tag,
...attributes
} = this.props;
const classes = classNames(
'container free-bird',
... |
src/components/about/about.js | javflores/dtl-react-training | import React from 'react';
class About extends React.Component {
render(){
return(
<div className="jumbotron">
<h1>We are Broadbandchoices</h1>
<h2>The best broadband comparison tool in the market.</h2>
<p>We are Damo, Ranj, Rob, Alex, Ben, Walshy... |
src/react/LogMonitorEntryAction.js | taylorhakes/redux-devtools | import React from 'react';
import JSONTree from './JSONTree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
overflow: 'auto'
}
};
export default class LogMonitorAction extends React.Component {
renderPayload(payload) {
return... |
src/components/BookPage.js | nicolasletoublon/react-dnd | import React from 'react';
import {connect} from 'react-redux';
import * as bookActions from '../actions/bookActions';
class Book extends React.Component {
constructor(props) {
super(props);
}
submitBook(input){
this.props.createBook(input);
}
render(){
let titleInput;
return(
<div>
... |
src/client/index.android.js | mucsi96/react-native-lambda-starter | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './components/App';
export default class reactNativeLambdaStarter extends Component {
render() {
return (
<App/>
);
}
}
AppRegistry.registerComponent('reactNativeLambdaStarter', () => reactNativeLam... |
RN/RNFluxDemo/components/Error.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Animated,
Dimensions
} from 'react-native';
import {
Actions
} from 'react-native-router-flux';
import Button from "react-native-button";
var {... |
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js | spiermar/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
function disableWeekends(date) {
return date.getDay() === 0 || date.getDay() === 6;
}
function disableRandomDates() {
return Math.random() > 0.7;
}
/**
* `DatePicker` can disable specific dates based on the return value of a callback.
*... |
js/components/inputgroup/index.js | yasster/Divide-react-native |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, InputGroup, Input, Textarea } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHInputGroup extends Component { // esl... |
node_modules/antd/es/transfer/index.js | prodigalyijun/demo-by-antd | import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-ru... |
src/index.js | unikorp/king | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';
const store = configureStore();
const history = syncHistory... |
routes/assets-html.js | joeybaker/rachelandjoey | import path from 'path'
import fs from 'fs'
import ReactRoutes from '../components/_routes/'
import ReactData from '../components/_routes/example/data.js'
import versions from '../versions.json'
import React from 'react'
import ReactRouter from 'react-router'
const expiresIn = 1000 * 60 * 60 * 24
const html = fs.read... |
src/rocks/debugger-tab/index.js | animachine/animachine | import React from 'react'
import DebuggerTab from './DebuggerTab'
BETON.require('workspace', init)
function init(workspace) {
// workspace.setTabContent('debugger', () => <DebuggerTab/>)
}
|
src/svg-icons/editor/border-clear.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
docs/src/pages/components/tables/BasicTable.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableContainer';
import TableHead from '@... |
test/specs/modules/Checkbox/Checkbox-test.js | aabustamante/Semantic-UI-React | import React from 'react'
import { findDOMNode } from 'react-dom'
import Checkbox from 'src/modules/Checkbox/Checkbox'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('Checkbox', () => {
common.isConformant(Checkbox)
common.hasUIClassName(Checkbox)
common.propKeyO... |
client/src/__mocks__/monacoEditorMock.js | pahosler/freecodecamp | /* eslint-disable */
import React from 'react';
export default props => {
const { width = '100%', height = '100%' } = props;
const fixedWidth =
width.toString().indexOf('%') !== -1 ? width : `${width}px`;
const fixedHeight =
height.toString().indexOf('%') !== -1 ? height : `${height}px`;
const style = ... |
src/components/dashboard/ClassList.js | caoquan95/colorme-manage | import React from 'react';
import Switch from 'react-bootstrap-switch';
const ClassList = ({classes}) => {
return (
<div className="panel-body">
<div className="table-responsive">
<table className="table table-bordered table-hover table-striped">
<thead>
<tr>
<th/>
... |
src/components/NotFound.js | unikorp/king | import React from 'react';
const NotFound = () => (
<p>
Sorry, we cannot found this page.
</p>
);
export default NotFound;
|
src/app/components/P/index.js | nhardy/web-scaffold | // @flow
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import type { Node } from 'react';
import cx from 'classnames';
import { isScrolledIntoView } from 'app/lib/dom';
import throttle from 'app/lib/throttle';
import styles from './styles.styl';
type Props = {
className?: string,... |
react/features/base/react/components/web/NavigateSectionListItem.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import type { Item } from '../../Types';
import Container from './Container';
import Text from './Text';
/**
* The type of the React {@code Component} props of
* {@link NavigateSectionListItem}.
*/
type Props = {
/**
* Function to be invoked when an it... |
app/components/Report/ChartModal.js | Bullseyed/Bullseye | import React from 'react';
import { Row, Col, Modal } from 'react-materialize';
import Charts from './Charts';
import Piechart from './PieChart';
import Bargraph from './BarGraph';
const ChartModal = ({demoData}) => {
return (
<Modal
header="Statistics"
trigger={
<div>
<Charts />
</div>
}
s... |
examples/basic/simple_usage/index.js | reactjs/react-modal | import React, { Component } from 'react';
import Modal from 'react-modal';
import MyModal from './modal';
const MODAL_A = 'modal_a';
const MODAL_B = 'modal_b';
const DEFAULT_TITLE = 'Default title';
class SimpleUsage extends Component {
constructor(props) {
super(props);
this.state = {
title1: DEFAUL... |
app/jsx/courses/HomePagePromptContainer.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/browser/components/Home/Home.js | 2rajpx/gitux | import React from 'react'
export default props => (
<p>
Home
</p>
)
|
fixtures/react_native_windows_vnext/src/host.js | callstack-io/haul | import React from 'react';
import { AppRegistry, View, Text, Linking } from 'react-native';
import { createAppContainer, createBottomTabNavigator, NavigationActions } from 'react-navigation';
import { ApolloClient } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import { createHttpLink } from 'apo... |
src/block.js | awkward/react-simple-masonry | import React from 'react'
export default ({ width, height, x, y, children }) => {
const style = {
width,
height,
transform: `translate3d(${x}px, ${y}px, 0)`,
position: 'absolute',
top: 0,
left: 0,
border: `1px solid`,
transition: `transform .2s`
}
return (
<div style={style}... |
examples/shared-root/app.js | freeyiyi1993/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
src/containers/main/product-list-container.js | menthena/project-a | import React from 'react';
import { connect } from 'react-redux';
import Query from '../../components/query';
import Filter from '../../components/filter';
import Sorter from '../../components/sorter';
import './styles/product-list-container.css';
import { ProductList } from '../../components/generic-list';
import { se... |
src/pages/IndexPage.js | janimattiellonen/fgr | import React from 'react';
import { Link } from 'react-router';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PersonList from '../components/PersonList';
import styles from './IndexPage.pcss';
const IndexPage = props => {
const { persons, deletePerson } = props;
return (
<section className... |
www/src/templates/community.js | yangshun/react | /**
* Copyright (c) 2013-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.
*
* @emails react-core
*/
'use strict';
import MarkdownPage from 'components/MarkdownPage';
import PropTypes from 'prop-types';
import Re... |
test/GridSpec.js | coderstudy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Grid from '../src/Grid';
describe('Grid', function () {
it('uses "div" by default', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Grid />
);
assert.equal(React.findDOMNode(instance).nodeName... |
react/features/invite/components/dial-in-summary/native/DialInSummary.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Linking, View } from 'react-native';
import { WebView } from 'react-native-webview';
import { type Dispatch } from 'redux';
import { openDialog } from '../../../../base/dialog';
import { translate } from '../../../../base/i18n';
import { JitsiModal, setActiv... |
docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js | ruifortes/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
const customContentStyle = {
width: '100%',
maxWidth: 'none',
};
/**
* The dialog width has been set to occupy the full width of browser throug... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | ichiohta/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* `DatePicker` can be implemented as a controlled input,
* where `value` is handled by state in the parent component.
*/
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props)... |
src/App.js | Florenz23/wifi_signals | import React, { Component } from 'react';
import Graph from './scripts/components/graph'
export default class App extends React.Component {
state = { dataSetIndex: 0 , }
static defaultProps = {views: [["day"],["simpleDay"],["Macs"]]}
selectDataset(event) {
this.setState({dataSetIndex: event.target.value});
... |
blueprints/view/files/__test__/views/__name__View.spec.js | tonyxiao/segment-debugger | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
app/javascript/mastodon/components/status_action_bar.js | ashfurrow/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from ... |
src/sentry/static/sentry/app/icons/icon-user.js | gencer/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconUser(props) {
return (
<Icon viewBox="0 0 24 24" {...props}>
<g fill="currentColor">
<path d="M4.57694084,15.0573642 C3.09845147,15.2679649 2,16.5339712 2,18.0273845 L2,20.5 C2,21.3284271 2.67157288,22 3.5,22 L20.5,22 C21.3... |
src/routes/error/index.js | muidea/magicSite | import React from 'react'
import { Icon } from 'antd'
import styles from './index.less'
const Error = () => (<div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>
</div>)
export default Error
|
docs/src/app/components/pages/components/RefreshIndicator/Page.js | pomerantsev/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 refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
app/App.js | calebgregory/react-app | 'use strict';
import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import routes from './config/routes';
ReactDOM.render((
<Router>
{routes}
</Router>
), document.getElementById('app'));
|
client-src/components/pager/PagerButtonLast.js | minimus/final-task | import React from 'react'
import { NavLink } from 'react-router-dom'
import propTypes from 'prop-types'
export default function PagerButtonLast({ base, category, page }) {
return (
<NavLink
to={`/${base}/${category}/${page}`}
activeClassName="active"
activeStyle={{ color: '#be3131' }}
>
... |
node_modules/react-router/es/Router.js | nikhil-ahuja/Express-React | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
jenkins-design-language/src/js/components/material-ui/svg-icons/content/reply-all.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentReplyAll = (props) => (
<SvgIcon {...props}>
<path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReplyAll.displayName = 'ContentReplyAll';
ContentReplyAll.muiName = 'Svg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.