From 4093069d43a0308f11865fb7b3eecc9f656d433c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Grom?= Date: Mon, 7 Oct 2024 14:23:28 +0200 Subject: [PATCH] Change icons on overview --- frontend/.eslintrc.js | 2 +- .../contributor-details-identities.vue | 1 - .../activity/dashboard-activity-item.vue | 7 +- .../activity/dashboard-activity-list.vue | 2 +- .../activity/dashboard-activity-sentiment.vue | 12 ++- .../activity/dashboard-activity-types.vue | 5 +- .../dashboard-conversation-list.vue | 2 +- .../components/dashboard-empty-state.vue | 12 +-- .../components/dashboard-integrations.vue | 2 +- .../components/dashboard-members.vue | 25 +++--- .../components/dashboard-organizations.vue | 4 +- .../dashboard-project-group-drawer.vue | 8 +- .../components/dashboard-project-group.vue | 3 +- .../dashboard-upgrade-plan-widget.vue | 44 ---------- .../components/shared/dashboard-badge.vue | 13 ++- .../dashboard/pages/dashboard-page.vue | 3 +- .../layout/components/menu/menu-links.vue | 80 ------------------- .../components/menu/menu-quickstart.vue | 72 ----------------- .../components/menu/menu-support-help.vue | 34 -------- .../layout/components/menu/menu-support.vue | 77 ------------------ .../modules/layout/components/menu/menu.vue | 1 - .../menu/workspace/menu-workspace-card.vue | 61 -------------- .../modules/layout/config/links/activities.ts | 16 ---- .../modules/layout/config/links/api-keys.ts | 18 ----- .../layout/config/links/automations.ts | 16 ---- .../modules/layout/config/links/changelog.ts | 11 --- .../modules/layout/config/links/community.ts | 11 --- .../modules/layout/config/links/contacts.ts | 16 ---- .../layout/config/links/documentation.ts | 11 --- .../modules/layout/config/links/eagle-eye.ts | 16 ---- .../src/modules/layout/config/links/home.ts | 11 --- .../layout/config/links/integrations.ts | 11 --- .../layout/config/links/organizations.ts | 11 --- .../layout/config/links/plans-billing.ts | 18 ----- .../layout/config/links/users-permissions.ts | 18 ----- frontend/src/modules/layout/config/menu.ts | 42 ---------- .../components/view/lf-search-input.vue | 2 +- .../filters/components/FilterSearch.vue | 2 +- 38 files changed, 59 insertions(+), 641 deletions(-) delete mode 100644 frontend/src/modules/dashboard/components/dashboard-upgrade-plan-widget.vue delete mode 100644 frontend/src/modules/layout/components/menu/menu-links.vue delete mode 100644 frontend/src/modules/layout/components/menu/menu-quickstart.vue delete mode 100644 frontend/src/modules/layout/components/menu/menu-support-help.vue delete mode 100644 frontend/src/modules/layout/components/menu/menu-support.vue delete mode 100644 frontend/src/modules/layout/components/menu/workspace/menu-workspace-card.vue delete mode 100644 frontend/src/modules/layout/config/links/activities.ts delete mode 100644 frontend/src/modules/layout/config/links/api-keys.ts delete mode 100644 frontend/src/modules/layout/config/links/automations.ts delete mode 100644 frontend/src/modules/layout/config/links/changelog.ts delete mode 100644 frontend/src/modules/layout/config/links/community.ts delete mode 100644 frontend/src/modules/layout/config/links/contacts.ts delete mode 100644 frontend/src/modules/layout/config/links/documentation.ts delete mode 100644 frontend/src/modules/layout/config/links/eagle-eye.ts delete mode 100644 frontend/src/modules/layout/config/links/home.ts delete mode 100644 frontend/src/modules/layout/config/links/integrations.ts delete mode 100644 frontend/src/modules/layout/config/links/organizations.ts delete mode 100644 frontend/src/modules/layout/config/links/plans-billing.ts delete mode 100644 frontend/src/modules/layout/config/links/users-permissions.ts delete mode 100644 frontend/src/modules/layout/config/menu.ts diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index ef6cde7509..0fb169e92a 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -26,7 +26,7 @@ module.exports = { 'comma-dangle': 'warn', indent: 'warn', 'no-trailing-spaces': 'warn', - 'vue/no-unused-components': 'warn', + 'vue/no-unused-components': 'error', 'vue/html-closing-bracket-spacing': 'warn', 'vue/html-indent': 'warn', 'vue/html-self-closing': 'warn', diff --git a/frontend/src/modules/contributor/components/details/contributor-details-identities.vue b/frontend/src/modules/contributor/components/details/contributor-details-identities.vue index 30bd65057e..cf2810859c 100644 --- a/frontend/src/modules/contributor/components/details/contributor-details-identities.vue +++ b/frontend/src/modules/contributor/components/details/contributor-details-identities.vue @@ -79,7 +79,6 @@ - - diff --git a/frontend/src/modules/dashboard/components/shared/dashboard-badge.vue b/frontend/src/modules/dashboard/components/shared/dashboard-badge.vue index 09d1b0a206..ac26626634 100644 --- a/frontend/src/modules/dashboard/components/shared/dashboard-badge.vue +++ b/frontend/src/modules/dashboard/components/shared/dashboard-badge.vue @@ -3,13 +3,17 @@ class="py-0.5 px-1.5 rounded text-xs leading-5 font-medium flex" :class="[typeClass]" > - - @@ -17,6 +21,7 @@ - - diff --git a/frontend/src/modules/layout/components/menu/menu-quickstart.vue b/frontend/src/modules/layout/components/menu/menu-quickstart.vue deleted file mode 100644 index 312161358f..0000000000 --- a/frontend/src/modules/layout/components/menu/menu-quickstart.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/frontend/src/modules/layout/components/menu/menu-support-help.vue b/frontend/src/modules/layout/components/menu/menu-support-help.vue deleted file mode 100644 index cdb9c078b2..0000000000 --- a/frontend/src/modules/layout/components/menu/menu-support-help.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - diff --git a/frontend/src/modules/layout/components/menu/menu-support.vue b/frontend/src/modules/layout/components/menu/menu-support.vue deleted file mode 100644 index 9c08e77ab4..0000000000 --- a/frontend/src/modules/layout/components/menu/menu-support.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - - diff --git a/frontend/src/modules/layout/components/menu/menu.vue b/frontend/src/modules/layout/components/menu/menu.vue index e0a91f04b4..de26b837d1 100644 --- a/frontend/src/modules/layout/components/menu/menu.vue +++ b/frontend/src/modules/layout/components/menu/menu.vue @@ -94,7 +94,6 @@ import { useOrganizationStore } from '@/modules/organization/store/pinia'; import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; import LfMenuLink from '@/modules/layout/components/menu/menu-link.vue'; -import LfIconOld from '@/ui-kit/icon/IconOld.vue'; import LfIcon from '@/ui-kit/icon/Icon.vue'; const store = useStore(); diff --git a/frontend/src/modules/layout/components/menu/workspace/menu-workspace-card.vue b/frontend/src/modules/layout/components/menu/workspace/menu-workspace-card.vue deleted file mode 100644 index 23fc373b26..0000000000 --- a/frontend/src/modules/layout/components/menu/workspace/menu-workspace-card.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/frontend/src/modules/layout/config/links/activities.ts b/frontend/src/modules/layout/config/links/activities.ts deleted file mode 100644 index 5fe1a23e4f..0000000000 --- a/frontend/src/modules/layout/config/links/activities.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const activities: MenuLink = { - id: 'activities', - label: 'Activities', - icon: 'ri-radar-line', - routeName: 'activity', - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.activityRead); - }, -}; - -export default activities; diff --git a/frontend/src/modules/layout/config/links/api-keys.ts b/frontend/src/modules/layout/config/links/api-keys.ts deleted file mode 100644 index f98218cd1d..0000000000 --- a/frontend/src/modules/layout/config/links/api-keys.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const apiKeys: MenuLink = { - id: 'api-keys', - label: 'API Keys', - routeName: 'settings', - routeOptions: { - query: { activeTab: 'api-keys' }, - }, - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.settingsEdit); - }, -}; - -export default apiKeys; diff --git a/frontend/src/modules/layout/config/links/automations.ts b/frontend/src/modules/layout/config/links/automations.ts deleted file mode 100644 index 5c48800f45..0000000000 --- a/frontend/src/modules/layout/config/links/automations.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const automations: MenuLink = { - id: 'automations', - label: 'Automations', - icon: 'ri-mind-map', - routeName: 'automations', - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.automationRead); - }, -}; - -export default automations; diff --git a/frontend/src/modules/layout/config/links/changelog.ts b/frontend/src/modules/layout/config/links/changelog.ts deleted file mode 100644 index 11964d7986..0000000000 --- a/frontend/src/modules/layout/config/links/changelog.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const changelog: MenuLink = { - id: 'changelog', - label: 'Changelog', - icon: 'ri-megaphone-line', - href: 'https://changelog.crowd.dev', - display: () => true, -}; - -export default changelog; diff --git a/frontend/src/modules/layout/config/links/community.ts b/frontend/src/modules/layout/config/links/community.ts deleted file mode 100644 index b9de29f232..0000000000 --- a/frontend/src/modules/layout/config/links/community.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const community: MenuLink = { - id: 'community', - label: 'Community', - icon: 'ri-discord-fill', - href: 'https://crowd.dev/discord', - display: () => true, -}; - -export default community; diff --git a/frontend/src/modules/layout/config/links/contacts.ts b/frontend/src/modules/layout/config/links/contacts.ts deleted file mode 100644 index 7724c71c8d..0000000000 --- a/frontend/src/modules/layout/config/links/contacts.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const contacts: MenuLink = { - id: 'contacts', - label: 'People', - icon: 'ri-group-2-line', - routeName: 'member', - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.memberRead); - }, -}; - -export default contacts; diff --git a/frontend/src/modules/layout/config/links/documentation.ts b/frontend/src/modules/layout/config/links/documentation.ts deleted file mode 100644 index 8a6f65cb21..0000000000 --- a/frontend/src/modules/layout/config/links/documentation.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const documentation: MenuLink = { - id: 'documentation', - label: 'Documentation', - icon: 'ri-book-open-line', - href: 'https://docs.crowd.dev', - display: () => true, -}; - -export default documentation; diff --git a/frontend/src/modules/layout/config/links/eagle-eye.ts b/frontend/src/modules/layout/config/links/eagle-eye.ts deleted file mode 100644 index 06c482f26d..0000000000 --- a/frontend/src/modules/layout/config/links/eagle-eye.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const eagleEye: MenuLink = { - id: 'eagle-eye', - label: 'Eagle Eye', - icon: 'ri-search-eye-line', - routeName: 'eagleEye', - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.eagleEyeRead); - }, -}; - -export default eagleEye; diff --git a/frontend/src/modules/layout/config/links/home.ts b/frontend/src/modules/layout/config/links/home.ts deleted file mode 100644 index 3e08964ec2..0000000000 --- a/frontend/src/modules/layout/config/links/home.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const home: MenuLink = { - id: 'home', - label: 'Home', - icon: 'ri-home-5-line', - routeName: 'dashboard', - display: () => true, -}; - -export default home; diff --git a/frontend/src/modules/layout/config/links/integrations.ts b/frontend/src/modules/layout/config/links/integrations.ts deleted file mode 100644 index e9836dd6dd..0000000000 --- a/frontend/src/modules/layout/config/links/integrations.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const integrations: MenuLink = { - id: 'integrations', - label: 'Integrations', - icon: 'ri-apps-2-line', - routeName: 'integration', - display: () => true, -}; - -export default integrations; diff --git a/frontend/src/modules/layout/config/links/organizations.ts b/frontend/src/modules/layout/config/links/organizations.ts deleted file mode 100644 index ddbd91d584..0000000000 --- a/frontend/src/modules/layout/config/links/organizations.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; - -const organizations: MenuLink = { - id: 'organizations', - label: 'Organizations', - icon: 'ri-community-line', - routeName: 'organization', - display: () => true, -}; - -export default organizations; diff --git a/frontend/src/modules/layout/config/links/plans-billing.ts b/frontend/src/modules/layout/config/links/plans-billing.ts deleted file mode 100644 index e99ca5bb23..0000000000 --- a/frontend/src/modules/layout/config/links/plans-billing.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const plansBilling: MenuLink = { - id: 'plans-billing', - label: 'Plans & billing', - routeName: 'settings', - routeOptions: { - query: { activeTab: 'plans' }, - }, - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.settingsEdit); - }, -}; - -export default plansBilling; diff --git a/frontend/src/modules/layout/config/links/users-permissions.ts b/frontend/src/modules/layout/config/links/users-permissions.ts deleted file mode 100644 index dfecad71be..0000000000 --- a/frontend/src/modules/layout/config/links/users-permissions.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import usePermissions from '@/shared/modules/permissions/helpers/usePermissions'; -import { LfPermission } from '@/shared/modules/permissions/types/Permissions'; - -const usersPermissions: MenuLink = { - id: 'users-permissions', - label: 'Users & permissions', - routeName: 'settings', - routeOptions: { - query: { activeTab: 'users' }, - }, - display: () => { - const { hasPermission } = usePermissions(); - return hasPermission(LfPermission.settingsEdit); - }, -}; - -export default usersPermissions; diff --git a/frontend/src/modules/layout/config/menu.ts b/frontend/src/modules/layout/config/menu.ts deleted file mode 100644 index 2499b640a7..0000000000 --- a/frontend/src/modules/layout/config/menu.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { MenuLink } from '@/modules/layout/types/MenuLink'; -import home from './links/home'; -import contacts from './links/contacts'; -import organizations from './links/organizations'; -import activities from './links/activities'; -import eagleEye from './links/eagle-eye'; -import automations from './links/automations'; -import integrations from './links/integrations'; -import documentation from './links/documentation'; -import changelog from './links/changelog'; -import community from './links/community'; -import usersPermissions from './links/users-permissions'; -import apiKeys from './links/api-keys'; -import plansBilling from './links/plans-billing'; - -export const mainMenu: MenuLink[] = [ - home, - contacts, - organizations, - activities, - eagleEye, -]; - -// Bottom menu -export const bottomMenu: MenuLink[] = [ - automations, - integrations, -]; - -// Support menu -export const supportMenu: MenuLink[] = [ - documentation, - changelog, - community, -]; - -// Tenant menu -export const tenantMenu: MenuLink[] = [ - usersPermissions, - apiKeys, - plansBilling, -]; diff --git a/frontend/src/modules/lf/segments/components/view/lf-search-input.vue b/frontend/src/modules/lf/segments/components/view/lf-search-input.vue index ddfc5c8cff..67c7dfb60c 100644 --- a/frontend/src/modules/lf/segments/components/view/lf-search-input.vue +++ b/frontend/src/modules/lf/segments/components/view/lf-search-input.vue @@ -27,7 +27,7 @@ const searchInput = ref(); const SearchIcon = h( 'i', // type - { class: 'ri-search-line' }, // props + { class: 'fa-light fa-magnifying-glass' }, // props [], ); diff --git a/frontend/src/shared/modules/filters/components/FilterSearch.vue b/frontend/src/shared/modules/filters/components/FilterSearch.vue index d4b35c145d..daec3e8b87 100644 --- a/frontend/src/shared/modules/filters/components/FilterSearch.vue +++ b/frontend/src/shared/modules/filters/components/FilterSearch.vue @@ -8,7 +8,7 @@ @input="changeValue($event)" >