mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:59:00 +08:00
fix: web app text (#1784)
This commit is contained in:
parent
8e2e477a7f
commit
867fc61b12
@ -85,7 +85,7 @@ class AppSiteInfo:
|
|||||||
if can_replace_logo:
|
if can_replace_logo:
|
||||||
base_url = current_app.config.get('FILES_URL')
|
base_url = current_app.config.get('FILES_URL')
|
||||||
remove_webapp_brand = tenant.custom_config_dict.get('remove_webapp_brand', False)
|
remove_webapp_brand = tenant.custom_config_dict.get('remove_webapp_brand', False)
|
||||||
replace_webapp_logo = f'{base_url}/files/workspaces/{tenant.id}/webapp-logo' if tenant.custom_config_dict['replace_webapp_logo'] else None
|
replace_webapp_logo = f'{base_url}/files/workspaces/{tenant.id}/webapp-logo' if tenant.custom_config_dict.get('replace_webapp_logo') else None
|
||||||
self.custom_config = {
|
self.custom_config = {
|
||||||
'remove_webapp_brand': remove_webapp_brand,
|
'remove_webapp_brand': remove_webapp_brand,
|
||||||
'replace_webapp_logo': replace_webapp_logo,
|
'replace_webapp_logo': replace_webapp_logo,
|
||||||
|
@ -127,7 +127,7 @@ class Tenant(db.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def custom_config_dict(self) -> dict:
|
def custom_config_dict(self) -> dict:
|
||||||
return json.loads(self.custom_config) if self.custom_config else None
|
return json.loads(self.custom_config) if self.custom_config else {}
|
||||||
|
|
||||||
@custom_config_dict.setter
|
@custom_config_dict.setter
|
||||||
def custom_config_dict(self, value: dict):
|
def custom_config_dict(self, value: dict):
|
||||||
|
@ -5,7 +5,7 @@ const translation = {
|
|||||||
suffix: 'customize your brand.',
|
suffix: 'customize your brand.',
|
||||||
},
|
},
|
||||||
webapp: {
|
webapp: {
|
||||||
title: 'Customize web app brand',
|
title: 'Customize WebApp brand',
|
||||||
removeBrand: 'Remove Powered by Dify',
|
removeBrand: 'Remove Powered by Dify',
|
||||||
changeLogo: 'Change Powered by Brand Image',
|
changeLogo: 'Change Powered by Brand Image',
|
||||||
changeLogoTip: 'SVG or PNG format with a minimum size of 40x40px',
|
changeLogoTip: 'SVG or PNG format with a minimum size of 40x40px',
|
||||||
|
@ -5,7 +5,7 @@ const translation = {
|
|||||||
suffix: '定制您的品牌。',
|
suffix: '定制您的品牌。',
|
||||||
},
|
},
|
||||||
webapp: {
|
webapp: {
|
||||||
title: '定制 web app 品牌',
|
title: '定制 WebApp 品牌',
|
||||||
removeBrand: '移除 Powered by Dify',
|
removeBrand: '移除 Powered by Dify',
|
||||||
changeLogo: '更改 Powered by Brand 图片',
|
changeLogo: '更改 Powered by Brand 图片',
|
||||||
changeLogoTip: 'SVG 或 PNG 格式,最小尺寸为 40x40px',
|
changeLogoTip: 'SVG 或 PNG 格式,最小尺寸为 40x40px',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user