path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/app/views/account.js | webcoding/reactui-starter | import React from 'react';
import {RouteHandler} from 'react-router';
import authStore from 'stores/auth';
export default React.createClass( {
statics: {
willTransitionTo( transition ) {
if ( !(authStore.isAuthenticated()) ) {
transition.redirect( 'login', {}, { nextPath: tran... |
src/svg-icons/action/find-replace.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindReplace = (props) => (
<SvgIcon {...props}>
<path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.... |
src/components/common/svg-icons/action/group-work.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGroupWork = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
packages/core/src/components/Form/RadioGroup/RadioGroup.js | appearhere/bloom | // @flow
import React, { Component } from 'react';
import Radio from '../Radio/Radio';
import noop from '../../../utils/noop';
type Props = {
Input: Function | string,
children: Function,
value: string | number,
onChange: Function,
optional: boolean,
name: string,
className?: string,
id: string,
}
exp... |
src/Components/Movies/index.js | ikusmart/react-redux-start | import React from 'react';
import PropTypes from 'prop-types';
import './Movies.css';
import Movie from './Components/MovieCard';
//import EmptyResult from './Components/EmptyResult';
class Movies extends React.Component {
static propTypes = {
movies: PropTypes.arrayOf(PropTypes.shape({
title: ... |
src/components/header/SideList.js | metasfresh/metasfresh-webui-frontend | import counterpart from 'counterpart';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import onClickOutside from 'react-onclickoutside';
import { connect } from 'react-redux';
import keymap from '../../shortcuts/keymap';
import DocumentList from '../app/DocumentList';
import Tooltips fro... |
src/vendor/recharts/demo/component/RadarChart.js | donal-crotty/fuzzy-telegram | import React from 'react';
import { Surface, Radar, RadarChart, PolarGrid, Legend, Tooltip,
PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from 'recharts';
import DemoRadarItem from './DemoRadarItem';
import { changeNumberOfData } from './utils';
const data = [
{ subject: 'Math', A: 120, B: 110 },
... |
client/containers/DevTools.js | Temzasse/ntu-crysis | import React from 'react';
import { createDevTools } from 'redux-devtools'; // eslint-disable-line
import LogMonitor from 'redux-devtools-log-monitor'; // eslint-disable-line
import DockMonitor from 'redux-devtools-dock-monitor'; // eslint-disable-line
export default createDevTools(
<DockMonitor
toggleVisibility... |
components/Deck/ContentPanel/Translation/DeckTranslationsModal.js | slidewiki/slidewiki-platform | import React from 'react';
import PropTypes from 'prop-types';
import {connectToStores} from 'fluxible-addons-react';
import FocusTrap from 'focus-trap-react';
import { FormattedMessage, defineMessages } from 'react-intl';
import { Button, Modal, Divider, TextArea, Dropdown, Segment} from 'semantic-ui-react';
import Tr... |
app/javascript/mastodon/components/poll.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
components/footer.js | techiesanchez/rythus-app | import React from 'react';
export default class Footer extends React.Component {
render() {
return (
<div className="footer">
<hr/>
<div className="content">
<p>A webapp for the up and coming boardgame, Nations of Rythus* by David Grimmett"</p... |
services/ui/src/components/Button/index.stories.js | amazeeio/lagoon | import React from 'react';
import { action } from '@storybook/addon-actions';
import Button from './index';
export default {
component: Button,
title: 'Components/Button',
};
export const Default = () => (
<Button action={action('button-click')}>Default Button</Button>
);
export const Disabled = () => (
<But... |
packages/material-ui-icons/src/Timer.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Timer = props =>
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.... |
lib/js/apps/genetic-algorithms/CardSplitting/Cards.js | jneander/learning | import React from 'react';
import Heading from 'instructure-ui/lib/components/Heading';
import { product, sum } from 'genetics/util';
import styles from './styles.css';
function convertGene (gene) {
return gene === 'A' ? 1 : parseInt(gene, 10);
}
function geneSum (chromosome) {
return sum(chromosome.genes.slice... |
examples/src/components/CustomOption.js | nightwolfz/react-select | 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... |
packages/material-ui-icons/src/BrandingWatermark.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BrandingWatermark = props =>
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z" />
</SvgIcon>;
BrandingWatermark = pure(Branding... |
redux-weather-forecast/src/containers/search-bar.js | andreassiegel/react-redux | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onIn... |
pkg/users/authorized-keys-panel.js | garrett/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2020 Red Hat, Inc.
*
* Cockpit 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 2.1 of the License, or
* (at your option) any l... |
src/components/EmployeeDetails.js | reactima/reactima-esop | import React from 'react';
import EmployeeSignESOP from './EmployeeSignESOP'
import {web3} from '../web3'
import {validateDoc, epochAsYears}from '../utils'
import IPFSDialog from '../components/IPFSDialog';
import Config from '../config'
import moment from 'moment'
export default class EmployeeDetails extends React.... |
src/controls/Inline/Component/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { getFirstIcon } from '../../../utils/toolbar';
import Option from '../../../components/Option';
import { Dropdown, DropdownOption } from '../../../components/Dropdown';
import './sty... |
packages/material-ui-icons/src/CheckBox.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CheckBox = props =>
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
</SvgIcon>;
Che... |
src/svg-icons/image/burst-mode.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
src/components/ColorPicker.js | hannupekka/badgenator | // @flow
import styles from 'styles/components/ColorPicker';
import React, { Component } from 'react';
import { pure } from 'recompose';
import { connect } from 'react-redux';
import { ChromePicker } from 'react-color';
import * as uiActions from 'redux/modules/ui';
import CSSModules from 'react-css-modules';
type Pro... |
src/js/components/common/forms/textinput.js | michaelatmender/gui | import React from 'react';
import FormControl from '@mui/material/FormControl';
import FormHelperText from '@mui/material/FormHelperText';
import Input from '@mui/material/Input';
import InputLabel from '@mui/material/InputLabel';
export default class TextInput extends React.Component {
constructor(props, context) ... |
frontend/component/Notification.js | sql370/practice-node-project | import React from 'react';
import { Router, Route, Link, browserHistory } from 'react-router';
// import jQuery from 'jQuery';
import {notificationList, notificationSetRead} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Notification extends React.Component{
constructor(pros){
... |
js/src/index.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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
// (at your option) any later version.... |
react-client/src/components/Todo.js | dhanushuUzumaki/Journal | import React from 'react';
import ClassNames from 'classnames';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import * as actions from '../actions/actions';
const NO_ITEM_MESSAGE = ":( You don't have anything on the list. Add one and get started";
class TodoApp extends React.Component {
... |
docs/src/sections/MenuItemSection.js | mmarcant/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function MenuItemSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/components/VmsList/Vm.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import BaseCard from './BaseCard'
import sharedStyle from '../sharedStyle.css'
import VmActions from '../VmActions'
import VmStatusIcon from '../VmStatusIcon'
import { sta... |
src/atoms/LazyImage/lazyimage.stories.js | sjofartstidningen/bryggan | /* eslint-disable import/no-extraneous-dependencies, react/prop-types */
import React from 'react';
import { injectGlobal } from 'styled-components';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import LazyImage from './index';
// eslint-disable-next-line
injectGloba... |
resources/react/counter-app.js | fetus-hina/stat.ink | /**
* @license
*
* stat.ink
*
* Copyright (C) 2015-2021 AIZAWA Hina, All rights reserved.
* Licended under the MIT License
*/
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import CounterApp from './components/CounterApp';
import React from 'react';
import ReactDOM from 'react-dom';
import store... |
resources/apps/frontend/src/pages/packages/edit.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import {Card, CardBody} from 'reactstrap';
import {updatePackage, showPackage} from 'requests/packages';
import Breadcrumbs from 'components/Breadcrumbs';
import Form from './form';
import Loader from 'components/Loader';
class Component extends React.Component {
state = {
isLoading: ... |
components/docs-page/what-changed.js | kentcdodds/glamorous-website | import React from 'react'
import glamorous from 'glamorous'
import mdToHTML from '../utils/md-to-html'
import {Anchor} from '../styled-links'
import content from './content/what-changed.md'
const ChangedLink = glamorous(Anchor)({
display: 'block',
marginBottom: 20,
fontSize: '1.3em',
})
function WhatChanged({fi... |
examples/2-spa/src/Router.js | chikara-chan/react-power | import React from 'react'
import { HashRouter, Route, Redirect, Switch } from 'react-router-dom'
import loadable from 'react-loadable'
import Layout from './shared/components/Layout'
function Router() {
return (
<HashRouter>
<Layout>
<Switch>
<Route exact path="/" render={() => <Redirect ... |
front-end/src/component/app/index.js | axelmichael11/website |
import React from 'react'
import {BrowserRouter, Route, Link, Switch, MemoryRouter} from 'react-router-dom'
import {connect} from 'react-redux'
import LandingContainer from '../landing-container/index.js'
import appStoreCreate from '../../lib/app-store-create.js'
const store = appStoreCreate()
class App extends R... |
geonode/monitoring/frontend/monitoring/src/components/cels/response-time/index.js | francbartoli/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
# ... |
js/jqwidgets/jqwidgets-react/react_jqxrating.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxRating extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
docs/build.js | yyssc/ssc-grid | /* eslint no-console: 0 */
import fsp from 'fs-promise';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import {match, RouterContext} from 'react-router';
import Root from './src/Root';
import routes from './src/Routes';
import metadata from './generate-metadata';
... |
src/svg-icons/av/movie.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie = pure(AvMovie);
Av... |
examples/huge-apps/components/App.js | cold-brew-coding/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
docs/client.js | tannewt/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
old-or-not-typescript/learn-redux/real-world/routes.js | janaagaard75/framework-investigations | import React from 'react'
import { Route } from 'react-router'
import App from './containers/App'
import UserPage from './containers/UserPage'
import RepoPage from './containers/RepoPage'
export default (
<Route path="/" component={App}>
<Route path="/:login/:name"
component={RepoPage} />
<Route p... |
test/test_helper.js | robreczarek/recruitment-un | 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... |
transforms/__testfixtures__/React-PropTypes-to-prop-types/already-migrated-import.output.js | reactjs/react-codemod | import PropTypes from 'prop-types';
import React from 'react';
const object = PropTypes.object;
const string = PropTypes.string; |
src/contents/quiz-text.js | clemchansf/fqs-booklet-ghosts | import React from 'react';
const quiz_1 = {
titleText: {
zh: `第一章`,
cn: `第一章`,
en: `Chapter One`
},
questions: [
{
headerText: {
zh: `為什麼有時人是個滿懷鬼胎,比鬼可怕?`,
cn: `为什么有时人是个满怀鬼胎,比鬼可怕?`,
en: `Why sometimes people are full of gho... |
src/components/Footer.js | markgreenburg/acquisitiontracker | // @flow
import React from 'react';
const Footer = () => (
<footer className="footer">
<div className="container">
<p className="text-center text-muted">
© { new Date().getFullYear() } | Mark Greenburg
</p>
</div>
</footer>
);
module.exports = Footer;
|
app/src/routes/LanguageDetail.js | alpcanaydin/github-stats-for-turkey | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import { emptyStateItem, isInit, isLoading, isFailed, isFetched } from '../util/stateHelpers';
import { requ... |
test/integration/client-404/pages/_error.js | flybayer/next.js | import Link from 'next/link'
import NextError from 'next/error'
import React from 'react'
export default class Error extends React.Component {
static getInitialProps(ctx) {
const { statusCode } = NextError.getInitialProps(ctx)
return { statusCode: statusCode || null }
}
render() {
return (
<di... |
frontend/src/client.js | carlosascari/opencollective-website | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, compose, applyMiddleware } from 'redux';
import { ReduxRouter, reduxReactRouter } from 'redux-router';
import { Provider } from 'react-redux';
import createHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
... |
src/components/GithubButton/GithubButton.js | AndriyShepitsen/svredux | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
src/shared/components/seo.js | carsy/carsy.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { useStaticQuery, graphql } from 'gatsby';
function Seo({ description, lang, meta, title }) {
const { site } = useStaticQuery(
graphql`
query {
site {
sit... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | vanloswang/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
webapp/entry.js | darkamenosa/tblog | import React from 'react'
import { render } from 'react-dom'
import App from './src/App'
// eslint-disable-next-line no-undef
render(<App />, document.getElementById('app'))
|
stories/content-wrap.js | emsiengineering/emsi-ui | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Card from '../src/components/Card';
import CardBody from '../src/components/CardBody';
import ContentWrap from '../src/components/ContentWrap';
storiesOf('ContentWrap', module)
.add('default', () => (
<ContentWrap>
<Car... |
jqwidgets/jqwidgets-react/react_jqxformattedinput.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxFormattedInput extends React.Component {
componentDidMount() {
let options = this... |
packages/bootstrap-shell/cra-template-bs/template/src/index.js | TarikHuber/react-most-wanted | import React from 'react'
import { render } from 'react-dom'
import App from './App'
render(<App />, document.getElementById('root'))
|
examples/fiber/debugger/src/index.js | richiethomas/react | import React from 'react';
import ReactDOM from 'react-dom/fiber';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/middleware.js | ngochuy13/react-firebase-address | import React from 'react';
import { renderToString } from 'react-dom/server';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { match, RouterContext } from 'react-router';
import reducers from './reducers';
import createRoutes from './routes';
import appConfig from './config';
import... |
src/components/Users/UserModal.js | muxiaoyv/database-fe | import React, { Component } from 'react';
import { Modal, Form, Input } from 'antd';
import styles from './UserModal.css';
const FormItem = Form.Item;
class UserEditModal extends Component {
constructor(props) {
super(props);
this.state = {
visible: false,
};
}
showModalHandler = (e) => {
... |
packages/cf-component-heading/src/HeadingCaption.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme }) => ({
color: theme.color,
fontSize: theme.fontFize,
fontColor: theme.fontColor,
fontWeight: theme.fontWeight,
marginLeft: theme.marginLeft
});
class HeadingCaption ... |
scripts/components/Order.js | hiplunatic/catch-of-the-day | /*
Order
<Order />
*/
import React from 'react';
import CSSTransitionGroup from 'react-addons-css-transition-group';
import helpers from '../helpers';
var Order = React.createClass({
renderOrder : function(key){
var fish = this.props.fishes[key];
var count = this.props.order[key];
... |
components/interactive-markdown.js | kentcdodds/glamorous-website | import React from 'react'
import remark from 'remark'
import remarkHtml from 'remark-html'
import visit from 'unist-util-visit'
import CodePreview from './code-preview'
import Callout from './callout'
import ClickToRender from './click-to-render'
import stripIndent from './utils/strip-indent'
import StaticCodeBlock fro... |
docs/src/pages/components/toggle-button/ToggleButtonSizes.js | lgollut/material-ui | import React from 'react';
import FormatAlignLeftIcon from '@material-ui/icons/FormatAlignLeft';
import FormatAlignCenterIcon from '@material-ui/icons/FormatAlignCenter';
import FormatAlignRightIcon from '@material-ui/icons/FormatAlignRight';
import FormatAlignJustifyIcon from '@material-ui/icons/FormatAlignJustify';
i... |
src/components/utilities/icons/GithubIcon.js | jackson-/hireblack.io | import React from 'react'
import './IconBar.css'
const Github = () => (
<svg
className='github'
width='32px' height='32px' x='0px' y='0px'
viewBox='17.697 25.637 44 44'
enableBackground='new 17.697 25.637 44 44'
>
<g>
<path d='M21.709,39.438c-0.568-5.117,0.457-6.378,2.006-8.573c-0.598-1.4... |
examples/js/tableDataSet/demo.js | opensourcegeek/react-bootstrap-table | import React from 'react';
import TableDataSetTable from './table-data-set';
class Demo extends React.Component {
render() {
return (
<div className="col-md-offset-1 col-md-8">
<div className="panel panel-default">
<div className="panel-heading">A TableDataSet Example</div>
<h5>... |
fields/types/url/UrlColumn.js | pr1ntr/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
node_modules/react-bootstrap/es/MediaListItem.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/containers/UGFeaturePage/index.js | perry-ugroop/ugroop-react-dup2 | // ************************************************************************
// Feature Listing component for the homepage - Vinz 2016-11-28
// ************************************************************************
import React from 'react';
// import { connect } from 'react-redux';
import { push } from 'react-router-... |
src/app/collapseTicket.js | thiagolucio/REACT-whiteLabel | import React from 'react';
import Collapse, {Panel} from 'rc-collapse';
import {List, ListItem} from 'material-ui/List';
import RaisedButton from 'material-ui/RaisedButton';
import ContentCheck from 'material-ui/svg-icons/navigation/check';
import ContentReceipt from 'material-ui/svg-icons/action/receipt';
const style... |
grid-packages/ag-grid-docs/documentation/src/layouts/index.js | ceolter/ag-grid | import React from 'react';
import { Helmet } from 'react-helmet';
import { GlobalContextProvider } from 'components/GlobalContext';
import HeaderNav from 'components/HeaderNav';
import Menu from 'components/Menu';
import Footer from 'components/footer/Footer';
import Search from 'components/search/Search';
import Frame... |
src/containers/toputilizers/components/TopUtilizersMultiHistogram.js | dataloom/gallery | import React from 'react';
import PropTypes from 'prop-types';
import Immutable from 'immutable';
import { Constants } from 'lattice';
import { HistogramVisualization } from '../../visualizations/HistogramVisualization';
import { COUNT_FQN } from '../../../utils/Consts/StringConsts';
import styles from '../styles.modu... |
imports/ui/components/files/NewFileModal.js | hwillson/file-metadata-manager | /* global FileReader */
import React, { Component } from 'react';
import {
Modal,
Button,
FormControl,
HelpBlock,
} from 'react-bootstrap';
import { css } from 'aphrodite';
import { _ } from 'underscore';
import UtilityStyles from '../../styles/utility';
import { uploadFile } from '../../../api/fs_files/metho... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | g3r4n/create-esri-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 = 0) {
return [
{ id: id + 1, name... |
examples/relay-treasurehunt/js/app.js | dmfrancisco/relay | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import 'babel/pol... |
src/svg-icons/maps/satellite.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSatellite = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.... |
components/dataset/header/infos.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import {translate} from 'react-i18next'
import licenses from '../../../lib/licenses'
const Infos = ({metadata, t}) => {
const dataType = t(`common:enums.dataTypes.${metadata.type}`, {
defaultValue: metadata.type
})
let... |
src/index.js | Cu7ious/React-n-Sass-recipeBox | import React from 'react'
import { render } from 'react-dom'
import App from './components/App'
const run = () => {
render(
<App />
, document.getElementById('root')
)
}
run() |
src/svg-icons/device/battery-20.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery20 = (props) => (
<SvgIcon {...props}>
<path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7... |
app/containers/ContactPage/index.js | ESTEBANMURUZABAL/bananaCatReact | import React from 'react';
import Helmet from 'react-helmet';
import messages from './messages';
import './index.scss';
import {defineMessages, injectIntl, intlShape, FormattedMessage} from 'react-intl';
class ContactPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
... |
templates/rubix/redux/redux-seed/src/common/header.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { Link, withRouter } from 'react-router';
import l20n, { Entity } from '@sketchpixy/rubix/lib/L20n';
import {
Label,
SidebarBtn,
Dispatcher,
NavDropdown,
NavDropdownHover,
Navbar,
Nav,
NavItem,
... |
app/assets/scripts/main.js | developmentseed/blue-pencil | 'use strict';
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
i... |
lib/manager/components/version/DeltaStat.js | conveyal/datatools-manager | // @flow
import React from 'react'
import {Label as BsLabel, OverlayTrigger, Tooltip} from 'react-bootstrap'
import {formatDelta} from '../../util/version'
/**
* Renders a delta statistic as a label with tooltip when comparing feed
* versions.
*/
const DeltaStat = (
{
comparedVersionIndex,
diff,
inv... |
assets/javascripts/sso/pages/ResetPasswordConfirmPage.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {History} from 'react-router';
import UserResetPasswordConfirmCard from '../components/UserResetPasswordConfirmCard';
let ResetPasswordConfirmPage = React.createClass({
mixins: [History],
render() {
const {params} = this.props;
retur... |
src/common/components/Paragraph.js | sikhote/davidsinclair | // @flow
import type { TextProps } from './Text';
import type { Theme } from '../themes/types';
import Text from './Text';
import React from 'react';
type ParagraphContext = {
theme: Theme,
};
const Paragraph = (props: TextProps, { theme }: ParagraphContext) => {
const {
marginBottom = theme.paragraph.marginB... |
client/views/omnichannel/agents/AgentInfoAction.js | VoiSmart/Rocket.Chat | import { Button, Icon } from '@rocket.chat/fuselage';
import React from 'react';
const AgentInfoAction = ({ icon, label, ...props }) => (
<Button title={label} {...props} mi='x4'>
<Icon name={icon} size='x20' mie='x4' />
{label}
</Button>
);
export default AgentInfoAction;
|
src/components/settlement/ShadeForm.js | HuZai/react_settlement | /**
* Created by zhengHu on 16-10-8.
* 单条信息展示组件
*/
import React from 'react';
import SettlementZiTiForm from '../../components/settlement/SettlementZiTiForm';
import SettlementCardNoForm from '../../components/settlement/SettlementCardNoForm';
class ShadeForm extends React.Component {
constructor(props) {
supe... |
src/scenes/home/codeSchools/approvedSchools/approvedSchools.js | OperationCode/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import styles from './approvedSchools.css';
class ApprovedSchools extends Component {
render() {
const vaSchools... |
react-demos/animation_demo/src/index.js | konvajs/site | import React, { Component } from 'react';
import Konva from 'konva';
import { createRoot } from 'react-dom/client';
import { Stage, Layer, Rect, Text } from 'react-konva';
import { Trail, animated, Globals } from 'react-spring/dist/konva';
Globals.injectFrame(
(x) => requestAnimationFrame(x),
(x) => cancelAnimati... |
pkg/interface/link/src/js/components/member.js | ngzax/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import { Link } from 'react-router-dom';
import { store } from '/store';
import urbitOb from 'urbit-ob';
import { LoadingScreen } from './loading';
import { LinksTabBar } from '/components/lib/links-tabbar';
import { MemberElement } from '... |
information/blendle-frontend-react-source/app/modules/alerts/components/AlertsPage.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { STATUS_ERROR } from 'app-constants';
import TilePane from 'components/TilePane';
import Tile from 'components/Tile';
import AlertForm from './AlertForm';
import AlertManageForm from './AlertManageForm';
import ResultItemTile from './ResultItemTile'... |
src/js/LudoPage/index.js | ludonow/ludo-beta-react | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import PropTypes from 'prop-types';
import MediaQuery from 'react-responsive';
import styled from 'styled-components';
import LightBox from 'react-image-lightbox';
import {
Menu,
MenuItem,
Popover,
} from 'material-ui';... |
node_modules/react-router/es6/Link.js | NathanBWaters/jb_club | 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 = {... |
app/containers/Pas/index.js | vollmerr/app-hub | import React from 'react';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import { meta } from '../AppHub/meta';
import App from '../App';
import routes from './routes';
import reducer from './reducer';
import saga from './saga';
const a... |
packages/react-error-overlay/src/containers/StackTrace.js | ontruck/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.
*/
/* @flow */
import React, { Component } from 'react';
import StackFrame from './StackFrame';
import Collapsible from '../components/Coll... |
src/components/app.js | bgoldman/todomvc-react | import React from 'react';
import { IndexRoute, Route, Router, hashHistory } from 'react-router';
import Page from './layout/page';
import TodosPage from './todos/pages';
export default () => {
const ActiveTodosPage = () => <TodosPage filter="active" />;
const CompletedTodosPage = () => <TodosPage filter="complet... |
src/components/Info/Info.js | ArchersDeLaBretagneRomantique/ui | import React from 'react'
import PageHeader from '../PageHeader'
import { getI18nLabels } from '../../services/I18nService'
const labels = getI18nLabels({
title: 'INFO.TITLE',
})
const Info = () => {
return (
<div>
<PageHeader title={labels.title} />
<div className="row marketing">
Soon..... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | jiguoling/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
im... |
src/components/Logout.js | kkotelczuk/weekendTour | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import firebase from '../firebase';
const Logout = () => {
const handleLogout = () => {
firebase.auth().signOut().then(function() {
}).catch(function(error) {
console.log('something went wrong');
});
}
return (
... |
webpack/scenes/Subscriptions/SubscriptionsPage.js | snagoor/katello | import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Immutable from 'seamless-immutable';
import { translate as __ } from 'foremanReact/common/I18n';
import { propsToCamelCase } from 'foremanReact/common/helpers';
import { isEmpty } from 'lo... |
src/public/components/tree/index.js | Harrns/segta | import React from 'react'
import $ from 'jquery'
import Path from 'path'
import Branch from './branch'
export default class Tree extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
}
initState (props) {
Object.assign(this.state, {
mobile: wi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.