path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/app.js | RobertHebel/ToDoList | import React from 'react';
import TasksTable from './task/tasksTable';
import TaskDetails from './task/taskDetails';
import * as taskActions from '../actions/taskActions';
import NewTaskForm from './task/taskForm';
import TaskFilters from './task/taskFilters';
import Footer from './footer';
import {connect} from 'reac... |
shorterly/src/components/shortener/details.js | daedelus-j/shorterly | 'use strict';
import React from 'react';
import cx from 'classnames';
import copy from 'copy-to-clipboard';
import { connect } from 'react-redux';
import {
updateDeviceUrl, updateForm,
validateDetailsField,
updateActiveDevice,
showDetailsEditForm,
closeDetailsEditForm,
copiedUrl,
validateField,
} from '.... |
demos/demo/src/components/Notification/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
export default connect(
{
dismiss: signal`app.dismissNotificationClicked`,
error: state`app.$error`,
t: translations
},
function N... |
app/components/ToggleOption/index.js | Third9/mark-one | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
react/comments/src/CommentBox.js | sabertazimi/st-proj | import React from 'react';
import CommentList from './CommentList';
import CommentForm from './CommentForm';
export default class CommentBox extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
data: [
{
id: 1... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/IconMenu/ExampleScrollable.js | pbogdan/react-flux-mui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import MapsPlace from 'material-ui/svg-icons/maps/place';
/**
* The `maxHeight` property limits the height of the menu, above which it will be scrollabl... |
public/src/redux/todos/components/App.js | codelegant/react-action | /**
* Author: 赖传峰
* Email: laichuanfeng@hotmail.com
* Homepage: http://laichuanfeng.com/
* Date: 2016/7/18
*/
import React from 'react';
import Footer from './Footer';
import AddTodo from '../containers/AddTodo';
import VisibleTodoList from '../containers/VisibleTodoList';
const App = () => (
<div ref={() => co... |
src/components/Elements/IFrame/index.js | jmikrut/keen-2017 | import React from 'react';
import './IFrame.css';
export default (props) => {
const className = props.className ? `iframe ${props.className}` : 'iframe';
return (
<div className={className}>
<iframe width="16" height="9" title={props.title} src={props.src} frameBorder="0" allowFullScreen />
</div>
);
}
|
packages/icons/src/md/device/Bluetooth.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBluetooth(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M36.41 15.41L27.83 24l8.58 8.59L25 44h-2V28.83L13.83 38 11 35.17 22.17 24 11 12.83 13.83 10 23 19.17V4h2l11.41 11.41zM27 11.66v7.51l3.76-3.75L27 11... |
src-changed/Watch.js | aryalprakash/omgyoutube | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Router, Route, Link, browserHistory } from 'react-router';
import {getVideoData, getChannelVideos, getRelatedVideos} from './actions/video.js'
import Header from './Header.js'
import Loader from './Loader.js'
class Watch extends... |
examples/huge-apps/routes/Profile/components/Profile.js | arusakov/react-router | import React from 'react';
class Profile extends React.Component {
render () {
return (
<div>
<h2>Profile</h2>
</div>
);
}
}
export default Profile;
|
client/admin/permissions/NewRolePage.js | iiet/iiet-chat | import React from 'react';
import { Box, FieldGroup, ButtonGroup, Button, Margins } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import RoleForm from './RoleForm';
import { useForm } from '../../hooks/useForm';
import { useTranslation } from '../../contexts/Translatio... |
stories/Carousel.stories.js | reactstrap/reactstrap | import React from 'react';
export default {
title: 'Components/Carousel',
parameters: {
docs: {
description: {
component: `
[Bootstrap Carousel](https://getbootstrap.com/docs/5.1/components/carousel/)
A slideshow component for cycling through elements, images, or slides of text — like a ca... |
stories/RichTextArea/index.js | nirhart/wix-style-react | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample';
import Markdown from '../utils/Components/Markdown';
import ReadMe from '../../src/RichTextArea/README.md';
import RichTextAreaExample from './RichTextAreaExample';
... |
app/components/BottomIndicator.js | yandan66/react-native-maicai | import React from 'react';
import {View, Image, StyleSheet} from 'react-native';
export default class BottomIndicator extends React.Component {
constructor(props) {
super(props)
}
render() {
const isShow = this.props.show;
return (isShow
? <View style={styles.Indicator}>
<Image style... |
src/InputBase.js | egauci/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return this.refs.input;
}
getValue() {
if (this.props.type === 'static') {
return this.props.valu... |
src/Form.js | tanbo800/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
import { forEach } from './utils/objects'
import FormControl from './FormControl'
import FormSubmit from './FormSubmit'
import { requireCss } from './themes'
requireCss('form')
export default class Form extends React.Component {
static disp... |
src/index.js | WangCao/react-blog | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import Router from './router/Route.jsx'
// css
import './style/base.less';
import './style/header.less';
ReactDOM.render(<Router />, document.getElementById('root'));
reg... |
web/src/js/components/Widget/EditWidgetChip.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import Measure from 'react-measure'
import Paper from 'material-ui/Paper'
import DeleteIcon from 'material-ui/svg-icons/navigation/cancel'
import CheckCircleIcon from 'material-ui/svg-icons/action/check-circle'
import LockClosedIcon from 'material-ui/svg-icon... |
src/components/Home/index.js | TerryCapan/twitchBot | import React from 'react';
import DocumentMeta from 'react-document-meta';
import { TopChannels } from '../../containers/TopChannels';
import { styles } from './styles.scss';
const metaData = {
title: 'Chatson: Watson Chat Analysis',
description: 'Get a visual representation of a chat channel\'s activity and group... |
example/src/components/Row.js | coteries/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, View, Text, TouchableHighlight, Platform} from 'react-native';
function Row({title, onPress, platform, testID}) {
if (platform && platform !== Platform.OS) {
return <View />;
}
return (
<TouchableHighlight
onPress={... |
src/components/photoshop/line/PhotoshopLine.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './PhotoshopLine.svg'
/** PhotoshopLine */
function PhotoshopLine({ width, height, className }) {
return (
<SVGDeviconInline
className={'PhotoshopLine' + ' ' + class... |
src/frontend/screens/not-found.js | Koleso/invoicer | import React from 'react';
// Components
import { Grid, GridColumn } from 'components/Grid';
import Screen from 'components/Screen';
import Box from 'components/Box';
import EmptyState from 'components/EmptyState';
const NotFound = () => (
<Screen title="Stránka nenalezena">
<Grid>
<GridColumn>
<Box>
<... |
app/containers/FormDialog.js | river-lee/react-group | import React from 'react';
import Model from '../components/model';
import Button from '../components/button';
import YmtApi from 'YmtApi';
const searchParams = YmtApi.utils.getUrlObj();
let FormDialog = React.createClass({
getInitialState(){
return {
msgTxt:'',
isSendMsgCode:true
}
},
//在该函数中调用 this.s... |
modules/Router.js | ArmendGashi/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
app/index.js | datic15/wave | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Root from "./components/Root.jsx";
injectTapEventPlugin();
ReactDOM.render(
<Root />,
document.getElementById('root')
);
|
Examples/UIExplorer/js/ActivityIndicatorExample.js | DanielMSchmidt/react-native | /**
* Copyright (c) 2013-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.
*
* The examp... |
src/components/SearchInput.js | telpalbrox/EliteTime | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class SearchInput extends Component {
constructor() {
super();
this.search = this.search.bind(this);
}
componentDidMount() {
this.refs.search.value = this.props.query || '';
}
rend... |
examples/real-world/index.js | timuric/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
app/components/ItemOnLineNewsView.js | yanbober/RNPolymerPo | /*
* MIT License
*
* Copyright (c) 2016 yanbo
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... |
imports/ui/components/personalInfo/components/DisabilityStatus.js | AdmitHub/ScholarFisher | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Collapse from 'react-collapse';
import {
selectDisabilityStatus,
selectDisabilityType,
} from '../../../../redux/actions/personalInfo';
class DisabilityStatus extends Component {
constructor(props) {
super(props);
thi... |
src/components/Tabs.js | henrytao-me/react-native-mdcore | import React from 'react'
import { TouchableWithoutFeedback, View } from 'react-native'
import PropTypes from './PropTypes'
import PureComponent from './PureComponent'
import StyleSheet from './StyleSheet'
export default class Tabs extends PureComponent {
static contextTypes = {
theme: PropTypes.any
}
sta... |
src/icons/CameraEnhanceIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CameraEnhanceIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15... |
internals/templates/homePage/homePage.js | StrikeForceZero/react-typescript-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/components/layout.js | JoshBarr/joshbarr.github.io | import React from 'react'
import PropTypes from 'prop-types'
import { StaticQuery, graphql } from 'gatsby'
import Helmet from 'react-helmet'
import Header from './header'
import './layout.css'
const Layout = ({ children, theme = 'theme--light' }) => (
<StaticQuery
query={graphql`
query SiteTitleQuery {
... |
app/javascript/mastodon/components/icon_with_badge.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
const formatNumber = num => num > 40 ? '40+' : num;
const IconWithBadge = ({ id, count, issueBadge, className }) => (
<i className='icon-with-badge'>
<Icon id={id} fixedWidth className={className} />
... |
src/decorators/withViewport.js | HoomanGriz/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/mui/field/UrlField.js | marmelab/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import pure from 'recompose/pure';
const UrlField = ({ source, record = {}, elStyle }) => (
<a href={get(record, source)} style={elStyle}>
{get(record, source)}
</a>
);
UrlField.propTypes = {
addLabel: Pro... |
webvis/src/index.js | kacperzuk/mldrive | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux'
import { batchedSubscribe } from 'redux-batched-subscribe';
import debounce from 'lodash.debounce';
import { Provider } from 'react-redux'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTap... |
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js | barakmitz/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
const getStyles = () => {
return {
root: {
width: '100%',
maxWidth: 700,
margin: 'auto',
}... |
src/main.js | leshek-pawlak/itenteges | import React from 'react'
import ReactDOM from 'react-dom'
import AppContainer from './containers/AppContainer'
// ========================================================
// Init
// ========================================================
const initialState = window.___INITIAL_STATE__
// Render Setup
// ============... |
installer/frontend/form.js | yifan-gu/tectonic-installer | import _ from 'lodash';
import React from 'react';
import { connect } from 'react-redux';
import { dispatch as dispatch_ } from './store';
import { configActions, registerForm } from './actions';
import { toError, toIgnore, toAsyncError, toExtraData, toInFly, toExtraDataInFly, toExtraDataError } from './utils';
import... |
src/components/FormField.js | michaelgodshall/fullstack-challenge-frontend | import React from 'react';
// A reusable form field component
const FormField = (props) => {
// Generate the field element
let fieldElement;
if (props.element === 'select') {
// Generate the options if it's a select field
const optionElements = props.options.map((option) => {
return (
<op... |
src/SplitButton.js | aparticka/react-bootstrap | /* eslint react/prop-types: [2, {ignore: "bsSize"}] */
/* BootstrapMixin contains `bsSize` type validation */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import DropdownStateMixin from './DropdownStateMixin';
import Button from './Button';
import Butto... |
src/components/picker/city_picker.js | n7best/react-weui | import React from 'react';
import PropTypes from 'prop-types';
import Picker from './picker';
/**
* An city pick component build on top of picker
*
*/
class CityPicker extends React.Component {
static propTypes = {
/**
* Array of item trees, consists property for label and subitems
*... |
src/pages/UserProfile/index.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import ProfileForm from './ProfileForm';
import UserInfo from './UserInfo';
const UserProfile = () => (
<div className="content">
<div className="container-fluid">
<div className="row">
<div className="col-md-8">
<ProfileForm />
</div>
<div class... |
src/svg-icons/action/work.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
src/Radio/windows/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Radium, { getState } from 'radium';
import styles from './styles/windows';
import Text from '../../Text/windows';
import {
ThemeContext,
themePropTypes,
themeContextTypes
} from '../../style/theme/windows';
import Hidden, { hidde... |
frontend/src/admin/branchManagement/memberView/MembersView.js | rabblerouser/core | import React, { Component } from 'react';
import { connect } from 'react-redux';
import EditMemberForm from './EditMemberForm';
import FilteredMembersList from './FilteredMembersList';
import { Modal, A, Panel } from '../../common';
import { finishEditMember, memberListRequested } from './actions';
import { getIsEditA... |
src/AffixMixin.js | Cellule/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
React Fundamentals/Exercise_Reac_Components/react-components/src/App.js | NikiStanchev/SoftUni | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Slider from './components/Slider'
import Roster from './components/Roster'
import Char from './components/Char'
import Bio from './components/Bio'
import observerMenu from './utils/observer'
class App extends Component... |
assets/jqwidgets/demos/react/app/chart/liveupdates/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
componentDidMount() {
this.refs.dropDownColors.on('change', (... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | sleexyz/react-router | import React from 'react';
class Assignment extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignment: COURSES[params.courseId].assignments[params.assignmentId]
//});
//}
render () {
//var { title, body } = this.props.assignment;
var { courseId, assignmentId } ... |
src/main.js | bblassingame/at-home-climate-website | import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
import './reset.css'
import './layout-v2/style2.css'
/*global process*/
if (process.env.NODE_ENV !== 'production') {
console.log('Dev Environment Detected: Starting Application')
}
ReactDOM.render(
<App />,
document.getElementBy... |
src/router.js | trunk-studio/trunksys-lbcs | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
packages/material-ui-icons/src/Nfc.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V8h3v8H8V8h2... |
ui/js/dfv/src/admin/edit-pod/main-tabs/dynamic-tab-content.js | pods-framework/pods | /**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* WordPress Dependencies
*/
import { withSelect, withDispatch } from '@wordpress/data';
import { compose } from '@wordpress/compose';
import { __, sprintf } from '@wordpress/i18n';
/**
* Pods dependencies
*/
import... |
src/Parser/Mage/Fire/CONFIG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Fyruna, Sharrq } from 'MAINTAINERS';
import SPECS from 'common/SPECS';
import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
spec: SPECS.FIRE_MAGE,
main... |
src/svg-icons/image/style.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
src/components/TMMKButton.js | tiagofumo/renaSMS | import React from 'react';
import { Text } from 'react-native';
import { MKButton, MKColor } from 'react-native-material-kit';
const TMMKButton = ({onPress, backgroundColor, children, style,
textStyle, ...custom}) => {
const Button = MKButton.coloredButton()
.withBackgroundColor(backgroundColor)
.withText(... |
src/app/components/AppsIconButton.js | lili668668/lili668668.github.io | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import ButtonBase from '@material-ui/core/ButtonBase'
import Typography from '@material-ui/core/Typography'
import Grid from '@material-ui/core/Grid'
const styles = the... |
app/javascript/mastodon/features/lists/components/new_list_form.js | mhffdq/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
src/Header.js | yrezgui/ubuntu-deploy | import React from 'react';
export default class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<header className="border bg-header-ubuntu white">
<nav className="clearfix">
<div className="sm-col">
<a href="/" className="btn ... |
app/jsx/gradebook-history/SearchResults.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/ThreeScene.js | taylord65/taylord65.github.io | import React from 'react';
import * as THREE from 'three';
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { SVGLoader } from "three/examples/jsm/loaders/SVGLoader";
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
import { RenderPass } from ... |
src/Stepper/StepLabel.js | hai-cea/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import CheckCircle from '../svg-icons/action/check-circle';
import SvgIcon from '../SvgIcon';
const getStyles = ({active, completed, disabled}, {muiTheme, stepper}) => {
const {
textColor,
disabledTextColor,
iconColor,
inactiveIconColor,
... |
example/src/index.js | luisfcofv/react-native-deep-linking | import React, { Component } from 'react';
import { Button, Linking, StyleSheet, Text, View } from 'react-native';
import DeepLinking from 'react-native-deep-linking';
export default class App extends Component {
state = {
response: {},
};
componentDidMount() {
DeepLinking.addScheme('example://');
L... |
src/encoded/static/components/news.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import querystring from 'querystring';
import _ from 'underscore';
import url from 'url';
import * as globals from './globals';
import { Panel, PanelBody } from '../libs/bootstrap/panel';
// Display a news preview item from a ... |
src/content/commands/mount.js | jessepollak/command | import $ from 'jquery'
import ReactDOM from 'react-dom'
import React from 'react'
function getContainer() {
let $container = $('.command__container')
if (!$container.length) {
$container = $('<div>')
.addClass('command__container')
.appendTo('body')
}
return $container[0]
}
/**
* mountReactCo... |
app/index.js | BoringTorvalds/mirror-frontend | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import ready from 'domready'
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureS... |
src/components/Footer/Footer.js | FamilyPlanerTeam/family-planner | /**
* 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 withStyles from 'isom... |
src/components/Nav.js | phuchle/recipeas | import React from 'react';
import { Link } from 'react-router-dom';
import { Navbar, Nav, NavItem } from 'react-bootstrap';
const Navigation = (props) => {
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
<Link to="/">
Recipeas
</Link>
</Navbar.Brand>
... |
app/javascript/mastodon/features/account_timeline/components/header.js | verniy6462/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
app/components/shared/Autocomplete/Dialog/index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '../../Dialog';
import SearchField from '../../SearchField';
import Suggestion from './suggestion';
import ErrorMessage from '../error-message';
import Loader from '../loader';
class AutocompleteDialog extends React.PureComponent {
st... |
src/screens/App/screens/Home/components/Movie/index.js | tulsajs/redux-workshop | import React from 'react';
import { Link } from 'react-router-dom';
import { Text, Box } from 'BuildingBlocks';
const baseURL = 'https://image.tmdb.org/t/p/w500/';
export default ({ movie: { id, title, posterPath } }) => (
<Box width={[1, 1 / 2, 1 / 3, 1 / 4, 1 / 5, 1 / 6]} p={[0, 2, 4]}>
<Link to={`/${id}`}>
... |
docs/pages/api-docs/toggle-button.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/toggle-button';
const requireRaw = require.context('!raw-loader!./', false, /\/toggle-button\.md$/);
export default function... |
src/svg-icons/action/perm-phone-msg.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
reactNativeThermo/index.ios.js | jontore/web_bluetooth_demo | /**
* 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 reactNativeThermo extends Component {
render() {
return (
<View style={styles.c... |
admin/src/components/SecondaryNavigation.js | mekanics/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
className: React.PropTypes.string,
children: React.PropTypes.node.isRequired,
href: ... |
src/svg-icons/action/perm-scan-wifi.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
src/js/admin/articles/filters/filter-select/filter-select.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import FilterItem, { FilterItemLabel, FilterItemSelect } from '../filter-item'
import { filterOptionChange } from '$actions/articles'
class FilterSelect extends React.Component {
constructor (props) {
super(props)
this.change = this.change.bin... |
src/parser/rogue/subtlety/modules/core/NightbladeUptime.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import ... |
packages/ringcentral-widgets/components/AlertRenderer/RateExceededAlert/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import errorMessages from 'ringcentral-integration/modules/RateLimiter/errorMessages';
import FormattedMessage from '../../FormattedMessage';
import i18n from './i18n';
function calculateState(duration, timestamp) {
return {
ttl: Math.... |
app/components/List/index.js | spiridonov-oa/management-tool | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
docs/src/NavMain.js | yuche/react-bootstrap | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';
const NAV_LINKS = {
'introduction': {
link: 'introduction',
title: 'Introduction'
},
'getting-started': {
link: 'getting-started',
title: 'Getting started'
},
... |
src/components/tables/TableFooter.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
};
const TableFooter = React.forwardRef((props, ref) => (
// TODO: Remove pseudo view and add react-native compatible component
<BaseVie... |
ContosoUniversity.Spa.React/ClientApp/src/components/about/AboutPage.js | alimon808/contoso-university | import React from 'react';
export default function() {
return(
<div>
<h1>About Page</h1>
</div>
);
} |
javascript/ShareAdmin/SharedStoriesListing.js | AppStateESS/stories | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import './style.css'
const ShareStoriesListing = ({listing, approve, deny}) => {
if (!listing || listing.length === 0) {
return <p>No shared stories.</p>
}
let rows = listing.map((value, key) => {
const denyLink = (
<a class... |
client/components/settings/index.js | bnjbvr/kresus | import React from 'react';
import PropTypes from 'prop-types';
import { translate as $t } from '../../helpers';
import BankAccountsList from './bank-accesses';
import BackupParameters from './backup';
import EmailsParameters from './emails';
import WeboobParameters from './weboob';
import ThemesParameters from './the... |
actor-apps/app-web/src/app/components/Login.react.js | zillachan/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/svg-icons/action/view-week.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewWeek = (props) => (
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4... |
src/components/Infinia5.js | aryalprakash/aryalprakash.github.io | /**
* Created by user on 8/29/2016.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
let style={
header: {
background: 'grey'
},
slider:{
'position': 'relative',
'top': '90px',
padding: '0px 50px 20px 50px',
display: 'flex',
... |
spec/javascripts/jsx/external_apps/components/Lti2EditSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - 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... |
app/components/ToggleOption/index.js | fenderface66/spotify-smart-playlists | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
frontend/src/WorkflowDetailForm.js | aclowes/yawn | import React from 'react';
import {
Checkbox, FormGroup, FormControl, ControlLabel,
Button, ButtonToolbar, Alert, Pagination
} from 'react-bootstrap';
import API from './API'
import {formatDateTime} from "./utilities";
/* Helper to extract form values from a given object */
function formValues(object) {
let par... |
src/svg-icons/action/hourglass-empty.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
src/svg-icons/av/mic-none.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
app/containers/TagsList/index.js | vonkanehoffen/wp-react | /**
* Tags List
*/
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router'
import config from 'config'
import { loadTags } from '../../store/tags/actions';
import './style.scss'
class TagsList extends React.Component {
componentDidMount() {
if(this.props.tags.tags... |
packages/ringcentral-widgets/components/MessageTabButton/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
function NavigationButton({
active,
icon,
label,
noticeCounts,
onClick,
width,
fullSizeInk,
}) {
let notice = null;
if (noticeCounts && noticeCounts > 0) {
if (n... |
docs/server.js | brentertz/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.