-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dashboard widgets and auto register inlines.
- Loading branch information
Showing
11 changed files
with
106 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ class App: | |
NAME = "FastAdmin" | ||
AUTHOR_NAME = "Seva D." | ||
AUTHOR_EMAIL = "[email protected]" | ||
ANTD_CHARTS_EXAMPLES = "https://ant-design-charts.antgroup.com/en/examples" | ||
|
||
|
||
def read_cls_docstring(cls): | ||
|
@@ -38,6 +39,12 @@ def read_cls_docstring(cls): | |
|
||
def get_versions(): | ||
return [ | ||
{ | ||
"version": "0.2.4", | ||
"changes": [ | ||
"Fix dashboard widgets and auto register inlines.", | ||
], | ||
}, | ||
{ | ||
"version": "0.2.3", | ||
"changes": [ | ||
|
@@ -444,7 +451,7 @@ def get_page_context(page_url): | |
{"type": "code-python", "content": inspect.getsource(DashboardWidgetAdmin)}, | ||
{ | ||
"type": "alert-warning", | ||
"content": "Note: Please see <a href='https://charts.ant.design/en/examples' target='_blank'>antd charts</a> for <code>x_field_filter_widget_props</code>.", | ||
"content": f"Note: Please see <a href='{ANTD_CHARTS_EXAMPLES}' target='_blank'>antd charts</a> for <code>x_field_filter_widget_props</code>.", | ||
}, | ||
] | ||
case "#widget-chart-types": | ||
|
@@ -456,7 +463,7 @@ def get_page_context(page_url): | |
{"type": "code-python", "content": inspect.getsource(DashboardWidgetType)}, | ||
{ | ||
"type": "alert-warning", | ||
"content": "Note: Please see <a href='https://charts.ant.design/en/examples' target='_blank'>antd charts</a> for more details (e.g. to see how they look like).", | ||
"content": f"Note: Please see <a href='={ANTD_CHARTS_EXAMPLES}' target='_blank'>antd charts</a> for more details (e.g. to see how they look like).", | ||
}, | ||
] | ||
# models | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.