Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* ------------------------ */
/* ---- React Classes ----- */
/* ------------------------ */
//RRouter = require("react-router"); //For Routing
RMixIn = require("react-mixin"); //Instead of Meteor Data
//$P = require("react-prefixr"); //Prefixes CSS Strings in .jsx for Brwoser Support
/* ------------------------ */
/* --- React Components --- */
/* ------------------------ */
//ReactBootstrapXXX = require("react-bootstrap").XXX;
RBurgerMenu = require('react-burger-menu').slide;
/* ------------------------ */
/* -------- jQuery -------- */
/* ------------------------ */
var $ = $ = global.$ = require('jquery');
var jQuery = jQuery = global.jQuery = require('jquery');
require('jquery-ui');
/* ------------------------ */
/* ---- jQuery Plugins ---- */
/* ------------------------ */
//require('jquery.panzoom');
/* ------------------------ */
/* ------ Redux Tools ----- */
/* ------------------------ */
import React, {
PropTypes
} from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import $ from 'jquery'
import {
updateStatus,
logout
} from '../../actions'
import renderSettings from '../Settings'
// import Eggs from './components/Eggs'
const Menu = require('react-burger-menu').slide
class MainMenu extends React.Component {
static propTypes = {
updateStatus: PropTypes.func.isRequired,
logout: PropTypes.func.isRequired,
eggs: PropTypes.array,
}
render() {
// const {
// eggs
// } = this.props
return (
<menu>
<div></div></menu>
/**
* Copyright(c) dtysky
* Created: 16/3/20
* Description: Indexes of pages.
*/
'use strict';
import React, { PropTypes } from 'react';
import ReactDom from 'react-dom';
import Book from './book-item';
const Menu = require('react-burger-menu').slide;
import Storage from '../cores/storage';
import Notify from './notify';
import BookPicker from './book-picker';
import { bindFunctions, stringToColor, logError } from '../cores/utils';
import configManager from '../cores/config-manager';
if (process.env.BROWSER) {
require('../theme/styles/sky.css');
require('../theme/styles/books.css');
}
export default class BookList extends React.Component {
constructor(props){
super(props);
this.state = {
import React, { Component, PropTypes } from 'react'
const Menu = require('react-burger-menu').stack
export default class Sidebar extends Component {
static propTypes = {
children: PropTypes.any,
isOpen: PropTypes.bool,
isMenuOpen: PropTypes.func
}
static contextTypes = {
history: PropTypes.object.isRequired
}
constructor (props) {
super(props)
}