mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +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
|
@ -190,6 +190,16 @@ export interface ImportJob {
|
|||
force?: boolean;
|
||||
rebase?: boolean;
|
||||
}
|
||||
export interface MaintenanceLogs {
|
||||
logs: string[];
|
||||
}
|
||||
export interface MaintenanceStorageDetails {
|
||||
tempDirSize: string;
|
||||
backupsDirSize: string;
|
||||
groupsDirSize: string;
|
||||
recipesDirSize: string;
|
||||
userDirSize: string;
|
||||
}
|
||||
export interface MaintenanceSummary {
|
||||
dataDirSize: string;
|
||||
logFileSize: string;
|
||||
|
|
20
frontend/types/api-types/analytics.ts
Normal file
20
frontend/types/api-types/analytics.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
/* This file was automatically generated from pydantic models by running pydantic2ts.
|
||||
/* Do not modify it by hand - just update the pydantic models and then re-run the script
|
||||
*/
|
||||
|
||||
export interface MealieAnalytics {
|
||||
installationId: string;
|
||||
version: string;
|
||||
databaseType: string;
|
||||
usingEmail: boolean;
|
||||
usingLdap: boolean;
|
||||
apiTokens: number;
|
||||
users: number;
|
||||
groups: number;
|
||||
recipes: number;
|
||||
shoppingLists: number;
|
||||
cookbooks: number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue