path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/app/components/pages/get-started/Usage.js | mtsandeep/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import usageText from './usage.md';
const Usage = () => (
<div>
<Title render={(previousTitle) => `Usage - ${previousTitle}`} />
<MarkdownElement text={usageText} />
</div>
);
export... |
components/Story/StoryLoader.js | DavidBonnemaison/Cyoa | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { decode } from 'base-64';
import { uploadData } from './actions';
class StoryLoader extends React.Component {
_getStoryFile = e => {
const reader = new FileReader();
const file = e.t... |
v2/js/ClientApp.js | dn0912/frontentmasters_react_v2 | import React from 'react'
import ReactDOM from 'react-dom'
import MyTitle from './MyTitle'
var div = React.DOM.div
var MyTitleFactory = React.createFactory(MyTitle)
var MyFirstComponent = React.createClass({
render: function () {
return (
div(null,
MyTitleFactory({title: 'props are the best', col... |
src/components/ConnectedInput.js | mzvonar/modular-redux-form | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import getIn from '@mzvonar/getin';
import isEvent from './../utils/isEvent';
import getPath from './../utils/getPath';
import deepEqual from 'react-fast-compare';
function deleteChildren(object, children) {
let del... |
app/components/faq/Faqcontent/index.js | vkurzweg/aloha | /**
*
* Faqcontent
*
*/
import React from 'react';
// import styled from 'styled-components';
import { Link } from 'react-router';
import Q from './Q';
import A from './A';
import FAQ from 'data/Faq';
function Faqcontent() {
const office = 'http://res.cloudinary.com/kurzweg/image/upload/v1494631994/office_tuvew1.p... |
src/components/ConnectionStatus.js | hedwig-project/dashboard | import React from 'react'
import PropTypes from 'prop-types'
import FontIcon from 'material-ui/FontIcon'
import IconButton from 'material-ui/IconButton'
/* eslint-disable no-nested-ternary */
class ConnectionStatus extends React.Component {
static propTypes = {
connected: PropTypes.bool.isRequired,
morpheusC... |
examples/todos/components/App.js | doerme/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
src/components/ExperienceSearch/index.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Helmet from 'react-helmet';
import R from 'ramda';
import qs from 'qs';
import { compose, withHandlers, setStatic, lifecycle } from 'recompose';
import ReactGA from 'react-ga'... |
jekyll-admin/src/components/Splitter.js | mparlak/mparlak.github.io | import React from 'react';
const Splitter = () => <div className="splitter" />;
export default Splitter;
|
node_modules/react-bootstrap/es/SplitToggle.js | FoxMessenger/nyt-react | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
src/js/containers/ItemListContainer.js | pazguille/react-meli | /**
* Module dependencies
*/
import React from 'react';
import SearchBox from '../components/SearchBox';
import ItemList from '../components/ItemList';
/**
* ItemListContainer
*/
class ItemListContainer extends React.Component {
constructor(props) {
super(props);
this.state = { query: this.props.query ||... |
src/App.js | jollyromp/Charplay | import React, { Component } from 'react';
import './App.css';
import { Switch, Route } from 'react-router-dom'
import RoomListContainer from './room/RoomListContainer';
import RoomContainer from './room/RoomContainer';
import RegisterContainer from './modal/RegisterContainer';
class App extends Component {
render... |
docs/src/examples/views/Comment/States/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const CommentTypes = () => (
<ExampleSection title='States'>
<ComponentExample
title='Collapsed'
description='Commen... |
src/inner-slider.js | hangarlabs/hangar-react-slick | 'use strict';
import React from 'react';
import EventHandlersMixin from './mixins/event-handlers';
import HelpersMixin from './mixins/helpers';
import initialState from './initial-state';
import defaultProps from './default-props';
import classnames from 'classnames';
import assign from 'object-assign';
import {Track... |
app/components/Decrement/Decrement.js | djizco/boilerplate-react-native | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-native';
export default function Decrement({ decrement }) {
return (
<Button
title="Decrement"
onPress={decrement} />
);
}
Decrement.propTypes = {
decrement: PropTypes.func.isRequired,
};
|
examples/grahpql/src/main.js | one-market/appson | import React from 'react'
import { appson } from '@onemarket/appson'
import {
ApolloClient,
createNetworkInterface,
ApolloProvider,
} from 'react-apollo'
import Simple from './'
const client = new ApolloClient({
networkInterface: createNetworkInterface({
uri: 'https://api.graph.cool/simple/v1/cj7tmy5j112wl... |
components/Deck/DeckStatsPage.js | slidewiki/slidewiki-platform | import React from 'react';
import { NavLink } from 'fluxible-router';
import { Grid, Divider, Button, Header, Image, Icon, Item, Label, Menu, Segment, Container } from 'semantic-ui-react';
import { connectToStores } from 'fluxible-addons-react';
import DeckPageStore from '../../stores/DeckPageStore';
import DeckViewSt... |
docs/app/Components/Logo/Logo.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image } from 'src'
const Logo = (props) => <Image {...props} src={__BASE__ + 'logo.png'} />
Logo.propTypes = Image.propTypes
export default Logo
|
docs/app/Examples/elements/Image/Types/ImageExampleHref.js | ben174/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const src = 'http://semantic-ui.com/images/wireframe/image-text.png'
const ImageExampleHref = () => (
<Image src={src} size='small' href='http://google.com' target='_blank' />
)
export default ImageExampleHref
|
packages/benchmarks/src/implementations/inline-styles/Dot.js | necolas/react-native-web | 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: `${size / 2}px`,
marginLeft: `${x}... |
packages/react/src/components/UIShell/HeaderSideNavItems.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { usePrefix } from '../../internal/usePref... |
views/prompt.js | smaty1/black-screen | import _ from 'lodash';
import React from 'react';
import Autocomplete from './autocomplete';
import DecorationToggle from './decoration_toggle';
// TODO: Make sure we only update the view when the model changes.
export default React.createClass({
getInitialState() {
return {
suggestions: [],
... |
src/components/GroupStage/GroupStage.js | anvk/eurocup2016-bestpicks | import React, { Component } from 'react';
import { getFlag } from '../../constants/defaultTeams.js';
import { DRAW, getLabel } from '../../reducers/match.js';
class GroupStageRow extends Component {
render() {
const {
matchId,
team1,
team2,
flag1,
flag2,
goal1,
goal2,
... |
js/jqwidgets/demos/react/app/datatable/lockrow/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
class App extends React.Component {
componentDidMount() {
this.refs.myDataTable.on('bindingComplete', () => {
this.refs.myDataTable.beginUpdate();
... |
src/icons/Google.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
const Google = React.forwardRef(function Google(props, ref) {
const { size = 256, ...other ... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/CoreServiceWebView/ServiceLoadErrorCover.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import ServiceInformationCover from '../ServiceInformationCover'
import { Button } from '@material-ui/core'
import { withStyles } from '@material-ui/core/styles'
import RefreshIcon from '@material-ui/i... |
docs/src/app/components/pages/components/Paper/ExampleRounded.js | ruifortes/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleRounded = () => (
<div>
<Paper style={style} zDepth={1} rounded={false} />
<Paper style={style} zDepth={2} round... |
client/components/admin/index.js | maodouio/meteor-react-redux-base | import React from 'react';
export default (props) => (
<div className="container">
<div className="row">
<div className="col-xs-12">
<h4>核心配置</h4>
<form onSubmit={props.saveCoreConfigs}>
<div className="form-group">
<label>网站名称</label>
<input type="text" na... |
examples/huge-apps/routes/Course/components/Nav.js | kenwheeler/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
js/components/login/index.js | bsisic/Mobilux |
import React, { Component } from 'react';
import { Image } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Content, InputGroup, Input, Button, Icon, View, Text} from 'native-base';
var {FBLogin, FBLoginManager} = require(... |
src/components/Header.js | gramulos/EpsilonGroups | import React, { Component } from 'react';
import Paper from 'material-ui/lib/paper';
import './Header.less';
export default class Header extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="eg-header">
<div className="con... |
app.js | anaplaninc/MyComponent | /*!
* React Component Starter Kit
* https://github.com/kriasoft/react-component-starter
* Copyright (c) KriaSoft, LLC. All rights reserved. See LICENSE.txt
*/
import React from 'react';
import Component from './src';
React.render(<Component />, document.getElementById('component'));
|
ui/src/Layout.js | jcampanell-cablelabs/lora-app-server | import React, { Component } from 'react';
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import Errors from "./components/Errors";
import dispatcher from "./dispatcher";
class Layout extends Component {
onClick() {
dispatcher.dispatch({
type: "BODY_CLICK",
});
}
... |
examples/modules/auth/index.js | stackscz/re-app | import React from 'react';
import Example from 're-app-examples/Example';
import App from './App';
const codeFiles = [
{
name: './App.js',
content: require('!!raw!./App.js'),
description: 'App using api module',
},
{
name: './LoginForm.js',
content: require('!!raw!./LoginForm.js'),
description: 'Login ... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-select-multiple.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import $ from 'jquery';
import {BaseMixin, ElementaryMixin, ContentMixin, Tools} from './../common/common.js';
import {Span, Div, Button, Glyphicon, Backdrop} from './../bricks/bricks.js';
import './select-multiple.less';
export default React.createClass({
mixins: [
BaseMixin,
El... |
app/javascript/mastodon/features/list_editor/index.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
ide/static/js/index.js | Cloud-CV/IDE |
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, hashHistory } from 'react-router';
import App from './app.js';
import '../css/style.css';
render(
<Router history={hashHistory}>
<Route path="/" component={App} />
</Router>, document.getElementById('app')
);
|
app/containers/DevTools.js | tobycyanide/felony | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
>
<LogMonitor />
</Do... |
js/src/components/Controls/Embedded/index.js | understory-dev/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Entity, AtomicBlockUtils } from 'draft-js';
import LayoutComponent from './Component';
class Embedded extends Component {
static propTypes: Object = {
editorState: PropTypes.object.isRequired,
onChange: Prop... |
app/components/IssueIcon/index.js | blockfs/frontend-react | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/App.js | aldeste/WoopWap | import React, { Component } from 'react';
import Header from './components/Header';
import Footer from './components/Footer';
import AddDebt from './components/AddDebt';
import ViewItem from './components/ViewItem';
import Home from './components/Home';
import data from './dummydata';
import { getDebts, postDebt, destr... |
src/entypo/EmojiSad.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--EmojiSad';
let EntypoEmojiSad = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10.001,0.4C4.698,0.4,0.4,4.698,0.4,10c0,5.303,4.298,9.601,9.601,9.601c5.301,0,9.6-4.298,9.6-9.60... |
examples/test-cra/src/App.js | enjoylife/storybook | import React from 'react';
import logo from './logo.svg';
import './App.css';
const App = () =>
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
</div>
<p className="App-intro">
To get started, edit <code>src... |
packages/vulcan-core/lib/modules/containers/withRemove.js | dominictracey/Telescope | /*
Generic mutation wrapper to remove a document from a collection.
Sample mutation:
mutation moviesRemove($documentId: String) {
moviesEdit(documentId: $documentId) {
...MoviesRemoveFormFragment
}
}
Arguments:
- documentId: the id of the document to remove
Child Props:
- removeMutation(... |
examples/js/remote/remote-insert-row.js | echaouchna/react-bootstrap-tab | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteInsertRow extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
remote={ true... |
shareApp/client/app.js | NucleusIo/HealthGenesis | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import Router from './router.jsx';
Meteor.startup(function () {
render(<Router />, document.getElementById('render-target'));
});
|
step-capstone/src/components/Utilities/PreferenceForm.js | googleinterns/step98-2020 | import React from 'react'
import {
Grid,
Typography,
Box,
FormControl,
FormControlLabel,
MenuItem,
InputLabel,
Select,
Slider,
FormLabel,
FormGroup,
Checkbox
} from "@material-ui/core"
import FoodTimeForm from "./FoodTimeForm"
import DayStartEndPref from "./DayStartEndPre... |
app/containers/App/index.js | warrend/warrend.github.io | /**
*
* 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)
*
*/
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import HomePage from 'containers/HomePage/Loadable';
import NotFoun... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleDescription.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleDescription = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown... |
packages/reactor-kitchensink/src/examples/Charts/Line/Spline/Spline.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import storeData from './storeData';
export default class Spline extends Component {
store = Ext.create('Ext.data.Store', {
... |
js/jqwidgets/demos/react/app/editor/popupeditor/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js';
class App extends React.Component {
component... |
src/components/Keyboard/character.js | CultuurConnect/bieblo-client | import React from 'react'
const renderCharacterKey = (character, value, onUpdateValue, animated) => {
const onClick = () => {
onUpdateValue(value ? value + character : character)
}
const animations = ['bounceInDown', 'bounceInUp', 'bounceInLeft', 'bounceInRight']
const animation = animated ? `animated ${a... |
blueocean-material-icons/src/js/components/svg-icons/hardware/tablet-mac.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareTabletMac = (props) => (
<SvgIcon {...props}>
<path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5... |
src/media/js/addon/components/slugChange.js | diox/marketplace-content-tools | import React from 'react';
import ConfirmButton from '../../site/components/confirmButton';
/**
* Controls to change an add-on slug.
*
* isChange denotes when the user has begun the process of changing the slug.
* isProcessing denotes when the API action is underway.
*/
export default class SlugChange extends R... |
newclient/scripts/components/editor/editor-button/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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, or (at your ... |
src/transitions/scroll-transition.js | kenwheeler/nuka-carousel | import React from 'react';
import PropTypes from 'prop-types';
import {
getSlideHeight,
getAlignmentOffset
} from '../utilities/style-utilities';
import {
getSlideDirection,
handleSelfFocus,
getSlideClassName,
isFullyVisible
} from '../utilities/utilities';
const MIN_ZOOM_SCALE = 0;
const MAX_ZOOM_SCALE = ... |
example/index.android.js | dersoncheng/react_native_actionbar | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class example extends Component {
render() {
return (
<View style={styles.container}>
<Text style={st... |
src/esm/components/graphics/icons/title-3-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var Title3Icon = function Title3Icon(_ref) {
var color = _re... |
fields/types/datetime/DatetimeField.js | lastjune/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
src/atoms/archive-list-item/component-test.js | dsmjs/components | import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import sinon from 'sinon';
import any from '@travi/any';
import * as formatters from '../../formatters';
import ArchiveListItem from '.';
suite('archive list-item', () => {
let sandbox;
setup(() => {
sandbox = sinon.create... |
src/components/Application.js | IUnknown68/karma-live-reporter | //==============================================================================
import React, { Component } from 'react';
import dispatcher from 'Dispatcher';
import classNames from 'classnames';
import attachListener from 'attachListener';
import {
CONNECT, CONFIG, DISCONNECT,
BROWSER_REGISTER, BROWSER_START, CUR... |
src/components/Organism/OrganismListFilters/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import FiltersPanel from 'components/FiltersPanel';
import OrganismDBFilter from './OrganismDBFilter';
// import LengthFilter from './LengthFilter';
// import TaxonomyFilter from './TaxonomyFilter';
const OrganismListFilters = () => (
<FiltersPanel>
<OrganismDBFilter label="O... |
src/containers/About.js | MMMalik/react-show-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ContentBox from '../components/ContentBox';
import withFetch from '../hoc/withFetch';
import User from '../components/github/User';
class About extends Component {
static propTypes = {
data: PropTypes.object
}
sta... |
src/svg-icons/action/view-array.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewArray = (props) => (
<SvgIcon {...props}>
<path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/>
</SvgIcon>
);
ActionViewArray = pure(ActionViewArray);
ActionViewArray.displayName = 'ActionViewA... |
ui/src/icons/SmartPlaylist.js | cloudsonic/sonic-server | import React from 'react'
import SvgIcon from '@material-ui/core/SvgIcon'
const SmartPlaylist = (props) => {
return (
<SvgIcon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path d="M 5.96875 2 C 5.83675 1.999 5.73275 2.09175 5.71875 2.21875 L 5.5625 3.53125 C 5.2265 3.66225 4.93725 3.... |
tests/site1/code/components/component1.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The Component1 component for the header
*/
const Component1 = ({
_ID,
_self,
_parents,
_body,
_pages,
_storeSet,
_store,
}) => {
_storeSet({ [`item-${ _ID }`]: _pages[ _ID ].title }); // getting the title from the store (to test the store)... |
src/icons/IosEmail.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosEmail extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="448,384 448,141.8 316.9,241.6 385,319 383,321 304.1,251.4 256,288 207.9,251.4 129,321 127,319 195,241.6
... |
Realization/frontend/czechidm-core/src/content/monitoring/MonitoringResultTable.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import * as Domain from '../../domain';
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import Co... |
pkg/users/expiration-dialogs.js | garrett/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2020 Red Hat, Inc.
*
* Cockpit 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 2.1 of the License, or
* (at your option) any l... |
js/screens/debug.js | fxdemolisher/newscats | import React from 'react'
import {Alert, NativeModules, ScrollView, StyleSheet, Text, View} from 'react-native'
import {connect} from 'react-redux'
import {Images} from '/images'
import {Styles} from '/styles'
import {BaseComponent, ImageButton} from '/widgets'
const styles = {
container: {
backgroundColo... |
components/connected/setting/index.js | marrus-sh/mastodon-go | // <ConnectedSetting>
// ==================
// This component links a `<CommonInput>` or a `<CommonToggle>` with a
// setting that is kept in the redux store.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React ... |
src/pages/Assets.js | azedo/freelancer-calculator | // pages/Assets.js
// main imports
import React, { Component } from 'react';
import DocumentTitle from 'react-document-title';
class Assets extends Component {
render() {
return (
<DocumentTitle title='Assets - FreelancerCalculator'>
{/* add the children components here with props */}
{Rea... |
tools/public-components.js | PeterDaveHello/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function (item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
component-starter-server/src/main/frontend/src/app/components/FacetSelector/FacetSelector.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... |
app/jsx/conditional_release_stats/app.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - 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... |
app/src/pages/NotFoundPage/index.js | JaySmartwave/palace-bot-sw | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
const NotFound = () => (
<div className={styles.container}>
<h1 className={styles.header}>Not Found</h1>
</div>
);
export default cssModules(NotFound, styles);
|
src/containers/ThemeSwitcher/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Actions from '../../redux/themeSwitcher/actions.js';
import Switcher from '../../components/themeSwitcher/themeSwitcher';
import LanguageSwitcher from '../LanguageSwitcher';
import Themes from './config';
import bucketSVG from '../.... |
src/svg-icons/notification/mms.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
src/pages/404.js | yen223/yens-blog | import React from 'react'
const NotFoundPage = () =>
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
export default NotFoundPage
|
src/modules/popup/index.js | tegon/traktflix | import '../../assets';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import React from 'react';
import ReactDOM from 'react-dom';
import Rollbar from '../../class/Rollbar';
import App from '../../class/popup/App';
// noinspection JSIgnoredPromiseFromCall
Rollbar.init();
ReactDOM.render((
<Router... |
src/containers/StudentPage.js | merrettr/school-ui | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { fetchStudents, invalidateStudents } from '../actions';
import List from '../components/List';
import Student from '../components/Student';
import Spinner from '../components/Spinner';
im... |
docs/app/Examples/elements/Icon/Variations/IconExampleFlipped.js | clemensw/stardust | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleFlipped = () => (
<div>
<Icon flipped='horizontally' name='cloud' />
<Icon flipped='vertically' name='cloud' />
</div>
)
export default IconExampleFlipped
|
src/routes.js | lockys/Angelcrunch-react | import React from 'react';
import {Redirect, Route} from 'react-router';
import BaseDom from 'app/baseDom';
import projectDetails from 'app/project/detail';
import projectList from 'app/project/list';
import Login from 'app/login';
import '../static/css/wapsite/base-css.styl';
const routes = (
<Route name='dombase... |
app/components/Gallery.js | AlmightyLobsters/CanSat2017.App | import React from 'react';
import { connect } from 'react-redux';
const Gallery = ({ route: { images } }) => (
<div id="gallery">
<h1 style={{marginLeft: '12px'}}>Gallery</h1>
{images.map((imageName, index) => <img key={index} src={`./resources/images/gallery/${imageName}`} />)}
</div>
);
expo... |
client/src/components/document/DocumentUpdate.js | FlevianK/cp2-document-management-system | import React from 'react';
import { connect } from 'react-redux';
import { Link, browserHistory } from 'react-router';
import { bindActionCreators } from 'redux';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThem... |
src/components/editor/keyValueListEditor.js | auth0/webtask-widget | import React from 'react';
import 'styles/secretsEditor.less';
export default class A0KeyValueListEditor extends React.Component {
constructor(props) {
super(props);
this.keyRefs = [];
this.valueRefs = [];
this.state = {
secrets: []
};
}
componentWi... |
newclient/scripts/components/admin/pi-search-box/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
src/client/startup.js | tthordarson/runesmith | import React from 'react';
import { hydrate } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import App from './components/app';
import rootReducer from './state/reducers/root';
// Grab the state from a global variable in... |
newtab/src/router.js | wq1977/pexelbg | import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';
function RouterConfig({ history }) {
return (
<Router history={history}>
<Route path="/" component={IndexPage} />
</Router>
);
}
export default RouterConfig;
|
demo/Chip.js | szchenghuang/react-mdui | 'use strict';
//#############################################################################
// Stylesheets.
//#############################################################################
//#############################################################################
// Library includes.
//#########################... |
server/sonar-web/src/main/js/apps/quality-gates/components/Details.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... |
fixtures/fiber-debugger/src/index.js | jameszhan/react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
examples/auth/src/components/CreateTodoButton.js | lore/lore | import React from 'react';
import createReactClass from 'create-react-class';
import UserCanCreateTodo from '../decorators/auth/UserCanCreateTodo';
export default UserCanCreateTodo(createReactClass({
displayName: 'CreateTodoButton',
getStyles: function() {
return {
createButton: {
position: 'abs... |
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js | joeyparrish/cdnjs | /*! ReactInstantSearch 4.0.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
src/header/Header.js | sk1981/react-header | import React from 'react';
import ResizableHeader from './ResizableHeader';
import ApplicationSizeCalculator from '../events/ApplicationSizeCalculator';
/**
* Top level header element which styles a basic header
*
* Consists of Logo, Navigation Bar and any other item
*/
const Header = (props) => {
return (
... |
frontend/src/components/icons/Close.js | webrecorder/webrecorder | import React from 'react';
function Close() {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8">
<path d="M4 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-1.5 1.78l1.5 1.5 1.5-1.5.72.72-1.5 1.5 1.5 1.5-.72.72-1.5-1.5-1.5 1.5-.72-.72 1.5-1.5-1.5-1.5.72-.72z" ... |
examples/indeterminateComponent/src/index.js | gaearon/react-hot-loader | import React from 'react';
import { render } from 'react-dom';
import App from './App';
const root = document.createElement('div');
document.body.appendChild(root);
render(<App />, root);
|
app/components/transactions/TypeInput.js | jpsierens/budget | // @flow
import React from 'react';
type Props = {
value: String,
type: String,
onInputChange: () => void
}
const TypeInput = ({ onInputChange, type, value } : Props) =>
<div>
<label style={{ display: 'inline' }}>{ type }?</label>
<input
type="radio"
name="type"... |
src/svg-icons/device/signal-cellular-4-bar.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.