Compare commits

..

5 Commits

4 changed files with 859 additions and 472 deletions

1323
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
FROM rust:1.64 as builder FROM rust:1.70 as builder
# Create a new empty project. # Create a new empty project.
RUN USER=root cargo new --bin tildes-statistics RUN USER=root cargo new --bin tildes-statistics
@ -18,7 +18,7 @@ COPY node_modules/modern-normalize node_modules/modern-normalize
RUN rm target/release/deps/tildes_statistics* RUN rm target/release/deps/tildes_statistics*
# Build the executable with actual source code. # Build the executable with actual source code.
RUN cargo install --offline --path . RUN cargo install --locked --offline --path .
# Copy the executable to a smaller final image. # Copy the executable to a smaller final image.
FROM debian:bullseye-slim FROM debian:bullseye-slim

View File

@ -60,7 +60,7 @@ impl UserCountChart {
let chart_root = chart_root let chart_root = chart_root
.margin(20, 20, 20, 20) .margin(20, 20, 20, 20)
.titled("Tildes User Count", text_style(30))?; .titled("User Count", text_style(30))?;
chart_root.fill(&BACKGROUND_2)?; chart_root.fill(&BACKGROUND_2)?;

View File

@ -65,5 +65,5 @@ pub fn get_env_var(key: &str) -> Result<String> {
/// Create a [`NaiveDate`] for today. /// Create a [`NaiveDate`] for today.
pub fn today() -> NaiveDate { pub fn today() -> NaiveDate {
Utc::now().date().naive_utc() Utc::now().date_naive()
} }