path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/Home.js | yaolei/Node-Clound | import React from 'react';
import {bindActionCreators, createStore} from 'redux';
import 'babel-polyfill'; // 为generator 使用
import {connect, Provider} from 'react-redux';
import fetch from 'isomorphic-fetch';
export default class Home extends React.Component {
constructor(props){
super(props);
this.... |
src/components/Header/Header.js | golotiuk/Good_luck | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.scss';
import Link from '../Link';
import Navigation from '../Navigation';
class Header extends Component {
render() {
return (
<div className={s.root}>
<div className... |
src/adjudicator/adjudicationTable.js | dgretho/adjudication | import React from 'react';
import { render } from 'react-dom';
import { Table } from 'react-bootstrap';
function AdjudicationTableRow(props) {
return (
// TODO: Set style using a class
<tr onClick={props.onClick} style={{cursor: 'pointer'}}>
<td>{props.case.address}</td>
<td... |
src/pages/homepage/list/RecommendTopics.js | HeliumLau/Hoop-react | import React from 'react';
import Header from 'components/Header.js';
import ArticleList from 'components/ArticleList.js';
import './normalcontainer.less';
export default class RecommendTopics extends React.Component {
constructor(props) {
super(props);
this.state = {
articlelist: [
... |
friday-ui/src/routes.js | freekbrinkhuis/friday | import React, { Component } from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import App from './Components/App';
import Dashboard from './Components/Dashboard';
import NotFound from './Components/NotFound';
class Routes extends Component {
render(){
return(
<Brows... |
client/src/components/TeamsList/TeamsList.js | ccabrales/espn-fantasy-stats | import React from 'react';
import PropTypes from 'prop-types';
import { Table, Image } from 'semantic-ui-react';
import sortBy from 'lodash.sortby';
import { getValue } from '../../services/utility';
/**
* Display the teams in a sortable table
* @param teamData
*/
class TeamsList extends React.Component {
/**
... |
src/client/components/filter/FilterCards/FilterCards.component.js | DBCDK/content-first | import React from 'react';
import Swiper from 'react-id-swiper';
import {isMobile} from 'react-device-detect';
import Heading from '../../base/Heading';
import Icon from '../../base/Icon';
import T from '../../base/T';
import {withTagsFromUrl} from '../../hoc/AdressBar';
import CardList from './templates/CardList.com... |
app/routes/Course/routes/Announcements/components/Sidebar.js | jefferchang/reactApp | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
src/js/components/app.js | MiladNazeri/stockHelper | import '../stylesheets/main.scss';
import React from 'react';
class App extends React.Component {
constructor(props){
super(props);
this.state={
}
}
render(){
return(
<div>
{this.props.children}
</div>
)
}
}
export default A... |
internals/templates/notFoundPage.js | ReelTalkers/reeltalk-web | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react'
export function NotFound() {
return (
<h1>Page Not Found</h1>
)
}
export default NotFound
|
packages/reactor-conference-app/src/schedule/Schedule.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { toggleSearch, filterByDay, toggleFavorite, filterByFavorites } from './actions';
import { setTitle } from '../actions';
import { loadEvent } from '../event/actions';
import { Container, Button, TabPanel, Panel, Toolbar, SearchFi... |
test/test_helper.js | mcrice123/simple-react-example | 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... |
docs/site/src/demos/dialogs/AlertDialog.js | und3fined/material-ui | // @flow weak
import React, { Component } from 'react';
import Button from 'material-ui/Button';
import {
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
export default class AlertDialog extends Component {
state = {
open: false,
};
handleRequest... |
public/src/admin/editor/BlockStyleControls.react.js | SLedunois/personal-website | import React from 'react';
import StyleButton from './StyleButton.react';
import BLOCK_TYPES from './blockTypes';
const BlockStyleControls = props => {
const { editorState } = props;
const selection = editorState.getSelection();
const blockType = editorState
.getCurrentContent()
.getBlockForKey(selectio... |
src/components/Navigation.js | mgaebler/kicknow-client-web | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { openDrawer, closeDrawer } from '../modules/navigation/actions'
import {
Toolbar,
ToolbarRow,
ToolbarTitle,
ToolbarSection,
Icon
} from 'react-mdc-web'
import Menu from './Menu'
class Navigation ext... |
src/settings/Layout.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import BackgroundView from '@ui/BackgroundView';
import { ResponsiveSideBySideView as SideBySideView, Right, Left } from '@ui/SideBySideView';
import withUser from '@data/withUser';
import UserAvatarView from '@ui/UserAvatarView';
import MediaQuery from '@u... |
frontend/src/Settings/Profiles/Delay/DelayProfileDragSource.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { DragSource, DropTarget } from 'react-dnd';
import { findDOMNode } from 'react-dom';
import { DELAY_PROFILE } from 'Helpers/dragTypes';
import DelayProfile from './DelayProfile';
import styles from... |
src/controls/Inline/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getSelectionInlineStyle } from 'draftjs-utils';
import { RichUtils, EditorState, Modifier } from 'draft-js';
import { forEach } from '../../utils/common';
import LayoutComponent from './Component';
export default class... |
Intermediate Front End Development Projects/twitch-client/src/App.js | shashank7200/FreeCodeCamp-Projects | import React, { Component } from 'react';
import Home from './helpers/Home'
import './App.css'
class App extends Component {
render() {
return (
<div className="App">
<Home />
</div>
);
}
}
export default App;
|
src/components/grid.js | JiaoJian1221/react-mdc-web | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import "@material/layout-grid/dist/mdc.layout-grid.min.css";
const LAYOUT_GRID = 'mdc-layout-grid';
export class Grid extends React.Component {
static propTypes = {
className: PropTypes.string,
children: Pro... |
src/Parser/GuardianDruid/Modules/Core/DamageTaken.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import MainDamageTaken from 'Parser/Core/Modules/DamageTaken';
import Icon from 'common/Icon';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
class DamageTaken extends MainDamageTaken {
sta... |
src/renderer/views/root.js | minodisk/markn | import React from 'react'
import classnames from 'classnames'
import Head from './head'
import Body from './body'
import windowStore from '../stores/window'
import appAction from '../actions/app'
export default class RootComponent extends React.Component {
displayName = 'RootComponent'
constructor (props) {
s... |
scenes/NotesEditScene.js | hailey123/react-native-notes | import React, { Component } from 'react';
import {
View,
Text,
Navigator,
TouchableHighlight
} from 'react-native';
export default class NotesEditScene extends Component {
render() {
return (
<View>
<Text>Edit Notes Here</Text>
<Text>Editing {this... |
client/pages/Sandbox.js | fatiherikli/komposto.org | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Layout from '../components/Layout';
import Canvas from '../components/Canvas';
import Editor from '../components/Editor';
import { messages } from '../constants';
import { parse } from '../parser';
export default class SandboxContaine... |
web/dashboard/src/layout/ReactPanel.js | unicesi/pascani-library | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
require("../img/close.png");
require("../img/expand.png");
require("../img/collapse.png");
class ReactPanel extends Component {
static defaultProps = {
active: false,
floating: false,
width: 'regular',
id: undefined,
onBeforeOpen:... |
fields/types/name/NameColumn.js | kumo/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.... |
examples/todomvc/containers/App.js | asaf/redux | import React from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App {
render() {
return (
<Provider redux={redux}>
{() => <TodoApp /... |
node_modules/react-router/modules/IndexRedirect.js | SlateRobotics/slate-website | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createCla... |
src/CarouselItem.js | azmenak/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/DropdownButton.js | OpenKGB/webcode | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/components/Header.js | guivazcabral/site | import React from 'react';
import { Link } from 'react-router';
const Header = () => {
return (
<div className="content header row">
<div className="small-12 medium-12 large-12 columns">
<div className="title">
<Link to={'/'}>Guilherme Cabral</Link>
</div>
<div className="... |
app/components/ListaMercados.js | cosio55/app-informacion-bitso | import React, { Component } from 'react';
import 'whatwg-fetch';
import formatMoney from 'accounting-js/lib/formatMoney.js'
import styles from './ListaMercados.css';
import ItemMercado from './ItemMercado';
import nombreMercado from '../ayudas/nombreMercado.json';
class ListaMercados extends Component {
constructo... |
src/components/common/forms/NewsletterSubscription.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
import config from '../../../config';
import {isValidEmail} from '../../../utils/strings';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Button from '../buttons/Button';
i... |
docs/pages/api-docs/table-sort-label.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/table-sort-label';
const requireRaw = require.context('!raw-loader!./', false, /\/table-sort-label\.md$/);
export default fu... |
src/svg-icons/communication/phonelink-erase.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
app/containers/GoogleMapTemplate/index.js | 7ruth/PadStats2 | import React from 'react';
import PropTypes from 'prop-types';
import invariant from 'invariant';
import { camelize } from '../../utils/GoogleMapsUtils/String';
import { makeCancelable } from '../../utils/GoogleMapsUtils/cancelablePromise';
import mapStyles from './GoogleMapTemplateStyles';
import rainbow from "./utils... |
example/components/App.js | nrdobie/css-objectify-loader | import React, { Component } from 'react';
import 'whatwg-fetch';
import styles from './App.css';
export default class App extends Component {
constructor(...args) {
super(...args);
this.state = {};
}
componentDidMount() {
fetch('https://www.reddit.com/r/reactjs.json')
.then(response => respo... |
src/svg-icons/action/line-style.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLineStyle = (props) => (
<SvgIcon {...props}>
<path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h... |
client/src/components/inbox.js | TeamAusDigital/apec-connect | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import actions from 'state/actions';
import { connect } from 'react-redux';
import AppBarMain from '../components/AppBarMain';
import Paper from 'material-ui/Paper';
import StarRating from '../compon... |
app/App.js | wbowling/deciderer | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, IndexRoute } from 'react-router'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import MainLayout from './components/MainLayout'
import ShowPoll from './components/ShowPoll'
import CreatePoll from './components/Creat... |
src/js/entry.js | gitwillsky/react-template | import React from 'react';
import {render} from 'react-dom';
|
15-react-router-v4/src/components/topics.js | iproduct/course-node-express-react | import React from 'react';
import { NavLink, Route } from 'react-router-dom';
import './Topics.css';
import { withParams } from './hocs';
import Topic from './Topic'
const Topics = ({ match, location, history, topics }) => (
<div className="Topics">
<h2>Blog Topics</h2>
<nav className="Topics-nav">... |
src/index.js | CodeDraken/IdeaZone | import React from 'react';
import ReactDOM from 'react-dom';
import { Route, Router, IndexRoute, hashHistory } from 'react-router';
import './css/main.css';
import App from './components/App';
import IdeaPage from './components/idea-page/IdeaPage';
import SearchPage from './components/search-page/SearchPage';
import ... |
examples/files/app/List.js | dabbott/react-native-express | import React from 'react'
import { FlatList, StyleSheet, Text, TouchableOpacity } from 'react-native'
export default function List({ items, onPressItem }) {
return (
<FlatList
data={items}
keyExtractor={(item) => item.id}
renderItem={({ item, index }) => (
<TouchableOpacity
st... |
examples/shared-root/app.js | skevy/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the URL.
When routes have no path, they never match themselves but their
chil... |
src/main.js | swirlycheetah/react-flux-promises | import React from 'react'
import EmojiComponent from './emojiComponent'
React.render(<EmojiComponent />, document.body)
|
index.js | Toodledo/react-infinite-calendar | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import InfiniteCalendar from './src/index'
var badges = {"20160612":2, "20160621":5};
var today = new Date();
var minDate = new Date(2014,0,1);
var nextweek = new Date(2016,5,29);
render(<InfiniteCalendar badges={badges} selectedDate... |
app/containers/PrivateRoot/Routes.js | danielmoraes/invoices-web-client | import React from 'react'
import { Redirect, Route, Switch } from 'react-router-dom'
import {
Invoice,
Invoices,
User,
Users,
SignOut
} from 'containers'
import { UserRole } from 'api/enums'
import * as routes from 'routes'
const Routes = ({ role }) => (
<Switch>
<Route path={routes.account()} compone... |
app/javascript/mastodon/features/lists/index.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
src/components/ProjectsMain.js | mikalmorello/mikalmorello.github.io | import React from 'react';
import {
Link
} from 'react-router-dom';
import Fade from 'react-reveal/Fade';
class ProjectsMain extends React.Component {
render(){
return (
<main id="main" className="main">
<Fade>
<section id="sectionProjects" className="section section--projects">
... |
src/Task.js | ml7757/To-Do-React | import React from 'react';
import jQuery from 'jquery';
import EditableItem from './EditableItem';
class Task extends React.Component{
constructor(){
super();
this.state = {
}
}
toggleChecked(event) {
this.updateTask({
id: this.props.id,
task_description: this.pr... |
third_party/prometheus_ui/base/web/ui/node_modules/@wojtekmaj/enzyme-adapter-react-17/src/detectFiberTags.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import ReactDOM from 'react-dom';
import { fakeDynamicImport } from '@wojtekmaj/enzyme-adapter-utils';
function getFiber(element) {
const container = global.document.createElement('div');
let inst = null;
class Tester extends React.Component {
render() {
inst = this;
re... |
src/App.js | Software-Eng-THU-2015/pacific-rim | import React, { Component } from 'react';
import { Router, Route, Link } from 'react-router';
import 'normalize.css';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
} |
src/decorators/withViewport.js | bootcampcamp/givingbranch | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/Rating.js | zanjs/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import { requireCss } from './themes'
requireCss('rating')
let themes = {
// "star": [Icon, Icon],
// "heart": [img, img]
}
class Rating extends React.Component {
static displayName = 'Rating'
static propTypes = {
className: Rea... |
ReactReduxRoutingAutoRehydrate/src/containers/BlueScreenContainer.js | nitindhar7/tutorials | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {Actions} from 'react-native-router-flux'
import { connect } from 'react-redux'
import { updateCopy } from '../actions'
import BlueScreen from '../presenters/BlueScreen'
const mapSt... |
examples/todos/src/components/App.js | heyesther/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
packages/mineral-ui-icons/src/IconMarkunreadMailbox.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconMarkunreadMailbox(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...... |
src/pages/VerifyEmailPage.js | ramimuurimaki/stormpath-express-react-example | import React from 'react';
import DocumentTitle from 'react-document-title';
import { VerifyEmailView } from 'react-stormpath';
export default class VerifyEmailPage extends React.Component {
render() {
var spToken = this.props.location.query.sptoken;
return (
<DocumentTitle title={`Verify Email`}>
... |
src/Debounce.js | jaredlunde/react-cake | import React from 'react'
import PropTypes from 'prop-types'
import {debounce} from './utils'
/**
<Debounce wait={200} initialState={{scrollY: 0}}>
{
({debounceState, scrollY}) => (
<Scroller
onScroll={
({scrollY}) => debounceState(
prevState => scrollY > 30
? {... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/Label.js | xuorig/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js | w01fgang/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import {fullWhite} from 'material-ui/styles/colors';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const style = {
margin: 12,
};
const RaisedButtonExampleIcon = () => (
... |
src/components/PairedButtons/PairedButtons.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import styled from 'styled-components'
import PropTypes from 'prop-types';
import Button from '../Button';
const ALIGN_RIGHT = 'align_right';
const ALIGN_LEFT = 'align_left';
const ButtonsContainer = styled.div`
display: grid;
grid-template-columns: ${props => props.gridTemplateColumn... |
client/src/components/roms/delete/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import reactStringReplace from 'react-string-replace';
import Button from 'react-bootstrap/lib/Button';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import Modal from 'react-bootstrap/lib/M... |
client/components/app/index.js | 01laky/isomorphic-go-react-sandbox | import React, { Component } from 'react';
import Helmet from 'react-helmet';
export default class App extends Component {
render() {
return <div className="container-fluid">
<Helmet title='Go isomorphic sandbox' />
{this.props.children}
</div>;
}
}
|
packages/material-ui-icons/src/DriveEta.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DriveEta = props =>
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.... |
pages/index.js | bigwisu/asik-sehat | import Head from 'next/head'
import React from 'react'
import PhotoGrid from '../components/PhotoGrid'
function IndexPage () {
return (
<div>
<Head>
<title>Asik Fit!</title>
</Head>
<PhotoGrid />
</div>
)
}
export default IndexPage
|
src/App.js | parzonka/react-redux-seed | import React from 'react'
import ReactDOM from 'react-dom'
import Layout from './Layout/Layout'
import { Provider } from 'react-redux'
import { newStore } from '../src/Store'
import 'bootstrap/dist/css/bootstrap.min.css'
const store = newStore();
window.onload = () => {
ReactDOM.render(
<Provider store={store}>... |
src/components/log.js | LaserWeb/lw.controller | import React from 'react';
import ReactDOM from 'react-dom';
// level STD, INFO, WARN, DANGER, SUCCESS
const CommandHistory_ICON = ['terminal', 'info-circle', 'exclamation-triangle', 'exclamation-circle', 'check-circle'];
const CommandHistory_CLASS = ['default', 'info', 'warning', 'danger', 'success'];
function creat... |
src/app/container/checkout-address-done-partial.js | all3dp/printing-engine-client | import React from 'react'
import {connect} from 'react-redux'
import compose from 'recompose/compose'
import {getStateName, getCountryName} from '../service/country'
import CheckoutStepSection from '../component/checkout-step-section'
import Link from '../component/link'
import Grid from '../component/grid'
import Co... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | ro-savage/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({ id, ...rest } = { id: 0, user: { id: 42, ... |
scripts/index.js | linc01n/react-qr-app | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
docs/app/Examples/views/Feed/Content/FeedExampleImageLabelShorthand.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleImageLabelShorthand = () => (
<Feed>
<Feed.Event
image='http://semantic-ui.com/images/avatar/small/elliot.jpg'
content='You added Elliot Fu to the group Coworkers'
/>
<Feed.Event>
<Feed.Label image='http... |
app/javascript/mastodon/components/video_player.js | ebihara99999/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
const messages = defineMessages({
toggle_... |
demo/src/welcome.js | RinconStrategies/react-web-animation | import React from 'react';
import { Animated } from 'react-web-animation';
const getCenterKeyFrames = () => [
{ transform: 'scale(1)', fill: '#00D8FF', opacity: 1, offset: 0 },
{ transform: 'scale(.5)', fill: '#00D822', opacity: 0.5, offset: 0.3 },
{ transform: 'scale(.667)', fill: '#002222', opacity: 0.667, off... |
packages/material/src/components/IconSubmitButton.native.js | wq/wq.app | import React from 'react';
import { useComponents } from '@wq/react';
import { useFormikContext } from 'formik';
export default function IconSubmitButton(props) {
const { IconButton } = useComponents(),
{ isSubmitting, submitForm } = useFormikContext();
return (
<IconButton disabled={isSubmitt... |
examples/with-decorator/grid.example.js | babotech/react-ingrid | import {ingrid} from '../../lib'
import React from 'react'
import ReactDOM from 'react-dom'
import rndoam from 'rndoam'
let i = 0
const itemsCount = 10000
const items = rndoam.collection({
id: () => i++
}, itemsCount)
let ItemComponent = ({data}) => {
const {id} = data
const palletSize = 2
const col... |
src/client/routes.js | nemecec/base | 'use strict'
import 'babel/polyfill';
import React from 'react';
import Router from 'react-router';
import App from './components/app';
import UserHome from './components/user-home';
import SignIn from './components/sign-in';
import Error from './components/error';
var DefaultRoute = Router.DefaultRoute;
var Link = R... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | browncs4sg/website | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/App/shared/MainMenu/index.js | ryanswapp/react-starter-template | import React from 'react';
import { connect } from 'react-redux';
import Actions from 'App/state/actions.js';
import style from './style';
import CSSModules from 'react-css-modules';
import { Link } from 'react-router';
const MainMenu = React.createClass({
componentDidMount() {
const { currentUser, dispatch } = t... |
src/containers/auth/AuthenticateView.js | Jenny-L/lumohacks2017 | /**
* Authenticate Screen
* - Entry screen for all authentication
* - User can tap to login, forget password, signup...
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
} from 'react-native';
... |
node_modules/react-smooth/demo/Gossip/app.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import Animate from 'react-smooth';
import React, { Component } from 'react';
import ReactDom from 'react-dom';
const getSTEPS = onAnimationEnd => [{
duration: 1000,
style: {
opacity: 0,
},
}, {
duration: 1000,
style: {
opacity: 1,
transformOrigin: '110px 110px',
transform: 'rotate(0deg) tran... |
docs/src/NavbarPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import iconLinksNavbar from '../../examples/IconLinksNavbar';
import leftAligne... |
admin/client/App/components/Navigation/Mobile/SectionItem.js | Pop-Code/keystone | /**
* A mobile section
*/
import React from 'react';
import MobileListItem from './ListItem';
import { Link } from 'react-router';
const MobileSectionItem = React.createClass({
displayName: 'MobileSectionItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
curren... |
docs/app/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
// ----------------------------------------
// Rendering
// ----------------------------------------
const mountNode = document.createElement('div')
document.body.appendChild(mountNode)
const render = (NewApp) => ReactDOM.render(<NewA... |
app/javascript/mastodon/features/ui/components/columns_area.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
docs/app/Examples/collections/Table/Variations/TableExampleFixed.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleFixed = () => {
return (
<Table fixed>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Description</... |
src/components/card.js | ydsood/policyPrototype | import React, { Component } from 'react';
import CardItem from './card_item';
import {fetchPolicy} from '../actions';
import { connect } from 'react-redux';
import { Thumbnail } from 'react-bootstrap';
class Card extends Component {
constructor(props) {
super(props);
this.state = {
isSearchResult: prop... |
packages/react-native-renderer/src/ReactNativeTypes.js | dilidili/react | /**
* 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.
*
* @format
* @flow
*/
import React from 'react';
export type MeasureOnSuccessCallback = (
x: number,
y: number,
width: number,
... |
src/js/components/Footer/Footer.js | HewlettPackard/grommet | import React from 'react';
import { Box } from '../Box';
const Footer = ({ ...rest }) => (
<Box
as="footer"
align="center"
direction="row"
flex={false}
gap="medium"
justify="between"
{...rest}
/>
);
export { Footer };
|
demos/forms-demo/src/components/CurrentView/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
import Simple from '../Simple'
const VIEWS = {
Simple
}
export default connect({
currentView: state`app.currentView`
},
function CurrentView ({currentView}) {
const View = VIEWS[currentView]
return (
<div ... |
src/js/components/Today.js | farahat80/react-open-weather | import React from 'react';
import PropTypes from 'prop-types';
import { getLabelsByLanguage } from '../utils';
import useStyles from './Today.styles';
const Today = ({ current, unitsLabels, lang, theme }) => {
const classes = useStyles({ theme });
const labels = getLabelsByLanguage(lang);
const hasRange =
cu... |
modules/State.js | darul75/react-router | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that need to know the path, routes, URL
* params and query that are currently active.
*
* Example:
*
* import { State } from 'react-router';
*
* var AboutLink = React.createClass({
* mixins: [ State ],
* re... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | pixiv/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
src/svg-icons/content/create.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentCreate = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/... |
src/containers/Shuffle/config.js | EncontrAR/backoffice | import React from 'react';
import IntlMessages from '../../components/utility/intlMessages';
import Img1 from '../../image/1.jpg';
import Img2 from '../../image/2.jpg';
import Img3 from '../../image/3.jpg';
import Img4 from '../../image/4.jpg';
import Img5 from '../../image/5.jpg';
import Img6 from '../../image/6.jpg';... |
src/components/Loading/Loading.js | fforres/coworks_client_side | import React, { Component } from 'react';
class Loading extends Component {
render () {
return (
<div>
<center>
<h1><i className='fa fa-spinner fa-spin' /> </h1>
<h1> Loading... </h1>
</center>
</div>
);
}
}
export { Loading };
export default Loading;
|
ges-client/src/components/Dashboard.js | martenhz/ges | import React from 'react';
export default class Dashboard extends React.Component {
render() {
return (
<div>
<h1>Dashboard</h1>
</div>
)
}
} |
src/js/components/Tabs/stories/Scrollable.js | grommet/grommet | import React from 'react';
import { Box, Heading, Tab, Tabs, Text, Paragraph } from 'grommet';
import { TreeOption } from 'grommet-icons';
const ScrollableTabs = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box fill>
<Tabs flex>
<Tab title="Tab 1">
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.