path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Paths/React/06.Styling React Components/6-react-styling-components-m6-exercise-files/Before/src/frame.js | phiratio/Pluralsight-materials | import React from 'react'
export default function Frame({ children }) {
return <div>{children}</div>
}
|
src/views/HomeView/HomeView.js | stefanwille/react-gameoflife | import React from 'react'
import GameOfLife from 'components/GameOfLife/GameOfLife'
// We avoid using the `@connect` decorator on the class definition so
// that we can export the undecorated component for testing.
// See: http://rackt.github.io/redux/docs/recipes/WritingTests.html
export class HomeView extends React.... |
src/containers/NotFoundPage.js | sateez/salestracker | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
Oops!!! 404 Page Not Found
</h4>
<Link to="/"> Go back Dashboard </Link>
</div>
);
};
export default NotFoundPage;
|
components/CPPInsightsButton.js | FredTingaud/quick-bench-front-end | import React from 'react';
import InteropHelper from 'components/InteropHelper';
import { Button, Tooltip, OverlayTrigger } from 'react-bootstrap';
import svg from 'components/resources/ico/cppinsights.svg';
class CPPInsightsButton extends React.Component {
versionCPPI(opt) {
switch (opt.cppVersion) {
... |
app/common/components/VocabResetButton/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Button from 'common/components/Button';
import Icon from 'common/components/Icon';
import { gutter } from 'common/styles/layout';
import { white, grey } from 'common/styles/colors';
// prettier-ignore
export ... |
client/src/components/users/user-edit.js | commoncode/ontap | import React from 'react';
import autobind from 'autobind-decorator';
import EditForm from '../generic/edit-form';
@autobind
class UserEdit extends EditForm {
save(evt) {
evt.preventDefault();
this.props.save(this.state.model);
}
delete(evt) {
evt.preventDefault();
this.props.delete(this.props... |
src/main/resources/assets/javascripts/app.js | kined/airpal | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
|
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js | joerter/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import filters from '../../../../../utils/filters';
import Popout from '../../../../shared/Popout';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.number,
onApply: React.P... |
src/js/containers/main-content/index.js | frontendbr/eventos | 'use strict'
import React from 'react'
import Header from './header'
import Page from './page'
import Aside from './aside'
const MainContent = () => (
<main className='main' role='main'>
<Header />
<Page />
<Aside />
</main>
)
export default MainContent
|
js/routes/app/App.js | merodeadorNocturno/transfer | import React from 'react';
import ReactDOM from 'react-dom';
import TransferForm from '../transfersView/makeTransfer';
import { NavigationBar } from '../../components/common/NavigationBar';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
class App extends React.Component {
construc... |
src/App.js | chandlera/react-hot-boilerplate | import React, { Component } from 'react';
import Board from './Board';
export default class App extends Component {
render() {
return (
<Board knightPosition={[4, 7]} />
);
}
}
|
04-split-chunk/resources/assets/js/app1.js | Imballinst/webpack-incremental-tutorial | import React from 'react';
import feelsGoodMan from '../img/feelsgoodman.png';
import { printA } from './util';
console.log('xd');
printA();
|
ui/src/js/team/TeamPage.js | Dica-Developer/weplantaforest | import axios from 'axios';
import counterpart from 'counterpart';
import React, { Component } from 'react';
import NotificationSystem from 'react-notification-system';
import { browserHistory } from 'react-router';
import he from 'he';
import Notification from '../common/components/Notification';
import { createProfile... |
src/js/components/DropButton/stories/Simple.js | grommet/grommet | import React from 'react';
import PropTypes from 'prop-types';
import { Close } from 'grommet-icons';
import { Box, Button, DropButton, Heading, Text } from 'grommet';
const DropContent = ({ onClose }) => (
<Box pad="small">
<Box direction="row" justify="between" align="center">
<Heading level={3} margin=... |
src/month.js | TodayTix/tt-react-calendar | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import fp from 'lodash/fp';
import moment from 'moment';
import classNames from 'classnames';
import CalendarDayHeaders from './day-headers';
const daysInRange = _.memoize(
(firstDay, lastDay) => {
const arr = [];
// Not... |
browser/modules/layerTree/controls/DateControl.js | mapcentia/vidi | /*
* @author Alexander Shumilov
* @copyright 2013-2019 MapCentia ApS
* @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import Datetime from 'react-datetime';
import dayjs from 'dayjs';
const FORMAT = `YYYY-MM... |
app/components/Loading.js | EleTeam/Shop-React-Native | /**
* ShopReactNative
*
* @author Tony Wong
* @date 2016-08-13
* @email 908601756@qq.com
* @copyright Copyright © 2016 EleTeam
* @license The MIT License (MIT)
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
ActivityIndicator,
} from 'react-native';
import Common from '../common... |
examples/subcomponent/src/view.js | brabadu/tanok | import React from 'react';
import { tanokComponent } from 'tanok';
import { Counter } from './counter/view';
@tanokComponent
export class TwoCounters extends React.Component {
render() {
return (
<div>
<Counter {...this.props.top} tanokStream={this.sub('top')} />
<Counter {... |
docs/src/app/components/pages/components/FloatingActionButton/Page.js | rscnt/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 floatingButtonReadmeText from './README';
import floatingButtonExampleSim... |
src/pages/Overview.js | azedo/freelancer-calculator | // components/Overview.js
// main imports
import React, { Component } from 'react';
import DocumentTitle from 'react-document-title';
// components import
import ProjectModule from '../components/ProjectModule';
import Notice from '../components/Notice';
import Currency from '../components/Currency';
// other imports
... |
examples/formGroupAsync/phoneNumber.js | ikanedo/react-redux-simple-validate | import React, { Component } from 'react';
import { FormGroup, FormError } from 'react-redux-simple-validate';
export default class PhoneNumber extends Component {
constructor(props) {
super(props);
this.onRemovePhone = this.onRemovePhone.bind(this);
this.onAddPhone = this.onAddPhone.bind(this);
this... |
example/src/client/index.js | AprilArcus/adrenaline | /* @flow */
import 'whatwg-fetch';
import React from 'react';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import routes from './routes';
import { Adrenaline } from '../../../src';
import schema from 'shared/schema';
import Loader from './components/Loader';
const ... |
src/public/components/list/search.js | Harrns/segta | import React from 'react'
import List from '@react-mdc/list'
import SearchListItem from './item/search'
export default class SearchList extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
}
initState (props) {
Object.assign(this.state, {
tit... |
test/index.js | IceEnd/ice-video | import 'babel-polyfill';
import path from 'path';
import React from 'react';
import ReactDOM from 'react-dom';
import {AppContainer} from 'react-hot-loader';
import IceVideo from '../src/index';
import '../src/assets/sass/video.scss';
import './example.scss';
const render = (Component) => {
const settings = {
/... |
react/features/reactions/components/native/RaiseHandButton.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Text, TouchableHighlight, View } from 'react-native';
import { type Dispatch } from 'redux';
import {
createToolbarEvent,
sendAnalytics
} from '../../../analytics';
import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { RAISE_HAND... |
fields/types/boolean/BooleanColumn.js | wmertens/keystone | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'Boolean... |
src/components/Header/index.js | tehkaiyu/bananas | import React from 'react';
import bananaHeaderImage from './banana-header.png';
import './Header.scss';
const Header = ({ title, subtitle }) => (
<section className="Main-header page-section">
<h1 className="section--title animated">{title}</h1>
<h3 className="section--subtitle animated">{subtitle}</h3>
... |
assets/node_modules/react-router/es6/Lifecycle.js | janta-devs/janta | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/components/main/deteil/Header.js | BayShubar/react_shop | import React from 'react'
import { Link } from 'react-router-dom'
class Header extends React.Component{
render(){
return(
<div className='col-md-12' style={style.headerStyle}>
<Link to="/"><button className="btn btn-success" style={style.buyBtn}>Back</button></Link>
</div>
);
}
}
export default He... |
source/components/common-destinations-screen.js | Aokibi/Regents-Navigation | import React from 'react'
import CategoriesBar from './categories-bar'
import CommonDestination from './common-destination'
import MainMenuButton from './main-menu-button'
import HelpButton from './help-button'
import BackButton from './back-button'
import styles from './our-styles.less'
//import destinations from "../... |
src/svg-icons/navigation/more-horiz.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
node_modules/react-bootstrap/es/TabPane.js | rblin081/drafting-client | 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 ... |
good-old-react-authentication-flow/src/components/InputFileWithErrors/index.js | strapi/strapi-examples | /**
*
* InputFileWithErrors
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { differenceBy, isEmpty } from 'lodash';
// Design
import Label from '../Label';
import InputDescription from '../InputDescription';
import InputFile from '../InputFile';
import './... |
app/src/components/distribution/Distribution.js | mbmybook/website | 'use strict'
import '../../style.css'
import './distribution.css'
import React from 'react'
import Helmet from 'react-helmet'
import list from './distributionList.json'
class Distribution extends React.Component {
constructor(props) {
super(props)
}
render() {
return (
<div className='distribut... |
components/svg/Controls.js | jkling38/carbon | import React from 'react'
export const Controls = () => (
<svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14">
<g fill="none" fillRule="evenodd" transform="translate(1 1)">
<circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" strokeWidth=".5" />
<circle cx="26" c... |
src/widgets/FormInputs/FormToggle.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import { StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import { FormLabel } from './FormLabel';
import { ToggleBar } from '../ToggleBar';
import { FlexView ... |
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/NorgannonsProwess.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Com... |
public/src/components/products/Pagination.js | andy1992/react-redux-crud | import React from 'react';
import { Link } from 'react-router';
class Pagination extends React.Component
{
render() {
// calculate number of pages depending on the total of records and the
// "products per page" property
let pagesAmount = Math.ceil(this.props.productsAmount / this.props.pro... |
app/js/toolkit/LessThanSmall.js | JeffRisberg/RE03 | import React from 'react';
import PropTypes from 'prop-types';
import MatchMedia from './MatchMedia';
import { SMALL } from '../constants/breakpoints';
const LessThanSmall = ({ children, mediaFeatures }) => (
<MatchMedia mediaQuery={`(max-width: ${SMALL - 1}px)`} mediaFeatures={mediaFeatures}>
{ children }
</M... |
src/js/components/search-input.js | UNECE/Classification-Explorer | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { uriToLink } from '../router-mapping';
export default class SearchInput extends Component {
constructor(props) {
super(props);
this.handleSubmit = () => {
const forCode = this.refs.searchForCode.checked;
... |
addons/actions/src/containers/ActionLogger/index.js | rhalff/storybook | /* eslint-disable no-underscore-dangle */
import React from 'react';
import PropTypes from 'prop-types';
import deepEqual from 'deep-equal';
import { CYCLIC_KEY, retrocycle } from '../../lib';
import { isObject } from '../../lib/util';
import ActionLoggerComponent from '../../components/ActionLogger/';
import { EVENT... |
src/svg-icons/image/lens.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
react-apollo/src/index.js | TMaszko/react-apollo | import React from 'react';
import ReactDOM from 'react-dom';
import App2 from './App2';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import '../../shared/app.css';
const networkInterface = createNetworkInterface({ uri: 'https://namaste-marc-sandbo... |
examples/real-world/index.js | MathieuDoyon/redux | import 'babel-core/polyfill';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage fro... |
packages/react-dom/src/server/ReactPartialRenderer.js | aickin/react | /**
* Copyright (c) 2013-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 type {ReactElement} from 'shared/ReactElementType';
import React from 'react';
import emptyFunction from 'fbjs/lib/e... |
packages/bonde-admin/src/pages/admin/mobilizations/settings/sharing/page.js | ourcities/rebu-client | import React from 'react'
import MobSelectors from '@/mobrender/redux/selectors'
import * as MobActions from '@/mobrender/redux/action-creators'
import { FormShare } from '@/mobilizations/components'
import { SettingsForm } from '@/ux/components'
if (require('exenv').canUseDOM) {
require('./form-share.scss')
}
con... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | shaunstanislaus/actor-platform | import React from 'react';
import classNames from 'classnames';
import AvatarItem from 'components/common/AvatarItem.react';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
class RecentSectionItem extends React.Component {
static propTypes = {
dia... |
app/features/settings/AccountForm.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { reduxForm, Field, SubmissionError, propTypes as formPropTypes } from 'redux-form';
import {
selectUsername,
selectUserLevel,
selectApiKey,
selectApiKeyV2,
} from 'feat... |
client/components/Home.js | jimini-js/jimini | import React from 'react';
import Signup from './Signup.js';
import Login from './Login.js';
class Home extends React.Component {
constructor(){
super();
this.handleClick = this.handleClick.bind(this);
this.state = {
renderLogin: true
}
}
handleClick(){
this.setState({
renderLogi... |
src/components/button_copyLights.js | JohnDHamm/nog-web | import React, { Component } from 'react';
import values from '../styles/values';
class ButtonCopyLights extends Component {
render() {
const { btnSize, type } = this.props;
const circleDia = btnSize / 2.5;
const rootBorderColor = (type === 'paste_disabled') ? values.nogDisabled : values.nogGrayText;
const pa... |
templates/rubix/relay/relay-example/src/components/TodoForm.js | jeffthemaximum/jeffline | import React from 'react';
import Relay from 'react-relay';
import ReactDOM from 'react-dom';
import {
Row,
Col,
Grid,
Form,
Alert,
Button,
Checkbox,
FormGroup,
FormControl } from '@sketchpixy/rubix';
import AddTodoMutation from '../mutations/AddTodoMutation';
export default class TodoForm extends ... |
src/svg-icons/hardware/smartphone.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
pootle/static/js/shared/components/Tab.js | pavels/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 cx from 'classnames';
import React from 'react';
im... |
src/components/nonuse/frontPage.js | gordongordon/hom | import React from 'react';
//models
//import {Route} from 'mobx-router';
//components
//import {MatchPanelViewWrapper} from 'matchPanelView'
//import {ListOfPropertysView} from 'ListOfPropertysView'
import {FrontPapePanelViewSegment} from 'frontPagePanelViewSegment'
import NavigationBar from 'navigationBar'
import Mo... |
ajax/libs/react-instantsearch/5.2.2/Connectors.js | seogi1004/cdnjs | /*! React InstantSearch 5.2.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports',... |
examples/js/cell-edit/blur-to-save-table.js | opensourcegeek/react-bootstrap-table | 'use strict';
import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
var products = [];
function addProducts(quantity) {
var startId = products.length;
for (var i = 0; i < quantity; i++) {
var id = startId + i;
products.push({
id: id,
name: "Item n... |
src/options.js | unindented/puzzle-chrome | import React from 'react'
import {render} from 'react-dom'
import Options from 'components/options'
import {trackView, trackTiming, trackException} from 'utils/analytics'
import _template from './options.html'
const init = () => {
render(<Options />, document.querySelector('#container'))
trackView()
trackTimin... |
addons/docs/src/frameworks/react/__testfixtures__/js-function-component/input.js | kadirahq/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import { imported } from '../imported';
const local = 'local-value';
/**
* A component that renders its props
*/
export const PropsWriter = (props) => <pre>{JSON.stringify(props)}</pre>;
PropsWriter.propTypes = {
numberRequired: PropTypes.number.isR... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/CarouselCaption.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules } from './utils';
var CarouselCaption = function CarouselCaption(props) {
var captionHeader = props.captionHeader,
captionText = props.captionText,
cssModule = props.cssModule,
... |
entry_types/scrolled/package/src/frontend/ImageStructuredData.js | tf/pageflow | import React from 'react';
import {ensureProtocol} from './utils/urls';
import {useEntryMetadata} from '../entryState';
import {StructuredData} from './StructuredData';
export function ImageStructuredData({file}) {
const entryMedadata = useEntryMetadata();
const data = {
'@context': 'http://schema.org',
... |
src/index.js | ziel5122/pdie | import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import Main from './main';
import reducers from './reducers';
const store = createStore(reducers, window.__PRELOADED_STATE);
delete window.__PRELOADED_STATE;
render(
<Main store={store} />,
document.getElementById... |
src/index.js | kprzybylowski/redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
docs/app/Examples/modules/Modal/Types/ModalExampleScrolling.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button, Header, Icon, Image, Modal } from 'semantic-ui-react'
const ModalScrollingExample = () => (
<Modal trigger={<Button>Long Modal</Button>}>
<Modal.Header>Profile Picture</Modal.Header>
<Modal.Content image>
<Image wrapped size='medium' src='http://semantic-ui.co... |
example/examples/CustomMarkers.js | Gogowego/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... |
components/HashtagList.js | stevenctl/tweebot-ui | import React from 'react';
import AddButton from './AddButton';
import HashtagListItem from './HashtagListItem';
export default class HashtagList extends React.Component{
render(){
return(
<div className="panel panel-default">
<div className="panel-heading">
... |
src/svg-icons/navigation/check.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCheck = (props) => (
<SvgIcon {...props}>
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
</SvgIcon>
);
NavigationCheck = pure(NavigationCheck);
NavigationCheck.displayName = 'Navigati... |
components/pagination/demo/more.js | TDFE/td-ui | import React from 'react';
import Pagination from '../index';
export default class More extends React.Component {
render() {
return (
<Pagination defaultCurrent={6} total={500} />
)
}
}
|
src/components/header/normal/index.js | datea/datea-webapp-react | import './header-normal.scss';
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import DateaAppBar from '../../app-bar';
import Typography from '@material-ui/core/Typography';
import cn from 'classnames';
import AppBarLogo from '../common/app-bar... |
app/components/Link/index.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import { Link as RouterLink } from 'react-router-dom';
import styled from 'styled-components';
export const StyledLink = styled(RouterLink) `
text-decoration: none;
`;
export const A = styled.a`
text-decoration: none;
`;
class Link extends React.P... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | digitalorigin/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.
*/
import React from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
export default () => (
<img id="feature-image-inclusion... |
src/FormsyDate/FormsyDate.spec.js | maccuaa/formsy-mui | import 'jsdom-global/register';
import React from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Formsy, {Form} from 'formsy-react-2';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import test from 'tape';
import... |
src/Typography/Typography.js | collegepulse/material-react-components | import makeClass from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Styles from './Typography.css';
function Typography({
children, className, component, type, ...other
}) {
const Component = component;
return (
<Component {...other} className={makeClass([Styles[type]], ... |
app/components/incrementalinput/incrementalinput.js | hichameyessou/blip |
/**
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
Example/components/Register.js | dmazin/react-native-router-flux | import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import Button from 'react-native-button';
import { Actions } from 'react-native-router-flux';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F... |
frontend/src/index.js | GreatDevelopers/LibreHatti | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
frontend/src/Settings/Indexers/Indexers/Indexers.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import translate f... |
src/components/SignIn.js | hszeto/askout-react-native | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content,
Card, CardItem, Button, Text,
InputGroup, Input, Spinner, Toast } from 'native-base';
import { Col, Row, Grid } from 'react-native-easy-grid';
import { emailChanged, passwordCh... |
src/pages/Login.js | shaunsaker/real-dope | import React from 'react';
import { connect } from 'react-redux';
import { Link, browserHistory } from 'react-router';
import { Field, reduxForm } from 'redux-form';
import { Button } from 'react-bootstrap';
import { Motion, spring, presets } from 'react-motion';
// Components
import Header from '../components/Header'... |
contact/todo/components/Footer.js | linuxing3/electron-react | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
app/scripts/components/search.js | icanseesharp/react-typeahead-demo | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
const TMDBLogo = 'https://www.themoviedb.org/assets/2/v4/logos/powered-by-rectangle-green-dcada16968ed648d5eb3b36bbcfdd8cdf804f723dcca775c8f2bf4cea025aad6.svg';
class SearchBox extends Component {
handleChange(event) {
event.target.... |
docs/src/sections/FormControlsSection.js | mmarcant/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormControlsSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
demo/component/ProvinceMap.js | recharts/remaps | "use strict"
import React from 'react';
import ReactDOM from 'react-dom';
import {MapContainer} from 'remaps';
// import { ChinaData, ProvinceData } from 'china-map-geojson';
// import WorldData from 'world-map-geojson';
const newData = [
{name: '杭州市', title: '浙江省 - 四川省', value: 4413, index: 0},
{name: '绍兴市', tit... |
node_modules/react-bootstrap/es/PagerItem.js | vitorgomateus/NotifyMe | 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 ... |
docs/app/Examples/elements/Label/Content/LabelExampleImageShorthand.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleImageShorthand = () => {
const imageProps = {
avatar: true,
spaced: 'right',
src: '/assets/images/avatar/small/elliot.jpg',
}
return <Label as='a' content='Elliot' image={imageProps} />
}
export default LabelExamp... |
src/components/WebView.js | lelandrichardson/react-native-mock | import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType';
import React from 'react';
import View from './View';
import ScrollView from './ScrollView';
import WebViewManager from '../NativeModules/WebViewManager';
const { PropTypes } = React;
const RCT_WEBVIEW_REF = 'webview';
const NavigationType = {
click... |
src/Parser/Priest/Shadow/Modules/Spells/VoidformGraph.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ChartistGraph from 'react-chartist';
import Chartist from 'chartist';
import 'chartist-plugin-legend';
import './VoidformsTab.css';
const formatDuration = (duration) => {
const seconds = Math.floor(duration % 60);
return `${Math.floor(duration... |
floodwatch/src/js/pages/Profile.js | O-C-R/floodwatch | // @flow
import React from 'react';
import { Col } from 'react-bootstrap';
import ProfileExplanation from '../components/ProfileExplanation';
import ProfileDemographics
from '../components/profile_demographics/ProfileDemographics';
const ProfilePage = () => (
<Col xs={12} md={8} mdOffset={2}>
<div className=... |
app/common/post/PostItem.js | ecellju/internship-portal | import React from 'react';
import { Card, Table, Icon } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import Axios from 'axios';
import Auth from '../../auth/modules/Auth';
import User from '../../auth/modules/User';
import './styles.scss';
function formatDate(d... |
app/javascript/flavours/glitch/features/reblogs/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
import { fetchReblogs } from 'flavours/glitch/actions/interactions';
import Accou... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleHeader.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleHeader = () => (
<Dropdown text='Filter' icon='filter' floating labeled button className='icon'>
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Item>Important</Dropdown.Item>... |
src/parser/druid/guardian/modules/spells/Pulverize.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';... |
internals/templates/containers/App/index.js | rlagman/raphthelagman | /**
*
* App.js
*
* 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 { Switch, Route } from 'react-router-dom';
import HomePage from 'containers/HomePage/Loadable';
import NotFoun... |
storybook/stories/index.js | timLoewel/sites | import React from 'react';
import {Text} from 'react-native';
import {storiesOf, action, linkTo} from '@kadira/react-native-storybook';
import Button from './Button';
import CenterView from './CenterView';
import Welcome from './Welcome';
/// import stories
import './SampleStories';
import '../../src/components/tabP... |
src/client/components/Footer.js | YingQQQ/React-Blog | import React from 'react';
import Row from './Grid/Row';
import Col from './Grid/Col';
const justifyType = {
around: 'around',
center: 'center'
};
export default() => {
return (
<footer className="boxShadow default-margin">
<Row justifyType={justifyType.center}>
<Col xs={5} >
<Row j... |
docs/src/app/components/pages/components/List/ExampleContacts.js | w01fgang/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import Divider from 'material-ui/Divider';
import Avatar from 'material-ui/Avatar';
import {pinkA200, transparent} from 'mater... |
client/admin/settings/inputs/GenericSettingInput.js | iiet/iiet-chat | import { Box, Field, Flex, TextInput } from '@rocket.chat/fuselage';
import React from 'react';
import { ResetSettingButton } from '../ResetSettingButton';
export function GenericSettingInput({
_id,
label,
value,
placeholder,
readonly,
autocomplete,
disabled,
hasResetButton,
onChangeValue,
onResetButtonClic... |
node_modules/react-router/es/withRouter.js | lousanna/sinatrademo | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
ui/src/main/js/components/UpdateInstanceEvents.js | medallia/aurora | import moment from 'moment';
import React from 'react';
import { Link } from 'react-router-dom';
import Icon from 'components/Icon';
import Pagination from 'components/Pagination';
import StateMachine from 'components/StateMachine';
import { addClass, sort } from 'utils/Common';
import { UPDATE_ACTION } from 'utils/T... |
js/components/pages/MoviePage.react.js | cs2340-titans/RoastWeb | /**
* Created by andy on 3/6/16.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import MovieCard from '../MovieCard.react';
import CircularProgress from 'material-ui/lib/circular-progress';
import RT from '../../sources/RottenTomato';
class MoviePage extends Component {
construct... |
docs/app/Examples/elements/Button/States/ButtonExampleActive.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleActive = () => (
<Button active>Active</Button>
)
export default ButtonExampleActive
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.