path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
l6_stock/step1DraftUI/index.js | kobkrit/learn-react-native | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
class l6_stock extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.stockName}>
... |
examples/js/selection/default-select-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
js/jqwidgets/demos/react/app/grid/dataexport/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.excelExport.on('click', () => {
... |
src/svg-icons/communication/present-to-all.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
test/compoents/compoents.js | kris1226/clymer-metal-crafts | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
|
src/svg-icons/av/new-releases.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1... |
js/src/dapps/localtx/Application/application.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/components/PeopleRow.js | mjec/rc-niceties | import React from 'react';
import { Row, Col } from 'react-bootstrap';
import Person from "./Person";
const PeopleRow = (props) => (
<Row>
{props.data.map((result) => (
<Col lg="3" md="6" sm="6" xs="12">
<Person
fromMe={props.fromMe}
data... |
assets/javascripts/kitten/components/form/input/modal-footer-input/stories.js | KissKissBankBank/kitten | import React from 'react'
import { ModalFooterInput } from './index'
import { action } from '@storybook/addon-actions'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Form/Input/ModalFooterInput',
component: ModalFooterInput,
decorators: [
story => (
<div className="story-Contai... |
app/components/Hero/index.js | balintsoos/app.rezsi.io | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import background from './background.jpg';
const Image = styled.div`
width: 100%;
height: 100%;
background-image: url(${background});
background-repeat: no-repeat;
background-size: cover;
background-pos... |
app/containers/NewCharacters/NewCharactersContainer.js | Tetraib/player.rauks.org | // bug : very slow to update names because of all redraw
// Spilt into 3 container
import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { browserHistory } from 'react-router'
import FlatButton from 'material-ui/FlatButton'
import * as newCharactersActionCr... |
src/components/BooksList/BooksList.js | mikeadossi/Bookstore | import React from 'react';
import IndividualBook from 'components/IndividualBook/IndividualBook';
export default class BooksList extends React.Component{
constructor(props){
super(props)
}
renderItems() {
// const { toggleTask, deleteTask, saveTask } = this.props
console.log('allBooks: ',this.props... |
docs/app/Examples/elements/Segment/Variations/SegmentExamplePadded.js | clemensw/stardust | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExamplePadded = () => (
<Segment padded>
Padded content.
</Segment>
)
export default SegmentExamplePadded
|
src/components/paper/Paper.js | kairatz/resource-frontend-server | import React from 'react'
import Statuses from './Statuses'
const Paper = ({ user, position, data, onStatusSelect }) => (
<div className="row">
<div className="col-md-6">
<Statuses data={data} user={user} position={position} onStatusSelect={onStatusSelect}/>
{
positio... |
lib/components/ContactProfile.js | mlimberg/Digidex | import React, { Component } from 'react';
import Input from './Input';
import Button from './Button';
import firebase from 'firebase';
import Link from './Link';
export default class ContactProfile extends Component {
constructor(props) {
super(props);
this.state = {
followUp: this.props.contact['follo... |
client/src/client-app.js | paulsonnentag/schaudepot | import React, { Component } from 'react';
import { Slider } from './slider';
export class ClientApp extends Component {
constructor () {
super();
this.state = {slides: [
{
template: '<h1><%= title %></h1>',
data: {title: 'slide1'}
},
{
template: '<h1><%= title %></h1... |
fields/types/markdown/MarkdownColumn.js | dvdcastro/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
examples/updated-react/src/App.js | rematch/rematch | import React from 'react'
import moment from 'moment'
import { connect } from 'react-redux'
const App = ({ count, asyncIncrement, lastUpdated }) => (
<div>
<h2>
count is <b style={{ backgroundColor: '#ccc' }}>{count}</b>
</h2>
<h2>
<button onClick={asyncIncrement}>
Increment count (delayed 1 second)
... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js | everisARQ/keystone | import React from 'react';
import classnames from 'classnames';
import Columns from '../../../../../fields/columns';
import ListControl from '../ListControl';
import { DropTarget, DragSource } from 'react-dnd';
import {
setDragBase,
resetItems,
reorderItems,
setRowAlert,
moveItem,
} from '../../actions';
const... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | Pop-Code/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes:... |
front/app/js/App.js | nudoru/learning-map | import React from 'react';
import AppStore from './store/AppStore';
import {
setAllegoStatements,
setCoursesInMap,
setCurrentStructure,
setFullUserProfile,
setHydratedContent,
setLMSStatus,
setLRSStatements,
setSDBStatus,
setShadowEnrollments
} from './store/actions/Actions';
import {
getCurrentStru... |
packages/wix-style-react/src/TableActionCell/docs/examples/AlwaysVisibleSecondaryExample.js | wix/wix-style-react | import React from 'react';
import Duplicate from 'wix-ui-icons-common/Duplicate';
import Print from 'wix-ui-icons-common/Print';
import { classes } from '../TableActionCell.story.st.css';
import { TableActionCell } from 'wix-style-react';
const Example = () => (
<div className={classes.exampleRow}>
<TableActio... |
src/index.js | oliver-jk-redding/mywebsite | import React from 'react'
import {render} from 'react-dom'
import {createStore} from 'redux'
import {Provider} from 'react-redux'
import '../public/styles/main.css'
import '../public/styles/effects.css'
import reducer from './reducer'
import App from './components/App'
const store = createStore(reducer)
render(
<P... |
src/js/react/components/App/Login.js | mandricore/react-vue2-apollo | import React from 'react';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { hashHistory } from 'react-router';
import { Button, Modal, OverlayTrigger, NavItem, Form, FormControl, FormGroup, Row, Col, ControlLabel} from 'react-bootstrap';
import config from './../../../config';
const Logi... |
front/app/js/ApplicationContainer.js | nudoru/learning-map | import React from 'react';
import ModalMessage from './rh-components/rh-ModalMessage';
import PleaseWaitModal from './rh-components/rh-PleaseWaitModal';
import App from './App';
import AppStore from './store/AppStore';
import {setConfig} from './store/actions/Actions';
import {fetchConfigData} from './services/fetchCon... |
script/components/email/emailSubmitList.js | davidmashe/applilanche | import React from 'react';
// inner class used by EmailSubmitList
class EmailSubmit extends React.Component {
constructor(props) {
super(props);
this.state = {
email:"",
description:"",
note:""
};
}
getRadioButtons() {
return (
<div>
<label value="cover letter:">cover letter -></label>
... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/sendprompt.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
const SendPrompt = ({currencytype, sendAddress, sendAmount, actions}) => {
const handleSendAddressChange = (e) => actions.setSendAddress(e.target.value)
const handleSendAmountChange = (e) => actions.setSendAmount(e.target.value)
const handleSendClick = ()... |
src/components/searchbar.js | iamwithnail/react-redux | /**
* Created by chris on 04/03/2017.
*/
import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: 'Some stuff'};
}
render() {
return (
<div className="search-bar">
<input
value={t... |
src/client/modules/forms/components/SelectField.js | dunika/job-admin | import React from 'react';
import styled from 'styled-components';
import { compose, mapProps } from 'recompose';
import { formInput } from '../hoc';
const Input = styled.input``;
const TextArea = styled.textarea``;
const TextField = ({ Component, id, label, ...rest }) => (
<Component
{...rest}
id={id}
... |
src/components/TransferForm/TransferForm.js | OR13/car2go | import React from 'react'
import { PropTypes } from 'prop-types';
import { connect } from 'react-redux'
import { Field, reduxForm, submit } from 'redux-form'
import RaisedButton from 'material-ui/RaisedButton'
import TextField from 'components/TextField'
import { Grid, Row, Col } from 'react-flexbox-grid';
import { Ca... |
src/Vorici.js | KenanY/vorici | 'use strict';
import chromatic from 'chromatic-orb';
import React from 'react';
import { roundTo as round } from 'round-to';
import geovar from 'geometric-variance';
import Griddle, {
ColumnDefinition,
plugins,
RowDefinition
} from 'griddle-react';
import socketColorsChance from 'socket-colors-chance';
import { ... |
08-promises/src/index.js | benmvp/react-esnext | // Module imports to load in dependencies
// Uses both default & named imports
import React from 'react';
import {render} from 'react-dom';
import App from './containers/App';
render(
<App url="//localhost:3000/api/comments" pollInterval={2000} />,
document.getElementById('app')
);
|
components/common/CountryDropdown.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage, defineMessages} from 'react-intl';
import SWAutoComplete from './SWAutoComplete';
import {Form, Dropdown} from 'semantic-ui-react';
/**
* Renders an accessible dropdown menu list of countries.
*/
class CountryDropdown extends Re... |
vam-client/src/views/widgets/ActiveProblems.js | vistadataproject/nodeVISTAClients | import React from 'react';
import format from 'date-fns/format';
import filter from 'lodash/filter';
import ButtonView from '~/react-views/ButtonView';
import TableWidget from './TableWidget';
import RecordsCollection from "./RecordsCollection";
import PatientState from '~/PatientState';
class ActiveProblems extend... |
spec/javascripts/jsx/webzip_export/components/ExportListSpec.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... |
client/pages/splash.js | quarterto/almanac | import url from 'url'
import React from 'react'
import styled from 'styled-components'
import generateCampaign from '@quarterto/campaign-name-generator'
import formJson from '@quarterto/form-json'
import Link from '../control/link'
import { go } from '../utils/router'
import Logo from '../visual/logo'
import { Button }... |
src/js/posts/components/comments.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import CommentItem from './comment-item';
const Comments = ({items}) => {
if (!items || items.length === 0) {
return null;
}
return (
<section>
<hr/>
{
items.map((p, i) => <CommentItem ... |
js/src/routes.js | romainberger/reddjent | import React from 'react'
import {Route, DefaultRoute} from 'react-router'
import App from './app'
import Home from './home'
const routes = (
<Route handler={App}>
<DefaultRoute handler={Home}/>
<Route name="youtube" path="/youtube/:id" handler={Home}/>
<Route name="soundcloud" path="/sound... |
docs/app/Examples/elements/Icon/Variations/IconExampleInvertedColored.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Segment, Icon } from 'semantic-ui-react'
const IconExampleInvertedColored = () => (
<Segment inverted>
<Icon inverted color='red' name='users' />
<Icon inverted color='orange' name='users' />
<Icon inverted color='yellow' name='users' />
<Icon inverted color='olive'... |
src/components/List.js | dazhifu/react-touch-ui | import React from 'react';
import assign from 'object-assign'
import classnames from 'classnames';
import { View } from "./View.js"
import Utils from "./common/Utils.js"
import './List.scss'
export class List extends React.Component {
constructor(props) {
super(props);
};
render() {
... |
src/pages/contact/index.pt.js | angeloocana/angeloocana | import React from 'react';
import Contact from '../../components/Contact';
import graphql from 'graphql';
export default (props) => <Contact {...props} />;
export const pageQuery = graphql`
query ContactPt {
site{
siteMetadata{
contact {
type
value
country
l... |
server/sonar-web/src/main/js/apps/about/components/AboutCleanCode.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
index.js | lamjack/redux-react-wechat-editor | 'use strict';
import React from 'react'
import { render } from 'react-dom'
import { compose, createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import reducer from './reduces'
import Editor from './containers/Editor'
imp... |
src/svg-icons/action/perm-identity.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermIdentity = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9... |
src/js/components/deployments/deployment-wizard/phasesettings.js | michaelatmender/gui | import React from 'react';
import pluralize from 'pluralize';
import { Add as AddIcon, Cancel as CancelIcon } from '@mui/icons-material';
import { Chip, Table, TableBody, TableCell, TableHead, TableRow, Select, MenuItem, Input, InputAdornment, IconButton } from '@mui/material';
import { useTheme } from '@mui/material/... |
addons/actions/src/components/ActionLogger/index.js | rhalff/storybook | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Inspector from 'react-inspector';
import { Actions, Action, Button, Wrapper, InspectorContainer, Countwrap, Counter } from './style';
class ActionLogger extends Component {
getActionData() {
return this.props.actions.map(action ... |
docs/src/examples/modules/Progress/States/ProgressExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleDisabled = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressExampleDisabled
|
app/javascript/flavours/glitch/features/compose/components/reply_indicator.js | glitch-soc/mastodon | // Package imports.
import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
// Components.
import AccountContainer from 'fla... |
website/modules/examples/ModalGallery.js | DelvarWorld/react-router | import React from 'react'
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from 'react-router-dom'
// This example shows how to render two different screens
// (or the same screen in a different context) at the same url,
// depending on how you got there.
//
// Click the colors and see them full screen,... |
src/components/GameBoard.js | boopeshmahendran/simon-game | import React, { Component } from 'react';
import GameButton from './GameButton';
import GameMenu from './GameMenu';
import GameOverScreen from './GameOverScreen';
import { colors } from '../constants';
import Radium from 'radium';
class GameBoard extends Component {
constructor() {
super();
this.styles = {
... |
modules/tribes/client/components/TribesHeader.js | Trustroots/trustroots | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import Board from '@/modules/core/client/components/Board';
export default function TribesHeader({ isLoggedIn }) {
const { t } = useTranslation('circles');
return (
<Board names="tribes-1" className=... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleImage.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { friendOptions } from '../common'
const DropdownExampleImage = () => (
<Dropdown text='Add user' floating labeled button className='icon'>
{/* <i class="add user icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header content='Peop... |
node_modules/react-router/es/withRouter.js | vitorgomateus/NotifyMe | 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; };
import invariant from 'invariant';
import React from 'react';... |
src/router.js | eh3rrera/react-horizon | import React from 'react';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import authenticate from './authenticate-route'
// Layout
import MainLayout from './components/main-layout';
// Pages
import Home from './components/home';
import MessageContainer from './components/message-container'... |
src/routes/home/index.js | mcfa77y/isla_de_pescua | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
impo... |
src/components/text.js | shawware/react-calculator | import React, { Component } from 'react';
class Text extends Component {
render() {
return(
<p className="calc-text">
{this.props.text}
</p>
);
}
}
export default Text;
|
src/svg-icons/image/filter-vintage.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
src/containers/DevToolsWindow.js | bingomanatee/ridecell | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
app/scripts/SeriesListItems.js | hms-dbmi/4DN_matrix-viewer | import React from 'react';
import ContextMenuItem from './ContextMenuItem';
import { TRACKS_INFO_BY_TYPE } from './configs';
import '../styles/ContextMenu.module.scss';
/**
* Return a list of all the tracks and subtracks from
* the list of tracks
*
* @param {array} tracks: A list of tracks to go through
*/
exp... |
src/screens/LoginScreen.js | RichHomies/Poof | import React, { Component } from 'react';
import { Container, Content, List, ListItem, InputGroup, Input, Icon, Text, Picker, Button } from 'native-base';
import ws from '../socket/client.js';
import storage from '../storage.js';
const Item = Picker.Item;
export default class LoginScreen extends Component {
constru... |
src/controls/select/select.js | thinktopography/reframe | import Token from '../../components/token'
import Format from '../../utils/format'
import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
const Select = (multiple) => {
class Control extends React.Component {
static propTypes = {
defaultValue: PropTypes.any,
multiple: P... |
src/esm/components/feedback/vertical-stepper/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["children", "variant", "className"];
import React from 'react';
import styled from 'styled-components';
import { pxToRem } from '../../../helpers/utils... |
src/index.js | dloa/react-alexandria-ux | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
source/client/routes.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import { Route } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import MovieAdd from './components/MovieAdd';
import UserProfile from './components/UserProfile';
import UserRegister from './components/UserRegister';
import UserLogin fro... |
addons/storyshots/storyshots-core/stories/exported_metadata/preview.js | kadirahq/react-storybook | import React from 'react';
export const decorators = [
(StoryFn, { parameters, globals }) => (
<div>
{parameters.prefix} <StoryFn /> {globals.suffix}
</div>
),
];
export const parameters = { prefix: 'prefix' };
export const globals = { suffix: 'suffix' };
|
actor-apps/app-web/src/app/utils/require-auth.js | liuzwei/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/Button.js | Cotidia/react-ui | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
export default function Button({
buttonOnly,
children,
className,
disabled,
display,
fullWidth,
loading,
size,
status,
...props
}) {
const buttonClasses = classnames(
'bt... |
src/components/Home/Inspirational/Inspirational.js | jumpalottahigh/jumpalottahigh.github.io | import React from 'react'
import Button from '../../elements/Button/Button'
const Inspirational = () => (
<section style={{ gridColumn: '1/-1' }}>
<p className="inspirational">
<em>
One of the reasons I keep my teenage hip hop pseudonim to this day even
in places like twitter and github, is... |
frontend/components/content-selector/content-selector-modal.js | apostolidhs/wiregoose | import throttle from 'lodash/throttle';
import findLast from 'lodash/findLast';
import each from 'lodash/each';
import React from 'react';
import Modal from 'react-bootstrap/lib/Modal';
import PropTypes from 'prop-types';
import CSSModules from 'react-css-modules';
import { browserHistory } from 'react-router';
import... |
src/Drawer/PermanentDrawer/Content.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../../types'
class Content extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
static displayName = 'Drawer.Permanent.Content'
render() {
const { component: Component, classNa... |
admin/client/App/components/Navigation/Primary/index.js | trentmillar/keystone | /**
* The primary (i.e. uppermost) navigation on desktop. Renders all sections and
* the home-, website- and signout buttons.
*/
import React from 'react';
import { Container } from '../../../elemental';
import PrimaryNavItem from './NavItem';
var PrimaryNavigation = React.createClass({
displayName: 'PrimaryNavig... |
analysis/warlockdestruction/src/modules/talents/Flashover.js | anom0ly/WoWAnalyzer | import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { Tooltip } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import Events from 'par... |
docs/src/app/components/pages/components/AppBar/ExampleIcon.js | barakmitz/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
const AppBarExampleIcon = () => (
<AppBar
title="Title"
iconClassNameRight="muidocs-icon-navigation-expand-more"
/>
);
export default AppBarExampleIcon;
|
exercises/isomorphic/solution/app.js | tako-black/learnyoureact | import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data} />, document.getElementById("app")); |
examples/with-redux-code-splitting/containers/homepage.js | callumlocke/next.js | import React from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {namespaceConfig} from 'fast-redux'
import Link from 'next/link'
const DEFAULT_STATE = {build: 1}
const {actionCreator, getState: getHomepageState} = namespaceConfig('homepage', DEFAULT_STATE)
const bumpBuil... |
app/components/Login/index.js | basask/react-router-material-ui-seed | import React from 'react';
import {TextField, RaisedButton, Paper} from 'material-ui';
import {Container, Row, Col} from 'react-grid-system';
const style = {
padding: 25,
marginTop: 50
}
class Login extends React.Component {
render() {
return (
<Container>
<Row>
<Col xs={12} sm={10} ... |
src/routes.js | rafurr/react-material-ui-components | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import ReduxMUIPage from './containers/ReduxMUIPage'; // eslint-disable-line import/no-named-as-default
import ReduxPage from './containers/ReduxPage'; // eslin... |
src/components/Assets/Pins/BookEle.js | Ftornik/forwardteam.space | import React, { Component } from 'react';
import svg from 'lib/svg';
@svg({
width: 600,
height: 525.4
})
class BookEle extends Component {
render = () => {
const st2Style = {
fill: 'none',
stroke: '#3A364D',
strokeWidth: 6,
strokeLinecap: 'round',
... |
app/scripts/Dashboard/Container.js | igr-santos/hub-client | import React from 'react'
import classnames from 'classnames'
export default ({ className }) => ({ children, ...props }) => (
<div className={classnames("container", className)}>
{children && React.cloneElement(children, props)}
</div>
)
|
js/components/header.js | stage88/react-weather | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Animated,
Dimensions,
RefreshControl
} from 'react-native';
import { connect } from 'react-redux';
import ParallaxScrollView from '../dependencies/parallaxview';
import { getAllWeather, se... |
src/components/common/svg-icons/notification/folder-special.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationFolderSpecial = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29... |
boilerplate/app/modules/account/password/change-password-screen.js | ruddell/ignite-jhipster | import React from 'react'
import { Alert, ScrollView, Text, TouchableHighlight } from 'react-native'
import { connect } from 'react-redux'
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
import t from 'tcomb-form-native'
import ChangePasswordActions from '../password/change-password.r... |
fields/types/relationship/RelationshipField.js | Adam14Four/keystone | import async from 'async';
import Field from '../Field';
import { listsByKey } from '../../../admin/client/utils/lists';
import React from 'react';
import Select from 'react-select';
import xhr from 'xhr';
import { Button, InputGroup } from 'elemental';
import _ from 'lodash';
function compareValues (current, next) {
... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/PaginationButton.js | JamieMason/npm-cache-benchmark | 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/components/App.js | nchathu2014/todo-redux | import React from 'react';
export default class App extends React.Component{
constructor(props){
super(props);
}
render(){
return(
<div className="container">
<h2>React-Redux</h2>
</div>
);
}
}
|
src/components/video_detail.js | chanddu/video_browser | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div> Loading... </div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-respo... |
docs/src/Routes.js | Azerothian/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import NotFoundPage from './NotFoundPage';
import {Route, DefaultRoute, NotF... |
app/javascript/mastodon/features/getting_started/index.js | pfm-eyesightjp/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-checkboxes.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputMixin from './input-mixin.js';
import Checkbox from './checkbox.js';
import './checkboxes.less';
export default React.createClass({
mixins: [
BaseMixin,
ElementaryMixin,
InputMixin
],
st... |
src/components/molecules/button-icon.js | raulfdm/cv | import React from 'react';
import styled from 'styled-components';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const Button = styled.button`
background-color: transparent;
border: none;
cursor: pointer;
`;
const VARIA... |
src/components/Dashboard/dashboard.js | ChronoBank/ChronoWAVES | import React from 'react';
import {connect} from 'react-redux';
import {Card, CardText, CardActions, CardHeader} from 'material-ui/Card';
import Avatar from 'material-ui/Avatar';
import Toolbar from '../Toolbar';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import {Send... |
client/admin/settings/inputs/ActionSettingInput.js | Sing-Li/Rocket.Chat | import { Button, Field } from '@rocket.chat/fuselage';
import React from 'react';
import { useMethod } from '../../../contexts/ServerContext';
import { useToastMessageDispatch } from '../../../contexts/ToastMessagesContext';
import { useTranslation } from '../../../contexts/TranslationContext';
export function Action... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Jumbotron.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import React from 'react';
import classNames from 'classnames';
import { createBootstrapC... |
examples/contactlist/app/Contact.js | zalmoxisus/react-chat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Avatar from 'react-chat/components/Avatar';
import styles from './contactlist.scss';
import UserMenu from './UserMenu';
export default class Contact extends Component {
render() {
const { store, contactItem } = this.props;
r... |
modules/Link.js | malte-wessel/react-router | import React from 'react'
import warning from './warning'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEm... |
docs/src/Routes.js | AlexKVal/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
app/components/SideBar/SideBar.js | mfi-dev/jag-kiosk | /* global $ */
import React from 'react'
import { Link } from 'react-router'
import './SideBar.styl'
class SideBar extends React.Component {
componentDidMount () {
$('.BackButton').on('touchstart, click', function (e) {
e.preventDefault()
var href = $(this).attr('href')
$(this).addClass('active... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-27-glow/js-glow/src/performance/dbmon/react/app.js | js-works/js-surface | /** @jsx React.createElement */
import ENV from '../shared/env.js';
import React from 'react';
import ReactDOM from 'react-dom';
export default class DBMon extends React.Component {
constructor(props) {
super(props);
this.state = {
databases: []
};
}
loadSamples()... |
src/modules/chat/chatMain/components/PostBox.js | Florenz23/sangoo_04 | import React from 'react'
import { View, StyleSheet, Text, ScrollView } from 'react-native'
import { posts } from '../../../../mock/posts'
import Icon from 'react-native-vector-icons/Ionicons';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
const PostBox = (props) => {
return (
<ScrollView>... |
imports/ui/components/debts/Debts.js | KyneSilverhide/expense-manager | /* eslint-disable no-confusing-arrow */
import React from 'react';
import FontAwesome from 'react-fontawesome';
import List, { ListItem, ListItemText } from 'material-ui/List';
import Grid from 'material-ui/Grid';
import Paper from 'material-ui/Paper';
import Typography from 'material-ui/Typography';
import { sortByMa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.