path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/parser/priest/holy/modules/talents/100/Apotheosis.js | sMteX/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import HolyWordSanctify from 'parser/priest/holy/modules/spells/holyword/HolyWordSanctify';
import HolyWordSerenity from ... |
src/components/LeftBar.js | Spriithy/tmc2017 | import React from 'react';
import './Layout.css';
export default class LeftBar extends React.Component {
render = () => {
return (
<div className="LeftBar">
<h1 className="LeftBar-Header">Zrt Cup 2017</h1>
<div className="LeftBar-Racers" style={{display: this.props.client.racers.length > 0... |
docs/client/components/pages/StaticToolbar/CustomToolbarEditor/index.js | dagopert/draft-js-plugins | /* eslint-disable react/no-multi-comp */
import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createToolbarPlugin, { Separator } from 'draft-js-static-toolbar-plugin';
import {
ItalicButton,
BoldButton,
UnderlineButton,
CodeButton,
Hea... |
week3/react/my-first-app/src/bootstrap/Column.js | jfhinchcliffe/Coderfactory_Term3_Notes | import React from 'react'
function templateIfExists () {
}
export default function Column( { extraSmall, small, medium, large }) {
return (
<div className={ `col-xs-{ extraSmall }`}
)
} |
src/routes/spiritual/Spiritual.js | arvigeus/studentlife | import React from 'react';
import Layout from '../../components/Layout/DefaultLayout';
const page = {
title: 'Духовно',
cover: {
original: '/images/covers/spiritual.jpg'
}
};
export default () =>
<Layout {...page}>
<article>
<h1>Страницата е в процес на разработка</h1>
</articl... |
src/navigation/index.js | N3TC4T/Nearby-Live | /**
* App Navigation
*/
import React from 'react';
import {Actions, Scene, ActionConst} from 'react-native-router-flux';
// Consts and Libs
import {AppConfig} from '@constants/';
// Containers
import AppLaunch from '@containers/launch/LaunchContainer';
// Scenes
import AuthScenes from './auth';
import TabsScenes f... |
src/svg-icons/content/reply-all.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReplyAll = (props) => (
<SvgIcon {...props}>
<path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReplyAll = pure(ContentReplyAll);
Conte... |
src/components/UserBookingListItem.js | qandobooking/booking-frontend | import React from 'react';
import { Link } from 'react-router';
import moment from 'moment';
import {
humanizeBookingStatus
} from '../utils/booking';
import {
ListGroupItem
} from 'react-bootstrap';
export default class UserBookingListItem extends React.Component {
render() {
const { service, status, id } ... |
node_modules/react-router/modules/IndexLink.js | FrancoCotter/ReactWeatherApp | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/lib/tree_view.js | DigitalGlobe/jetset | import React from 'react';
import { Map, List } from 'immutable';
import TreeView from 'react-treeview';
import store from '../store';
export function flatten( map, props, expansions, layer = 1 ) {
return map.map(( val, key ) => {
const id = `${layer}-${key}`;
const onClick = () => props.onClick( id );
... |
src/parser/deathknight/blood/modules/talents/Tombstone.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import DamageTracker from 'parser/shared/modules/AbilityTracker';
import TalentStatisticBox from 'in... |
src/scripts/containers/input-text-container.js | k-takam/simple-text-translator | import React from 'react';
import { connect } from 'react-redux';
import InputText from '../components/input-text';
import { fetchTranslate } from '../actions';
const mapStateToProps = (state) => {
return {
inputText: state.text.inputText
};
};
const mapDispatchToProps = (dispatch) => {
return {
onChang... |
src/parser/shaman/restoration/modules/spells/HealingWave.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import { formatPercentage } from 'common/format';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellUsable from 'parser/shared/modules/Spel... |
example/examples/ViewsAsMarkers.js | pjamrozowicz/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.7882... |
admin/client/App/components/Navigation/Mobile/ListItem.js | linhanyang/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... |
src/components/Header/Header.js | tannerfiscus/tannerfisc.us | import React from 'react';
import LinkTransition from '../LinkTransition';
import styles from './Header.module.scss';
import Text from '../Text';
const Header = () => (
<header className={styles.header}>
<div className={styles.headerLogo}>
<LinkTransition to="/">
<Text bold cla... |
test/helpers/shallowRenderHelper.js | WenfeiQ/Liakim-Photos-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
Realization/frontend/czechidm-core/src/content/passwordpolicy/PasswordPolicyAdvanced.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Utils from '../../utils';
import { PasswordPolicyManager, SecurityManager } from '../../redux';
import PasswordPolicyTypeEnum from... |
node_modules/semantic-ui-react/dist/es/elements/List/ListIcon.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthandFactory, getUnhandledProps, META, SUI, useVerticalAlignProp } from '../../lib';
import Icon from '../Icon/Icon';
/**
* A list item can contain an i... |
js/components/card/card-list.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, IconNB, Card, CardItem, Text, Left, Right, Body } from 'native-base';
import { Actions } from 'react-native-router-... |
src/components/sessions/list/SessionList.js | javaBin/appZone | // @flow
import React from 'react'
import { ListView, StyleSheet, View } from 'react-native'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import style from '../../../common/style'
import SessionListItem from './SessionListItem'
import SessionFilter from './SessionFilter'
import SessionSecti... |
src/index.js | chunghe/react-router-example | import React from 'react';
import Router, { DefaultRoute, NotFoundRoute, Link, Route, RouteHandler } from 'react-router';
import Inbox from './components/Inbox';
import Calendar from './components/Calendar';
import Dashboard from './components/Dashboard';
import NotFound from './components/NotFound';
import InboxMessag... |
example/index.js | OpenGov/react-leaflet-heatmap-layer | import React from 'react';
import { render } from 'react-dom';
import { Map, TileLayer } from 'react-leaflet';
import HeatmapLayer from '../src/HeatmapLayer';
import { addressPoints } from './realworld.10000.js';
class MapExample extends React.Component {
state = {
mapHidden: false,
layerHidden: false,
... |
src/containers/NotFound/NotFound.js | unam3/oshop_i | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/js/components/icons/base/FormUpload.js | linde12/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... |
app/containers/ProtectedRoute/index.js | nathanhood/mmdb | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { Route, Redirect } from 'react-router-dom';
import { LOGIN_URL } from '../../common/constants';
class ProtectedRoute extends React.Component {
static propTypes = {
... |
react/features/device-selection/components/AudioOutputPreview.js | bgrozev/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { translate } from '../../base/i18n/functions';
import Audio from '../../base/media/components/Audio';
const TEST_SOUND_PATH = 'sounds/ring.wav';
/**
* The type of the React {@code Component} props of {@link AudioOutputPreview}.
*/
type Props = {
/... |
src/Popover.js | albertojacini/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for accessibility
... |
src/views/games.js | TannerRogalsky/np_visualizer | import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux';
import Layout from './layout';
const Games = React.createClass({
getDefaultProps() {
return {
games: []
};
},
render() {
const uniqueGames = this.props.games.reduce(function(uniqueGames, game) {
... |
docs/src/editors/utils/Preview.js | gocreating/redux-draft | import React, { Component } from 'react';
import { convertToRaw } from 'draft-js';
import redraft from 'redraft';
let addBreaklines = (children) => {
return children.map(child => [child, <br />]);
};
class Preview extends Component {
renderWarning() {
return (
<div>
Nothing to render.
</di... |
src/containers/Home/Home.js | bertho-zero/react-redux-universal-hot-example | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { CounterButton, GithubButton } from 'components';
import config from 'config';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
@connect(state => ({
online: state.on... |
src/components/charts/charts/piechart/slices.js | noahehall/udacity-corporate-dashboard | import { Path } from '../svg/path.js';
import * as arcs from '../lib/arcs.js';
import * as label from '../lib/labels.js';
import React from 'react';
export const PieSlices = ({
chartHeight = 200,
chartWidth = 200,
colorScale,
data,
labels = [],
yValue = '',
}) => {
if (appFuncs._.isEmpty(data) || !yValue... |
HotelAndroid/index.android.js | MJ111/hotel-reverse | import React, { Component } from 'react';
import {
AppRegistry,
Navigator,
BackAndroid,
DrawerLayoutAndroid,
View,
StyleSheet,
AsyncStorage,
ListView,
RecyclerViewBackedScrollView,
TouchableHighlight,
Text,
} from 'react-native';
import ToolbarAndroid from 'ToolbarAndroid';
import SplashPage fro... |
src/layout/Home.js | pavelsuraba/react-devstack | import React from 'react';
import Greeting from 'components/Greeting';
import Logo from 'components/Logo';
import styled from 'styled-components';
const HomeContainer = styled.div`
display: flex;
align-items: center;
flex-direction: column;
`;
const HomeGreeting = styled.div`
margin: 0 0 10px 0;
`;
e... |
server/sonar-web/src/main/js/apps/code/components/Search.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... |
src/server.js | zunperior/wear4cast | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/components/ui/Loader.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Loader from 'react-loader';
import { oneOrManyChildElements } from '../../prop-types';
export default class LoaderComponent extends Component {
static propTypes = {
children: oneOrManyChildElements,
loaded: PropTypes.bool,
... |
src/routes/home/index.js | DaveyEdwards/myiworlds | /**
* 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 { graphql } from 'rel... |
src/components/HeatSaving/HeatSaving.js | Mikosko/EimPanel | /**
* @Author: Miloš Kolčák
* @Date: 2017-01-05T10:45:10+01:00
* @Email: milos.kolcak@gmail.com
* @Last modified by: Miloš Kolčák
* @Last modified time: 2017-01-05T10:55:38+01:00
*/
import React from 'react'
import style from './style.scss'
import ComponentWrapper from '../ComponentWrapper'
class HeatSaving ext... |
src/app/components/auth/groups/groupsList.js | rokbar/vivdchat | import React from 'react';
import GroupItem from './groupItem';
import {
Table,
TableBody,
TableHeader,
TableRow,
TableHeaderColumn,
TableRowColumn,
} from 'material-ui/Table';
import { map } from 'lodash';
const GroupsList = (props) => {
const actions = {
acceptInvitation: props.acceptInvitation,
... |
js/signin/src/components/SignIn.js | fogfish/oauth2 | import React from 'react'
import { Button, Intent } from '@blueprintjs/core'
import { Link } from 'react-router-dom'
import Dialog from 'components/Dialog'
import KeyPair from 'components/KeyPair'
// import { GitHub } from 'components/GitHub'
const prefix = process.env.REACT_APP_PREFIX || ''
const Actions = () => (
... |
src/index.js | javascriptiscoolpl/npm-simple-react-pdf | import React from 'react';
import ReactDOM from 'react-dom';
import PDF from 'pdfjs-dist/build/pdf.combined.js';
export default class SimplePDF extends React.Component {
constructor(props) {
super(props);
// bind
this.loadPDF = this.loadPDF.bind(this);
}
loadPDF() {
// get node for this react... |
examples/counter/containers/CounterApp.js | TallerWebSolutions/redux-devtools-gentest-plugin | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
app/containers/ReportsPage/TimeTab.js | zebbra-repos/Zeiterfassung-medi | /**
*
* TimeTab
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Flex, Box } from 'grid-styled';
import { TimeSeries } from 'pondjs';
import Indicator from 'components/Indicator';
import BaselineChart from 'components/BaselineChart';
export class TimeTab extends React.PureComponent { // ... |
003 - Dynamic Forms with Redux Form/src/components/posts_index.js | StephenGrider/RallyCodingWeekly | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';
class PostIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
renderPosts() {
return this.props.posts.map((post) =>... |
src/docs/components/chart/ChartExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Chart, {
Area, Line, Bar, Axis, Base, Grid, HotSpots, Layers, Marker, MarkerLabel,
Range
}
from 'grommet/components/chart/Chart';
import Value from 'grommet/components/Value';
import Box from 'gr... |
examples/with-atlaskit/components/DateTimePickerComponent.js | JeromeFitz/next.js | import React from 'react'
import {
DatePicker,
DateTimePicker,
TimePicker,
} from '@atlaskit/datetime-picker'
import { Label } from '@atlaskit/field-base'
export default function DateTimePickerComponent() {
return (
<React.Fragment>
<Label label="TimePicker - timeFormat (h:mm a)" />
<TimePicker... |
dev/components/Shell.js | the0neWhoKnocks/react.ask-trev | import React from 'react';
import css from '../styles/base.styl';
import AdminNav from './AdminNav.js';
export let themes = {
DEFAULT: 'has--default-theme',
DARK: 'has--dark-theme'
};
export class Shell extends React.Component {
static get defaultProps() {
return {
theme: themes.DEFAULT
... |
app/js/pages/Account_manage.js | arcsecw/myfd | import React from 'react'
import PageContainer from '../components/PageContainer';
import {
} from 'amazeui-react';
import auth from '../components/auth';
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
var Account_manage = React.createClass({
getInitialState() {
return {
... |
app/containers/App/index.js | filso/react-components-graph | /**
*
* App.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
... |
src/components/fields/RColorPicker.js | san2beerelli/Eycon | import React, { Component } from 'react';
import reactCSS from 'reactcss';
import { SketchPicker } from 'react-color';
class RColorPicker extends Component {
constructor(props){
super(props);
this.state = {
displayColorPicker: false,
color: props.color
}
thi... |
programming/js/react/redux_tutorial/src/containers/AddTodo.js | yukihirai0505/tutorial-program | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<input
ref={(node) => {
input = node
}}
/>
<button onClick={() => {
dispatch(addTodo(input.value))
... |
src/routes.js | mwsrp/bigfish-cordova | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import SharkRoster from './components/SharkRoster';
import App from './components/App';
import HomeScreen from'./components/Home';
import About from'./components/About';
import AboutMWSRP from'./components/AboutMWSRP';
import AboutBFN from... |
src/routes/user/index.js | wz-one-piece/Antd-Demo | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { routerRedux } from 'dva/router'
import styles from './index.less'
import { Row, Col, Popconfirm, Button } from 'antd'
import Filter from './Filter'
import List from './List'
import Add from './Add'
const User = ({dispa... |
components/Footer/Footer.js | migelleluigi/dota2teams | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
packages/material-ui-icons/src/LocalAtm.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalAtm = props =>
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 18c... |
src/components/dial.js | SiAdcock/gecko-o-meter | import React, { Component } from 'react';
export default class Dial extends Component {
render() {
const {rotate, left, top} = this.props;
return (
<div className="dial">
<div className="dial-image"/>
<div
className="dial-arm"
style={{
transform: `rotate... |
src/components/App.js | wookiecookie87/lunch_group_creator_with_reactjs | import React from 'react';
import PropTypes from 'prop-types';
import MemberDisplay from './MemberDisplay';
import GroupCard from './GroupCard';
import '../styles/main.scss';
class App extends React.Component {
constructor(props, context) {
super(props, context);
}
render () {
return (
<main className="ro... |
app/javascript/mastodon/features/favourited_statuses/index.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
app/javascript/mastodon/features/notifications/components/notification.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
examples/react/stateless-functional-components.js | kjirou/nodejs-codes | //
// Run by babel-node
//
import assert from 'assert';
import React, { Component } from 'react';
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
const Foo = ({ className, content }) => {
return <div className={className}>{content}</div>;
};
assert.strictEqual(
renderToStaticMarkup(<Foo... |
test/components/AlbumList.spec.js | datyayu/raji-react | /* eslint no-param-reassign: 0 */
import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import AlbumList from '../../client/components/AlbumList';
import Album from '../../client/components/Album';
test.beforeEach(t => {
t.context.albums = [
{ id: 1, title: 'Hafa Adai', image: '/... |
ReactNative/node_modules/react-navigation/src/createNavigationContainer.js | tahashahid/cloud-computing-2017 | import React from 'react';
import { Linking } from 'react-native';
import { BackHandler } from './PlatformHelpers';
import NavigationActions from './NavigationActions';
import addNavigationHelpers from './addNavigationHelpers';
import invariant from './utils/invariant';
/**
* Create an HOC that injects the navigation... |
lib/cli/generators/REACT_NATIVE/template/storybook/stories/Button/index.ios.js | bigassdragon/storybook | import React from 'react';
import { TouchableHighlight } from 'react-native';
export default function Button(props) {
return (
<TouchableHighlight onPress={props.onPress || Function()}>
{props.children}
</TouchableHighlight>
);
}
|
src/common/containers/App.js | k2052/journal.k2052.me | import React from 'react'
import { Link } from 'react-router'
import Github from 'icons//Github'
import Mail from 'icons//Mail'
import Rss from 'icons//Rss'
import Twitter from 'icons//Twitter'
class App extends React.Component {
render () {
return (
<div className="App">
<header className="Header"... |
js/src/modals/FirstRun/Welcome/welcome.js | BSDStudios/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/svg-icons/maps/subway.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSubway = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.... |
demo/index.ios.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Image,
ListView,
TouchableOpacity,
AlertIOS,
} from 'react-native';
var Dimensions = require('Dimensions');
var... |
client/index.js | briefguo/learn-js | /**
* webpack的根入口(entry)
*/
// 本项目全局样式的入口
// 全局样式里包括了蚂蚁金服的所有样式以及自己定义的一些样式
// 这里的样式的影响范围较大,一般不会去改动它
import './styles/index.css'
// 引入核心库react,用于构造组件
// 注意:只要你看到用到JSX语法的地方,都需要依赖React
import React from 'react'
// 引入核心库 'react-dom'
import ReactDOM from 'react-dom'
// 引入路由库 'react-router'
import { Router } from 'react-r... |
client/src/js/components/Display/TogglePlaylist.js | Siddharth11/iTunes-Remote | import React from 'react'
import { connect } from 'react-redux'
// icon
import MdLibraryMusic from 'react-icons/lib/md/library-music'
// actions
import togglePlaylistWindow from '../../actions/togglePlaylistWindow'
const toggle = (dispatch) => () => {
dispatch(togglePlaylistWindow(true))
}
const TogglePlaylist ... |
project-setup/libs/react-router/src/components/menu.js | kasiriveni/practice | import React from 'react';
export const Home = () => (
<div>
<h2>Home</h2>
</div>
);
export const About = () => (
<div>
<h2>About</h2>
</div>
);
export const Topics= () =>(
<div>
<p>Topics</p>
</div>
) |
src/containers/PaymentView/ApplyPay.js | JamesJin038801/CampID | import React, { Component } from 'react';
import {
Text,
TextInput,
View,
Platform,
TouchableOpacity,
Image,
Alert,
} from 'react-native';
import { connect } from 'react-redux';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import Icon from 'react-native-vector-icons/... |
docs/app/Examples/collections/Menu/Variations/Fixed.js | ben174/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const Fixed = () => {
return (
<Message info>
You can view examples of the <b>fixed</b> variation in the
<a href='http://semantic-ui.com/collections/menu.html#fixed' target='_blank'> official documentation</a>.
</Message>
)
}... |
components/connected/composer/input/index.js | marrus-sh/mastodon-go | // <ConnectedComposerInput>
// ========================
// This has nothing to do with `<CommonInput>`—it's for additional
// input methods and attachments, like emoji.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
imp... |
src/components/charts/charts/linechart/lines.js | noahehall/udacity-corporate-dashboard | import { generateLine } from '../lib/lines.js';
import { Path } from '../svg/path.js';
import React from 'react';
export const Lines = ({
// chartDataGroupBy = '',
// chartHeight = 200,
// chartWidth = 200,
chartType = '',
colorScale,
data,
lineCurve = '',
xScale,
xValue = '',
yScale,
yValue = ''... |
components/timeline/Timeline.js | headwinds/porthole |
/* eslint-disable */
import React from 'react';
export default class Timeline extends React.Component {
render() {
return (
<div>
<p></p>
</div>
);
}
}
|
src/routes/home/Home.js | jtiscione/redux-chess | /**
* 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-... |
App.js | PaRb/Extend | import React from 'react';
import { TabNavigator } from 'react-navigation';
import { Ionicons } from '@expo/vector-icons';
import ContactsApp from './views/ContactsApp';
import EventsApp from './views/EventsApp';
import SettingsApp from './views/SettingsApp';
import colors from './config/colors';
const App = TabNavi... |
lib/components/report/adjust-speed.js | conveyal/analysis-ui | /** Report out an adjust-speed modification */
import {Box, Heading, List, ListItem, Stack} from '@chakra-ui/react'
import flatten from 'lodash/flatten'
import React from 'react'
import L from 'lib/leaflet'
import message from 'lib/message'
import {getPatternsForModification} from 'lib/utils/patterns'
import AdjustSp... |
public/app/components/base/tooltip-container.js | vincent-tr/mylife-home-studio |
'use strict';
import React from 'react';
import PropTypes from 'material-ui/utils/propTypes';
import Tooltip from 'material-ui/internal/Tooltip';
import muiThemeable from 'material-ui/styles/muiThemeable';
// https://github.com/callemall/material-ui/blob/v0.15.0-alpha.2/src/icon-button.jsx
function getStyles(muiThem... |
app/containers/ProcessViewPage/components/GlycolReservoir/index.js | BrewPi/brewpi-ui | import React from 'react';
import styles from './styles.css';
const SvgGlycolReservoir = require('./svg/glycol_reservoir.svg?tag=g');
import { SvgParent } from '../SvgParent';
export const GlycolReservoir = () => (
<SvgParent viewBox={'0 0 100 150'}>
<SvgGlycolReservoir className={styles.glycolReservoir} />
... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | wustxing/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize... |
app/js/common/utils/domParser.js | h-iwata/react-babel-reflux-tutorial-for-blog | import parser from 'react-dom-parser'
import React from 'react';
import ReactDOM from 'react-dom';
export default Object.assign(parser, {
registryByName: {},
findComponentByName(name = null) {
if (name === null || this.registryByName[name] === undefined) {
return null;
}
return this.registryBy... |
app/components/containers/study-list-container.js | spasovski/shield-studies-client | import React from 'react';
import {connect} from 'react-redux';
import StudyList from '../views/study-list';
import * as studyApi from '../../api/study-api';
import store from '../../store';
const StudyListContainer = React.createClass({
componentDidMount: function() {
studyApi.getStudies();
},
render: func... |
src/svg-icons/hardware/tablet-android.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
src/components/ToDoApp/ToDoItem.js | elurye/ReactJestBoiler | 'use strict';
import React, { Component } from 'react';
import classNames from 'classnames';
class ToDoItem extends Component {
render () {
var defaultClass = 'callout';
var defaultClass = classNames({
'callout': true,
'callout-success': this.props.done,
'callout-info': !this.props.done
... |
src/views/ServiceRequest.js | chrisweilun/lavidioNewSite | import React, { Component } from 'react';
import '../styles/responsive-text.css';
import '../styles/serviceRequest.css'
import TextField from 'material-ui/TextField';
//import RaisedButton from '../components/MaterializeRaiseButton';
import RaisedButton from 'material-ui/RaisedButton'
import DatePicker from 'material-u... |
examples/js/cell-edit/click-to-edit-table.js | echaouchna/react-bootstrap-tab | /* 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,
... |
src/Table.js | egauci/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/app/components/media/MediaStatusCommon.js | meedan/check-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { browserHistory } from 'react-router';
import Button from '@material-ui/core/Button';
import Popover from '@material-ui/core/Popover';
import MenuItem from '@material-ui/core/MenuItem';
i... |
src/Parser/Shaman/Restoration/Modules/Spells/GiftOfTheQueen.js | enragednuke/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import AbilityTrac... |
src/svg-icons/device/graphic-eq.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGraphicEq = (props) => (
<SvgIcon {...props}>
<path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/>
</SvgIcon>
);
DeviceGraphicEq = pure(DeviceGraphicEq);
DeviceGraphi... |
templates/frontOffice/modern/components/React/Checkout/CheckoutBtn.js | Lucanis/thelia | import { useAddressQuery, useCheckoutCreate } from '../../../assets/js/api';
import { useDispatch, useSelector } from 'react-redux';
import { useEffect, useRef, useState } from 'react';
import React from 'react';
import { setAcceptedTermsAndConditions } from '@js/redux/modules/checkout';
import { useIntl } from 'react... |
packages/react-error-overlay/src/components/Footer.js | g3r4n/create-esri-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
src/components/Infinia.js | aryalprakash/aryalprakash.github.io | /**
* Created by user on 8/29/2016.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import Header from './Header'
import Home from './home'
let style={
header: {
background: 'grey'
}
}
export default class Infinia extends Component{
constructor(){
super(... |
wawhfd/static/src/js/components/recipes.js | calebrash/wawhfd | import React, { Component } from 'react';
import api from '../api';
let canonicalRecipes;
let currentFilterText = '';
let filteredCanonicalRecipes = () => {
return canonicalRecipes.filter((recipe) => {
let searchText = (`${recipe.name} ${recipe.description}`).toLowerCase();
return searchText.indexO... |
src/svg-icons/action/loyalty.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLoyalty = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.... |
src/js/components/OrthoCamera.js | captDaylight/furniture | import React from 'react';
import THREE from 'three';
function OrthoCamera(props) {
const { width, height, cameraPosition, worldPosition } = props;
return (
<orthographicCamera
name="camera"
left={width / -250}
right={width / 250}
top={height / 250}
bottom={height / -250}
near={0.5}
far={500... |
app/components/FormText/index.js | surzhik/coreola5 | import React from 'react';
import styles from './styles.css';
function FormText(props) {
let localProps = Object.assign({}, props);
localProps.className = localProps.className ? localProps.className + " " + styles["ant-form-item-text"] : styles["ant-form-item-text"];
return (
<div {...localProps}>{localProp... |
src/components/TextInput/ControlledPasswordInput.js | carbon-design-system/carbon-components-react | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
import View16 from '@carbon/icons-react/lib/view/16';
import ViewOff16 from '@carbon/icons-react/lib/view--off/16';
import WarningFilled16 from '@carbon/icons-react/lib/warni... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.