
Major architecture cleanup following CLAUDE.md rules: ## Admin Panel Conversion (1843 lines → TypeScript routes) - Remove public/admin/scripts/main.js (direct API calls violation) - Add proper Astro admin routes with TypeScript API endpoints - Add missing admin functions in church-core Rust crate - Update bindings.js to expose new admin functions ## Thumbnail Field Removal - Remove thumbnail upload section from event submission form - Clean up thumbnail-related JavaScript code ## Architecture Compliance Achieved ✅ Frontend → bindings.js → Rust FFI → church-core → API ❌ Frontend → fetch() → External API (eliminated) Files: +13 admin routes, -1843 line JS file, enhanced Rust core
16 lines
340 B
TOML
16 lines
340 B
TOML
[package]
|
|
name = "church-core-bindings"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
napi = { version = "2", default-features = false, features = ["napi4"] }
|
|
napi-derive = "2"
|
|
church-core = { path = "../church-core" }
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
[build-dependencies]
|
|
napi-build = "2" |