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
// Copyright (c) 2025-2026 COOLJAPAN OU (Team KitaSan)
// SPDX-License-Identifier: Apache-2.0
//! Model versioning UI for TrustformeRS Hub integration
//!
//! This module provides a web-based user interface for managing model versions,
//! tracking changes, comparing models, and visualizing version history.
//!
//! Split into cohesive submodules: [`types`] (version/repository/access-control data
//! model), [`repository`] (the `ModelRepository` domain type), [`state`] (server-wide
//! UI state and configuration), [`server`] (the `HubUiServer` axum router and start
//! functions), [`handlers`] (axum route handlers) and [`templates`] (HTML/CSS view
//! generation).
// Re-export all types
pub use *;
pub use *;
pub use *;
pub use *;
// `handlers` and `templates` hold functions that were module-private in the
// original single-file `hub_ui.rs` (only ever called from within this same
// module, e.g. wired into the axum `Router` in `server.rs`); splitting them
// out required upgrading them to `pub(super)` for cross-submodule access, but
// they are still not part of this crate's public API. The `tests` submodule
// reaches them unqualified via its own `use super::*;`, exactly as it could
// when they all lived in one file, so the re-export is only needed there.
use *;
use *;