path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
entry_types/scrolled/package/src/frontend/Chapter.js | tf/pageflow | import React from 'react';
import {Section} from './Section';
import {EventContextDataProvider} from './useEventContextData';
export default function Chapter(props) {
return (
<div id={props.chapterSlug}>
{renderSections(props.sections,
props.currentSectionIndex,
... |
blueocean-material-icons/src/js/components/svg-icons/hardware/laptop-mac.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareLaptopMac = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.4... |
src/TodoList.js | elanini/reactboilertesting | import React, { Component } from 'react';
import TodoItem from './TodoItem'
export default class TodoList extends Component {
constructor(props){
super(props)
}
render() {
var handler=this.props.changeHandler;
var todoItems = this.props.data.map(function(item) {
return (
<div>
<TodoItem text={it... |
WebApp/wwwroot/ReactApp/src/App.js | pkellner/svcc-react4 | import React from 'react';
import FullPage from './components/codecamp/common/FullPage';
import './App.css';
export default function App() {
return (
<div>
<FullPage />
</div>
);
}
|
js/components/content/about.js | Krelix/krelix.github.io | /**
* Created by @krelix on 25/03/2016.
*/
import React from 'react';
import ALink from './alink';
export default function render() {
return (
<article>
<header>
<h1>About</h1>
</header>
<div className="entry-content">
<p>Hello, my name is Adrien. I've been a developer for 5 ... |
testCode/Components/AddACompany.js | Aznachang/CompanyPersonelReactJS | import React from 'react';
import AddCompany from '../Containers/add-a-company.js';
import { Router, Route, Switch } from 'react-router-dom';
const AddACompany = () => (
<div>
<AddCompany />
</div>
);
export default AddACompany;
|
src/index.js | Acehaidrey/addrbook | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import AddressBook from './components/AddressBook.react';
import AddContactPanel from './components/AddContactPanel.react';
import EditContactPanel from './components/EditContactPanel.react';
import Root from './components/Root.react';
import {R... |
plugins/Files/js/components/transferlist.js | NebulousLabs/Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
import { List } from 'immutable'
import Transfer from './transfer.js'
const defaultTransferClick = () => () => {}
const TransferList = ({
transfers,
onTransferClick = defaultTransferClick
}) => {
const transferComponents = transfers.map((transfer, key... |
src/index.js | anega/react-learning | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import { loadCourses } from './actions/courseActions... |
src/components/Form/Radio/RadioGroup.js | ilxanlar/cathode | import React from 'react';
import Field from '../Field';
import RadioOnly from './RadioOnly';
import Checklist from '../Checklist';
import PropProvider from '../FieldPropProvider';
import { fieldRadioGroup as propTypes } from '../../../helpers/propTypes';
import { selectableHelper } from '../../../helpers/utils';
clas... |
docs/app/Examples/views/Item/Content/Headers.js | ben174/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const { Content, Group, Header, Image } = Item
const Headers = () => (
<Group>
<Item>
<Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' />
<Content verticalAlign='middle'>
<Header as='a'>12 Years a Sl... |
app/components/AppLoader.js | JoaoCnh/picto-pc | import React from 'react';
import styles from './AppLoader.css';
export default class AppLoader extends React.Component {
render() {
return (
<div className={styles.loaderWrapper}>
<div className={styles.loader}></div>
<div className={styles.loaderSectionLeft}>... |
app/components/Navbar.js | waste-mgmt/grace-shopper | import React from 'react';
import {Link} from 'react-router';
import Login from './Login';
// uses one conditional and another within that to display diffferently for those not logged in, and users vs. admins
export const Navbar = (props) => {
return (
<nav className="navbar navbar-default">
<div className="con... |
src/common/components/repository-row/dropdowns/remove-repo-dropdown.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import { Row, Data, Dropdown } from '../../vanilla/table-interactive';
import Button from '../../vanilla-modules/button';
import { IconWarning } from '../../vanilla-modules/icons';
import styles from './dropdowns.css';
const getRemoveWarningMessage = (is... |
packages/material-ui-icons/src/Phone.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 ... |
Example/anglesExample/index.android.js | cristianszwarc/RNDeviceAngles | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class anglesExample extends Component {
render() {
return (
<View style={styles.container}>
... |
client/src/index.js | teenoh/Hello-Books | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/AsyncCreatable.js | submittable/react-select | import React from 'react';
import Select from './Select';
import Async from './Async';
import Creatable from './Creatable';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);... |
example/example.component.js | kodyl/react-flexr | import {
HydrateSSR,
Grid,
Cell,
stylesheet,
findMatch,
findBreakpoints,
optimizedResize
} from '../lib';
import Demo from './demo.component';
import React, { Component } from 'react';
import StyleSheet from 'stilr';
export default class Example extends Component {
constructor(props) {
super(props)... |
project/src/scenes/Account/ForgotPassword/ForgotPasswordForm.js | boldr/boldr | /* @flow */
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import Button from '@boldr/ui/Button';
import Form, { TextFormField } from '@boldr/ui/Form';
export type Props = {
handleSubmit: Function,
submitting?: boolean,
pristine?: boolean,
};
const ForgotPasswordForm = (props: Props) ... |
analysis/warriorarms/src/modules/core/SweepingStrikes.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Abilities from 'parser/core/modules/Abilities'... |
frontend/src/AddMovie/ImportMovie/Import/SelectMovie/ImportMovieTitle.js | geogolem/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,
... |
frontend/src/Organize/OrganizePreviewModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import OrganizePreviewModalContentConnector from './OrganizePreviewModalContentConnector';
function OrganizePreviewModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (... |
Web Developer Skills/Learn ReactJS Part II/Unit 10 Updating & Unmounting Lifecycle Methods/02 componentWillReceiveProps/TopNumber.js | ummahusla/codecademy-exercise-answers | import React from 'react';
import ReactDOM from 'react-dom';
const yellow = 'rgb(255, 215, 18)';
export class TopNumber extends React.Component {
constructor(props) {
super(props);
this.state = { 'highest': 0 };
}
componentWillReceiveProps(nextProps) {
if (nextProps.number > this.state.highest) {
... |
manager/frontend-app/components/instances-number-manager/index.js | IvanDimanov/test_microservice_app | 'use strict'
require('./index.scss')
import React from 'react'
import {log, toString, getInstance, isInteger} from 'custom/utils'
import instanceStore from '../../stores/instance'
/* TODO: Will fit nicely in a config */
const maxInstancesPerType = 20
const InstancesNumberManager = React.createClass({
getInitialSt... |
src/index.js | felinewong/PhotoGallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
//var $ = window.$ = window.jQuery = require('jquery');
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
client/components/Form/Form.js | alex-ta/Chat-Server | import React from 'react';
import map from 'lodash/map';
import classnames from 'classnames';
import valid from '../../../server/shared/validation';
import FormGroup from './FormGroup';
import PropTypes from 'prop-types';
class Form extends React.Component {
constructor(props) {
super(props);
// Bind Method... |
app/javascript/mastodon/features/getting_started/components/announcements.js | gol-cha/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import Icon f... |
investninja-web-ui-admin/src/routes/dashboardPages/carteiraDetalhe/index.js | InvestNinja/InvestNinja-web-ui | import React from 'react';
import CarteiraDetalhe from '../../../components/Ninja/Carteira/CarteiraDetalhe';
export default {
path: '/carteira-detalhes',
action() {
return <CarteiraDetalhe />;
},
};
|
app/components/PerefItemList.js | react-rpm/react-rpm | import React from 'react';
import PropTypes from 'prop-types';
import PerfItem from './PerfItem';
// const propTypes = {
// perfItems: PropTypes.arrayOf(
// PropTypes.shape({
// id: PropTypes.number.isRequired,
// selected: PropTypes.bool.isRequired,
// label: PropTypes.string.isRequired,
// ... |
pages/regions/[regionId]/resources/[resourceId].js | conveyal/analysis-ui | import {
AlertDialog,
AlertDialogBody,
AlertDialogContent,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogOverlay,
Button,
Heading,
Stack,
Stat,
StatGroup,
StatLabel,
StatNumber,
StatHelpText,
Tag,
Text
} from '@chakra-ui/react'
import format from 'date-fns/format'
import dynamic from ... |
src/components/Counter/Counter.js | thanhiro/tuha-ui-tpl | /* @flow */
import React from 'react';
import classes from './Counter.scss';
import TranslatableHelmet from '../TranslatableHelmet';
type Props = {
counter: number,
doubleAsync: Function,
increment: Function
};
export const Counter = (props:Props) => (
<div>
<TranslatableHelmet
transKey="counter_tit... |
docs/src/app/components/pages/discover-more/RelatedProjects.js | barakmitz/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import relatedProjectsText from './related-projects.md';
const RelatedProjects = () => (
<div>
<Title render={(previousTitle) => `Related Projects - ${previousTitle}`} />
<MarkdownEleme... |
website/components/Navigation.js | matthewstyers/keystone | import React from 'react';
import Link from 'gatsby-link';
import { rhythm, scale } from '../utils/typography';
import MenuIcon from 'react-icons/lib/md/menu';
import gray from 'gray-percentage';
import Headroom from 'react-headroom';
import theme from '../theme';
import invertedLogo from '../images/logo-inverted.svg'... |
wrappers/toml.js | aimanaiman/supernomadfriendsquad | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
frontend/app/js/components/home.js | pivotal/pulse | import React from 'react';
import { Link } from 'react-router';
export default class Home extends React.Component {
render() {
return (
<div>
<Link to="/projects/new">Add New Project</Link>
</div>
);
}
}
|
src/docs/components/animate/AnimateExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Animate from 'grommet/components/Animate';
import Button from 'grommet/components/Button';
import Box from 'grommet/components/Box';
import Value from 'grommet/components/Value';
import InteractiveExam... |
src/Popover/Popover.js | rscnt/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import EventListener from 'react-event-listener';
import RenderToLayer from '../internal/RenderToLayer';
import propTypes from '../utils/propTypes';
import Paper from '../Paper';
import throttle from 'lodash.throttle';
import PopoverAnimationDefault from './P... |
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleCompact.js | koenvg/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { getOptions } from '../common'
const DropdownExampleCompact = () => (
<Dropdown placeholder='Compact' compact selection options={getOptions(3, '')} />
)
export default DropdownExampleCompact
|
yycomponent/tabs/Tabs.js | 77ircloud/yycomponent | import React from 'react';
import { Tabs as _Tabs } from 'antd';
class Tabs extends React.Component{
constructor(props){
super(props);
}
render(){
return (<_Tabs {...this.props}/>);
}
}
Tabs.TabPane = _Tabs.TabPane;
export default Tabs
|
src/example/app/pages/ButtonTest.js | lighter-cd/ezui_react_one | import React, { Component } from 'react';
import injectSheet from 'react-jss';
import {Button} from '../../../lib/components/form';
class ButtonTest extends React.Component {
render() {
return (
<div>
<Button>Normal</Button>
<Button disabled>Disabled</Button>
... |
src/components/Theme.js | grommet/grommet-docs | // (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Select from 'grommet/components/Select';
const THEMES = ['grommet', 'aruba', 'dxc', 'hpe', 'hpinc'];
export default class ThemeMenu extends Component {
constructor () {
super();
this._onCh... |
src/app/container/checkout-address-partial.js | all3dp/printing-engine-client | import React from 'react'
import compose from 'recompose/compose'
import lifecycle from 'recompose/lifecycle'
import withProps from 'recompose/withProps'
import {connect} from 'react-redux'
import {withRouter} from 'react-router'
import {withFormik, Field, Form} from 'formik'
import omit from 'lodash/omit'
import * as... |
src/components/Wheel.js | Montana-Code-School/LifeCoach | import React from 'react';
import ReactBootstrapSlider from 'react-bootstrap-slider';
import { observer, inject } from 'mobx-react';
import Slider from './Slider';
import WheelCanvas from './WheelCanvas';
import dateFormat from 'dateformat';
class Wheel extends React.Component{
constructor(){
super();
this.... |
src/components/Header/Header.js | prthrokz/portfolio | import React from 'react';
import styles from './Header.less';
import withStyles from '../../decorators/withStyles';
import Navigation from '../Navigation';
import ProfileImage from '../ProfileImage/ProfileImage';
import Social from '../Social/Social';
@withStyles(styles)
class Header {
render() {
return (
... |
src/components/contact.js | ryannma/website | import React from 'react';
export default React.createClass({
render() {
return <div>Contact</div>
}
});
|
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | wangkang0627/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
dev/js/page/about.js | WALLE729/react_webpack | import React from 'react'
import ReactDOM from 'react-dom'
import about_List from '../components/about_list'
require("../../css/common/base.css");
require("../../css/page/about.less");
ReactDOM.render(
<about_List/>,
document.getElementById('about')
); |
app/components/Player.js | ptelad/tal-and-aviad-player | import React from 'react';
import {
StyleSheet,
View,
Slider,
Text,
TouchableOpacity,
DeviceEventEmitter,
ActivityIndicator,
AsyncStorage,
BackHandler,
Alert,
NativeModules
} from 'react-native';
import RNAudioStreamer from 'react-native-audio-streamer';
import MusicControl f... |
docs/src/app/components/pages/components/Avatar/ExampleSimple.js | pradel/material-ui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import FileFolder from 'material-ui/svg-icons/file/folder';
import FontIcon from 'material-ui/FontIcon';
import List from 'material-ui/List/List';
import ListItem from 'material-ui/List/ListItem';
import {
blue300,
indigo900,
orange200,
deepOrange300,... |
gatsby-site/src/pages/index.js | serendipitist/serendipitist | import React from 'react'
import Link from 'gatsby-link'
const greetings = () => {
let days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
const d = new Date();
const dayName =days[d.getDay()];
return dayName;
}
const IndexPage = () => (
<div>
<h1>Hello people,</h1>
... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | Bogala/create-react-app-awesome-ts | /**
* 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 from 'react';
import aFileWithoutExt from './assets/aFileWithoutExt';
const text = aFileWithoutExt.includes('base64')
? ... |
components/metric.js | digitarald/ppb-server | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import reducers from '../lib/reducers';
import ProfileItem from './profile-item';
const Metric = ({ id, meta, profiles, onMouseEnter, highlight }) => {
const reducer = reducers.get(meta.reducer || 'median');
let $reduced = ... |
src/ReactBoilerplate/Scripts/containers/Manage/Logins/Logins.js | theonlylawislove/react-dot-net | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadExternalLogins, destroyExternalLogins, addExternalLogin, removeExternalLogin } from 'redux/modules/manage';
import { authenticate as externalAuthenticate, clearAuthentication as clearExternalAuthentication } from 'redux/module... |
src/index.js | vaishalshah/react-calculator | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import Master from './Master/Master';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Master />, document.getElementById('root'));
registerServiceWorker();
|
src/components/newHighScoreBox/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, TextInput, Text, StyleSheet, Button } from 'react-native';
class NewHighScoreBox extends Component {
constructor(props){
super(props);
this.onNamePass= this.onNamePass.bind(this);
this.state = {
text... |
test/js/AR/planeSelectorTest.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro Media, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Re... |
RN/reactjs/reactjs-demo/demo/life-cycle.js | puyanLiu/LPYFramework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './index.css';
/**
* 更新阶段
* setState导致React.js重新渲染组件并且把组件的变化应用到DOM元素上的过程,这是一个组件的变化过程
*/
class Header extends Component {
/**
* 一般情况,所有关于组件自身的状态的初始化工作都会放在constructor里面去做
*/
constructor() {
super();
console.log('cons... |
docs/app/Examples/elements/Input/Variations/InputExampleActionDropdown.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
const options = [
{ text: 'This Page', value: 'page' },
{ text: 'This Organization', value: 'org' },
{ text: 'Entire Site', value: 'site' },
]
const InputExampleActionDropdown = () => (
<Input
action={<Dropdown basic floating op... |
src/containers/not-found/index.js | Storj/metadisk-gui | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
examples/src/components/NavBar.js | t-obi/react-video-cover | import React, { Component } from 'react';
import { Link } from 'gatsby';
import css from './NavBar.module.css';
import NavItem from './NavItem';
import { GithubLogo } from './Icons.js';
/* global CONFIG */
class NavBar extends Component {
render() {
return (
<div className={css.NavBar}>
<h1><Link t... |
src/svg-icons/action/input.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInput = (props) => (
<SvgIcon {...props}>
<path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/>
</... |
resources/assets/js/app.js | mrkirby153/KirBotPanel | import NavBar from './components/NavBar';
// We have to do it like this because macOS is case insensitive and will import the wrong component
import Dashboard from './components/dashboard/index';
import AdminSettings from './components/admin/AdminSettings';
import ReactDOM from 'react-dom';
import React from 'react';
... |
myriad-scheduler/src/main/resources/webapp/js/components/HelpComponent.js | apache/incubator-myriad | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
src/js/components/ui/LoadingGif/LoadingGif.js | nekuno/client | import React, { Component } from 'react';
import styles from './LoadingGif.scss';
export default class LoadingGif extends Component {
render() {
return (
<img className={styles.loadinggif} src='/img/safari-pinned-tab.svg' alt='loading'/>
);
}
} |
packages/core/admin/ee/admin/pages/AuthPage/components/Login/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Divider } from '@strapi/design-system/Divider';
import { Stack } from '@strapi/design-system/Stack';
import ... |
src/js/components/app-component.js | dashukin/StyleMe | 'use strict';
import React from 'react';
import AppStore from '../stores/store';
import AppActions from '../actions/actions';
import StylesheetsComponent from './app-stylesheets-component';
import OptionsComponent from './app-options-component';
import FooterActionsComponent from './app-footer-actions-component';
imp... |
src/components/run.js | jxodwyer/dibbl-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
import Router from 'react-router'
import routes from '../config/routes';
// Render the main component into the dom
Router.run(routes, function(Handler){
ReactDOM.render(<Handler /> , document.getElementById('app'));
});
|
js/components/fab/basic.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { View, Platform } from 'react-native';
import { Container, Header, Title, Fab, Button, IconNB, Left, Right, Body, Icon } from 'native-base';
import { Actions } from ... |
src/svg-icons/action/build.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBuild = (props) => (
<SvgIcon {...props}>
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-... |
app/client/index.js | ShandyClub/shandy-club-app | import React from 'react'
import { render } from 'react-dom'
import { isDevelopment } from '../universal/shared/util'
import { init as initAnalytics } from '../universal/shared/util/track'
import Root from '../universal/shared/containers/Root'
import '../universal/shared/style/global'
// app setup
if (!isDevelopment... |
src/svg-icons/social/mood-bad.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (props) => (
<SvgIcon {...props}>
<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 8zm3.5-9c.... |
src/shared/views/collectionItems/collectionItem/CollectionItemDetail/CollectionItemDetail.js | in-depth/indepth-demo | import React from 'react'
import styles from './CollectionItemDetail.css'
const CollectionItemDetail = (props) => {
return (
<div className={styles.main}>
{props.fullDesc.map(desc => (
<div key={desc.sectionid}>
<h3>{desc.sectionTitle}</h3>
<p>{desc.section}</p>
</div>
... |
src/components/Navbar.js | vitalix89/Instagram-Search | import React from 'react';
import { Link, browserHistory } from 'react-router';
import Footer from './Footer';
import Collapse from 'reactstrap/lib/Collapse';
import Navbar from 'reactstrap/lib/Navbar';
import NavbarToggler from 'reactstrap/lib/NavbarToggler';
import NavbarBrand from 'reactstrap/lib/NavbarBrand';
i... |
packages/mineral-ui-icons/src/IconAdjust.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconAdjust(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
src/admin-crud/realities/Container.js | GetGee/G | import React, { Component } from 'react';
const RealitiesContainer = (props) => (
<div>
<h3>Realities</h3>
{props.children}
</div>
);
export default RealitiesContainer;
|
frontend/src/sidebarPost/containers/link-title-container/index.js | OptimusCrime/youkok2 | import React from 'react';
import {connect} from "react-redux";
import {SIDEBAR_POST_LINK_TITLE_CHANGE} from "../../../archive/redux/link/constants";
import {fetchTitleFromUrl as fetchTitleFromUrlDispatch} from "../../../archive/redux/link/actions";
const INPUT_HTML_ID = 'sidebar-create__link--title-input';
const Li... |
springboot/GReact/src/main/resources/static/app/components/forms/editors/MarkdownEditor.js | ezsimple/java | import React from 'react'
import 'script-loader!to-markdown/dist/to-markdown.js'
import 'script-loader!markdown/lib/markdown.js'
import 'script-loader!he/he.js'
import 'script-loader!bootstrap-markdown/js/bootstrap-markdown.js'
export default class MarkdownEditor extends React.Component {
componentDidMount() {
... |
src/components/CandidateNames.js | nick/boulder-vote | import React, { Component } from 'react';
import { withRouter } from 'react-router'
class SmallCandidateProfiles extends Component {
constructor(props) {
super(props)
this.state = { marginLeft: 0 };
}
render() {
return (
<div className="candidate-names">
{(this... |
demos/demo/src/components/Login/Input.js | bdjnk/cerebral | import React from 'react'
export default function Input ({
fieldType, icon, message, placeholder, showError, value,
onChange, onEnter}) {
const onKeyPress = e => {
if (e.key === 'Enter') {
e.preventDefault()
onEnter(e)
}
}
return (
<p className='control has-icon'>
<input classNa... |
client/apps/plugin-status/view.js | Automattic/woocommerce-services | /**
* External dependencies
*/
import React from 'react';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import FormFieldset from 'components/forms/form-fieldset';
import FormLegend from 'components/forms/form-legend';
import GlobalNotices from 'compo... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | sauceSquatch/we_are_razorfish_experience | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/components/app/index.js | ExtremeModeration/CommandCenter | import React from 'react'
import { connect } from 'react-redux'
import { MuiThemeProvider, getMuiTheme } from 'material-ui/styles'
import { AppBar } from 'material-ui'
import { Grid } from 'react-flexbox-grid'
import { MainLeftDrawer } from 'components/navigation'
import { openLeftDrawer, closeLeftDrawer } from 'reduce... |
app/containers/Doctor/components/ListItem/index.js | ryanau/doc_now_client | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import { Glyphicon, Button } from 'react-bootstrap';
import Experiment from 'react-ab-test/lib/Experiment';
import Variant from 'react-ab-test/lib/Variant';
import emitte... |
app/javascript/mastodon/features/ui/components/boost_modal.js | d6rkaiz/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
src/svg-icons/editor/pie-chart-outlined.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChartOutlined = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-... |
website-prototyping-tools/RelayPlayground.js | janusnic/relay | import './RelayPlayground.css';
import 'codemirror/mode/javascript/javascript';
import Codemirror from 'react-codemirror';
import React from 'react';
import ReactDOM from 'react/lib/ReactDOM';
import Relay from 'react-relay'; window.Relay = Relay;
import babel from 'babel-core/browser';
import babelRelayPlaygroundPlu... |
src/icons/MouseIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class MouseIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M26 2.14V18h14c0-8.16-6.11-14.88-14-15.86zM8 30c0 8.84 7.16 16 16 16s16-7.16 16-16v-8H8v8zM22 2.14C14.11 3.1... |
demo/src/routes.js | AlmeroSteyn/Q-A11y | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import A11yFailDetail from './components/A11yFailDetail';
import A11yFailMaster from './components/A11yFailMaster';
import A11yPassDetail from './components/A11yPassDetail';
import A11yPassMaster from './components/A11y... |
src/routes/register/index.js | rowinf/robertirwin.me-v2 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Register from './Registe... |
src/App.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import { Route, Router } from 'react-router';
import ReactGA from 'react-ga';
import createHistory from 'history/createBrowserHistory';
import ScrollToTop from 'shared/components/scrollToTop/scrollToTop';
import Home from './scenes/home/home';
const history = createHistory();
... |
src/app/components/header/header.js | feedm3/unhypem-frontend | /**
* @author Fabian Dietenberger
*/
'use strict';
import React from 'react';
export default () => {
return (
<div className="navbar navbar-default navbar-color navbar-static-top">
<div className="container">
<div className="navbar-header">
<a href="#/" c... |
src/components/moodle/original-wordmark/MoodleOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './MoodleOriginalWordmark.svg'
/** MoodleOriginalWordmark */
function MoodleOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'M... |
form/views/HtmlFieldView.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {html} from 'components';
import FieldWrapper from './FieldWrapper';
const bem = html.bem('HtmlFieldView');
export default class HtmlFieldView extends React.Component {
static propTypes = {
className: PropTypes.string,
editorI... |
components/animals/pekariBelobrady.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/pekariBelobrady/01... |
website/templates/template-doc-page.js | Pop-Code/keystone | import React, { Component } from 'react';
import DocumentTitle from 'react-document-title';
import EditIcon from 'react-icons/lib/go/pencil';
import { rhythm } from '../utils/typography';
import theme from '../theme';
import Container from '../components/Container';
class DocumentPage extends Component {
render () {... |
js/components/loaders/Spinner.android.js | dima11221122/63pokupki-react-native | /* @flow */
import React from 'react';
import ProgressBarAndroid from 'react-native';
import NativeBaseComponent from 'native-base/dist/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/dist/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps... |
react/src/components/MarkdownRenderer.js | rumbleyam/morty-api | /**
* MarkdownRenderer
* Renders Markdown using react-markdown and custom components
* @type {React.Component}
*/
import React from 'react';
import ReactMarkdown from 'react-markdown';
import SyntaxHighlighter from 'react-syntax-highlighter';
import {monoBlue} from 'react-syntax-highlighter/dist/styles';
import {w... |
app/javascript/mastodon/features/ui/components/list_panel.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { fetchLists } from 'mastodon/actions/lists';
import { connect } from 'react-redux';
import { createSelector } from 'rese... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | cybrespace/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displayMedia } from '../../../initial_state';
export default class MediaItem extends ImmutablePureC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.