diff --git a/frontend/.prettierrc b/frontend/.prettierrc new file mode 100644 index 0000000..963354f --- /dev/null +++ b/frontend/.prettierrc @@ -0,0 +1,3 @@ +{ + "printWidth": 120 +} diff --git a/frontend/api-specs/osu_music.swagger.json b/frontend/api-specs/osu_music.swagger.json index 3b92af1..ea48d66 100644 --- a/frontend/api-specs/osu_music.swagger.json +++ b/frontend/api-specs/osu_music.swagger.json @@ -9,12 +9,8 @@ "name": "MusicBackend" } ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": ["application/json"], + "produces": ["application/json"], "paths": { "/api/v1/artist/{artist}": { "get": { @@ -41,9 +37,7 @@ "type": "string" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/collections": { @@ -92,9 +86,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/favorites": { @@ -136,9 +128,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/recent": { @@ -174,9 +164,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/search": { @@ -218,9 +206,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/search/artists": { @@ -262,9 +248,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/search/collections": { @@ -306,9 +290,7 @@ "format": "int32" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/api/v1/song/{hash}": { @@ -336,9 +318,7 @@ "type": "string" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } }, "/ping": { @@ -366,9 +346,7 @@ "type": "string" } ], - "tags": [ - "MusicBackend" - ] + "tags": ["MusicBackend"] } } }, diff --git a/frontend/index.html b/frontend/index.html index 8d0fb98..81f7250 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,21 +1,23 @@ - + + + + + + + + + osu! music player, not affiliated with the osu! trademark + - - - - - - - - osu! music player, not affiliated with the osu! trademark - - - -
- - - + +
+ + diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 63f2a26..339b350 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "axios": "^1.9.0", "pinia": "^2.2.6", + "prettier": "^3.8.1", "vue": "^3.5.13", "vue-router": "^4.4.5" }, @@ -3641,6 +3642,20 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "node_modules/prettier": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/proxy-agent": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index d699d67..69a9681 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,11 +9,13 @@ "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build", + "format": "prettier --write .", "generate": "openapi-generator-cli generate -i api-specs/osu_music.swagger.json -g typescript-axios -o ./src/generated" }, "dependencies": { "axios": "^1.9.0", "pinia": "^2.2.6", + "prettier": "^3.8.1", "vue": "^3.5.13", "vue-router": "^4.4.5" }, diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 23aea39..5b3d067 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,43 +1,31 @@ \ No newline at end of file + diff --git a/frontend/src/assets/animations.css b/frontend/src/assets/animations.css index 7f248aa..024af7d 100644 --- a/frontend/src/assets/animations.css +++ b/frontend/src/assets/animations.css @@ -1,19 +1,27 @@ -.v-enter-from, .v-leave-to -{ -animation: fadeIn 0.5s; - +.v-enter-from, +.v-leave-to { + animation: fadeIn 0.5s; } -.v-enter-to, .v-leave-from { -animation: fadeOut 0.5s; +.v-enter-to, +.v-leave-from { + animation: fadeOut 0.5s; } @keyframes fadeIn { - 0% { opacity: 0; } - 100% { opacity: 1; } + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } } @keyframes fadeOut { - 0% { opacity: 1; } - 100% { opacity: 0; } + 0% { + opacity: 1; + } + 100% { + opacity: 0; + } } diff --git a/frontend/src/assets/base.css b/frontend/src/assets/base.css index acc3bf6..f2f702f 100644 --- a/frontend/src/assets/base.css +++ b/frontend/src/assets/base.css @@ -1,34 +1,34 @@ body { - background-color: var(--background-color); - margin:0; - padding: 0; + background-color: var(--background-color); + margin: 0; + padding: 0; } -* .{ -min-height: 0px; +* . { + min-height: 0px; } .backdrop--light { - background-color: rgba(70, 57, 63, 1); + background-color: rgba(70, 57, 63, 1); } .backdrop--medium { - background-color: rgba(56, 46, 50, 1); + background-color: rgba(56, 46, 50, 1); } .backdrop--medium--light { - background-color: rgba(42, 34, 38, 1); + background-color: rgba(42, 34, 38, 1); } .backdrop--medium--dark { - background-color: rgba(56, 46, 50, 1) + background-color: rgba(56, 46, 50, 1); } .backdrop--dark { - background-color: rgba(28, 23, 25, 1) + background-color: rgba(28, 23, 25, 1); } .router-link-active { - color: var(--action-color); + color: var(--action-color); } :root { @@ -43,25 +43,25 @@ min-height: 0px; } .bg { - background-color: var(--background-color) + background-color: var(--background-color); } .action { - color: var(--action-color) + color: var(--action-color); } .info { - color: var(--information-color) + color: var(--information-color); } .info:hover { - color: var(--information-color) + color: var(--information-color); } searcheven { - background-color: lighten(var(--background-color),10%); + background-color: lighten(var(--background-color), 10%); } searchodd { - background-color: lighten(var(--background-color),15%); + background-color: lighten(var(--background-color), 15%); } diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 5331c76..f6d7555 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -1,4 +1,4 @@ -@import './base.css'; +@import "./base.css"; a, .green { diff --git a/frontend/src/components/ActiveSearchList.vue b/frontend/src/components/ActiveSearchList.vue index 151cc4e..abb2c32 100644 --- a/frontend/src/components/ActiveSearchList.vue +++ b/frontend/src/components/ActiveSearchList.vue @@ -1,10 +1,10 @@ diff --git a/frontend/src/components/CollectionItem.vue b/frontend/src/components/CollectionItem.vue index ffa7965..cc6790a 100644 --- a/frontend/src/components/CollectionItem.vue +++ b/frontend/src/components/CollectionItem.vue @@ -1,98 +1,91 @@ - \ No newline at end of file + + diff --git a/frontend/src/components/CollectionListItem.vue b/frontend/src/components/CollectionListItem.vue index 8640213..cda4699 100644 --- a/frontend/src/components/CollectionListItem.vue +++ b/frontend/src/components/CollectionListItem.vue @@ -1,20 +1,17 @@ diff --git a/frontend/src/components/Footer.vue b/frontend/src/components/Footer.vue index 243737d..ea0e2a2 100644 --- a/frontend/src/components/Footer.vue +++ b/frontend/src/components/Footer.vue @@ -1,26 +1,25 @@ diff --git a/frontend/src/components/NowPlaying.vue b/frontend/src/components/NowPlaying.vue index 4c7c519..8559f3b 100644 --- a/frontend/src/components/NowPlaying.vue +++ b/frontend/src/components/NowPlaying.vue @@ -1,30 +1,33 @@