From 5858b64fc6951a5843afbf5880fcb0d70c911db2 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 2 Jul 2024 17:40:42 -0500 Subject: [PATCH] Update:Share audio player page background color gradient using fast-average-color on cover image --- client/package-lock.json | 9 +++++++++ client/package.json | 1 + client/pages/share/_slug.vue | 25 +++++++++++++++++++++---- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/client/package-lock.json b/client/package-lock.json index 6a9d0472..1b775421 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -16,6 +16,7 @@ "cron-parser": "^4.7.1", "date-fns": "^2.25.0", "epubjs": "^0.3.88", + "fast-average-color": "^9.4.0", "hls.js": "^1.5.7", "libarchive.js": "^1.3.0", "nuxt": "^2.17.3", @@ -8219,6 +8220,14 @@ "node >=0.6.0" ] }, + "node_modules/fast-average-color": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/fast-average-color/-/fast-average-color-9.4.0.tgz", + "integrity": "sha512-bvM8vV6YwK07dPbzFz77zJaBcfF6ABVfgNwaxVgXc2G+o0e/tzLCF9WU8Ryp1r0Nkk6JuJNsWCzbb4cLOMlB+Q==", + "engines": { + "node": ">= 12" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", diff --git a/client/package.json b/client/package.json index f26282a3..8ed74f82 100644 --- a/client/package.json +++ b/client/package.json @@ -24,6 +24,7 @@ "cron-parser": "^4.7.1", "date-fns": "^2.25.0", "epubjs": "^0.3.88", + "fast-average-color": "^9.4.0", "hls.js": "^1.5.7", "libarchive.js": "^1.3.0", "nuxt": "^2.17.3", diff --git a/client/pages/share/_slug.vue b/client/pages/share/_slug.vue index acc099eb..272533b3 100644 --- a/client/pages/share/_slug.vue +++ b/client/pages/share/_slug.vue @@ -1,9 +1,10 @@