path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/material-ui/src/Select/SelectInput.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import keycode from 'keycode';
import warning from 'warning';
import ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown';
import Menu from '../Menu/Menu';
import { isFilled } from '../Input/Input';
/**
* @igno... |
frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieTitle.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Label from 'Components/Label';
import { kinds } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import styles from './ImportMovieTitle.css';
function ImportMovieTitle(props) {
const {
title,
year,
studio,
... |
src/components/App/setViewport.js | ORESoftware/react-starter-kit | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import { ... |
src/server.js | gabrielseco/potterapi | import React from 'react';
import ReactDOM from 'react-dom/server';
import Promise from 'bluebird';
import express from 'express';
import bodyParser from 'body-parser';
import graphql from 'express-graphql';
import dotenv from 'dotenv';
import fs from 'fs';
import {
MongoClient,
ObjectId
} from 'mongodb';
import s... |
example/src/components/1-ScopedSelectors/ScopedSelectorsDemo.js | KenPowers/css-modules-electron | import React, { Component } from 'react';
import ScopedSelectors from './ScopedSelectors';
import Snippet from '../shared/Snippet/Snippet';
import readFile from '../shared/readFile';
const js = readFile(__dirname, 'ScopedSelectors.js');
const css = readFile(__dirname, 'ScopedSelectors.css');
export d... |
src/components/Header/Header.js | benbs/Office-Player | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import withStyle... |
app/javascript/mastodon/features/account/components/action_bar.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { Link } from 'react-router-dom';
import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } fr... |
src/components/Rights.js | chtefi/golb | import React from 'react'
import { css } from 'react-emotion'
import Color from 'color'
const color = Color('rgb(2, 136, 209)') // #7289da')
const light = color.string()
const dark = color.darken(0.1).string()
export default ({}) => (
<div
className={css`
text-align: center;
padding: 30px;
bac... |
src/components/common/Select.js | abhisharkjangir/nasa | import React from 'react';
import PropTypes from 'prop-types';
const SelectDropdown = ({name,label,onChange,placeholder,value,options}) => {
return (
<div className="form-group">
{label && <label>{label}</label>}
<select className = "form-control selectdropdown" value={value} placeholder={placeholder... |
src/applications/static-pages/events/index.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
// Related imports.
import App from './components/App';
export default (store, widgetType) => {
const root = document.querySelector(`[data-widget-type="${widgetType}"]`);
if (root) {
// Derive... |
ui/src/containers/VisualiseForm/StatementsForm/AxesEditor/ColumnAxesEditor.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import { connect } from 'react-redux';
import { VISUALISE_AXES_PREFIX } from 'lib/constants/visualise';
import { updateModel } from 'ui/redux/modules/models';
import DebounceInput from 'react-debounce-input';
import Definiti... |
src/svg-icons/action/copyright.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
src/svg-icons/communication/location-off.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6.5c1.38 0 2.5 1.12 2.5 2.5 0 .74-.33 1.39-.83 1.85l3.63 3.63c.98-1.86 1.7-3.8 1.7-5.48 0-3.87-3.13-7-7-7-1.98 0-3.76.83-5.04 2.15l3.19 ... |
examples/with-scss-options/src/server.js | jaredpalmer/razzle | import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const cssLinksFromAssets = (assets, entrypoint) => {
return assets[entrypoint] ? assets[entrypoint].css ?
assets[entrypo... |
src/mention/components/MentionsDebugger.js | Kindling/react-tinymce-mention | import React from 'react';
import { connect } from 'react-redux';
export class MentionsDebugger extends React.Component {
render() {
const { mentions, dataSource } = this.props;
return (
<div>
<h2><strong>Current Mentions</strong></h2>
<ul>
{ mentions.map((mention, index) => ... |
tests/new_react/state6.js | gabelevi/flow | // @flow
import React from 'react';
const any: any = null;
type State = {foo: number, bar: number};
type StateUpdater1 = {(State): $Shape<State>};
type StateUpdater2 = {(State): $Shape<State>, foo: number, bar: number};
type StateUpdater3 = {(number): number, foo: number, bar: number};
class MyComponent extends Re... |
frontend/src/components/frame/components/DrawerContent/components/Button.js | jf248/scrape-the-plate | import React from 'react';
import PropTypes from 'prop-types';
import * as PowerPlug from 'lib/react-powerplug';
import { RoutePush } from 'controllers/route-push';
import ButtonPres from './ButtonPres';
Button.propTypes = {
to: PropTypes.string.isRequired,
};
function Button(props) {
const { to, ...rest } = pr... |
node_modules/exponent/src/Components/AppLoading.ios.js | Helena-High/school-app | 'use strict';
import React from 'react';
import {
NativeModules,
requireNativeComponent,
} from 'react-native';
const NativeAppLoading = requireNativeComponent('ExponentAppLoading', null);
export default class AppLoading extends React.Component {
componentWillUnmount() {
NativeModules.ExponentAppLoadingMa... |
examples/demos/customHeader.js | elationemr/react-big-calendar | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
class MyOtherNestedComponent extends React.Component {
render() {
return <div>NESTED COMPONENT</div>
}
}
class MyCustomHeader extends React.Component {
render() {
const { label } = this.props
re... |
app/components/settings/SettingsAvgChartLatitudes.js | sheldhur/Vector | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Popconfirm, Icon } from 'antd';
import Grid from '../grid/Grid';
class SettingsAvgChartLines extends Component {
handleCellChange = (field, index, value, afterAction) => {
this.props.onCellChange(field, index... |
src/components/sub-components/Font/Font.js | theIYD/source-me | import React, { Component } from 'react';
import axios from 'axios';
class Font extends React.Component {
constructor(props) {
super(props);
this.state = {
data: [],
name: ''
};
this.handleChangeOption = this.handleChangeOption.bind(this);
}
component... |
src/routes.js | Freizeitler/reactor | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
React Nanodegree /P3 - Mobile Flashcards/src/pages/home/Container.js | manishbisht/Udacity | import React from 'react';
import {View, Text, TouchableOpacity, ScrollView, SafeAreaView} from 'react-native';
const HomeContainer = ({appData = null, navigation}) => {
const renderCards = () => {
return Object.keys(appData).map((deckId) => {
return (
<TouchableOpacity key={dec... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/index.js | patel344/Mr.Miner | import React from 'react'
import ReactDOM from 'react-dom'
import createSagaMiddleware from 'redux-saga'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import rootReducer from './reducers/index.js'
import rootSaga from './sagas/index.js'
import App from './containers/app.js'... |
src/components/withViewport.js | Rico75/ricardoswebconsulting-react-php | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react'; // eslint-disabl... |
packages/material-ui-icons/src/QueryBuilder.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z" /></g>
, 'Que... |
app/assets/javascripts/barcode.js | thinhngodinh/koa2-react | import React from 'react';
import ReactDOM from 'react-dom';
import Barcode from './components/barcode.jsx';
import { Provider } from 'react-redux';
import createStore from './store/createStore';
const barcodeStore = window.__PRELOADED_STATE__.barcode;
const csrf = window.csrfToken;
let store = createStore(barcodeSto... |
src/svg-icons/image/picture-as-pdf.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePictureAsPdf = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-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-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ... |
src/svg-icons/av/forward-5.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward5 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.... |
src/interface/report/EventParser.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ExtendableError from 'es6-error';
import sleep from 'common/sleep';
import { captureException } from 'common/errorLogger';
import EventEmitter from 'parser/core/modules/EventEmitter';
const BENCHMARK = true;
// Picking a correct batch duration is h... |
src/components/Footer.js | aspsoluciones/mcw-client | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer>
miClinicaWeb ®. Todos los derechos reservados
</footer>
)
}
}
export default Footer;
|
src/containers/viewer/MailsViewer/index.js | mydearxym/mastani | /*
*
* MailsViewer
*
*/
import React from 'react'
import { ICON_CMD } from '@/config'
import { buildLog } from '@/utils/logger'
import { pluggedIn } from '@/utils/mobx'
import TabSelector from '@/widgets/TabSelector'
import MailLists from './MailLists'
import { useInit, selectChange } from './logic'
/* eslint-... |
app/javascript/pwdlocker/views/Passwords.js | rubydonkey/pwdlocker.com | /**
* Created by zarko on 7/23/17.
*/
'use strict';
import React from 'react';
import Password from './Password';
function Passwords(props) {
const filteredPasswords = props.passwords.filter((password) => {
return password.data.title.toLowerCase().indexOf(props.searchString.toLowerCase()) !== -1;
... |
stories/Spinner.js | City-Bus-Stops/search-route | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Root from '../src/components/Root/Root';
import Dashboard from '../src/components/Dashboard/Dashboard';
storiesOf('Spinner', module)
.add('Active Spinner', () => (
<div>
<Root
IsSpinnerActive
location={{
... |
src/js/components/Home/partial/DigitalModernization.js | ajainsyn/project | import React from 'react';
import digitalModernization from '../../../../assets/images/digitalModernization.png';
const DigitalModernization = () => (
<section className="section bg-blue" id="digitalModernization">
<div className="container">
<div className="row align-items-center">
<div cla... |
docs/src/pages/demos/selection-controls/Checkboxes.js | AndriusBil/material-ui | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import green from 'material-ui/colors/green';
import { FormGroup, FormControlLabel } from 'material-ui/Form';
import Checkbox from 'material-ui/Che... |
src/components/home.js | eh3rrera/react-horizon | import React, { Component } from 'react';
export default class Home extends Component {
render() {
return (
<h1>Home</h1>
);
}
} |
src/svg-icons/av/hearing.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
test/development/basic-basepath/hmr/pages/hmr/style-dynamic-component.js | JeromeFitz/next.js | import React from 'react'
import dynamic from 'next/dynamic'
const HmrDynamic = dynamic(import('../../components/hmr/dynamic'))
export default () => {
return <HmrDynamic />
}
|
src/components/cakephp/plain/CakephpPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CakephpPlain.svg'
/** CakephpPlain */
function CakephpPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'CakephpPlain' + ' ' + className... |
src/panel/Panel.js | HarvestProfit/harvest-profit-ui | import React from 'react';
import PropTypes from 'prop-types';
/**
* Renders a panel.
*/
const Panel = props => (
<div className={`panel v2 ${props.className}`} style={props.style}>
{props.children}
</div>
);
Panel.propTypes = {
/** Additional class names to add to the panel */
className: PropTypes.stri... |
app/scripts/modules/core/src/pipeline/config/stages/stage.module.js | sgarlick987/deck | 'use strict';
import { module } from 'angular';
import React from 'react';
import ReactDOM from 'react-dom';
import { defaultsDeep, extend, omit } from 'lodash';
import { AccountService } from 'core/account/AccountService';
import { API } from 'core/api';
import { BASE_EXECUTION_DETAILS_CTRL } from './common/baseExec... |
packages/create-razzle-app/templates/default/src/server.js | jaredpalmer/razzle | import App from './App';
import React from 'react';
import { StaticRouter } from 'react-router-dom';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const cssLinksFromAssets = (assets, entrypoint) => {
return assets[entryp... |
webapp/app/components/Logs/Filters/NumberLogs.js | EIP-SAM/SAM-Solution-Server | //
// Component displaying number of logs filter
//
import React from 'react';
import {
FormGroup,
ControlLabel,
FormControl,
Label,
} from 'react-bootstrap';
/* eslint-disable react/prefer-stateless-function */
export default class NumberLogs extends React.Component {
constructor(props) {
super(props);... |
app/jsx/assignments_2/teacher/components/Editables/SelectableText.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
fields/types/html/HtmlField.js | concoursbyappointment/keystoneRedux | import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from '../../../admin/client/App/elemental';
import evalDependsOn from '../../utils/evalDependsOn';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId () {
return 'keystone-h... |
src/components/cv/info.js | ateixeira/andreteixeira.info | import React from 'react';
import { Table, Grid, Row, Col, Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
module.exports = React.createClass({
// RENDER
render: function() {
return (
<header className="info">
<div className="name wrap... |
src/client/statics/Error404.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { withRouter, Link } from 'react-router-dom';
import { injectIntl, FormattedMessage } from 'react-intl';
import './ErrorPage.less';
const Error404 = ({ intl, staticContext }) => {
if (staticContext) {
staticC... |
src/svg-icons/av/repeat-one.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
packages/material-ui-icons/src/SettingsInputHdmi.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsInputHdmi = props =>
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z" />
</SvgIcon>;
SettingsInputHdmi = pure(... |
client/admin/federationDashboard/ServersSection.js | iiet/iiet-chat | import { Box, Throbber } from '@rocket.chat/fuselage';
import React from 'react';
import { usePolledMethodData, AsyncState } from '../../contexts/ServerContext';
function ServersSection() {
const [serversData, serversStatus] = usePolledMethodData('federation:getServers', [], 10000);
if (serversStatus === AsyncStat... |
src/Parser/RestorationShaman/Modules/Features/AlwaysBeCasting.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import CoreAlwaysBeCastingHealing from 'Parser/Core/Modules/AlwaysBeCastingHealing';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
const HEALING_ABILI... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displaySensitiveMedia } from '../../../initial_state';
export default class MediaItem extends Immut... |
src/alluminate/containers/Dashboard/Dashboard.js | cellva/alluminate-temp-setup | import React, { Component } from 'react';
import Header from './../Header/Header';
// const style = require('./Dashboard.scss');
export default class Dashboard extends Component {
render() {
return (
<div>
<Header/>
</div>
);
}
}
|
src/auth/screens/login.screen.js | housseindjirdeh/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Dimensions,
Linking,
View,
StyleSheet,
Image,
ImageBackground,
Platform,
} from 'react-native';
import { Button } from 'react-native-elements';
import SafariView from 'react-native-safari-view';
import queryString fr... |
src/index.js | kevgathuku/torrent-dbx | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import 'bulma/css/bulma.css';
import App from './App';
import { store } from './reducer';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
store.subscribe(()... |
src/js/components/icons/base/DocumentZip.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/PerfViewJS/spa/src/components/Callers.js | vancem/perfview | import React, { Component } from 'react';
import { TreeNode } from './TreeNode'
import { StackViewerFilter } from './StackViewerFilter'
import { Link } from 'react-router-dom'
import base64url from 'base64url'
import './Callers.css';
export class Callers extends Component {
static displayName = Callers.name;
... |
src/entypo/RaftWithCircle.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--RaftWithCircle';
let EntypoRaftWithCircle = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,0.3999634c-5.3019409,0-9.5999756,4.2980957-9.5999756,9.6000366S4.6980591,19.59997... |
examples/js/keyboard-nav/nav-with-expand-table.js | prajapati-parth/react-bootstrap-table | /* 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/components/products/Form.js | restoko/restoko-desktop-app | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import NotificationSystem from 'react-notification-system';
export default class Form extends Component {
state = {
name: null,
description: null,
category: 1,
price: null
};
... |
web/src/components/recipe/ServingsSelector.js | Takaitra/RecipeRunt | import React from 'react';
class ServingsSelector extends React.Component {
constructor(props) {
super(props);
this.state = {servings: this.props.servings};
this.handleChange = this.handleChange.bind(this);
}
handleChange(event) {
this.setState({servings: event.target.value});
}
render() {... |
src/TopBar.js | SkyJedi/SWRPG-Web-Character-Creator | import React, { Component } from 'react';
import * as firebase from 'firebase';
import './index.css';
var channel = window.location.pathname.slice(1).toLowerCase();
import { calcStat } from "./functions/utils";
import { build } from'./functions/MasterParser';
class TopBar extends Component {
constructor(props) {
... |
packages/stockflux-news/src/components/news-item/NewsItem.js | ScottLogic/StockFlux | import React from 'react';
import { format, isToday } from 'date-fns';
import * as PropTypes from 'prop-types';
import './NewsItem.css';
const handleNewsItemClick = link => {
window.fin.System.openUrlWithBrowser(link);
};
const articleDate = unformattedDate => {
const date = new Date(unformattedDate);
return !... |
src/svg-icons/action/search.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/utils/ValidComponentChildren.js | egauci/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
clients/tests/unit/render/Mocks/mockUtils.js | Desertsnowman/Caldera-Forms | //https://gist.github.com/josephhanson/372b44f93472f9c5a2d025d40e7bb4cc
function MockFile() {
};
import React from 'react';
MockFile.prototype.create = function (name, size, mimeType) {
name = name || "mock.txt";
size = size || 1024;
mimeType = mimeType || 'plain/txt';
function range(count) {
var output = "";
... |
admin/client/components/ListFiltersAdd.js | Redmart/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Transition from 'react-addons-css-transition-group';
import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from './Popout';
import PopoutList... |
0013-passing-props/app/src/index.js | davidwparker/programmingtil-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/DatePickerInput.js | buildo/rc-datepicker | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import t from 'tcomb';
import { props } from 'tcomb-react';
import omit from 'lodash/omit';
import DatePicker from './DatePicker';
import { Value } from './utils/model';
import { format, valueLink, skinnable } from './utils';
impo... |
src/svg-icons/device/signal-wifi-1-bar.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01... |
example/Pages/IndexPage.react.js | CodingCulture/pico-router | import React from 'react';
/**
* Example page, there is nothing specific here
*/
class IndexPage extends React.Component
{
constructor(props)
{
super(props);
console.log(this.props.data);
console.log(this.props.varOne);
console.log(this.props.varTwo);
}
render()
... |
modules/pages/client/components/Contribute.component.js | Trustroots/trustroots | import React from 'react';
import Board from '@/modules/core/client/components/Board.js';
import { Trans, useTranslation } from 'react-i18next';
export default function Contribute() {
const { t } = useTranslation('pages');
return (
<>
<Board names="forestpath">
<div className="container">
... |
admin/client/App/components/Navigation/Mobile/ListItem.js | giovanniRodighiero/cms | /**
* A list item of the mobile navigation
*/
import React from 'react';
import { Link } from 'react-router';
const MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRe... |
webui/components/missions/FormMission.js | stiftungswo/izivi_relaunch | import React from 'react';
import Head from 'next/head';
import { Grid, Segment, Header, Dimmer, Loader } from 'semantic-ui-react';
import AutoField from 'uniforms-semantic/AutoField';
import SubmitField from 'uniforms-semantic/SubmitField';
import ErrorsField from 'uniforms-semantic/ErrorsField';
import SelectField fr... |
src/svg-icons/notification/airline-seat-legroom-extra.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
jenkins-design-language/src/js/components/material-ui/svg-icons/device/bluetooth-disabled.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29L20 18.59 5.41 4zM13 18.17v-3.76l... |
app/javascript/mastodon/features/account_gallery/index.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { lookupAccount, fetchAccount } from 'mastodon/actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingI... |
src/index.js | hollymhofer/ReduxForms | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import PostsIndex from './components/posts_index';
import Pos... |
src/containers/profile/ProfileLoginScreen.js | jfilter/frag-den-staat-app | import { WebView } from 'react-native-webview';
import React, { Component } from 'react';
import { requestAuthToken } from '../../utils/oauth';
class ProfilLoginScreen extends Component {
render() {
return <WebView source={{ uri: requestAuthToken }} />;
}
}
export default ProfilLoginScreen;
|
client/Components/ComponentParams/ParamSelector/ParamSelectorJSON/index.js | myheritage/UiZoo.js | import React from 'react';
import _ from 'underscore';
import TextField from '../../../UI/TextField';
import tryToParseJson from './tryToParseJson';
const DEBOUNCE_AMOUNT = 150;
/**
* @description
* open input for JSON/string values. will try to parse as JSON and fallback to string.
*
* @param {any} [selectedVa... |
src/js/components/icons/base/PlatformHorton.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... |
app/components/topNavigation/topNavigation.js | Habi86/mimo-bac2 | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
} from 'react-native';
/* ------------ Selfbuilt Components --------- */
import Config from 'friedensflotte/app/config/config';
import NavigationBar from 'react-native-navbar';
export default class TopNavigatio... |
jenkins-design-language/src/js/components/material-ui/svg-icons/device/screen-lock-landscape.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1... |
src/components/search_bar.js | choslu/highly_intentional_website | //Basic imports
import React, { Component } from 'react';
//Search bar
class SearchBar extends Component {
render() {
return <input />;
}
}
export default SearchBar;
|
examples/hello-webpack/src/Hello.js | FourSS/refar | import React from 'react'
import { createContainer } from '../../../lib'
import { Model } from 'falcor'
const $pathValue = Model.pathValue
class Hello extends React.Component { // a little worker
static propTypes = {
hello: React.PropTypes.string,
name: React.PropTypes.string,
updateName$: React.PropTyp... |
src/svg-icons/maps/map.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMap = (props) => (
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ... |
pootle/static/js/browser/components/TopContributorsTable.js | JohnnyKing94/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import Avatar from 'components... |
tosort/2016/jspm/lib_react_102/components/fab/index.js | Offirmo/html_tests | import React from 'react'
import FloatingActionButton from 'material-ui/lib/floating-action-button'
import ContentAdd from 'material-ui/lib/svg-icons/content/add'
import './styles.css!'
////////////////////////////////////
const FAB = ({
onClick
}) => (
<div id="fab">
<FloatingActionButton onClick={onClick}>
... |
app/containers/ProfileText/components/education/utils.js | ledminh/ledminh-home | import React from 'react';
import H2 from 'containers/ProfileText/h2';
import Time from 'containers/ProfileText/time';
import Degree from './degree';
export const renderEducation = (data) => data.map((edu, i) => (
<div key={i}>
... |
app/containers/LanguageProvider/index.js | Cherchercher/Wedding-Llama | /*
*
* 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... |
ui/src/components/onboarding/Step2AdminCreated.js | damianmoore/photo-manager | import React from 'react'
import { useForm } from 'react-hook-form'
import Modal from './../Modal'
import ModalForm from '../ModalForm'
const Step2AdminCreated = ({ hasPrevious, history }) => {
const { handleSubmit, formState } = useForm()
return (
<Modal
height={700}
topAccent={true}
allow... |
src/components/ValueEditorModal/ValueEditor.js | fedebertolini/json-editor | import React, { Component } from 'react';
import { Form, Input } from 'semantic-ui-react';
import throttle from 'lodash/throttle';
import TypeSelector from './TypeSelector';
import ValueInput from './ValueInput';
import { getValueType, getDefaultValue } from '../../utils/valueTypes';
class ValueEditor extends Componen... |
UI/Buttons/ButtonRecord.js | Datasilk/Dedicate | import React from 'react';
import { View, TouchableOpacity} from 'react-native';
import {G, Circle, Path} from 'react-native-svg';
import SvgIcon from 'ui/SvgIcon';
import AppStyles from 'dedicate/AppStyles';
export default class ButtonRecord extends React.Component {
constructor(props){
super(props);
... |
fields/types/relationship/RelationshipFilter.js | snowkeeper/keystone | import _ from 'lodash';
import async from 'async';
import React from 'react';
import { findDOMNode } from 'react-dom';
import xhr from 'xhr';
import { FormField, FormInput, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ ... |
src/Controls.js | ship-components/ship-components-tag-input | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Immutable from 'immutable';
import Tag from './Tag';
import Loader from './Loader';
import css from './Controls.css';
export default class SelectControls extends React.Component {
constructor(props) {
sup... |
src/components/Bismillah/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import * as customPropTypes from 'customPropTypes';
const Bismillah = ({ chapter }) => {
if (chapter && chapter.bismillahPre) {
return (
<div
id="bismillah"
className="bismillah text-center word-font"
style={{ textAlign: 'center' }}
title="بِسْمِ ا... |
server/sonar-web/src/main/js/apps/overview/main/CodeSmells.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
src/components/app/app.component.js | GeoTIFF/geotiff.io | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import MapContainer from '../map-container';
import Menu from '../menu';
import Load from '../tools/load';
import Identify from '../tools/identify';
import Download from '../tools/download';
import Histogram from '../tools/histogram';
import M... |
node_modules/react-transition-group/esm/ReplaceTransition.js | pcclarke/civ-techs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import PropTypes from 'prop-types';
import React from 'react';
import { findDOMNode } from 'react-dom';
import TransitionGroup from './TransitionGro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.