Fix CSS copying and processing with Trunk

- Use data-trunk directive for CSS processing instead of manual copy
- Enable automatic content hashing and cache busting for styles.css
- Remove unused CalendarInfo import to fix compiler warning
- Simplify Trunk.toml by removing redundant copy configuration

This ensures styles.css is properly copied and processed on every build
with automatic cache invalidation when styles change.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-08-28 20:00:35 -04:00
parent 7c83a4522c
commit 5d519fd875
3 changed files with 2 additions and 5 deletions

View File

@@ -14,6 +14,3 @@ address = "127.0.0.1"
port = 8080
open = false
[[copy]]
from = "styles.css"
to = "dist/"

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>Calendar App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link data-trunk rel="css" href="styles.css">
</head>
<body></body>
</html>

View File

@@ -2,7 +2,7 @@ use yew::prelude::*;
use yew_router::prelude::*;
use gloo_storage::{LocalStorage, Storage};
use crate::components::{Login, Calendar};
use crate::services::{CalendarService, CalendarEvent, UserInfo, CalendarInfo};
use crate::services::{CalendarService, CalendarEvent, UserInfo};
use std::collections::HashMap;
use chrono::{Local, NaiveDate, Datelike};