Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
867fc61b
Unverified
Commit
867fc61b
authored
Dec 19, 2023
by
zxhlyh
Committed by
GitHub
Dec 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: web app text (#1784)
parent
8e2e477a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
site.py
api/controllers/web/site.py
+1
-1
account.py
api/models/account.py
+1
-1
custom.en.ts
web/i18n/lang/custom.en.ts
+1
-1
custom.zh.ts
web/i18n/lang/custom.zh.ts
+1
-1
No files found.
api/controllers/web/site.py
View file @
867fc61b
...
...
@@ -85,7 +85,7 @@ class AppSiteInfo:
if
can_replace_logo
:
base_url
=
current_app
.
config
.
get
(
'FILES_URL'
)
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
=
{
'remove_webapp_brand'
:
remove_webapp_brand
,
'replace_webapp_logo'
:
replace_webapp_logo
,
...
...
api/models/account.py
View file @
867fc61b
...
...
@@ -127,7 +127,7 @@ class Tenant(db.Model):
@
property
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
def
custom_config_dict
(
self
,
value
:
dict
):
...
...
web/i18n/lang/custom.en.ts
View file @
867fc61b
...
...
@@ -5,7 +5,7 @@ const translation = {
suffix
:
'customize your brand.'
,
},
webapp
:
{
title
:
'Customize
web a
pp brand'
,
title
:
'Customize
WebA
pp brand'
,
removeBrand
:
'Remove Powered by Dify'
,
changeLogo
:
'Change Powered by Brand Image'
,
changeLogoTip
:
'SVG or PNG format with a minimum size of 40x40px'
,
...
...
web/i18n/lang/custom.zh.ts
View file @
867fc61b
...
...
@@ -5,7 +5,7 @@ const translation = {
suffix
:
'定制您的品牌。'
,
},
webapp
:
{
title
:
'定制
web a
pp 品牌'
,
title
:
'定制
WebA
pp 品牌'
,
removeBrand
:
'移除 Powered by Dify'
,
changeLogo
:
'更改 Powered by Brand 图片'
,
changeLogoTip
:
'SVG 或 PNG 格式,最小尺寸为 40x40px'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment