chore: more god module refactor

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-01 08:57:48 +02:00
parent a7747bd1e1
commit 10e2355817
6 changed files with 1317 additions and 1242 deletions

View File

@@ -611,6 +611,9 @@ defmodule BDS.MaintenanceTest do
|> Enum.join("\n")
)
File.mkdir_p!(Path.join([temp_dir, "posts", "2026", "04"]))
File.mkdir_p!(Path.join([temp_dir, "media", "2026", "04"]))
File.write!(
Path.join([temp_dir, "posts", "2026", "04", "orphan-post.md"]),
"---\nid: orphan\ntitle: Orphan\nslug: orphan\nstatus: published\ncreatedAt: 1\nupdatedAt: 1\npublishedAt: 1\ntags:\ncategories:\n---\nBody\n"
@@ -1250,6 +1253,11 @@ defmodule BDS.MaintenanceTest do
script_orphan_path = "scripts/orphan.lua"
template_orphan_path = "templates/orphan-view.liquid"
File.mkdir_p!(Path.join([temp_dir, "posts", "2026", "04"]))
File.mkdir_p!(Path.join([temp_dir, "media", "2026", "04"]))
File.mkdir_p!(Path.join(temp_dir, "scripts"))
File.mkdir_p!(Path.join(temp_dir, "templates"))
File.write!(Path.join(temp_dir, post_orphan_path), [
"---",
"id: orphan-post",