path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
lts/deps/npm/docs/src/components/Sidebar.js | enclose-io/compiler | import React from 'react'
import styled from 'styled-components'
import DocLinks from './DocLinks'
const Container = styled.nav`
border-right: 1px solid #86838333;
padding: 30px;
height: 100vh;
display: none;
width: 380px;
position: sticky;
overflow: scroll;
padding-bottom: 200px;
top: 54px;
backg... |
public/javascripts/hello-world.js | fireaxil/PortfolioWebsite | /**
* Created by Christian Koehler on 2/25/2017.
*/
import React from 'react';
import ReactDOM from 'react-dom';
//react only calls render once. gets split up into components
//one root element too
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
); |
public/app/components/properties/properties-label.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
const styles = {
cell: {
display: 'inline-block',
fontSize: '16px',
lineHeight: '24px',
marginLeft: '10px',
marginRight: '30px'
}
};
const PropertiesLabel = ({ text }) => (
<div style={styles.cell}>{text}</div>
);
PropertiesLabel.propTypes = {
tex... |
src/svg-icons/navigation/arrow-drop-down.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
examples/with-cerebral/components/Page.js | zeit/next.js | import React from 'react'
import Link from 'next/link'
import { connect } from '@cerebral/react'
import { state, signal } from 'cerebral/tags'
import Clock from './Clock'
export default connect(
{
lastUpdate: state`clock.lastUpdate`,
light: state`clock.light`,
mounted: signal`clock.mounted`,
unMounte... |
node_modules/semantic-ui-react/src/collections/Grid/Grid.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useTextAlignProp,
useValueAndKey,
useVerticalAlignProp,
useWidthProp,
} from '../../lib'
import GridCol... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | df-a/par-nl | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/index.desktop.js | kuzzmi/rmndrz | import React from 'react';
import { render } from 'react-dom';
import { App } from 'app';
import 'app/App.scss';
import 'app/App.desktop.scss';
render(
<App />,
document.getElementById('root')
);
|
server/sonar-web/src/main/js/app/components/ProjectAdminContainer.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/pages/account.js | Ehesp/react-flux-webpack-boilerplate | import React, { Component } from 'react';
class Account extends Component {
render() {
return (
<div>
Account Page
</div>
);
}
}
export default Account; |
scripts/alert.js | diakov2100/YaStreamDesktop | import React from 'react';
import ReactDOM from 'react-dom';
import NewStreamMain from '../views/newStream/newStreamMain.jsx'
const $ = require('./jquery.js')
const remote = require('electron').remote
require('electron').ipcRenderer.on('show-donation', (event, donate) => {
//var audio = new Audio('../music/mihai... |
admin/src/components/PopoutList.js | woody0907/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutList = React.createClass({
displayName: 'PopoutList',
propTypes: {
children: React.PropTypes.node.isRequired,
},
render () {
let className = classnames('PopoutList', this.props.className);
let props =... |
src/icons/Brightness2Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Brightness2Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 4c-3.65 0-7.06.99-10 2.7 5.97 3.46 10 9.9 10 17.3s-4.03 13.84-10 17.3c2.94 1.71 6.35 2.7 10 2.7 11... |
src/pages/channels/ChannelList.js | feedcast/hurley | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import 'app/styles/channelList.sass';
import Pagination from 'app/components/Pagination'
import ChannelCard from 'app/components/ChannelCard'
class ChannelList extends Component {
static propTypes = {
... |
src/components/Layout/Menu.js | terryli1643/daoke-react-c | import React from 'react'
import PropTypes from 'prop-types'
import { Menu, Icon } from 'antd'
import { Link } from 'dva/router'
import { arrayToTree, queryArray } from '../../utils'
import pathToRegexp from 'path-to-regexp'
const Menus = ({ siderFold, darkTheme, location, handleClickNavMenu, navOpenKeys, changeOpenKe... |
web/app/themes/tepelnecerpadlo/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | adesignsk/wpbedrock | 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'));
|
src/svg-icons/av/queue.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueue = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
</SvgIco... |
fields/components/columns/CloudinaryImageSummary.js | ligson/keystone | import React from 'react';
// import CloudinaryImage from 'react-cloudinary-img';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const linkStyle = {
marginRight: 8,
};
const boxStyle = {
borderRadius: 3,
display: 'inline-block',
height: 18,
overflow: 'hidden',
verticalAlign: 'middle... |
fields/types/boolean/BooleanFilter.js | andrewlinfoot/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const VALUE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false },
];
function getDefaultValue () {
return {
value: true,
};
}
var BooleanFilter = React.createClass({
propTy... |
src/components/SavePodcast/SavePodcast.js | franferdez/fuga-challenge | import React from 'react'
type Props = {
playLists: Array.isRequired,
data: Object.isRequired, // Podacast Object
addPodcastToPlayList: Function.isRequired
};
export class SavePodcast extends React.Component {
props: Props;
constructor(props){
super(props);
this.state = {selectValue: 0};
this.... |
__tests__/renderers.js | tbleckert/react-select-search | import React from 'react';
export const renderOption = (domProps, option, snapshot, className) => (
<button className={className} {...domProps}>
{option.name}
</button>
);
export const renderValue = (valueProps, snapshot, className) => (
<input
{...valueProps}
className={className}... |
blueocean-material-icons/src/js/components/svg-icons/communication/stay-primary-landscape.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
CommunicationStayPrimaryLandscape.displayNa... |
src/main/pileup.js | snaheth/pileup.js | /**
* This exposes the main entry point into pileup.js.
* @flow
*/
'use strict';
import type {Track, VisualizedTrack, VizWithOptions} from './types';
import _ from 'underscore';
import React from 'react';
import ReactDOM from 'react-dom';
// Data sources
import TwoBitDataSource from './sources/TwoBitDataSource';
... |
app/javascript/flavours/glitch/features/ui/components/bundle.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.Component {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.func.i... |
src/components/PlaylistManager/Panel/RenamePlaylistButton.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Tooltip from '@mui/material/Tooltip';
import IconButton from '@mui/material/IconButton';
import EditIcon from '@mui/icons-material/Edit';
import PromptDialog from '../../Dialogs/PromptDialog';
... |
stilr/button.js | konce/css-in-js | import React from 'react';
import StyleSheet from 'stilr';
let styles = StyleSheet.create({
container: {
textAlign: 'center'
},
button: {
backgroundColor: '#ff0000',
width: '320px',
padding: '20px',
borderRadius: '5px',
border: 'none',
outline: 'none',
':hover': {
color: '#f... |
src/components/Number.js | wanliu/DataSync | import React from 'react';
import numeral from 'numeral';
export default class Number extends React.Component {
render() {
return <span className="number">{numeral(this.props.value).format('0,0')}</span>;
}
}
Number.propTypes = {
value: React.PropTypes.any
}; |
src/components/pages/Admin/Collections/AdminCollectionsEdit.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
// Flux
import CollectionDetailsStore from '../../../../stores/Collections/CollectionDetailsStore';
import CollectionsStore ... |
src/components/FuelSavingsForm.js | mikejablonski/newo-brew-web | import React from 'react';
import PropTypes from 'prop-types';
import FuelSavingsResults from './FuelSavingsResults';
import FuelSavingsTextInput from './FuelSavingsTextInput';
class FuelSavingsForm extends React.Component {
constructor(props, context) {
super(props, context);
this.save = this.save.bind(thi... |
src/components/Header.js | xuyingjie/fragment | import React from 'react'
import { Link, useLocation, useNavigate } from 'react-router-dom'
import { del, postsDir } from '../utils'
function Header({ state, dispatch }) {
const navigate = useNavigate()
const { pathname } = useLocation()
const isEdit = pathname.match('/edit/')
async function delCurrentPost() ... |
examples/ExtensionExample.js | instea/react-native-popup-menu | import React from 'react';
import { Text, View } from 'react-native';
import Menu, {
MenuProvider,
MenuOptions,
MenuOption,
MenuTrigger,
renderers,
} from 'react-native-popup-menu';
import Icon from 'react-native-vector-icons/FontAwesome';
const CheckedOption = (props) => (
<MenuOption
value={props.val... |
app/components/bootstrap/row.js | mersocarlin/pokedex-app | import React from 'react';
export default React.createClass({
propTypes: {
cssClass: React.PropTypes.string,
},
getDefaultProps () {
return {
cssClass: '',
};
},
render () {
const { cssClass } = this.props;
return (
<div className={`row ${cssClass}`}>
{this.props.... |
src/index.js | TodayTix/tt-react-calendar | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import fp from 'lodash/fp';
import moment from 'moment';
import { day as dayType } from './proptypes';
import CalendarDayHeaders from './day-headers';
import CalendarMonth from './month';
/**
* Turns a moment instance into a seri... |
Examples/src/Application.js | sitb-software/react-native-components | import React, { Component } from 'react';
import {
StyleSheet,
StatusBar,
Navigator,
View,
AppRegistry,
} from 'react-native';
import Header from './components/Header';
import Home from './components/Home';
import IconExamples from './components/IconExamples';
import BootstrapButtonExamples from './component... |
html.js | incodeit/incodeit.github.io | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
export default class HTML extends React.Component {
static propTypes = {
body: PropTypes.string
}
render() {
const head = He... |
es2015plus/react-redux/src/components/Introduction/index.js | lshig/forms-challenge | import React from 'react';
export default function Introduction() {
return (
<section id="introduction">
<div className="row">
<h1 className="project-title">
Forms: <br />
ES2015+, React, & Redux
</h1>
<a
href="https://lshig.github.io"
rel="no... |
components/grid/col.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-13 17:50:59
* @Last modified by: yzf
* @Last modified time: 2017-06-13 17:51:00
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import s from './style';
const stringOrNumber = PropTypes.oneOfType([PropT... |
src/index.js | interacthings/framer-modules | import 'babel-core/polyfill';
import sticky from 'root/vendor/jquery.sticky-kit.min.js';
import React from 'react';
import App from 'containers/App';
import 'styles/main';
sticky.call(window);
React.render(
<App/>, document.getElementById('root')
);
|
node_modules/react-icons/io/arrow-down-b.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoArrowDownB = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7.7 14.5c-0.1-0.2-0.2-0.5-0.2-0.7 0-0.8 0.6-1.3 1.3-1.3h22.4c0.7 0 1.3 0.5 1.3 1.3 0 0.2-0.1 0.4-0.2 0.6l-0.2 0.2-10.6 12.2c-0.4 0.4-0.9 0.7-1.5 0.7s-1.1-0.3-1.5-... |
src/index.js | pawelgalazka/spaceroom | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
demo/Client.js | gearz-lab/react-metaform | import React from 'react';
import ReactDom from 'react-dom';
import { Router } from 'react-router'
import routes from './Routes';
import Styles from './less/styles.less';
const createBrowserHistory = require('history/lib/createBrowserHistory');
ReactDom.render ((
<Router history={createBrowserHistory()}>
... |
fields/types/number/NumberFilter.js | kumo/keystone | import _ from 'underscore';
import React from 'react';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Exactly', value: 'exactly' },
{ label: 'Greater Than', value: 'greaterThan' },
{ label: 'Less Than', value: 'lessThan' },
{ label: 'Between', value: 'be... |
src/svg-icons/content/archive.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentArchive = (props) => (
<SvgIcon {...props}>
<path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.... |
src/views/WidgetList/widgets/Measures/Measure/MeasureEditPage.js | GovReady/GovReady-Agent-Client | import React, { Component } from 'react';
import { PropTypes as PT } from 'prop-types';
import { reduxForm, initialize, propTypes } from 'redux-form';
import PureInput from 'components/PureInput';
import DeleteConfirm from 'components/DeleteConfirm';
import DatePickerWrap from 'components/DatePickerWrap';
import BackBu... |
src/core/client/base.js | mstriemer/addons-frontend | /* global document */
import 'babel-polyfill';
import config from 'config';
import Jed from 'jed';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { ReduxAsyncConnect } from 'redux-connect';
import { l... |
client/src/app/app.js | CellularAnathema/ambits | import React from 'react';
import {render} from 'react-dom';
import {Router, Route, Link, browserHistory} from 'react-router';
import Main from './Main'; // Our custom react components
import Map from './map/map.jsx';
import Schedule from './schedule/components/schedule.jsx'
import CheckinContainer from './checkin/com... |
app/start-page/Location.js | tscok/annsjon-spa | import React from 'react'
import purebem from 'purebem'
import LocationMap from './LocationMap'
import getText from '../../assets/js/data/mygettext'
const block = purebem.of('location')
const Location = () => (
<section className={block()}>
<div className="container">
<div className="row">
<div ... |
src/Components/ListFooter.js | gourie/ParkingPlaza | /*
* Author: Joeri Nicolaes
* version: alpha
*/
import React from 'react';
//import Utils from '../utils';
/**
* React Component: ListFooter
*/
export default class ListFooter extends React.Component {
/**
* Standard ES6 method
*/
constructor(props) {
super(props);
if (this.... |
map/src/containers/UserChangePassword/index.js | teikei/teikei | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Field, reduxForm } from 'redux-form'
import { changePassword } from '../UserOnboarding/duck'
import InputField from '../../components/InputField/index'
import { validator } from '../../common/formUtils'
const U... |
src/components/Assets/Content.js | LifeSourceUA/lifesource.ua | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import svg from 'lib/svg';
@svg({
width: 38,
height: 32
})
export default class Book extends Component {
static propTypes = {
color: PropTypes.string.isRequired
};
render() {
const { color } = this.props;... |
src/entypo/EyeWithLine.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--EyeWithLine';
let EntypoEyeWithLine = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.5214844,1.4776001C18.131958,1.086853,17.4981079,1.086792,17.1074829,1.477478L1.4785156,... |
demo/component/LineChart.js | thoqbk/recharts | import React from 'react';
import CustomLineDot from './CustomLineDot';
import { changeNumberOfData } from './utils';
import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine,
ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts';
import { scalePow, scaleLog } from 'd3-scale';
const... |
src/scenes/home/codeSchools/codeSchools.js | NestorSegura/operationcode_frontend | import _ from 'lodash';
import React, { Component } from 'react';
import axios from 'axios';
import LinkButton from 'shared/components/linkButton/linkButton';
import Section from 'shared/components/section/section';
import ApprovedSchools from './approvedSchools/approvedSchools';
import PartnerSchools from './partnerSc... |
examples/js/column-filter/text-filter-programmatically.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
app/react-icons/fa/question-circle-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaQuestionCircleO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m22.6 26.8v3.6q0 0.3-0.2 0.5t-0.5 0.2h-3.5q-0.4 0-0.6-0.2t-0.2-0.5v-... |
docs/app/Examples/views/Comment/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const CommentExamples = () => (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
export default CommentExamples
|
client/src/app-components/ticket-viewer.js | opensupports/opensupports | import React from 'react';
import _ from 'lodash';
import {connect} from 'react-redux';
import AdminDataActions from 'actions/admin-data-actions';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import SessionStore from 'lib-app/session-store';
import MentionsParser from 'lib-app/me... |
src/components/Footer/Footer.js | tosFa/react-cross-platform-boardgame-example | 'use strict';
import React from 'react';
import Base from './FooterBase';
import {connect} from 'react-redux';
import {mapStateToProps, mapDispatchToProps} from './connectToStore';
class FooterPresentation extends Base {
render() {
return (
<footer>
<h1>You are currently on {this.props.player.po... |
src/index.js | brett9897/bblog-ui | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
require('./favicon.ico'); // Tell webpack to load favicon.ico
render(
<Router history={browserHistory} routes={routes} />, document... |
internals/templates/containers/LanguageProvider/index.js | Frai/Events | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
packages/wix-style-react/src/CircularProgressBar/CircularProgressBar.js | wix/wix-style-react | import React from 'react';
import { CircularProgressBar as CoreCircularProgressBar } from 'wix-ui-core/dist/src/components/circular-progress-bar';
import CircleLoaderCheck from 'wix-ui-icons-common/system/CircleLoaderCheck';
import CircleLoaderCheckSmall from 'wix-ui-icons-common/system/CircleLoaderCheckSmall';
import ... |
node_modules/antd/es/modal/Modal.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
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-runtime/helpers/i... |
examples/redirect-using-index/app.js | axross/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/redirect-using-index'
})
class App extends React.Component {
render() {
return (
<div>
{this.prop... |
src/components/trends/cbg/FocusedCBGSliceSegment.js | tidepool-org/viz | /*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
src/client/components/Slider.js | pgryko/meeting | import React from 'react'
// export default class Contacts extends React.Component {
// render() {
// return <div>
// {/* <!-- Intro Full Width Slider --> */}
// <section class="master-slider fw-slider content-slider ms-skin-default space-bottom" id="intro-slider">
// <div class="ms-slide" st... |
admin/client/App/screens/Item/components/EditForm.js | cermati/keystone | import React from 'react';
import moment from 'moment';
import assign from 'object-assign';
import {
Form,
FormField,
FormInput,
Grid,
ResponsiveText,
} from '../../../elemental';
// import { css, StyleSheet } from 'aphrodite/no-important';
import { Fields } from 'FieldTypes';
import { fade } from '../../../../ut... |
investninja-web-ui-admin/src/routes/index.js | InvestNinja/InvestNinja-web-ui | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import App from '../components/... |
src/client/spinner.js | Viktour19/hacker-menu | import React from 'react'
export default class Spinner extends React.Component {
render () {
return (
<div className='spinner'>
Loading...
</div>
)
}
}
|
src/components/Table/Table.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
const Table = props => {
const { children, className, containerClassName, ...other } = props;
const tableClasses = classNames(className, 'bx--responsive-table');
const tableContainerClasses = classNames(
con... |
web/static/js/components/Router.js | ryo33/Yayaka19 | import React from 'react'
import {
publicTimeline, timeline,
userPage, followersPage, followingPage,
mysteriesPage, openedMysteriesPage,
userFormPage, trustedServersPage,
postPage, noticesPage,
mysteryPage, newMysteryPage, loginPage,
remoteUserPage, remoteMysteryPage
} from '../pages.js'
import PublicTim... |
example/src/client/index.js | tizmagik/react-head | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { HeadProvider } from 'react-head';
import './index.css';
import App from '../App';
ReactDOM.hydrate(
<HeadProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</HeadProvider>,
docum... |
services/QuillLMS/client/app/bundles/Diagnostic/components/renderForQuestions/generateFeedbackString.js | empirical-org/Empirical-Core | import React from 'react'
import _ from 'underscore'
let C = require("../../constants").default
const feedbackStrings = C.FEEDBACK_STRINGS
export default function generateFeedbackString(attempt) {
//getErrorsForAttempt function below
const errors = _.pick(attempt, ...C.ERROR_TYPES);
// add keys for react list... |
src/components/WidthWrapper.js | rsimmons/voracious | import React from 'react';
import './WidthWrapper.css';
export default function WidthWrapper(props) {
return (
<div className="WidthWrapper">
{props.children}
</div>
);
}
|
src/svg-icons/navigation/arrow-downward.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDownward = (props) => (
<SvgIcon {...props}>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/>
</SvgIcon>
);
NavigationArrowDownward = pure(NavigationArrowDownward);
Na... |
client/views/admin/info/InstancesModal.js | VoiSmart/Rocket.Chat | import { Modal, ButtonGroup, Button, Accordion } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../contexts/TranslationContext';
import { useFormatDateAndTime } from '../../../hooks/useFormatDateAndTime';
import DescriptionList from './DescriptionList';
const InstancesM... |
src/styles/theme-decorator.js | izziaraffaele/material-ui | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
src/TextAreaAutocompleter.js | edrex/autocomplete | import React from 'react';
import classnames from 'classnames';
const wordCharsPat = '[\\w\-]',
startRegex = new RegExp(`@${wordCharsPat}*$`),
endRegex = new RegExp(`^${wordCharsPat}*`);
export function suggestableWord(text, position) {
const textBefore = text.slice(0, position),
startMatch = startRegex... |
app/routes/root.component.js | dleszcz/react-static-boilerplate | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { configureStore } from 'store';
export default class Root extends Component {
constructor(props) {
super(props);
this.state = {
store: configureStore(),
}
}
componentDidMount() {
}
render() {
r... |
src/components/timechart.js | bastoche/issue-vis | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
DiscreteColorLegend,
FlexibleXYPlot,
HorizontalGridLines,
VerticalBarSeries,
VerticalGridLines,
XAxis,
YAxis,
} from 'react-vis';
export class TimeChart extends Component {
render() {
const style = { marginBottom... |
src/js/components/icons/base/Optimize.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/common/Tooltip.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from '@wowanalyzer/react-tooltip-lite';
import './Tooltip.scss';
export default class Tooltip extends React.Component {
static propTypes = {
/**
* REQUIRED: Content of the tooltip
*/
content: PropTypes.node.isRequir... |
src/Containers/Top10/TableTop/TableTop.js | rahulp959/airstats.web | import React from 'react'
export default class TableTop extends React.Component {
render () {
console.dir(this.props.data)
return (
<table className='tableTop'>
<tbody>
{this.props.data.map((apt, i) => {
return (
<tr key={i}>
<td>{apt.get('ica... |
examples/counter/index.js | usufruct/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
admin/src/components/ListHeader.js | developer-prosenjit/keystone | import classNames from 'classnames';
import React from 'react';
import utils from '../utils.js';
import { Button, Dropdown, FormInput, InputGroup, Pagination } from 'elemental';
import CreateForm from './CreateForm';
import ListColumnsForm from './ListColumnsForm';
import ListDownloadForm from './ListDownloadForm';
im... |
ee/client/omnichannel/additionalForms/MaxChatsPerAgentDisplay.js | iiet/iiet-chat | import React from 'react';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import UserInfo from '../../../../client/components/basic/UserInfo';
const MaxChatsPerAgentDisplay = ({ data: { livechat: { maxNumberSimultaneousChat = '' } = {} } = {} }) => {
const t = useTranslation();
re... |
src/ModalHeader.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
import createChainedFunction from './utils/createChainedFunction';
// TODO: `aria-label` should be `closeLabel`.
const propTypes = {
/**
* The 'aria-label' attribute provi... |
src/svg-icons/image/photo-size-select-actual.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectActual = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/>
</SvgIcon>
);
ImagePhotoSiz... |
packages/react-esc-resolver/src/client.js | TriPSs/react-esc | import React from 'react'
import PropTypes from 'prop-types'
import { capitalize, hasOwnProperty, canUseDom } from '../../shared'
import Resolver from './Resolver'
export default (prop, Loader, promise = null) => {
const loadProps = (typeof prop === 'string') ? [prop] : prop
const names = loadProps.map(capitaliz... |
src/GatewayProvider.js | npbee/react-gateway | import React from 'react';
import GatewayRegistry from './GatewayRegistry';
export default class GatewayProvider extends React.Component {
static childContextTypes = {
gatewayRegistry: React.PropTypes.instanceOf(GatewayRegistry).isRequired
};
getChildContext() {
return {
gatewayRegistry: this.gate... |
react/features/base/toolbox/components/web/OverflowMenuItem.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Icon } from '../../../icons';
import { Tooltip } from '../../../tooltip';
/**
* The type of the React {@code Component} props of {@link OverflowMenuItem}.
*/
type Props = {
/**
* A succinct description of what the item does. Used by accessibilit... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | luwei2012/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
src/svg-icons/communication/phonelink-setup.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
src/routes/error/ErrorPage.js | kirsty-forrester/react-photo-collage | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
lib/ui/components/common/Dropzone.js | 500tech/bdsm | import React from 'react';
import styled from 'styled-components';
import { Div } from 'ui/components/common/base';
const Dropzone = styled(Div)`
position: absolute;
border: 2px solid ${(props) => props.theme.blue};
display: flex;
align-items: center;
justify-content: center;
top: ${(props) => props.overla... |
src/public/components/tree/branch/index.js | Lunik/tcloud | import React from 'react'
export default class Branch extends React.Component {
constructor (props) {
super(props)
}
render () {
return (
<div className="branch" id={this.props.id} style={style.branch}>
<span className="arrow" style={style.arrow}>/</span>
<a href={this.props.url} >... |
src/components/Bubble.js | thipokKub/Clique-WebFront-Personnal | import React, { Component } from 'react';
import './style/bubble.css'
const number_of_child = 5;
//23118902
class Bubble extends Component {
constructor(props) {
super(props);
this.state = {
isClick: false,
}
}
onClickHandler() {
if(!this.state.isClick) { //i... |
src/components/layout.js | jeffreykwan/jeffreykwan.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { StaticQuery, graphql } from 'gatsby';
import Header from './header/';
// import './layout.css';
const Layout = ({ children, data }) => (
<StaticQuery
query={graphql`
query SiteTitleQuery {
si... |
src/app.js | crmaxx/netscanner-ui | import React from 'react';
import Router from 'react-router';
import AppRoutes from './routes';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for React Developer Tools
window.React = React;
injectTapEventPlugin();
Router
// Runs the router, similiar to the Router.run method. You can think of... |
src/app.js | mmrath/react-app | 'use strict';
import 'babel/polyfill';
import React from 'react';
import Router from 'react-router';
import Notifications from './components/Notifications';
import User from './components/User';
import Layout from './components/Layout';
function run() {
var Route = Router.Route,
DefaultRoute = Router.DefaultR... |
shared/utils/asyncComponent.js | AndrewGibson27/react-fetch-boilerplate | /**
https://gist.github.com/lencioni/643a78712337d255f5c031bfc81ca4cf
https://gist.github.com/acdlite/a68433004f9d6b4cbc83b5cc3990c194
*/
import React, { Component } from 'react';
const asyncComponent = (getComponent => (
class AsyncComponent extends Component {
constructor(props) {
super(props);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.