path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/icons/base/Up.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
frontend/src/idPortal/appBar.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Popover from 'material-ui/Popover';
import AppBar from 'material-ui/AppBar';
import Typography from 'material-ui/Typography';
import IconButton from... |
src/routes/contact/index.js | zmj1316/InfomationVisualizationCourseWork | /**
* 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 Layout from '../../compo... |
examples/huge-apps/components/GlobalNav.js | levjj/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
src/svg-icons/hardware/keyboard-voice.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardVoice = (props) => (
<SvgIcon {...props}>
<path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6.... |
src/svg-icons/action/swap-vert.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVert = (props) => (
<SvgIcon {...props}>
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/>
</SvgIcon>
);
ActionSwapVert = pure(ActionSwapVert);
ActionSwapVert.displa... |
server/sonar-web/src/main/js/apps/about/components/AboutLeakPeriod.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
client/src/components/InfoPage.js | Pairboard/Pairboard | import React from 'react';
export default function InfoPage() {
return (
<div>
<p>This pair noticeboard in intended only for use by FCC Forum participants - it doesn't work without a valid forum account.</p>
<p>This was made in response to the week long <a href="https://forum.freecodecamp.com/t/compu... |
src/components/DayHours.js | NataGrankina/surprise-calendar | require('normalize.css');
require('styles/App.scss');
import React from 'react';
class DayHoursComponent extends React.Component {
render() {
var events = [];
var hours = [];
for (var i = 0; i < 24; i++) {
hours.push(<div key={i} className="hour-box">{i}:00</div>);
}
return (
<d... |
app/components/ErrorLine.js | dikalikatao/fil | import React from 'react';
export default class ErrorLine extends React.Component {
render() {
let block = "console__error-line",
error = this.props.error;
return (
<div className={block}>
<pre className={block + "__description"}>
{error}
</pre>
</div>
);
... |
src/components/Nav/Nav.js | moxun33/react-mobx-antd-boilerplate | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Menu, Icon } from 'antd';
const SubMenu = Menu.SubMenu;
const MenuItemGroup = Menu.ItemGroup;
export default class Nav extends Component {
state = {
current: 'index'
};
handleClick = e => {
console.log('click ',... |
src/app/components/portalSignup.js | nazar/soapee-ui | import React from 'react';
import Portal from 'react-portal';
import AnimatedModal from 'components/animatedModal';
export default React.createClass({
render() {
return (
<Portal
isOpened={this.props.isOpened}
closeOnEsc={true}
closeOnOutsideCli... |
src/containers/TrustPublish.js | iris-dni/iris-frontend | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { fetchPetition } from 'actions/PetitionActions';
import settings from 'settings';
import Trust from 'components/Trust';
import getPetitionForm from 'selectors/petitionForm';
const TrustPublishContainer = (props... |
src/containers/Forms/Slider/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Slider from '../../../components/uielements/slider';
import PageHeader from '../../../components/utility/pageHeader';
import Box from '../../../components/utility/box';
import LayoutWrapper from '../../../components/utility/layoutWrapper';
import ContentHolder from '../.... |
src/Creatable.js | mmpro/react-select | import PropTypes from 'prop-types';
import React from 'react';
import defaultFilterOptions from './utils/defaultFilterOptions';
import defaultMenuRenderer from './utils/defaultMenuRenderer';
import Select from './Select';
class CreatableSelect extends React.Component {
constructor (props, context) {
super(props, c... |
src/common/Dialog/DialogStandardButtons.js | Syncano/syncano-dashboard | import React from 'react';
import _ from 'lodash';
import { FlatButton, RaisedButton } from 'material-ui';
const DialogStandardButtons = ({
handleCancel,
handleConfirm,
submitLabel = 'Confirm',
cancelLabel = 'Cancel',
inverted,
disabled,
submitDisabled,
cancelDisabled,
...other
}) => {
const style... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | sc4599/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
src/lib/reactors/Showcase/ItemThumbnail.js | ynunokawa/react-webmap | // Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to us... |
docs/src/app/components/pages/components/DatePicker/ExampleInline.js | rscnt/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
const DatePickerExampleInline = () => (
<div>
<DatePicker hintText="Portrait Inline Dialog" container="inline" />
<DatePicker hintText="Landscape Inline Dialog" container="inline" mode="landscape" />
</div>
);
export default DateP... |
src/Menu/SimpleMenu.js | dimik/react-material-web-components | import React from 'react'
import PropTypes from 'prop-types'
import {MDCComponent} from '../MDCComponent'
import {List} from '../List'
import {MDCSimpleMenu} from '@material/menu/dist/mdc.menu'
import classNames from 'classnames'
class SimpleMenu extends MDCComponent {
static displayName = 'SimpleMenu'
static pro... |
components/ImpactLeague/ImpactLeagueCode.js | akashnautiyal013/ImpactRun01 |
'use strict';
import React, { Component } from 'react';
import{
StyleSheet,
View,
Image,
ScrollView,
TextInput,
Dimensions,
TouchableOpacity,
Text,
AlertIOS,
Platform,
ActivityIndicatorIOS,
AsyncStorage
} from 'react-native';
import commonStyles from '../styles';
impo... |
tests/components/icons/status/Blank-test.js | abzfarah/Pearson.NAPLAN.GnomeH | import {test} from 'tape';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Blank from '../../../src/components/icons/status/Blank';
import CSSClassnames from '../../../src/utils/CSSClassnames';
const STATUS_ICON = CSSClassnames.STATUS_ICON;
test('loads a blank icon', (t) => {
t.p... |
web/client/configdev/src/config/Usage.js | project-owner/Peppy | /* Copyright 2019-2020 Peppy Player peppy.player@gmail.com
This file is part of Peppy Player.
Peppy Player 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) a... |
client/src/components/dashboard/profile/utils/header.js | mikelearning91/seeme-starter | import React, { Component } from 'react';
import { Link } from 'react-router';
import mui from 'material-ui';
import MdIconPack from 'react-icons/lib/md';
import MdPeople from 'react-icons/lib/md/people';
import MdTouchApp from 'react-icons/lib/md/touch-app';
import MdExitApp from 'react-icons/lib/md/exit-to-app';
cons... |
examples/react/src/players/NoPreload.js | andfk/react-howler | import React from 'react'
import ReactHowler from 'ReactHowler'
import Button from '../components/Button'
class NoPreload extends React.Component {
constructor (props) {
super(props)
this.state = {
preload: false,
loaded: false,
playing: false
}
this.handleLoad = this.handleLoad.bi... |
src/index.js | eperiou/DeGreenFields | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/app.js | lizhaogai/lyda-dada-v | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?n... |
admin/client/App/shared/Popout/PopoutHeader.js | ONode/keystone | /**
* Render a header for a popout
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
const PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.is... |
src/components/Champion/index.js | dragoncodes/dragon-lol | import React from 'react'
import { RiotApi } from 'riot-api'
import { RiotActions } from 'store/riot'
import { connect } from 'react-redux'
import './champion.scss'
class Champion extends React.Component {
static propTypes = {
championId: React.PropTypes.number,
champions: React.PropTypes.any,
... |
src/containers/recipes/Card/CardView.js | banovotz/WatchBug2 | /**
* Recipe View Screen
* - The individual recipe screen
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import { Icon } f... |
dev/react-subjects/subjects/Flux/solution.js | AlanWarren/dotfiles | import React from 'react'
import { render } from 'react-dom'
import ContactList from './solution/components/ContactList'
/*
The goal of this exercise is to add a button beside each contact in the list
that can be used to delete that contact. To do this, you'll need to perform
the following steps:
* Hint: Open up Flux... |
app/index.js | CKrawczyk/electron-subject-uploader | import React from 'react';
import ReactDom from 'react-dom';
import '../css/main.styl';
import apiClient from 'panoptes-client';
import routes from './routes';
import { Router, hashHistory } from 'react-router';
const App = () => (
<Router history={hashHistory} routes={routes} />
);
// For console access:
if (wind... |
codes/chapter05/react-router-v4/basic/demo05/app/components/App.js | atlantis1024/react-step-by-step | import React from 'react';
import { Link } from 'react-router-dom';
class App extends React.PureComponent {
render() {
return (
<div>
<h1>React Router Tutorial</h1>
<ul role="nav">
<li><Link to="/about">关于</Link></li>
<li><Link to="/topics">主题</Link></li>
<li><... |
src/Parser/Warrior/Protection/Modules/Spells/ShieldBlock.js | enragednuke/WoWAnalyzer | import React from 'react';
import { formatPercentage, formatThousands } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | odapplications/WebView-with-Lower-Tab-Menu | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
docs/app/src/components/LanguageSelector.js | tercenya/compendium | import React from 'react';
import ReactDOM from 'react-dom';
import MFizzIcon from './MFizzIcon';
import _ from 'lodash';
export const Language = (props, context) => {
const changeLanguage = (lang, event) => {
console.log(`changing language to ${lang}`);
if (props.onClick) { props.onClick(lang); };
}
c... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | romaindso/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, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return [
{ id: 1, name: '1'... |
src/layouts/Field/FieldGroup.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import { withPulseGroup } from 'skeletons/PulseGroup';
import * as styles from './styles';
/**
* A component that renders a collection of Field components into a grid, making space for
* labels, help text, etc. Simply pass the number of columns into this... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const iconStyle = {
height: null,
lineHeight: '27px',
width: `${18 * 1.28571429}px`,
};
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
... |
docs/src/app/components/pages/components/CircularProgress/ExampleDeterminate.js | matthewoates/material-ui | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
export default class CircularProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() ... |
src/html.js | gopalshackergarage/gopalshackergarage.github.io | import React from 'react';
import PropTypes from 'prop-types';
export default class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
... |
client/app/ihome/index/index.js | jl-/r- | import React, { Component } from 'react';
import Card from '../../partials/card';
import styles from './style.scss';
class Index extends Component {
render() {
return (
<div className={styles.home}>
<Card>
1
</Card>
<Card>
1
</Card>
<Card>
1... |
examples/async/containers/Root.js | aphillipo/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
indico/web/client/js/react/components/principals/imperative.js | pferreir/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import _ from 'lodash';
import React from 'react';
import ReactDOM from 'react-dom';
import {Favori... |
src/App.js | erlanglab/erlangpl-ui | // @flow
import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import './App.css';
import core from './core';
const { Navigation, Footer } = core.components;
// plugins
import eplDashboard from './p... |
src/client/assets/js/nodes/outputs/notify/node.js | me-box/platform-sdk | import React from 'react';
//import composeNode from 'utils/composeNode';
import Textfield from 'components/form/Textfield';
import Textarea from 'components/form/Textarea';
import Select from 'components/form/Select';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
class Node extends React.C... |
app/.plop/stories.js | atralice/reactDockerizeBoilerplate | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import {{ properCase name }} from 'Components/{{properCase folder}}/{{ properCase name }}';
import s from 'Components/{{properCase folder}}/{{ properCase name }}.styl';
storiesOf('{{ properCase ... |
src/components/employee/EmployeeList.js | GHImplementationTeam/FrontEnd | import { List, ListItem } from 'material-ui/List';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import Subheader from 'material-ui/Subheader';
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators ... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | luoxiaoshenghustedu/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
admin/client/views/list.js | Ftonso/keystone | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import Columns from '../columns';
import ConfirmationDialog from '../components/ConfirmationDialog';
import CreateForm from '../components/CreateFor... |
lib/src/linesofcode.js | SerendpityZOEY/Solr-Search-React-UI | /**
* Created by yue on 2/13/17.
*/
import React from 'react';
import {List, ListItem, NestedList} from 'material-ui/List';
import FontIcon from 'material-ui/FontIcon';
const styles = {
codeSnippet: {
fontFamily: "Fira Mono",
fontSize: 14
},
}
class Lines extends React.Component{
constr... |
frontend/jest_mocks/createComponentWithIntl.js | RyanNoelk/OpenEats | import React from 'react';
import renderer from 'react-test-renderer';
import { IntlProvider } from 'react-intl';
// See: https://github.com/yahoo/react-intl/wiki/Testing-with-React-Intl#jest
const createComponentWithIntl = (children, props = { locale: 'en' }) => {
return renderer.create(
<IntlProvider {...prop... |
client/src/components/StepByStep.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Row, Col, Grid } from 'react-bootstrap';
import Steps from './HowItWorks/Steps';
import HowItWorksStepHeaderContent from './HowItWorks/HowItWorksStepHeaderContent';
import HowItWorksStepContent from './HowItWork... |
docs/src/app/components/pages/components/Tabs/Page.js | lawrence-yu/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 tabsReadmeText from './README';
import tabsExampleSimpleCode from '!raw!.... |
blueprints/smart/files/__root__/containers/__name__/__name__.js | murrayjbrown/react-redux-rxjs-stampit-babylon-universal | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const... |
src/app/components/tooltipQuestion.js | benigeri/soapee-ui | import React from 'react';
import { Tooltip, OverlayTrigger } from 'react-bootstrap';
export default React.createClass( {
getDefaultProps() {
return {
placement: 'left'
};
},
render() {
const tooltip = (
<Tooltip>{ this.props.children }</Tooltip>
);... |
graphwalker-studio/src/main/js/components/configpanel/element-group.js | GraphWalker/graphwalker-project | import React, { Component } from 'react';
import { connect } from "react-redux";
import { FormGroup, InputGroup, Switch, TextArea } from "@blueprintjs/core";
import { updateElement, setStartElement } from "../../redux/actions";
import Group from "./group";
class ElementGroup extends Component {
render() {
const ... |
lib/components/App.js | LeooRamalho/react-advanced | import React from 'react';
import ArticleList from './ArticleList';
class App extends React.Component {
state = this.props.store.getState();
render() {
return (
<ArticleList
articles={this.state.articles}
store={this.props.store}
/>
);
}
}
export default App; |
app/src/components/character.js | bhayden1/savageReact | import {Component} from 'react';
import React from 'react';
export class Character extends Component {
render() {
return(
<div className="row item">
<div className="col col-33">{this.props.name}</div>
<div className="col">{this.props.toughness}</div>
<div className="col">{t... |
html.js | Bubblbu/this-and-that | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body, route} = this.... |
src/index.js | Darmody/DoubanFMac | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('electron-cookies');
const store = configureStore();
render(
<Provid... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/redundancystatus.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
const colorNotAvailable = '#FF8080'
const colorGoodRedundancy = '#00CBA0'
const RedundancyStatus = ({available, redundancy, uploadprogress}) => {
const indicatorStyle = {
opacity: (() => {
if (!available || redundancy < 1.0) {
return 1
}
if ... |
client/js/components/Layout/Resolution.js | akamaurizio/new-year-resos | import React from 'react';
export default class Resolution extends React.Component{
render(){
const {title, desc} = this.props
return(
<div className="col-md-4">
<div className="resolution card">
<h2 className="resolution-title">{title}</h2>
<p>{desc}</p>
</div>
</d... |
src/components/big_timer.js | adamakers/Scoreboard | import React from 'react';
import styles from './../styles/big_timer.css';
const GameClock = (props) => {
return (
<div className="timer-container">
<h1 className="timer-time">{props.gameClock}</h1> {/* Enter game time here. Needs to be updated with a timer*/}
<h3 className="timer-quarter">... |
Ch04/04_01/start/src/index.js | Raziyehbazargan/React.js_Essential_Training | import React from 'react'
import { render } from 'react-dom'
import { SkiDayList } from './components/ski-day-list'
// import { SkiDayCount } from './components/SkiDayCount-createClass'
// import { SkiDayCount } from './components/SkiDayCount-ES6'
//import { SkiDayCount } from './components/SkiDayCount'
import { App } ... |
src/stories/index.js | danialm/backgammon | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import fetchMock from 'fetch-mock';
import { Button, Welcome } from '@storybook/react/demo';
import Dice from '../components/Dice';
import Profil... |
src/Icon.js | 15lyfromsaturn/react-materialize | import React from 'react';
import constants from './constants';
import cx from 'classnames';
class Icon extends React.Component {
render() {
let classes = {
'material-icons': true
};
constants.PLACEMENTS.forEach(p => {
classes[p] = this.props[p];
});
constants.ICON_SI... |
packages/component/src/text-field-macro.js | Pinecast/encoder | import React from 'react';
export default (inputProps) =>
<label>
<span>{inputProps.title}</span>
<input
{...inputProps}
type='text'
/>
</label>;
|
actor-apps/app-web/src/app/components/dialog/messages/Text.react.js | jamesbond12/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import memoize from 'memoizee';
import emojify from 'emojify.js';
import emojiCharacters from 'emoji-named-characters';
import { Path } from 'constants/ActorAppConstants';
import ActorClient from 'utils/Act... |
src/svg-icons/image/picture-as-pdf.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePictureAsPdf = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ... |
src/Breadcrumbs/Breadcrumbs.component.js | Talend/react-talend-components | import React from 'react';
import { Button } from 'react-bootstrap';
import classNames from 'classnames';
import uuid from 'uuid';
import theme from './Breadcrumbs.scss';
import { ActionDropdown } from '../Actions';
/**
* Default max items to display without starting by ellipsis
*/
const DEFAULT_MAX_ITEMS = 3;
/**
... |
fields/types/date/DateFilter.js | Redmart/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false }... |
examples/shopping-cart/src/components/App.js | usirin/nuclear-js | 'use strict';
import React from 'react'
import CartContainer from './CartContainer'
import ProductsContainer from './ProductsContainer'
export default React.createClass({
render() {
return (
<div>
<ProductsContainer />
<CartContainer />
</div>
);
}
});
|
docs/app/Examples/views/Item/Types/Items.js | ben174/Semantic-UI-React | import React from 'react'
import { Image, Item } from 'semantic-ui-react'
const Items = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' />
<Item.Content>
<Item.Header as='a'>Header</Item.Header>
<Item.Meta>Description</Item.... |
src/routes/Timetable/components/Emoji/Emoji.js | BloomerWD/timetable | import React, { Component } from 'react';
const Emojies = [
<span className="icon-emoji-cool"><span className="path1"></span><span className="path2"></span><span className="path3"></span><span className="path4"></span><span className="path5"></span><span className="path6"></span><span className="path7"></span><spa... |
app/jsx/new_user_tutorial/trays/HomeTray.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - 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/app/components/CalendarNavigation/index.js | puja1234/DTA | import React from 'react';
class CalendarNavigation extends React.Component{
constructor(props){
super(props);
}
backClick = () => {
this.props.previousEvents();
};
nextClick = () => {
this.props.nextEvents();
};
todayClick = () => {
this.props.todayEvents... |
src/client/index.js | brettsnaidero/bsd | /* eslint-disable global-require */
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { CodeSplitProvider, rehydrateState } from 'code-split-component';
import ReactHotLoader from './components/ReactHotLoader';
import App from '../shared/components/... |
src/parser/priest/holy/modules/checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
// import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
// import ItemLink from 'common/ItemLink';
import ResourceLink from 'common/ResourceLink';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
... |
docs/server.js | chrishoage/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
node_modules/react-bootstrap/es/Collapse.js | NickingMeSpace/questionnaire | 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/routes/Invoicer/PaymentDetails/index.js | joshhunt/money | import React, { Component } from 'react';
import styles from './styles.styl';
import Remarkable from 'remarkable';
const md = new Remarkable();
export default class PaymentDetails extends Component {
constructor(props) {
super(props);
this.state = this.renderMarkdown(props, true)
}
componentWillReceiv... |
www/imports/mapPage/shortlist/ShortEntryPres_forBarCharts.js | terraswat/hexagram | // Presentational component for the short list entry.
import React from 'react';
import PropTypes from 'prop-types';
//import Slider, { Range } from 'rc-slider';
// We can just import Slider or Range to reduce bundle size
// import Slider from 'rc-slider/lib/Slider';
// import Range from 'rc-slider/lib/Range';
//impor... |
client/src/research/EmailLinkLoginPage.story.js | mit-teaching-systems-lab/swipe-right-for-cs | import React from 'react';
import { storiesOf } from '@storybook/react';
import EmailLinkLoginPage from './EmailLinkLoginPage.js';
storiesOf('Research/EmailLinkLoginPage', module) //eslint-disable-line no-undef
.add('normal', () => {
return <EmailLinkLoginPage />;
}); |
src/Image.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Image = React.createClass({
propTypes: {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,
/**
* Sets imag... |
node_modules/react-native/Libraries/Text/Text.js | Helena-High/school-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
examples/simple-todos/index.js | rayshih/fun-react | // @flow
import React from 'react'
import ReactDOM from 'react-dom'
import {
createTypes,
caseOf,
createView,
createProgram,
fromSimpleInit,
fromSimpleUpdate,
trace,
} from '../../src'
// 1. define your init model
const init = {
currentInputText: '', // input state
seq: 0, // sequentia... |
lib/containers/PreviewContainer.js | sgleung/autumn | import React from 'react'
import {connect} from 'react-redux'
import Preview from '../components/Preview'
const PreviewContainer = React.createClass({
render() {
const {html} = this.props
return (
<Preview htmlText={html} />
)
}
});
const mapStateToProps = (state) => {
return {
html: state... |
src/screens/users/Login.js | kevingatera/Eseness | import React, { Component } from 'react';
import {
StyleSheet,
View, KeyboardAvoidingView,
Image, Text, StatusBar
} from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import SplashScreen from 'react-native-splash-screen';
import LoginForm from './loginFo... |
packages/mineral-ui-icons/src/IconLabel.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 IconLabel(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...iconProps}>
... |
mine-data/src/common/withTracking.js | BerlingskeMedia/nyhedsbreveprofil | import React, { Component } from 'react';
import { pageview } from 'react-ga';
export const withTracking = WrapperComponent => {
if (window.location.host.includes('profil.berlingskemedia.dk')) {
return class WithTracking extends Component {
componentDidMount() {
pageview(window.location.pathname + ... |
app/containers/NotFoundPage/index.js | oliverox/react99 | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
assets/jqwidgets/demos/react/app/calendar/disabled/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js';
class App extends React.Component {
render() {
return (
<JqxCalendar width={220} height={220} disabled={true}/>
)
}
}
ReactDOM.render(<App />, docu... |
{{cookiecutter.repo_name}}/app/src/views/RestrictedView.js | thorgate/django-project-template | import React from 'react';
import { Helmet } from 'react-helmet-async';
import { Row, Col } from 'reactstrap';
import withView from 'decorators/withView';
import { loginRequired } from 'decorators/permissions';
const Restricted = () => (
<div className="page-container">
<Helmet title="Example" />
... |
app/components/EditDish.js | rondobley/meal-planner | import React from 'react';
class EditDish extends React.Component {
constructor(props) {
super(props);
this.handleNameInputChange = this.handleNameInputChange.bind(this);
this.handleReferenceInputChange = this.handleReferenceInputChange.bind(this);
}
handleNameInputChange(e) {
... |
fields/components/columns/IdColumn.js | belafontestudio/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
... |
old-or-not-typescript/React-RxJS/src/__test__/router.spec.js | janaagaard75/framework-investigations | import React from 'react';
|
src/parser/hunter/survival/modules/talents/AlphaPredator.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
im... |
test/integration/app-document-import-order/pages/_app.js | azukaru/next.js | import React from 'react'
import RequiredByApp from '../requiredByApp'
import sideEffect from '../sideEffectModule'
sideEffect('_app')
function MyApp({ Component, pageProps }) {
return (
<React.Fragment>
<RequiredByApp />
<Component {...pageProps} />
</React.Fragment>
)
}
export default MyApp... |
packages/material-ui-icons/src/Tab.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z" /></g>
, 'Tab');
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.