refactor: reorganize HtmlPageContext and update imports across modules
Some checks failed
CI / Check / Test (push) Failing after 46m33s

This commit is contained in:
2026-06-30 00:07:20 +02:00
parent 9c06fbd33e
commit 943a0abe54
13 changed files with 31 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ use crate::{
use api_types::{
LoginRequest, LoginResponse, LogoutRequest, RefreshRequest, RefreshResponse, RegisterRequest,
};
use application::ports::HtmlPageContext;
use application::rendering::HtmlPageContext;
use template_askama::{LoginTemplate, RegisterTemplate};
// ── HTML helpers ─────────────────────────────────────────────────────────────

View File

@@ -1,4 +1,4 @@
use application::ports::HtmlPageContext;
use application::rendering::HtmlPageContext;
use domain::value_objects::UserId;
use crate::state::AppState;

View File

@@ -201,7 +201,7 @@ fn format_watch_time(minutes: u32) -> String {
fn render_wrapup(
report: &WrapUpReport,
year: i32,
ctx: &application::ports::HtmlPageContext,
ctx: &application::rendering::HtmlPageContext,
) -> axum::response::Response {
let rating_max = report
.rating_distribution

View File

@@ -7,7 +7,6 @@ pub mod forms;
pub mod handlers;
pub mod mappers;
pub mod openapi;
pub mod ports;
pub mod render;
pub mod routes;
pub mod state;

View File

@@ -1 +0,0 @@
pub use application::ports::RssFeedRenderer;

View File

@@ -2,7 +2,7 @@ use std::sync::Arc;
use crate::context::AppContext;
use crate::ports::RssFeedRenderer;
use application::ports::RssFeedRenderer;
#[derive(Clone)]
pub struct AppState {

View File

@@ -416,7 +416,7 @@ impl domain::ports::DocumentParser for Panic {
}
}
impl crate::ports::RssFeedRenderer for Panic {
impl application::ports::RssFeedRenderer for Panic {
fn render_feed(&self, _: &[DiaryEntry], _: &str) -> Result<String, String> {
panic!()
}