mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 09:33:08 +00:00
update import paths
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@import './shared/naturalcrit/styles/colors.less';
|
||||
|
||||
.renderWarnings {
|
||||
position : relative;
|
||||
float : right;
|
||||
|
||||
@@ -3,13 +3,13 @@ import './brewRenderer.less';
|
||||
import React, { useState, useRef, useMemo, useEffect } from 'react';
|
||||
import _ from 'lodash';
|
||||
|
||||
import MarkdownLegacy from 'markdownLegacy.js';
|
||||
import Markdown from 'markdown.js';
|
||||
import MarkdownLegacy from './shared/markdownLegacy.js';
|
||||
import Markdown from './shared/markdown.js';
|
||||
import ErrorBar from './errorBar/errorBar.jsx';
|
||||
import ToolBar from './toolBar/toolBar.jsx';
|
||||
|
||||
//TODO: move to the brew renderer
|
||||
import RenderWarnings from 'client/components/renderWarnings/renderWarnings.jsx';
|
||||
import RenderWarnings from '../../components/renderWarnings/renderWarnings.jsx';
|
||||
import NotificationPopup from './notificationPopup/notificationPopup.jsx';
|
||||
import Frame from 'react-frame-component';
|
||||
import dedent from 'dedent';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
@import './shared/naturalcrit/styles/colors.less';
|
||||
|
||||
.errorBar {
|
||||
position : absolute;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import './notificationPopup.less';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import Markdown from 'markdown.js';
|
||||
import Markdown from './shared/markdown.js';
|
||||
|
||||
import Dialog from '../../../components/dialog.jsx';
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import './client/homebrew/navbar/navbar.less';
|
||||
|
||||
.popups {
|
||||
position : fixed;
|
||||
top : calc(@navbarHeight + @viewerToolsHeight);
|
||||
|
||||
@@ -43,4 +43,4 @@ function safeHTML(htmlString) {
|
||||
return div.innerHTML;
|
||||
};
|
||||
|
||||
module.exports.safeHTML = safeHTML;
|
||||
export default safeHTML;
|
||||
@@ -4,7 +4,7 @@ import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import _ from 'lodash';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import Combobox from 'client/components/combobox.jsx';
|
||||
import Combobox from '../../../components/combobox.jsx';
|
||||
import TagInput from '../tagInput/tagInput.jsx';
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import 'naturalcrit/styles/colors.less';
|
||||
@import './shared/naturalcrit/styles/core.less';
|
||||
|
||||
.userThemeName {
|
||||
padding-right : 10px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import request from 'superagent';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
const Account = createReactClass({
|
||||
displayName : 'AccountNavItem',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import './error-navitem.less';
|
||||
import React from 'react';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
const ErrorNavItem = ({ error = '', clearError })=>{
|
||||
const response = error.response;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import './shared/naturalcrit/styles/core.less';
|
||||
|
||||
.navItem.error {
|
||||
position : relative;
|
||||
background-color : @red;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import dedent from 'dedent';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
export default function(props){
|
||||
return <Nav.dropdown>
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import Moment from 'moment';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
|
||||
const MetadataNav = createReactClass({
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import 'client/homebrew/navbar/navbar.less';
|
||||
import './client/homebrew/navbar/navbar.less';
|
||||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import _ from 'lodash';
|
||||
import cx from 'classnames';
|
||||
|
||||
import NaturalCritIcon from 'client/components/svg/naturalcrit-d20.svg.jsx';
|
||||
import NaturalCritIcon from './client/components/svg/naturalcrit-d20.svg.jsx';
|
||||
|
||||
const Nav = {
|
||||
base : createReactClass({
|
||||
|
||||
@@ -2,7 +2,7 @@ import './navbar.less';
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import PatreonNavItem from './patreon.navitem.jsx';
|
||||
|
||||
const Navbar = createReactClass({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import 'naturalcrit/styles/colors.less';
|
||||
@import './shared/naturalcrit/styles/core.less';
|
||||
|
||||
@navbarHeight : 28px;
|
||||
@viewerToolsHeight : 32px;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import _ from 'lodash';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import { splitTextStyleAndMetadata } from '../../../shared/helpers.js';
|
||||
|
||||
const BREWKEY = 'HB_newPage_content';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
export default function(props){
|
||||
return <Nav.item
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import { printCurrentBrew } from '../../../shared/helpers.js';
|
||||
|
||||
export default function(){
|
||||
|
||||
@@ -3,7 +3,7 @@ import createReactClass from 'create-react-class';
|
||||
import _ from 'lodash';
|
||||
import Moment from 'moment';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
const EDIT_KEY = 'HB_nav_recentlyEdited';
|
||||
const VIEW_KEY = 'HB_nav_recentlyViewed';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import dedent from 'dedent';
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
const getShareId = (brew)=>(
|
||||
brew.googleId && !brew.stubbed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
|
||||
export default function (props) {
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import moment from 'moment';
|
||||
import UIPage from '../basePages/uiPage/uiPage.jsx';
|
||||
import NaturalCritIcon from 'client/components/svg/naturalcrit-d20.svg.jsx';
|
||||
import NaturalCritIcon from './client/components/svg/naturalcrit-d20.svg.jsx';
|
||||
|
||||
let SAVEKEY = '';
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@ import './uiPage.less';
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||
|
||||
|
||||
const UIPage = createReactClass({
|
||||
|
||||
@@ -4,25 +4,25 @@ import './editPage.less';
|
||||
// Common imports
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import Markdown from 'markdown.js';
|
||||
import Markdown from './shared/markdown.js';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
||||
import { printCurrentBrew, fetchThemeBundle, splitTextStyleAndMetadata } from '../../../../shared/helpers.js';
|
||||
|
||||
import SplitPane from 'client/components/splitPane/splitPane.jsx';
|
||||
import SplitPane from './client/components/splitPane/splitPane.jsx';
|
||||
import Editor from '../../editor/editor.jsx';
|
||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
|
||||
// Page specific imports
|
||||
@@ -31,7 +31,7 @@ import { md5 } from 'hash-wasm';
|
||||
import { gzipSync, strToU8 } from 'fflate';
|
||||
import { makePatches, stringifyPatches } from '@sanity/diff-match-patch';
|
||||
|
||||
import ShareNavItem from 'client/homebrew/navbar/share.navitem.jsx';
|
||||
import ShareNavItem from './client/homebrew/navbar/share.navitem.jsx';
|
||||
import LockNotification from './lockNotification/lockNotification.jsx';
|
||||
import { updateHistory, versionHistoryGarbageCollection } from '../../utils/versionHistory.js';
|
||||
import googleDriveIcon from '../../googleDrive.svg';
|
||||
|
||||
@@ -14,15 +14,15 @@ import SplitPane from '../../../components/splitPane/splitPane.jsx';
|
||||
import Editor from '../../editor/editor.jsx';
|
||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
|
||||
|
||||
|
||||
@@ -4,25 +4,25 @@ import './newPage.less';
|
||||
// Common imports
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import Markdown from 'markdown.js';
|
||||
import Markdown from './shared/markdown.js';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { DEFAULT_BREW } from '../../../../server/brewDefaults.js';
|
||||
import { printCurrentBrew, fetchThemeBundle, splitTextStyleAndMetadata } from '../../../../shared/helpers.js';
|
||||
|
||||
import SplitPane from 'client/components/splitPane/splitPane.jsx';
|
||||
import SplitPane from './client/components/splitPane/splitPane.jsx';
|
||||
import Editor from '../../editor/editor.jsx';
|
||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
|
||||
// Page specific imports
|
||||
|
||||
@@ -2,13 +2,13 @@ import './sharePage.less';
|
||||
import React, { useState, useEffect, useCallback } from 'react';
|
||||
import { Meta } from 'vitreum/headtags';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import MetadataNav from 'client/homebrew/navbar/metadata.navitem.jsx';
|
||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import MetadataNav from './client/homebrew/navbar/metadata.navitem.jsx';
|
||||
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||
|
||||
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
||||
|
||||
@@ -3,15 +3,15 @@ import _ from 'lodash';
|
||||
|
||||
import ListPage from '../basePages/listPage/listPage.jsx';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import NewBrew from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
||||
import VaultNavitem from 'client/homebrew/navbar/vault.navitem.jsx';
|
||||
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import NewBrew from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||
import VaultNavitem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||
|
||||
const UserPage = (props)=>{
|
||||
props = {
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
import './vaultPage.less';
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
|
||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
||||
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
||||
import NewBrew from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
||||
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||
import NewBrew from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||
import BrewItem from '../basePages/listPage/brewItem/brewItem.jsx';
|
||||
import SplitPane from 'client/components/splitPane/splitPane.jsx';
|
||||
import SplitPane from './client/components/splitPane/splitPane.jsx';
|
||||
import ErrorIndex from '../errorPage/errors/errorIndex.js';
|
||||
|
||||
import request from '../../utils/request-middleware.js';
|
||||
|
||||
Reference in New Issue
Block a user