path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/react-bootstrap/es/NavbarHeader.js | WatkinsSoftwareDevelopment/HowardsBarberShop | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/icons/Crop169Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Crop169Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 12H10c-2.21 0-4 1.79-4 4v16c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V16c0-2.21-1.79-4-4-4zm0 20H10V16h28... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
app/components/api_access_token_code/APIAccessTokenCodeAuthorize.js | buildkite/frontend | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import PageWithContainer from 'app/components/shared/PageWithContainer';
import Button from 'app/components/shared/Button';
import Spinner from 'app/compon... |
app/components/layout/Navigation/dropdown-button.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class DropdownButton extends React.PureComponent {
static displayName = "Navigation.DropdownButton";
static propTypes = {
style: PropTypes.object,
className: PropTypes.string,
children: P... |
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js | owencm/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
export default class TimePickerExampleComplex extends React.Component {
constructor(props) {
super(props);
this.state = {value24: null, value12: null};
}
handleChangeTimePicker24 = (event, date) => {
this.setState({value24:... |
app/components/Home.js | sahat/mastersofcode-web | import React from 'react';
import {Link} from 'react-router';
let socket;
class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
fundsRaised: 2067.43,
fundsGoal: 3000
}
}
componentDidMount() {
socket = io.connect();
var fundsRaisedDom = this.refs... |
packages/rmw-shell/src/providers/Firebase/Docs/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
src/library/validations/components/TextArea.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import defaultValidations from '../constants/defaultValidations'
import classNames from 'classnames';
import FormActions from '../actions/FormActions';
import FormStore from '../stores/FormStore';
// TODO: Show message text as an array of vali... |
testClient/components/CurrStats.js | dmckirnan/ServerHive | import React from 'react';
import Bar from './Bar';
const normalizeBars = (keys, currStats) => {
let divisor = 1;
for (let i = 0; i < keys.length; i += 1) {
// console.log('yo', currStats[keys[i]]);
if (currStats[keys[i]] > 75 && currStats[keys[i]] / 75 > divisor) divisor = Math.floor(currStats[keys[i]] / ... |
react/src/components/NestedModelControls/index.js | sinfin/folio | import React from 'react'
import { makeConfirmed } from 'utils/confirmed'
const NestedModelControls = ({ moveUp, moveDown, remove, edit, vertical }) => {
let btnGroupClassName = 'btn-group mr-1'
if (vertical) {
btnGroupClassName = 'btn-group btn-group-vertical align-items-center'
}
const destroyButton =... |
components/ParallaxContainer/ParallaxContainer.js | NGMarmaduke/bloom | /*
global
window: true,
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { subscribe } from 'subscribe-ui-event';
import cx from 'classnames';
import css from './ParallaxContainer.css';
export default class ParallaxContainer extends Component {
static propTypes= {
c... |
src/components/chart.js | sprazzeus/redux-weather-tutorial | import React from 'react'
import _ from 'lodash'
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'
function average (data) {
return _.round(_.sum(data)/data.length)
}
export default (props) => {
return (
<div>
<Sparklines height={120} width={180} data={props.data}... |
src/components/Send/sendForm.js | ChronoBank/ChronoWAVES | import React from 'react'
import {Field, reduxForm} from 'redux-form';
import {Card, CardText, CardActions} from 'material-ui/Card';
import {Grid, Row, Col} from 'react-flexbox-grid-aphrodite';
import FlatButton from 'material-ui/FlatButton';
import IdentityIcon from '../IdentityIcon';
import {SendIcon} from '../Icon... |
circleci-demo-javascript-express-master/client/modules/Post/__tests__/components/PostCreateWidget.spec.js | RTHMaK/RPGOne | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/components/PropTable.js | Hacker0x01/react-storybook-addon-info | import React from 'react';
import PropVal from './PropVal';
const PropTypesMap = new Map();
for (const typeName in React.PropTypes) {
if (!React.PropTypes.hasOwnProperty(typeName)) {
continue;
}
const type = React.PropTypes[typeName];
PropTypesMap.set(type, typeName);
PropTypesMap.set(type.isRequired, ty... |
src/components/PreviousMeetupsList.js | sjalgeo/mancreact-client | import React from 'react';
import { Link } from 'react-router-dom';
import { groupBy } from 'lodash';
import moment from 'moment';
const PreviousMeetupsList = ({ events }) => {
const eventsByYear = groupBy(events, event =>
moment(event.time).format('YYYY'));
const sortedYears = Object.keys(eventsByYear).sort()... |
client/admin/info/InstancesSection.stories.js | iiet/iiet-chat | import React from 'react';
import { dummyDate } from '../../../.storybook/helpers';
import { InstancesSection } from './InstancesSection';
export default {
title: 'admin/info/InstancesSection',
component: InstancesSection,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
],
};
const instances = [
{... |
libraries/react/base-component/src/AppIntro.js | vivaxy/course | /**
* @since 2017-05-09 10:20:57
* @author vivaxy
*/
import React from 'react';
import BaseComponent from './BaseComponent';
export default class AppIntro extends BaseComponent {
state = {
count: 1,
};
componentDidMount() {
this.on('add', (value) => {
this.setState({
count: this.state... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/crop-rotate.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 2... |
app/components/ProductPage.js | cqlanus/bons | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { createCartOrder, addToCart } from '../reducers/cart'
import CartSideBarContainer from './CartSidebar'
class singleProduct extends React.Component {
constructor() {
super()
this.state = {
quantit... |
examples/todos/components/App.js | mikekidder/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
lib/head.js | sedubois/next.js | import React from 'react'
import sideEffect from './side-effect'
class Head extends React.Component {
static contextTypes = {
headManager: React.PropTypes.object
}
render () {
return null
}
}
export function defaultHead () {
return [<meta charSet='utf-8' className='next-head' />]
}
function reduce... |
react/features/base/dialog/components/Dialog.web.js | KalinduDN/kalindudn.github.io | import React from 'react';
import { connect } from 'react-redux';
import AbstractDialog from './AbstractDialog';
import StatelessDialog from './StatelessDialog';
/**
* Web dialog that uses atlaskit modal-dialog to display dialogs.
*/
class Dialog extends AbstractDialog {
/**
* Web dialog component's prope... |
src/main.js | ziel5122/pdie | import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import React from 'react';
import { Provider } from 'react-redux';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { createStore } from 'redux';
import App from './App';
impor... |
examples/src/components/States.js | esleducation/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = React.createClass({
displayName: 'StatesField',
propTypes: {
label: React.PropTypes.string,
searchable: React.PropTypes.bool,
},
getDefaultProps () {
return {
label: 'States:',
sea... |
docs/app/Examples/elements/Button/Content/ButtonConditionalsExample.js | jcarbo/stardust | import React from 'react'
import { Button } from 'stardust'
const ButtonConditionalsExample = () => (
<Button.Group>
<Button>Cancel</Button>
<Button.Or />
<Button positive>Save</Button>
</Button.Group>
)
export default ButtonConditionalsExample
|
app/javascript/mastodon/features/list_adder/components/account.js | maa123/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
client/lib/js/react/components/bigchaindb_connection.js | bigchaindb/bigchaindb-examples | import React from 'react';
import { safeInvoke, safeMerge } from 'js-utility-belt/es6';
import AssetStore from '../stores/asset_store';
import AccountStore from '../stores/account_store';
export default function BigchainDBConnection(Component) {
return React.createClass({
displayName: `BigchainDBConnect... |
Auth/website/src/pages/MainApp.js | awslabs/aws-serverless-workshops | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* o... |
app/project.js | CKrawczyk/electron-subject-uploader | import React from 'react';
export default class Project extends React.Component {
render() {
return (
<div>
Project info for #{this.context.project.id}
<hr />
{this.props.children}
</div>
);
}
}
Project.propTypes = {
children: React.PropTypes.node,
};
Project.context... |
app/javascript/mastodon/components/setting_text.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/component/verticalPostList/index.js | Platane/january | import React from 'react'
import { injectPositionTracker } from '../abstract/positionTracker'
import { ViewportTracker } from '../abstract/viewportTracker'
import { memoize } from '../../util/memoize'
import style from './style.css'
import { PostPreview } from './postPreview'
const createClickHandler = memoize(
... |
src/client/pages/login.react.js | grabbou/este | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import LoginForm from '../auth/login.react';
import React from 'react';
import {msg} from '../intl/store';
class Login extends Component {
render() {
return (
<DocumentTitle title={msg('auth.title')}>
... |
docs/src/app/components/pages/components/Dialog/ExampleModal.js | xmityaz/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
export default class DialogExampleModal extends React.Component {
sta... |
app/containers/ModalContainer.js | DeividasK/click-or-be-clicked | import React from 'react';
import { connect } from 'react-redux';
import { Modal } from '../components/Modal';
import { modalClose } from '../actions/modalActions';
@connect((store) => {
return {
modal: store.modal
};
})
export default class ModalContainer extends React.Component {
successHandler()... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/wb-iridescent.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageWbIridescent = (props) => (
<SvgIcon {...props}>
<path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1.79 1.8 1.42-1.42zM3.55 4.46l1.79 ... |
client/src/assets/icons/CertificationIcon.js | BhaveshSGupta/FreeCodeCamp | /* eslint-disable max-len */
import React from 'react';
function CertificationIcon() {
return (
<svg
height='248.21'
preserveAspectRatio='xMidYMid meet'
version='1.1'
viewBox='232 241.57142857142856 156.8571428571429 262.2051282051284'
width='142.86'
xmlns='http://www.w3.org/2... |
src/components/StepperDots.js | mikebarkmin/gestyled | import React from 'react';
import styled from 'styled-components';
import { transparentize } from 'polished';
const StyledCircle = styled.div`
display: inline-block;
border-radius: 50%;
width: 10px;
cursor: pointer;
height: 10px;
margin: 0 5px;
background-color: ${props =>
props.active ? props.theme.... |
packages/mineral-ui-icons/src/IconSpellcheck.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 IconSpellcheck(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
docs/app/Examples/views/Item/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Variations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Divided'
description='Items ... |
lavalab/html/node_modules/react-bootstrap/es/Grid.js | LavaLabUSC/usclavalab.org | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/components/Stats.js | benjaminmbrown/eve-faces | import React from 'react';
import StatsStore from '../stores/StatsStore';
import StatsActions from '../actions/StatsActions';
class Stats extends React.Component {
constructor(props){
super(props);
this.state = StatsStore.getState();
this.onChange = this.onChange.bind(this);
}
componentDidMount(){
StatsSto... |
node_modules/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | joan17cast/Enigma | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
src/svg-icons/action/visibility.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
src/routes/Messages/components/Messages.js | kesslern/ascient-react | import React from 'react'
import { Button } from 'react-bootstrap'
import PropTypes from 'prop-types'
import './Messages.scss'
class Messages extends React.Component {
constructor (props) {
super(props)
this.state = {
message: '',
sender: ''
}
this.messageChange = this.messageChange.bi... |
src/components/content/Music/MusicSeparator.js | dreamyguy/sidhree-com | import React from 'react';
import imgFluteRecorderYamaha900px from './../../../img/flute-recorder-yamaha-900px.png';
import './MusicSeparator.scss';
const MusicSeparator = () => {
return (
<section className="separator flute"><img src={imgFluteRecorderYamaha900px} alt="separator" /></section>
);
};
export def... |
src/primitives/regions/loading/index.js | mpigsley/sectors-without-number | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ContentContainer from 'primitives/container/content-container';
import AbsoluteContainer from 'primitives/container/absolute-container';
import Header, { HeaderType } from 'primitives/text/header';
import Spinner from 'primitives/other/sp... |
src/components/Feedback/Feedback.js | george-vrancianu/coriolis-web | /*
Copyright (C) 2017 Cloudbase Solutions SRL
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, or (at your option) any later version.
This program is distribu... |
src/components/todo/screens/TodoList/TodoListScreen.js | yasavbrain/yasav | import React from 'react';
import TodoListContainer from './containers/TodoListContainer';
export default class TodoListScreen extends React.Component {
render() {
return(
<TodoListContainer goBack={this.props.navigation.goBack} />
);
}
}
|
site/pages/HomePage.js | jowcy/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import StaticHTMLBlock from '../components/StaticHTMLBlock';
import IndexHTML from '../../docs/index.md';
export default class HomePage {
render() {
return (
<div>
<Header showCover ... |
src/js/components/messageCenter.js | adregan/notes | import React from 'react';
import Message from './message';
import { connect } from 'react-redux';
import { dismissMessage } from '../actions/messages';
import classnames from 'classnames';
const MessageCenter = ({messages, dispatch}) => {
let message = messages.first();
let classes = classnames({'modal-container... |
src/main/AsyncStorageLoading.js | lengrensheng/gallery-react | /**
* Created by on 2016/5/19.
*/
import React from 'react';
import {
Component,
Picker,
Text,
View,
AsyncStorage,
Alert,
}from 'react-native';
var STORAGE_KEY = '@AsyncStorageLoading:key';
var COLORS = ['red', 'orange', 'yellow', 'green', 'blue'];
var PickerItem = Picker.Item... |
src/svg-icons/alert/error-outline.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertErrorOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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 ... |
src/components/App.js | nowiro/react-webpack-sass-less-css | import React from 'react';
import ReactDOM from 'react-dom';
import '../assets/styles/app3.scss';
import '../assets/styles/app4.scss';
import '../assets/styles/css/index.css';
import '../assets/styles/scss/index.scss';
import '../assets/styles/sass/index.sass';
import '../assets/styles/less/index.less';
import '../as... |
pages/demos/chips.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/chips/chips.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
src/navigations/AppNavigator.js | alphasp/pxview | import React from 'react';
import { View } from 'react-native';
import { useTheme } from 'react-native-paper';
import { createNativeStackNavigator } from 'react-native-screens/native-stack';
// import AppDrawerNavigator from './AppDrawerNavigator';
import AppTabNavigator from './AppTabNavigator';
import SearchFilterMod... |
src/components/lists/stories/index.js | timludikar/component-library | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { OrderedList, UnorderedList, ListItem } from '../index';
storiesOf('component.Lists', module)
.add('Unordered List', () => (
<UnorderedList>
<ListItem>Hello</ListItem>
<ListItem>World</ListItem>
</UnorderedList>
)... |
ui/src/containers/BasicQueryBuilder/ExpandedSection.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, withProps } from 'recompose';
import { List, Map } from 'immutable';
import { map, maxBy, merge, size } from 'lodash';
import decodeDot from 'lib/helpers/decodeDot';
import { getAvailab... |
src/Visualizations/MapNorway/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import map from './map';
import Visualization from './../index';
function MapNorway(props) {
return (
<Visualization
className={props.className}
viz={map}
{...props}
/>
);
}
export default MapNorway;
|
src/components/CreateResetPassword/CreateResetPasswordControlWrapper.js | folio-org/stripes-core | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CreateResetPasswordControl from './CreateResetPasswordControl';
class CreateResetPasswordControlWrapper extends Component {
static propTypes = {
authFailure: PropTypes.arrayOf(PropTypes.object),
stripes: PropTypes.object.is... |
client/views/room/Header/DirectRoomHeader.js | VoiSmart/Rocket.Chat | import React from 'react';
import { useUserId } from '../../../contexts/UserContext';
import { useUserData } from '../../../hooks/useUserData';
import RoomHeader from './RoomHeader';
const DirectRoomHeader = ({ room }) => {
const userId = useUserId();
const directUserId = room.uids.filter((uid) => uid !== userId).s... |
src/components/MinimapZoom/index.js | vogelino/design-timeline | import React from 'react';
import Minimap from './Minimap';
import Zoom from './Zoom';
import './MinimapZoom.css';
export default () => (
<div className="minimapZoom">
<div className="minimapZoom_wrapper">
<Minimap />
<Zoom />
</div>
</div>
);
|
src/view/measureNotation.js | tkaetzel/sympho.net | import React, { Component } from 'react';
import Vex from 'vexflow';
const WIDTH = 500;
const HEIGHT = 500;
const STAVE_X = 50;
const STAVE_Y = 40;
const STAVE_WIDTH = 400;
class MeasureNotation extends Component {
constructor(props) {
super();
this.id = 'measure_' + props.id;
}
component... |
src/components/ListItem/ListItem.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { settings } from 'carbon-componen... |
.history/src/components/Menu_20170804012222.js | radubrehar/evanghelic.ro | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import { css } from 'glamor';
import Row from './Row';
const mainCls = css({
display: 'flex',
flexFlow: 'row',
paddingTop: 20,
paddingBottom: 20,
borderBottom: '1px solid gray',
justifyContent: 'flex-end',
ma... |
src/containers/pages/miscellaneous/privacy-policy/introduction.js | vFujin/HearthLounge | import React from 'react';
const Introduction = () => {
return (
<div className="introduction">
<h2>Privacy Policy</h2>
<p>This privacy policy has been compiled to better serve those who are concerned with how their 'Personally
Identifiable Information' (PII) is being used online. PII, ... |
bai/src/components/JoinUs/index.js | blackinai/blackinai.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import { Container, Button } from '@material-ui/core/';
import Typography from './../Typography';
const styles = (theme) => ({
root: {
display: 'f... |
src/templates/Icon.js | salt-ui/salt-tools | import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
class Icon<%= IconName %> extends React.Component {
render() {
try {
const Svg = require('../svg/<%= iconname %>.svg');
return <Svg {...this.props} />
} catch(e) {
console.error(`cant't find ... |
src/applications/coronavirus-vaccination-expansion/config/attestation/helpers.js | department-of-veterans-affairs/vets-website | import React from 'react';
const paddingBottom = { paddingBottom: '1em' };
export const title = <strong>Which of these best describes you?</strong>;
export const eligibilityAccordion = (
<>
<p>
We have a limited amount of COVID-19 vaccines. We want to make sure we can
offer vaccines to as many Veter... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Connectors.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/Parser/DeathKnight/Blood/Modules/Features/BlooddrinkerTicks.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Modules/Combatants';
import SpellIcon from '... |
docs/src/Anchor.js | xuorig/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
app/scripts/components/kuchyne/kitchen_d.js | kroupaTomass/Rondo-kuchyne | import React from 'react';
import { Link } from 'react-router';
class Kitchen_d extends React.Component {
constructor(props, context) {
super(props);
}
render() {
return (
<div className="col-md-4 no_padding">
<div className="single_image">
<a id="kitchen_d" href="#animatedModal_... |
src/components/Lucky.js | kisnows/luckydraw | import React from 'react'
import { Card, CardActions, CardHeader } from 'material-ui/Card'
import Avatar from 'react-avatar'
import PropTypes from 'prop-types'
import FlatButton from 'material-ui/FlatButton'
export default class Lucky extends React.Component {
render() {
const { data, handleLuckyDelete } = this.... |
src/SplitButton.js | jakubsikora/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
src/components/Header.js | csreyes/tic-tac-toe | import React from 'react'
import { connect } from 'react-redux'
const Header = ({gameState, player}) => {
let subheader;
if (gameState === 'WINNER') {
subheader = (<h2 className="message-subheader">{capitalize(player.concat(' wins!'))}</h2>)
} else if (gameState === 'TIE') {
subheader = (<h2 className="m... |
packages/bonde-styleguide/src/form/Radio/Radio.js | ourcities/rebu-client | import React from 'react'
import Checkbox from '../Checkbox/Checkbox'
import Text from '../../content/Text/Text'
const Radio = Checkbox.withComponent(
({ children, className, ...inputProps }) => (
<label className={className}>
<input type='radio' {...inputProps} />
<Text>{children}</Text>
<div ... |
src/routes/Oppgave1/components/StarWarsCharacter.js | andreasnc/summer-project-tasks-2017 | import React from 'react';
import PropTypes from 'prop-types';
const StarWarsCharacter = (
{
character
}) =>
<div className="star-wars-character">
<h3>First name:</h3>
<span>Last name:</span>
<span>Height:</span>
<span><img className="img-icon" src={character.imageUrl} /></span>
</div>;
St... |
js/Header.js | aramay/complete-intro-to-react-v2 | import React from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { setSearchTerm } from './actionsCreators'
class Header extends React.Component {
constructor (props) {
super(props)
this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
}
handleSea... |
app/jsx/StudentInCourse/StudentInCourseView.js | instructure/analytics | import React from 'react'
import $ from 'jquery'
import _ from 'underscore'
import Backbone from '@canvas/backbone'
import template from '../../views/jst/student_in_course.handlebars'
import avatarPartial from '@canvas/avatar/jst/_avatar.handlebars'
import PageViews from '../graphs/page_views'
import Responsiveness fro... |
src/components/safari/plain-wordmark/SafariPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './SafariPlainWordmark.svg'
/** SafariPlainWordmark */
function SafariPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'SafariPlai... |
src/index.js | binayverma/weather-chart | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
es/components/RoomHistory/Votes.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import DownvoteIcon from "@material-ui/icons/es/ThumbDown";
import UpvoteIcon from "@material-ui/icons/es/ThumbUp";
import FavoritedIcon from "@material-ui/icons/es/Favorite... |
src/ProjectForm.js | ml7757/To-Do-React | import './stylesheets/components.scss';
import React from 'react';
import jQuery from 'jquery';
class ProjectsForm extends React.Component{
constructor(){
super();
}
saveProject(event){
event.preventDefault();
var component = this;
var formData = {
name: component.refs.projectName.value,... |
src/routes/home/index.js | ACGNTaiwan/acgnFront | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
frontend/src/pages/Layout.js | dimkarakostas/rupture | import React from 'react';
import Nav from '../components/Nav';
import Footer from '../components/Footer';
export default class Layout extends React.Component {
render() {
return (
<div>
<Nav/>
<div> {this.props.children} </div>
<Footer/>
... |
client/components/Auth/LogoutPage.js | rkazakov/guardbook | import React from 'react';
import { Link } from 'react-router';
class LogoutPage extends React.Component {
render() {
return (
<div>
<h1>LogoutPage</h1>
</div>
)
}
}
export default LogoutPage;
|
admin/src/components/ListHeaderTitle.js | mekanics/keystone | import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import Popout from './Popout';
import PopoutList from './PopoutList';
import React from 'react';
import vkey from 'vkey';
import { FormNote } from 'elemental';
const Transition = React.addons.CSSTransitionGroup;
var ListHe... |
src/js/components/icons/base/FingerPrint.js | odedre/grommet-final | /**
* @description FingerPrint 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.
*... |
Realization/frontend/czechidm-acc/src/content/wizard/connectorType/AdUserSystemWizard/StepCheckPermission.js | bcvsolutions/CzechIdMng | import { Basic } from 'czechidm-core';
import React from 'react';
import _ from 'lodash';
import AbstractWizardStep from '../../AbstractWizardStep';
/**
* Step three of MS AD wizard (permissions check).
*
* @author Vít Švanda
* @since 10.8.0
*/
export default class StepCheckPermission extends AbstractWizardStep ... |
app/react-native/index.android.js | sping/abcd-epic-fussball | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './app/app';
AppRegistry.registerComponent('MeetupReactNative', () => App);
|
examples/js/advance/hide-on-insert-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
springboot/GReact/node_modules/react-bootstrap/es/Grid.js | ezsimple/java | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
map/src/components/ModalShare/index.js | Vizzuality/care_usa | 'use strict';
import './styles.postcss';
import Modal from '../Modal';
import React from 'react';
import Clipboard from 'clipboard';
class ModalShare extends Modal {
constructor(props) {
super(props);
this.state = {
open: this.props.visible,
className: 'modal-share'
};
}
onClickCopy()... |
src/parser/rogue/assassination/modules/talents/ElaboratePlanning.js | sMteX/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Ana... |
app/Resources/static-src/app/common/component/persona-multi-input/index.js | richtermark/SMEAGOnline | import React, { Component } from 'react';
import MultiInput from '../multi-input';
import List from './list';
function initItem(dataSourceUi,data,index,props) {
let obj = {
itemId:Math.random(),
nickname: data[props.nickname],
isVisible: data[props.isVisible] == 1 ? true : false,
avatar: data[props.a... |
src/svg-icons/action/question-answer.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
... |
plum/src/components/common/groupItem.js | jbkaplan/plum-app | import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableHighlight, TouchableOpacity, Dimensions } from 'react-native';
import Icon from 'react-native-vector-icons/Entypo';
var GroupItem = React.createClass({
render: function() {
return (
<View style={[styles.groupItem]}>
... |
src/components/Feedback/Feedback.js | adorris1/dorris-united | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.