nextpy-framework 5.0.0__tar.gz → 5.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/cli.py +82 -7
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/components/debug/DebugIcon.css +470 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/components/debug/debug_demo.html +280 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/db.py +7 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/nextpy-vscode/client/package.json +87 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/nextpy-vscode/client/src/language-configuration.json +38 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/nextpy-vscode/client/src/syntaxes/nextpy.tmLanguage.json +108 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/nextpy-vscode/client/tsconfig.json +16 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/nextpy-vscode/server/package.json +21 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/package.json +28 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/compiler/handler_compiler.py +12 -7
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/core/parser.py +40 -172
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/psx/devtools/vscode-extension/language-configuration.json +39 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/psx/devtools/vscode-extension/package.json +134 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/psx/devtools/vscode-extension/syntaxes/psx.tmLanguage.json +141 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/psx/devtools/vscode-extension/tsconfig.json +17 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/public/tailwind.css +2 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/server/app.py +0 -1
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/styles/styles.css +34 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/styles.css +3 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/language-configuration.json +40 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/package-final.json +154 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/package.json +176 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/snippets/nextpy-psx.json +255 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/syntaxes/nextpy-psx.tmLanguage.json +316 -0
- nextpy_framework-5.1.2/.nextpy_framework/nextpy/vscode-extension/tsconfig.json +22 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/PKG-INFO +2 -1
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/SOURCES.txt +21 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/requires.txt +1 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/PKG-INFO +2 -1
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/pyproject.toml +6 -5
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/admin.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/api.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/asgi.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/ast_parser.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/auth.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/cache.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/debug/AutoDebug_v3.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/form.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/head.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/hooks_provider.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/image.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/layout.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/link.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/navigation.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components/ui.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/components.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/config.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/builder.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/component_renderer.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/component_router.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/data_fetching.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/demo_pages_simple.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/demo_router.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/renderer.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/router.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/core/streaming.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/debug/core.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/debug/performance.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/debug/ui.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/docs/conf.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/hooks.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/introspection/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/introspection/ast.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/introspection/compiler.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/introspection/components.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/introspection/framework.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/jsx.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/jsx_preprocessor.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/jsx_transformer.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/plugins/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/plugins/base.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/plugins/builtin.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/plugins/config.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/plugins.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/compiler/actions.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/components/component.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/core/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/core/ast_nodes.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/core/evaluator.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/core/runtime.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/devtools/language_server.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/devtools/language_server_lsp.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/devtools/psx_formatter.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/devtools/server_client_components.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/devtools/setup.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/hydration/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/hydration/decorators.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/hydration/engine.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/hydration/integration.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/renderer/renderer.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/router/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/router/client_router.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/runtime/actions_runtime.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/runtime/js_actions_runtime.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/tests/test_full_integration.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/tests/test_html_attribute_support.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/utils/helpers.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/psx/vdom/vnode.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/public/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/public/logo.png +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/py.typed +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/security.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/server/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/server/debug.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/server/middleware.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/server_actions.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/source/conf.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/state_sync.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tasks.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/HANDLER_REGISTRATION_SYSTEM.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/setup_complete.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_autodebug_enhanced.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_cli_scaffolding.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_colors.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_component_rendering.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_comprehensive.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_conversion.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_critical_fixes.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_demo_mode.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_demo_server.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_enhanced_handlers.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_extraction.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_final.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_fixes.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_fullstack_features.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_handler_system.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_hydration_engine.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_integration.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_interactive_bug.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_jsx_edgecases.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_jsx_preprocessor.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_migration.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_modular_debug.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_performance_cache.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_psx_reactivity.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_routing.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_security_hardening.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_server.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_server_features.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_server_working.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_tailwind.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_tailwind_full.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_tailwind_integration.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_tailwind_up_to_date.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/tests/test_websocket_complete.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/true_jsx.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/__init__.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/cache.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/email.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/file_upload.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/logging.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/search.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/seo.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/utils/validators.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy/websocket.py +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/dependency_links.txt +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/entry_points.txt +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/.nextpy_framework/nextpy_framework.egg-info/top_level.txt +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/LICENSE +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/README.md +0 -0
- {nextpy_framework-5.0.0 → nextpy_framework-5.1.2}/setup.cfg +0 -0
|
@@ -241,13 +241,25 @@ def _init_project_db():
|
|
|
241
241
|
"""Load .env, register project models, initialize SQLAlchemy."""
|
|
242
242
|
_prepare_project()
|
|
243
243
|
try:
|
|
244
|
-
import
|
|
244
|
+
import nextpy.db # noqa: F401 (registers app tables on nextpy.db.Base)
|
|
245
245
|
except ImportError:
|
|
246
246
|
pass
|
|
247
247
|
from nextpy.config import settings
|
|
248
248
|
from nextpy.db import init_db
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
# Ensure database URL is absolute path for consistency
|
|
251
|
+
db_url = settings.get("database_url", "sqlite:///app.db")
|
|
252
|
+
if db_url.startswith("sqlite:///"):
|
|
253
|
+
db_path = db_url.replace("sqlite:///", "")
|
|
254
|
+
if not os.path.isabs(db_path):
|
|
255
|
+
# Resolve relative to the actual project root context
|
|
256
|
+
project_dir = Path.cwd().resolve()
|
|
257
|
+
abs_path = os.path.abspath(project_dir / db_path)
|
|
258
|
+
db_url = f"sqlite:///{abs_path}"
|
|
259
|
+
settings["database_url"] = db_url
|
|
260
|
+
|
|
261
|
+
return init_db(db_url)
|
|
262
|
+
|
|
251
263
|
|
|
252
264
|
|
|
253
265
|
def _format_size(size_bytes: int) -> str:
|
|
@@ -296,6 +308,23 @@ def dev(port: int, host: str, reload: bool, debug: bool):
|
|
|
296
308
|
settings["nextpy_debug"] = debug
|
|
297
309
|
settings["development"] = True
|
|
298
310
|
|
|
311
|
+
# Initialize database cleanly with explicit path maps before starting server
|
|
312
|
+
from nextpy.db import init_db
|
|
313
|
+
db_url = settings.get("database_url", "sqlite:///app.db")
|
|
314
|
+
if db_url.startswith("sqlite:///"):
|
|
315
|
+
db_path = db_url.replace("sqlite:///", "")
|
|
316
|
+
if not os.path.isabs(db_path):
|
|
317
|
+
project_dir = Path.cwd().resolve()
|
|
318
|
+
abs_path = os.path.abspath(project_dir / db_path)
|
|
319
|
+
db_url = f"sqlite:///{abs_path}"
|
|
320
|
+
settings["database_url"] = db_url
|
|
321
|
+
|
|
322
|
+
init_db(db_url)
|
|
323
|
+
|
|
324
|
+
main_module = find_main_module()
|
|
325
|
+
project_dir = Path.cwd()
|
|
326
|
+
os.chdir(project_dir)
|
|
327
|
+
|
|
299
328
|
main_module = find_main_module()
|
|
300
329
|
project_dir = Path.cwd()
|
|
301
330
|
os.chdir(project_dir)
|
|
@@ -1256,6 +1285,7 @@ def _create_project_structure(
|
|
|
1256
1285
|
"pages/blog",
|
|
1257
1286
|
"pages/api",
|
|
1258
1287
|
"pages/api/users",
|
|
1288
|
+
"pages/actions",
|
|
1259
1289
|
"components",
|
|
1260
1290
|
"components/ui",
|
|
1261
1291
|
"components/layout",
|
|
@@ -1840,9 +1870,12 @@ __all__ = ["AppUser", "User"]
|
|
|
1840
1870
|
|
|
1841
1871
|
# Create the application entry point. init_db() is called here, after all
|
|
1842
1872
|
# models have been imported, so SQLAlchemy knows every table.
|
|
1843
|
-
(project_dir / "main.py").write_text('''
|
|
1873
|
+
(project_dir / "main.py").write_text('''
|
|
1874
|
+
|
|
1875
|
+
"""NextPy application entry point."""
|
|
1844
1876
|
|
|
1845
1877
|
import sys
|
|
1878
|
+
import os
|
|
1846
1879
|
from pathlib import Path
|
|
1847
1880
|
|
|
1848
1881
|
# Support running from a source checkout that vendors the framework.
|
|
@@ -1858,11 +1891,16 @@ from nextpy.db import User, init_db
|
|
|
1858
1891
|
# Importing models registers them on nextpy.db.Base.
|
|
1859
1892
|
import models # noqa: F401
|
|
1860
1893
|
|
|
1861
|
-
|
|
1894
|
+
# Import server actions to register them
|
|
1895
|
+
try:
|
|
1896
|
+
from pages.actions import * # noqa: F401
|
|
1897
|
+
except ImportError:
|
|
1898
|
+
pass # No server actions yet
|
|
1862
1899
|
|
|
1863
1900
|
admin_site = AdminSite()
|
|
1864
1901
|
admin_site.register(User)
|
|
1865
1902
|
|
|
1903
|
+
# Define the app instance cleanly so Uvicorn can import it
|
|
1866
1904
|
app = nx.create_app(
|
|
1867
1905
|
pages_dir="pages",
|
|
1868
1906
|
templates_dir="templates",
|
|
@@ -1875,12 +1913,24 @@ app = nx.create_app(
|
|
|
1875
1913
|
if __name__ == "__main__":
|
|
1876
1914
|
import uvicorn
|
|
1877
1915
|
|
|
1916
|
+
# Ensure database URL is absolute path ONLY when executed directly
|
|
1917
|
+
db_url = settings["database_url"]
|
|
1918
|
+
if db_url.startswith("sqlite:///"):
|
|
1919
|
+
db_path = db_url.replace("sqlite:///", "")
|
|
1920
|
+
if not os.path.isabs(db_path):
|
|
1921
|
+
project_dir = Path(__file__).parent
|
|
1922
|
+
abs_path = str(project_dir / db_path)
|
|
1923
|
+
db_url = f"sqlite:///{abs_path}"
|
|
1924
|
+
|
|
1925
|
+
init_db(db_url)
|
|
1926
|
+
|
|
1878
1927
|
uvicorn.run(
|
|
1879
1928
|
"main:app",
|
|
1880
1929
|
host=settings["host"],
|
|
1881
1930
|
port=settings["port"],
|
|
1882
1931
|
reload=settings["development"],
|
|
1883
1932
|
)
|
|
1933
|
+
|
|
1884
1934
|
''')
|
|
1885
1935
|
click.echo(" Created: main.py")
|
|
1886
1936
|
|
|
@@ -2109,6 +2159,22 @@ def use_auth(request):
|
|
|
2109
2159
|
)
|
|
2110
2160
|
click.echo(" Created: hooks/use_auth.py")
|
|
2111
2161
|
|
|
2162
|
+
(project_dir / "pages/actions" / "__init__.py").write_text('''
|
|
2163
|
+
"""Server actions for this NextPy app.
|
|
2164
|
+
|
|
2165
|
+
Server actions allow you to call Python functions from client-side components.
|
|
2166
|
+
All server actions are automatically registered when imported here.
|
|
2167
|
+
|
|
2168
|
+
Example:
|
|
2169
|
+
from nextpy.server_actions import server_action
|
|
2170
|
+
|
|
2171
|
+
@server_action()
|
|
2172
|
+
async def my_action(data: str):
|
|
2173
|
+
return {"result": f"Processed: {data}"}
|
|
2174
|
+
"""''')
|
|
2175
|
+
click.echo(" Created: pages/actions/__init__.py")
|
|
2176
|
+
|
|
2177
|
+
|
|
2112
2178
|
# Create middleware example
|
|
2113
2179
|
(project_dir / "middleware" / "cors.py").write_text('''"""CORS middleware example"""
|
|
2114
2180
|
|
|
@@ -2132,8 +2198,14 @@ def add_cors_middleware(app):
|
|
|
2132
2198
|
(project_dir / "tests" / "test_api.py").write_text('''"""API tests example"""
|
|
2133
2199
|
|
|
2134
2200
|
import pytest
|
|
2135
|
-
|
|
2201
|
+
import sys
|
|
2202
|
+
from pathlib import Path
|
|
2203
|
+
|
|
2204
|
+
# Add project to path
|
|
2205
|
+
sys.path.insert(0, str(Path(__file__).parent.parent))
|
|
2206
|
+
|
|
2136
2207
|
from main import app
|
|
2208
|
+
from fastapi.testclient import TestClient
|
|
2137
2209
|
|
|
2138
2210
|
client = TestClient(app)
|
|
2139
2211
|
|
|
@@ -2320,13 +2392,15 @@ NEXTPY_DEBUG=true
|
|
|
2320
2392
|
HOST=0.0.0.0
|
|
2321
2393
|
PORT=8000
|
|
2322
2394
|
|
|
2323
|
-
# Database
|
|
2324
|
-
DATABASE_URL=sqlite
|
|
2395
|
+
# Database (uses absolute path to ensure consistency)
|
|
2396
|
+
DATABASE_URL=sqlite:///{str(project_dir / "app.db")}
|
|
2325
2397
|
|
|
2326
2398
|
# Secrets (generated for this project)
|
|
2327
2399
|
SECRET_KEY={_secret_key}
|
|
2328
2400
|
JWT_SECRET={_jwt_secret}
|
|
2329
2401
|
SESSION_SECRET={_session_secret}
|
|
2402
|
+
JWT_ALGORITHM=HS256
|
|
2403
|
+
JWT_EXPIRATION_HOURS=24
|
|
2330
2404
|
|
|
2331
2405
|
# Security
|
|
2332
2406
|
CSRF_PROTECTION=true
|
|
@@ -2336,6 +2410,7 @@ CORS_ORIGINS=
|
|
|
2336
2410
|
# NextPy Settings
|
|
2337
2411
|
NEXTPY_DEBUG_ICON=true
|
|
2338
2412
|
NEXTPY_HOT_RELOAD=true
|
|
2413
|
+
NEXTPY_HMR=true
|
|
2339
2414
|
NEXTPY_LOG_LEVEL=info
|
|
2340
2415
|
""")
|
|
2341
2416
|
click.echo(" Created: .env")
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
/* NextPy Debug Icon Styles - Similar to Next.js debug overlay */
|
|
2
|
+
|
|
3
|
+
/* Main debug overlay container */
|
|
4
|
+
.nextpy-debug-overlay {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
z-index: 9999;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Debug icon button */
|
|
15
|
+
.nextpy-debug-icon {
|
|
16
|
+
position: fixed;
|
|
17
|
+
bottom: 20px;
|
|
18
|
+
right: 20px;
|
|
19
|
+
width: 48px;
|
|
20
|
+
height: 48px;
|
|
21
|
+
background: #1a1a1a;
|
|
22
|
+
border: 2px solid #333;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
color: #fff;
|
|
32
|
+
transition: all 0.2s ease;
|
|
33
|
+
pointer-events: all;
|
|
34
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nextpy-debug-icon:hover {
|
|
39
|
+
background: #333;
|
|
40
|
+
border-color: #555;
|
|
41
|
+
transform: scale(1.1);
|
|
42
|
+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nextpy-debug-icon.active {
|
|
46
|
+
background: #0070f3;
|
|
47
|
+
border-color: #0051cc;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nextpy-debug-text {
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
letter-spacing: -0.5px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Debug badge for errors/warnings */
|
|
57
|
+
.nextpy-debug-badge {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: -8px;
|
|
60
|
+
right: -8px;
|
|
61
|
+
min-width: 18px;
|
|
62
|
+
height: 18px;
|
|
63
|
+
background: #ff4444;
|
|
64
|
+
color: white;
|
|
65
|
+
border-radius: 50%;
|
|
66
|
+
font-size: 10px;
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
border: 2px solid #1a1a1a;
|
|
72
|
+
animation: pulse 2s infinite;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nextpy-debug-badge.nextpy-debug-warning {
|
|
76
|
+
background: #ffaa00;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nextpy-debug-badge.nextpy-debug-error {
|
|
80
|
+
background: #ff4444;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes pulse {
|
|
84
|
+
0% { transform: scale(1); }
|
|
85
|
+
50% { transform: scale(1.1); }
|
|
86
|
+
100% { transform: scale(1); }
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Debug panel */
|
|
90
|
+
.nextpy-debug-panel {
|
|
91
|
+
position: fixed;
|
|
92
|
+
bottom: 80px;
|
|
93
|
+
right: 20px;
|
|
94
|
+
width: 400px;
|
|
95
|
+
max-height: 600px;
|
|
96
|
+
background: #1a1a1a;
|
|
97
|
+
border: 1px solid #333;
|
|
98
|
+
border-radius: 8px;
|
|
99
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
pointer-events: all;
|
|
102
|
+
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
color: #fff;
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Debug panel header */
|
|
109
|
+
.nextpy-debug-header {
|
|
110
|
+
background: #2a2a2a;
|
|
111
|
+
padding: 12px 16px;
|
|
112
|
+
border-bottom: 1px solid #333;
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
align-items: center;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nextpy-debug-title {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: 8px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nextpy-debug-title h3 {
|
|
125
|
+
margin: 0;
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
color: #fff;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.nextpy-debug-version {
|
|
132
|
+
background: #0070f3;
|
|
133
|
+
color: white;
|
|
134
|
+
padding: 2px 6px;
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
font-size: 10px;
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.nextpy-debug-close {
|
|
141
|
+
background: none;
|
|
142
|
+
border: none;
|
|
143
|
+
color: #999;
|
|
144
|
+
font-size: 18px;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
padding: 0;
|
|
147
|
+
width: 24px;
|
|
148
|
+
height: 24px;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
border-radius: 4px;
|
|
153
|
+
transition: all 0.2s ease;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.nextpy-debug-close:hover {
|
|
157
|
+
background: #ff4444;
|
|
158
|
+
color: white;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Debug sections */
|
|
162
|
+
.nextpy-debug-section {
|
|
163
|
+
border-bottom: 1px solid #333;
|
|
164
|
+
padding: 12px 16px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nextpy-debug-section:last-child {
|
|
168
|
+
border-bottom: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.nextpy-debug-section h4 {
|
|
172
|
+
margin: 0 0 8px 0;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
color: #ccc;
|
|
176
|
+
text-transform: uppercase;
|
|
177
|
+
letter-spacing: 0.5px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Debug info rows */
|
|
181
|
+
.nextpy-debug-info,
|
|
182
|
+
.nextpy-debug-metrics {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 4px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.nextpy-debug-row {
|
|
189
|
+
display: flex;
|
|
190
|
+
justify-content: space-between;
|
|
191
|
+
align-items: center;
|
|
192
|
+
padding: 2px 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.nextpy-debug-label {
|
|
196
|
+
color: #999;
|
|
197
|
+
font-size: 11px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.nextpy-debug-value {
|
|
201
|
+
color: #fff;
|
|
202
|
+
font-weight: 500;
|
|
203
|
+
font-size: 11px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Page props */
|
|
207
|
+
.nextpy-debug-props {
|
|
208
|
+
background: #0a0a0a;
|
|
209
|
+
border: 1px solid #333;
|
|
210
|
+
border-radius: 4px;
|
|
211
|
+
padding: 8px;
|
|
212
|
+
max-height: 120px;
|
|
213
|
+
overflow-y: auto;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.nextpy-debug-code {
|
|
217
|
+
margin: 0;
|
|
218
|
+
font-size: 10px;
|
|
219
|
+
line-height: 1.4;
|
|
220
|
+
color: #ccc;
|
|
221
|
+
white-space: pre-wrap;
|
|
222
|
+
word-break: break-all;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Errors and warnings */
|
|
226
|
+
.nextpy-debug-errors,
|
|
227
|
+
.nextpy-debug-warnings {
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
230
|
+
gap: 4px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.nextpy-debug-error-item,
|
|
234
|
+
.nextpy-debug-warning-item {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
gap: 8px;
|
|
238
|
+
padding: 4px 8px;
|
|
239
|
+
border-radius: 4px;
|
|
240
|
+
font-size: 11px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.nextpy-debug-error-item {
|
|
244
|
+
background: rgba(255, 68, 68, 0.2);
|
|
245
|
+
border: 1px solid rgba(255, 68, 68, 0.3);
|
|
246
|
+
color: #ff6b6b;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.nextpy-debug-warning-item {
|
|
250
|
+
background: rgba(255, 170, 0, 0.2);
|
|
251
|
+
border: 1px solid rgba(255, 170, 0, 0.3);
|
|
252
|
+
color: #ffa500;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.nextpy-debug-error-count,
|
|
256
|
+
.nextpy-debug-warning-count {
|
|
257
|
+
background: rgba(255, 255, 255, 0.2);
|
|
258
|
+
padding: 2px 6px;
|
|
259
|
+
border-radius: 12px;
|
|
260
|
+
font-weight: bold;
|
|
261
|
+
font-size: 10px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Debug tools */
|
|
265
|
+
.nextpy-debug-tools {
|
|
266
|
+
display: grid;
|
|
267
|
+
grid-template-columns: 1fr 1fr;
|
|
268
|
+
gap: 8px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.nextpy-debug-tool-btn {
|
|
272
|
+
background: #2a2a2a;
|
|
273
|
+
border: 1px solid #444;
|
|
274
|
+
color: #ccc;
|
|
275
|
+
padding: 8px 12px;
|
|
276
|
+
border-radius: 4px;
|
|
277
|
+
font-size: 10px;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
transition: all 0.2s ease;
|
|
280
|
+
font-family: inherit;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.nextpy-debug-tool-btn:hover {
|
|
284
|
+
background: #3a3a3a;
|
|
285
|
+
border-color: #666;
|
|
286
|
+
color: #fff;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.nextpy-debug-tool-btn.active {
|
|
290
|
+
background: #0070f3;
|
|
291
|
+
border-color: #0051cc;
|
|
292
|
+
color: white;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Debug logs */
|
|
296
|
+
.nextpy-debug-logs {
|
|
297
|
+
max-height: 200px;
|
|
298
|
+
overflow-y: auto;
|
|
299
|
+
display: flex;
|
|
300
|
+
flex-direction: column;
|
|
301
|
+
gap: 2px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.nextpy-debug-log-item {
|
|
305
|
+
display: flex;
|
|
306
|
+
gap: 8px;
|
|
307
|
+
padding: 4px 8px;
|
|
308
|
+
border-radius: 2px;
|
|
309
|
+
font-size: 10px;
|
|
310
|
+
line-height: 1.3;
|
|
311
|
+
align-items: flex-start;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.nextpy-debug-log-info {
|
|
315
|
+
background: rgba(0, 112, 243, 0.1);
|
|
316
|
+
border-left: 3px solid #0070f3;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.nextpy-debug-log-warning {
|
|
320
|
+
background: rgba(255, 170, 0, 0.1);
|
|
321
|
+
border-left: 3px solid #ffa500;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.nextpy-debug-log-error {
|
|
325
|
+
background: rgba(255, 68, 68, 0.1);
|
|
326
|
+
border-left: 3px solid #ff4444;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.nextpy-debug-log-time {
|
|
330
|
+
color: #666;
|
|
331
|
+
font-family: monospace;
|
|
332
|
+
white-space: nowrap;
|
|
333
|
+
min-width: 60px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.nextpy-debug-log-level {
|
|
337
|
+
font-weight: bold;
|
|
338
|
+
min-width: 40px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.nextpy-debug-log-message {
|
|
342
|
+
color: #ccc;
|
|
343
|
+
flex: 1;
|
|
344
|
+
word-break: break-word;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Component boundaries overlay */
|
|
348
|
+
.nextpy-debug-boundaries {
|
|
349
|
+
position: fixed;
|
|
350
|
+
top: 0;
|
|
351
|
+
left: 0;
|
|
352
|
+
width: 100%;
|
|
353
|
+
height: 100%;
|
|
354
|
+
pointer-events: none;
|
|
355
|
+
z-index: 9998;
|
|
356
|
+
display: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.nextpy-debug-boundary {
|
|
360
|
+
position: absolute;
|
|
361
|
+
border: 2px dashed #0070f3;
|
|
362
|
+
background: rgba(0, 112, 243, 0.1);
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.nextpy-debug-boundary-label {
|
|
367
|
+
position: absolute;
|
|
368
|
+
top: -20px;
|
|
369
|
+
left: 0;
|
|
370
|
+
background: #0070f3;
|
|
371
|
+
color: white;
|
|
372
|
+
padding: 2px 6px;
|
|
373
|
+
border-radius: 2px;
|
|
374
|
+
font-size: 10px;
|
|
375
|
+
font-weight: bold;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* Re-render highlights */
|
|
379
|
+
.nextpy-debug-rerenders {
|
|
380
|
+
position: fixed;
|
|
381
|
+
top: 0;
|
|
382
|
+
left: 0;
|
|
383
|
+
width: 100%;
|
|
384
|
+
height: 100%;
|
|
385
|
+
pointer-events: none;
|
|
386
|
+
z-index: 9997;
|
|
387
|
+
display: none;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.nextpy-debug-rerender {
|
|
391
|
+
position: absolute;
|
|
392
|
+
border: 2px solid #ffa500;
|
|
393
|
+
background: rgba(255, 170, 0, 0.2);
|
|
394
|
+
pointer-events: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.nextpy-debug-rerender-pulse {
|
|
398
|
+
position: absolute;
|
|
399
|
+
top: -2px;
|
|
400
|
+
left: -2px;
|
|
401
|
+
right: -2px;
|
|
402
|
+
bottom: -2px;
|
|
403
|
+
border: 2px solid #ffa500;
|
|
404
|
+
animation: rerender-pulse 1s ease-out;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@keyframes rerender-pulse {
|
|
408
|
+
0% {
|
|
409
|
+
opacity: 1;
|
|
410
|
+
transform: scale(1);
|
|
411
|
+
}
|
|
412
|
+
100% {
|
|
413
|
+
opacity: 0;
|
|
414
|
+
transform: scale(1.5);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* Scrollbar styling */
|
|
419
|
+
.nextpy-debug-logs::-webkit-scrollbar,
|
|
420
|
+
.nextpy-debug-props::-webkit-scrollbar {
|
|
421
|
+
width: 6px;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.nextpy-debug-logs::-webkit-scrollbar-track,
|
|
425
|
+
.nextpy-debug-props::-webkit-scrollbar-track {
|
|
426
|
+
background: #0a0a0a;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.nextpy-debug-logs::-webkit-scrollbar-thumb,
|
|
430
|
+
.nextpy-debug-props::-webkit-scrollbar-thumb {
|
|
431
|
+
background: #444;
|
|
432
|
+
border-radius: 3px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.nextpy-debug-logs::-webkit-scrollbar-thumb:hover,
|
|
436
|
+
.nextpy-debug-props::-webkit-scrollbar-thumb:hover {
|
|
437
|
+
background: #666;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* Responsive design */
|
|
441
|
+
@media (max-width: 480px) {
|
|
442
|
+
.nextpy-debug-panel {
|
|
443
|
+
width: calc(100vw - 40px);
|
|
444
|
+
right: 20px;
|
|
445
|
+
left: 20px;
|
|
446
|
+
max-height: 70vh;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.nextpy-debug-tools {
|
|
450
|
+
grid-template-columns: 1fr;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* Dark mode variations */
|
|
455
|
+
@media (prefers-color-scheme: dark) {
|
|
456
|
+
.nextpy-debug-icon {
|
|
457
|
+
background: #0a0a0a;
|
|
458
|
+
border-color: #333;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.nextpy-debug-panel {
|
|
462
|
+
background: #0a0a0a;
|
|
463
|
+
border-color: #333;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.nextpy-debug-header {
|
|
467
|
+
background: #1a1a1a;
|
|
468
|
+
border-color: #333;
|
|
469
|
+
}
|
|
470
|
+
}
|