path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/app.js | ryu047/DBZ-Scouter | import React from 'react';
import ReactDom from 'react-dom';
import MainPage from 'components/mainPage';
ReactDom.render(<MainPage />, document.getElementById('container'));
|
packages/@sanity/studio-hints/src/components/HintCard.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import {Card, Text, Heading, Stack, Flex} from '@sanity/ui'
import {LaunchIcon} from '@sanity/icons'
import {resolveUrl} from './utils'
function HintCard(props) {
const {card, repoId} = props
return (
<Card
tone="inherit"
border
ra... |
src/js/components/icons/base/SocialStripe.js | odedre/grommet-final | /**
* @description SocialStripe SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
... |
information/blendle-frontend-react-source/app/modules/premiumSignup/containers/ConfirmEmail.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import SignUpStore from 'stores/SignUpStore';
import AuthStore from 'stores/AuthStore';
import ConfirmAccountStore from 'stores/ConfirmAccountStore';
import ConfirmEmail from 'modules/premiumSignup/components/ConfirmEmail';
import AffiliatesStore from 'stores/AffiliatesStore';
... |
examples/forms-material-ui/src/components/forms-destroy-wizard-generic/Hook.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { RaisedButton } from 'material-ui';
import config from './config';
export default createReactClass({
displayName: 'Hook',
propTypes: {
model: PropTypes.object.isRequired
},
render: fu... |
src/components/state-badge.component.js | housseindjirdeh/git-point | import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { colors, fonts, normalize } from 'config';
type Props = {
issue: Object,
isMerged: boolean,
text: string,
type: string,
style: Object,
};
const styles = StyleSheet.create({
badge: {
padding: 12,
paddingTop: ... |
src/components/Main.js | zerotung/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取图片相关的数据
let imageDatas = require('../data/imageDatas.json');
// 利用自执行函数,将图片名信息转换为图片URL路径信息
imageDatas = (function genImageURL(imageDatasArr) {
for (let i = 0, j = imageDatasArr.leng... |
examples/shopping-cart/src/components/App.js | optimizely/nuclear-js | 'use strict';
import React from 'react'
import CartContainer from './CartContainer'
import ProductsContainer from './ProductsContainer'
export default React.createClass({
render() {
return (
<div>
<ProductsContainer />
<CartContainer />
</div>
);
}
});
|
src/svg-icons/av/pause-circle-filled.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleFilled = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/>
</SvgIcon>
);
AvPauseCircleFilled = pure(AvP... |
src/components/AllNoneToggle.js | robertkirsz/magic-cards-manager | import React from 'react'
import PropTypes from 'proptypes'
import _every from 'lodash/every'
const AllNoneToggle = ({ colors, toggleAll, toggleNone }) => {
const allChecked = _every(colors, c => c)
const noneChecked = _every(colors, c => !c)
return (
<div className="all-none-checkboxes">
<label>
... |
client/node_modules/uu5g03/dist-node/bricks/number.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js';
import Environment from '../environment/environment.js';
import $ from 'jquery';
import './number.less';
export const Number = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
... |
store-collected-images/webextension-with-webpack/src/popup.js | mdn/webextensions-examples | "use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import uuidV4 from 'uuid/v4';
import preventWindowDragAndDrop from './utils/handle-window-drag-and-drop';
import {saveCollectedBlobs} from './utils/image-store';
class Popup extends React.Component {
constructor(props) {
super(props);
... |
new-lamassu-admin/src/components/Uptime.js | lamassu/lamassu-server | import { makeStyles } from '@material-ui/core'
import Chip from '@material-ui/core/Chip'
import * as R from 'ramda'
import React from 'react'
import {
secondaryColorLighter,
secondaryColorDarker,
offErrorColor,
errorColor,
offColor,
inputFontWeight,
smallestFontSize,
inputFontFamily,
spacer
} from 's... |
src/svg-icons/action/face.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... |
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js | igorbt/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleTwice extends React.Component {
constructor(props) {
super(props);
this.state = {
message: 'Event 1 added to your calendar',
open: fals... |
src/components/PollInput/PollSettings.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import CheckBox from '../CheckBox';
import FormField from '../FormField';
import Select from '../Select';
const messages = defineMessages({
type: {
id: 'poll.type',
defaultMessage: 'P... |
client/src/components/ProductTable.js | wojjas/mega-store | import React from 'react';
import ProductRow from './ProductRow';
import ProductCategoryRow from './ProductCategoryRow';
class ProductTable extends React.Component {
render() {
const filterText = this.props.filterText;
const inStockOnly = this.props.inStockOnly;
let lastCategory = null;
... |
src/components/RoutineFormGroups.js | snsavage/timer-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import NumberField from '../components/NumberField';
import Button from '../components/Button';
import RoutineFormIntervals from './RoutineFormIntervals';
import { Form, Segment, List } from 'semantic-ui-react';
export default class Routi... |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | peterp/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
components/com_sppagebuilder/assets/reactjs/src/helpers/PageListModal.js | hoangyen201201/TrienLamOnline | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import LinkWithTooltip from './tooltip';
import { Modal, ModalManager } from './index'
class PageListModal extends Component {
constructor(props) {
super(props);
this.state = {
status: false,
data: ''
};
}
compo... |
app/screens/loginPrivateKey.js | ixje/neon-wallet-react-native | import React from 'react'
import { View, TextInput, StyleSheet } from 'react-native'
import Button from '../components/Button'
import { DropDownHolder } from '../utils/DropDownHolder'
// redux
import { bindActionCreatorsExt } from '../utils/bindActionCreatorsExt'
import { connect } from 'react-redux'
import { ActionCr... |
js/src/modals/CreateAccount/RawKey/rawKey.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 your option) any lat... |
demo/src/components/App/components/ForkMeOnGitHub/ForkMeOnGitHub.js | moroshko/react-autowhatever | import styles from './ForkMeOnGitHub.less';
import React from 'react';
import PropTypes from 'prop-types';
export default function ForkMeOnGitHub(props) {
const { user, repo } = props;
return (
<a href={`//github.com/${user}/${repo}`} target="_blank" rel="noopener noreferrer">
<img
className={s... |
generators/react-component/templates/component.js | gzgogo/generator-react-web-app |
import './<%= componentName %>.<%= stylesheetExtension %>';
import React from 'react';
class <%= componentName %> extends React.Component {
render() {
return (
<div className="<%= componentName.toLowerCase() %>">
<h1> <%= componentName %> </h1>
</div>
);
}
}
export default <%= compone... |
example/App.js | FaridSafi/react-native-gifted-messenger | import React from 'react';
import {
Platform,
StyleSheet,
Text,
View,
} from 'react-native';
import {GiftedChat, Actions, Bubble, SystemMessage} from 'react-native-gifted-chat';
import CustomActions from './CustomActions';
import CustomView from './CustomView';
export default class Example extends React.Compo... |
app/javascript/components/RoundMap/CompetitorsList/List.js | skyderby/skyderby | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const List = ({ className, children }) => {
return <div className={className}>{children}</div>
}
List.propTypes = {
className: PropTypes.string.isRequired,
children: PropTypes.node
}
export default styled(List)`... |
L/my-app/src/components/bangumi/Week.js | imuntil/React | import React from 'react'
import PropTypes from 'prop-types'
import cssModules from 'react-css-modules'
import TweenOne from 'rc-tween-one'
import styles from './Week.module.scss'
import Day from './Day'
import { weeks } from '@/utils'
function Week({ week, x = 0, duration = 450 }) {
return (
<div styleName="hea... |
src/pages/resume/index.bundle.js | picchietti/picchietti.io | import React from 'react';
import { Link } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { IconSlider } from '@picchietti/components';
import GrowthGraph from '../../components/graphs/growth';
import Picture from '../../components/picture';
import Projects from './co... |
test/app.js | zuozhuo/dip-webpack-config | /**
* Created by zuozhuo on 2017/5/10.
*/
// app.scss import
import './app.scss';
import React from 'react';
import {moduleAConstName, getModuleBName} from './components'
import cssModuleClassNames from './app.module.scss';
window.LOGIN_USER = {firstName: 'foo', lastName: 'bar', age: 21, role: 'client'};
window.ADM... |
docs/app/Examples/collections/Message/States/MessageExampleHidden.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleHidden = () => (
<Message hidden>
You can't see me
</Message>
)
export default MessageExampleHidden
|
src/Parser/Paladin/Retribution/Modules/Items/LiadrinsFuryUnleashed.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Cor... |
geonode/contrib/monitoring/frontend/src/pages/error-details/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import Header from '../../components/organisms/header';
import ErrorDetails from '../../components/organisms/error-detail';
import styles from './styles';
class Error extends React.Component {
static propTypes = {
params: PropTypes.object.isRequired... |
react-native-life/ReactNativeLife/js/Components/Text/Text.js | CaMnter/front-end-life | /**
* @author CaMnter
*/
import React from 'react';
import {
Image,
StyleSheet,
Text,
View
} from 'react-native';
class Entity extends React.Component {
render() {
return (
<Text style={{fontWeight: 'bold', color: '#527fe4'}}>
{this.props.children}
... |
src/components/video_detail.js | Bentopi/React_Youtube_UI | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-resp... |
src/index.js | renvrant/renvrant.github.io | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
// Components
import App from './containers/app';
import Home from './containers/home';
import PageNotFound from './containers/page-not-found';
// Styles
import './styles/index.css'... |
src/components/video_list.js | huynhtastic/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
)
});
return (
<ul cla... |
src/components/TouchableNativeFeedback.js | RealOrangeOne/react-native-mock |
import React from 'react';
import TouchableWithoutFeedback from './TouchableWithoutFeedback';
const TouchableNativeFeedback = React.createClass({
propTypes: {
...TouchableWithoutFeedback.propTypes,
background: React.PropTypes.object
},
statics: {
SelectableBackground() {},
SelectableBackground... |
src/svg-icons/device/brightness-low.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
app/javascript/mastodon/features/directory/index.js | gol-cha/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
examples/global/app.js | valzav/react-foundation-components | /* eslint-disable import/no-unresolved */
import React from 'react';
import ReactDOM from 'react-dom';
import './app.scss';
import { Button } from '../../lib/global/button';
import { ButtonGroup } from '../../lib/global/button-group';
const App = () => (
<div>
<h1>Welcome to Global CSS example!</h1>
<p>
... |
src/Parser/Shaman/Elemental/Modules/Talents/TotemMastery.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBo... |
examples/src/components/CustomRenderField.js | bhstahl/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
examples/example4/target.js | gabrielbull/react-tether2 | import React, { Component } from 'react';
const style = {
background: 'green',
padding: '20px',
height: '200px'
};
class Target extends Component {
render() {
return (
<div style={style}>
Tether Target
</div>
);
}
}
export default Target;
|
src/renderer/components/MapFilter/DataExportDialog/NoData.js | digidem/ecuador-map-editor | import React from 'react'
import Button from '@material-ui/core/Button'
import DialogContentText from '@material-ui/core/DialogContentText'
import { defineMessages, FormattedMessage } from 'react-intl'
import { Template } from './Template'
const msgs = defineMessages({
close: 'Close',
noData: "You don't yet have ... |
packages/js-app-template-universal/src/server/index.js | michalkvasnicak/create-js-app | /* @flow */
import convert from 'koa-convert';
import Koa from 'koa';
import React from 'react';
import staticCache from 'koa-static-cache';
import App from '../shared/App';
import renderHtml from './renderHtml';
import { ASSETS_DIR, PUBLIC_DIR, SERVER_PORT } from './config';
const app = new Koa();
// serve static f... |
packages/wix-style-react/src/StyledNestableList/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
api,
description,
divider,
example,
header,
importExample,
playground,
tab,
tabs,
testkit,
title,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import StyledNestableList from '..';
import { getCollapsedExampleSou... |
src/frontend/src/components/Logo.js | open-austin/influence-texas | import React from 'react'
import { Typography } from '@material-ui/core'
import styled from 'styled-components'
import { Link } from 'react-router-dom'
const LogoWrapper = styled.header`
text-transform: uppercase;
&& {
color: black;
}
&&,
p {
font-size: 2rem !important;
display: inline-block;
... |
src/containers/DevTools.js | cape-io/med-synergies | 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="H"
changePositionKey="W"
defaultIsVisible={false}
>
<L... |
src/App.js | yuchaoqian/BarPlot | import React, { Component } from 'react';
import './App.css';
import Barchart from './BarPlot/BarPlot.js';
class App extends Component {
constructor(){
super();
this.handleDataUrl = this.handleDataUrl.bind(this);
this.handleDataUrlInSearch = this.handleDataUrlInSearch.bind(this);
}
componentDidMount()... |
src/Auth.js | neontribe/gbptm | import React from 'react';
import auth0 from 'auth0-js';
const CLIENT_ID = 'sUts4RKy04JcyZ2IVFgMAC0rhPARCQYg';
const permissionsKey = 'https://toiletmap.org.uk/permissions';
export const AuthContext = React.createContext();
export const useAuth = () => React.useContext(AuthContext);
export const isAuthenticated = ()... |
packages/Modal/shared/Base/index.js | ancestorcloud/trace-ui | import React from 'react'
import ReactModal from 'react-modal'
import { css } from 'glamor'
import { pxToEm, opacity } from '../../../style/utils'
const BaseModal = (
{
width,
height,
maxWidth,
maxHeight = '100%',
minWidth,
minHeight,
overlayBackgroundColor = 'rgba(255, 255, 255, .75)',
... |
packages/interfaces/web-app/src/components/organisms/DetailItem/DetailItem.container.js | assistant-os/assistant-os | import React from 'react'
import { connect } from 'react-redux'
import { getMemory, setValue } from 'redux/os'
import component from './DetailItem'
const mapStateToProps = (state, { actions, id }) => {
let values = {}
actions.forEach(action => {
values[action.id] = getMemory(state, `${action.id}.${id}`)
}... |
frontend/src/components/options/sign-in-credentials/change-email.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import Button from 'misago/components/button'; // jshint ignore:line
import Form from 'misago/components/form';
import FormGroup from 'misago/components/form-group'; // jshint ignore:line
import ajax from 'misago/services/ajax';
import snackbar from 'misago/services/snac... |
test/JumbotronSpec.js | erictherobot/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
docs/src/app/components/pages/components/Avatar/Page.js | owencm/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import avatarReadmeText from './README';
import AvatarExampleSimple from './Exam... |
react/features/base/react/components/web/Switch.js | bgrozev/jitsi-meet | /* @flow */
import { ToggleStateless } from '@atlaskit/toggle';
import React, { Component } from 'react';
type Props = {
/**
* CSS class name.
*/
className: string,
/**
* Indicates whether the switch is disabled or not.
*/
disabled: boolean,
/**
* Handler called when th... |
test/specs/views/Item/ItemContent-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import ItemContent from 'src/views/Item/ItemContent'
import ItemDescription from 'src/views/Item/ItemDescription'
import ItemExtra from 'src/views/Item/ItemExtra'
import ItemHeader from 'src/views/Item/ItemHeader'
import ItemMeta from 'src/views/Item/ItemMeta'
import... |
src/svg-icons/social/person.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPerson = (props) => (
<SvgIcon {...props}>
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPerson = pure(Soc... |
app/containers/LinkFormContainer/index.js | kathydoody/scalable-react-demo | /*
*
* LinkFormContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLinkFormContainer from './selectors';
import LinkForm from '../../components/LinkForm';
import { addLink , addLinkCancelled } from './actions';
export class LinkFormContainer extends React.Component { // e... |
app/components/NotiModal/index.js | pauleonardo/demo-trans | /**
*
* NotiModal
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
Modal,
ModalBackground,
ModalContent,
Notification,
ModalClose,
} from 'bloomer';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
function NotiModal({
active,
close,
type,... |
stories/FieldEnum.stories.js | maputnik/editor | import React from 'react';
import {useActionState} from './helper';
import FieldEnum from '../src/components/FieldEnum';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'FieldEnum',
component: FieldEnum,
decorators: [withA11y],
};
export const BasicFew = ()... |
src/js/components/icons/base/Pin.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/containers/app/settings/account_set/create.js | w280561543/financial | import React from 'react';
import Form from 'antd/lib/form';
import Modal from 'antd/lib/modal';
import Input from 'antd/lib/input';
import Radio from 'antd/lib/radio';
import Button from 'antd/lib/button';
import Message from 'antd/lib/message';
import Cascader from 'antd/lib/cascader';
import { MonthPicker } ... |
src/components/search/SearchForm.js | hui-w/events-vanilla | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import '../../styles/search-form.css';
class SearchForm extends Component {
constructor(props, context) {
super(props, context);
this.handleSubmit = this.handleSubmit.bind(this);
this.handleChange = this.handleChange.bind(this... |
src/index.js | zhso/wanted | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.querySelector('.container-fluid'),
);
|
src/svg-icons/action/trending-flat.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat = pure(ActionTrendingFlat);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
A... |
JS Web/ReactJS/Event and Forms/src/components/form/validationComponents/Invalid.js | mitaka00/SoftUni | import React from 'react'
let Valid = prop => {
return (
<span
role='img'
aria-label='valid'
style={{
display: prop.display ? 'none' : '',
marginLeft: '-23px'
}}
>
❌
</span>
)
}
export default Valid
|
app/src/client/components/project/ProjectSettings.js | TeamLambda/DockDev | import React from 'react';
const ProjectSettings = () => <div>settings for project</div>;
export default ProjectSettings;
|
src/parser/warrior/arms/modules/spells/azeritetraits/LordOfWar.js | fyruna/WoWAnalyzer | import { calculateAzeriteEffects } from 'common/stats';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import React from 'react';
import Events from 'parser/core/Events';
impor... |
src/components/draggable/drag.js | BryceHQ/form-designer | import React from 'react';
import _ from 'lodash';
import $ from 'jquery';
import classnames from 'classnames';
import Colors from 'material-ui/lib/styles/colors';
import Actions from '../../actions/actions';
import Store from '../../stores/store';
import {Mode} from '../../constants/constants';
const Drag = React.... |
examples/pinterest/app.js | okcoker/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
app/src/routes/UserLogin.js | grantrules/bikeindustryjobs | import React from 'react';
import { withRouter, Route, Link } from 'react-router-dom';
import { Login, Logout, RecoverPassword, Register } from '../components/User';
import SVGLogo from '../components/SVGLogo';
const HistoryLink = withRouter(({history, ...props}) => {
var domain = `${window.location.protocol}//${win... |
jspm_packages/npm/react-router@2.6.1/es6/IndexRedirect.js | Imms/imms.github.io | /* */
"format cjs";
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;
... |
zql-frontend/components/Chips.js | Zubdano/zql | import React, { Component } from 'react';
import update from 'react-addons-update';
import { connect } from 'react-redux'
import { fromJS, List, Map } from 'immutable';
import { Table } from 'react-materialize';
import './Chips.scss';
class Chips extends Component {
defaultProps = {
placeholder: 'Add a chip.... |
src/components/Discussion.js | bryaneaton13/discussion-comments | import React, { Component } from 'react';
import { connect } from 'react-redux';
import FlipMove from 'react-flip-move';
import Card from 'material-ui/lib/card/card';
import CardHeader from 'material-ui/lib/card/card-header';
import Avatar from 'material-ui/lib/avatar';
import CardTitle from 'material-ui/lib/card/card-... |
app/containers/LanguageProvider/index.js | dreamdojo/converter | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
client/modules/App/__tests__/Components/Header.spec.js | mraq1234/mod11 | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
src/parser/shaman/restoration/modules/features/checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ResourceLink from 'common/ResourceLink';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { TooltipElement } from 'common/Tooltip';
import Checklist from 'parser/s... |
frontend/src/Components/Table/Cells/TableSelectCell.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import TableRowCell from './TableRowCell';
import styles from './TableSelectCell.css';
class TableSelectCell extends Component {
//
// Lifecycle
componentDidMount() {
const {
... |
example/examples/CustomMarkers.js | carleryd/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE... |
lib/components/transit-mode-selector.js | conveyal/analysis-ui | import {FormControl, FormLabel, FormHelperText, Select} from '@chakra-ui/react'
import startCase from 'lodash/startCase'
import React from 'react'
import {ALL_TRANSIT_MODES} from '../constants'
const toStartCase = (o) => startCase(o.toLowerCase())
const r5Warning =
'Note: routing engine versions prior to v4.6.0 wi... |
src/mui/input/DisabledInput.js | RestUI/rest-ui | import React from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import get from 'lodash.get';
import FieldTitle from '../../util/FieldTitle';
const DisabledInput = ({ label, record, resource, source }) => <TextField
value={get(record, source)}
floatingLabelText={<F... |
src/component/x.js | instructure-react/react-toggle | import React from 'react'
export default () => (
<svg width='10' height='10' viewBox='0 0 10 10'>
<path d='M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12' fill='#fff' fillRule='evenodd' />
</svg>
)
|
src/icons/font/LastPageIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
const LastPageIcon = (props, context) => {
let theme =
context.chamelTheme && context.chamelTheme.fontIcon
? context.chamelTheme.fontIcon
:... |
packages/wix-style-react/src/StatisticsWidget/docs/examples/InvertedTrends.js | wix/wix-style-react | /* eslint-disable no-undef */
import React from 'react';
import { StatisticsWidget } from 'wix-style-react';
render(
<div style={{ background: '#fff' }}>
<StatisticsWidget
items={[
{
value: '500',
description: 'Customers',
percentage: 21,
},
{
... |
__tests__/index.android.js | oksimple/jianshuReactNative | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
test/fixtures/transpile-css-prop-add-require/code.js | styled-components/babel-plugin-styled-components | // @flow
import React from 'react'
export default () => (
<div
css={`
width: 35em;
`}
/>
)
|
app/components/ReposList/index.js | kaizen7-nz/gold-star-chart | import React from 'react';
import PropTypes from 'prop-types';
import List from 'components/List';
import ListItem from 'components/ListItem';
import LoadingIndicator from 'components/LoadingIndicator';
import RepoListItem from 'containers/RepoListItem';
function ReposList({ loading, error, repos }) {
if (loading) ... |
src/layouts/PageLayout/PageLayout.js | sdurighello/react-github-issues | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>GitHub API Assignment</h1>
<IndexLink to='/' activeClassName='page-layout__nav-item-... |
examples/src/components/CustomOption.js | vomchik/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
src/components/views/globals/MatrixToolbar.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket 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 applicable law or agreed to in writing, sof... |
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js | mmrtnz/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const style = {
margin: 12,
};
const RaisedButtonExampleSimple = () => (
<div>
<RaisedButton label="Default" style={style} />
<RaisedButton label="Primary" primary={true} style={style} />
<RaisedButton label="Secondary" se... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/containers/App/index.js | strapi/strapi-examples | /**
*
* 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)
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { createStructuredSelector } fro... |
node_modules/react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js | TrungSpy/React-Native-SampleProject | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
v0.2/src/ui/pages/_todo.js | sakulstra/firebase-web-todo | import React from 'react';
import { Link } from 'react-router';
const Todo = () => (
<div>
<Link to="/">Back to home</Link>
<p>At some point in this tutorial i'll render the todos!</p>
</div>
);
export default Todo; |
src/components/Pagination/Pagination.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
import theme from 'theme'
const styles = {
root: {
display: 'flex',
},
indicator: {
height: 12,
width: 12,
margin: '0 0 0 15px',
borderRadius: '50%',
backgroundColor: theme.color.grey.cleanSock,
},... |
src/svg-icons/av/closed-caption.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvClosedCaption = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5... |
examples/huge-apps/routes/Profile/components/Profile.js | malte-wessel/react-router | import React from 'react'
class Profile extends React.Component {
render() {
return (
<div>
<h2>Profile</h2>
</div>
)
}
}
module.exports = Profile
|
src/svg-icons/av/hd.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.