forked from creations/profilePage
add review db, fix issues with spamming css url and readme whenever status updated
This commit is contained in:
parent
5ad5d7181f
commit
9aa58ae23f
6 changed files with 281 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
|||
import { resolve } from "node:path";
|
||||
import { badgeApi, lanyardConfig, plausibleScript } from "@config/environment";
|
||||
import {
|
||||
badgeApi,
|
||||
lanyardConfig,
|
||||
plausibleScript,
|
||||
reviewDb,
|
||||
} from "@config/environment";
|
||||
import { file } from "bun";
|
||||
|
||||
const routeDef: RouteDef = {
|
||||
|
@ -24,6 +29,10 @@ async function handler(request: ExtendedRequest): Promise<Response> {
|
|||
head.setAttribute("data-instance-uri", instance);
|
||||
head.setAttribute("data-badge-url", badgeApi || "");
|
||||
|
||||
if (reviewDb.enabled) {
|
||||
head.setAttribute("data-review-db", reviewDb.url);
|
||||
}
|
||||
|
||||
if (plausibleScript) {
|
||||
head.append(plausibleScript, { html: true });
|
||||
}
|
||||
|
|
|
@ -62,6 +62,12 @@
|
|||
</section>
|
||||
</main>
|
||||
|
||||
<section class="reviews hidden" aria-label="User Reviews">
|
||||
<h2>User Reviews</h2>
|
||||
<ul class="reviews-list">
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<script src="/public/js/index.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue