Skip to content

Commit a49b50f

Browse files
committed
♻️ Refactor: remove unnecessary url constant #1073
1 parent 9ab60e3 commit a49b50f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

backend/consts/const.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070
DEFAULT_APP_DESCRIPTION_EN = "Nexent is an open-source agent SDK and platform, which can convert a single prompt into a complete multi-modal service - without orchestration, without complex drag-and-drop. Built on the MCP tool ecosystem, Nexent provides flexible model integration, scalable data processing, and powerful knowledge base management. Our goal is simple: to integrate data, models, and tools into a central intelligence hub, allowing anyone to easily integrate Nexent into their projects, making daily workflows smarter and more interconnected."
7171
DEFAULT_APP_NAME_ZH = "Nexent 智能体"
7272
DEFAULT_APP_NAME_EN = "Nexent Agent"
73-
DEFAULT_APP_ICON_URL = "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20shape-rendering%3D%22auto%22%20width%3D%2230%22%20height%3D%2230%22%3E%3Cmetadata%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Adcterms%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%22%3E%3Crdf%3ARDF%3E%3Crdf%3ADescription%3E%3Cdc%3Atitle%3EBootstrap%20Icons%3C%2Fdc%3Atitle%3E%3Cdc%3Acreator%3EThe%20Bootstrap%20Authors%3C%2Fdc%3Acreator%3E%3Cdc%3Asource%20xsi%3Atype%3D%22dcterms%3AURI%22%3Ehttps%3A%2F%2Fgithub.com%2Ftwbs%2Ficons%3C%2Fdc%3Asource%3E%3Cdcterms%3Alicense%20xsi%3Atype%3D%22dcterms%3AURI%22%3Ehttps%3A%2F%2Fgithub.com%2Ftwbs%2Ficons%2Fblob%2Fmain%2FLICENSE%3C%2Fdcterms%3Alicense%3E%3Cdc%3Arights%3E%E2%80%9EBootstrap%20Icons%E2%80%9D%20(https%3A%2F%2Fgithub.com%2Ftwbs%2Ficons)%20by%20%E2%80%9EThe%20Bootstrap%20Authors%E2%80%9D%2C%20licensed%20under%20%E2%80%9EMIT%E2%80%9D%20(https%3A%2F%2Fgithub.com%2Ftwbs%2Ficons%2Fblob%2Fmain%2FLICENSE)%3C%2Fdc%3Arights%3E%3C%2Frdf%3ADescription%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cmask%20id%3D%22viewboxMask%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20rx%3D%2212%22%20ry%3D%2212%22%20x%3D%220%22%20y%3D%220%22%20fill%3D%22%23fff%22%20%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url(%23viewboxMask)%22%3E%3Crect%20fill%3D%22url(%23backgroundLinear)%22%20width%3D%2224%22%20height%3D%2224%22%20x%3D%220%22%20y%3D%220%22%20%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22backgroundLinear%22%20gradientTransform%3D%22rotate(196%200.5%200.5)%22%3E%3Cstop%20stop-color%3D%22%232689cb%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%234226cb%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20transform%3D%22translate(2.4000000000000004%202.4000000000000004)%20scale(0.8)%22%3E%3Cg%20transform%3D%22translate(4%204)%22%3E%3Cpath%20d%3D%22M11.742%2010.344a6.5%206.5%200%201%200-1.397%201.398h-.001c.03.04.062.078.098.115l3.85%203.85a1%201%200%200%200%201.415-1.414l-3.85-3.85a1.012%201.012%200%200%200-.115-.1v.001ZM12%206.5a5.5%205.5%200%201%201-11%200%205.5%205.5%200%200%201%2011%200Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"
74-
7573

7674
# Minio Configuration
7775
MINIO_ENDPOINT = os.getenv("MINIO_ENDPOINT")

backend/services/config_sync_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
CUSTOM_ICON_URL,
99
DEFAULT_APP_DESCRIPTION_EN,
1010
DEFAULT_APP_DESCRIPTION_ZH,
11-
DEFAULT_APP_ICON_URL,
1211
DEFAULT_APP_NAME_EN,
1312
DEFAULT_APP_NAME_ZH,
1413
ICON_TYPE,
@@ -133,8 +132,7 @@ def build_app_config(language: str, tenant_id: str) -> dict:
133132
tenant_id=tenant_id) or default_app_description,
134133
"icon": {
135134
"type": tenant_config_manager.get_app_config(ICON_TYPE, tenant_id=tenant_id) or "preset",
136-
"avatarUri": tenant_config_manager.get_app_config(AVATAR_URI,
137-
tenant_id=tenant_id) or DEFAULT_APP_ICON_URL,
135+
"avatarUri": tenant_config_manager.get_app_config(AVATAR_URI, tenant_id=tenant_id) or "",
138136
"customUrl": tenant_config_manager.get_app_config(CUSTOM_ICON_URL, tenant_id=tenant_id) or ""
139137
}
140138
}

0 commit comments

Comments
 (0)