path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/main/react-front-end/src/views/TablePaginationActions.js | didclab/onedatashare | /**
##**************************************************************
##
## Copyright (C) 2018-2020, OneDataShare Team,
## Department of Computer Science and Engineering,
## University at Buffalo, Buffalo, NY, 14260.
##
## Licensed under the Apache License, Version 2.0 (the "License"); you
## may not use this ... |
analysis/druidferal/src/modules/combopoints/FinisherUse.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { ThresholdStyle } from 'parser/core/ParseResu... |
src/elements/Button/ButtonGroup.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useValueAndKey,
useWidthProp,
} from '../../lib'
import Button from './Button'
/... |
public/assets/scripts/components/resources/actions/embed.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
export default class EmbedIcon extends Component {
constructor(props){
super(props);
}
componentDidMount(){
}
render() {
return (
<div className="media__action">
<i className="fa fa-code"></i>
</div>
);
}
} |
src/containers/settings/AccountScreen.js | GustavoKatel/franz | import { remote } from 'electron';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import PaymentStore from '../../stores/PaymentStore';
import UserStore from '../../stores/UserStore';
import AppStore from '../../stores/AppStore';
import { ga... |
src/views/BranchManage/BranchAdd.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Form, Button, Input, Row, Col, Select, TreeSelect, message, Modal } from 'antd'
import Spin from 'COMPONENT/effects/Spin'
import { setAddBranchVisible, branchAdd } from 'REDUCER/pages/branchManage'
const... |
src/pager/pager.js | subaira2004/my_sample_node_app | import React from 'react';
import ReactDOM from 'react-dom';
export default class Pager extends React.Component {
constructor(props) {
super(props);
const totPages = this.calcTotalPages(this.props.records, this.props.pageSize);
this.state = {
totalRecords: this.props.records,
... |
dispatch/static/manager/src/js/vendor/dispatch-editor/entities/LinkEntity.js | ubyssey/dispatch | import React from 'react'
import { Entity } from 'draft-js'
function Link(props) {
const { url } = Entity.get(props.entityKey).getData()
return (
<a href={url} className='c-dispatch-editor__entity c-dispatch-editor__entity--link'>
{props.children}
</a>
)
}
function findLinkEntities(contentBlock, c... |
fields/types/text/TextColumn.js | codevlabs/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.... |
app/javascript/mastodon/features/ui/components/compose_panel.js | h3zjp/mastodon | import React from 'react';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container';
import NavigationContainer from 'mastodon/features/compose/containers/navigation_container';
import LinkFooter f... |
react-router-nb/react-router/examples/breadcrumbs/app.js | zhangfaliang/learnReact | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './app.css'
const App = ({ children, routes }) => {
const depth = routes.length
return (
<div>
<aside>
... |
client/src/app/views/userProfile.js | FrontSmith/FSFramework | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { History } from 'react-router';
import userActions from 'actions/user';
import userProfileStore from 'stores/userProfile';
import authStore from 'stores/auth';
import UserAvatar from 'components/userAvatar';
import MarkedDisplay... |
src/widgets/components/PetitionWidgetImage/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './petition-widget-image.scss';
const PetitionWidgetImage = ({ src, alt, link }) => (
<a className={styles.root} href={link} rel={'noopener'} target={'_blank'}>
<img className={styles.image} src={src} alt={alt || ''} />
</a>
);
export default PetitionWidgetImage;
|
app/components/getItem.js | tharyckgusmao/Project-Download-GraphicEx | import React, { Component } from 'react';
import Styles from './getItem.css';
import cheerio from 'cheerio';
import request from 'request';
import fs from 'fs';
import { remote } from 'electron';
class getItem extends Component {
componentWillUpdate(nextProps, nextState) {
if (nextProps.download == true... |
packages/cf-component-form/src/FormLabel.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme, hidden }) => ({
fontSize: theme.fontSize,
display: hidden ? 'none' : 'block',
marginBottom: theme.marginBottom,
color: theme.color
});
class FormLabel extends React.Com... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | Place1/create-react-app-typescript | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
javascript/book-list/src/index.js | sandislonjsak/react-learning-projects | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
test/test_helper.js | magicnova/ReduxStarter | 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... |
React.js demos/hello-world/src/App.js | komitoff/Software-Technologies | 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/svg-icons/device/access-alarm.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
src/components/header/index.js | nai888/langua | import React from 'react'
import { Link, graphql, useStaticQuery } from 'gatsby'
import styles from './header.module.sass'
export const PureHeader = ({ data }) => {
const metadata = data?.site?.siteMetadata
return (
<header className={styles.header}>
<div className={styles.titleArea}>
<h1 class... |
WasteApp/js/components/sidebar/index.js | airien/workbits |
import React, { Component } from 'react';
import { Image } from 'react-native';
import { connect } from 'react-redux';
import { Content, Text, List, ListItem, Icon, View } from 'native-base';
var menuItems = require('../../data/sidebar.json');
import navigateTo from '../../actions/sideBarNav';
import sidebarTheme from... |
src/Parser/Priest/Shadow/Modules/Spells/Dispersion.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import calculateMaxCasts from 'Parser/Core/calculateMaxCasts';
import Combatants from 'Parser/Core/Modules/Combatants... |
app/routes/index.js | brandondoran/react-webpack-starter | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../components/App';
import Home from '../components/Home';
import About from '../components/About';
const routes = () => (
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="about" compone... |
src/scripts/AppRouter.js | asarode/thoughtshare-fe | import React from 'react'
import { Router, Route, Link, IndexRoute, Redirect } from 'react-router'
// import createBrowserHistory from 'history/lib/createBrowserHistory'
import {
App,
Sink,
HomeView,
CreationView,
ThoughtView
} from './containers'
const AppRouter = (
<Router>
<Route path='/' component=... |
modules/dreamview/frontend/src/components/StatusBar/index.js | ApolloAuto/apollo | import React from 'react';
import { observer } from 'mobx-react';
import AutoMeter from 'components/StatusBar/AutoMeter';
import Electricity from 'components/StatusBar/Electricity';
import Gears from 'components/StatusBar/Gears';
import Notification from 'components/StatusBar/Notification';
import TrafficLightIndicato... |
app/containers/BootStrap/BSColumn3/index.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by Vince on 28/11/16.
*/
import React from 'react';
const BSColumn3 = (props) => <div className={`col-md-3 ${props.className}`}>
{props.children}
</div>;
BSColumn3.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
};
export default BSColumn3;
|
examples/real-world/index.js | ipluser/redux-saga | import 'babel-polyfill'
// React imports
import React from 'react'
import { render } from 'react-dom'
// app specific imports
import { history } from './services'
import routes from './routes'
import Root from './containers/Root'
import configureStore from './store/configureStore'
import rootSaga from './sagas'
const... |
app/containers/UGTourPage/attendantimportpopover.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by yunzhou on 26/11/2016.
*/
import React from 'react';
import A from 'components/A';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import messages from './messages';
function AttendantImportpopover(props) {
const tourId = props.tourId;
const attendType = props.attendType;
let title ... |
lib/media/Photo.js | halilb/react-native-photo-browser | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Dimensions,
Image,
StyleSheet,
View,
TouchableWithoutFeedback,
ActivityIndicator,
Platform,
} from 'react-native';
import * as Progress from 'react-native-progress';
export default class Photo extends Component {
s... |
app/components/logo/logo.js | TheBigNorth/Nerd-Talk | import React from 'react';
export default function() {
return (<h1 className="logo">
<span className="logo__circle"></span>
<span className="logo__nerd-talk">Nerd Talk</span>
<span className="logo__code-speak">Code Speak</span>
</h1>);
} |
src/TopicListScene.js | tjkang/ReactNativeAuth | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
TextInput,
} from 'react-native';
import _ from 'lodash';
import { Actions } from 'react-native-router-flux';
import { Button, CardSection } from './components';
class TopicList extends Component {
constructor(props) {
... |
app/main.js | jackokerman/discogs-dj | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
import './styles.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
Paths/React/05.Building Scalable React Apps/7-react-boilerplate-building-scalable-apps-m7-exercise-files/After/app/components/Drawer/index.js | phiratio/Pluralsight-materials | /**
*
* Drawer
*
*/
import React from 'react';
import styles from './styles.css';
import classNames from 'classnames';
function Drawer({ items, selectItem, itemLabelAttr, itemKeyAttr, isDrawerOpen }) {
const itemNodes = items.map(item => (
<div
className={styles.item}
key={item[itemKeyAttr]}
... |
node_modules/semantic-ui-react/dist/es/views/Comment/CommentAvatar.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createHTMLImage, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A comment can contain an image or avatar.
*/
function Comment... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | cyberpuffin/remanddel | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
app/components/Header/index.js | KraigWalker/frontendfriday | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/components/__tests__/RowTest.js | joellanciaux/Griddle | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import Row from '../Row';
test('renders', (t) => {
const wrapper = shallow(<Row />);
t.true(wrapper.matchesElement(<tr />));
});
test('renders with griddleKey', (t) => {
const wrapper = shallow(<Row griddleKey={1} />);
t.tru... |
fields/types/localfile/LocalFileField.js | Redmart/keystone | import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
return ReactDOM.findDOMNod... |
src/svg-icons/maps/local-pizza.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPizza = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2... |
components/NavMenu.js | alonsogodinez/AlamedaWebPageGatsby | import React from 'react'
import { connect } from "react-redux"
import cx from 'classnames'
import { prefixLink } from 'gatsby-helpers'
//Components
import {IndexLink, Link} from 'react-router'
//Styles
import HeaderNav from '../css/header-nav.module.css'
import HeaderStyles from '../css/header-styles.module.css'
... |
src/PerfViewJS/spa/src/index.js | vancem/perfview | import 'bootstrap/dist/css/bootstrap.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
const rootElement = document.getElementById('root');
ReactDO... |
src/svg-icons/editor/format-italic.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
examples/auth-with-shared-root/components/Landing.js | nhunzaker/react-router | import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>This page is only shown to unauthenticated users.</p>
<p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do... |
admin/client/App/screens/Item/components/FormHeading.js | rafmsou/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
src/App.js | SemaiCZE/perf-data-visualizer | import React, { Component } from 'react';
import './App.css';
import { initialState } from './utils/stateHelpers';
import { Grid, Row, Col } from 'react-bootstrap';
import {
stateFetchTests,
stateFetchTestVersionsIfNeeded,
stateFetchTestValues,
stateRemoveTestValues,
stateClearError,
stateSetActiveTest,
... |
src/viewer/diagram/BarDiagram.js | bjornreppen/ecomap | import React from 'react'
import { BarChart, Tooltip, XAxis, YAxis, CartesianGrid, Legend, Bar } from 'recharts'
const BarDiagram = ({data}) =>
<BarChart width={400} height={300} data={data} options={{}}>
<XAxis dataKey='name' />
<YAxis />
<CartesianGrid strokeDasharray='6 3' />
<Tooltip />
<Lege... |
src/routes.js | ad5jo/final-tues540pmlogin | import React from 'react'
import {browserHistory, Router, Route, Redirect} from 'react-router'
import makeMainRoutes from './views/Main/routes'
export const makeRoutes = () => {
const main = makeMainRoutes();
return (
<Route path=''>
{main}
</Route>
)
}
export default makeRoutes
|
src/svg-icons/communication/dialer-sip.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialerSip = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ... |
src/svg-icons/action/event-seat.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEventSeat = (props) => (
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/>
</SvgIcon>
);
ActionEventSeat = pure(ActionEventSe... |
wwwroot/app/src/components/MealPlannerPage/AddNewMeal.js | AlinCiocan/FoodPlanApp | import React from 'react';
import Select from 'react-select';
import Routes from '../../services/Routes';
import TopBar from '../TopBar/TopBar';
import { ApiRequest } from '../../services/ApiRequest';
import DateFormatter from '../../utils/DateFormatter';
import Button from '../base/buttons/Button';
import OrSeparator ... |
components/Link/Link.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './Link.css';
import Icon from '../Icon/Icon';
const Link = ({ href, className, bodyClassName, iconClassName, children, ...rest }) => (
<a { ...rest } href={ href } className={ cx(css.root, className) }>
... |
static/src/components/RegisterView.js | pyalwin/redux | /* eslint camelcase: 0, no-underscore-dangle: 0 */
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import * as action... |
generators/app/templates/src/components/Header/Header.js | ZCY-frontend/generator-zcyrrrw | import React from 'react'
import {Menu} from 'antd'
export const ZCY_Header = () => (
<div className="header">
<div className="logo" />
<Menu
theme="dark"
mode="horizontal"
defaultSelectedKeys={['2']}
style={{ lineHeight: '64px' }}
>
<Menu.Item key="1">nav 1</Menu.Item>
... |
resource/js/components/PageHistory.js | crow-misia/crowi | import React from 'react';
import Icon from './Common/Icon';
import PageRevisionList from './PageHistory/PageRevisionList';
export default class PageHistory extends React.Component {
constructor(props) {
super(props);
this.state = {
revisions: [],
diffOpened: {},
};
this.getPreviousRe... |
components/time_picker/Clock.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup';
import { getAnimationModule } from '../utils/utils';
import time from '../utils/time';
import Hours from './ClockHours';
import Minutes from './ClockMinutes';
class ... |
lib/components/core/Polygon.js | mrkre/react-d3-viz | import React from 'react';
import PropTypes from 'prop-types';
const Polygon = ({
points,
stroke,
strokeWidth,
strokeDasharray,
strokeDashoffset,
strokeLinecap,
strokeLinejoin,
strokeMiterlimit,
strokeOpacity,
fill,
fillOpacity,
transform,
clipPath,
style,
onMouseOver,
onMouseOut,
}) =>... |
Realization/frontend/czechidm-core/src/content/notification/NotificationTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import uuid from 'uuid';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { IdentityManager, SecurityManager } from... |
fields/types/datetime/DatetimeField.js | benkroeger/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import {
Button,
FormField,
FormInput,
FormNote,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.crea... |
src/CollapsibleMixin.js | chrishoage/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState() {
const defaultExpanded... |
app/components/SmallSectionHeader/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* SmallSectionHeader
*
*/
import React from 'react';
import styled from 'styled-components';
export default styled.h3`
font-size: 30px;
font-family: ${p=>p.theme.isArabic?'Greta':'KnockOut'};
line-height: 30px;
text-align: ${p=>p.theme.isArabic?'right':'left'};;
border-bottom: 2px solid black;
paddi... |
ui/src/main/js/components/Layout.js | thinker0/aurora | import React from 'react';
import Icon from 'components/Icon';
import { addClass } from 'utils/Common';
export function ContentPanel({ children }) {
return <div className='content-panel'>{children}</div>;
}
export function StandardPanelTitle({ title }) {
return <div className='content-panel-title'>{title}</div>... |
src/components/HomePage.js | BlueAccords/muze | import React from 'react';
// import components
import Jumbotron from './home/Jumbotron';
const HomePage = () => {
return (
<div className="container">
<Jumbotron />
</div>
);
};
export default HomePage;
|
client/admin/info/DescriptionList.stories.js | Sing-Li/Rocket.Chat | import React from 'react';
import { DescriptionList } from './DescriptionList';
import Page from '../../components/basic/Page';
export default {
title: 'admin/info/DescriptionList',
component: DescriptionList,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
(fn) => <Page>
<Page.Content>
{fn(... |
src/docs/components/TextInputDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import TextInput from 'grommet/components/TextInput';
import Form from 'grommet/components/Form';
import FormField from 'grommet/components/FormField';
import DocsArticle from '../../components/DocsArticle';
... |
information/blendle-frontend-react-source/app/modules/payment/components/SubscriptionDialogue.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import Dialogue from 'components/dialogues/Dialogue';
import classNames from 'classnames';
import PaymentFooter from 'modules/payment/components/PaymentFooter';
import SubscriptionOptionsContainer from 'modules/payment/containers/SubscriptionOptionsContaine... |
client/src/pages/404.js | pahosler/freecodecamp | import React from 'react';
import Helmet from 'react-helmet';
import Spinner from 'react-spinkit';
import { Link } from 'gatsby';
import Layout from '../components/layouts/Default';
import notFoundLogo from '../images/freeCodeCamp-404.svg';
import { quotes } from '../resources/quotes.json';
import './404.css';
clas... |
packages/web/src/components/LoginDispatcher.js | hwaterke/inab | import {selectToken} from '@inab/shared'
import PropTypes from 'prop-types'
import React from 'react'
import {connect} from 'react-redux'
import {Redirect} from 'react-router-dom'
export const LoginDispatcher = connect(state => ({token: selectToken(state)}))(
class LoginDispatcher extends React.Component {
stati... |
src/SplitPane.js | chrisleeshanok/react-split-pane | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Prefixer from 'inline-style-prefixer';
import stylePropType from 'react-style-proptype';
import Pane from './Pane';
import Resizer from './Resizer';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.... |
packages/wix-style-react/src/Palette/Palette.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import FillPreview from '../FillPreview/FillPreview';
import { classes } from './Palette.st.css';
/** A component to show a palette of colors */
class Palette extends React.PureComponent {
static displayName = 'Palette';
static propTypes = {
/** h... |
docs/app/Examples/elements/List/Content/ListExampleImage.js | vageeshb/Semantic-UI-React | import React from 'react'
import { List, Image } from 'semantic-ui-react'
const ListExampleImage = () => (
<List>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar2/small/rachel.png' />
<List.Content>
<List.Header as='a'>Rachel</List.Header>
<List.Description>Last se... |
doc/src/pages/examples/component-tag-interact.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
Projets/JS/React/Projet 1 Markdown/markdown/src/index.js | thib123/TPJ | // LocalStorage
// REACT
import React from 'react';
import { render } from 'react-dom';
// CSS
import './index.css';
import './style/css/bootstrap.css';
// JS PERSO
import { sampleText } from './sampleText';
// IMPORTATION DE LIB EXTERNE
import marked from 'marked';
class App extends React.Component {
state = {
... |
frontend/src/components/TransactionsList.js | OpenCollective/opencollective-app | import React from 'react';
import Transaction from './Transaction';
export default ({transactions=[], users}) => {
return (
<div>
{transactions.map(transaction => {
return (
<Transaction
key={transaction.id}
{...transaction}
user={users[transaction.Us... |
src/TextField/TextFieldHint.js | hai-cea/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
function getStyles(props) {
const {
muiTheme: {
textField: {
hintColor,
},
},
show,
} = props;
return {
root: {
position: 'absolute',
opacity: show ? 1 ... |
app/Components/SignIn/SMSCode/CountryCode.js | martinvarelaaaa/tintina | import React from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import styles from '../styles';
import theme from '../../../theme';
const { color } = theme;
const CountryCode = ({ setModal... |
eventkit_cloud/ui/static/ui/app/components/Dialog/DeleteDataPackDialog.js | terranodo/eventkit-cloud | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ConfirmDialog from './ConfirmDialog';
export class DeleteDataPackDialog extends Component {
render() {
return (
<ConfirmDialog
className="qa-DeleteDataPackDialog-ConfirmDialog"
s... |
node_modules/rc-time-picker/es/Panel.js | prodigalyijun/demo-by-antd | 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-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
src/svg-icons/notification/sms.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
NotificationSm... |
src/components/Code.stories.js | dlindahl/stemcell | import Bit from './Bit'
import CssReset from './CssReset'
import { text, withKnobs } from '@kadira/storybook-addon-knobs'
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Code from './Code'
import Paragraph from './Paragraph'
import VerticalRhythm from './VerticalRhythm'
storiesOf('Code',... |
node_modules/react-router/es/withRouter.js | swapnilabnave/swapnilabnave.github.io | 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 = {... |
src/icons/StrokeWallet.js | ipfs/webui | import React from 'react'
const StrokeWallet = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M85 39.72h-3V29c0-4.56-2.28-10-13-10H19.88v62H69c11.69 0 13-7.72 13-11v-9.72h3zM79 70a10.92 10.92 0 0 1-.16 1.86h-5.56v1h5.27C77.46 76.26 74.22 78 69 78H22.88V28.14h7.28v-1h-7.28V22H69c7.15 0 9.25 2.48 9.79 ... |
scripts/pages/workouts.js | zupzup/reactgym | 'use strict';
import React from 'react';
import List from '../components/List';
import WorkoutStoreActionCreators from '../actions/WorkoutStoreActionCreators';
import WorkoutForm from '../components/forms/WorkoutForm';
import ExerciseStore from '../stores/ExerciseStore.js';
import WorkoutStore from '../stores/WorkoutS... |
test/fixtures/react/arrow/actual.js | davesnx/babel-plugin-transform-react-qa-classes | import React, { Component } from 'react';
const componentName = () => {
return <div>
<h1>Hello world</h1>
</div>;
};
export default componentName;
|
20161201/RN-test/src/index.ios.js | fengnovo/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.cont... |
packages/forms/src/deprecated/widgets/DatalistWidget/DatalistWidget.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import Emphasis from '@talend/react-components/lib/Emphasis';
import classnames from 'classnames';
import get from 'lodash/get';
import Autowhatever from 'react-autowhatever';
import keycode from 'k... |
server/priv/js/components/BenchSummary.react.js | alinpopa/mzbench | import React from 'react';
import MZBenchRouter from '../utils/MZBenchRouter';
import moment from 'moment';
import 'moment-duration-format';
class BenchSummary extends React.Component {
_labelCssClass(status) {
switch (status) {
case "complete":
return "label-success";
... |
Admin/Layout/DefaultLayout.js | wangmengling/MaoMobxBlog | import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route,
Redirect,
Link
} from 'react-router-dom'
// import {Redirect, Route} from 'react-router';
import Auth from '../Stores/Auth.js'
import Header from '../Header/Index'
import Footer from '../Footer/Index'
import './DefaultLay... |
src/components/Advs/AutoHomeTopRightAdv/AutoHomeTopRightAdv.js | febobo/react-redux-start | import React, { Component } from 'react';
export default class AutoHomeTopRightAdv extends Component {
componentDidMount (){
const script4 = document.createElement("script");
script4.id="AutoHomeTopRightAdv";
script4.async = true;
document.body.appendChild(script4);
document.getElementB... |
src/js/pages/HomeApp.js | alexzherdev/foosballtracker | import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import HomeContainer from '../containers/HomeContainer';
const store = configureStore();
export default class HomeApp extends React.Component {
render() {
return (
<Provider store={sto... |
examples/flux-utils-todomvc/js/app.js | DimitarRuskov/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
src/shared/universal/containers/Example/Example.js | DAppx/SharpReact | /**
* Created by chengdi on 2016/11/22.
*/
import React from 'react';
import Helmet from 'react-helmet';
import Example1 from '../../modules/Example';
function Example() {
return (
<article>
<Helmet title="example" />
<div> delete ggg </div>
<Example1 />
</article>
);
}
export default ... |
src/components/Main.js | Helloylj/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
import ReactDOM from 'react-dom';
//获取图片相关数据
var imageData = require('../datas/imageData.json');
//利用自执行函数,将图片名信息转成图片URL路径信息
imageData = (function getImageURL(imageDataArr){
for (var i = 0, j=imageDataArr.length; i<j; i++)... |
examples/src/components/CustomComponents.js | glowka/react-select | import React from 'react';
import Select from 'react-select';
import Gravatar from 'react-gravatar';
const USERS = require('../data/users');
const GRAVATAR_SIZE = 15;
const GravatarOption = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string,
isDisabled: React.Pro... |
src/container/Login/index.js | ztplz/CNode-react-native | /**
* React Native App
* https://github.com/ztplz/CNode-react-native
* email: mysticzt@gmail.com
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableHighlight,
StyleSheet
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import {
NIGHT_HEADER_CO... |
react/features/filmstrip/components/web/ThumbnailTopIndicators.js | gpolitis/jitsi-meet | // @flow
import { makeStyles } from '@material-ui/styles';
import clsx from 'clsx';
import React from 'react';
import { useSelector } from 'react-redux';
import { getSourceNameSignalingFeatureFlag } from '../../../base/config';
import { isMobileBrowser } from '../../../base/environment/utils';
import ConnectionIndica... |
docs/src/app/components/pages/components/Slider/ExampleStep.js | nathanmarks/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleStep = () => (
<Slider step={0.10} value={.5} />
);
export default SliderExampleStep;
|
weather/src/components/app.js | WendySanarwanto/udemy-modern-react-with-redux | import React from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather_list';
const App = () => {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
export default App;
|
src/index.js | psongpin/Weather-App | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
talks-articles/frameworks/react/reactjs/tutorialspoint.com/react-app/main.js | abhishekkr/tutorials_as_code | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(
<App headerProp="Need some content"/>,
document.getElementById('app')
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.