1
0
Fork 0
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:
Hayden 2022-03-29 08:25:28 -08:00 committed by GitHub
parent 6f309d7a89
commit 1a23f867da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 536 additions and 59 deletions

View file

@ -1,2 +1,3 @@
# GENERATED CODE - DO NOT MODIFY BY HAND
from .mealie_model import *
from .types import *

View file

@ -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]

View file

@ -0,0 +1,2 @@
# GENERATED CODE - DO NOT MODIFY BY HAND
from .analytics import *

View 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

View file

@ -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 *