Compare commits

...

6 commits

Author SHA1 Message Date
cac047d121
Add current Empede version as HTML comment
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-13 14:21:55 +02:00
1fb778da54
Use latest Rust in Dockerfile 2023-05-10 14:57:40 +02:00
12baf4095b
Bump version to 0.1.13 2023-05-10 14:57:39 +02:00
e2ed3dc55b
Fix CSS getting messed up 2023-05-10 14:57:38 +02:00
307bbd804b
Bump version to 0.1.12 2023-05-10 14:57:23 +02:00
95b722c606
Create dependabot.yml 2023-05-10 14:56:42 +02:00
7 changed files with 24 additions and 5 deletions

7
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"

2
Cargo.lock generated
View file

@ -657,7 +657,7 @@ checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
[[package]] [[package]]
name = "empede" name = "empede"
version = "0.1.11" version = "0.1.13"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"askama", "askama",

View file

@ -1,7 +1,7 @@
[package] [package]
name = "empede" name = "empede"
description = "A web client for MPD" description = "A web client for MPD"
version = "0.1.11" version = "0.1.13"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
repository = "https://github.com/vijfhoek/empede" repository = "https://github.com/vijfhoek/empede"

View file

@ -1,4 +1,4 @@
FROM rust:1.69-alpine as builder FROM rust:alpine as builder
WORKDIR /usr/src/empede WORKDIR /usr/src/empede
RUN apk add --no-cache build-base RUN apk add --no-cache build-base
COPY ./src ./src COPY ./src ./src

View file

@ -6,6 +6,12 @@ use serde::Deserialize;
mod mpd; mod mpd;
macro_rules! crate_version {
() => {
env!("CARGO_PKG_VERSION")
};
}
#[derive(Template)] #[derive(Template)]
#[template(path = "index.html")] #[template(path = "index.html")]
struct IndexTemplate; struct IndexTemplate;

View file

@ -142,8 +142,12 @@ ul {
margin-right: 1.0rem; margin-right: 1.0rem;
} }
ul.breadcrumb { position: relative; ul.breadcrumb {
rast: more) { display: flex;
flex-wrap: wrap;
list-style: none;
}
@media (prefers-contrast: more) {
ul.breadcrumb { ul.breadcrumb {
background-color: black; background-color: black;
border: 2px solid white; border: 2px solid white;

View file

@ -4,6 +4,8 @@
<head> <head>
<title>Empede</title> <title>Empede</title>
<!-- Empede version: {{ crate_version!() }} -->
<!-- Source: https://github.com/bigskysoftware/htmx --> <!-- Source: https://github.com/bigskysoftware/htmx -->
<script src="/static/vendor/htmx.min.js"></script> <script src="/static/vendor/htmx.min.js"></script>
<script src="/static/vendor/htmx-sse.js"></script> <script src="/static/vendor/htmx-sse.js"></script>