mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-06 05:55:23 +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
|
@ -1,2 +1,3 @@
|
|||
# GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
from .mealie_model import *
|
||||
from .types import *
|
||||
|
|
|
@ -6,3 +6,15 @@ class MaintenanceSummary(MealieModel):
|
|||
log_file_size: str
|
||||
cleanable_images: int
|
||||
cleanable_dirs: int
|
||||
|
||||
|
||||
class MaintenanceStorageDetails(MealieModel):
|
||||
temp_dir_size: str
|
||||
backups_dir_size: str
|
||||
groups_dir_size: str
|
||||
recipes_dir_size: str
|
||||
user_dir_size: str
|
||||
|
||||
|
||||
class MaintenanceLogs(MealieModel):
|
||||
logs: list[str]
|
||||
|
|
2
mealie/schema/analytics/__init__.py
Normal file
2
mealie/schema/analytics/__init__.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
# GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
from .analytics import *
|
19
mealie/schema/analytics/analytics.py
Normal file
19
mealie/schema/analytics/analytics.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
from pydantic import UUID4
|
||||
|
||||
from .._mealie import MealieModel
|
||||
|
||||
|
||||
class MealieAnalytics(MealieModel):
|
||||
installation_id: UUID4
|
||||
version: str
|
||||
database_type: str
|
||||
|
||||
using_email: bool
|
||||
using_ldap: bool
|
||||
|
||||
api_tokens: int
|
||||
users: int
|
||||
groups: int
|
||||
recipes: int
|
||||
shopping_lists: int
|
||||
cookbooks: int
|
|
@ -11,5 +11,5 @@ from .recipe_nutrition import *
|
|||
from .recipe_settings import *
|
||||
from .recipe_share_token import * # type: ignore
|
||||
from .recipe_step import *
|
||||
from .recipe_tool import *
|
||||
from .recipe_tool import * # type: ignore
|
||||
from .request_helpers import *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue