mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-12-21 06:19:31 +08:00
24 lines
447 B
Python
24 lines
447 B
Python
|
|
from flask_babel import gettext as __
|
|
from flask_babel import lazy_gettext as _
|
|
|
|
from myapp import app, appbuilder,db,event_logger
|
|
|
|
conf = app.config
|
|
|
|
|
|
all_links = conf.get('ALL_LINKS',{})
|
|
for link in all_links:
|
|
appbuilder.add_link(
|
|
link['label'],
|
|
label=_(link['label']),
|
|
href=link['url'],
|
|
category_icon="fa-link",
|
|
icon="fa-link",
|
|
category="link",
|
|
category_label=__("链接"),
|
|
)
|
|
|
|
|
|
|