path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
re-grid/src/header/cells/filterCell.js | NourEldin275/reGrid | /**
* Created by nour on 9/6/17.
*/
import React, { Component } from 'react';
import DayPickerInput from 'react-day-picker/DayPickerInput';
import 'react-dates/initialize';
import { DateRangePicker} from 'react-dates';
import 'react-dates/lib/css/_datepicker.css';
import './filterCell.css';
import 'react-day-picker/l... |
src/groups/GroupsList.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as types from './types';
import CardsList from '../elements/CardsList';
import GroupsListItem from './GroupsListItem';
///
// View
///
class GroupsListView extends Component {
renderGroups(groups) {
... |
src/containers/Parties.js | Hagbarth/awesome-filmklub | import React from 'react';
const Parties = () => <h3>Parties</h3>;
export default Parties;
|
src/svg-icons/image/brightness-1.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness1 = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="10"/>
</SvgIcon>
);
ImageBrightness1 = pure(ImageBrightness1);
ImageBrightness1.displayName = 'ImageBrightness1';
ImageBrightnes... |
client/modules/Results/__tests__/components/PostCreateWidget.spec.js | eantler/simmeme-client | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
www/imports/component/Namer.js | terraswat/hexagram |
// Namer.js
// A modal to prompt the user to name something.
// If you want something more complex use Modal.js instead.
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Modal from './Modal.js';
export default class Namer extends Component {
constructor (props) {
supe... |
app/config/Routes.js | vandosant/react-notetaker | import React from 'react';
import Main from '../components/Main';
import Home from '../components/Home';
import Profile from '../components/Profile';
import {Router, DefaultRoute, Route} from 'react-router'
export default (
<Route name="app" path="/" handler={Main}>
<Route name="profile" path="profile/:username"... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return [
{ id: 1, name: '1' },
... |
src/svg-icons/action/stars.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStars = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53... |
react/text-box/src/components/TextBox/TextBoxOverlay.js | kunukn/sandbox-web | import React from 'react';
const TextBoxOverlay = ({ children, onOverlayClose }) => (
<div aria-live="polite" className="textbox__overlay">
<div className="textbox__overlay-content">{children}</div>
<button
type="button"
className="pure-button pure-button-primary textbox__overlay-button"
on... |
src/components/SecondaryButton/SecondaryButton.js | carbon-design-system/carbon-components-react | /**
* 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 React from 'react';
import Button from '../Button';
const SecondaryButton = props => <Button kind="secondary" {...props} />;
export ... |
docs/src/pages/component-demos/tabs/ScrollableTabsButtonPrevent.js | dsslimshaddy/material-ui | // @flow weak
/* eslint-disable react/no-multi-comp */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import PhoneIcon from 'material-ui-icons/Phone';
i... |
src/routes/Home/components/LandingView.js | availabs/weather-enterprise | import React from 'react'
import Header from 'components/Sections/Header'
import IntroSlider from 'components/Sections/IntroSlider'
import About from 'components/Sections/About'
import Photos from 'components/Sections/Photos'
import Statement from 'components/Sections/Statement'
import Team from 'components/Sections/Te... |
react/HeartIcon/HeartIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import HeartIcon from './HeartIcon';
export const symbols = {
'HeartIcon -> with filled': <HeartIcon filled={true} />,
'HeartIcon -> without filled': <HeartIcon filled={false} />
};
|
src/svg-icons/editor/attach-money.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
src/routes.js | RafaelDelboni/todo-react-redux | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import TodosPage from './containers/todo/TodosPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={TodosPage}/>
<Route path="/:filter" component={TodosPage}/>
</Route... |
app/routes.js | truca/fancy | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import About from './components/About';
import Login from './components/Login';
import Register from './components/Register';
import UserProfile from './components/UserProfile';
import Mapa from './container... |
client/src/components/FiltersTabs.js | ViDA-NYU/domain_discovery_tool_react | import React from 'react';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
//import {deepPurpleA400, orange300, blue400, indigoA400, blue900} from 'material-ui/styles/colors';
import CheckboxTree from 'react-checkbox-tree';
import IconButton from 'ma... |
examples/huge-apps/routes/Messages/components/Messages.js | littlefoot32/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
docs/src/app/components/PropTypeDescription.js | pradel/material-ui | import React from 'react';
import {parse} from 'react-docgen';
import {parse as parseDoctrine} from 'doctrine';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import MarkdownElement from './MarkdownElement';
import recast from 'recast';
require('./prop-type-description.css');
function getDeprecatedInfo... |
pkg/interface/chat/src/js/components/lib/invite-element.js | ngzax/urbit | import React, { Component } from 'react';
import { InviteSearch } from './invite-search';
import { Spinner } from './icons/icon-spinner';
export class InviteElement extends Component {
constructor(props) {
super(props);
this.state = {
members: [],
error: false,
success: false,
await... |
src/components/Loans/OpenLoans/components/ContributorsView/ContributorsView.js | folio-org/ui-users | import React from 'react';
import PropTypes from 'prop-types';
import { isEmpty } from 'lodash';
import { Popover } from '@folio/stripes/components';
import getListPresentation from '../../helpers/getListPresentation';
import css from './ContributorsView.css';
const propTypes = {
contributorsList: PropTypes.array... |
admin/lib/post/components/Edit.js | synthesis-js/react-synthesis | import React from 'react';
const postData = document.getElementById('post-data');
// need to sanitize user input
// postData.onsubmit = (e) => {
// e.preventDefault();
// const title = document.getElementById('post-title').value;
// const body = document.getElementById('post-body').value;
// const status =... |
src/svg-icons/content/next-week.js | verdan/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... |
src/pages/robe-noire.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Robe Noire' />
)
|
src/components/icons/NoAnswerIcon.js | austinknight/ui-components | import React from 'react';
const NoAnswerIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" fill="currentColor">
{props.title && <title>{props.title}</title>}
<path d="M20,16.5 C20.5,16.5 21,17 21,17.5 L21,21 C21,21.5 20.5,22 20,22 C10.6,22 3,14.4 3,5 C... |
webpack/ForemanTasks/Components/TasksTable/Components/SelectAllAlert.js | adamruzicka/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { Alert, Button } from 'patternfly-react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
export const SelectAllAlert = ({
itemCount,
perPage,
selectAllRows,
unselectAllRows,
allRowsSelected,
}) => {
const selectAll... |
js/signin/src/components/Dialog.js | fogfish/oauth2 | import React from 'react'
import { Flex, Box } from 'reflexbox'
import { Card, Elevation, Divider } from '@blueprintjs/core'
const Head = ({ icon, title }) => (
<h1 className="bp3-heading">
<i className={`fa ${icon}`} aria-hidden="true" />
{title}
</h1>
)
const FootLinks = (children) => ... |
consoles/my-joy-images/src/containers/menu.js | yldio/joyent-portal | import React from 'react';
import get from 'lodash.get';
import Menu from '@components/menu';
const SECTIONS = [
{ name: 'Summary', pathname: 'summary' },
{ name: 'Tags', pathname: 'tags' }
];
export default ({ match }) => {
const imageId = get(match, 'params.image');
const sections = imageId === '~create' ?... |
src/routes.js | thisgirlsaphony/coffeecast | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import LocationsPage from './components/locations/LocationsPage';
import LocationPage from './components/locations/LocationPage';
//add in later
import TapPage from './components/taps/TapPage';
import App from './components/App';
import NotF... |
examples/src/components/MultiSelectField.js | mcanthony/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var MultiSelectField = React.createClass({
displayName: 'MultiSelectField',
propTypes: {
label: React.PropTypes.string,
... |
packages/core/content-type-builder/admin/src/components/ComponentList/index.js | wistityhq/strapi | /**
*
* ComponentList
*
*/
/* eslint-disable import/no-cycle */
import React from 'react';
import get from 'lodash/get';
import PropTypes from 'prop-types';
import List from '../List';
import useDataManager from '../../hooks/useDataManager';
import Tr from '../Tr';
function ComponentList({
customRowComponent,
... |
docs/app/Examples/modules/Dropdown/States/DropdownExampleLoading.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleLoading = () => (
<Dropdown text='Dropdown' loading>
<Dropdown.Menu>
<Dropdown.Item>Choice 1</Dropdown.Item>
<Dropdown.Item>Choice 2</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
)
export default Dropdow... |
client/analytics/components/partials/sideBar/LeftSideBarHeader.js | Haaarp/geo | import React from 'react';
import BlockWrapper from 'konux/common/components/BlockWrapper';
import SideBarHeader from 'konux/common/components/sideBar/SideBarHeader';
import Label from 'konux/common/components/Label';
import SwitchConter from './SwitchConter';
import ResetFilterButton from './../ResetFilterButton';
imp... |
src/pages/Register/index.js | BoilerMake/frontend | import React, { Component } from 'react';
import RegisterForm from './RegisterForm';
// import { SubmissionError } from 'redux-form';
import { Redirect } from 'react-router-dom';
// import { toastr } from 'react-redux-toastr';
import { Card } from 'bm-kit';
import apiFetch from '../../actions';
export class Register ex... |
js/src/views/Status/components/RpcNav/RpcNav.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.... |
modules/gui/src/widget/markdown.js | openforis/sepal | import PropTypes from 'prop-types'
import React from 'react'
import ReactMarkdown from 'react-markdown'
import styles from './markdown.module.css'
export const Markdown = ({source}) =>
<ReactMarkdown className={styles.markdown}>{source}</ReactMarkdown>
Markdown.propTypes = {
source: PropTypes.string
}
|
client/modules/Post/__tests__/components/PostList.spec.js | Hitzk0pf/BetterBackPacking | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
js/constants.js | nCoda/julius | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/constants.js
// Purpose: Constants... |
frontend/src/components/common/WithSeparator.js | jf248/scrape-the-plate | import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core';
const styles = theme => ({
root: {
display: 'inline-block',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
'&:after': {
content: '"\u00b7"',
fontWeight: 'bold',
marginLef... |
votrfront/js/StudiumSelector.js | fmfi-svt/votr |
import React from 'react';
import _ from 'lodash';
import { CacheRequester, Loading } from './ajax';
import { Link, QueryContext, queryConsumer } from './router';
import { sortAs } from './sorting';
// TODO: Reduce code duplication with ZapisnyListSelector.
function getItems(cache) {
var studia = cache.get('get_... |
imports/ui/components/events/EventEditor.js | KyneSilverhide/expense-manager | /* eslint-disable max-len, no-return-assign */
import React from 'react';
import { browserHistory } from 'react-router';
import FontAwesome from 'react-fontawesome';
import Input from 'material-ui/Input';
import FormControl from 'material-ui/Form/FormControl';
import { LabelSwitch } from 'material-ui/Switch';
import T... |
admin/client/Signin/components/Brand.js | rafmsou/keystone | /**
* Renders a logo, defaulting to the Keystone logo if no brand is specified in
* the configuration
*/
import React from 'react';
const Brand = function (props) {
// Default to the KeystoneJS logo
let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 };
if (props.logo) {
// If th... |
src/Calendar.js | TeaBough/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import { uncontrollable } from 'uncontrollable'
import clsx from 'clsx'
import {
accessor,
dateFormat,
dateRangeFormat,
DayLayoutAlgorithmPropType,
views as componentViews,
} from './utils/propTypes'
import { notify } from './utils/helpers'
import ... |
app/javascript/mastodon/features/compose/index.js | rekif/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
docs/src/app/AppRoutes.js | w01fgang/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge';
i... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | d6rkaiz/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
js/components/FormCheckPage/FormCheckPage.js | xuorig/form-check-app | /* @flow */
import React from 'react';
import Relay from 'react-relay';
import FormCheck from '../FormCheck/FormCheck';
import FormCheckHistory from '../FormCheckHistory/FormCheckHistory';
import styles from './FormCheckPage.css';
class FormCheckPage extends React.Component {
render() {
return (
<div clas... |
app/javascript/packs/components/SignIn/index.js | NahlStudio/teamly-rails | import React from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'redux-zero/react';
import Row from '../shared/Row';
import Column from '../shared/Column';
import Form from '../shared/Form';
import Field from '../shared/Field';
import AlertDanger from '../shared/AlertDanger';
import { ha... |
packages/material-ui-icons/src/CloudOff.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 1... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-brightness.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsBrightness = (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 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8... |
app/race/RaceComponent.js | bverbist/chrono-race | import React from 'react';
import {connect} from 'react-redux';
import {isOnRacePage, getRaceTitle, getGroups, getStoppedTeamsSortedOnAscendingChrono} from './raceSelectors';
import RaceGroup from './group/RaceGroupComponent';
import FinishedTeams from './team/FinishedTeamsComponent';
const RaceP = ({
isVisible, r... |
docs/src/Anchor.js | tigerandgirl/ssc-refer | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
src/components/posts_index.js | anderconal/ReactReduxBlogApp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../actions/index';
import { Link } from 'react-router';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import Modal from './modal';
class PostIndex extends Component {
componentWi... |
docs/app/Examples/addons/Radio/States/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const RadioStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | zillachan/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/complete/friends/FriendProfile.js | Brandon-J-Campbell/codemash | import React from 'react';
import { Link } from 'react-router-dom';
import Card from '../shared/Card';
import styles from './FriendProfile.css';
export default function FriendProfile({ id, name, image }) {
return (
<Link to={'friends/' + id}>
<Card>
<div className={styles.friendProfile}>
... |
react/src/index.js | fvianello/frameworks-fight | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './App';
import Ipsum from './Ipsum';
const Routing = () => (
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={Ipsum} ti... |
ds-cloud-music/src/baseUI/loading/index.js | Carl-DS/ds-frontend | import React from 'react';
import styled, { keyframes } from 'styled-components';
import style from '../../assets/global-style';
import { PropTypes } from 'prop-types';
const loading = keyframes`
0%, 100% {
transform: scale(0.0);
}
50% {
transform: scale(1.0);
}
`
const LoadingWrapper = styled.div`
>... |
src/modules/Components/User/Profile.js | rtellez700/MESA_Connect_2.0 | import React from 'react';
import ProfileAvatar from './ProfileAvatar';
import BioInfo from './BioInfo';
import Interests from './Interests';
import BioInfoCardList from './BioInfoCardList';
import faker from 'faker';
// sample data
var users = [
{
"id": 1456729877142,
"f_name": "Rodrigo",
"l_name":... |
src/components/icons/ThumbsDown.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const ThumbsDown = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .4... |
src/pages/eternal-archives/starcraft-encyclopedia/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { Helmet } from 'react-helmet'
import { Link } from 'gatsby'
import Layout from '../../../components/structure/layout'
const StarCraftEncyclopediaPage = () => (
<Layout>
<Helmet title="StarCraft Encyclopedia" />
<section>
<h1>StarCraft Encyclopedia</h1>
<div cla... |
src/components/EditSections/EditExtendedInfo/EditExtendedInfo.js | folio-org/ui-users | import { isEmpty } from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Field } from 'react-final-form';
import {
TextField,
Row,
Col,
Accordion,
Label,
Datepicker,
Headline,
} from '@folio/stripes/components';... |
website/src/pages/docs/index.js | nodkz/mongodb-memory-server | /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import React from 'react';
import { Redirect } from '@docusaurus/router';
import useBaseUrl from '@docusaurus/useBaseUrl';
function Docs() {
return <Redirect to={useBaseUrl('/')} />;
}
export default Docs;
|
src/pages/eternal-archives/my-first-site-and-programs/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { Link } from 'gatsby'
import { Helmet } from 'react-helmet'
import Layout from '../../../components/structure/layout'
import myFirstWebsite from '../../../images/my-first-website.png'
import myFirstWebsiteSource from '../../../images/eternal-archives-main.jpg'
import programsWrittenB... |
examples/counter/containers/Root.js | tgriesser/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
docs/src/ComponentsPage.js | rapilabs/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PropTable from '... |
src/server/server.js | AzkabanCoders/zstore | /* eslint-disable no-console, no-use-before-define */
import Express from 'express';
import webpack from 'webpack';
import React from 'react';
import { renderToString } from 'react-dom/server';
import webpackDevMiddleware from 'webpack-dev-middleware';
import jsdom from 'jsdom';
// import webpackHotMiddleware from 'w... |
packages/kalama/src/components/SearchForm.js | corporateanon/kalama | import React, { Component } from 'react';
import { func, array } from 'prop-types';
import Autocomplete from './Autocomplete';
import { formatSearchItem } from './formatters';
export default class SearchForm extends Component {
propTypes: {
onInput: func,
onChange: func,
items: array
};... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | liuzwei/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
app/Components/Chat/Input/Input.js | martinvarelaaaa/tintina | import React from 'react';
import PropTypes from 'prop-types';
import { View, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import TextInput from './TextInput';
import Options from './Options';
import styles from './styles';
import theme from '../../../th... |
ExRouteRenderer.js | exponentjs/ex-navigator | 'use strict';
import React from 'react';
import {
Image,
Platform,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import invariant from 'invariant';
import cloneReferencedElement from 'react-clone-referenced-element';
import ExNavigatorStyles from './ExNavigatorStyles';
import ExSceneCo... |
ReactApp/src/Cards/Program/BandDescriptions.js | hoh/FolkMarsinne | import React, { Component } from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import RaisedButton from 'material-ui/RaisedButton';
import {red500} from 'material-ui/styles/colors';
const instruments = {
'accordéon diatonique': {
fr: 'accordéon diatoniq... |
test/test_helper.js | hzburki/innexiv-front-end | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client/src/components/helpers/form/BlockSaveButton.js | otavioarc/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@freecodecamp/react-bootstrap';
function BlockSaveButton({ children, ...restProps }) {
return (
<Button
block={true}
bsSize='lg'
bsStyle='primary'
type='submit'
{...restProps}
>
{child... |
components/Dropdown/Dropdown.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Dropdown, { HORIZONTAL_ATTACHMENTS } from './Dropdown';
import DropdownInner from './DropdownInner';
const Target = () => <button>Anchor</button>;
const DropdownContent = () => <div>Dropdown content, like a list of actions, helper text et... |
src/components/common/icons/Twitter.js | WendellLiu/GoodJobShare | import React from 'react';
/* eslint-disable */
const Twitter = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path d="M148,29.842941 C142.552769,32.1920305 136.707968,33.7851561 130.566926,34.4964023 C136.837348,30.8420278 141.637199,25.0456772 143.912098,18.1600985 C138.030297,21... |
node_modules/react-bootstrap/es/CarouselCaption.js | nikhil-ahuja/Express-React | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
Native/Learn_scrollView/index.android.js | renxlWin/React-Native_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Learn_scrollView extends Component {
render() {
return (
<View style={styles.co... |
src/components/AboutPage.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import H1 from './H1';
import { getAuthor } from '../data/authors';
import { getStructuredDataForAuthor } from '../structuredData';
import BigFirstLetter from './BigFirstLetter';
import styled from 'styled-components';
import { FormattedMessage } from 'reac... |
src/containers/section_list.js | framlin/frelpama | import React, { Component } from 'react';
import SectionEntries from './section_entries';
var id = 0;
class SectionList extends Component {
renderSectionList() {
if (!this.props.sections) {
return (
""
)
}
return this.props.sections.map(function(sec... |
benchmarks/dom-comparison/src/implementations/radium/Box.js | risetechnologies/fela | /* eslint-disable react/prop-types */
import Radium from 'radium';
import React from 'react';
import View from './View';
const Box = ({ color, fixed = false, layout = 'column', outer = false, ...other }) => (
<View
{...other}
style={[
styles[`color${color}`],
fixed && styles.fixed,
layout =... |
examples/src/components/Multiselect.js | VanCoding/react-select | import React from 'react';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', value: 'caramel' },
{ label: 'Cookies and Cream', value: 'cookiescream' },
{ label... |
app/javascript/mastodon/features/notifications/index.js | RobertRence/Mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
src/pages/voucher/VoucherPage.js | yang-zhang-syd/React-Wechat-E2E-Test-With-Fake-Api | import React from 'react';
import Page from '../../components/page/page';
import {Article,Button} from 'react-weui';
import {connect} from 'react-redux';
export class VoucherPage extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
const {vm} = this.... |
admin/client/App/shared/Portal.js | cermati/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
fluxible-router/components/Application.js | eriknyk/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import Nav from './Nav';
import Timestamp from './Timestamp';
import ApplicationStore from '../stores/ApplicationStore';
import {connectToStores, provideContex... |
src/Parallax.js | chris-gooley/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
class Parallax extends Component {
componentDidMount () {
$('.parallax').parallax();
}
render () {
const { className, imageSrc } = this.props;
return (
<div className={cx('parallax-contai... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | chenbk85/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
src/routes/error/ErrorPage.js | FamilyPlanerTeam/family-planner | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
Paths/React/06.Styling React Components/2-react-styling-components-m2-exercise-files/Before/src/nav.js | phiratio/Pluralsight-materials | import React from 'react'
const { func, bool } = React.PropTypes
function Nav(props) {
return (
<div>
<button onClick={props.onPrevious}>❮</button>
<button onClick={props.onNext}>❯</button>
</div>
)
}
Nav.propTypes = {
onPrevious: func.isRequired,
onNext: func.isRequired,
... |
src/svg-icons/communication/call-missed.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
webpack/scenes/AnsibleCollections/Details/AnsibleCollectionsSchema.js | pmoravec/katello | import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo';
import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories';
export const displayMap = new Map([
['na... |
react/features/filmstrip/components/native/ModeratorIndicator.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { IconModerator } from '../../../base/icons';
import { BaseIndicator } from '../../../base/react';
/**
* Thumbnail badge showing that the participant is a conference moderator.
*/
export default class ModeratorIndicator extends Component<{}> {
/**
... |
bundler/serverSideRender.js | Ledoux/teleport-react-router | import fs from 'fs'
import path from 'path'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import serverConfig from './server.config'
import root from '../frontend/scripts/browser/server.browser.root'
const { Root, rootProps } = root
// RENDER
function serverSideRender (stats) {
const rende... |
src/routes/account/index.js | nambawan/g-old | import React from 'react';
import Layout from '../../components/Layout';
import { getSessionUser } from '../../reducers';
import AccountContainer from './AccountContainer';
const title = 'User account';
async function action({ store, path }) {
const state = await store.getState();
const user = getSessionUser(stat... |
app/jsx/shared/EditUserDetailsDialog.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... |
packages/component/src/Middleware/ActivityStatus/createSendStatusMiddleware.js | billba/botchat | import { Constants } from 'botframework-webchat-core';
import React from 'react';
import SendStatus from './SendStatus/SendStatus';
const {
ActivityClientState: { SENT }
} = Constants;
export default function createSendStatusMiddleware() {
return () => next => ({ activity, sendState, ...args }) => {
if (send... |
src/svg-icons/hardware/keyboard-voice.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardVoice = (props) => (
<SvgIcon {...props}>
<path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6.... |
src/components/Widgets/StringControl.js | dopry/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
export default class StringControl extends React.Component {
handleChange = (e) => {
this.props.onChange(e.target.value);
};
render() {
return <input type="text" id={this.props.forID} value={this.props.value || ''} onChange={this.handleChang... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.