Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');
var CardHitsGridItem = React.createClass({
getInitialState: function() {
var {bemBlocks, result} = this.props;
var source = result._source;
// At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
// Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
return {
clickedCard: '',
currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');
var disqus = new Disqus({
api_secret : 'var',
api_key : 'var',
access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
// Turn cards object keys into the format returned by the python script.
// Just go in and create a new key, and replace each object's key with the new key.
/*for (var key in modCards) {
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');
var CardHitsGridItem = React.createClass({
getInitialState: function() {
var {bemBlocks, result} = this.props;
var source = result._source;
// At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
// Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
return {
clickedCard: '',
currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
currentFlavor: source.multiverseids[result._source.multiverseids.length - 1].flavor,
currentOriginalText: source.multiverseids[result._source.multiverseids.length - 1].originalText,
import * as React from 'react'
import 'react-datepicker/dist/react-datepicker.css'
import { connect } from 'react-redux'
import { Tabs } from 'react-tabs'
import { Footer } from 'components/organisms/Footer'
import { Navbar } from 'components/organisms/Navbar'
import 'extensions/String'
import './Root.scss'
Tabs.setUseDefaultStyles(false)
interface RootLayoutProps {
readonly location?: {
readonly pathname: string,
}
readonly children?: React.ReactNode
}
function render(props: RootLayoutProps) {
// TODO: templates rather than this url-matching monstrosity
const location = props.location.pathname.trimLeftByPattern('/')
const worksUrl = 'works'
const navbarShadow = ![worksUrl, ''].includes(location)
const navbarTransparent = [''].includes(location)
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');
var disqus = new Disqus({
api_secret : 'var',
api_key : 'var',
access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
// Turn cards object keys into the format returned by the python script.
// Just go in and create a new key, and replace each object's key with the new key.
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');
var CardHitsGridItem = React.createClass({
getInitialState: function() {
var {bemBlocks, result} = this.props;
var source = result._source;
// At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
// Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
return {
clickedCard: '',
currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
currentFlavor: source.multiverseids[result._source.multiverseids.length - 1].flavor,
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = ReactTabs.Tabs;
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
import ReactStars from './modReactStars.js';
var Firebase = require('firebase');
var CardHitsGridItem = React.createClass({
getInitialState: function() {
var {bemBlocks, result} = this.props;
var source = result._source;
// At some point, have all multiverse-specific stuff (id, flavour text, original text) as states.
// Then, when you click the symbol, all we have to do is load that multi's data into the states which are already in the renderer.
return {
clickedCard: '',
currentMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentImageMultiId: source.multiverseids[result._source.multiverseids.length - 1].multiverseid,
currentArtist: source.multiverseids[result._source.multiverseids.length - 1].artist,
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as _ from "lodash";
import "searchkit/theming/theme.scss";
import "./styles/customisations.scss";
import {TagFilter, TagFilterConfig, TagFilterList} from 'searchkit';
var ent = require('ent');
const nl2br = require('react-nl2br');
var ReactTabs = require('react-tabs');
var Tab = ReactTabs.Tab;
var Tabs = require("./Tabs");
var TabList = ReactTabs.TabList;
var TabPanel = ReactTabs.TabPanel;
var Rating = require('react-rating');
import ReactStars from './modReactStars.js';
var ReactDisqusThread = require('react-disqus-thread');
var Firebase = require('firebase');
/*var Disqus = require('disqus');
var disqus = new Disqus({
api_secret : 'var',
api_key : 'var',
access_token : 'var'
});*/
//var cards = require('./multiIdName.json');
//var modCards = cards;
return _react2.default.createElement(
_panel2.default,
{ name: translator.t('Guides') },
_react2.default.createElement(
_reactTabs.Tabs,
{ id: 'guidesTabs', style: tabStyle },
_react2.default.createElement(
_reactTabs.TabList,
null,
_react2.default.createElement(
_reactTabs.Tab,
null,
translator.t('Horizontal')
),
_react2.default.createElement(
_reactTabs.Tab,
null,
translator.t('Vertical')
)
),
_react2.default.createElement(
_reactTabs.TabPanel,
null,
_react2.default.createElement(
'table',
{ style: tableTabStyle },
_react2.default.createElement(
'tbody',
null,
guides.get('horizontal').entrySeq().map(function (_ref, ind) {
var _ref2 = _slicedToArray(_ref, 2),
hgKey = _ref2[0],
projectActions = _context.projectActions,
translator = _context.translator;
var guides = state.scene.guides;
return _react2.default.createElement(
_panel2.default,
{ name: translator.t('Guides') },
_react2.default.createElement(
_reactTabs.Tabs,
{ id: 'guidesTabs', style: tabStyle },
_react2.default.createElement(
_reactTabs.TabList,
null,
_react2.default.createElement(
_reactTabs.Tab,
null,
translator.t('Horizontal')
),
_react2.default.createElement(
_reactTabs.Tab,
null,
translator.t('Vertical')
)
),
_react2.default.createElement(
_reactTabs.TabPanel,
null,
_react2.default.createElement(
'table',
{ style: tableTabStyle },
_react2.default.createElement(