path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/components/addProject/for example.js | leehyoumin/asuraCham |
'use strict';
//This is a Add project
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { openDrawer } from '../../actions/drawer';
import { popRoute } from '../../actions/route';
import { Container, Header, Title, Content, Text,Button, Icon, InputGroup,Input,View,Picker } from ... |
tools/kevoree-scripts/browser-tester/src/components/Output/index.js | kevoree/kevoree-js | import React from 'react';
import PropTypes from 'prop-types';
import './output.css';
export default class Output extends React.Component {
constructor(props) {
super(props);
this.state = { messages: [] };
}
clearList() {
this.setState({ messages: [] });
}
componentDidMount() {
const oldF... |
client/app/scripts/components/nodes-resources/node-resources-layer-topology.js | paulbellamy/scope | import React from 'react';
import pick from 'lodash/pick';
import { applyTransform } from '../../utils/transform-utils';
import {
RESOURCES_LAYER_TITLE_WIDTH,
RESOURCES_LAYER_HEIGHT,
} from '../../constants/styles';
export default class NodeResourcesLayerTopology extends React.Component {
render() {
// Thi... |
src/parser/priest/discipline/CHANGELOG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Oratio, Reglitch, Zerotorescue, niseko } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2018-10-17'),
changes: `The Atonement sources tab should no longer display spells that do not cau... |
src/pages/graph/Depthlimited/Depthlimited.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Depthlimited extends React.Component {
render() {
return (
<div>Depthlimited</div>
)
}
}
export default Depthlimited |
src/svg-icons/image/wb-auto.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbAuto = (props) => (
<SvgIcon {...props}>
<path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1... |
src/svg-icons/content/delete-sweep.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDeleteSweep = (props) => (
<SvgIcon {...props}>
<path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/>
</SvgIcon>
);
ContentDeleteSwee... |
src/index.js | epicsharp/react-boilerplate | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from './configureStore'
import App from './components/App'
import C... |
src/components/match-row.js | orouvinen/dnf-ranks-frontend | import React, { Component } from 'react';
import { Link } from 'react-router';
class MatchRow extends Component {
render() {
const match = this.props.match;
const player = this.props.player;
let result = (player.nick === match.winner) ? "Win" : "Loss";
let ratingChange =
... |
packages/reactor-kitchensink/src/examples/Charts/ChartToolbar.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Label, Spacer, Button, Toolbar, SegmentedButton, Menu, MenuItem } from '@extjs/ext-react';
Ext.require([
'Ext.chart.theme.Blue',
'Ext.chart.theme.Green',
'Ext.chart.theme.Muted',
'Ext.chart.theme.Red',
'Ext.chart.theme.Sky',
'Ext.chart.theme.Ye... |
packages/mineral-ui-icons/src/IconControlPoint.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 IconControlPoint(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
app/src/index.js | tpucci/jira-scrumblize | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<span>This App works great thanks to React DOM</span>,
document.getElementById('jisc-root'),
);
|
app/components/ImageSlider/index.js | koofka/singleproperty_redux | import React from 'react';
import PropTypes from 'prop-types';
import { scrollToWhen } from 'react-redux-scroll';
import ImageSliderButton from 'components/ImageSliderButton';
// import LoadingIndicator from 'components/LoadingIndicator';
import { TweenMax, Quad } from 'utils/gsap/1.19.1/TweenMax.min';
import { colors ... |
client/src/components/Asset/ServiceInfo/ServiceEditPanel.js | zhangmingkai4315/NewAssetManagement | import React from 'react'; // eslint-disable-line no-unused-vars
import AuditLogPanel from '../common/AuditLogPanel';
import RefDataPanel from '../common/RefDataPanel';
export default class ServiceEditPanel extends React.Component {
constructor(props){
super(props);
this.state = {
service:{},
sh... |
examples/query-params/app.js | darul75/react-router | import React from 'react';
import HashHistory from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
retur... |
react/Apps/forecast-app/src/components/app.js | rcapde/reactjs-Apps | import React from 'react';
import { Component } from 'react';
import Navbar from './navbar.js'
import SecondBar from '../components/second_bar';
import WeatherIndex from '../containers/weather_index';
import { Router, browserHistory } from 'react-router';
import routes from '.././routes';
export default class App exte... |
src/main.js | joopand/sipreman-ui | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import makeRoutes from './routes'
import Root from './containers/Root'
import configure... |
app/components/chat-input.js | misakimatsumoto2524/merj | import React, { Component } from 'react';
import { Gifs } from './chat-giphys';
import { Emoji } from './chat-send-emoji'
import { orange500, blue500 } from 'material-ui/styles/colors';
import { Button, Modal } from 'react-bootstrap';
import TextField from 'material-ui/TextField';
import PhotoIcon from 'material-ui/svg... |
source/examples/Paragraph.js | thomaswright/bayst | import React from 'react'
import { Paragraph, Box } from '../collator'
/**___________________________________________________________________________*/
/**
Paragraph wraps TextBase and adds the two props isBlockParagraph, which gives
the text a default paddingVerticalRank of 2, and isIndented, which adds 6
space... |
src/React/Widgets/EditableListWidget/example/index.js | Kitware/paraviewweb | // Load CSS
import 'normalize.css';
import 'font-awesome/css/font-awesome.css';
import React from 'react';
import ReactDOM from 'react-dom';
import EditableListWidget from '..';
const container = document.querySelector('.content');
const columns = [
{
key: 'name',
dataKey: 'name',
label: 'Name',
/... |
src/components/ContentSwitcher/ContentSwitcher-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, select, text, boolean } from '@storybook/addon-knobs';
import { iconAddGlyph, iconSearch } from '@wfp/icons';
import Icon from '../Icon';
import ContentSwitcher from '../Conte... |
frontend/src/components/registration/declarationRow.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Typography from 'material-ui/Typography';
import PolarRadio from '../forms/fields/PolarRadio';
const styleSheet = theme => ({
container: {
borderBottom: `... |
app/containers/LanguageProvider/index.js | mikejong0815/Temp | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
node_modules/react-select/examples/src/components/Virtualized.js | xuan6/admin_dashboard_local_dev | import React from 'react';
import createClass from 'create-react-class';
import VirtualizedSelect from 'react-virtualized-select';
const DATA = require('../data/cities');
var CitiesField = createClass({
displayName: 'CitiesField',
getInitialState () {
return {};
},
updateValue (newValue) {
this.setState({
... |
server/sonar-web/src/main/js/components/tags/TagsList.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... |
blueocean-material-icons/src/js/components/svg-icons/av/not-interested.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvNotInterested = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 ... |
js/components/Header/1.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import { openDra... |
src/svg-icons/notification/event-note.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventNote = (props) => (
<SvgIcon {...props}>
<path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v... |
.storybook/includes/file-url.js | KissKissBankBank/kitten | import React from 'react'
import { Text, List } from 'kitten'
import concat from 'lodash/concat'
const GH_PREFIX = 'https://github.com/KissKissBankBank/kitten/blob/master/'
export const FileUrl = ({filepath, filenames = 'index.js'}) => {
const pathAsArray = filepath.split('/').slice(1, -1)
const ghUrl = `${GH_PR... |
src/svg-icons/image/camera-roll.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
envkey-react/src/components/assoc_manager/assoc_column.js | envkey/envkey-app | import React from 'react'
import h from "lib/ui/hyperscript_with_helpers"
import R from 'ramda'
import pluralize from 'pluralize'
import AssocRow from "./assoc_row"
import AddAssoc from "./add_assoc"
import SmallLoader from 'components/shared/small_loader'
import {imagePath} from "lib/ui"
import {dasherize} from "under... |
src/js/components/Box/stories/Fixed.js | grommet/grommet | import React from 'react';
import { Box, Text } from 'grommet';
export const FixedSizesBox = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box pad="small" gap="small">
<Box
width="small"
height="small"
round="small"
align="center"
... |
src/client/index.js | crisu83/ctf-game | import io from 'socket.io-client';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/app';
import { GameContainer } from './components/game';
import { buildStore } from './helpers/store';
import './index.scss';
const socket = io();
con... |
src/components/Page/Page.js | louisukiri/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
pootle/static/js/auth/components/AuthContent.js | Yelp/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
webpack/fills_index.js | adamruzicka/katello | import React from 'react';
import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
import { registerReducer } from 'foremanReact/common/MountingService';
import SystemStatuses from './components/extensions/about';
import extendReducer from './components/extensions/reducers';
registerReducer('k... |
packages/veritone-react-common/src/components/AppSwitcher/AppSwitcherList.js | veritone/veritone-sdk | import React from 'react';
import { string, arrayOf, shape, func, any } from 'prop-types';
import { sortBy } from 'lodash';
import { withStyles } from '@material-ui/styles';
import AppSwitcherItem from './AppSwitcherItem';
import styles from './styles';
class AppSwitcherList extends React.Component {
static propTyp... |
docs/src/ChipsPage.js | jhernandezme/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import chips from '../../examples/Chips';
const component = 'Chip';
class Chi... |
examples/flux-utils-todomvc/js/app.js | aecca/flux | /**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
docs/app/Examples/elements/Input/Variations/InputExampleIcon.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleIcon = () => (
<Input icon='search' placeholder='Search...' />
)
export default InputExampleIcon
|
src/components/layouts/nav-bar.js | philholden/omysoul | import React from 'react'
import { Row, Col } from './flex'
import * as COLOR from '../../app/color-consts'
import * as NUMBER from '../../app/number-consts'
import { NavBar } from './card'
import * as Icon from '../lib/icons'
export const NavBarSongStore = ({
children,
style,
onBack,
...rest
}) => {
const... |
src/multi-selector.js | mattyb678/cpr-multiselect | import React from 'react';
import {without, contains, union, isNull} from 'lodash';
const DefaultItemComponent = React.createClass({
render () {
const firstName = this.props.item.firstName;
const lastName = this.props.item.lastName;
return (
<div>
<div className="cp-multi-selector-item__icon cps-bg-mediu... |
archive/stuff/version-with-base-and-ext/src/main/js-surface-react-native.js | mcjazzyfunky/js-bling | import { getExports } from './platform/react.js';
import React from 'react';
import AppRegistry from 'react-native';
const {
createElement,
defineComponent,
isElement,
Types
} = getExports(React);
export {
createElement,
defineComponent,
isElement,
mount,
Types
};
function mount(Component) {
// TODO - get ... |
until_201803/react-packt/chap2/src/App.js | shofujimoto/examples | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
src/components/chips/demos/DeletableContact.js | isogon/material-components | import React from 'react'
import { Chip } from '../../../'
const avatarImg = 'https://getmdl.io/templates/dashboard/images/user.jpg'
export default () => (
<Chip deletable contact={{ src: avatarImg }}>
Deletable Contact Chip
</Chip>
)
|
lib/cli/test/fixtures/react_scripts_v2/src/App.js | storybooks/react-storybook | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
index.ios.js | vagnerpraia/ipeasurvey | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import Routes from './app/Routes';
export default class IpeaSurvey extends Component {
render() {
return (
<Routes />
);
}
}
AppRegistry.registerComponent('IpeaSurvey', () => IpeaSurvey);
|
core/components/Button/Button.js | alexandregme/react-core-components | import React, { Component } from 'react';
export default class Button extends Component {
text(){
return "Button com texto";
}
onclick(){
console.log(this.text());
}
render() {
return (
<button onClick={this.onclick.bind(this)}>
{this.text()}
... |
src/js/components/blog/blogindex.js | axuebin/react-blog | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'antd';
import { connect } from 'react-redux';
import { fetchIssuesIfNeeded } from '../../actions/index';
import ArticleArea from './articlearea';
import RightSider from './rightsider';
class BlogIndex extends React.Component {
c... |
src/shared/components/DemoApp/AsyncAboutRoute/Contributor/Contributor.js | igorsvee/react-ssr | import React from 'react';
import PropTypes from 'prop-types';
function Contributor({ name, twitter }) {
return (
<a
href={`https://twitter.com/${twitter}`}
target="_blank"
rel="noopener noreferrer"
>
{name}
</a>
);
}
Contributor.propTypes = {
name: PropTypes.string.isRequired... |
src/components/matchBets/MatchList.js | jahuk/bet-platform-react | import React from 'react';
import User from './user/User';
import getMatchPoints from '../../utils/getMatchPoints';
const sortBets = (bet1, bet2) => {
const bet1points = bet1.props.points;
const bet2points = bet2.props.points;
if (bet1points < bet2points) {
return 1;
} else if (bet1points > bet2points) {
... |
docs/app/Examples/views/Comment/Content/CommentExampleAvatar.js | ben174/Semantic-UI-React | import React from 'react'
import { Comment } from 'semantic-ui-react'
const CommentExampleAvatar = () => (
<Comment.Group>
<Comment>
<Comment.Avatar src='http://semantic-ui.com/images/avatar/small/elliot.jpg' />
<Comment.Content>
<Comment.Author as='a'>Elliot Fu</Comment.Author>
</Comme... |
client/src/_scenes/MoneyMaps/scenes/AddMoneyMap/index.js | bpowers1215/MoneyMap | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Alerts from '~/_components/alerts';
import AddMoneyMapForm from './components/AddMoneyMapForm';
import './styles.scss';
const mapDispatchToProps = dispatch => {
return {
};
};
const mapStateToProps = state => {
return {}
}
cla... |
src/components/table-header-item.js | lowsky/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import styled from 'react-emotion';
const StyledTableHeaderItem = styled.td(props => props.styles);
export default class TableHeaderItem extends Component {
render() {
const typefaceStyle = t... |
src/svg-icons/image/filter-3.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter3 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | Toootim/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import emojify from '../../../... |
src/client/components/console/customers/customerSearchForm.js | uuchat/uuchat | import React, { Component } from 'react';
import { Form, Button, Row, Col, DatePicker, Input, Icon } from 'antd';
const { RangePicker } = DatePicker;
class CustomerSearchForm extends Component {
handleChange = (key, values) => {
let fields = this.props.form.getFieldsValue();
fields[key] = values;... |
admin/client/App/screens/List/components/UpdateForm.js | Yaska/keystone | import React from 'react';
import Select from 'react-select';
import { findDOMNode } from 'react-dom';
import assign from 'object-assign';
import { Fields } from '../../../../../../fields';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { plural } from '../../../../utils/string';
import { Blank... |
ajax/libs/recompose/0.20.0/Recompose.js | BenjaminVanRyseghem/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
step7-flux/node_modules/react-router/es6/RouteUtils.js | jintoppy/react-training | 'use strict';
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; };
export { isReactChildren };
export { createRou... |
src/pages/login/index.js | RyszardRzepa/React-Redux-Firebase-Boilerplate | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions/auth';
import Layout from '../../components/Layout';
import styles from './styles';
import LoginForm from '../../components/loginForm';
import { Card } from 'material-ui/Card';
class Login extends React.Component... |
src/routes/app/routes/ui/routes/lists/components/Phone.js | ahthamrin/kbri-admin2 | import React from 'react';
// import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import CommunicationCall from 'material-ui/svg-icons/communication/call';
import CommunicationChatBubble from 'material-ui/svg-icons/communica... |
RNTester/js/ActivityIndicatorExample.js | jasonnoahchoi/react-native | /**
* 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.
*
* @flow
* ... |
src/auth/screens/user-options.screen.js | Antoine38660/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import styled from 'styled-components/native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
ScrollView,
StyleSheet,
FlatList,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { ... |
src/components/onsen/ons-page/index.js | c58/onsenui-react | import React from 'react';
import OnsToolbar from '../ons-toolbar';
import platform from '../platform';
import { applyModifiers } from '../modifier-util';
import ons from '../ons';
// Internals
const scheme = {
'page': 'page--*',
'page__content': 'page--*__content',
'page__background': 'page--*__back... |
src/svg-icons/device/battery-charging-90.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12... |
app/components/InvestorCard/index.js | medevelopment/UMA | import React from 'react';
import { Link, browserHistory } from 'react-router';
import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ModeEdit from 'm... |
src/GoalButtonBig/index.js | christianalfoni/ducky-components | import Icon from '../Icon';
import Typography from '../Typography';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
function GoalButtonBig(props) {
return (
<div
className={classNames(styles.wrapper, {
... |
src/components/WebApiTest.js | njscococo/ReactTutorial2 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import webApi from '../utils/WebApi';
export default class WebApiTest extends Component{
constructor(props){
super(props);
this.state = {
apiresult: ''
};
}
componentDidMount(){
... |
app/containers/Menu/components/formFactory.js | ethanve/bakesale | import React from 'react';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form/immutable';
import { FORM_NAME } from '../constants';
const validate = (values) => {
const errors = {};
if (!values.name) {
errors.name = 'Required';
}
if (!values.email) {
errors.email = 'Required... |
mdbreact/components/PopoverBody.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const PopoverBody = (props) => {
const {
className,
tag: Tag,
...attributes
} = props;
const classes = classNames(
'popover-body',
className,
);
return (
<Tag {...attributes} classNa... |
imports/api/server/index.js | mikowals/simple_rss | import { ApolloServer, Express } from 'apollo-server-express';
import { WebApp } from 'meteor/webapp';
import { Feeds, Articles } from '/imports/api/simple_rss';
import React from 'react';
import { renderToStaticMarkup, renderToNodeStream, renderToString } from 'react-dom/server';
import { ApolloClient, InMemoryCache, ... |
src/domain/metric/container/Members.js | hellowin/kanca | // @flow
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import Card from 'infra/component/Card';
import Form, { FormTypes, withForm } from 'infra/component/Form';
import usersMetricer from '../service/usersMetric';
import MemberList from '../component/MemberList';
const mapS... |
ajax/libs/react-instantsearch/4.2.0/Dom.js | jonobr1/cdnjs | /*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && de... |
jiuzhou/page/RegisterLogin/SetPassword.js | Cowboy1995/JZWXZ | /**
* Created by Tong on 2017/5/11.
*/
/**
* Created by Tong on 2017/5/11.
*/
/**
* Created by Tong on 2017/5/11.
*/
/**
* Created by 1 on 2016/11/23.
*/
/**
* Created by 1 on 2016/10/21.
* 新用户注册界面(先进行短信验证)
*/
import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TextInpu... |
source/components/ResolutionSlider.js | PitchInteractiveInc/tilegrams | import React from 'react'
import {scaleLog} from 'd3-scale'
import smallHex from '../images/small-hex.svg'
import bigHex from '../images/big-hex.svg'
export default class ResolutionSlider extends React.Component {
constructor(props) {
super(props)
this.state = {
value: 50,
typedValue: '',
}
... |
src/Parser/Hunter/Marksmanship/Modules/Talents/PatientSniper/PatientSniperBreakdown.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
const PATIENT_SNIPER_BONUS_PER_SEC = 0.06;
/**
* Gain the patience of ... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_05/start/src/components/SkiDayCount.js | yevheniyc/C | import React from 'react'
import '../stylesheets/ui.scss'
export const SkiDayCount = React.createClass({
percentToDecimal(decimal) {
return ((decimal * 100) + '%')
},
calcGoalProgress(total, goal) {
return this.percentToDecimal(total/goal)
},
render() {
return (
<div className="ski-day-count">
<div c... |
docs/client/components/pages/Image/SimpleImageEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createImagePlugin from 'draft-js-image-plugin';
import editorStyles from './editorStyles.css';
const imagePlugin = createImagePlugin();
const plugins = [imagePlu... |
client/src/global/layout/GlobalHeader/index.js | jizhuofeng/redis-monitor | import React from 'react';
import {Link} from 'react-router';
import './style';
class GlobalHeader extends React.Component {
render() {
return (
<div className="global-header">
<Link to="/">
<div className="logo"></div>
</Link>
</div>
);
}
}
export default GlobalHead... |
src/components/templates/footer.js | hisarkaya/polinsur | import React from 'react';
const Footer = props => {
return (
<div className="row-fluid">
<div id="footer" className="span12"> 2013 © Matrix Admin. Brought to you by <a href="http://themedesigner.in">Themedesigner.in</a> </div>
</div>
);
}
export default Footer;
|
app/app/common/components/confirm.js | inquisive/simpledocs | import React from 'react';
import { RaisedButton, FlatButton, Dialog, Styles } from 'material-ui/lib';
import debugging from 'debug';
let debug = debugging('epg:app:common:components:confirm');
let myStyles = {
//textColor: Styles.Colors.blue600,
//alternateTextColor: Styles.Colors.amber400,
//accent1Color: "#FF... |
admin/client/App/components/Navigation/Mobile/ListItem.js | dvdcastro/keystone | /**
* A list item of the mobile navigation
*/
import React from 'react';
import { Link } from 'react-router';
const MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRe... |
example/examples/DefaultMarkers.js | athaeryn/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
src/templates/tag-template.js | bapti/blog | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
fields/types/password/PasswordColumn.js | ratecity/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
node_modules/react-bootstrap/src/Grid.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
const Grid = React.createClass({
propTypes: {
fluid: React.PropTypes.bool,
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = this... |
src/FeedbackForm.js | skaipio/vilkensgard-palaute | import React, { Component } from 'react';
import { Button, Form, FormGroup, Input, InputGroup, InputGroupButton } from 'reactstrap';
import { postFeedback } from './api';
export default class FeedbackForm extends Component {
state = {}
sendFeedback = async (event) => {
event.preventDefault();
const result... |
src/containers/add_podcast.js | rdenadai/mockingbird | import { css } from '../css';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {grey400} from 'material-ui/styles/colors';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
import IconMenu from 'm... |
docs/app/Examples/elements/Segment/States/SegmentExampleDisabled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleDisabled = () => (
<Segment disabled>
Disabled content
</Segment>
)
export default SegmentExampleDisabled
|
frontend/src/Boot.js | chesslave/chesslave | import 'sockjs-client'
import React from 'react'
import { Provider } from 'mobx-react'
import { EventBus } from 'vertx3-eventbus-rx-client'
import { filter } from 'rxjs/operators'
import App from './App'
import { registerSpeaker } from './Speaker'
import { registerLogger } from './Logger'
const events = EventBus.creat... |
app/javascript/mastodon/features/ui/components/image_loader.js | danhunsaker/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { LoadingBar } from 'react-redux-loading-bar';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
s... |
node_modules/react-bootstrap/es/NavItem.js | ASIX-ALS/asix-final-project-frontend | 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/pages/contact/examples.js | liron-navon/liron-navon.github.io | import React from 'react'
import Link from 'gatsby-link'
import Layout from '../../components/Layout'
export default class Index extends React.Component {
render() {
return (
<Layout>
<section className="section">
<div className="container">
<div className="content">
... |
src/example/Example.js | mmahalwy/react-copy-to-clipboard | import React from 'react';
import CopyToClipboard from '..';
const App = React.createClass({
getInitialState() {
return {value: '', copied: false};
},
render() {
return (
<div>
<input value={this.state.value}
size={10}
onChange={({target: {value}}) => this.setState({va... |
teletobit/src/components/SinglePost/Post.js | edenpark/teletobit | import React, { Component } from 'react';
import PostInfo from './PostInfo';
import PostLink from './PostLink';
import CommentForm from './CommentForm';
import CommentEle from './CommentEle';
import {
Header,
TextArea,
Message
} from 'semantic-ui-react';
class Post extends Component {
render() {
... |
demo/src/index.js | andysprout/react-autowhatever | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import appReducer from 'reducers/app';
import App from 'App/App';
const store = createStore(appReducer);
if (module.hot) {
// Enable Webpack hot module replacement... |
src/components/HomePage/KFPVideo.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
import { Row, Col, ResponsiveEmbed } from 'react-bootstrap';
import styles from './KFPVideo.module.css';
const KFPVideo = () => (
<Row className={styles.videoContainer}>
<Col>
<ResponsiveEmbed aspectRatio="16by9">
<iframe
title="Mission Video"
src="htt... |
app/vendor.js | shanewholloway/2017-09-14-jsy-react-semantic-rollup | import React from 'react'
import ReactDOM from 'react-dom'
window.React = React
window.ReactDOM = ReactDOM
|
app/containers/App/index.js | arnaudmolo/awkward-list | /**
*
* App.react.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)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.