From 35baaa8224e2ecee4c13fdf2c23713d553124d74 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:07:27 +0200 Subject: [PATCH] Use browser-native tooltips (#2189) Replace the `floating-vue` library with the browser-native tooltips. Reduces `dist` size by 45KB. --- web/package.json | 1 - web/pnpm-lock.yaml | 35 ------------------- web/src/assets/locales/en.json | 1 - .../pipeline-feed/PipelineFeedItem.vue | 10 ++---- .../components/repo/pipeline/PipelineItem.vue | 10 ++---- web/src/main.ts | 1 - .../views/repo/pipeline/PipelineWrapper.vue | 10 ++---- 7 files changed, 6 insertions(+), 62 deletions(-) diff --git a/web/package.json b/web/package.json index aa40175b7..b0a398072 100644 --- a/web/package.json +++ b/web/package.json @@ -22,7 +22,6 @@ "@vueuse/core": "^9.13.0", "ansi_up": "^5.2.1", "dayjs": "^1.11.9", - "floating-vue": "^2.0.0-beta.24", "fuse.js": "^6.6.2", "humanize-duration": "^3.28.0", "javascript-time-ago": "^2.5.9", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index f06dce3aa..6b7c13bd8 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -23,9 +23,6 @@ dependencies: dayjs: specifier: ^1.11.9 version: 1.11.9 - floating-vue: - specifier: ^2.0.0-beta.24 - version: 2.0.0-beta.24(vue@3.3.4) fuse.js: specifier: ^6.6.2 version: 6.6.2 @@ -610,16 +607,6 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@floating-ui/core@1.3.1: - resolution: {integrity: sha512-Bu+AMaXNjrpjh41znzHqaz3r2Nr8hHuHZT6V2LBKMhyMl0FgKA62PNYbqnfgmzOhoWZj70Zecisbo4H1rotP5g==} - dev: false - - /@floating-ui/dom@1.1.1: - resolution: {integrity: sha512-TpIO93+DIujg3g7SykEAGZMDtbJRrmnYRCNYSjJlvIbGhBjRSNTLVbNeDQBrzy9qDgUbiWdc7KA0uZHZ2tJmiw==} - dependencies: - '@floating-ui/core': 1.3.1 - dev: false - /@humanwhocodes/config-array@0.11.10: resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==} engines: {node: '>=10.10.0'} @@ -2164,20 +2151,6 @@ packages: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} dev: true - /floating-vue@2.0.0-beta.24(vue@3.3.4): - resolution: {integrity: sha512-URSzP6YXaF4u1oZ9XGL8Sn8puuM7ivp5jkOUrpy5Q1mfo9BfGppJOn+ierTmsSUfJEeHBae8KT7r5DeI3vQIEw==} - peerDependencies: - '@nuxt/kit': ^3.2.0 - vue: ^3.2.0 - peerDependenciesMeta: - '@nuxt/kit': - optional: true - dependencies: - '@floating-ui/dom': 1.1.1 - vue: 3.3.4 - vue-resize: 2.0.0-alpha.1(vue@3.3.4) - dev: false - /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} dependencies: @@ -3463,14 +3436,6 @@ packages: vue: 3.3.4 dev: false - /vue-resize@2.0.0-alpha.1(vue@3.3.4): - resolution: {integrity: sha512-7+iqOueLU7uc9NrMfrzbG8hwMqchfVfSzpVlCMeJQe4pyibqyoifDNbKTZvwxZKDvGkB+PdFeKvnGZMoEb8esg==} - peerDependencies: - vue: ^3.0.0 - dependencies: - vue: 3.3.4 - dev: false - /vue-router@4.2.2(vue@3.3.4): resolution: {integrity: sha512-cChBPPmAflgBGmy3tBsjeoe3f3VOSG6naKyY5pjtrqLGbNEXdzCigFUHgBvp9e3ysAtFtEx7OLqcSDh/1Cq2TQ==} peerDependencies: diff --git a/web/src/assets/locales/en.json b/web/src/assets/locales/en.json index 1c3df7631..6bb5ebdfd 100644 --- a/web/src/assets/locales/en.json +++ b/web/src/assets/locales/en.json @@ -227,7 +227,6 @@ } }, "pipeline": { - "created": "Created", "tasks": "Tasks", "config": "Config", "files": "Changed files ({files})", diff --git a/web/src/components/pipeline-feed/PipelineFeedItem.vue b/web/src/components/pipeline-feed/PipelineFeedItem.vue index 2e162f63f..8bd2c6f74 100644 --- a/web/src/components/pipeline-feed/PipelineFeedItem.vue +++ b/web/src/components/pipeline-feed/PipelineFeedItem.vue @@ -5,14 +5,9 @@ {{ repo?.owner }} / {{ repo?.name }} {{ message }}