Rename all djarea references to mizan

- djarea_clients.py → clients.py (both example apps)
- export_djarea_schema → export_mizan_schema (management command)
- djarea.spec.ts → mizan.spec.ts (playwright test)
- fetch.mjs: command name updated
- apps.py/asgi.py: import paths updated
- Removed stale generated.djarea.* artifacts
- Fixed desktop app: asgi.py import, vite config aliases, package.json dep path

373 Django tests pass. Both example apps verified running.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 11:26:19 -04:00
parent 1c6d9075ad
commit 6108845d99
11 changed files with 18 additions and 4783 deletions

View File

@@ -8,6 +8,6 @@ django.setup()
from django.core.asgi import get_asgi_application
from mizan import wrap_asgi
import backend.mizan_clients # noqa: F401
import backend.clients # noqa: F401
application = wrap_asgi(get_asgi_application())

View File

@@ -7,7 +7,7 @@
"build": "vite build"
},
"dependencies": {
"@rythazhur/mizan": "file:../../react",
"@rythazhur/mizan": "file:../../../packages/mizan-react",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},

View File

@@ -1,8 +1,22 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
const reactPkg = path.resolve(__dirname, '../../../packages/mizan-react/src')
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'mizan/channels': path.join(reactPkg, 'channels/index.ts'),
'mizan/client': path.join(reactPkg, 'client/index.ts'),
'mizan/jwt': path.join(reactPkg, 'jwt/index.ts'),
'mizan': path.join(reactPkg, 'index.ts'),
'@rythazhur/mizan/channels': path.join(reactPkg, 'channels/index.ts'),
'@rythazhur/mizan/jwt': path.join(reactPkg, 'jwt/index.ts'),
'@rythazhur/mizan': path.join(reactPkg, 'index.ts'),
},
},
server: {
proxy: {
'/api': 'http://127.0.0.1:8765',

View File

@@ -6,4 +6,4 @@ class TestAppConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
def ready(self):
import testapp.djarea_clients # noqa: F401
import testapp.clients # noqa: F401

File diff suppressed because it is too large Load Diff