path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/shopping-cart/src/main.js | eiriklv/redux-saga | import "babel-polyfill"
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './components/App'
import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import rootReducer from './reducers'
import rootSaga from '.... |
analysis/deathknight/src/RuneTracker.js | yajinni/WoWAnalyzer | import React from 'react';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import SPELLS from 'common/SPELLS';
import { formatDuration, formatNumber, formatPercentage } from 'common/format';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import Statistic from 'parser/ui/Statistic';
import SpellUsable from... |
src/server.js | hmeinertrita/MyPlanetGirlGuides | /**
* 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 path from 'path';
import express from 'express';... |
src/svg-icons/communication/phonelink-erase.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
examples/todo/js/components/TodoList.js | gabelevi/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
docs/src/components/Concept/Concept.js | abouthiroppy/scuba | import React from 'react';
import { Link } from 'react-router';
import {
Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn
} from '../../../../src';
const Concept = () => (
<section>
<h1>Concept</h1>
<hr />
<h3>Mission</h3>
<p>
The purpose of
<em> Scuba </em>
... |
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js | ruifortes/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const style = {
margin: 12,
};
const RaisedButtonExampleSimple = () => (
<div>
<RaisedButton label="Default" style={style} />
<RaisedButton label="Primary" primary={true} style={style} />
<RaisedButton label="Secondary" se... |
src/components/Loading.js | FakeYou/treasure-trails | import React from 'react';
import styled, { keyframes } from 'styled-components';
const spinning = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`;
const Container = styled.div`
display: flex;
flex: 1;
align-items: center;
justify-content: center;
`;
const Spinner = styl... |
client/components/events/TeamVotePage.js | yanigisawa/voting-tornado | import React from 'react';
import {PropTypes} from 'prop-types';
import { connect } from 'react-redux';
import {bindActionCreators} from 'redux';
import jquery from 'jquery';
class TeamVotePage extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
categories: p... |
src/index.js | hailin1008/react-exercise | // Set up your application entry point here...
import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import {AppContainer} from 'react-hot-loader'
import App from './components/App'
import configureStore from './store/configureStore'
const store = configureStore();
render(
... |
client/index.js | grishanin/auctionata | import React from 'react';
import { render } from 'react-dom';
import configureStore from '../universal/store/configureStore';
import Root from './containers/Root';
import routes from '../universal/routes';
import * as actions from '../universal/actions';
import { setupRealtime } from './realtime';
import '../css/mai... |
stories/styled.js | bntzio/site | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { WithNotes } from '@kadira/storybook-addon-notes';
import centered from '@kadira/react-storybook-decorator-centered';
import backgroundColor from 'react-storybook-decorator-background';
// Notes
const notes = {
heroPage: 'The only thin... |
src/components/atoms/text-block.js | jameslutley/jameslutley.com | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'react-emotion'
import t from 'tachyons-js'
const TextBlockContainer = styled.section`
font-family: ${props => props.theme.serif};
font-size: ${props => props.theme.fontSize6};
line-height: calc(28 / 18);
color: ${props => props.th... |
draft-js-buttons/src/components/AlignBlockCenterButton/index.js | dagopert/draft-js-plugins | import React from 'react';
import createBlockAlignmentButton from '../../utils/createBlockAlignmentButton';
export default createBlockAlignmentButton({
alignment: 'center',
children: (
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M3,21 L21,21 L21,19 L3,19 L... |
src/App.js | scholtzm/steam-auth-web-util | import React from 'react';
import createReactClass from 'create-react-class';
import cloneDeep from 'lodash/cloneDeep';
import { generate } from './utils/totp';
import profile from './utils/profile';
import packageJson from '../package.json';
export default createReactClass({
_calculate() {
const { sharedSecre... |
index.js | nosplashurinal/order-management | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from ... |
react/features/chat/components/web/ChatInput.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import Emoji from 'react-emoji-render';
import TextareaAutosize from 'react-textarea-autosize';
import type { Dispatch } from 'redux';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import SmileysPanel from './SmileysP... |
electron/app/components/ComponentTree.js | zindlerb/motif | import React from 'react';
import $ from 'jquery';
import _ from 'lodash';
import classnames from 'classnames';
import { wasRightButtonPressed } from '../utils';
import { componentTypes } from '../constants';
import TreeItem from './TreeItem';
const Spacer = React.createClass({
checkActive(dropPoint) {
if (!dro... |
src/components/Preview/ItemPreview.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import Map from '../../components/Maps/Map';
class ItemPreview extends React.Component {
render() {
return (
<div className="col-xl-4 order-xl-1 col-lg-4 order-lg-1 col-md-12 order-md-2 col-sm-12 col-xs-12 responsive-display-none">... |
frontend/src/Calendar/Legend/LegendIconItem.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import styles from './LegendIconItem.css';
function LegendIconItem(props) {
const {
name,
icon,
kind,
tooltip
} = props;
return (
<div
className={styles.legendIconItem}
title={toolt... |
app/jsx/shared/ProgressBar.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
node_modules/react-router/es/StaticRouter.js | Aznachang/CompanyPersonelReactJS | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
docs/src/PageFooter.js | Azerothian/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div className='container'>
<div className='bs-docs-social'>
<ul className='bs-doc... |
react/hackernews/src/NewsHeader.js | sabertazimi/st-proj | import React, { Component } from 'react';
import imageLogo from '../assets/img/y18.gif';
import '../assets/css/NewsHeader.css';
export default class NewsHeader extends Component {
getLogo() {
return (
<div className="newsHeader-logo">
<a href="https://news.ycombinator.com/">
<img src={imageLog... |
Libraries/Components/TextInput/TextInput.js | rickbeerendonk/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/components/MasonryComp.js | chrisweilun/lavidioNewSite | import React from 'react';
import filter from 'lodash/filter';
import Masonry from 'react-masonry-component';
import SvgIcon from 'material-ui/SvgIcon';
import { GenericCard } from './../components/GenericCard';
import FlatButton from 'material-ui/FlatButton';
const DownlaodIcon = props =>
<SvgIcon {...props}>
... |
src/SplitButton.js | erictherobot/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
src/svg-icons/action/alarm-on.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOn = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0... |
src/docs/components/form/AllFieldTypes.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import FormField from 'grommet/components/FormField';
import CheckBox from 'grommet/components/CheckBox';
import RadioButton from 'grommet/components/RadioButton';
import TextInput from 'grommet/components/Te... |
src/components/dumb/Base/Button/index.js | apedyashev/reactjs-jobs-aggregator | // libs
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
export default function Button(props) {
return (
<RaisedButton {...props} secondary />
);
}
|
src/parser/warlock/affliction/modules/features/AlwaysBeCasting.js | FaideWW/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting extends CoreAlwaysBeCasting {
get suggestionThresholds() {
re... |
react-boilerplate/src/App.js | collectivehealth/frontend-boilerplates | 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/... |
src/components/test.js | thbgh/antdPro | /**
* @Author: THB
* @Date: 2017-07-26 10:47:51 AM Wednesday
* @Email: thbwork2016@gmail.com
* @Project: antdPro
* @Filename: test.js
* @Last modified by: THB
* @Last modified time: 2017-08-10 11:05:46 AM Thursday
*/
// 测试 组件之间的通信 父子 子父
import React from 'react';
import ToggleButton from './child1'
// 父... |
src/example/source.js | react-entanglement/web-storage-adapter | import React from 'react'
import { render } from 'react-dom'
import adapter from '../index'
import Entanglement from 'react-entanglement'
import StateContainer from './components/StateContainer'
render(
<Entanglement adapter={adapter('web-storage-adapter-demo')}>
<StateContainer />
</Entanglement>
, document... |
pages/postcss.js | Tkoefod/javasciprt-today | import React from 'react'
import './example.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi PostCSSy friends`}
/>
<h1 classNam... |
src/container/templates/index.js | KaleoSoftware/generator-rr | import React from 'react'
import {connect} from 'react-redux'
const styles = {
<%= name %>: {
}
}
const <%= camelCasedName %> = () => (
<div style={styles.<%= name %>}>
</div>
)
const mapStateToProps = () => ({
})
export default connect(mapStateToProps)(<%= camelCasedName %>)
|
examples/InputSwitch.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input name='on' type='switch' value='1' />
</Row>;
|
src/server.js | jaruesink/ruesinkdds | /**
* 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 path from 'path';
import express from 'express';... |
tests/react/useRef_hook.js | AgentME/flow | // @flow
import React from 'react';
class Foo extends React.Component<{}, void> {}
class Bar extends React.Component<{}, void> {}
{
const stringValue: {current: string | null} = React.useRef("abc"); // Ok
const numberValue: {current: number | null} = React.useRef(123); // Ok
const booleanValue: {current: boole... |
fields/components/columns/InvalidColumn.js | davibe/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
... |
js/containers/App.js | parris/react-three-experiments | import React from 'react';
import {Provider} from 'react-redux';
import configureStore from '../store/configureStore';
import Home from '../components/Home';
import {renderDevTools} from '../utils/devTools';
const store = configureStore();
export default React.createClass({
render() {
return (
<div>
... |
node_modules/rc-calendar/es/calendar/OkButton.js | prodigalyijun/demo-by-antd | import React from 'react';
export default function OkButton(_ref) {
var prefixCls = _ref.prefixCls,
locale = _ref.locale,
okDisabled = _ref.okDisabled,
onOk = _ref.onOk;
var className = prefixCls + "-ok-btn";
if (okDisabled) {
className += " " + prefixCls + "-ok-btn-disabled";
}
return... |
src/component/AllSkills.js | Valtena/valt-code | import React from 'react';
import MDLComponent from '../utils/MDLComponent.js';
import SkillsList from './SkillsList';
import skillsLang from './skillsLang.json';
import skillsLib from './skillsLib.json';
class AllSkills extends MDLComponent {
render() {
return (
<div className="skill-ui">
<SkillsL... |
themes/custom/ocelot_d8/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | sawirah/OD8 | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
docs/app/Examples/modules/Dropdown/Types/DropdownExampleInlineTwo.js | clemensw/stardust | import React from 'react'
import { Dropdown, Header, Icon } from 'semantic-ui-react'
/**
* Heads up!
*
* SUI core has these 4 fields on the Dropdown.Item:
*
* "name" : "Choice 1", // name displayed in dropdown
* "value" : "value1", // selected value
* "text" : "Choice 1" // name displayed after selection (opt... |
client/src/components/logs/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { conf, get } from '../../api';
import { promisifyData, cancelPromises } from '../../utils';
import Logs from './Logs';
class LogsContainer extends Component {
static propTypes = {
t: P... |
src/containers/Asians/_components/ViewLockedRound/TraineeFeedback/SmallTraineeFeedback/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
import ListSubheader from 'material-ui/List/ListSubheader'
export default connect(mapStateToProps)(({
round,
adjudicatorScores,
rooms
}) => {
const filterRooms = roomToMatch => roomToMatch.round === round._id
c... |
client/fragments/quizzes/leaderboard/index.js | yeoh-joer/synapse | /**
* External Dependencies
*/
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
/**
* Internal Dependecies
*/
import './style.scss'
import Card from 'client/components/card'
import List from 'client/components/list'
import { fetchRanks } from 'client/state/ranks/ac... |
src/components/BaseView/index.js | Reditr-Software/reditr | import React from 'react'
import DataStore from '../../utilities/DataStore'
class BaseView extends React.Component {
constructor(props) {
super(props)
this.enableCache = false
this.cacheName = 'base_view'
}
}
export default BaseView
|
src/components/TabContent.js | patrik-piskay/react-tabs-redux | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export const styles = {
hidden: {
display: 'none',
},
};
class TabContent extends Component {
static displayName = 'TabContent';
canRenderChildren() {
return this.props.isVisible || !thi... |
src/svg-icons/image/navigate-next.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateNext = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
ImageNavigateNext = pure(ImageNavigateNext);
ImageNavigateNext.displayName = 'Ima... |
src/main.js | OIT-ADS-Web/scholars_cv_generator | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import ScholarsCV from './ScholarsCV'
import 'jquery'
import 'babel-polyfill'
//require ('bootstrap')
//require('./styles/main.less');
module.exports = function(targetNode) {
unmountComponentAtNode(targetNode)
render (
<... |
src/GovernmentMemberList.js | escabc/members-search-app | import React from 'react'
import PropTypes from 'prop-types'
import Panel from './Panel'
import GovernmentMemberItem from './GovernmentMemberItem'
const styles = {
root: {
marginTop: 50,
},
}
const GovernmentMemberList = ({ members = [], onMemberClick }) => (
<div style={styles.root}>
<Panel title="Gov... |
src/index.js | SteveHoggNZ/react-notetaker | import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
import Main from './components/Main';
Router.run(routes, (Root, state) => {
React.render(<Root {...state} />, document.getElementById('root'));
}); |
client/src/js/Routes.js | muhammad-saleh/weightlyio | "use strict";
import React from 'react';
import { Router, Route, Link, IndexRoute } from 'react-router';
import { render } from 'react-dom';
import App from './components/App';
import LoginPage from './components/LoginPage';
import HomePage from './components/HomePage';
export default (
<Route path="/" componen... |
docs/app/Examples/collections/Table/Types/TableExampleApprove.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Checkbox, Icon, Table } from 'semantic-ui-react'
const TableExampleApprove = () => {
return (
<Table compact celled definition>
<Table.Header>
<Table.Row>
<Table.HeaderCell />
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.H... |
src/svg-icons/notification/airline-seat-flat.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
frontend/src/components/pages/journal/Courses.js | pahomovda/victorious-pirate | import React from 'react';
import reactMixin from 'react-mixin';
import ReactFireMixin from 'reactfire';
import Highlighter from 'components/Highlighter';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Subheade... |
app/javascript/mastodon/components/autosuggest_textarea.js | tri-star/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
packages/benchmarks/src/implementations/inline-styles/Dot.js | styled-components/styled-components | /* eslint-disable react/prop-types */
import React from 'react';
const Dot = ({ size, x, y, children, color }) => (
<div
style={{
...styles.root,
...{
borderBottomColor: color,
borderRightWidth: `${size / 2}px`,
borderBottomWidth: `${size / 2}px`,
borderLeftWidth: `${s... |
test_flow/index.js | prometheusresearch/react-stylesheet | /**
* @flow
*/
import {style} from '../src';
import React from 'react';
function testDOM() {
let StyledDiv = style('div', {
base: {
color: 'red',
},
});
<StyledDiv />;
}
function testFunctionalComponents() {
function Functional({hello}: {hello: string}) {
return <div>{hello}</div>;
}
... |
src/icons/IosIonicOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosIonicOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M425.5,134.8c4.7-5.9,7.5-13.5,7.5-21.6c0-19.2-15.6-34.9-34.8-34.9c-8.2,0-15.7,2.8-21.6,7.5c-34-24.2-75-37.8-... |
src/svg-icons/device/bluetooth-disabled.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
lib/Button/stories/styles.js | folio-org/stripes-components | import React from 'react';
import Button from '../Button';
import Icon from '../../Icon';
export default () => (
<div style={{ maxWidth: '500px' }}>
<h3>Colors</h3>
<Button>Default</Button>
<Button buttonStyle="primary">Primary</Button>
<Button buttonStyle="danger">Danger</Button>
<Button buttonS... |
modules/gui/src/app/home/map/mapAreaMenu.js | openforis/sepal | import {Activator} from 'widget/activation/activator'
import {Button} from 'widget/button'
import {Buttons} from 'widget/buttons'
import {Item} from 'widget/item'
import {Layout} from 'widget/layout'
import {Panel} from 'widget/panel/panel'
import {activatable} from 'widget/activation/activatable'
import {compose} from... |
src/index.js | qtpalmtop/gallary | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
server/sonar-web/src/main/js/apps/system/item-log-level.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... |
node_modules/react-slick/src/default-props.js | ZSMingNB/react-news | import React from 'react';
var defaultProps = {
className: '',
accessibility: true,
adaptiveHeight: false,
arrows: true,
autoplay: false,
autoplaySpeed: 3000,
centerMode: false,
centerPadding: '50px',
cssEase: 'ease',
customPaging: function(i) {
return <button>{i + 1}</b... |
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleTouchTap = () => {
th... |
src/package/plugins/slate-grid-plugin/GridNode.js | abobwhite/slate-editor | import React from 'react'
const GridNode = ({ attributes, children }) => (
<table style={{ width: '100%', tableLayout: 'fixed' }}>
<tbody {...attributes}>
{children}
</tbody>
</table>
)
export default GridNode
|
src/index.js | Moovashaka/moovaShaka | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
packages/material-ui-icons/src/PlayCircleFilledWhiteOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<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.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-2-3.5l6-4.5-6-4.5z" />
, 'PlayCircleFilledWhiteOutlined');
|
frontend/js/pages/SessionList.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import { withStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
import ContentAdd from 'material-ui-icons/Add';
import Grid from 'material-ui/Gri... |
components/Result.js | sturquier/hyne | import React, { Component } from 'react';
import { Text, ListView, ActivityIndicator } from 'react-native';
import axios from 'axios';
import Row from './Row';
class Result extends Component {
static navigationOptions = ({navigation}) => {
return {
/* We get the city from Search Component */
/* And we pass i... |
client/src/assets/icons/Caret.js | jonathanihm/freeCodeCamp | import React from 'react';
function Caret() {
return (
<svg viewBox='0 0 100 100' width='25px'>
<polygon
points='-6.04047,17.1511 81.8903,58.1985 -3.90024,104.196'
style={{
stroke: 'var(--primary-color)',
fill: 'var(--primary-color)',
strokeWidth: '1px'
... |
docs/build.js | egauci/react-bootstrap | /* eslint no-console: 0 */
import fsp from 'fs-promise';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import {match, RoutingContext} from 'react-router';
import Root from './src/Root';
import routes from './src/Routes';
import metadata from './generate-metadata';... |
client/me/account/controller.js | tinkertinker/wp-calypso | /**
* External dependencies
*/
import React from 'react';
import page from 'page';
import i18n from 'i18n-calypso';
/**
* Internal dependencies
*/
import analytics from 'lib/analytics';
import userSettings from 'lib/user-settings';
import { setDocumentHeadTitle as setTitle } from 'state/document-head/actions';
imp... |
app/components/DisplayBox.js | flyingkrai/react-flux-blogging-app | import moment from 'moment';
import React from 'react';
import { Link } from 'react-router';
import { avatar } from '../utils';
const DisplayBox = (props) => {
const user = props.user;
const timestamp = props.timestamp ?
` ${String.fromCharCode(8226)} ${moment(props.timestamp).fromNow()}` : '';
return... |
app/javascript/mastodon/main.js | primenumber/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { setupBrowserNotifications } from './actions/notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = requ... |
src/PartialTable.js | carlosrocha/react-data-components | import React, { Component } from 'react';
import Table from './Table';
import Pagination from './Pagination';
export default class PartialTable extends Component {
render() {
const {
onFilter,
onPageSizeChange,
onPageNumberChange,
onSort,
pageLengthOptions,
columns,
keys... |
src/Containers/Flight/FlightDetails/FlightDetails.js | rahulp959/airstats.web | import React from 'react'
class FlightDetails extends React.Component {
render () {
return (
<div className='flightdetails'>
<div className='dividedtitle'>Flight Times</div>
<table>
<thead>
<tr>
<th> </th>
<th>Departure</th>
... |
docs/app/Examples/views/Statistic/Types/StatisticExampleGroups.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ label: 'Faves', value: '22' },
{ label: 'Views', value: '31,200' },
{ label: 'Members', value: '22' },
]
const StatisticExampleGroups = () => (
<div>
<Statistic.Group>
<Statistic>
<Statistic.Value>22</S... |
component-tools-webapp/src/main/frontend/src/index.js | chmyga/component-runtime | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
frontend/src/Artist/Editor/Organize/OrganizeArtistModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import OrganizeArtistModalContentConnector from './OrganizeArtistModalContentConnector';
function OrganizeArtistModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (
... |
blueocean-material-icons/src/js/components/svg-icons/editor/insert-comment.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertComment.displayName = 'EditorInsertC... |
project/src/scenes/Admin/Members/components/MemberCard/MemberCard.js | strues/boldr | /* @flow */
import React from 'react';
import styled from 'styled-components';
import Button from '@boldr/ui/Button';
import Avatar from '@boldr/ui/Avatar';
import type { UserType } from '../../../../../types/boldr';
const MemListItem = styled.li`
width: 100%;
display: flex;
margin-top: 10px;
padding: 20px;
... |
src/components/post/added-tags.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
server/src/main/routes/product.js | madureira/hybrid-frontend | import express from 'express';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import DataProvider from '../providers/data-provider';
import Product from '../components/product.react';
const router = express.Router();
const ProductApp = React.createFactory(Product);
router.get('/product/:... |
fields/types/color/ColorField.js | belafontestudio/keystone | import ColorPicker from '@jedwatson/react-color';
import Field from '../Field';
import React from 'react';
import { FormInput, InputGroup } from 'elemental';
const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches'];
const TRANSPARENT_BG =
`<svg width="24" height="24" viewBox=... |
public/js/cat_source/ui.core.js | matecat/MateCat | import _ from 'lodash'
import Cookies from 'js-cookie'
import ReactDOM from 'react-dom'
import React from 'react'
import CatToolActions from './es6/actions/CatToolActions'
import CommonUtils from './es6/utils/commonUtils'
// import SegmentsContainer from './es6/components/segments/SegmentsContainer'
import SegmentsCon... |
packages/base-shell/src/providers/Config/Provider.js | TarikHuber/react-most-wanted | import React from 'react'
import Context from './Context'
const Provider = ({ appConfig, children }) => {
return <Context.Provider value={{ appConfig }}>{children}</Context.Provider>
}
export default Provider
|
stalk-messenger/app/components/common/S5EmptyRow.js | JohnKim/stalk.messenger |
/*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
View,
Image,
Text,
StyleSheet
} from 'react-native';
import S5Paragraph from './S5Paragraph';
export default class S5EmptyRow extends Component {
static propTypes = {
title: React.PropTypes.string,
image: Rea... |
app/containers/home.js | UsainBloot/notekeeper | import React, { Component } from 'react';
import Home from '../components/home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
web/old_src/windows/ControlPanel.js | vmprobe/vmprobe | import React from 'react';
import PureComponent from 'react-pure-render/component';
import {Table, Column, Cell} from 'fixed-data-table';
export class ControlPanel extends PureComponent {
static defaultProps = {
windowTitle: <span>vm<span style={{color:'#d40000'}}>probe</span></span>,
defaultWidth: 150,
... |
www/frontend/src/components/Welware.js | lokiiart/upali-mobile | import React from 'react';
import { Link } from 'react-router';
const Welware = () => (
<div className="product sub-section section">
<img src="dist/images/welware_1.jpg" />
<p className="pr content">
世界卫生组织把每年的10月28日设为男性健康日。在中国,男性健
康问题尽管日益突出,但是却长期受到社会大众的忽视,不仅是身边的女性伴侣,就连男人自身对此也缺乏足够的... |
src/js/components/Grommet/stories/Background.js | grommet/grommet | import React from 'react';
import { grommet, Grommet, Box, Text } from 'grommet';
import { hpe } from 'grommet-theme-hpe';
export const Background = () => {
const themeColor = 'background-back';
const hexValue = '#DCD0FF';
const cssColor = 'gold';
return (
<Box gap="medium">
<Grommet>
<Box p... |
frontend/src/components/common/pinIcon.js | unicef/un-partner-portal | /* eslint-disable max-len */
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const PinIcon = props => (
<SvgIcon viewBox="0 -5 10 20" {...props} >
<path d="M0.5,8.5 L0,8.5 L-1.11022302e-16,8.5 C-0.276142375,8.5 -0.5,8.72385763 -0.5,9 C-0.776142375,9 -1,9.22385763 -1,9.5 C-1,9.77614237 -0.... |
src/components/Datapoints.js | simplebee/everyday | import React, { Component } from 'react';
import { connect } from 'react-redux';
import propTypes from 'prop-types';
import { List } from 'antd';
import { habitSelector, datapointSelector } from '../selectors';
import { fetchHabit } from '../actions/habitActions';
import {
createDatapoint,
updateDatapoint,
delet... |
src/app/internal/pcard_compliance/PCardDaysCirclePack.js | cityofasheville/simplicity2 | import React from 'react';
import { NetworkFrame, OrdinalFrame } from 'semiotic';
const colorHash = {
'0-30 days': '#4575b4',
'31-60 days': '#fdae61',
'61-90 days': '#f46d43',
'>90 days': '#d73027',
};
const getColor = (d) => {
if (d.over_90 > 0) {
return '#d73027';
}
if (d.under_90 > 0) {
retur... |
src/app/common/UserInterface/components/Tab.js | toxzilla/app | import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {classNames} from 'react-dom-stylesheet';
import Control from './Control';
import Icon from './Icon';
import Text from './Text';
export default class Tab extends Control {
static displayName = 'Tab'
static propTypes = {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.