From 759ebe22980fd2227984a98d697941c5664836b8 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 10 Jan 2022 15:19:16 +0100 Subject: [PATCH] Add a breadcrumbs component Signed-off-by: Thomas Citharel --- js/src/components/Utils/Breadcrumbs.vue | 69 +++++++++ js/src/main.ts | 2 + .../views/Account/children/EditIdentity.vue | 49 +++--- js/src/views/Admin/AdminGroupProfile.vue | 48 +++--- js/src/views/Admin/AdminProfile.vue | 45 +++--- js/src/views/Admin/AdminUserProfile.vue | 41 ++--- js/src/views/Admin/Dashboard.vue | 20 +-- js/src/views/Admin/GroupProfiles.vue | 23 ++- js/src/views/Admin/Instance.vue | 30 +--- js/src/views/Admin/Instances.vue | 28 +--- js/src/views/Admin/Profiles.vue | 23 ++- js/src/views/Admin/Settings.vue | 21 +-- js/src/views/Admin/Users.vue | 23 ++- js/src/views/Discussions/Create.vue | 70 ++++----- js/src/views/Discussions/Discussion.vue | 68 ++++----- js/src/views/Discussions/DiscussionsList.vue | 54 ++++--- js/src/views/Event/GroupEvents.vue | 40 +++-- js/src/views/Event/Participants.vue | 42 ++---- js/src/views/Group/Group.vue | 34 ++--- js/src/views/Group/GroupFollowers.vue | 55 +++---- js/src/views/Group/GroupMembers.vue | 53 +++---- js/src/views/Group/GroupSettings.vue | 61 ++++---- js/src/views/Group/Timeline.vue | 42 +++--- js/src/views/Moderation/Logs.vue | 26 ++-- js/src/views/Moderation/Report.vue | 40 +++-- js/src/views/Moderation/ReportList.vue | 28 ++-- js/src/views/Posts/Edit.vue | 73 +++++---- js/src/views/Posts/List.vue | 44 +++--- js/src/views/Resources/ResourceFolder.vue | 142 +++++++++--------- js/src/views/Settings/AccountSettings.vue | 26 ++-- js/src/views/Settings/Notifications.vue | 26 ++-- js/src/views/Settings/Preferences.vue | 26 ++-- js/src/views/Todos/Todo.vue | 59 ++++---- js/src/views/Todos/TodoList.vue | 54 +++---- js/src/views/Todos/TodoLists.vue | 40 +++-- 35 files changed, 695 insertions(+), 830 deletions(-) create mode 100644 js/src/components/Utils/Breadcrumbs.vue diff --git a/js/src/components/Utils/Breadcrumbs.vue b/js/src/components/Utils/Breadcrumbs.vue new file mode 100644 index 000000000..a9f775a25 --- /dev/null +++ b/js/src/components/Utils/Breadcrumbs.vue @@ -0,0 +1,69 @@ + + diff --git a/js/src/main.ts b/js/src/main.ts index 317f2b37b..0e6695195 100644 --- a/js/src/main.ts +++ b/js/src/main.ts @@ -12,6 +12,7 @@ import { NotifierPlugin } from "./plugins/notifier"; import filters from "./filters"; import { i18n } from "./utils/i18n"; import apolloProvider from "./vue-apollo"; +import Breadcrumbs from "@/components/Utils/Breadcrumbs.vue"; import "./registerServiceWorker"; import "./assets/tailwind.css"; @@ -25,6 +26,7 @@ Vue.use(VueScrollTo); Vue.use(VTooltip); Vue.use(VueAnnouncer); Vue.use(VueSkipTo); +Vue.component("breadcrumbs-nav", Breadcrumbs); // Register the router hooks with their names Component.registerHooks([ diff --git a/js/src/views/Account/children/EditIdentity.vue b/js/src/views/Account/children/EditIdentity.vue index 0bba7acde..d0e56dd43 100644 --- a/js/src/views/Account/children/EditIdentity.vue +++ b/js/src/views/Account/children/EditIdentity.vue @@ -1,28 +1,6 @@