mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 03:03:09 +00:00
change imports
This commit is contained in:
@@ -16,7 +16,7 @@ import dedent from 'dedent';
|
||||
import { printCurrentBrew } from '../../../shared/helpers.js';
|
||||
|
||||
import HeaderNav from './headerNav/headerNav.jsx';
|
||||
import { safeHTML } from './safeHTML.js';
|
||||
import safeHTML from './safeHTML.js';
|
||||
|
||||
const PAGEBREAK_REGEX_V3 = /^(?=\\page(?:break)?(?: *{[^\n{}]*})?$)/m;
|
||||
const PAGEBREAK_REGEX_LEGACY = /\\page(?:break)?/m;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import './notificationPopup.less';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import Markdown from './shared/markdown.js';
|
||||
import Markdown from '../../../../shared/markdown.js';
|
||||
|
||||
import Dialog from '../../../components/dialog.jsx';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import Combobox from '../../../components/combobox.jsx';
|
||||
import TagInput from '../tagInput/tagInput.jsx';
|
||||
|
||||
|
||||
import Themes from './themes/themes.json';
|
||||
import Themes from '../../../../themes/themes.json';
|
||||
import validations from './validations.js';
|
||||
|
||||
const SYSTEMS = ['5e', '4e', '3.5e', 'Pathfinder'];
|
||||
|
||||
@@ -7,13 +7,13 @@ import _ from 'lodash';
|
||||
import cx from 'classnames';
|
||||
|
||||
import { loadHistory } from '../../utils/versionHistory.js';
|
||||
import { brewSnippetsToJSON } from './shared/helpers.js';
|
||||
import { brewSnippetsToJSON } from '../../../../shared/helpers.js';
|
||||
|
||||
import Legacy5ePHB from './themes/Legacy/5ePHB/snippets.js';
|
||||
import V3_5ePHB from './themes/V3/5ePHB/snippets.js';
|
||||
import V3_5eDMG from './themes/V3/5eDMG/snippets.js';
|
||||
import V3_Journal from './themes/V3/Journal/snippets.js';
|
||||
import V3_Blank from './themes/V3/Blank/snippets.js';
|
||||
import Legacy5ePHB from '../../../../themes/Legacy/5ePHB/snippets.js';
|
||||
import V3_5ePHB from '../../../../themes/V3/5ePHB/snippets.js';
|
||||
import V3_5eDMG from '../../../../themes/V3/5eDMG/snippets.js';
|
||||
import V3_Journal from '../../../../themes/V3/Journal/snippets.js';
|
||||
import V3_Blank from '../../../../themes/V3/Blank/snippets.js';
|
||||
|
||||
const ThemeSnippets = {
|
||||
Legacy_5ePHB : Legacy5ePHB,
|
||||
@@ -23,7 +23,7 @@ const ThemeSnippets = {
|
||||
V3_Blank : V3_Blank,
|
||||
};
|
||||
|
||||
import EditorThemes from './build/homebrew/codeMirror/editorThemes.json';
|
||||
import EditorThemes from '../../../../build/homebrew/codeMirror/editorThemes.json';
|
||||
|
||||
const execute = function(val, props){
|
||||
if(_.isFunction(val)) return val(props);
|
||||
|
||||
@@ -26,7 +26,7 @@ import RecentNavItems from '../../navbar/recent.navitem.jsx';
|
||||
const { both: RecentNavItem } = RecentNavItems;
|
||||
|
||||
// Page specific imports
|
||||
import { Meta } from '../../../../vitreum/headtags.js';
|
||||
import Meta from '../../../../vitreum/headtags.js';
|
||||
import { md5 } from 'hash-wasm';
|
||||
import { gzipSync, strToU8 } from 'fflate';
|
||||
import { makePatches, stringifyPatches } from '@sanity/diff-match-patch';
|
||||
|
||||
@@ -27,7 +27,7 @@ const { both: RecentNavItem } = RecentNavItems;
|
||||
|
||||
|
||||
// Page specific imports
|
||||
import { Meta } from '../../../../vitreum/headtags.js';
|
||||
import Meta from '../../../../vitreum/headtags.js';
|
||||
|
||||
const BREWKEY = 'homebrewery-new';
|
||||
const STYLEKEY = 'homebrewery-new-style';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import './sharePage.less';
|
||||
import React, { useState, useEffect, useCallback } from 'react';
|
||||
import { Meta } from '../../../../vitreum/headtags.js';
|
||||
import Meta from '../../../../vitreum/headtags.js';
|
||||
|
||||
import Nav from '../../navbar/nav.jsx';
|
||||
import Navbar from '../../navbar/navbar.jsx';
|
||||
|
||||
Reference in New Issue
Block a user