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 {
|
.renderWarnings {
|
||||||
position : relative;
|
position : relative;
|
||||||
float : right;
|
float : right;
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ import './brewRenderer.less';
|
|||||||
import React, { useState, useRef, useMemo, useEffect } from 'react';
|
import React, { useState, useRef, useMemo, useEffect } from 'react';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import MarkdownLegacy from 'markdownLegacy.js';
|
import MarkdownLegacy from './shared/markdownLegacy.js';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
import ErrorBar from './errorBar/errorBar.jsx';
|
import ErrorBar from './errorBar/errorBar.jsx';
|
||||||
import ToolBar from './toolBar/toolBar.jsx';
|
import ToolBar from './toolBar/toolBar.jsx';
|
||||||
|
|
||||||
//TODO: move to the brew renderer
|
//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 NotificationPopup from './notificationPopup/notificationPopup.jsx';
|
||||||
import Frame from 'react-frame-component';
|
import Frame from 'react-frame-component';
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@import './shared/naturalcrit/styles/colors.less';
|
||||||
|
|
||||||
.errorBar {
|
.errorBar {
|
||||||
position : absolute;
|
position : absolute;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import './notificationPopup.less';
|
import './notificationPopup.less';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import request from '../../utils/request-middleware.js';
|
import request from '../../utils/request-middleware.js';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
import Dialog from '../../../components/dialog.jsx';
|
import Dialog from '../../../components/dialog.jsx';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import './client/homebrew/navbar/navbar.less';
|
||||||
|
|
||||||
.popups {
|
.popups {
|
||||||
position : fixed;
|
position : fixed;
|
||||||
top : calc(@navbarHeight + @viewerToolsHeight);
|
top : calc(@navbarHeight + @viewerToolsHeight);
|
||||||
|
|||||||
@@ -43,4 +43,4 @@ function safeHTML(htmlString) {
|
|||||||
return div.innerHTML;
|
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 createReactClass from 'create-react-class';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import request from '../../utils/request-middleware.js';
|
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';
|
import TagInput from '../tagInput/tagInput.jsx';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import 'naturalcrit/styles/colors.less';
|
@import './shared/naturalcrit/styles/core.less';
|
||||||
|
|
||||||
.userThemeName {
|
.userThemeName {
|
||||||
padding-right : 10px;
|
padding-right : 10px;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import createReactClass from 'create-react-class';
|
import createReactClass from 'create-react-class';
|
||||||
import request from 'superagent';
|
import request from 'superagent';
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
const Account = createReactClass({
|
const Account = createReactClass({
|
||||||
displayName : 'AccountNavItem',
|
displayName : 'AccountNavItem',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import './error-navitem.less';
|
import './error-navitem.less';
|
||||||
import React from 'react';
|
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 ErrorNavItem = ({ error = '', clearError })=>{
|
||||||
const response = error.response;
|
const response = error.response;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@import './shared/naturalcrit/styles/core.less';
|
||||||
|
|
||||||
.navItem.error {
|
.navItem.error {
|
||||||
position : relative;
|
position : relative;
|
||||||
background-color : @red;
|
background-color : @red;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
export default function(props){
|
export default function(props){
|
||||||
return <Nav.dropdown>
|
return <Nav.dropdown>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React from 'react';
|
|||||||
import createReactClass from 'create-react-class';
|
import createReactClass from 'create-react-class';
|
||||||
import Moment from 'moment';
|
import Moment from 'moment';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
|
|
||||||
const MetadataNav = createReactClass({
|
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 React, { useState, useRef, useEffect } from 'react';
|
||||||
import createReactClass from 'create-react-class';
|
import createReactClass from 'create-react-class';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import cx from 'classnames';
|
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 = {
|
const Nav = {
|
||||||
base : createReactClass({
|
base : createReactClass({
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import './navbar.less';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import createReactClass from 'create-react-class';
|
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';
|
import PatreonNavItem from './patreon.navitem.jsx';
|
||||||
|
|
||||||
const Navbar = createReactClass({
|
const Navbar = createReactClass({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import 'naturalcrit/styles/colors.less';
|
@import './shared/naturalcrit/styles/core.less';
|
||||||
|
|
||||||
@navbarHeight : 28px;
|
@navbarHeight : 28px;
|
||||||
@viewerToolsHeight : 32px;
|
@viewerToolsHeight : 32px;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import _ from 'lodash';
|
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';
|
import { splitTextStyleAndMetadata } from '../../../shared/helpers.js';
|
||||||
|
|
||||||
const BREWKEY = 'HB_newPage_content';
|
const BREWKEY = 'HB_newPage_content';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
export default function(props){
|
export default function(props){
|
||||||
return <Nav.item
|
return <Nav.item
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
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';
|
import { printCurrentBrew } from '../../../shared/helpers.js';
|
||||||
|
|
||||||
export default function(){
|
export default function(){
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import createReactClass from 'create-react-class';
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import Moment from 'moment';
|
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 EDIT_KEY = 'HB_nav_recentlyEdited';
|
||||||
const VIEW_KEY = 'HB_nav_recentlyViewed';
|
const VIEW_KEY = 'HB_nav_recentlyViewed';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
const getShareId = (brew)=>(
|
const getShareId = (brew)=>(
|
||||||
brew.googleId && !brew.stubbed
|
brew.googleId && !brew.stubbed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
|
|
||||||
export default function (props) {
|
export default function (props) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import UIPage from '../basePages/uiPage/uiPage.jsx';
|
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 = '';
|
let SAVEKEY = '';
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import './uiPage.less';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import createReactClass from 'create-react-class';
|
import createReactClass from 'create-react-class';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
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({
|
const UIPage = createReactClass({
|
||||||
|
|||||||
@@ -4,25 +4,25 @@ import './editPage.less';
|
|||||||
// Common imports
|
// Common imports
|
||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
import request from '../../utils/request-middleware.js';
|
import request from '../../utils/request-middleware.js';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
||||||
import { printCurrentBrew, fetchThemeBundle, splitTextStyleAndMetadata } from '../../../../shared/helpers.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 Editor from '../../editor/editor.jsx';
|
||||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
const { both: RecentNavItem } = RecentNavItems;
|
||||||
|
|
||||||
// Page specific imports
|
// Page specific imports
|
||||||
@@ -31,7 +31,7 @@ import { md5 } from 'hash-wasm';
|
|||||||
import { gzipSync, strToU8 } from 'fflate';
|
import { gzipSync, strToU8 } from 'fflate';
|
||||||
import { makePatches, stringifyPatches } from '@sanity/diff-match-patch';
|
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 LockNotification from './lockNotification/lockNotification.jsx';
|
||||||
import { updateHistory, versionHistoryGarbageCollection } from '../../utils/versionHistory.js';
|
import { updateHistory, versionHistoryGarbageCollection } from '../../utils/versionHistory.js';
|
||||||
import googleDriveIcon from '../../googleDrive.svg';
|
import googleDriveIcon from '../../googleDrive.svg';
|
||||||
|
|||||||
@@ -14,15 +14,15 @@ import SplitPane from '../../../components/splitPane/splitPane.jsx';
|
|||||||
import Editor from '../../editor/editor.jsx';
|
import Editor from '../../editor/editor.jsx';
|
||||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
const { both: RecentNavItem } = RecentNavItems;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,25 +4,25 @@ import './newPage.less';
|
|||||||
// Common imports
|
// Common imports
|
||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
import request from '../../utils/request-middleware.js';
|
import request from '../../utils/request-middleware.js';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
import { DEFAULT_BREW } from '../../../../server/brewDefaults.js';
|
import { DEFAULT_BREW } from '../../../../server/brewDefaults.js';
|
||||||
import { printCurrentBrew, fetchThemeBundle, splitTextStyleAndMetadata } from '../../../../shared/helpers.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 Editor from '../../editor/editor.jsx';
|
||||||
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
import BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import NewBrewItem from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrewItem from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import AccountNavItem from 'client/homebrew/navbar/account.navitem.jsx';
|
import AccountNavItem from './client/homebrew/navbar/account.navitem.jsx';
|
||||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import VaultNavItem from 'client/homebrew/navbar/vault.navitem.jsx';
|
import VaultNavItem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
const { both: RecentNavItem } = RecentNavItems;
|
||||||
|
|
||||||
// Page specific imports
|
// Page specific imports
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import './sharePage.less';
|
|||||||
import React, { useState, useEffect, useCallback } from 'react';
|
import React, { useState, useEffect, useCallback } from 'react';
|
||||||
import { Meta } from 'vitreum/headtags';
|
import { Meta } from 'vitreum/headtags';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import MetadataNav from 'client/homebrew/navbar/metadata.navitem.jsx';
|
import MetadataNav from './client/homebrew/navbar/metadata.navitem.jsx';
|
||||||
import PrintNavItem from 'client/homebrew/navbar/print.navitem.jsx';
|
import PrintNavItem from './client/homebrew/navbar/print.navitem.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
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 BrewRenderer from '../../brewRenderer/brewRenderer.jsx';
|
||||||
|
|
||||||
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ import _ from 'lodash';
|
|||||||
|
|
||||||
import ListPage from '../basePages/listPage/listPage.jsx';
|
import ListPage from '../basePages/listPage/listPage.jsx';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
const { both: RecentNavItem } = RecentNavItems;
|
||||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||||
import NewBrew from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrew from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import ErrorNavItem from 'client/homebrew/navbar/error-navitem.jsx';
|
import ErrorNavItem from './client/homebrew/navbar/error-navitem.jsx';
|
||||||
import VaultNavitem from 'client/homebrew/navbar/vault.navitem.jsx';
|
import VaultNavitem from './client/homebrew/navbar/vault.navitem.jsx';
|
||||||
|
|
||||||
const UserPage = (props)=>{
|
const UserPage = (props)=>{
|
||||||
props = {
|
props = {
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
import './vaultPage.less';
|
import './vaultPage.less';
|
||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
|
|
||||||
import Nav from 'client/homebrew/navbar/nav.jsx';
|
import Nav from './client/homebrew/navbar/nav.jsx';
|
||||||
import Navbar from 'client/homebrew/navbar/navbar.jsx';
|
import Navbar from './client/homebrew/navbar/navbar.jsx';
|
||||||
import RecentNavItems from 'client/homebrew/navbar/recent.navitem.jsx';
|
import RecentNavItems from './client/homebrew/navbar/recent.navitem.jsx';
|
||||||
const { both: RecentNavItem } = RecentNavItems;
|
const { both: RecentNavItem } = RecentNavItems;
|
||||||
import Account from 'client/homebrew/navbar/account.navitem.jsx';
|
import Account from './client/homebrew/navbar/account.navitem.jsx';
|
||||||
import NewBrew from 'client/homebrew/navbar/newbrew.navitem.jsx';
|
import NewBrew from './client/homebrew/navbar/newbrew.navitem.jsx';
|
||||||
import HelpNavItem from 'client/homebrew/navbar/help.navitem.jsx';
|
import HelpNavItem from './client/homebrew/navbar/help.navitem.jsx';
|
||||||
import BrewItem from '../basePages/listPage/brewItem/brewItem.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 ErrorIndex from '../errorPage/errors/errorIndex.js';
|
||||||
|
|
||||||
import request from '../../utils/request-middleware.js';
|
import request from '../../utils/request-middleware.js';
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ app.use(homebrewApi);
|
|||||||
app.use(adminApi);
|
app.use(adminApi);
|
||||||
app.use(vaultApi);
|
app.use(vaultApi);
|
||||||
|
|
||||||
const welcomeText = fs.readFileSync('client/homebrew/pages/homePage/welcome_msg.md', 'utf8');
|
const welcomeText = fs.readFileSync('./client/homebrew/pages/homePage/welcome_msg.md', 'utf8');
|
||||||
const welcomeTextLegacy = fs.readFileSync('client/homebrew/pages/homePage/welcome_msg_legacy.md', 'utf8');
|
const welcomeTextLegacy = fs.readFileSync('./client/homebrew/pages/homePage/welcome_msg_legacy.md', 'utf8');
|
||||||
const migrateText = fs.readFileSync('client/homebrew/pages/homePage/migrate.md', 'utf8');
|
const migrateText = fs.readFileSync('./client/homebrew/pages/homePage/migrate.md', 'utf8');
|
||||||
const changelogText = fs.readFileSync('changelog.md', 'utf8');
|
const changelogText = fs.readFileSync('changelog.md', 'utf8');
|
||||||
const faqText = fs.readFileSync('faq.md', 'utf8');
|
const faqText = fs.readFileSync('faq.md', 'utf8');
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
@import './reset.less';
|
@import './reset.less';
|
||||||
//@import 'naturalcrit/styles/elements.less';
|
//@import './elements.less';
|
||||||
@import './animations.less';
|
@import './animations.less';
|
||||||
@import './colors.less';
|
@import './colors.less';
|
||||||
@import './tooltip.less';
|
@import './tooltip.less';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
test('Processes the markdown within an HTML block if its just a class wrapper', function() {
|
test('Processes the markdown within an HTML block if its just a class wrapper', function() {
|
||||||
const source = '<div>*Bold text*</div>';
|
const source = '<div>*Bold text*</div>';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
describe('Inline Definition Lists', ()=>{
|
describe('Inline Definition Lists', ()=>{
|
||||||
test('No Term 1 Definition', function() {
|
test('No Term 1 Definition', function() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
|
|
||||||
// Marked.js adds line returns after closing tags on some default tokens.
|
// Marked.js adds line returns after closing tags on some default tokens.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
describe('Hard Breaks', ()=>{
|
describe('Hard Breaks', ()=>{
|
||||||
test('Single Break', function() {
|
test('Single Break', function() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
|
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
// Marked.js adds line returns after closing tags on some default tokens.
|
// Marked.js adds line returns after closing tags on some default tokens.
|
||||||
// This removes those line returns for comparison sake.
|
// This removes those line returns for comparison sake.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
describe('Non-Breaking Spaces Interactions', ()=>{
|
describe('Non-Breaking Spaces Interactions', ()=>{
|
||||||
test('I am actually a single-line definition list!', function() {
|
test('I am actually a single-line definition list!', function() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
describe('Justification', ()=>{
|
describe('Justification', ()=>{
|
||||||
test('Left Justify', function() {
|
test('Left Justify', function() {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
|
|
||||||
import dedent from 'dedent';
|
import dedent from 'dedent';
|
||||||
import Markdown from 'markdown.js';
|
import Markdown from './shared/markdown.js';
|
||||||
|
|
||||||
// Marked.js adds line returns after closing tags on some default tokens.
|
// Marked.js adds line returns after closing tags on some default tokens.
|
||||||
// This removes those line returns for comparison sake.
|
// This removes those line returns for comparison sake.
|
||||||
|
|||||||
Reference in New Issue
Block a user