Commit d043cca049eaee5a2ac40e89f36b576ef3a0148f
1 parent
21747b97
Exists in
add_super_archives_plugin
Fix widgets import
Signed-off-by: Gustavo Jaruga Cruz <darksshades@gmail.com> Signed-off-by: Lucas Moura <lucas.moura123@gmail.com>
Showing
2 changed files
with
13 additions
and
12 deletions
Show diff stats
cookbooks/colab/files/default/dashboard.py
| 1 | from colab.widgets.widget_manager import WidgetManager | 1 | from colab.widgets.widget_manager import WidgetManager |
| 2 | 2 | ||
| 3 | -from colab.super_archives.widgets.dashboard_latest_collaborations import \ | ||
| 4 | - DashboardLatestCollaborationsWidget | ||
| 5 | -from colab.super_archives.widgets.dashboard_most_relevant_threads import \ | ||
| 6 | - DashboardMostRelevantThreadsWidget | ||
| 7 | -from colab.super_archives.widgets.dashboard_latest_threads import \ | ||
| 8 | - DashboardLatestThreadsWidget | ||
| 9 | -from colab.super_archives.widgets.dashboard_collaboration_graph import \ | ||
| 10 | - DashboardCollaborationGraphWidget | 3 | +from colab.widgets.dashboard.dashboard_latest_collaborations import \ |
| 4 | + DashboardLatestCollaborationsWidget | ||
| 5 | +from colab.widgets.dashboard.dashboard_collaboration_graph import \ | ||
| 6 | + DashboardCollaborationGraphWidget | ||
| 7 | +from colab_superarchives.widgets.dashboard_most_relevant_threads import \ | ||
| 8 | + DashboardMostRelevantThreadsWidget | ||
| 9 | +from colab_superarchives.widgets.dashboard_latest_threads import \ | ||
| 10 | + DashboardLatestThreadsWidget | ||
| 11 | 11 | ||
| 12 | # Dashboard Widgets | 12 | # Dashboard Widgets |
| 13 | WidgetManager.register_widget('dashboard', | 13 | WidgetManager.register_widget('dashboard', |
cookbooks/colab/files/default/profile.py
| 1 | from colab.widgets.widget_manager import WidgetManager | 1 | from colab.widgets.widget_manager import WidgetManager |
| 2 | -from colab.accounts.widgets.group import GroupWidget | ||
| 3 | -from colab.accounts.widgets.group_membership import GroupMembershipWidget | ||
| 4 | -from colab.accounts.widgets.latest_posted import LatestPostedWidget | 2 | + |
| 3 | +from colab_superarchives.widgets.group import GroupWidget | ||
| 4 | +from colab_superarchives.widgets.group_membership import GroupMembershipWidget | ||
| 5 | +from colab_superarchives.widgets.latest_posted import LatestPostedWidget | ||
| 5 | from colab.accounts.widgets.latest_contributions import \ | 6 | from colab.accounts.widgets.latest_contributions import \ |
| 6 | LatestContributionsWidget | 7 | LatestContributionsWidget |
| 7 | 8 | ||
| 8 | from colab.accounts.widgets.collaboration_chart import CollaborationChart | 9 | from colab.accounts.widgets.collaboration_chart import CollaborationChart |
| 9 | -from colab.accounts.widgets.participation_chart import ParticipationChart | 10 | +from colab_superarchives.widgets.participation_chart import ParticipationChart |
| 10 | 11 | ||
| 11 | # Profile Widgets | 12 | # Profile Widgets |
| 12 | WidgetManager.register_widget('group', GroupWidget()) | 13 | WidgetManager.register_widget('group', GroupWidget()) |