Clean up project structure

This commit is contained in:
2026-03-27 15:53:17 +01:00
parent d4872a1a04
commit cdcc119e41
26 changed files with 952 additions and 30 deletions

View File

@@ -1,7 +0,0 @@
[build]
target = "../src/index.html"
dist = "../dist"
[serve]
port = 1420
open = false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +0,0 @@
{
"name": "brittle-pdfjs",
"private": true,
"description": "Pre-built pdfjs-dist for the Brittle PDF viewer.",
"dependencies": {
"pdfjs-dist": "3.11.174"
}
}

View File

@@ -18,12 +18,12 @@ use crate::state::AppState;
// ── Embedded assets ───────────────────────────────────────────────────────────
static VIEWER_HTML: &[u8] = include_bytes!("pdf_viewer.html");
static VIEWER_HTML: &[u8] = include_bytes!("../assets/viewer/index.html");
static PDFJS_MIN_JS: &[u8] = include_bytes!(
"../pdfjs/node_modules/pdfjs-dist/build/pdf.min.js"
"../assets/viewer/pdfjs/pdf.min.js"
);
static PDFJS_WORKER_JS: &[u8] = include_bytes!(
"../pdfjs/node_modules/pdfjs-dist/build/pdf.worker.min.js"
"../assets/viewer/pdfjs/pdf.worker.min.js"
);
// ── Public API ────────────────────────────────────────────────────────────────

View File

@@ -6,11 +6,11 @@
"build": {
"beforeDevCommand": {
"script": "trunk serve",
"cwd": "."
"cwd": "../brittle-ui"
},
"beforeBuildCommand": {
"script": "trunk build --release",
"cwd": "."
"cwd": "../brittle-ui"
},
"devUrl": "http://localhost:1420",
"frontendDist": "../dist"