refactor: Move source files from root into src/

Relocates book.js, fabula-ultima-sheet.css, and fabula-ultima-sheet.html
into src/ to consolidate all source files under one directory. Updates
webpack entry points, HTML template path, and CSS import accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 04:14:30 +00:00
parent 26d7a4a7fc
commit fcbd0acfb2
5 changed files with 17 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState, useEffect, useCallback, useRef } from "react";
import "../fabula-ultima-sheet.css";
import "./fabula-ultima-sheet.css";
const STATUSES = ["Slow", "Enraged", "Dazed", "Weak", "Poisoned", "Shaken"];
const FEELINGS = [

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import BookIndex from './src/BookIndex.jsx';
import BookIndex from './BookIndex.jsx';
const { title, logoText, pages } = window.__BOOK_DATA__;
createRoot(document.getElementById('root')).render(

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fabula Ultima Character Sheet</title>
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inconsolata:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="fabula-ultima-sheet.css" />
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@@ -45,7 +45,7 @@ module.exports = (env, argv) => {
return {
entry: {
sheet: "./src/sheet-main.jsx",
book: "./book.js",
book: "./src/book.js",
},
output: {
filename: isProd ? "[name].[contenthash].js" : "[name].js",
@@ -80,7 +80,7 @@ module.exports = (env, argv) => {
? [new MiniCssExtractPlugin({ filename: "[name].[contenthash].css" })]
: []),
new HtmlWebpackPlugin({
template: "./fabula-ultima-sheet.html",
template: "./src/fabula-ultima-sheet.html",
filename: "index.html",
chunks: ["sheet"],
scriptLoading: "blocking",