mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix debug/about response
This commit is contained in:
parent
87f86d5d7f
commit
e81671821f
4 changed files with 6 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
||||||
"download-recipe-json": "Download Recipe JSON",
|
"download-recipe-json": "Download Recipe JSON",
|
||||||
"not-demo": "Not Demo",
|
"not-demo": "Not Demo",
|
||||||
"production": "Production",
|
"production": "Production",
|
||||||
"sqlite-file": "SQLite File",
|
"database-url": "Database URL",
|
||||||
"version": "Version"
|
"version": "Version"
|
||||||
},
|
},
|
||||||
"category": {
|
"category": {
|
||||||
|
|
|
@ -79,9 +79,9 @@ export default {
|
||||||
value: debugInfo.dbType,
|
value: debugInfo.dbType,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t("about.sqlite-file"),
|
name: this.$t("about.database-url"),
|
||||||
icon: "mdi-file-cabinet",
|
icon: "mdi-file-cabinet",
|
||||||
value: debugInfo.sqliteFile,
|
value: debugInfo.dbUrl,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: this.$t("about.default-group"),
|
name: this.$t("about.default-group"),
|
||||||
|
@ -93,5 +93,3 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ async def get_debug_info(current_user=Depends(get_current_user)):
|
||||||
demo_status=settings.IS_DEMO,
|
demo_status=settings.IS_DEMO,
|
||||||
api_port=settings.API_PORT,
|
api_port=settings.API_PORT,
|
||||||
api_docs=settings.API_DOCS,
|
api_docs=settings.API_DOCS,
|
||||||
|
db_type=settings.DB_ENGINE,
|
||||||
db_url=settings.DB_URL,
|
db_url=settings.DB_URL,
|
||||||
default_group=settings.DEFAULT_GROUP,
|
default_group=settings.DEFAULT_GROUP,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from fastapi_camelcase import CamelModel
|
from fastapi_camelcase import CamelModel
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,5 +12,6 @@ class AppInfo(CamelModel):
|
||||||
class DebugInfo(AppInfo):
|
class DebugInfo(AppInfo):
|
||||||
api_port: int
|
api_port: int
|
||||||
api_docs: bool
|
api_docs: bool
|
||||||
|
db_type: str
|
||||||
db_url: Path
|
db_url: Path
|
||||||
default_group: str
|
default_group: str
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue