hiccup
All checks were successful
Deploy ${{ gitea.repository }} / build (push) Successful in 2s

This commit is contained in:
Adam Jeniski 2025-10-05 08:20:18 -09:00
parent b9ca636075
commit 78c39e1c4a
3 changed files with 29 additions and 29 deletions

View File

@ -5,6 +5,7 @@
compojure/compojure {:mvn/version "1.7.1"}
ring-logger/ring-logger {:mvn/version "1.1.1"}
org.slf4j/slf4j-api {:mvn/version "2.0.17"}
hiccup/hiccup {:mvn/version "2.0.0"}
org.slf4j/slf4j-simple {:mvn/version "2.0.17"}}
:paths [:clj-paths :resource-paths]
:aliases

View File

@ -1,27 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Ajet Dashboard</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="icon" type="image/x-icon" href="https://data-star.dev/cdn-cgi/image/format=auto/static/images/rocket-48x48-4c739bfaffe86a6ffcc3a6d77e3c5547730f03d74c11aa460209596d1811f7a3.png" />
</head>
<body>
<h2>Public Services:</h2>
<ul>
<li><a href="https://git.ajet.fyi/">git</a></li>
<li><a href="https://status.ajet.fyi/">status</a></li>
</ul>
<h2>Personal Quicklist:</h2>
<ul>
<li><a href="https://devbox.ajet.fyi">devbox</a></li>
<li><a href="https://git.ajet.fyi/ajet-industries">Ajet Industries</a></li>
<li><a href="https://git.ajet.fyi/explore/repos">repos</a></li>
<li><a href="https://ebooks.ajet.fyi">ebooks</a></li>
<li><a href="https://uptime.ajet.fyi">uptime</a></li>
<li><a href="https://service-manager.ajet.fyi">ci</a></li>
<li><a href="https://mini:8006">cluster</a></li>
<li><a href="http://192.168.1.124:8081">mp4</a></li>
</ul>
</body>
</html>

View File

@ -5,11 +5,37 @@
[ring.middleware.content-type :refer [wrap-content-type]]
[ring.middleware.not-modified :refer [wrap-not-modified]]
[ring.middleware.resource :refer [wrap-resource]]
[ring.util.response :refer [resource-response]])
[hiccup2.core :as h])
(:gen-class))
(def index
(str (h/html [:title "Ajet Dashboard"]
[:link {:rel "stylesheet", :href "/css/style.css"}]
[:link
{:rel "icon",
:type "image/x-icon",
:href
"https://data-star.dev/cdn-cgi/image/format=auto/static/images/rocket-48x48-4c739bfaffe86a6ffcc3a6d77e3c5547730f03d74c11aa460209596d1811f7a3.png"}]
[:h2 "Public Services:"]
[:ul
[:li [:a {:href "https://git.ajet.fyi/"} "git"]]
[:li [:a {:href "https://status.ajet.fyi/"} "status"]]]
[:h2 "Personal Quicklist:"]
[:ul
[:li [:a {:href "https://devbox.ajet.fyi"} "devbox"]]
[:li
[:a
{:href "https://git.ajet.fyi/ajet-industries"}
"Ajet Industries"]]
[:li [:a {:href "https://git.ajet.fyi/explore/repos"} "repos"]]
[:li [:a {:href "https://ebooks.ajet.fyi"} "ebooks"]]
[:li [:a {:href "https://uptime.ajet.fyi"} "uptime"]]
[:li [:a {:href "https://service-manager.ajet.fyi"} "ci"]]
[:li [:a {:href "https://mini:8006"} "cluster"]]
[:li [:a {:href "http://192.168.1.124:8081"} "mp4"]]])))
(defroutes approutes
(GET "/" [] (resource-response "public/index.html")))
(GET "/" [] index))
(def app
(-> #'approutes