mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-22 06:39:41 +02:00
feat: admin maintenance and analytics stubs (#1107)
* add tail log viewer routes * add log viewer * add _mealie to ignore directories * add detailed breakdown of storage * generate types * add dialog to view breakdown * cleanup mobile UI * move migrations page * spelling * init analytics page * move route up * add remove temp files function * analytics API client * stub out analytics pages * generate types * stub out analytics routes * update names * ignore types * temporary remove analytics from sidebar
This commit is contained in:
parent
6f309d7a89
commit
1a23f867da
23 changed files with 536 additions and 59 deletions
14
frontend/api/admin/admin-analytics.ts
Normal file
14
frontend/api/admin/admin-analytics.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { BaseAPI } from "../_base";
|
||||
import { MealieAnalytics } from "~/types/api-types/analytics";
|
||||
|
||||
const prefix = "/api";
|
||||
|
||||
const routes = {
|
||||
base: `${prefix}/admin/analytics`,
|
||||
};
|
||||
|
||||
export class AdminAnalyticsApi extends BaseAPI {
|
||||
async getAnalytics() {
|
||||
return await this.requests.get<MealieAnalytics>(routes.base);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue