From 4c2dbca2e9d6be4d89e9dc840f1c560586c9276f Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 8 Nov 2023 23:03:36 +0100 Subject: [PATCH] Replace linter icons to match theme (#2765) @qwerty287 @anbraten What do you think about this approach? This way the icons fit more into the existing design. I've also moved the icon in the tab to the end as this looks IMO a bit better on mobile view, but open for discussions. ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/f56a9688-4ca2-4b7b-a053-3e74effe6976) Alternative idea for errors: Or just use one symbol and only change the color for errors/warnings? --- web/components.d.ts | 6 +++-- .../admin/settings/AdminInfoTab.vue | 2 +- web/src/components/atomic/Icon.vue | 6 ++++- web/src/components/atomic/Warning.vue | 5 +++-- web/src/components/layout/scaffold/Tab.vue | 5 +++++ web/src/components/layout/scaffold/Tabs.vue | 5 ++++- web/src/compositions/useTabs.ts | 2 ++ .../views/repo/pipeline/PipelineErrors.vue | 22 ++++++++++++++----- .../views/repo/pipeline/PipelineWrapper.vue | 12 ++++------ 9 files changed, 45 insertions(+), 20 deletions(-) diff --git a/web/components.d.ts b/web/components.d.ts index d2cdd02957..37a76aec1a 100644 --- a/web/components.d.ts +++ b/web/components.d.ts @@ -23,7 +23,6 @@ declare module 'vue' { Checkbox: typeof import('./src/components/form/Checkbox.vue')['default'] CheckboxesField: typeof import('./src/components/form/CheckboxesField.vue')['default'] Container: typeof import('./src/components/layout/Container.vue')['default'] - copy: typeof import('./src/components/admin/settings/AdminAgentsTab copy.vue')['default'] CronTab: typeof import('./src/components/repo/settings/CronTab.vue')['default'] DeployPipelinePopup: typeof import('./src/components/layout/popups/DeployPipelinePopup.vue')['default'] DocsLink: typeof import('./src/components/atomic/DocsLink.vue')['default'] @@ -31,9 +30,13 @@ declare module 'vue' { Header: typeof import('./src/components/layout/scaffold/Header.vue')['default'] IBiCheckCircleFill: typeof import('~icons/bi/check-circle-fill')['default'] IBiCircle: typeof import('~icons/bi/circle')['default'] + IBiExclamationCircleFill: typeof import('~icons/bi/exclamation-circle-fill')['default'] + IBiExclamationTriangle: typeof import('~icons/bi/exclamation-triangle')['default'] + IBiExclamationTriangleFill: typeof import('~icons/bi/exclamation-triangle-fill')['default'] IBiPlayCircleFill: typeof import('~icons/bi/play-circle-fill')['default'] IBiSlashCircleFill: typeof import('~icons/bi/slash-circle-fill')['default'] IBiStopCircleFill: typeof import('~icons/bi/stop-circle-fill')['default'] + IBiX: typeof import('~icons/bi/x')['default'] IBiXCircleFill: typeof import('~icons/bi/x-circle-fill')['default'] IBxBxPowerOff: typeof import('~icons/bx/bx-power-off')['default'] ICarbonCloseOutline: typeof import('~icons/carbon/close-outline')['default'] @@ -83,7 +86,6 @@ declare module 'vue' { Panel: typeof import('./src/components/layout/Panel.vue')['default'] PipelineFeedItem: typeof import('./src/components/pipeline-feed/PipelineFeedItem.vue')['default'] PipelineFeedSidebar: typeof import('./src/components/pipeline-feed/PipelineFeedSidebar.vue')['default'] - PipelineInfo: typeof import('./src/components/repo/pipeline/PipelineInfo.vue')['default'] PipelineItem: typeof import('./src/components/repo/pipeline/PipelineItem.vue')['default'] PipelineList: typeof import('./src/components/repo/pipeline/PipelineList.vue')['default'] PipelineLog: typeof import('./src/components/repo/pipeline/PipelineLog.vue')['default'] diff --git a/web/src/components/admin/settings/AdminInfoTab.vue b/web/src/components/admin/settings/AdminInfoTab.vue index e8f530c368..3b774f3a96 100644 --- a/web/src/components/admin/settings/AdminInfoTab.vue +++ b/web/src/components/admin/settings/AdminInfoTab.vue @@ -1,7 +1,7 @@