path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
HTML/JavaScript/myapp-react-app/src/components/HelloReact.js | xiaoxiaoyao/MyApp | import React, { Component } from 'react';
class HelloReact extends Component{
constructor(props) {
super(props);
this.state = {
name:props.name,
num:props.num,
HelloReactStyleObject:{
color:'red',
fontSize:'24px'
}
};
};
handleChange(e) ... |
public/components/tehtPage/tabsComponents/someuutiset/FieldKuvat.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import Basic from '../reusables/templates/Basic';
import ShareButton from './ShareButton';
import { showAllImages, showPrioImages } from '../../../../reducer/images/actions';
const FieldKuvat = (props) =>
<div className="kuvat">
<p><b>Kuvat:... |
src/media/js/addon/components/review.js | mozilla/marketplace-submission | import React from 'react';
import {ReverseLink} from 'react-router-reverse';
import {AddonListingForReview} from './listing';
import Search from '../components/search';
import AddonSubnav from '../components/subnav';
import {Page, PageSection} from '../../site/components/page';
import Paginator from '../../site/compon... |
docs/app/Examples/elements/Image/Groups/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ImageTypesExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Size'
description='A grou... |
lib/Navigation/Tabs/tabFour/views/TabFourScreenOne.js | Ezeebube5/Nairasense | import React from 'react';
import { View } from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Container, Body, H1,
Header, Left, Right, Button, Title } from 'native-base';
import Icon from 'react-native-vector-icons/FontAwesome';
import { Colors }... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Viktorminator/coinvscoin | 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/components/Footer/PdfFooter/index.js | korabh/quran.com-frontend | import React from 'react';
import Link from 'react-router/lib/Link';
const PdfFooter = () => (
<footer>
<div className="container">
<div className="row">
<div className="col-md-12">
<p className="text-center">
This PDF is exported from {' '}
<Link to="https://quran... |
app/javascript/flavours/glitch/features/ui/components/bundle_modal_error.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from 'flavours/glitch/components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading th... |
components/card/cardTitle.js | react-material-design/react-material-design | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
// TODO: Avatar support
/** Card Title */
const CardTitle = ({ title, subtitle, larger }) =>
(<section className="mdc-card__primary">
<h1 className={classNames('mdc-card__title', { 'mdc-card__title--large': l... |
src/components/ColorButtons.js | robertkirsz/magic-cards-manager | import React from 'react'
import PropTypes from 'proptypes'
import cn from 'classnames'
import _every from 'lodash/every'
const ColorButtons = ({ colors, toggleAll, toggleNone, monocoloredOnly, multicoloredOnly, handleChangeMonocolored, handleChangeMulticolored }) => (
<div className="color-buttons btn-toolbar" role... |
src/components/MenuButton/MenuButton.js | LemonsLab/Quiz | /**
* Created by piotrandrzejewski on 21.10.2017.
*/
import React from 'react';
import {
StyleSheet,
Text,
TouchableHighlight,
View
} from 'react-native';
class MenuButton extends React.Component {
render(){
return(
<TouchableHighlight style={styles.button} onPress={this.props... |
app/src/components/Tutorial/index.js | civa86/electrophone | import React from 'react';
import icon from '../../../img/icon.png';
const Tutorial = () => {
return (
<div id="tutorial" className="modal fade" tabIndex="-1" role="dialog">
<div className="modal-dialog" role="document">
<div className="modal-content">
<div ... |
app/javascript/mastodon/features/status/components/detailed_status.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
client/modules/App/components/DevTools.js | Theknickerbocker/UB_Grader | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
app/packs/src/components/generic/GenericElCriteria.js | ComPlat/chemotion_ELN | /* eslint-disable react/forbid-prop-types */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, Row, Col } from 'react-bootstrap';
import { sortBy } from 'lodash';
import { GenProperties, GenPropertiesLayerSearchCriteria } from './GenericElCommon';
import GenericEl from '../m... |
src/index.js | PanJ/rooftopkaraoke | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/list_adder/components/account.js | ikuradon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
src/containers/Charts/reactChart2/components/radar/radar.js | EncontrAR/backoffice | import React from 'react';
import {Radar} from 'react-chartjs-2';
import { data } from './radarConfig';
class RadarChart extends React.Component {
render() {
return (
<Radar
data={data}
height={230}
/>
);
}
};
export default RadarChart;
|
app/containers/App/index.js | OrenElad/picashare | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
node_modules/react-select/src/utils/defaultMenuRenderer.js | premcool/getmydeal | import classNames from 'classnames';
import React from 'react';
function menuRenderer ({
focusedOption,
instancePrefix,
labelKey,
onFocus,
onSelect,
optionClassName,
optionComponent,
optionRenderer,
options,
valueArray,
valueKey,
onOptionRef
}) {
let Option = optionComponent;
return options.map((option,... |
app/components/EarningsTableHeader/index.js | projectcashmere/web-server | /**
*
* EarningsTableHeader
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
const Table = styled.table`
background-color: grey;
color: white;
height: 40px;
margin: 5px;
width: 100%;
`;
function EarningsTab... |
node_modules/react-select/src/Async.js | xuan6/admin_dashboard_local_dev | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import stripDiacritics from './utils/stripDiacritics';
const propTypes = {
autoload: PropTypes.bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true
cache: PropTypes.a... |
Swipeable.js | bevkoski/react-native-swipeable-cards-demo | import React from 'react';
import { View, StyleSheet, Platform } from 'react-native';
import PropTypes from 'prop-types';
import Interactable from 'react-native-interactable';
import Card from './Card'
export default class Swipeable extends React.Component {
static propTypes = {
cards: PropTypes.array.isRequire... |
src/routes/index.js | bingomanatee/ridecell | import React from 'react';
import { Route, IndexRoute } from 'react-router';
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardle... |
src/svg-icons/action/report-problem.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem = pure(ActionReportProblem);
ActionReportProblem.displa... |
src/svg-icons/image/rotate-right.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7... |
src/date-time-picker/date-time.js | mikalai-sauchanka/react-date-time-picker | import React from 'react'
import PropTypes from 'prop-types'
import DayView from './day-view'
import MonthView from './month-view'
import YearView from './year-view'
import TimeView from './time-view'
import moment from 'moment'
import _ from 'lodash'
import { CSSTransitionGroup } from 'react-transition-group'
const _... |
app/js/components/Hello.js | dYb/react-boilerplate | import React from 'react';
import { Link } from 'react-router';
export default class Hello extends React.Component {
constructor(props) {
super(props);
}
render() {
const name = this.props.params.name
return (
<div className="hello">
<h2>Hello {name}</h2>
<ul>
<li><L... |
client/views/omnichannel/triggers/TriggersForm.stories.js | VoiSmart/Rocket.Chat | import { FieldGroup, Box } from '@rocket.chat/fuselage';
import React from 'react';
import { useForm } from '../../../hooks/useForm';
import TriggersForm from './TriggersForm';
export default {
title: 'omnichannel/TriggersForm',
component: TriggersForm,
};
export const Default = () => {
const { values, handlers }... |
packages/kickoff-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | TryKickoff/create-kickoff-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
packages/react/src/components/Fieldset.js | wq/wq.app | import React from 'react';
import PropTypes from 'prop-types';
export default function Fieldset({ label, children }) {
return (
<fieldset>
<legend>{label}</legend>
{children}
</fieldset>
);
}
Fieldset.propTypes = {
label: PropTypes.string,
children: PropTypes.no... |
app/javascript/mastodon/features/ui/components/columns_area.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
client/src/modules/Registration/RegistrationPage/RegistrationPage.js | kvago36/graphql-relay | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { gql, graphql, compose } from 'react-apollo';
import { Header } from 'semantic-ui-react';
import { GC_LOGIN } from '../../../constants/constants';
import './RegistrationPage.css';
import Registration from '../components/Registrat... |
docs/app/Examples/elements/Loader/Variations/LoaderExampleInlineCentered.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
const LoaderExampleInlineCentered = () => (
<Loader active inline='centered' />
)
export default LoaderExampleInlineCentered
|
App/ui/views/_default/.empty.js | CaipiLabs/caipi | /*
* Copyright (c) 2018. Wise Wild Web
*
* This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
* Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
*
* @author : Nathanael Braun
* @contact : caipilabs@gmail.com... |
examples/library/src/containers/Root.js | carteb/carte-blanche | /* @flow weak */
import React from 'react';
import {
Grid,
Row,
} from 'react-bootstrap';
import {
Button,
} from '../components';
const Root = () =>
<Grid>
<Row>
<Button>Here is a sample button</Button>
</Row>
<Row>
<Button bsStyle="primary">Here is a primary button</Button>
</Row... |
js/components/thumbnail/index.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View } from 'react-native';
import { Container, Header, Title, Content, Button, Icon, Thumbnail, Text, Body, Left, Right } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
co... |
src/components/common/svg-icons/action/cached.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCached = (props) => (
<SvgIcon {...props}>
<path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/slideshow.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageSlideshow = (props) => (
<SvgIcon {...props}>
<path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageSlideshow.displayName = 'ImageSlideshow';
ImageSlid... |
src/SplitButton.js | xiaoking/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
src/components/AddImage.js | dggriffin/noteworthee | //import styles from 'styles/Note.css';
import React from 'react';
import { FlatButton, TextField, IconButton } from 'material-ui';
import AddCircleIcon from 'material-ui/svg-icons/content/add-circle';
import RemoveCircleIcon from 'material-ui/svg-icons/content/remove-circle';
class AddImage extends React.Component {
... |
simul/app/components/profile2.js | sf-red-pandas-2016/simul-react-native | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
} from 'react-native';
import I18n from 'react-native-i18n'
import NewStory from './newStory';
import UserMessages from './userMessages';
import Contact from './contact';
import userStories from './userStories';
imp... |
src/scenes/App/scenes/Home/scenes/Activity/index.js | jsza/tempus-website | import React from 'react'
import cx from 'classnames'
import {prettyZoneName} from 'root/utils/TempusUtils'
import {LinkContainer} from 'react-router-bootstrap'
import {Redirect} from 'react-router-dom'
import DropdownButton from 'react-bootstrap/lib/DropdownButton'
import MenuItem from 'react-bootstrap/lib/MenuItem'
... |
src/containers/Asians/BreaksCalculator/StandingPerRound/returnTableRow/returnRound/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { TableCell } from 'material-ui/Table'
export default (
team,
numberOfRounds,
minBreak,
rank,
numberOfBreakingTeams,
sureBreak
) => {
let arr = []
for (let roundIndex = 1; roundIndex <= numberOfRounds; roundIndex++) {
const text = team[roundIndex] ? team[roundIndex... |
src/svg-icons/av/replay-10.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay10 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.... |
node_modules/react-native-form-generator/src/lib/DatePickerComponent.ios.js | tedsf/tiptap | 'use strict';
import React from 'react';
let { View, StyleSheet, TextInput, Text, DatePickerIOS} = require('react-native');
import {Field} from './Field';
export class DatePickerComponent extends React.Component{
constructor(props){
super(props);
this.state = {
date: props.date? new Date(props.date)... |
docs/src/examples/elements/List/Types/ListExampleOrderedValue.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleOrderedValue = () => (
<List as='ol'>
<List.Item as='li' value='*'>
Signing Up
</List.Item>
<List.Item as='li' value='*'>
User Benefits
</List.Item>
<List.Item as='li' value='*'>
User Types
... |
public/js/components/DetailsReactionOrAllergy.js | Vabrins/CadernetaDoIdoso | import React from 'react';
import $ from 'jquery';
import { Link } from 'react-router-dom';
class DetailsReactionOrAllergy extends React.Component {
constructor (props) {
super(props);
this.state = {medicine_2_4:'', date_2_4:'', adverse_reactions_or_allergies_2_4:'', created_at:'', list : []};
}
comp... |
blueocean-material-icons/src/js/components/svg-icons/notification/phone-paused.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationPhonePaused = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-2v7h2V3zm3 12.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.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45... |
components/nav-bar.ios.js | APU-Flow/FlowApp | // nav-bar.ios.js
// Flow
'use strict';
import React, { Component } from 'react';
import { TabBarIOS } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import Graphs from '../scenes/graphs';
import Meters from '../scenes/meters';
import Overview from '../scenes/overview';
import Settings fr... |
information/blendle-frontend-react-source/app/modules/settings/containers/PremiumSubscriptionCancelContainer.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CancelPremium from '../components/CancelPremium';
import NotificationsActions from 'actions/NotificationsActions';
import PremiumCanceledNotification from 'components/notifications/PremiumCanceledNotification';
const REASON_OTHER = 'o... |
src/components/Link.js | jennaprovazek/Todo | import React from 'react'
import PT from 'prop-types'
const propTypes = {
active: PT.bool.isRequired,
children: PT.node.isRequired,
onClick: PT.func.isRequired
}
const Link = ({ active, children, onClick }) => {
if (active) {
return <span>{children}</span>
}
return (
<a
href="#"
onCli... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | hardikamal/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/components/AttributeCard/index.js | strapi/strapi-examples | /**
*
* AttributeCard
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import IcoBoolean from '../../assets/images/icon_boolean.png';
import IcoDate from '../../assets/images/icon_date.png';
import IcoEmail from '../../assets/images/icon_email.png';
im... |
lib/components/Login.js | StephanieEA/firebae | import React from 'react';
import { BrowserRouter, Route, Link, Match } from 'react-router'
import { pick, map, extend } from 'lodash';
import Button from './Button';
import RandomMessage from './RandomMessage';
import firebase, { reference, signIn } from '../firebase'
const Login = ({ authorize, user }) => {
if (us... |
app/javascript/mastodon/features/explore/statuses.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusList from 'mastodon/components/status_list';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { fetchTrendingStatuses, expandTrendingStatuse... |
src/App/Blockchain.js | kgstew/whitesands | import React, { Component } from 'react';
import './App.css';
const SHA256 = require("crypto-js/sha256");
class Block {
constructor(index, timestamp, data, previousHash = '') {
this.index = index;
this.previousHash = previousHash;
this.timestamp = timestamp;
this.data = data;
this.hash... |
client/test/components/IntroText.spec.js | andela-iamao/iamdocuman | /* global expect:true */
/* global shallow:true */
/* global mount:true */
import React from 'react'; // eslint-disable-line no-unused-vars
import IntroText from '../../src/components/reusable/IntroText.component.jsx';
describe('<IntroText />', () => {
it('should render a bold title and normal text', () => {
co... |
src/icons/SocialAndroid.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialAndroid extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M144,268.4V358c0,6.9,4.5,14,11.4,14H184v52c0,13.3,10.7,24,24,24s24-10.7,24-24v-52h49v52c0,7.5,3.4,14.2,8... |
fields/types/relationship/RelationshipColumn.js | davibe/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.create... |
frontend/component/Header.js | ivernaloo/practice-node-project | import React from 'react';
import {Link} from 'react-router';
import {loginUser, logout} from '../lib/client';
export default class Header extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
loginUser()
.then(user => this.setState({user}))
... |
src/app/components/localSignupForm.js | nazar/soapee-ui | import React from 'react';
import LocalAuthenticationForm from 'components/localAuthenticationForm';
import ValidateSignupFields from 'services/validateSignupFields';
import authActions from 'actions/auth';
export default React.createClass( {
getInitialState() {
return {
errors: {}
};... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | NS-Kazuki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
examples/dynamic-segments/app.js | chunwei/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
geonode/monitoring/frontend/monitoring/src/containers/main.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... |
src/components/Main.js | pdx-code/teampro | require('normalize.css');
require('styles/App.css');
import React from 'react';
import TimelogCard from './widgets/timelogs/CardComponent';
let injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
class AppComponent extends React.Component {
constructor(props) {
super(props);
}
... |
fields/types/relationship/RelationshipColumn.js | jstockwin/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
src/svg-icons/action/tab.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTab = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/>
</SvgIcon>
);
ActionTab = pure(ActionTab);
ActionTab.... |
src/Accordion.js | aparticka/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | jiguoling/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
src/__tests__/IconToggle-test.js | joshq00/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import ReactDOM from 'react-dom';
import { render, renderDOM } from './render';
import IconToggle from '../IconToggle';
import Icon from '../Icon';
describe('IconToggle', () => {
it('should render an input checkbox inside a <label> ', (... |
src/client.js | noraesae/yomiko | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient from '.... |
examples/js/style/tr-class-function-table.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | Rogerlin2013/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | toko926/sakerakuintweb | 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/app/components/App.js | eveld/isomorphic-js | 'use strict';
import React from 'react';
/**
* The root component of the application.
*/
class App extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
/**
* @inheritdoc
* @return {boolean} Whether or not the component should update
*/
shouldComponentUpdate() {
... |
stories/FieldWithSelectionComposite/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/Composite/FieldWithSelectionComposite/README.md';
import ExampleStandard from './Ex... |
src/ButtonInput.js | AlexKVal/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
src/components/EntityList.js | lxanders/react-clientside-example | import React from 'react';
import EntityListItem from './EntityListItem';
import { entitiesList as entitiesListDefinition } from '../lib/typeDefinitions';
const EntityList = ({ entities }) => {
const entitiesHeader = entities.length > 0 ? <h2>Entities</h2> : null;
return (
<section className='entity-l... |
frontend/src/Components/Table/VirtualTableRow.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import styles from './VirtualTableRow.css';
function VirtualTableRow(props) {
const {
className,
children,
style,
...otherProps
} = props;
return (
<div
className={className}
style={style}
{...otherProps}
>
... |
features/groupchat/components/chatMessage.js | zymokey/mission-park | import React from 'react';
import { getLocaleDate } from '../../../utils';
import ImageMessage from './imageMessage';
class ChatMessage extends React.Component {
render(){
const { message, file, timestamp, senderId, senderName } = this.props.message;
let _timestamp = timestamp;
let checkByself = this.props.d... |
app/scripts/components/networks-selector.js | hustbill/network-verification-ui | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { selectNetwork, showNetworks } from '../actions/app-actions';
import { availableNetworksSelector } from '../selectors/node-networks';
import NetworkSelectorItem from './network-selector-item';
class NetworkS... |
src/DropdownStateMixin.js | Cellule/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
client/sidebar/Item/skeletons/Skeleton.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import ExtendedSkeleton from '../ExtendedSkeleton';
import CondensedSkeleton from './CondensedSkeleton';
import MediumSkeleton from './MediumSkeleton';
export default {
title: 'Sidebar/Skeleton',
};
export const CondensedWithAvatar = () => <CondensedSkeleton showAvatar={true} />;
export c... |
example/components/Anchor.js | a-type/studs | import React from 'react';
import styled from 'styled-components';
import theme from '../theme';
const select = theme
.register('Anchor', theme => ({
color: theme.colors.primary,
fontWeight: 'bold',
}))
.addVariant('secondary', theme => ({
color: theme.colors.secondary,
}))
.createSelector();
co... |
client/src/components/ElementActions/tests/PublishAction-test.js | dnadesign/silverstripe-elemental | /* eslint-disable import/no-extraneous-dependencies */
/* global jest, describe, it, expect, window */
import React from 'react';
import { Component as PublishAction } from '../PublishAction';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapte... |
src/svg-icons/content/move-to-inbox.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3... |
renderer/components/Icon/Error.js | LN-Zap/zap-desktop | import React from 'react'
const SvgError = props => (
<svg height="1em" viewBox="0 0 17 17" width="1em" {...props}>
<path
d="M9.512 8.333l1.91-1.91a.833.833 0 0 0-1.178-1.179l-1.91 1.91-1.911-1.91a.833.833 0 1 0-1.179 1.179l1.91 1.91-1.91 1.911a.833.833 0 1 0 1.179 1.179l1.91-1.911 1.911 1.91a.833.833 0 0 ... |
node_modules/react-router/es6/IndexRedirect.js | UpStage-Community/upstage-web | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
static/react/app.js | Jpadilla1/notaso | import React from 'react';
import ReactDOM from 'react-dom';
import Search from './components/Search';
ReactDOM.render(<Search/>, document.getElementById('react-search'));
|
dva/wd/src/components/Form/ZInput.js | imuntil/React | /* eslint-disable no-prototype-builtins */
import React from 'react';
import PropTypes from 'prop-types'
import TweenOne from 'rc-tween-one'
// import styles from './ZInput.css';
class ZInput extends React.Component {
constructor(props) {
super(props)
const { value = '', minL, maxL } = this.props
if (min... |
src/main.js | kubeless/kubeless-ui | /*
Copyright 2017 Bitnami.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dimmer, Loader, Image, Segment } from 'shengnian-ui-react'
const LoaderExampleIndeterminate = () => (
<div>
<Segment>
<Dimmer active>
<Loader indeterminate>Preparing Files</Loader>
</Dimmer>
<Image src='/assets/images/wireframe/short-paragraph.png' />... |
src/svg-icons/device/airplanemode-active.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAirplanemodeActive = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/... |
docs/pages/api-docs/card.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/card';
const requireRaw = require.context('!raw-loader!./', false, /\/card\.md$/);
export default function Page({ docs }) {
... |
src/index.js | sebastiandeutsch/react-redux-less-mocha-chai | import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
ReactDOM.render(
<App />,
document.getElementById('application')
);
|
src/index.js | manar007/react-event-calendar | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {BrowserRouter, Match, Miss} from 'react-router'
import './css/./bootstrap.min.css';
import './css/./main.css';
import configureStore from './store/configureStore';
import Calendar from './components/Calendar'
... |
Libraries/Components/TextInput/TextInput.js | callstack-io/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js | KalinduDN/kalindudn.github.io | /* @flow */
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
import { Platform } from '../../base/react';
import { CHROME, FIREFOX, IE, SAFARI } from './browserLinks';
import HideNotificationBarStyle from './HideNotificationBarStyle';
/**
* The namespace of the CSS styles of U... |
app/components/AppError/index.js | nelsonomuto/budgeting-sample-app-webpack2 | import React from 'react';
import styles from './style.scss';
const AppError = () => (
<div className={styles.errorScreen}>
<div className={styles.errorContainer}>
<h1 className={styles.errorTitle}>{`Sorry, something went wrong.`}</h1>
<p>{`We're working on it and we'll get it fixed as soon as we can... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.