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:
@@ -8,6 +8,6 @@ django.setup()
|
|||||||
from django.core.asgi import get_asgi_application
|
from django.core.asgi import get_asgi_application
|
||||||
from mizan import wrap_asgi
|
from mizan import wrap_asgi
|
||||||
|
|
||||||
import backend.mizan_clients # noqa: F401
|
import backend.clients # noqa: F401
|
||||||
|
|
||||||
application = wrap_asgi(get_asgi_application())
|
application = wrap_asgi(get_asgi_application())
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"build": "vite build"
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rythazhur/mizan": "file:../../react",
|
"@rythazhur/mizan": "file:../../../packages/mizan-react",
|
||||||
"react": "^19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "^19.0.0"
|
"react-dom": "^19.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,8 +1,22 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
import path from 'path'
|
||||||
|
|
||||||
|
const reactPkg = path.resolve(__dirname, '../../../packages/mizan-react/src')
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
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: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': 'http://127.0.0.1:8765',
|
'/api': 'http://127.0.0.1:8765',
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ class TestAppConfig(AppConfig):
|
|||||||
default_auto_field = "django.db.models.BigAutoField"
|
default_auto_field = "django.db.models.BigAutoField"
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
import testapp.djarea_clients # noqa: F401
|
import testapp.clients # noqa: F401
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -84,5 +84,5 @@ export async function fetchMizanSchema(source, cwd) {
|
|||||||
if (!source.django) {
|
if (!source.django) {
|
||||||
throw new Error('mizan 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')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user