From b72e5b917252c5dbecc9d846859b0d4c311a4302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 23 Jan 2026 17:18:03 +0100 Subject: [PATCH] fix file imports --- client/components/codeEditor/autocompleteEmoji.js | 8 ++++---- client/homebrew/brewRenderer/brewRenderer.jsx | 2 +- client/homebrew/editor/editor.jsx | 4 ++-- .../editor/metadataEditor/metadataEditor.jsx | 2 +- client/homebrew/editor/snippetbar/snippetbar.jsx | 12 ++++++------ client/homebrew/pages/homePage/homePage.jsx | 4 ++-- vite.config.js | 1 - 7 files changed, 16 insertions(+), 17 deletions(-) diff --git a/client/components/codeEditor/autocompleteEmoji.js b/client/components/codeEditor/autocompleteEmoji.js index d5a3a71aa..4fa3782d5 100644 --- a/client/components/codeEditor/autocompleteEmoji.js +++ b/client/components/codeEditor/autocompleteEmoji.js @@ -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, diff --git a/client/homebrew/brewRenderer/brewRenderer.jsx b/client/homebrew/brewRenderer/brewRenderer.jsx index ebf008dd1..d4d06405f 100644 --- a/client/homebrew/brewRenderer/brewRenderer.jsx +++ b/client/homebrew/brewRenderer/brewRenderer.jsx @@ -13,7 +13,7 @@ import RenderWarnings from 'client/components/renderWarnings/renderWarnings.jsx' import NotificationPopup from './notificationPopup/notificationPopup.jsx'; import Frame from 'react-frame-component'; import dedent from 'dedent-tabs'; -import { printCurrentBrew } from '../../../shared/helpers.js'; +import { printCurrentBrew } from './shared/helpers.js'; import HeaderNav from './headerNav/headerNav.jsx'; import { safeHTML } from './safeHTML.js'; diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index e58d53445..5c6b58287 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -4,9 +4,9 @@ import React from 'react'; import createReactClass from 'create-react-class'; import _ from 'lodash'; import dedent from 'dedent-tabs'; -import Markdown from '../../../shared/markdown.js'; +import Markdown from './shared/markdown.js'; -import CodeEditor from 'client/components/codeEditor/codeEditor.jsx'; +import CodeEditor from '../../components/codeEditor/codeEditor.jsx'; import SnippetBar from './snippetbar/snippetbar.jsx'; import MetadataEditor from './metadataEditor/metadataEditor.jsx'; diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 21fdca646..5ef409b9f 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -8,7 +8,7 @@ import Combobox from 'client/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']; diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index b6e977ea2..d8e35f297 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -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, diff --git a/client/homebrew/pages/homePage/homePage.jsx b/client/homebrew/pages/homePage/homePage.jsx index 6f0562715..f5fae80d9 100644 --- a/client/homebrew/pages/homePage/homePage.jsx +++ b/client/homebrew/pages/homePage/homePage.jsx @@ -4,7 +4,7 @@ import './homePage.less'; // Common imports import React, { useState, useEffect, useRef } from 'react'; import request from '../../utils/request-middleware.js'; -import Markdown from '../../../../shared/naturalcrit/markdown.js'; +import Markdown from '../../../../shared/markdown.js'; import _ from 'lodash'; import { DEFAULT_BREW } from '../../../../server/brewDefaults.js'; @@ -27,7 +27,7 @@ const { both: RecentNavItem } = RecentNavItems; // Page specific imports -import { Meta } from 'vitreum/headtags'; +import { Meta } from 'vitreum/headtags'; const BREWKEY = 'homebrewery-new'; const STYLEKEY = 'homebrewery-new-style'; diff --git a/vite.config.js b/vite.config.js index 34053ea06..95b8be8e0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,6 @@ import path from "path"; export default defineConfig({ plugins: [react()], - root: "client", build: { outDir: "../build", emptyOutDir: true,