refactor: reorganize HtmlPageContext and update imports across modules
Some checks failed
CI / Check / Test (push) Failing after 46m33s
Some checks failed
CI / Check / Test (push) Failing after 46m33s
This commit is contained in:
@@ -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 ─────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use application::ports::HtmlPageContext;
|
||||
use application::rendering::HtmlPageContext;
|
||||
use domain::value_objects::UserId;
|
||||
|
||||
use crate::state::AppState;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
pub use application::ports::RssFeedRenderer;
|
||||
@@ -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 {
|
||||
|
||||
@@ -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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user