mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 22:33:07 +00:00
change imports
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
@import './shared/naturalcrit/styles/tooltip.less';
|
||||
@import './themes/fonts/iconFonts/fontAwesome.less';
|
||||
|
||||
@import 'font-awesome/css/font-awesome.css';
|
||||
|
||||
html,body, #reactContainer, .naturalCrit { min-height : 100%; }
|
||||
|
||||
@sidebarWidth : 250px;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import diceFont from './themes/fonts/iconFonts/diceFont.js';
|
||||
import elderberryInn from './themes/fonts/iconFonts/elderberryInn.js';
|
||||
import fontAwesome from './themes/fonts/iconFonts/fontAwesome.js';
|
||||
import gameIcons from './themes/fonts/iconFonts/gameIcons.js';
|
||||
import diceFont from '../../../themes/fonts/iconFonts/diceFont.js';
|
||||
import elderberryInn from '../../../themes/fonts/iconFonts/elderberryInn.js';
|
||||
import fontAwesome from '../../../themes/fonts/iconFonts/fontAwesome.js';
|
||||
import gameIcons from '../../../themes/fonts/iconFonts/gameIcons.js';
|
||||
|
||||
const emojis = {
|
||||
...diceFont,
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"viteDev": "node scripts/dev.js",
|
||||
"viteDevAdmin": "vite --config vite.config.js --ssr client/admin/admin.jsx",
|
||||
"viteBuild": "vite build",
|
||||
"viteStart": "vite preview",
|
||||
"viteStart": "vite preview --outDir ../build",
|
||||
"dev": "node --experimental-require-module scripts/dev.js",
|
||||
"quick": "node --experimental-require-module scripts/quick.js",
|
||||
"build": "node --experimental-require-module scripts/buildHomebrew.js && node --experimental-require-module scripts/buildAdmin.js",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
import MagicGen from './themes/Legacy/5ePHB/snippets/magic.gen.js';
|
||||
import ClassTableGen from './themes/Legacy/5ePHB/snippets/classtable.gen.js';
|
||||
import MonsterBlockGen from './themes/Legacy/5ePHB/snippets/monsterblock.gen.js';
|
||||
import ClassFeatureGen from './themes/Legacy/5ePHB/snippets/classfeature.gen.js';
|
||||
import CoverPageGen from './themes/Legacy/5ePHB/snippets/coverpage.gen.js';
|
||||
import TableOfContentsGen from './themes/Legacy/5ePHB/snippets/tableOfContents.gen.js';
|
||||
import MagicGen from './snippets/magic.gen.js';
|
||||
import ClassTableGen from './snippets/classtable.gen.js';
|
||||
import MonsterBlockGen from './snippets/monsterblock.gen.js';
|
||||
import ClassFeatureGen from './snippets/classfeature.gen.js';
|
||||
import CoverPageGen from './snippets/coverpage.gen.js';
|
||||
import TableOfContentsGen from './snippets/tableOfContents.gen.js';
|
||||
import dedent from 'dedent';
|
||||
|
||||
export default [
|
||||
|
||||
@@ -74,6 +74,8 @@ export const flush = () => {
|
||||
UnnamedTags = [];
|
||||
};
|
||||
|
||||
export const Meta = HeadComponents.Meta;
|
||||
|
||||
export default {
|
||||
Inject,
|
||||
...HeadComponents,
|
||||
|
||||
Reference in New Issue
Block a user