path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
components/Divider.js | amni/alanmni-portfolio | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config'
export default class Divider extends React.Component {
render () {
return (
<hr style= {{marginTop:"8%", width:"10%", marginLeft:"au... |
app/containers/HomePage/index.js | c-dagostino/react-boilerplate-example | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
js/ShowCard.js | jbarbettini/intro-to-react-workshop | import React from 'react'
import { Link } from 'react-router'
const { string } = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string,
title: string,
year: string,
description: string,
imdbID: string
},
render () {
const { poster, title, year, description, im... |
src/svg-icons/action/exit-to-app.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
src/components/NotFound.js | pixel-glyph/better-reads | import React from 'react';
class NotFound extends React.Component {
render() {
return <h1>Not Found</h1>
}
}
export default NotFound;
|
src/js/membership/components/auth-info.js | akornatskyy/sample-blog-react | import React from 'react';
import PropTypes from 'prop-types';
import {LinkContainer} from 'react-router-bootstrap';
import {NavLink} from 'react-bootstrap';
import actions from '../actions';
const AuthInfo = ({user}) => {
if (!user) {
return (
<LinkContainer to="/signin">
<Na... |
src/index.js | nylo-andry/react-stopwatch | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import createStore from 'store';
import StopWatchContainer from 'StopWatchContainer';
let store = createStore();
store.subscribe(() => {
console.log(store);
});
ReactDOM.render(
<Provider store={store}>
<Sto... |
node_modules/react-bootstrap/es/Button.js | vietvd88/developer-crawler | import _Object$values from 'babel-runtime/core-js/object/values';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-... |
lib/ui/src/modules/ui/components/left_panel/text_filter.js | jribeiro/storybook | import PropTypes from 'prop-types';
import React from 'react';
import { baseFonts } from '../theme';
const mainStyle = {
...baseFonts,
border: '1px solid #ECECEC',
borderRadius: 2,
position: 'relative',
};
export default class TextFilter extends React.Component {
constructor(props) {
super(props);
... |
docs/app/Examples/collections/Grid/Variations/GridColoredColumnExample.js | jamiehill/stardust | import React from 'react'
import { Grid } from 'stardust'
const { Column } = Grid
const GridColoredColumnExample = () => (
<Grid columns={5} padded>
<Column color='red'>Red</Column>
<Column color='orange'>Orange</Column>
<Column color='yellow'>Yellow</Column>
<Column color='olive'>Olive</Column>
... |
fields/types/date/DateFilter.js | everisARQ/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value... |
src/svg-icons/social/people.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/DropzoneS3Uploader.js | founderlab/react-dropzone-s3-uploader | import React from 'react'
import PropTypes from 'prop-types'
import S3Upload from 'react-s3-uploader/s3upload'
import Dropzone from 'react-dropzone'
export default class DropzoneS3Uploader extends React.Component {
static propTypes = {
filename: PropTypes.string,
s3Url: PropTypes.string.isRequired,
notD... |
app/containers/List.js | river-lee/react-group | /* app/containers/App.js */
import React from 'react';
import { connect } from 'react-redux';
import * as ListsAction from '../actions/list';
import { bindActionCreators } from 'redux';
import UserCollect from '../components/detail_module/user_collect';
import GroupList from '../components/GroupList';
import Toast fro... |
es/components/Video/VideoProgressBar.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import LinearProgress from "@material-ui/core/es/LinearProgress";
var VideoProgressBar = function VideoProgressBar(_ref) {
var media = _ref.media,
seek = _ref.seek;
return _jsx("div", {
c... |
src/components/common/icons/Like.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const Like = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path d="M78.3722158 0C71.7141245 0 73.9531286 14.5885714 73.9531286 14.5885714 73.9531286 14.5885714 59.723668 54.8204082 46.1128797 65.5428571 43.1962822 68.6840816 41.36972... |
src/routes.js | mak4alex/unicorn-shop | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import {
HomePage, CategoryPage, AboutPage, ContactPage, CheckoutPage,
NotFoundPage, SignupPage, LoginPage, ProfilePage, ProfileViewPage,
ProfileUpdatePage, ProfileHistoryPage, ProfileFavouritesPage,
}... |
src/containers/Register/Register.js | tpphu/react-pwa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import RegisterForm from 'components/RegisterForm/RegisterForm';
import * as authActions from 'redux/modules/auth';
import * as notifActions from 'redux/modules/notifs'... |
packages/ui/src/App.js | plouc/mozaik | import React from 'react'
import { Provider } from 'react-redux'
import Mozaik from './containers/MozaikContainer'
import configureStore from './configureStore'
import ThemeProvider from './components/ThemeProvider'
import ThemeManager from './theming/ThemeManager'
const MozaikWrapper = () => {
const store = confi... |
src/enhance.js | macropodhq/axolotl | import React from 'react';
import variation from './component';
/*
* weight: chance of joining bucket, where 0 means no one will never get added and 100 means always
* visible: does it show up to non developers on the labs page
* description: what it says on the labs page
* name: event in analytics when user join... |
src/icons/BeenhereIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BeenhereIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 2H10C7.79 2 6.02 3.79 6.02 6L6 31.87c0 1.38.7 2.6 1.76 3.32L23.99 46l16.23-10.81c1.06-.72 1.76-1.94 1... |
examples/with-redux-saga/components/clock.js | callumlocke/next.js | import React from 'react'
const pad = n => (n < 10 ? `0${n}` : n)
const format = t => {
const hours = t.getUTCHours()
const minutes = t.getUTCMinutes()
const seconds = t.getUTCSeconds()
return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`
}
function Clock ({lastUpdate, light}) {
return (
<div classNa... |
examples/blockly-react/src/index.js | google/blockly-samples | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
src/admin/components/select/index.js | ccetc/platform | import React from 'react'
import _ from 'lodash'
class Select extends React.Component {
static propTypes = {
prompt: React.PropTypes.string,
options: React.PropTypes.array,
disabled: React.PropTypes.bool,
placeholder: React.PropTypes.string,
status: React.PropTypes.string,
defaultValue: Reac... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/Documents/Documentation.js | Minoli/carbon-apimgt | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemText } from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
import Typography from 'material-ui/Typography';
import { Link, FileDownload } from 'material-ui-icons... |
src/svg-icons/image/monochrome-photos.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
src/modules/keywords/containers/KeywordContextContainer/KeywordContextContainer.js | CtrHellenicStudies/Commentary | import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'react-apollo';
// graphql
import commentsQuery from '../../../comments/graphql/queries/comments';
import { editionsQuery } from '../../../textNodes/graphql/queries/editions';
import textNodesQuery from '../../../textNodes/graphq... |
Realization/frontend/czechidm-core/src/content/notification/template/TemplateContent.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Basic from '../../../components/basic';
import * as Advanced from '../../../components/advanced';
import { NotificationTemplateManager } from '../../../redux';
import TemplateDetail from './TemplateDetai... |
view/admin/config/detail.js | salesforce/refocus | /**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/admin/config/detail.js
*
* JSON to configure Form element in pages/Det... |
fields/types/url/UrlColumn.js | andrewlinfoot/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
va... |
src/js/pages/Proposals/Project/IntroductionPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import TopNavBar from '../../../components/TopNavBar/TopNavBar.js';
import '../../../../scss/pages/proposals/project/introduction.scss';
import Overlay from "../../../components/ui/Overlay/Over... |
src/components/buttons/demos/Fab.js | isogon/material-components | import React from 'react'
import { Button, Icon } from '../../../'
export default () => (
<Button fab>
<Icon name="add" />
</Button>
)
|
actor-apps/app-web/src/app/components/Login.react.js | hmoraes/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/containers/question-result/QuestionResult.js | SalvaCarsi/SearchView | 'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import QuestionResultWrapper from '../../components/styled/QuestionResultWrapper';
import { ResultTextWrapper, HeaderTextWrapper, LinkWrapper } from '../../components/styled/TextWrapper'... |
app/javascript/mastodon/features/account_timeline/components/header.js | danhunsaker/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
boxroom/archive/backup-js-surface-2018-01-28/boxroom/archive/2017-10-27-glow/js-glow/src/demo/pagination/pagination.js | js-works/js-surface | import {
createElement as h,
defineClassComponent,
defineFunctionalComponent,
mount
} from 'js-glow';
import { Seq } from 'js-essential';
import PaginationHelper from './helper/PaginationHelper.js';
import ComponentHelper from './helper/ComponentHelper.js';
import React from 'react';
import ReactDOM... |
src/templates/blogPost.js | gvlachos/gvlachos.github.io | import React from 'react';
import {graphql, Link} from 'gatsby';
import SEO from '../components/seo';
export default ({data, pageContext}) => {
const {next, prev} = pageContext;
const {markdownRemark} = data;
const {title, subTitle, date} = markdownRemark.frontmatter;
const html = markdownRemark.html;
retur... |
client/components/basic/burger/BurgerBadge.js | iiet/iiet-chat | import { Badge } from '@rocket.chat/fuselage';
import React from 'react';
function BurgerBadge({ children }) {
return <Badge
position='absolute'
insetInlineEnd='neg-x8'
insetBlockStart='neg-x4'
zIndex='3'
variant='danger'
children={children}
/>;
}
export default BurgerBadge;
|
src/components/ADSR/index.js | KNETIC-KRPF/KNETIC-CLIENT | import React, { Component } from 'react';
import Knob from '../Knob';
import './ADSR.css';
class ADSR extends Component {
render() {
return(
<div>
<h4>VOLUME ENVELOPE</h4>
<div className="adsr-grid">
<div className="controller">
<Knob
patchState={this.props.patch.adsr.attack}
sen... |
node_modules/rc-animate/es/AnimateChild.js | yhx0634/foodshopfront | import _typeof from 'babel-runtime/helpers/typeof';
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-runtime/helpers/inh... |
app/javascript/mastodon/features/ui/components/video_modal.js | 5thfloor/ichiji-social | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';... |
packages/react-server-examples/bike-share/components/station-list.js | redfin/react-server | import PropTypes from 'prop-types';
import React from 'react';
import {logging} from 'react-server';
import StationCard from './station-card';
const logger = logging.getLogger(__LOGGER__);
const StationList = ({stations}) => {
logger.info(`rendering list of ${stations.length} stations`);
const stationCards = statio... |
components/common/githubRibbon.js | yudazilian/VisualJusticeTW | import React from 'react';
import ReactDOM from 'react-dom';
import ReactRouter from 'react-router';
class GitHubRiddon extends React.Component {
render(type) {
let src = "",
dataSrc = "";
if (type == 'red') {
src = "https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/6874747073... |
src/components/ReplPrompt.js | antonyr/Mancy | import React from 'react';
import ReplActiveIcon from './ReplActiveIcon';
import ReplActiveInput from './ReplActiveInput';
export default class ReplPrompt extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className='repl-prompt'>
<ReplActiveIcon />
... |
src/src/App.js | ioBroker/ioBroker.web | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { MuiThemeProvider } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import GenericApp from '@iobroker/adapter-reac... |
client/router.js | hcngo/craft-exercise-intuit | /**
* ASP.NET Core Starter Kit (https://dotnetreact.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 { parse } from 'query-s... |
example/pages/actionsheet/index.js | n7best/react-weui | import React from 'react';
import {Button, ActionSheet} from '../../../build/packages';
import Page from '../../component/page';
export default class ActionSheetDemo extends React.Component {
state = {
ios_show: false,
android_show: false,
menus: [{
label: 'Option 1',
... |
src/SettingsSectionProfile/index.js | christianalfoni/ducky-components |
import ActionButton from '../ActionButton';
import Avatar from '../Avatar';
import React from 'react';
import PropTypes from 'prop-types';
// import Image from '../ImageElement';
//
import classNames from 'classnames';
import styles from './styles.css';
import SectionFooterCancelOK from '../SectionFooterCancelOK';
im... |
app/src/assets/js/components/views/players.js | Huskie/ScottishPremiershipData | /* Players view component */
import React from 'react';
import firebaseApp from '../../modules/firebase';
class PlayersViewComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container container--padded-vertical">
... |
js/App/Components/Schedule/ActionDim.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
packages/reactI18nBase/src/__test__/LabelForm.js | daniloster/react-experiments | import React from 'react';
import Italic from './Italic';
export default ({ i18n, hasError, hasSucceed }) => (
<div>
<h2>{i18n.title}</h2>
<form>
<div>{i18n.description}</div>
<input type="text" />
<div>{i18n.color}</div>
<input type="text" />
{hasError && (
<div style=... |
src/widget/PageControl.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
import React, { Component } from 'react';
import { View, StyleSheet, TouchableWithoutFeedback } from 'react-native';
import assign from 'object-assign';
class PageControl e... |
app.js | gr8fuljoe5/skeeball-scorecard | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import $ from 'jquery';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';... |
app/src/components/highscore/HighscoreOverview.js | kort/kort-native | import React, { Component } from 'react';
import {
View,
Platform
} from 'react-native';
import SegmentedControlTab from 'react-native-segmented-control-tab';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import HighscoreList from './HighscoreList';
import { tabChanged, clearError... |
src/components/UserProfile.js | shierby/shierby.github.io | import React, { Component } from 'react';
class UserProfile extends Component {
render() {
const data = this.props.data;
return <div className="col-md-3">
{data.url && data.avatar_url && <a href={data.url} target="_blank"><img className="card__avatar" src={data.avatar_url} /></a>... |
app/scripts/MainViews/PlaylistList.js | nthitz/playlist_archive_site | import React from 'react'
import request from 'superagent'
import _ from 'lodash'
import Icon from '../Icon'
import Playlist from './Playlist'
import AddSong from './AddSong'
import PlaylistStore from '../stores/PlaylistStore.js'
export default class PlaylistList extends React.Component {
constructor(props) {
s... |
src/svg-icons/action/record-voice-over.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRecordVoiceOver = (props) => (
<SvgIcon {...props}>
<circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.... |
docs/client.js | albertojacini/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
src/components/Todo.js | pekkis/dr-kobros-2016 | import React from 'react';
import classnames from 'classnames';
import { Link } from 'react-router';
import Icon from 'react-fa';
import styles from './Todo.pcss';
const Todo = props => {
const { todo, onRemove, onToggle, onMove } = props;
const classes = classnames(
styles.todo,
{
... |
src/svg-icons/navigation/unfold-less.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldLess = (props) => (
<SvgIcon {...props}>
<path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/>
</SvgIcon>
)... |
node_modules/@material-ui/core/es/internal/svg-icons/KeyboardArrowRight.js | pcclarke/civ-techs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
}), 'KeyboardArrowRight'); |
examples/web/client/src/components/App.js | redux-offline/redux-offline | import React from 'react';
import { Provider } from 'react-redux';
import MakeRequests from './MakeRequests';
import RequestsQueue from './RequestsQueue';
import SyncStatus from './SyncStatus';
import store from '../store';
class App extends React.Component {
state = {
page: 'home',
status: '',
time: nu... |
src/components/icons/ExploreIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const ExploreIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="1 1 22 22">
{props.title && <title>{props.title}</title>}
<path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48... |
src/components/Board.js | hkano/react-de-reversi | import React from 'react'
import Square from './Square'
import { LINE_COUNT } from '../constants/configurations'
import { ROW_STRINGS, COLUMN_STRINGS } from '../constants/stgings'
import * as squareModel from '../models/square'
const renderSquare = (squares, number, canPlace, displayGuide, onClick) => {
return <Sq... |
docs/public/static/examples/v38.0.0/tutorial/image-picker-show.js | exponent/exponent | import React from 'react';
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
export default function App() {
let [selectedImage, setSelectedImage] = React.useState(null);
let openImagePickerAsync = async () => {
let permissionResu... |
app/javascript/mastodon/features/ui/components/video_modal.js | esetomo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
React Native/Demos/react_native_net/index.android.js | AngryLi/ResourceSummary | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class react_native_net extends Component {
render() {
return (
<View style={styles.container}>
... |
src/components/Menu.js | RoxasShadow/ginko | import React from 'react';
import { Link } from 'react-router-dom';
import './Menu.css';
class MenuLink extends React.Component {
render() {
return(
<li className={this.props.to === window.location.pathname ? 'active' : ''}>
<Link {...this.props} />
</li>
);
}
}
class Menu extends Rea... |
app/javascript/mastodon/components/dropdown_menu.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
src/components/common/button/ButtonSubmit.js | WendellLiu/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import cn from 'classnames';
import Modal from 'common/Modal';
import authStatus from '../../../constants/authStatus';
import WhyFacebookAuth from './WhyFacebookAuth';
import styles from './Butt... |
docs/src/sections/select.js | ricsv/react-leonardo-ui | import React from 'react';
import Example from '../example';
import Props from '../props';
import Section from '../section';
import { Select } from '../../../src/react-leonardo-ui';
const SelectSection = (props) => (
<Section title="Select">
<Example
code={
`<Select>
<option value="x">Option 1</option>
... |
src/Component/React/WorkbenchController/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ComponentReact/WorkbenchController.mcss';
import LayoutsWidget from 'paraviewweb/src/React/Widgets/LayoutsWidget';
import TwoByTwo from 'paraviewweb/src/React/Widgets/LayoutsWidget/TwoByTwo';
import OneByTwo from 'paraviewweb/s... |
plugins/Wallet/js/components/sendprompt.js | NebulousLabs/New-Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
import BigNumber from 'bignumber.js'
const SendPrompt = ({
currencytype,
sendAddress,
sendAmount,
feeEstimate,
sendError,
actions
}) => {
const handleSendAddressChange = e => actions.setSendAddress(e.target.value)
const handleSendAmountChange... |
src/app/components/Message.js | lubosz/tetris.js | /**
* Created by bmonkey on 8/31/15.
*/
import React from 'react';
class Message extends React.Component {
constructor(props) {
super(props);
this.state = {
visibility: 'visible',
text: 'Press X to Play'
}
}
setText(text) {
this.setState({text: text... |
node_modules/semantic-ui-react/src/modules/Modal/Modal.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
AutoControlledComponent as Component,
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
isBrowser,
makeDebugger,
META,
useKeyOnly,
} from '../../lib'
import Icon f... |
src/components/BusinessCard/Personal.js | yiweimatou/doctor-antd | import React from 'react'
import BusinessCard from './index'
import { PERSONAL_BUSINESSCARD } from '../../constants'
import Help from '../help'
const PersonalBusinessCard = () => (
<div>
<Help help_id={23} />
<BusinessCard srcs={PERSONAL_BUSINESSCARD} type="account" id={JSON.parse(localStorage.getI... |
src/routes.js | goodjoblife/GoodJobShare | import React from 'react';
import LandingPage from './containers/LandingPage';
import LaborRightsMenu from './containers/LaborRightsMenu';
import LaborRightsSingle from './containers/LaborRightsSingle';
import TimeAndSalary from './components/TimeAndSalary';
import TimeAndSalaryBoard from './containers/SalaryWorkTime/T... |
src/components/SortMenu/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
Image,
TouchableHighlight
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import styles from './style';
import { images, metrics } from '../../theme';
import Icon from 'react-native-vector-icons/FontAwesome'... |
client/src/index.js | Sibilant-Siblings/sibilant-siblings | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App.jsx';
ReactDOM.render(<App />, document.getElementById('app')); |
src/common/CommentBlock/index.js | Mrlyjoutlook/cnode-native | import React, { Component } from 'react';
import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native';
import moment from 'moment';
import { is } from 'immutable';
import HTMLView from 'react-native-htmlview';
import Icon from 'react-native-vector-icons/Ionicons';
import theme from '../../config/styl... |
src/utils/children.js | XiaonuoGantan/material-ui | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export default {
create(fragments) {
let newFragments = {};
let validChildrenCount = 0;
let firstKey;
//Only create non-empty key fragments
for (let key in fragments) {
const currentChild = fragments[key... |
src/common/components/vanilla/table-interactive/table.js | canonical-ols/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import styles from './table.css';
export default function Table(props) {
return (
<section className={ styles.table }>
{ props.children }
</section>
);
}
Table.propTypes = {
children: PropTypes.node
};
|
app/javascript/mastodon/features/account_timeline/components/moved_note.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
example/examples/ViewsAsMarkers.js | carleryd/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.7882... |
src/scenes/home/gala/gala.js | hollomancer/operationcode_frontend | import React from 'react';
import ReactRevealText from 'react-reveal-text';
import commonUrl from 'shared/constants/commonLinks';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './gala.css';
class Gala extends React.Component {
constructor() {
super();
this.state = { sho... |
src/components/ValuesRow.js | cpsubrian/redis-explorer | import React from 'react'
import pureRender from 'pure-render-decorator'
import autobind from 'autobind-decorator'
import ImmutablePropTypes from 'react-immutable-proptypes'
import browseActions from '../actions/browseActions'
import TypeIcon from '../components/TypeIcon'
@pureRender
@autobind
class ValuesRow extends ... |
front-end (deprecated)/src/components/MainPage/Footer.js | iankhor/medrefer | import React from 'react'
const Footer = (props) => {
return (
<div className="generic-center">
<h1>This is from Footer</h1>
</div>
)
}
export default Footer |
app/demo/MyNotificationsScreen.js | 1598692232/rn-xcf | /**
* Created by bll on 2017/7/18.
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
Button,
Image
} from 'react-native';
class MyNotificationsScreen extends React.Component {
static navigationOptions = {
title:'通知',
drawerLabel: '通知',
drawerIcon: ({ tintColor }) => (
<Image
source={r... |
src/app/common/UserInterface/components/FormError.js | toxzilla/app | import React from 'react';
export default class FormError extends React.Component {
static displayName = 'FormError'
static propTypes = {
message: React.PropTypes.object.isRequired
}
render () {
const { message } = this.props;
return (
<div className='error'>
test
</div>
... |
webpack/move_to_foreman/components/common/table/formatters/ellipsisCellFormatter.js | johnpmitsch/katello | import React from 'react';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
import cellFormatter from './cellFormatter';
export default value => cellFormatter(<EllipsisWithTooltip>{value}</EllipsisWithTooltip>);
|
src/SectionFooterCancelLeft/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Button from './../Button';
import styles from './styles.css';
import classNames from 'classnames';
function SectionFooterCancelLeft(props) {
return (
<div className={classNames(styles.wrapper, {
[props.className]: props.className}
)}... |
src/sites/objects.js | cosmowiki/cosmowiki | import React from 'react';
import ObjectsComponent from '../components/objects';
export default class Objects {
static componentWithData(_, appUrl) {
return <ObjectsComponent appUrl={appUrl} />;
}
static fromRawData() {}
}
|
src/components/LandingView/LandingView.js | dggriffin/warframeLFG | require('styles/App.css');
import Rebase from 're-base';
import GroupPostings from './GroupPostings/GroupPostings';
import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
import Paper from 'material-ui/Paper';
import styles from './LandingView.scss'
const base = Rebase.createClass('htt... |
app/view/society/colleague.js | uuom/aitribe | /**
* Created by yangxp5 on 2017/1/11.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableWithoutFeedback,
TouchableOpacity,
TouchableHighlight,
PixelRatio,
Image
} from 'react-native';
import GiftedListView from '../../component/GiftedListView... |
JS Web/ReactJS/Final Project/zoo-market/src/components/postComponents/ListAllPosts.js | mitaka00/SoftUni | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import requester from './../../utils/requester'
import Post from './Post'
class ListAllPosts extends Component{
constructor(){
super()
this.state={
posts:[]
}
this.checkPosts=()=... |
src/svg-icons/editor/format-align-right.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignRight = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignRight = pure(EditorFormatAlign... |
docs/app/Examples/collections/Form/GroupVariations/FormExampleUnstackableGroup.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Form } from 'shengnian-ui-react'
const FormExampleUnstackableGroup = () => (
<Form>
<Form.Group unstackable widths={2}>
<Form.Input label='First name' placeholder='First name' />
<Form.Input label='Last name' placeholder='Last name' />
</Form.Group>
... |
client/src/react/client-all.react.js | sggdv/vegan | import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ClientBox from './client-box';
function updateInstance(template) {
let data = instance;
data.template = template;
console.log('data');
console.log(data);
$.ajax({
type: 'POST',
url: '/update',
data: data,
dataType:... |
docs/src/app/components/pages/components/Snackbar/ExampleAction.js | skarnecki/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
autoHideDur... |
docs/pages/company/lead-designer.js | callemall/material-ui | import React from 'react';
import TopLayoutCompany from 'docs/src/modules/components/TopLayoutCompany';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'company/lead-designer';
const requireDemo = require.context('docs/src/pages/company/lead-designer', false, /\.(js|tsx)$/)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.