Rename djarea to mizan and fix React casing conventions

Rename the package from djarea to mizan across the entire codebase —
Python package, React library, generators, tests, and examples. Fix
JSX/hook casing (MizanProvider, useMizan, etc.) that broke when the
original PascalCase names were lowercased during the rename.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 20:01:03 -04:00
parent bf837e598b
commit c866142770
118 changed files with 1778 additions and 1433 deletions

View File

@@ -1,7 +1,7 @@
/**
* Schema Fetching
*
* Fetches djarea and channels schemas from Django management commands.
* Fetches mizan and channels schemas from Django management commands.
*/
import { spawn } from 'child_process'
@@ -78,11 +78,11 @@ export async function fetchChannelsSchema(source, cwd) {
}
/**
* Fetch djarea schema from Django.
* Fetch mizan schema from Django.
*/
export async function fetchDjareaSchema(source, cwd) {
export async function fetchMizanSchema(source, cwd) {
if (!source.django) {
throw new Error('Djarea schema export requires django source configuration')
throw new Error('mizan schema export requires django source configuration')
}
return runDjangoCommand(source, cwd, 'export_djarea_schema')
return runDjangoCommand(source, cwd, 'export_mizan_schema')
}