path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/inputs/input.js | awaseem/Jam | import React from 'react';
import ReactDom from 'react-dom';
import anime from 'animejs';
import styles from '../../css/skeleton.css';
class Input extends React.Component {
constructor(props) {
super(props);
this.focus = this.focus.bind(this);
this.blur = this.blur.bind(this);
this.handleChange = thi... |
src/components/App/App.js | mdapper/redux-intro | import React, { Component } from 'react';
import styles from './App.css';
class App extends Component {
render() {
return (
<div className={styles.app}>
<h1>Hello World!</h1>
</div>
);
}
}
export default App;
|
blueocean-material-icons/src/js/components/svg-icons/action/tab-unselected.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTabUnselected = (props) => (
<SvgIcon {...props}>
<path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5... |
src/components/GoToTop/GoToTop/GoToTop.js | easingthemes/easingthemes.github.io | import React from 'react';
/**
* React component implementation.
*
* @author dfilipovic
* @namespace ReactApp
* @class GoToTop
* @extends ReactApp
*/
export class GoToTop extends React.Component {
//---------------------------------------------------------------------------------------------------------------... |
src/containers/ui/Menu/MenuView.js | eventures-io/ldn-retail-demo | /**
* Menu Contents
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Alert,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { Actions } from 'react-native-router-flu... |
MobileApp/node_modules/react-native-elements/example/src/tabs/fonts.js | VowelWeb/CoinTradePros.com | import Expo from 'expo';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { StackNavigator } from 'react-navigation';
import FontsHome from '../views/fonts_home';
import FontsDetails from '../views/fonts_detail';
const FontsTabView = ({ navigation }) => (
<Fon... |
src/Header.js | ChangoMan/hunter-react | import React, { Component } from 'react';
import MainNav from './Header/MainNav';
export default class Header extends Component {
render() {
return (
<header className="site-header">
<div className="site-header__main">
<div className="container">
... |
app/containers/LandingPage.js | alexko13/block-and-frame | import React, { Component } from 'react';
import Signin from './Signin';
import Signup from './Signup';
import SplashImage from '../components/landing/SplashImage';
class LandingPage extends Component {
constructor(props) {
super(props);
this.state = {
showSignin: false,
showSignup: false,
};... |
app/javascript/mastodon/features/explore/suggestions.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import AccountCard from 'mastodon/features/directory/components/account_card';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { ... |
app/javascript/mastodon/components/status_content.js | masarakki/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permalink';
import classnames from 'classnames';
import EnqueteContainer from '../features/en... |
console-ui/src/components/DiffEditorDialog/DiffEditorDialog.js | alibaba/nacos | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 applica... |
scripts/ImageEdit.js | krulmacius/sdasdasdasfgasdawsdwadawd | import React from 'react';
import axios from 'axios';
import {ModalContainer, ModalDialog} from 'react-modal-dialog';
import Dropzone from 'react-dropzone'
import Cropper from 'react-cropper';
import b64toBlob from 'b64-to-blob';
import FileUploadProgress from 'react-fileupload-progress';
import 'cropperjs/dist/cropp... |
src/js/components/Dashboard/FileInsertLayer.js | grommet/grommet-cms-boilerplate | import React from 'react';
import Layer from 'grommet/components/Layer';
import Box from 'grommet/components/Box';
import Form from 'grommet/components/Form';
import Header from 'grommet/components/Header';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
im... |
src/components/common/TextInput.js | great-design-and-systems/cataloguing-app | import PropTypes from 'prop-types';
import React from 'react';
export const TextInput = ({ className, type = 'text', disabled, required, label, onChange, message, invalid, name, value }) => {
let inputClass = 'text-input clearfix form-group ' + (className || '');
return (<div className={!invalid ? inputClass : inp... |
src/components/WaitList/SimpleRow.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import withProps from 'recompose/withProps';
import userCardable from '../../utils/userCardable';
import Avatar from '../Avatar';
import Username from '../Username';
import Position from ... |
gadget-system-teamwork/src/components/common/Search.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import gadgetActions from '../../actions/GadgetActions'
class Search extends React.Component {
constructor(props){
super(props)
this.state = {
search: ''
}
this.handleChange = this.handleChange.bind(this)
this.handleSearch = this.handleSearch.bind(this)
}
han... |
packages/frontend/src/index.js | ehawk61/AngularJSApp | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
examples/official-storybook/components/addon-measure/ShadowRoot.js | storybooks/storybook | import React from 'react';
import PropTypes from 'prop-types';
// eslint-disable-next-line import/no-extraneous-dependencies
import { drawSelectedElement } from '@storybook/addon-measure/dist/cjs/box-model/visualizer';
// eslint-disable-next-line import/no-extraneous-dependencies
import { init, destroy } from '@storybo... |
packages/react-jsx-highcharts/src/components/BubbleSeries/BubbleSeries.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Series from '../Series';
class BubbleSeries extends Component {
static propTypes = {
id: PropTypes.string.isRequired
};
render () {
return (
<Series {...this.props} type="bubble" />
);
}
}
export default Bu... |
public/js/cat_source/es6/components/header/cattol/JobMetadata.js | matecat/MateCat | import React from 'react'
import JobMetadataModal from '../../modals/JobMetadataModal'
import SegmentStore from '../../../stores/SegmentStore'
import {ModalWindow} from '../../modals/ModalWindow'
class JobMetadata extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
openModal()... |
src/components/Chat/NotificationMessages/RoleUpdateMessage.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import upperCaseFirst from '../../../utils/upperCaseFirst';
import UserNotificationMessage from './UserNotificationMessage';
const getLangKey = (updateType) => {
if (updateType === 'add') {
return 'chat.rolesAdded';
}
return 'chat.rolesRemoved';
... |
app/components/Footer/index.js | gihrig/react-boilerplate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
app/javascript/components/Schedule/Preview.js | ruby-no-kai/cfp-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Preview extends Component {
render() {
const { preview, startTime } = this.props;
const style = {
top: (preview.startTime - Math.floor(startTime)) * 90 + 'px',
height: (preview.endTime - preview.startTime) * 90 +... |
src/svg-icons/content/text-format.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
collect-webapp/frontend/src/backuprestore/pages/BackupPage.js | openforis/collect | import React, { Component } from 'react';
import { Col, Container, Form, FormGroup, Input, Row } from 'reactstrap';
import Button from '@mui/material/Button';
import { connect } from 'react-redux';
import * as JobActions from 'actions/job'
import { SimpleFormItem } from 'common/components/Forms'
import ServiceFactory ... |
examples/src/components/CustomSingleValue.js | jakeland/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
src/native/app/components/Checkbox.js | robinpokorny/este | // @flow
import React from 'react';
import { Button } from './';
import { Image } from 'react-native';
type Props = {
checked?: boolean,
onPress: () => void,
style?: any,
};
const Checkbox = ({ checked, onPress, style }: Props) => {
const image = checked
? require('./img/CheckboxChecked.png')
: requir... |
TestDemos/index.ios.js | AzenXu/ReactNativeTest | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var HelloWord = require('./examples/LessonExamples/IA-HelloWord');
var ViewDemo = require('./examples/LessonExam... |
docs/app/Examples/elements/Segment/Types/SegmentExampleStacked.js | clemensw/stardust | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleStacked = () => (
<Segment stacked>
Pellentesque habitant morbi tristique senectus.
</Segment>
)
export default SegmentExampleStacked
|
frontend/src/Settings/ImportLists/Options/ImportListOptions.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import FieldSet from 'Components/FieldSet';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Lo... |
node_modules/react-dnd/examples/_dustbin-interesting/Container.js | asm-products/notello | 'use strict';
import React from 'react';
import makeDustbin from './makeDustbin';
import makeItem from './makeItem';
import ItemTypes from './ItemTypes';
import { NativeDragItemTypes } from 'react-dnd';
const Container = React.createClass({
renderDustbin(accepts) {
const Dustbin = makeDustbin(accepts);
retu... |
imports/ui/components/annotations/AnnotateWidget/AnnotateWidget.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd fro... |
webapp/src/components/__tests__/buttons/IconButtonDropdown.spec.js | unicef/rhizome | import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import IconButtonDropdown from '../../button/IconButtonDropdown'
import IconButton from '../../button/IconButton'
import Dropdown from '../../dropdown/Dropdown'
import sinon from 'sinon'
describe ('IconButtonDropdown', () => {
l... |
app/javascript/flavours/glitch/features/ui/components/actions_modal.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'flavours/glitch/components/status_content';
import Avatar from 'flavours/glitch/components/avatar';
i... |
packages/material-ui-icons/src/SignalWifi1BarLock.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /><path d="M15.5 14.5c0-2.8 2... |
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js | koenvg/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCollapsing = () => {
return (
<Table collapsing>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
src/scripts/pages/Organisations.page.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* 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
* (at ... |
examples/js/style/td-class-string-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/index.js | ebn646/redux-google-maps | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './containers/app';
import reducers from './reducers';
import thunk from 'redux-thunk';
import {Ro... |
src/svg-icons/image/exposure-zero.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureZero = (props) => (
<SvgIcon {...props}>
<path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44... |
src/interface/Tooltip.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from '@wowanalyzer/react-tooltip-lite';
import './Tooltip.scss';
export default class Tooltip extends React.Component {
static propTypes = {
/**
* REQUIRED: Content of the tooltip
*/
content: PropTypes.node.isRequir... |
local-cli/generator/templates/index.ios.js | jeffchienzabinet/react-native | /**
* 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 <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/svg-icons/image/timer-10.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
packages/pix-web/src/controllers/libraries/index.js | madjam002/pix | import React from 'react'
import {compose} from 'recompose'
import {withRouter} from 'react-router'
import {gql, connectGraph} from 'react-graphql'
import {Tree, PageWithSidebar} from 'ui'
export default compose(
withRouter,
connectGraph({
query: () => gql`
query {
isFirstRun
viewer {
... |
packages/bonde-admin/src/components/share/tell-a-friend.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { FormattedMessage } from 'react-intl'
import { FacebookShareButton, TwitterShareButton, WhatsAppShareButton } from '@/components/share'
const TellAFriend = ({
preview,
href,
message,
mobilization: {
twitter_share_text: twitterShareText
... |
Magistrate/client/components/filterBar.js | Pondidum/Magistrate | import React from 'react'
const FilterBar = ({ filterChanged }) => (
<div className="filter-bar col-sm-5 pull-right">
<input
type="text"
className="form-control"
placeholder="filter..."
onChange={e => filterChanged(e.target.value)}
/>
</div>
);
export default FilterBar
|
client/modules/App/components/LoginButton/LoginButton.js | caleb272/ProjectAccent | import React from 'react'
export function LoginButton(props, context) {
const login = () => context.router.replace('/login')
return (
<ul className="right">
<li>
<a onClick={login}>
<i className="fa fa-2x fa-sign-in" aria-hidden="true"></i>
</a>
</li>
</ul>
)
}
Log... |
frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import Link from 'Components/Link/Link';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import transl... |
src/components/common/svg-icons/communication/dialer-sip.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialerSip = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ... |
src/collections/Breadcrumb/Breadcrumb.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getUnhandledProps,
getElementType,
META,
SUI,
} from '../../lib'
import BreadcrumbDivider from './BreadcrumbDivider'
import BreadcrumbSection from './Brea... |
src/common/index.js | MelindaHasselbring/XtremeValue | import React from 'react'
import { Root } from '../components'
import { Routing } from '../routing'
import createStore from '../store'
export const configureStore = initialState => {
return {
...initialState
}
}
export const configureRootComponent = ({
preloadedState,
history
}) => {
const store = cr... |
frontend/src/Settings/Notifications/Notifications/Notifications.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import translate f... |
docs/app/Examples/modules/Progress/Variations/ProgressExampleInvertedColor.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Progress, Segment } from 'semantic-ui-react'
const ProgressExampleInvertedColor = () => (
<Segment inverted>
<Progress percent={32} inverted color='red' label />
<Progress percent={59} inverted color='orange' label />
<Progress percent={13} inverted color='yellow' label... |
react-lite/index.js | bfocht/react-meetup-20161214 | import React from 'react';
import { render } from 'react-dom';
import Index from './src/components/index';
render(<Index items={[1,2,3]} />, document.getElementById('js-main'));
|
src/svg-icons/communication/stay-primary-landscape.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
app/components/sidebar-menu.js | joeyschroeder/speedometer-app | import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import PropTypes from 'prop-types';
import { SidebarMenuButton } from './sidebar-menu-button';
import { Variables } from '../assets/styles/variables';
const styles = StyleSheet.create({
container: {
alignItems: 'cen... |
app/javascript/mastodon/features/list_timeline/index.js | NS-Kazuki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/shared/Card.js | Brandon-J-Campbell/codemash | import React from 'react';
import styles from './Card.css';
export default function Card({ children }) {
return <div className={styles.card}>{children}</div>;
} |
ignite/DevScreens/ThemeScreen.js | infinitered/ChainReactApp | import React from 'react'
import { View, ScrollView, Text, Image, TouchableOpacity } from 'react-native'
import { Colors, Fonts, Images } from './DevTheme'
import R from 'ramda'
// Styles
import styles from './Styles/ThemeScreenStyles'
// Colors
const colors = R.keys(Colors)
// Font Types
const types = R.keys(Fonts.t... |
src/client/assets/javascripts/app/routes.js | pajakoo/shopper | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from './App';
import FriendsView from 'features/friends/components/FriendsView';
import NotFoundView from 'components/NotFound';
export default (
<Route path="/" component={App}>
<IndexRoute component={FriendsView}... |
app/components/tabs/profile/index.js | JohnKim/react-native-boilerplate |
import React, { Component } from 'react';
import {
View,
Navigator,
} from 'react-native';
// S5 제공 라이브러리
import {
S5ListContainer,
S5ProfilePicture,
S5PureListView,
S5EmptyListRow,
S5StyleSheet,
} from 's5-lib'
import { logOutWithPrompt, loadPostByPage } from 's5-action';
import { connect } from... |
app/extensions/safe/auth-web-app/components/card_loader_full.js | joshuef/peruse | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export default class CardLoaderFull extends Component {
static propTypes = {
msg: PropTypes.string,
};
render() {
return (
<div className="full-loader">
<div className="full-loader-b">
<div className="f... |
src/svg-icons/maps/local-drink.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
Week01-ReactBasics/react-simple.js | bmeansjd/ISIT320_means2017 | import React from 'react';
export default class ReactBasics extends React.Component {
render() {
return
<h1> An H1 element in a React Component</h1>
;
}
} |
src/svg-icons/action/gavel.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGavel = (props) => (
<SvgIcon {...props}>
<path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z... |
src/App.js | Zangriev/SampleApplication | import React from 'react';
import Header from './Components/Header.js';
const App = (props) => {
return (
<div>
<Header />
{props.children}
</div>
);
}
export default App; |
blueocean-material-icons/src/js/components/svg-icons/communication/call-merge.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge.displayName = 'CommunicationCall... |
src/components/profile.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
React Fundamentals/EXAM_19.11.2017/exam/src/App.js | NikiStanchev/SoftUni | import React, { Component } from 'react';
import {Switch, Route, withRouter} from 'react-router-dom'
import {connect} from 'react-redux'
import {logoutAction} from './actions/authActions'
import HomePage from './component/HomePage/HomePage'
import LoginPage from './component/Auth/LoginPage'
import RegisterPage from '.... |
src/Parser/Druid/Restoration/Modules/Features/Efflorescence.js | enragednuke/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
const DUR... |
node_modules/react-bootstrap/es/DropdownButton.js | NickingMeSpace/questionnaire | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
dashboard-ui/app/components/dashboardproject/manageKeys.js | CloudBoost/cloudboost | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import OptionsModal from './optionsModal';
import { Modal } from 'react-bootstrap';
export class DeleteApp extends React.Component {
static propTypes = {
deleteButtonState: PropTypes.any,
appId... |
src/svg-icons/device/brightness-auto.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessAuto = (props) => (
<SvgIcon {...props}>
<path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ... |
client/component/redirect-edit/source-url.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { getSourceFlags } from './constants';
import TableRow from './table-row';
import { MultiOptionDropdown } from 'wp-plugin-components';
const getUrlFlags = ( { flag_case,... |
src/svg-icons/content/create.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentCreate = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/... |
src/Parser/DestructionWarlock/Modules/Features/Havoc.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon... |
src/pages/sexual-health/healthy-relationships/HealthyRelationships.js | RHoKAustralia/madapt-react-frontend | import React, { Component } from 'react';
class HealthyRelationships extends Component {
componentDidMount() {
window.analytics.page();
}
render() {
return (
<div>
<h1>Healthy Relationships</h1>
<p>Most people’s lives are primarily defined by the relationships they have - personal a... |
pages/less.js | RossAD/MyWebsite | import React from 'react'
import './example.less'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi lessy friends`}>
<div>
<h1
... |
src/svg-icons/maps/person-pin-circle.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPinCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0... |
src/app/components/bus-stops/bus-stops.js | swcraftersclm/katangapp-frontend | /**
* Copyright 2016-today Software swcraftersclm
*
* 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 ... |
cloud/dashboard/src/components/ErrorMessage.js | iotivity/iotivity | /*
* //******************************************************************
* //
* // Copyright 2017 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use thi... |
test/test_helper.js | Ianpig/mobile-select | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/VideoPlayer/MP4/Stream.js | matmoi/react-adaptive-streaming | import React from 'react';
import PropTypes from 'prop-types';
import DropdownPanel from '../../utils/DropdownPanel.js'
export default class PlayerStream extends React.Component {
shouldComponentUpdate(newProps,newState) {
return (newProps.loadedmetadata && newProps.player)
}
render() {
co... |
docs/src/pages/customization/components/GlobalThemeOverride.js | lgollut/material-ui | import React from 'react';
import { ThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
const theme = createMuiTheme({
overrides: {
MuiButton: {
root: {
fontSize: '1rem',
},
},
},
});
export default function GlobalThemeOverrid... |
components/messenger.js | Yutenko/stories360 | import React from 'react'
import messenger from '../stores/messenger.js'
import Snackbar from 'material-ui/Snackbar'
import {observer} from 'mobx-react'
@observer
class Messenger extends React.Component {
render () {
const store = messenger
return (
<Snackbar
action={store.withAction?store.a... |
src/components/Header/Header.js | hnikupet/dddhackaton | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/routes/home/index.js | kaynenh/ReactBudget | /**
* 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 Home from './Home';
impo... |
app/components/Permission/index.js | czy0729/react-alumni | /**
* Permission
* @version 170217 0.1
* @version 170224 1.0
*/
'use strict';
import React from 'react';
const prefixCls = 'components__permission';
/*
rules={[{
condition : [Const.user_type.super],
type : 'oneOf',
value : self.user_type,
}, {
condition : [Const.user_detail_type.self],
... |
websrc/components/LabelSelectList.js | Ricky-Nz/gear-website | import React from 'react';
import Relay from 'relay';
import { SearchListItem } from './elements';
import LabelItem from './LabelItem';
class LabelSelectList extends React.Component {
constructor(props) {
super(props);
this.state = this.onPropChanged(props);
}
componentWillReceiveProps(nextProps) {
if (nextPr... |
src/components/ImgLabel/ImgLabel.js | div5yesh/divchitroda | import React, { Component } from 'react';
import './ImgLabel.css';
import '../FontAwesome/css/font-awesome.css';
class ImgLabel extends Component{
render() {
const imgClass = `fa fa-${this.props.img} Imglabel-img`;
return (
<div className="Imglabel">
<div className={imgClass}></div> {this.props.label}
... |
src/line-graph.js | jwarning/react-svg-graph | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
mixins: [PureRenderMixin],
getDefaultProps() {
return {
graphWidth: 0,
graphHeight: 0,
maxValue: 0,
oldMaxValue: 0,
data: [],
oldData: [],
percen... |
ui/src/main/js/components/UpdatePreview.js | medallia/aurora | import React from 'react';
import { Link } from 'react-router-dom';
import PanelGroup, { Container } from 'components/Layout';
import { RelativeTime } from 'components/Time';
import { getClassForUpdateStatus, updateStats } from 'utils/Update';
export default function UpdatePreview({ update }) {
const stats = updat... |
src/containers/auth/SignupScreen.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Signup from '../../components/auth/Signup';
import UserStore from '../../stores/UserStore';
import { gaPage } from '../../lib/analytics';
import { globalError as globalErrorPropType } fr... |
src/public/js/navigationButton.js | bbondy/brianbondy.node | import React from 'react'
export default class NavigationButton extends React.Component {
render () {
return <a href={this.props.src}><span className='navigationButton'>{this.props.text}</span></a>
}
}
|
docs/src/app/components/pages/components/Tabs/ExampleControlled.js | spiermar/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
export default class TabsExampleControlled extends React.Component {
constructor(props) {
super(props);
this.state =... |
src/searchbar/SearchBar-default.js | martinezguillaume/react-native-elements | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
ActivityIndicator,
View,
StyleSheet,
TextInput,
Platform,
Text as NativeText,
} from 'react-native';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import colors from '../config/colors';
import norma... |
docs/app/Examples/views/Feed/Content/FeedExampleDate.js | ben174/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'
const FeedExampleDate = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summar... |
app/javascript/mastodon/features/ui/components/report_modal.js | pinfort/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
src/svg-icons/navigation/apps.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationApps = (props) => (
<SvgIcon {...props}>
<path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/>
</SvgIcon>
... |
docs/app/Examples/modules/Embed/Types/EmbedExampleVimeo.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Embed } from 'semantic-ui-react'
const EmbedExampleVimeo = () => (
<Embed
id='125292332'
placeholder='http://semantic-ui.com/images/vimeo-example.jpg'
source='vimeo'
/>
)
export default EmbedExampleVimeo
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.