path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/Components/PasswordModal.js | ethjar/wallet | import React, { Component } from 'react';
import {
Button, ButtonToolbar,
Modal, FormGroup, FormControl, ControlLabel, HelpBlock,
} from 'react-bootstrap';
class Password extends Component {
constructor(props) {
super(props);
this.state = {
password: null,
passwordVa... |
src/components/posts_index.js | SlavaKhokhlov/react-router-redux-form | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
class PostsIndex extends Component {
componentDidMount() {
this.props.fetchPosts();
}
renderPosts() {
... |
src/App.js | ilya-matvienko/BeerCalc-react-v0.0.1 | import React, { Component } from 'react';
import './App.css';
import MainBlock from './main-block/MainBlock';
export default class App extends Component {
render() {
return (
<div className="wrap-calc">
<MainBlock/>
</div>
);
}
}
|
test/wallet/lockscreen.component.js | NebulousLabs/Sia-UI | /* eslint-disable no-unused-expressions */
import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import RescanDialog from '../../plugins/Wallet/js/components/rescandialog.js'
import LockScreen from '../../plugins/Wallet/js/components/lockscreen.js'
import PasswordPrompt from '../../pl... |
packages/react-error-overlay/src/components/Footer.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
src/components/Header/Header.js | albertfdp/react-podio-universal | import React from 'react';
import TodoTextInput from '../TodoTextInput/TodoTextInput';
if (__CLIENT__) {
require('./Header.scss');
}
export default class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<header className="header">
<h1>todos</h1>... |
app/javascript/mastodon/features/list_adder/components/account.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
src/pages/index.js | kaupppa/hmk-web-client | import React from 'react';
import { ThemeProvider } from '@mui/material/styles';
import { Helmet } from "react-helmet";
import ThemeBuilder from "../gatsby-theme-material-ui-top-layout/themeBuilder"
import PageLayout from '../components/pageLayout';
import Aukioloaika from '../components/aukioloaika';
import Esittely f... |
test/FormControlsSpec.js | coderstudy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUt... |
packages/forms/src/rhf/fields/Select/Select.stories.js | Talend/ui | /* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { useForm, FormProvider } from 'react-hook-form';
import { action } from '@storybook/addon-actions';
import Select from '.';
export default {
title: 'RHF/Select',
parameters: {
component: Select,
},
};
export const States =... |
src/Grid/components/__tests__/Row-test.js | ambitioninc/react-ui | import Mingus from 'mingus';
import React from 'react';
import fixtures from './fixtures';
import Row from '../Row';
Mingus.createTestCase('RowTest', {
testRender() {
const rendered = this.renderComponent(
<Row
columns={fixtures.columns}
rowIndex={0} />
);
... |
examples/huge-apps/routes/Calendar/components/Calendar.js | BerkeleyTrue/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
web/src/js/components/Settings/Widgets/WidgetsSettingsView.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser'
import graphql from 'babel-plugin-relay/macro'
import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent'
import WidgetsSettings from 'js/components/... |
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/DynamicImport.js | chungchiehlun/create-starter-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => {
return <>Hello World!</>;
};
|
information/blendle-frontend-react-source/app/modules/stories/components/LoadingPlaceholders/StoryTilePlaceholder/index.js | BramscoChill/BlendleParser | import React from 'react';
import { number, bool } from 'prop-types';
import classNames from 'classnames';
import { ANIMATION_DELAY_INTERVAL_MS } from '../../../constants';
import CSS from './style.scss';
function StoryTilePlaceholder({ hasTile, index, isDoneLoading }) {
const classes = classNames(CSS.storyTilePlace... |
src/js/app.js | AlexJozwicki/reactmovie | import React from 'react';
import HomeScreen from './HomeScreen';
/**
* Render your React application into the DOM.
* The correct way is to always render into a div and not directly the body, as third party scripts
* can add scripts inside the body.
*/
React.render( <HomeScreen/>, document.getElementById('app-con... |
pootle/static/js/browser/components/Stats.js | translate/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import StatsAPI from 'api/Stat... |
react-admin-dashboard/src/pages/Main/index.js | chaitanya1375/Myprojects | import React from 'react';
import { Route, Router } from 'react-router-dom';
import { connect } from 'react-redux';
import cx from 'classnames';
import { setMobileNavVisibility } from '../../reducers/Layout';
import { withRouter } from 'react-router-dom';
import Header from './Header';
import Footer from './Footer';
i... |
app/containers/App.js | parrajustin/VueElectron_UTEP | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
test/client/components/location_selector.js | berkeley-homes/near-miss-positive-intervention | import test from 'tape'
import React from 'react'
import { shallow } from 'enzyme'
import Immutable from 'immutable'
import Dropdown from '../../../src/client/components/dropdown.js'
import LocationSelector, {
Label
} from '../../../src/client/components/location_selector.js'
const mockTree = Immutable.fromJS({ a: ... |
docs/src/app/components/pages/components/Popover/ExampleAnimation.js | matthewoates/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import {Popover, PopoverAnimationVertical} from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleAnimation extends React.Component {
constructor(... |
packages/wix-style-react/src/ToggleSwitch/test/ToggleSwitch.visual.js | wix/wix-style-react | import React from 'react';
import ToggleSwitch from '../ToggleSwitch';
import Box from '../../Box';
import { storyOfAllPermutations } from '../../../test/utils/visual/utils';
const Story = props => (
<Box>
<ToggleSwitch {...props} />
<Box marginLeft={1}>
<ToggleSwitch {...props} checked />
</Box>
... |
src/index.js | ftorre104/todolist-redux | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux' // sets store into context
import { createStore } from 'redux' // creates store from reducers
import todoApp from './reducers' // import of all reducers combined
import App from './components/App'
let store = createStor... |
src/app.js | ccfcheng/nano-budget | import React from 'react';
import { render } from 'react-dom';
import document from 'global/document';
import firebase from 'firebase';
const config = {
apiKey: 'REPLACE_WITH_API_KEY',
authDomain: 'REPLACE_WITH_AUTH_DOMAIN',
databaseURL: 'REPLACE_WITH_DATABASE_URL',
storageBucket: 'REPLACE_WITH_STORAGE_BUCKET'... |
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleCompact.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { getOptions } from '../common'
const DropdownExampleCompact = () => (
<Dropdown placeholder='Compact' compact selection options={getOptions(3, '')} />
)
export default DropdownExampleCompact
|
RNTest/RNWithOCDemo/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | Tony0822/ReactNativeDemo | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
client/src/logos/facebookLogo.js | juandaco/voting-app | import React from 'react';
const facebookLogo = iconStyle => {
return (
<svg
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
style={iconStyle}
x="0px"
y="0px"
width="266.893px"
height="266.895px"
viewBox="0 0 266.893... |
app/containers/NotFoundPage/index.js | coocooooo/webapp | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
export default function NotFound() {
return (
<article>
... |
src/components/InfiniteScroll.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import ons from 'onsenui';
import {Page, Toolbar, BackButton, LazyList, ListItem} from 'react-onsenui';
class InfiniteScroll extends React.Component {
renderRow(index) {
return (
<ListItem key={index}>
{'Item ' + (index + 1)}
</ListItem>
... |
client/src/components/shelf/shelfTitle.component.js | bsmithgall/biblio | import React from 'react';
class ShelfTitle extends React.Component {
render() {
return (
<div className="bb-shelf-title">
<h1>{this.props.text}</h1>
</div>
);
}
}
ShelfTitle.propTyptes = {
text: React.PropTypes.string.isRequired,
};
export default ShelfTitle;
|
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/CheckingToken.spec.js | ourcities/rebu-client | import test from 'ava'
import React from 'react'
import { shallow } from 'enzyme'
import { Loading } from 'components/Loadable'
import CheckingToken from './CheckingToken'
test('render loading', t => {
const i18n = key => key
const node = shallow(<CheckingToken t={i18n} />)
const loading = node.find(Loading)
... |
frontend/test/app/components/ExperimentPreFeedbackDialog-test.js | clouserw/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import ExperimentPreFeedbackDialog from '../../../src/app/components/ExperimentPreFeedbackDialog';
describe('app/components/ExperimentPreFeedbackDialog', () => {
const experiment = {
title: 'fo... |
src/pages/news/NBA/NewsNBADepth.js | HeliumLau/Hoop-react | import React from 'react';
import NewsList from 'components/NewsList.js';
export default class NewsNBADepth extends React.Component {
render() {
const list = [
{
title: '帕森斯晒自己与演员特里-克鲁斯的合照',
lNum: '28',
cNum: '212',
bgurl: 'h... |
packages/mineral-ui-icons/src/IconAdd.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 IconAdd(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/interface/LoadingBar.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import './LoadingBar.scss';
class LoadingBar extends React.PureComponent {
static propTypes = {
progress: PropTypes.number,
chunks: PropTypes.number,
};
static defaultProps = {
progress: 0,
chunks: 12,
};
constructor(props) {
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_05/finish/src/index.js | yevheniyc/Autodidact | import React from 'react'
import { render } from 'react-dom'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount total={50}
powder={20}
backcountry={10}
goal={100}/>,
document.getElementById('react-container')
) |
react/features/remote-video-menu/components/web/KickRemoteParticipantDialog.js | bgrozev/jitsi-meet | // @flow
import React from 'react';
import { Dialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractKickRemoteParticipantDialog
from '../AbstractKickRemoteParticipantDialog';
/**
* Dialog to confirm a remote participan... |
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupSize.js | koenvg/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ label: 'Faves', value: '22' },
{ label: 'Views', value: '31,200' },
{ label: 'Members', value: '22' },
]
const StatisticExampleGroupSize = () => (
<div>
<Statistic.Group items={items} size='mini' />
<Statistic.Gr... |
packages/icons/src/md/action/GTranslate.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdGTranslate(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 10c2.2 0 4 1.8 4 4v26c0 2.2-1.8 4-4 4H24l-2-6H8c-2.2 0-4-1.8-4-4V8c0-2.2 1.8-4 4-4h12l1.76 6H40zM14.33 29.17c4.63 0 7.86-3.28 7.87-7.99 0-.42-... |
src/index.js | jlbooker/shop-hours-demo | import React from 'react';
import ReactDOM from 'react-dom';
import ShopHoursApp from './ShopHoursApp';
ReactDOM.render(
<ShopHoursApp />,
document.getElementById('root')
);
|
src/layouts/CoreLayout/CoreLayout.js | rojasmi1/ArtCR | import React from 'react'
import Header from '../../components/Header'
import Footer from '../../components/Footer'
import classes from './CoreLayout.scss'
import * as Messages from '../../static/messages_en'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header menuId="main... |
assistant/index.js | YashdalfTheGray/talks | import React from 'react';
import { render } from 'react-dom';
import Presentation from './presentation';
render(<Presentation/>, document.querySelector('#root'));
|
app/components/Toggle/index.js | douglasguerrero/Test | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
packages/@lyra/form-builder/src/inputs/StringInput.js | VegaPublish/vega-studio | //@flow
import React from 'react'
import TextInput from 'part:@lyra/components/textinputs/default'
import FormField from 'part:@lyra/components/formfields/default'
import PatchEvent, {set, unset} from '../PatchEvent'
import type {Type, Marker} from '../typedefs'
type Props = {
type: Type,
level: number,
value: ?... |
src/index.js | wilsonecodev/ReactYoutubeSearch | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
client/ui/molecules/footer.story.js | LestaD/InstaClone | /* eslint-disable react/prop-types */
import React from 'react'
import { storiesOf } from '@storybook/react'
import { MemoryRouter } from 'react-router-dom'
import { Footer } from './footer'
storiesOf('ui/molecules', module)
.addWithJSX('Footer', () => (
<MemoryRouter>
<div style={{ display: 'flex', widt... |
src/containers/About/index.js | scottdj92/t7-chicken-native | import React from 'react';
import { View, Text, ScrollView } from 'react-native';
import { Styles } from './styles';
import { aboutNavHeader } from '../../components/NavigationBar';
import CustomText from '../../components/CustomText/CustomText';
import LinearGradient from 'react-native-linear-gradient';
const redPri... |
node_modules/react-bootstrap/es/TabContainer.js | acalabano/get-committed | 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 React from 'r... |
src/pages/tova.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Tova' />
)
|
src/Icon_Visa.js | codefoundries/material-ui-credit-card-icons | 'use strict';
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
export default function( props )
{
return(
<SvgIcon viewBox="0 0 60 40" {...props}>
<g>
<path fill="#F3F4F4" d="M60,35c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V5c0-2.75,2.25-5,5-5h50c2.75,0,5,2.25,5,5V35z"/>
<p... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js | pradel/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleLoading = () => (
<div style={style.container}>
<RefreshI... |
js/components/attendance/index.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { StatusBar, TextInput, View } from 'react-native';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Toast, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base';
import { openDrawer } from '../../actions/dr... |
spec/javascripts/jsx/conditional_release_stats/indexSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
app/src/index.js | cyberpolin/cyberpolin.github.io | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import registerServiceWorker from './registerServiceWorker'
ReactDOM.render(<App />, document.getElementById('root'))
registerServiceWorker()
|
frontend/src/components/icons/List.js | webrecorder/webrecorder | import React from 'react';
function List() {
return (
<svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" opacity="0.6">
<g id="List-on-Cover-Page" transform="translate(-9.000000, -20.... |
src/components/SelectInputKeyboard/SelectInputKeyboard.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import PropTypes from 'prop-types';
import styled, { ThemeProvider } from 'styled-components';
import _ from 'lodash';
import { RequiredText } from '../RequiredText/RequiredText';
import { typography, colors, renderThemeKeyOrDefaultValue } from '../styles';
import Dropdown from './Dropdown';... |
src/svg-icons/action/camera-enhance.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCameraEnhance = (props) => (
<SvgIcon {...props}>
<path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2... |
addons/info/src/components/PropVal.js | nfl/react-storybook | import React from 'react';
import createFragment from 'react-addons-create-fragment';
const valueStyles = {
func: {
color: '#170',
},
attr: {
color: '#666',
},
object: {
color: '#666',
},
array: {
color: '#666',
},
number: {
color: '#a11',
},
string: {
color: '#22a',
... |
src/svg-icons/av/volume-up.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeUp = (props) => (
<SvgIcon {...props}>
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91... |
frontend/src/components/submitcast/ShowTimePicker.js | tanzdervampire/website | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import TimePicker from 'material-ui/TimePicker';
import './ShowTimePicker.css';
class ShowTimePicker extends React.Component {
static propTypes = {
onTimeSelected: PropTypes.func.isRequired,
selectedTime: PropTypes.instance... |
ui/js/pages/library/Library.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { loadCategory, loadItem, unloadCategory, unloadItem } from '../../actions';
import List from '../../components/List';
import Loading from '../../componen... |
admin/client/App/shared/Popout/PopoutListItem.js | cermati/keystone | /**
* Render a popout list item
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTy... |
docs/app/Examples/elements/List/Content/ListExampleDescription.js | shengnian/shengnian-ui-react | import React from 'react'
import { List } from 'shengnian-ui-react'
const ListExampleDescription = () => (
<List>
<List.Item>
<List.Icon name='marker' />
<List.Content>
<List.Header as='a'>Krowlewskie Jadlo</List.Header>
<List.Description>An excellent polish restaurant, quick delivery... |
server/priv/js/components/Bench.react.js | ethercrow/mzbench | import React from 'react';
import BenchStore from '../stores/BenchStore';
import BenchNav from './BenchNav.react';
import BenchOverview from './BenchOverview.react';
import BenchGraphs from './BenchGraphs.react';
import BenchReports from './BenchReports.react';
import BenchScenario from './BenchScenario.react';
import... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
src/svg-icons/editor/vertical-align-top.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
lib/Icon/stories/Contexts.js | folio-org/stripes-components | /**
* Icon -> various icon context examples
*/
import React from 'react';
import Icon from '../Icon';
import Headline from '../../Headline';
import Button from '../../Button';
export default () => {
return (
<>
<Headline size="x-large">
<Icon icon="arrow-left">
Back
</Icon>
... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/directoryinfobar.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
const colorBackDisabled = '#C5C5C5'
const colorBackEnabled = '#00CBA0'
const DirectoryInfoBar = ({path, nfiles, onBackClick}) => {
const backButtonStyle = {
color: (() => {
if (path === '') {
return colorBackDisabled
}
return colorBackEnable... |
src/js/AnimalsApp.js | bcongdon/gdq-stats | import React from 'react'
import ReactDOM from 'react-dom'
import axios from 'axios'
import { GDQ_STORAGE_ENDPOINT,
PRIMARY_COLOR,
SECONDARY_COLOR } from './constants'
import { BarChart,
Bar,
Tooltip,
ResponsiveContainer,
XAxis,
YAxis,
CartesianGrid } from 'recharts'
import PacmanLoader from 'halogen/Pa... |
src/svg-icons/av/closed-caption.js | rscnt/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... |
stories/examples/InputGroupAddon.js | reactstrap/reactstrap | import React from 'react';
import { InputGroup, InputGroupText, Input } from 'reactstrap';
const Example = (props) => {
return (
<div>
<InputGroup>
<InputGroupText>To the Left!</InputGroupText>
<Input />
</InputGroup>
<br />
<InputGroup>
<Input />
<InputGro... |
ui/src/components/MapTileLayer.js | brocaar/lora-app-server | import React, { Component } from 'react';
import { TileLayer } from 'react-leaflet';
class MapTileLayer extends Component {
render() {
return(
<TileLayer
url='//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributor... |
src/components/__tests__/Header-test.js | mkurutin/snowflake | /* eslint-disable import/first */
/**
* # Header-test.js
*
* This class tests that the Header component displays correctly
*
* *Note:* if you want to understand the structures here, add a
* ```console.log``` and then ```npm test```.
*
*/
'use strict'
jest.mock('ActivityIndicator', () => 'ActivityIndicator')
/... |
test/components/WrappedButton.js | tizmagik/react-csjs | import React from 'react';
import { testStyles } from '../testUtil';
import withStyles from '../../src';
// Wrapped Syntax
const ButtonComponent = ({ classes, children }) => (
<div className={classes.button}>
<span className={classes.label}>
{children}
</span>
</div>
);
export default withStyles(tes... |
examples/web/counter/counter-view.js | christyharagan/cycle-react | import React from 'react';
import * as InteractionTypes from './interaction-types';
import Counter from './counter-component';
export default function makeView(interactions, model) {
return model.map(counter =>
<div>
<Counter counter={counter}
{...interactions.bindListeners(InteractionTypes)... |
examples/counter/index.js | yz89/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
app/components/Header/Header.js | celikmus/MathWise | import React from 'react';
import PropTypes from 'prop-types';
import { View, Text, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { MaterialCommunityIcons } from '@expo/vector-icons';
import { getIconName } from '../../utils/icons';
import styles from './styles';
const Header = ... |
tp-4/euge/src/app.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import injectTapEventPlugin from './shared/components/tapEventPluginInjector';
import App from './pages/layout';
import configureStore from './redux/configureStore';
// bootstrap events for Ma... |
src/components/learn/WordList.js | pcwu/word-pusher | import React from 'react';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table';
import IconButton from 'material-ui/IconButton';
import { playAudio } from '../../utils';
import '../../css/Lesen.css';
const WordTable = ({ words }) => (
<Table>
<TableHead... |
blueocean-material-icons/src/js/components/svg-icons/hardware/memory.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareMemory = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H... |
src/ui/components/generic/_loginComponent.js | e-Ray/web_platform | import React from 'react';
import TextField from 'material-ui/TextField';
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import { login } from '../../../api/Auth/_auth';
class LoginComponent extends React.Component {
constructor(props) {
super(props);
this.sta... |
test/regressions/site/src/tests/IconButton/ContrastIconButton.js | und3fined/material-ui | // @flow weak
import React from 'react';
import IconButton from 'material-ui/IconButton';
import { deepOrange } from 'material-ui/styles/colors';
export default function ContrastIconButton() {
return (
<IconButton contrast style={{ backgroundColor: deepOrange[500] }}>home</IconButton>
);
}
|
src/Parser/Hunter/Marksmanship/Modules/Features/VulnerableUptime.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBox, { ST... |
src/components/P/SkeletonParagraph.js | Bandwidth/shared-components | import React from 'react';
import styled from 'styled-components';
import userSpacing from 'extensions/userSpacing';
import Skeleton from 'skeletons/Skeleton';
const SkeletonParagraphContainer = styled.div.attrs({
spacing: userSpacing,
})`
margin: ${props => props.spacing};
display: flex;
flex-direction: colum... |
src/components/desktop/pages/RenderTitle.js | Ruffeng/VERMELL_REDUX | import React from 'react';
import { Col } from 'react-bootstrap'
const RenderTitle = (props) => (
<Col sm={8} style={{paddingLeft: 0}}>
<h1>{props.title}</h1>
</Col>
);
export default RenderTitle;
|
src/ui/MonacoEditor.js | builden/react-electron-boilerplate | /// <reference path="../../node_modules/monaco-editor/monaco.d.ts" />
import React from 'react';
import PropTypes from 'prop-types';
import { registerProviders, watchContent } from './editor-extensions';
function noop() {}
class MonacoEditor extends React.Component {
constructor(props) {
super(props);
this... |
src/components/Work.js | evelinalaroussi/evelinalaroussi.github.io | import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
//import { Code } from '../styles/style';
//import s from '../styles/home.style';
import Icon from 'react-icons-kit';
//import icons
import { arrowLeft } from 'react-icons-kit/icomoon';
export defaul... |
packages/mineral-ui-icons/src/IconOfflinePin.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 IconOfflinePin(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
universal/routes.js | grishanin/auctionata | import React from 'react';
import { Route, /* IndexRoute */ } from 'react-router';
import App from './containers/App';
import AuctionContainer from './containers/AuctionContainer';
export default (
<Route path='/' component={App}>
<Route path='auctions/:auctionId' component={AuctionContainer}></Route>
</Route... |
docs/src/IntroductionPage.js | jontewks/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/App.js | zrusev/SoftwareUniversity2016 | import React, { Component } from 'react';
import Article from './components/Article/Article'
import RegisterForm from './components/RegisterForm/RegisterForm'
import Navigation from './components/Navigation/Navigation'
import BindingForm from './components/BindingForm/BindingForm';
import warningWrapper from './hoc/war... |
packages/reactor-kitchensink/src/examples/Lists/Grouped/Grouped.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { List } from '@extjs/ext-react';
Ext.require('Ext.Toast');
export default class GroupedListExample extends Component {
store = Ext.create('Ext.data.Store', {
autoLoad: true,
proxy: {
type: 'rest',
url: 'resources/data/... |
app/js/components/Footer.js | alex-xia/react-rocket-demo | 'use strict';
import React from 'react';
class Footer extends React.Component{
constructor(props) {
super(props);
}
render() {
return (
<footer>
Footer
</footer>
);
}
}
export default Footer; |
app/javascript/mastodon/features/ui/components/embed_modal.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage, injectIntl } from 'react-intl';
import api from '../../../api';
export default @injectIntl
class EmbedModal extends ImmutablePureComponent {
static propTypes... |
src/components/Torrent/ProgressBar/index.js | fcsonline/react-transmission | import React from 'react';
import CSSModules from 'react-css-modules';
import styles from './styles/index.css';
function getPercentage(torrent) {
// TODO: Extract from session store if configure globally or grab torrent one
const seedRatioLimit = torrent.seedRatioLimit;
if (torrent.needsMetaData) {
return ... |
src/components/EyeIcon/EyeIcon.js | alopezitrs/ps-react-analo | import React from 'react';
/** SVG Eye Icon */
function EyeIcon() {
// Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg
return (
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<g transform="matrix(.02146 0 0 .02146 1 1)" fill... |
stories/examples/ToastHeaderIcon.js | reactstrap/reactstrap | import React from 'react';
import { Toast, ToastBody, ToastHeader, Spinner } from 'reactstrap';
const Example = (props) => {
return (
<div>
<Toast>
<ToastHeader icon="primary">
Reactstrap
</ToastHeader>
<ToastBody>
This is a toast with a primary icon — check it o... |
src/components/obligee/PointNameCell.js | axmand/react-webpack-redux | import React from 'react'
// import PropTypes from 'prop-types'
// import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
// import Dialog, {
// DialogActions,
// DialogContent,
// DialogContentText,
// DialogTitle,
// } from 'material-ui/Dialog';
import Button from 'material-ui/Button';... |
tom-binary-tree/src/compose.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import { Rx } from 'tom'
function composeStates(x, y) {
return {
model: [x.model, y.model],
effect: x.effect || y.effect ? [x.effect, y.effect] : null
}
}
function isNotNil(x) {
return x !== null && x !== undefined
}
const empty$ = Rx.Observable.empty()
const defaultTemplate ... |
pages/index.js | dvorovenko/dvorovenko.github.io | import React from 'react';
export default () => (
<div className="l_root">
<div className="l_page m_active_page m_text_align">
<form action="" className="b_form">
<div className="title">Insert your Github name</div>
<input placeholder="dvorovenko" type="text" className="text" />
<bu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.