path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/src/components/Graph/Graph.js | civa86/web-synth | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import cytoscape from 'cytoscape';
import { ActionHandler } from '../../components/ActionHandler';
//Graph Service
import GraphService from './GraphService'
const graph = GraphService(cytoscape, window);
class Graph extends Component {
... |
tests/components/sankey-tests.js | Apercu/react-vis | import test from 'tape';
import React from 'react';
import {mount} from 'enzyme';
import Sankey from 'sankey';
import BasicSankey from '../../showcase/sankey/basic';
import VoronoiSankey from '../../showcase/sankey/voronoi';
import EnergySankey from '../../showcase/sankey/energy-sankey';
const SANKEY_PROPS = {
node... |
es/components/Video/VideoMouseMoveCapture.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
var disableCursor = {
cursor: 'none'
};
var enableCursor = {};
var MouseMoveCapture = function MouseMoveCapture(_ref) {
var active = _ref.active,
onMouseMove = _ref.onMouseMove;
return _jsx... |
components/ImageList/ImageItem/index.js | samuelngs/px |
import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native';
import ImageInfo from './ImageInfo';
import ImageDisplay from './ImageDisplay';
import ImageActionBar from './ImageActionBar';
export default class ImageItem extends Component {
static defaultProps = {
host: '',
rou... |
web/src/index.js | rferromoreno/NYTSearch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
examples/api/api_custom.js | DigitalGlobe/jetset | import React from 'react';
import { apiDecorator } from '../../src';
const doAsyncStuff = data => new Promise( resolve =>
setTimeout(() =>
resolve( data.map( item => ({ ...item, foo: 'bar' }) ) )
)
);
export const users = apiDecorator({
url: 'https://jsonplaceholder.typicode.com',
users: {
routes: {... |
src/react/LogMonitorButton.js | wescravens/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
spec/javascripts/jsx/theme_editor/ThemeEditorModalSpec.js | djbender/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... |
src/widgets/WeatherWidget.js | Timvdv/flexible-dashboard | /**
*
* !! This is actually a 'app' because it's independent from the settings..
* TODO: Implement a system that seperates these two types
*
*/
var Promise = require('es6-promise').Promise;
import React, { Component } from 'react';
/**
* The weather widget gets the temperature from Buienradar.nl in XML format
... |
packages/react/src/components/atoms/text/PublishState/PublishState.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import PublishStateDocs from './PublishState.md';
import PublishState from './index';
export const PublishStateExample = (args) => <PublishState {...args} />;
PublishStateExample.storyName = 'Default';
PublishStateExample.args = {
text:... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/svg-icons/image/assistant-photo.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistantPhoto = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ImageAssistantPhoto = pure(ImageAssistantPhoto);
ImageAssistantPhoto.displayName = 'Image... |
app/components/DownloadedGames/DownloadedGames.js | cdiezmoran/playgrounds-desktop | // @flow
import React, { Component } from 'react';
import type { UserGame } from '../../utils/globalTypes';
import UserGameList from './UserGameList';
class DownloadedGames extends Component {
props: {
games: UserGame[]
}
render() {
const { games } = this.props;
return (
<div className="con... |
stories/components/form/formInput/index.js | miaket/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormInput from 'shared/components/form/formInput/formInput';
storiesOf('shared/components/form/formInput', module)
.add('Default input', () => (
<FormInput
label="Input"
... |
blueocean-material-icons/src/js/components/svg-icons/device/usb.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.2... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/containers/ActorsTreePage/ActorsTreePage.js | KlusterKite/KlusterKite | import React from 'react'
import Relay from 'react-relay'
import delay from 'lodash/delay'
import ActorsTreeButtons from '../../components/ActorsTree/ActorsTreeButtons';
import ActorsTreeFlat from '../../components/ActorsTree/ActorsTreeFlat';
import InitiateScanMutation from './mutations/InitiateScanMutation'
class ... |
lib/client/app/scripts/index.js | cofoundervp/Kaptain | import React from 'react';
import ReactDOM from 'react-dom';
import {App} from './containers';
ReactDOM.render(<App />, document.getElementById('main'));
|
Console/app/node_modules/antd/es/tooltip/index.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
docs/app/Examples/elements/List/Variations/ListExampleVeryRelaxed.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Image, List } from 'semantic-ui-react'
const ListExampleVeryRelaxed = () => (
<List relaxed='very'>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' />
<List.Content>
<List.Header as='a'>Daniel Louise</List.Header>
... |
src/DataTable.js | jpdelatorre/react-dtable | import React from 'react';
class DataTable extends React.Component {
constructor(props) {
super(props);
this.columns = [];
this.filters = {};
this.sortOrder = {};
this.state = {
data: props.data,
displayData: props.data,
};
this.filterColumn = this.filterColumn.bind(this);
... |
src/utils.js | edwellbrook/react-typewriter | import React from 'react';
// Enclosing scope for local state variables.
export var styleComponentSubstring = (() => {
let _start;
let _end;
let _styles;
let _index;
// Will deep clone the component tree, wrapping any text within
// the start/end with a styled span.
function alterComponent(component) {... |
src/components/planviewer/index.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import GraphProvider from '../../containers/graphprovider';
import Graph from '../../components/graph';
import NameList from '../../components/namelist';
import SolutionList fr... |
src/components/features_slide3.js | joakimremler/horse-project | import React, { Component } from 'react';
import SwipeableViews from 'react-swipeable-views';
export default class FeaturesSlide3 extends Component {
render() {
return (
<div className="features-main container">
<img className="features-overlay" src="./data/slider_right.png" alt="Time tracker... |
src/index.js | rajington/vesper-trello | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
mealbotui/src/js/components/Home.js | qjflores/mealbot | import React, { Component } from 'react';
import {About} from './About';
import {ProdctFeatures} from './ProdctFeatures';
import {PoweredBy} from './PoweredBy';
import './../../css/Home.css'
export class Home extends Component {
render() {
return (
<div className="Home-component">
<About />
<ProdctFeatur... |
src/screens/App/screens/Zen/components/index.js | enesTufekci/react-clear-starter-kit | /* @flow */
import React, { Component } from 'react';
import PropType from 'prop-types';
class Zen extends Component {
componentDidMount() {
if (this.props.zen === '') {
this.props.fetchZen();
}
}
render() {
return (
<div className="zen-container">
<div className="zen"> {this.pro... |
src/routes/react-routes.js | Capgemini/mesos-ui | /*jshint esnext: true */
import React from 'react';
import { Route, DefaultRoute, NotFoundRoute } from 'react-router';
import NotFound from '../pages/NotFound';
import Dashboard from '../pages/Dashboard';
import Nodes from '../pages/Nodes';
import Tasks from '../pages/Tasks';
import Frameworks from '../pages/Framework... |
js/components/listSwipe/index.js | HomelandGvarim/FE-Phone | import React, { Component } from 'react';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem } from 'native-base';
import styles from './styles';
const datas = [
{
route: 'BasicListSwipe',
text: 'Single SwipeRow',
},
{
route: 'MultiListSwipe',
text: 'Multiple... |
demos/toggles/demos/radioOn.js | isogon/styled-mdl-website | import React from 'react'
import { Radio } from 'styled-mdl'
const demo = () => (
<Radio name="options" value="1" label="First" defaultChecked />
)
const caption = 'Radio On'
const code = '<Radio name="options" value="1" label="First" defaultChecked />'
export default { demo, caption, code }
|
fields/components/columns/CloudinaryImageSummary.js | tony2cssc/keystone | import React from 'react';
const IMAGE_SIZE = 18;
const linkStyle = {
marginRight: 8,
};
const boxStyle = {
borderRadius: 3,
display: 'inline-block',
height: IMAGE_SIZE,
overflow: 'hidden',
verticalAlign: 'middle',
width: IMAGE_SIZE,
};
const imageStyle = {
display: 'block',
height: IMAGE_SIZE,
left: '50%',... |
Realization/frontend/czechidm-core/src/components/advanced/RichTextArea/RichTextArea.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Joi from 'joi';
import { Editor } from 'react-draft-wysiwyg';
import { EditorState, ContentState, convertFromHTML, DefaultDraftBlockRenderMap, getSafeBodyFromHTML } from 'draft-js';
import { stateToHTML } from 'dr... |
src/components/common/ColorWrap.js | Scratch-it/react-color | 'use strict' /* @flow */
import React from 'react'
import merge from 'merge'
import isPlainObject from 'lodash.isplainobject'
import debounce from 'lodash.debounce'
import color from '../../helpers/color'
import shallowCompare from 'react-addons-shallow-compare'
export const ColorWrap = (Picker) => {
class ColorPic... |
src/components/programs/inshelter/PrimaryTabs/Tutoring.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
const Tutoring = () => {
return (
<React.Fragment>
<h3>Tutoring</h3>
<p>
With an emphasis on education and support in academic achievement, our
one on one tutoring will bring in volunteers of all ages, whether it is
a math teacher or high school chem... |
fields/types/location/LocationFilter.js | xyzteam2016/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_O... |
src/routes/BlogRoute/components/BlogItemsPage.js | easingthemes/easingthemes.github.io | import React from 'react';
import Blog from '../../../components/Blog';
export const BlogItemsPage = React.createClass({
componentWillMount () {
const category = 'Blog';
if (!this.props.children) {
this.props.fetchBlogItems(category);
}
},
render () {
const posts = this.props.posts || {};
if (this.pr... |
examples/todomvc/index.js | dminkovsky/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/components/WeatherIcon/WeatherIcon.js | maximgatilin/weathernow | import React from 'react';
import PropTypes from 'prop-types';
import SunIcon from './../icons/SunIcon';
import SunCloudsIcon from './../icons/SunCloudsIcon';
import MoonIcon from './../icons/MoonIcon';
import MoonCloudsIcon from './../icons/MoonCloudsIcon';
import CloudsIcon from './../icons/CloudsIcon';
import RainI... |
packages/icons/src/md/image/Camera.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCamera(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52... |
src/components/add-tag-modal/form/index.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... |
app/client/routes.js | Kharatsa/SampleTransportTracking | import React from 'react';
import Route from 'react-router/lib/Route';
import IndexRoute from 'react-router/lib/IndexRoute';
import {
App, Dashboard, Changes, Sample, Admin, MissingRoute,
TATPage, LabTestsPage
} from './pages';
import {DEFAULT_AFTER_DATE, DEFAULT_BEFORE_DATE} from '../common/sttworkflow';
import {U... |
client/src/App.js | wapjude/document-management-system | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
wail-ui/components/collections/selectCollection/search/index.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { BehaviorSubject } from 'rxjs'
import IconButton from 'material-ui/IconButton'
import SearchI from 'material-ui/svg-icons/action/search'
import Card from 'material-ui/Card/Card'
import SearchInput from '../../../utilComponents/searchInput'
import Orde... |
index.js | Crisa221/Lista-Giocatori | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import rootReducer from './reducer/reducer.js'
const store = createStore( rootReducer );
render(
<Provider store={store}>
<table />
<form />
</Provider>,
... |
src/svg-icons/image/timer-10.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
webpack/components/extensions/HostDetails/Tabs/ContentTab/EmptyPage.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import PFEmptyPage from 'foremanReact/components/common/EmptyState/EmptyStatePattern';
const EmptyPage = ({ header }) => (
<div className="host-details-tab-item">
<PFEmptyPage
icon="enterprise"
header={header}
description="This is a... |
src/containers/Asians/TabControls/AdjudicatorTest/ViewAdjudicatorTest/3_TestScores/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import _ from 'lodash'
import Instance from './Instance'
export default connect(mapStateToProps)(({
adjudicatorTestScores,
adjudicators,
institutionsById
}) => {
let sortedAdjudicators = _.cloneDeep(adjudicators)
sortedAdjudicators.sort((a, b)... |
docs/src/app/components/pages/components/Divider/ExampleList.js | nathanmarks/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import MobileTearSheet from '../../../MobileTearSheet';
const DividerExampleList = () => (
<MobileTearSheet height={250}>
<List>
<ListItem insetChildren={true} primaryText="Janet Perkins B... |
src/app/core/atoms/icon/icons/eye-crossed.js | blowsys/reservo | import React from 'react'; const EyeCrossed = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><g transform="translate(2.000000, 3.000000)"><path d="M8.03900788,9.10312774 C8.01342247,8.97489743 8,8.84208412 8,8.70590496 C8,7.60133546 8.88772964,6.70590496 10,6.70590496 C10.135967,6.70590496 10.268765,6.71935618 10... |
src/svg-icons/hardware/router.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareRouter = (props) => (
<SvgIcon {...props}>
<path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6... |
src/utils/domUtils.js | blue68/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
src/Alert.js | gianpaj/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
stories/index.js | TeamWertarbyte/material-ui-password-field | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import TextField from 'material-ui/TextField'
import PasswordField from '../src/PasswordField'
function themed (children) {
return (
<div style={{ fontFamily: 'Roboto, sans-serif' }}>
{c... |
js/jqwidgets/jqwidgets-react/react_jqxdocking.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxDocking extends React.Component {
componentDidMount() {
let options = this.manageAt... |
src/docs/examples/HelloWorld/ExampleHelloWorld.js | StudentOfJS/ps-react-rod | import React from 'react';
import HelloWorld from 'ps-react-rod/HelloWorld';
/** Custom message */
export default function ExampleHelloWorld() {
return <HelloWorld message="Rod, enjoy your training" />;
} |
src/components/list_item.js | quebez/react_todolist | import React, { Component } from 'react';
class ListItem extends Component {
itemTicked(ticked) {
return ticked ? 'ticked' : 'unticked';
}
tickUntickGlyphicon(ticked) {
return ticked ? 'glyphicon-repeat' : 'glyphicon-ok';
}
render() {
const item = this.props.item;
... |
core/src/plugins/access.ajxp_conf/res/js/AdminComponents/board/GroupAdminDashboard.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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... |
ext/tilt-react.js | jphastings/tilt-react | import React from 'react';
import ReactDOM from 'react-dom';
class TiltReactClass {
constructor() {
this.components = {};
}
bind() {
this.reactContainers().forEach(container => {
const componentName = container.dataset.reactClass;
const propsContainer = container.nextElementSibling;
co... |
app/User/SignUpMobileVerify.js | csujedihy/react-native-textgo | 'use strict';
import React, { Component } from 'react';
import TextField from 'react-native-md-textinput';
import Button from 'apsl-react-native-button';
import Users from '../Model/users';
import MyNavigationBar from '../Components/MyNavigationBar';
import phoneFormat from "phoneformat-react-native";
import Main from... |
src/svg-icons/social/whatshot.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialWhatshot = (props) => (
<SvgIcon {...props}>
<path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.... |
src/screen/WaveGenerator/components/SineWaveParameters.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {
Select,
Typography,
Divider,
FormControlLabel,
MenuItem,
Switch,
OutlinedInput,
FormControl,
InputLabel,
} from '@material-ui/core';
import CustomSliderInput from '../../../components/CustomSliderInput';
import { with... |
app/components/main-panel.js | eladg/gariany.com | import React from 'react';
import Sidebar from './sidebar'
import PostsList from './posts-list'
class MainPanel extends React.Component {
constructor(props) {
super(props);
var posts = props.data.posts;
var config = props.data.config;
// lookup categories/tags of db
var categoryHash = {};
... |
src/pages/page/EditorPage/index.js | anztrax/simple-image-server-frontend | import React from 'react';
import SimpleTextEditor from '../../../components/common/TextEditor/SimpleTextEditor';
import SimpleAutoComplete from '../../../components/common/AutoComplete/SimpleAutoComplete';
export default class EditorPage extends React.Component{
constructor(props){
super(props);
this.state ... |
webapp-src/src/Admin/HTTPParams.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class HTTPParams extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
mod: props.mod,
role: props.role,
check: pr... |
src/svg-icons/av/mic.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
examples/src/TrackLinks/TrackLinks.js | approots/react-autosuggest | import React, { Component } from 'react';
export default class TrackLinks extends Component {
componentDidMount() {
if (typeof analytics !== 'object') {
return;
}
const links = this.refs.children.querySelectorAll('a');
const linksCount = links.length;
for (let i = 0; i < linksCount; i++) ... |
client/views/room/contextualBar/Info/ChannelToTeamModal/StepOne.js | VoiSmart/Rocket.Chat | import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import GenericModal from '../../../../../components/GenericModal';
import { useTranslation } from '../../../../../contexts/TranslationContext';
import TeamAutocomplete from '../../../../teams/contextualBar/TeamAutocomplete';
const StepOn... |
actor-apps/app-web/src/app/components/dialog/messages/State.react.js | liruqi/actor-platform-v0.9 | import React from 'react';
import { MessageContentTypes } from '../../../constants/ActorAppConstants';
class State extends React.Component {
static propTypes = {
message: React.PropTypes.object.isRequired
};
render() {
const { message } = this.props;
if (message.content.content === MessageContentTy... |
app/javascript/mastodon/features/ui/components/mute_modal.js | unarist/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/association/list.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* The internal dependencies.
*/
import AssociationListItem from 'fields/components/association/list-item';
/**
* Render a list of item that can be associated.
*
* @param {Object} props
* @param {Str... |
src/svg-icons/communication/location-on.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
docs/src/app/components/pages/components/Table/Page.js | spiermar/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
src/svg-icons/social/notifications-none.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsNone = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l... |
src/svg-icons/av/branding-watermark.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
src/routes/home/index.js | dreambo8563/RSK | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
// import Home from './Home';
/... |
src/components/notice/loading.js | AiZhanglove/my_insurance | import React from 'react'
import ReactDom from 'react-dom';
import './notice.less'
let loadingExist = false;
let loadingContainer=null;
const Loading=(props)=>{
return (
<div className="animate"></div>
);
}
Loading.show=function (transparent=true) {
try{
MiFiJsInternal.startLoading(!transpar... |
src/components/AuthenticatedComponent.js | joshgeller/react-redux-jwt-auth-example | import React from 'react';
import {connect} from 'react-redux';
import {pushState} from 'redux-router';
export function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
componentWillMount () {
this.checkAuth(this.props.isAuthenticated);
}
... |
app/javascript/mastodon/components/status.js | glitch-soc/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
bai/src/components/TeamMembers/index.js | blackinai/blackinai.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import { Container, Divider, Avatar, Link} from '@material-ui/core/';
import Typography from '../Typography';
import { FontAwesomeIcon } from '@fortawesome/rea... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Loading/Loading.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
client/page/redirects/columns/source.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { isEnabled } from 'component/table/utils';
import SourceName from './source-name';
import Target from './target';
import SourceFlags from './source-flags';
import Sourc... |
client/src/pages/user.js | HKuz/FreeCodeCamp | import React from 'react';
import { Router } from '@reach/router';
import RedirectHome from '../components/RedirectHome';
import ShowUser from '../client-only-routes/ShowUser';
function User() {
return (
<Router>
<ShowUser path='/user/:username/report-user' />
<RedirectHome default={true} />
</R... |
node_modules/semantic-ui-react/dist/es/views/Feed/FeedEvent.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthand, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import FeedContent from './FeedContent';
import FeedLabel from './Feed... |
fixtures/ssr/src/index.js | apaatsio/react | import React from 'react';
import {hydrate} from 'react-dom';
import App from './components/App';
hydrate(<App assets={window.assetManifest} />, document);
|
src/www/js/index.js | nickolusroy/react_dnd | import React from 'react';
import ReactDOM from 'react-dom';
import * as utilities from "./utilities.js";
import raceData from '../json/races.json';
import { CharacterSheet } from './character-sheet.js';
import { DropDown } from './form-fields/drop-down.js';
import { TextInput } from './form-fields/text-input.js';
impo... |
app/pages/admin/AuthShow/index.js | czy0729/react-alumni | /**
* 认证需填写字段
* 170307 判断来源add_alumni
* @Date: 2017-02-20 15:58:37
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-19 06:39:20
*/
'use strict';
import React from 'react';
import { form, observer } from 'decorators';
import { $auth } from 'stores';
import { Button } from 'antd-mobile';
import ... |
src/table/SKTable.js | ShaneKing/sk-antd | import {Table} from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import {SK} from 'sk-js';
import AntdComp from '../AntdComp';
import {SIZE} from '../AntdConst';
Table.defaultProps = SK.extends(true, {}, {
bordered: false,
defaultExpandAllRows: false,
expandRowByClick: false,
indentSi... |
src/svg-icons/content/next-week.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2... |
pages/pro.js | dracula/dracula.github.io | import React from 'react';
import Head from 'next/head';
import Topbar from '../components/pro/Topbar';
import Header from '../components/pro/Header';
import Description from '../components/pro/Description';
import Preview from '../components/pro/Preview';
import Why from '../components/pro/Why';
import Palette from '... |
node_modules/react-navigation/lib-rn/views/Drawer/DrawerNavigatorItems.js | RahulDesai92/PHR | import React from 'react';
import { View, Text, Platform, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
var babelPluginFlowReactPropTypes_proptype_Style = require('../../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any;
var babelPluginFlowRe... |
src/components/search-cancer-type.js | sfordjasiri/TT | import React from 'react';
//import {reduxForm, Form, FormGroup, Field} from 'redux-form';
//import {connect} from 'react-redux';
class SearchCancerType extends React.Component {
onSubmit() {
console.log("Enter SearchCancerType.onSubmit(). this: ", this);
}
render() {
console.log("SearchCancerType.rend... |
fields/types/azurefile/AzureFileColumn.js | kwangkim/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target='_blank'>{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
app/components/specificComponents/SocialBanner/SocialIcon.js | romainquellec/cuistot | import React from 'react';
const { PropTypes } = React;
const SocialIcon = (props) => (
<svg width="32" height="32" viewBox={props.viewBox}>
<path d={props.icon} />
</svg>
);
SocialIcon.propTypes = {
icon: PropTypes.string.isRequired,
};
export default SocialIcon;
|
demo/virtualized.js | conorhastings/react-syntax-highlighter | import React from 'react';
import { render } from 'react-dom';
import SyntaxHighlighter from '../src/index';
import virtualizedRenderer from 'react-syntax-highlighter-virtualized-renderer';
import ExamplesLinks from './examples-links';
import hljsStyles from './styles/hljs';
const availableStyles = hljsStyles;
class ... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | lstNull/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
app/javascript/mastodon/features/ui/components/onboarding_modal.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Permalink from '../../../components/per... |
app/components/browser/Connections.js | careykevin/reddy | // @flow
import React, { Component } from 'react';
import type { RedisConnection } from '../../utils/Types';
export default class Connections extends Component {
props: {
connections: Array<RedisConnection>,
selectedConnection: ?RedisConnection,
handleConnectionSelect: (RedisConnection) => void
};
... |
src/client/components/general/FeedbackButton/FeedbackButton.component.js | DBCDK/content-first | import React from 'react';
import Button from '../../base/Button/Button';
import Icon from '../../base/Icon/Icon';
import './FeedbackButton.css';
function FeedbackButton() {
return (
<div className="feedback-container">
<Button
className="Button__feedback"
type="secondary"
size="me... |
project/src/scenes/Blog/TagList/index.js | strues/boldr | // @flow
import React from 'react';
import { graphql } from 'react-apollo';
import universal from 'react-universal-component';
import ARTICLES_FOR_TAG from '../gql/articlesForTag.graphql';
import type { ArticlesType, MatchParams } from '../../../types/boldr';
const UniversalTagList = universal(import('./TagList'));
t... |
cerberus-dashboard/src/components/EditSDBoxForm/EditSDBoxForm.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* 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 by applicable law or agreed to ... |
docs/app/Examples/modules/Dropdown/Variations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownVariationsExamples = () => (
<Exa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.