1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! Admin panel functionality
//!
//! This module provides access to Reinhardt's admin panel system through
//! unified imports from the `reinhardt::admin` namespace.
//!
//! ## Architecture
//!
//! - **core**: Business logic and ModelAdmin trait
//! - **server**: Server Functions for backend operations
//! - **pages**: WASM frontend UI
//! - **adapters**: Unified type imports
//! - **types**: Shared type definitions
//!
//! ## Example (Unified Access)
//!
//! ```rust
//! use reinhardt::admin::*;
//!
//! // Configure admin site
//! let mut site = AdminSite::new("My Admin");
//!
//! // Register models
//! let user_admin = ModelAdminConfig::builder()
//! .model_name("User")
//! .table_name("users")
//! .list_display(vec!["id", "username", "email"])
//! .build()
//! .unwrap();
//! site.register("User", user_admin);
//! ```
//!
//! ## Example (Submodule Access)
//!
//! ```no_run
//! // Server-side (non-wasm32):
//! use reinhardt::admin::adapters::AdminSite;
//! use reinhardt::admin::server::get_dashboard;
//!
//! // Client-side (wasm32 only):
//! // use reinhardt::admin::pages::AdminRouter;
//! ```
// Link reinhardt-admin crate to ensure inventory registration is executed
extern crate reinhardt_admin;
/// Admin interface adapter implementations.
/// Core admin registration and configuration types.
/// Server-side admin route handlers and views.
// Admin pages module is not yet available as a separate crate.
// WASM admin UI will be provided by a future reinhardt-admin-pages crate.
// Re-export core router for admin route mounting
pub use ;
// Also re-export at top level for convenience
pub use *;
pub use *;
// WASM admin pages re-export will be added when reinhardt-admin-pages crate is available.