mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 13:15:32 -04:00
only reveal a db record via /api/hits
if it matches a real page
This commit is contained in:
12
types/stats.d.ts
vendored
12
types/stats.d.ts
vendored
@@ -1,13 +1,13 @@
|
||||
import type { NoteFrontMatter } from "./note";
|
||||
|
||||
export type PageStats = {
|
||||
hits: number;
|
||||
};
|
||||
|
||||
export type DetailedPageStats = PageStats & {
|
||||
slug: string;
|
||||
title?: string;
|
||||
url?: string;
|
||||
date?: string;
|
||||
};
|
||||
export type DetailedPageStats = PageStats &
|
||||
Pick<NoteFrontMatter, "slug" | "title" | "date"> & {
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type SiteStats = {
|
||||
total: PageStats;
|
||||
|
Reference in New Issue
Block a user