path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Navbar.js | ucladevx/website | import React from 'react'
import { NavLink } from 'react-router-dom'
import styled from 'styled-components'
import { colors, breakpoints, sizes } from '../styles'
import Logo from './Logo'
import Text from './Text'
import { links } from '../config'
const NavbarContainer = styled.div`
height: ${sizes.navbar.height}p... |
blueocean-material-icons/src/js/components/svg-icons/navigation/close.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose.displayName = 'NavigationClose';
NavigationCl... |
src/components/NavigationButton/index.js | ngetahun/personal-blog | import React from 'react'
import styled from 'styled-components'
import Link from 'gatsby-link'
import BackIcon from 'react-icons/lib/fa/chevron-left'
import ForwardIcon from 'react-icons/lib/fa/chevron-right'
import { getColorFromString } from '../../utils/color'
import { rhythm } from '../../utils/typography'
const... |
src/mobile/app.js | ChingxWando/2017-07-23_bubble-dragons | import React, { Component } from 'react';
import { ApolloProvider } from 'react-apollo';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import ApolloClient from 'apollo-client';
import { SubscriptionClient } from 'subscriptions-tran... |
node_modules/react-icons/ti/flash-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiFlashOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m24.2 6.7h0z m0 0l-4.2 10 8.3 4.8-12.5 11.8 4.2-10-8.3-4.8 12.5-11.8z m0-3.4c-1 0.1-1.7 0.4-2.3 1l-12.5 11.8c-0.8 0.7-1.2 1.7-1 2.8 0.1 1 0.7 2 1.6 2.5l5.8 3.4-3... |
src/containers/App/index.js | birdy-/shouldiuse | import React, { Component } from 'react';
import SkillInput from '../../components/SkillInput';
import score from '../../utils/score';
import { introductions, technologies } from '../../constants';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = {
firs... |
images/client/components/image_score.js | saitai0802/meteor-basic | import React from 'react';
const ImageScore = (props) => {
// props.ups is the number of upvotes
// props.downs is the number of downvotes
const { ups, downs } = props;
const upsPercent = `${100 * (ups / (ups + downs))}%`;
const downsPercent = `${100 * (downs / (ups + downs))}%`;
return (
<div>
... |
resources/react/components/parts/schedule/CurrentTime.js | fetus-hina/stat.ink | import PropTypes from 'prop-types';
import React from 'react';
import { DateTime } from 'luxon';
import { connect } from 'react-redux';
function CurrentTime (props) {
const { now, translations } = props;
if (!translations) {
return null;
}
const time = (
<time dateTime={now.toISO()}>
{now.toLoc... |
apps/chat_app/web/static/js/components/UserList.js | nemanja-m/ex-chat | import React, { Component } from 'react';
const styles = {
roomSidebar: {
color: '#ab9ba9',
background: '#4d394b',
border: '2px solid #2c212d'
},
header: {
padding: '20px 25px',
marginBottom: '10px',
color: 'white',
width: '260px',
fontSize: '28px',
fontWeight: 'bold',
},
... |
website-prototyping-tools/graphiql.js | mroch/relay | /**
* Copyright (c) 2013-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.
*/
import 'ba... |
src/svg-icons/maps/restaurant.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
src/components/Home.js | cyqkeygen/ruby-china-react-redux-demo | import React from 'react';
import PropTypes from 'prop-types';
import ExcellentTopics from '../containers/ExcellentTopics';
import Nodes from '../containers/Nodes';
import Cities from './Cities';
import { Link } from 'react-router-dom';
import gift from '../images/gift.svg';
import styles from '../styles/modules/Home.s... |
src/svg-icons/image/panorama.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanorama = (props) => (
<SvgIcon {...props}>
<path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePanora... |
app/javascript/mastodon/features/compose/index.js | unarist/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/svg-icons/editor/border-right.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h... |
src/mixin.js | alunny/es6-react-mixins | /*
* based on https://gist.github.com/sebmarkbage/fac0830dbb13ccbff596
* by Sebastian Markbåge
*/
import React from 'react';
const noop = () => null;
const es6ify = (mixin) => {
if (typeof mixin === 'function') {
// mixin is already es6 style
return mixin;
}
return (Base) => {
// mixin is old-rea... |
src/Card/CardTitle.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
className: PropTypes.string,
children: PropTypes.node,
large: PropTypes.bool,
};
const ROOT = 'mdc-card__title';
const LARGE = `${ROOT}--large`;
const CardTitle = ({ className, children, larg... |
trailspotter-web/src/models/chart.js | erikedmark/trailspotter | import React from 'react';
import Chartist from 'chartist';
export function createChart(inData) {
var data = {
labels: ['Mon','Tue','Wed'],
series: [
[5,2,4]
]
};
var options = {
width: '300px',
height: '200px'
};
new Chartist.Line('#profile', data, options);
} |
app/containers/LanguageProvider/index.js | ca11ado/inache-pa | /*
*
* 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... |
src/svg-icons/communication/portable-wifi-off.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPortableWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.... |
config/components/ClientConfig.js | oyeanuj/react-universally | import React from 'react';
import PropTypes from 'prop-types';
import serialize from 'serialize-javascript';
import filterWithRules from '../../shared/utils/objects/filterWithRules';
import values from '../values';
// Filter the config down to the properties that are allowed to be included
// in the HTML response.
con... |
js/components/card/card-showcase.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { Image, Dimensions } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, Left, Right, Body, IconNB } from... |
frontend/component/NewTopic.js | ice139999361/dataguru-node-learn | import React from 'react';
import jQuery from 'jquery';
import {addTopic} from '../lib/client';
import {redirectURL} from '../lib/utils';
import TopicEditor from './TopicEditor';
export default class NewTopic extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
... |
src/admin/containers/payment_reports.js | foundersandcoders/sail-back | /* @flow */
import React from 'react'
import { connect } from 'react-redux'
const { compose, props, map, append, lensIndex, set, range, apply, lift,
defaultTo, lensProp, reduce, over, identity }
= require('ramda')
import { minus, plus } from 'app/money_arith'
import standardise from 'app/standardise_date'
import ... |
src/components/d3components/Point.js | nbuechler/studious-display | import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
import _ from 'underscore';
export default class Point extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
_handleOver(d) {
if(d.isLineChart == 1) {
ReactDOM.findDOMNode(this).parentE... |
src/svg-icons/action/assignment-return.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/svg-icons/image/compare.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
src/settings/CommentRequiredSettings.js | folio-org/ui-users | import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { Callout } from '@folio/stripes/components';
import { injectIntl, FormattedMessage } from 'react-intl';
import { stripesConnect } from '@folio/stripes/core';
import CommentRequiredForm from './CommentRequiredForm';
import c... |
docs/app/Examples/modules/Search/Types/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SearchTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Standard'
description='A ... |
packages/material-ui-icons/src/Gif.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Gif = props =>
<SvgIcon {...props}>
<path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z" />
</SvgIco... |
src/containers/AboutPage.js | mathieulesniak/react-starter-kit | import React from 'react';
import { Link } from 'react-router';
const AboutPage = () =>
(<div>
<h4>About</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut nisl diam, fringilla sed urna
id, porttitor ornare orci. Proin at turpis ac metus ornare rutrum id eget diam. Etiam
... |
lib/index.js | christielynam/do-you | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app/app';
import { Provider } from 'react-redux';
import configureStore from './configureStore';
import createHistory from '../node_modules/history/createBrowserHistory';
import {
ConnectedRouter,
routerReducer,
routerMiddlewa... |
src/app/js/ColorSpaceTable.js | skratchdot/colorify | import React, { Component } from 'react';
import { Table } from 'react-bootstrap';
import getPath from 'object-path-get';
class ColorSpaceTable extends Component {
render() {
return (
<div className="math-table-container">
<Table className="math-table">
<thead>
<tr>
... |
test prjs/refactor/src/App.js | cnfi/laboratory | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
/**
*电影
*/
class Movie {
constructor(title, priceCode) {
this.title = title
this.priceCode = priceCode
}
// 电影的种类
static get REGULAR() {
return 0; // 普通片儿
}
static... |
src/components/topic/controlbar/TopicStoryInfo.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import withFilteredAsyncData from '../FilteredAsyncDataContainer';
import { fetchTopicStoryCounts } from '../../../actions/topicActions';
const localMessages ... |
app/index.js | erichardson30/jarvis-electron | import React from 'react';
import { render } from 'react-dom';
import App from './containers/App';
import './app.global.css';
render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/action/pageview.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPageview = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-... |
src/parser/demonhunter/havoc/modules/talents/CycleOfHatred.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Events from 'parser/core/Events';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import { formatN... |
LogFileReader/log-viewer-fe/app/containers/App/index.js | luungoc2005/LogFileReader | /**
*
* 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... |
examples/huge-apps/app.js | mozillo/react-router | /*eslint-disable no-unused-vars */
import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router } from 'react-router'
import stubbedCourses from './stubs/COURSES'
const history = useBasename(createHistory)({
basename: '/huge-apps'
})
const rootRoute = {
component: 'div',
childR... |
glamorous/button.js | MicheleBertoli/css-in-js | import React from 'react';
import ReactDOM from 'react-dom';
import glamorous from 'glamorous';
const { Div } = glamorous;
const MyStyledButton = glamorous.button({
backgroundColor: '#ff0000',
width: 320,
padding: 20,
borderRadius: 5,
border: 'none',
outline: 'none',
':hover': {
color: '#fff',
},
... |
src/js/components/_threads/filters/ThreadCategoryFilterList.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import InputCheckbox from '../../ui/InputCheckbox';
export default class ThreadCategoryFilterList extends Component {
static propTypes = {
categories : PropTypes.array,
filters : PropTypes.obje... |
client/views/setupWizard/steps/FinalStep.js | Sing-Li/Rocket.Chat | import { Box, Button, Tile } from '@rocket.chat/fuselage';
import React from 'react';
import { useSetting, useSettingSetValue } from '../../../contexts/SettingsContext';
import { useTranslation } from '../../../contexts/TranslationContext';
function FinalStep() {
const t = useTranslation();
const siteUrl = useSetti... |
packages/react-error-overlay/src/containers/StackTrace.js | GreenGremlin/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.
*/
/* @flow */
import React, { Component } from 'react';
import StackFrame from './StackFrame';
import Collapsible from '../components/Coll... |
src/server.js | scele/coverigate | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
require('source-map-support').install();
import 'babel/polyfill';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import './core/Dispatcher';
import './stores/AppSto... |
client/src/components/Header/index.js | ncs-jss/plexus-17 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, NavLink } from 'react-router-dom';
import styles from './index.css';
import Logo from './Logo';
class Header extends Component {
constructor(props) {
super(props);
this.navLinks = [
{
text: 'Home',
... |
src/svg-icons/communication/rss-feed.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
react-flux-mui/js/material-ui/src/svg-icons/editor/border-color.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
web/js/_src/_app.js | GulDmitry/music-diff | // ES6 https://habrahabr.ru/post/305900/
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.css'
import '../css/font-awesome.css'
import '../css/theme.css'
import 'babel-polyfill'
// ReactApp.jsx
import React from 'react'
import {render} from 'react-dom'
import ReactApp from './src/containers/ReactApp'
// Redux... |
src/docs/Navigation.js | tlraridon/ps-react-train-tlr | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
resources/js/components/artifacts/CloseButton/CloseButton.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const CloseButton = ({ callback, className, size }) => (
<button
type="button"
className={classnames('cursor-pointer', className)}
onClick={callback}
>
<svg
xmlns="http://www.w3.org/2000/svg"
... |
stories/Tooltip/Core/ExampleMove.js | skyiea/wix-style-react | import React from 'react';
import {Tooltip} from 'wix-style-react';
import styles from './Example.scss';
export default () =>
<Tooltip
active
placement="right"
alignment="top"
textAlign="left"
content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. In vel erat eu sem rutrum tristique. ... |
examples/preact/src/ProTip.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Link from '@material-ui/core/Link';
import SvgIcon from '@material-ui/core/SvgIcon';
import Typography from '@material-ui/core/Typography';
function LightBulbIcon(props) {
return (
<SvgIcon {...props}>
<path d="M9 21c0... |
example/src/components/App.js | hupe1980/firebase-sagas | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { Grid, Row, Col } from 'react-bootstrap';
import Header from './Header';
import TodoList from './TodoList';
import Login from './Login';
import RequireAuth from './RequireAuth';
const App = () => (
<Grid>
<Row>
<Col xs={12... |
webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js | snagoor/katello | import React from 'react';
import selectionCellFormatter from './selectionCellFormatter';
import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton';
export default (collapseableController, selectionController, additionalData) => {
const shouldShowCollapseButton = collapseableControl... |
Libraries/Components/TextInput/TextInput.js | ankitsinghania94/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.
*
* @provides... |
src/containers/MessageContainer.js | zzelune/neam | import React, { Component } from 'react';
import {
StyleSheet,
View,
TextInput,
Image,
FlatList,
TouchableHighlight,
WebView
} from 'react-native';
import { ListItem, Header, Left, Body, Right, Text, Thumbnail } from 'native-base';
import Icon from 'react-native-vector-icons/Ionicons';
import common from ... |
src/svg-icons/content/content-cut.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-... |
indico/modules/core/client/js/impersonation.js | ThiefMaster/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 impersonateURL from 'indico-url:auth.admin_impersonate';
import React from 'react';
import R... |
client/src/components/layouts/Page.js | banderson/reactive-stock-ticker-demo | import React from 'react';
export default ({children}) => (
<main className="container">
{children}
</main>
);
|
app/screens/messaging/chat.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
FlatList,
View,
Platform,
Image,
TouchableOpacity,
Keyboard
} from 'react-native';
import {InteractionManager} from 'react-native';
import {
RkButton,
RkText,
RkTextInput,
RkAvoidKeyboard,
RkStyleSheet,
RkTheme
} from 'react-native-ui-kitten';
import _ from 'l... |
app/javascript/flavours/glitch/components/skeleton.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
Skeleton.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
};
export default Skeleton;
|
app/src/components/app.js | MartinKostadinov/FeTest-with-React-and-Redux | import React from 'react';
import './../scss/main.scss';
import Header from './header';
import Main from './main';
import Footer from './footer';
class App extends React.Component {
render() {
return (
<div>
<Header />
<Main />
<Footer />
... |
src/svg-icons/editor/drag-handle.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
public/js/components/admin/graphs/adminPanel/admin.react.js | TRomesh/Coupley | import React from 'react';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui/l... |
examples/with-next-translate/components/Layout.js | azukaru/next.js | import React from 'react'
import Head from 'next/head'
import useTranslation from 'next-translate/useTranslation'
export default function Layout(props) {
const { t } = useTranslation()
return (
<div className="container">
<Head>
<title>{t('common:title')}</title>
<link rel="icon" href="/... |
src/TimeStamp/index.js | DuckyTeam/ducky-components | import {isoString, timeSince} from './utils/time';
import LabelSmall from '../LabelSmall';
import React from 'react';
import PropTypes from 'prop-types';
function TimeStamp(props) {
return (
<LabelSmall
className={props.className}
content={
<time
... |
src/components/charts/RechartsCustom.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { humanReadable } from '../../utilities/common'
import i18next from '../../utilities/i18next'
import moment from 'moment'
/** Required store instances. */
import gui from '../../stores/gui'
/**
* Custom axis tick.
* @function CustomTick
*/
const CustomTick = props => {
let value ... |
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js | ConnectedHomes/create-react-web-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => (
<span id="feature-public-url">{process.env.PUBLIC_URL}.</span>
);
|
src/components/Background.js | shoegazer/shuffly-now | import React from 'react'
import {connect} from 'react-redux'
@connect(state => ({
cover: state.track.current.cover
}))
export default class extends React.Component {
render() {
return pug`#background(style=${this.props.cover ? {backgroundImage: 'url(' + this.props.cover + ')'} : {}})`;
}
} |
stories/DateTimePicker.js | Bandwidth/shared-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import DateTimePicker from 'components/DateTimePicker';
import moment from 'moment';
storiesOf('Date Time Picker', module)
.add('standard', () => <DateTimePicker onChange={action('onChange')} /... |
src/native/main.js | robinpokorny/este | // @flow
import FBSDK from 'react-native-fbsdk';
import React from 'react';
import ReactNativeI18n from 'react-native-i18n';
import Root from './app/Root';
import configureStore from '../common/configureStore';
import initialState from './initialState';
import uuid from 'react-native-uuid';
import { AppRegistry, AsyncS... |
src/media/js/site/components/wizard.js | ngokevin/marketplace-content-tools | import classnames from 'classnames';
import React from 'react';
const Wizard = React.createClass({
propTypes: {
activeStep: React.PropTypes.number.isRequired,
highestStep: React.PropTypes.number.isRequired,
goToStep: React.PropTypes.func,
steps: React.PropTypes.arrayOf(React.PropTypes.shape({
... |
src/svg-icons/action/highlight-off.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1... |
src/components/PrintPage.js | longyarnz/WelFurnish-E-Commerce | import React, { Component } from 'react';
import Logo from '../../src/files/logo.png';
import FetchGraph from './FetchGraph';
export default class PrintPage extends Component {
constructor(props){
super(props);
this._onClick = this._onClick.bind(this);
this._getOrder = this._getOrder.bind(this);
this._getMe... |
src/Parser/Paladin/Retribution/Modules/Items/Tier20_4set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
class Tier20_4set exte... |
client/src/Game/Prototype03/Setting/foreground.js | hold-the-door-game/Prototypes | import React from 'react';
import bind from 'react-autobind';
import Game from 'Game/index.js'
class Foreground extends React.Component {
constructor(props) {
super(props);
bind(this);
this.foreground = window.PIXI.Sprite.fromImage('assets/sprites/office_building_cutout_01.png');
const foreground = t... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | mxw0417/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
docs/src/examples/elements/Loader/Types/LoaderExampleLoader.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react'
const LoaderExampleLoader = () => (
<Segment>
<Dimmer active>
<Loader />
</Dimmer>
<Image src='/images/wireframe/short-paragraph.png' />
</Segment>
)
export default LoaderExampleLoader
|
fields/types/embedly/EmbedlyField.js | asifiqbal84/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'EmbedlyField',
// always defers to renderValue; there is no form UI for this field
renderField () {
return this.renderValue();
},
renderValue (path, label, ... |
src/client/components/App.js | braxnu/vineverse | import React from 'react'
import Stock from './Stock'
import Balance from './Balance'
import Prices from './Prices'
import Username from './Username'
import Menu from './Menu'
const items = [
{display: 'Strona główna', url: '/'},
{display: 'Ceny', url: '/prices'}
]
const App = () => {
return (
<div classNam... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | AnSavvides/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
resources/assets/javascript/components/datePicker.js | colinjeanne/garden | import moment from 'moment';
import React from 'react';
import SelectBox from './selectBox';
export default class DatePicker extends React.Component {
static get propTypes() {
return {
defaultValue: React.PropTypes.string.isRequired,
endDate: React.PropTypes.string.isRequired,
... |
src/Table.js | JimiHFord/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() {
... |
packages/stockflux-components/src/components/buttons/borderless-buttons/app-shortcuts/Chart.js | owennw/OpenFinD3FC | import React from 'react';
import { Launchers } from 'stockflux-core';
import ChartIconSmall from '../../../glyphs/small/chart.svg';
import ChartIcon from '../../../glyphs/launcher/chart.svg';
import RoundButton from '../../round-button/RoundButton';
export default ({ symbol, name, small, disabled, onClick, intentsEna... |
imports/ui/containers/feed/postList.js | jiyuu-llc/jiyuu | import React from 'react';
import { composeWithTracker } from 'react-komposer';
import { Feed } from '/lib/collections';
import PostList from '../../components/feed/postList.jsx';
const composer = ( props, onData ) => {
if (subsManager.subscribe('mainFeed', Session.get('paginationLimit')).ready()
&& connec... |
example/src/example.js | bokuweb/re-bulma | import React, { Component } from 'react';
import {
Button,
Columns,
Column,
Addons,
Group,
FormHorizontal,
ControlLabel,
Input,
Textarea,
Select,
Label,
Checkbox,
Table,
Td,
Th,
Tr,
Tbody,
Thead,
Tfoot,
Title,
Subtitle,
Box,
Icon,
Radio,
Tabs,
TabGroup,
Tab,
Tag,
... |
Examples/ForTest/src/Page/Project1/WorkHome.js | ksti/react-native-utils | import React, { Component } from 'react';
import {
StyleSheet,
Platform,
View,
Text,
ListView,
TouchableOpacity,
Image,
RefreshControl,
ScrollView,
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import { Actions } from 'react-native-router-flux';
import { connect } from 'rea... |
src/components/History.js | golemfactory/golem-electron | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import isEqual from 'lodash/isEqual';
import {
AutoSizer,
InfiniteLoader,
List,
defaultCellRangeRenderer
} from 'react-virtualized';
const posed = require('react-pose');
const { PoseGroup } = posed;
i... |
examples/js/manipulation/demo.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import InsertRowTable from './insert-row-table';
import DeleteRowTable from './delete-row-table';
import SearchTable from './search-table';
import ColumnFilterTable from './filter-table';
import MultiSearchTable from './multi-search-table';
import ExportCSVTable from '... |
admin/src/components/PrimaryNavigation.js | udp/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var PrimaryNavItem = React.createClass({
displayName: 'PrimaryNavItem',
propTypes: {
className: React.PropTypes.string,
children: React.PropTypes.node.isRequired,
href: Reac... |
src/Interpolate.js | brynjagr/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
webapp/app/components/EditGroup/Form/GroupRights/MigrationMode/index.js | EIP-SAM/SAM-Solution-Server | //
// Component migration mode group rights form edit group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import styles from 'components/EditGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditGroupFormGroupRightsMigr... |
src/index.js | Darth-koder007/reactify | /**
* Vendor imports
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
/**
* Custom imports
*/
import App from './components/app';
import styles from '../style/style.scss';
import fonts from '../style/fontello.css';
/**
* Render function call
*/
ReactDOM.render(
<App /... |
src/components/MainPage.js | raghuveer553/imagesinapiviewer | import React from 'react';
// import ReactDOM from 'react-dom';
import { connect } from 'react-redux'
import axios from 'axios';
// import TopBox from './TopBox';
import BottomBox from './BottomBox';
import InputWithTitle from './InputWithTitle';
import MyButton from './MyButton';
import buttonClickedAction from '../... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | jwaltonmedia/react-router | import React from 'react'
class Assignments extends React.Component {
render() {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
)
}
}
export default Assignments
|
app/page/Home.js | jokunhe/react-native-ee-camera | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ToastAndroid
} from 'react-native';
import Realm from 'realm';
class Scan {}
Scan.schema= {
name: 'Scan',
properties: {
id:'string',
name: 'string',
number:'string',// 添加默认值的写法
}
};
let ... |
src/main.js | dannyrdalton/example_signup_flow | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
app/App.js | mario2904/ICOM5016-Project | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { apiMiddleware } from 'redux-api-middleware';
import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router';
impor... |
app/extensions/safe/components/authRequest.js | joshuef/peruse | import React, { Component } from 'react';
import logger from 'logger';
// TODO: When I import the following, an error is thrown in CodeMirror, used by nessie-ui, that navigator is not defined
//import { Text, Column } from 'nessie-ui';
//import './authRequest.css';
export const createAuthRequestElement = (authReqData... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.