From 19fc65e6c0c83ae26570f771f2bfa5968fb1f77e Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Tue, 3 May 2022 19:17:48 +0530 Subject: [PATCH] Search Improvements --- README.md | 18 +-- index.html | 8 +- package-lock.json | 11 ++ package.json | 1 + public/manifest.json | 3 +- src/App.vue | 98 ++++++++--------- src/assets/base.css | 4 +- src/components/AlbumItem.vue | 4 +- src/components/Modal.vue | 193 +++++++++++++++++---------------- src/components/NavBar.vue | 37 ++++--- src/components/NewPlaylist.vue | 173 ++++++++++++++++------------- src/components/NowPlaying.vue | 7 +- src/components/Search.vue | 88 ++++++++++----- src/components/SearchBar.vue | 2 + src/components/SongItem.vue | 18 +-- src/components/StatusBar.vue | 84 +++++++++++--- src/scripts/colors.js | 18 +-- src/scripts/db.js | 172 ++++++++++++++++------------- src/scripts/util.js | 10 +- 19 files changed, 545 insertions(+), 404 deletions(-) diff --git a/README.md b/README.md index 8d7f106..13f945a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Hyperpipe +# \[WIP\] Hyperpipe ![On Codeberg](https://codeberg.org/Hyperpipe/static/raw/branch/master/on-codeberg.svg) @@ -9,7 +9,7 @@ A Privacy Respecting Frontend for YouTube Music inspired and built with the help ## Usage -***HYPERPIPE IS ONLY BEING DEVELOPED, EXPECT BUGS AND MESSY CODE*** +**_HYPERPIPE IS ONLY BEING DEVELOPED, EXPECT BUGS AND MESSY CODE_** ```sh npm install @@ -37,17 +37,19 @@ npm run build ## Instances -| Instance | Country (Backend) | +| Instance | Country (Backend) | | :--------------------------: | :---------------: | -| [hyperpipe.surge.sh][hypipe] | 🇩🇪 | +| [hyperpipe.surge.sh][hypipe] | 🇩🇪 | ## LICENSE ### GPL v3 Only -Please refer to [LICENSE][LICENSE]. +Please refer to [LICENSE][license]. -You can reach out to me on +You can reach out to me on + +- snematoda.751k2 [at] aleeas [dot] com ### Dependencies and Mentions @@ -60,10 +62,10 @@ You can reach out to me on [hypipe]: https://hyperpipe.surge.sh [piped]: https://piped.kavin.rocks -[LICENSE]: https://codeberg.org/Hyperpipe/Hyperpipe/src/branch/main/LICENSE.txt +[license]: https://codeberg.org/Hyperpipe/Hyperpipe/src/branch/main/LICENSE.txt [vue]: https://github.com/vuejs/core/blob/main/LICENSE [vite]: https://github.com/vitejs/vite/blob/main/LICENSE [bi]: https://github.com/twbs/icons/blob/main/LICENSE.md [hls]: https://github.com/video-dev/hls.js/blob/master/LICENSE [nord]: https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md -[vuetheme]: https://github.com/vuejs/theme/blob/main/LICENSE \ No newline at end of file +[vuetheme]: https://github.com/vuejs/theme/blob/main/LICENSE diff --git a/index.html b/index.html index e1297a9..982f95b 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@ - - + + Hyperpipe @@ -23,9 +23,5 @@ href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" /> - - diff --git a/package-lock.json b/package-lock.json index f5df5d2..b5d2270 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "hyperpipe", "version": "0.0.0", "dependencies": { + "hls.js": "^1.1.5", "vue": "^3.2.31" }, "devDependencies": { @@ -539,6 +540,11 @@ "node": ">= 0.4.0" } }, + "node_modules/hls.js": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.1.5.tgz", + "integrity": "sha512-mQX5TSNtJEzGo5HPpvcQgCu+BWoKDQM6YYtg/KbgWkmVAcqOCvSTi0SuqG2ZJLXxIzdnFcKU2z7Mrw/YQWhPOA==" + }, "node_modules/is-core-module": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", @@ -1040,6 +1046,11 @@ "function-bind": "^1.1.1" } }, + "hls.js": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.1.5.tgz", + "integrity": "sha512-mQX5TSNtJEzGo5HPpvcQgCu+BWoKDQM6YYtg/KbgWkmVAcqOCvSTi0SuqG2ZJLXxIzdnFcKU2z7Mrw/YQWhPOA==" + }, "is-core-module": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", diff --git a/package.json b/package.json index f2cdcf9..4b1e297 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "check": "prettier --check ." }, "dependencies": { + "hls.js": "^1.1.5", "vue": "^3.2.31" }, "devDependencies": { diff --git a/public/manifest.json b/public/manifest.json index 8e268e3..22b8c52 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -4,6 +4,5 @@ "start_url": "/", "display": "standalone", "background_color": "#fff", - "description": "Privacy respecting YouTube Music Frontend.", - + "description": "Privacy respecting YouTube Music Frontend." } \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 97ae643..10457c1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,4 +1,5 @@ \ No newline at end of file +@media (max-width: 530px) { + .modal-box { + width: 80vw; + } +} +@media (min-width: 1024px) { + .modal-box { + width: 40vw; + } +} + diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6e48837..45c4192 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,25 +1,25 @@