diff --git a/package.json b/package.json index ec793d1e..77df8389 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src" }, "dependencies": { - "animate.css": "^4.1.1", "mitt": "^3.0.0", "register-service-worker": "^1.7.1", "sass": "^1.49.0", diff --git a/server/app/api.py b/server/app/api.py index 2cedbd26..8186120c 100644 --- a/server/app/api.py +++ b/server/app/api.py @@ -15,7 +15,7 @@ def initialize() -> None: Runs all the necessary setup functions. """ helpers.create_config_dir() - # helpers.check_for_new_songs() + helpers.check_for_new_songs() initialize() diff --git a/src/App.vue b/src/App.vue index 38f67029..46e4f7e3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,22 +12,10 @@
- +
-
-
- -
- - -
+
@@ -38,24 +26,18 @@ import { ref } from "@vue/reactivity"; import Navigation from "./components/LeftSidebar/Navigation.vue"; -import PinnedStuff from "./components/LeftSidebar/PinnedStuff.vue" -import Search from "./components/Search.vue"; -import NowPlaying from "./components/RightSideBar/NowPlaying.vue"; -import UpNext from "./components/RightSideBar/UpNext.vue"; -import RecommendedArtist from "./components/RightSideBar/Recommendation.vue"; +import PinnedStuff from "./components/LeftSidebar/PinnedStuff.vue"; import BottomBar from "@/components/BottomBar/BottomBar.vue"; import perks from "@/composables/perks.js"; +import Main from "./components/RightSideBar/Main.vue"; export default { components: { Navigation, PinnedStuff, - Search, - NowPlaying, - UpNext, - RecommendedArtist, - BottomBar + BottomBar, + RightSideBar: Main, }, setup() { @@ -67,29 +49,9 @@ export default { collapsed.value = !collapsed.value; } - let up_next = ref(true); - let search = ref(false); - - const expandQueue = () => { - up_next.value = !up_next.value; - }; - - const expandSearch = () => { - search.value = true; - }; - - const collapseSearch = () => { - search.value = false; - }; - return { toggleNav, - expandSearch, - collapseSearch, - expandQueue, collapsed, - up_next, - search, }; }, }; @@ -106,10 +68,10 @@ export default { #toggle { position: absolute; left: 0.2rem; - width: 4rem; + width: 3rem; height: 100%; background: url(./assets/icons/menu.svg); - background-size: 50%; + background-size: 2rem; background-repeat: no-repeat; background-position: center; cursor: pointer; @@ -118,14 +80,11 @@ export default { .logo { height: 2rem; width: 9rem; - margin-left: 4rem; + margin-left: 3rem; background: url(./assets/logo.svg); background-size: contain; background-repeat: no-repeat; background-position: center; - animation: fadeIn; - animation-duration: 2s; - animation-iteration-count: 1; } .r-sidebar { diff --git a/src/assets/css/BottomBar/BottomBar.scss b/src/assets/css/BottomBar/BottomBar.scss index e5acb133..865b7341 100644 --- a/src/assets/css/BottomBar/BottomBar.scss +++ b/src/assets/css/BottomBar/BottomBar.scss @@ -47,6 +47,7 @@ align-items: center; margin: $small; padding: $small; + background-color: $bbb; .progress-bottom { display: flex; diff --git a/src/assets/css/Search/Search.scss b/src/assets/css/Search/Search.scss index 6b38294a..d3609d30 100644 --- a/src/assets/css/Search/Search.scss +++ b/src/assets/css/Search/Search.scss @@ -45,6 +45,8 @@ .search-icon { position: absolute; + top: 0; + right: 0; height: 2.5rem; width: 2.5rem; background-image: url(../../icons/search.svg); diff --git a/src/assets/css/_variables.scss b/src/assets/css/_variables.scss index 6e549e67..b8fbd620 100644 --- a/src/assets/css/_variables.scss +++ b/src/assets/css/_variables.scss @@ -7,12 +7,16 @@ $green: #439443; $separator: #ffffff46; $pink: #c43a3a; $highlight-blue: #006eff; +$bbb: #050608; //bottom controls background + // sizes -$small: 0.5em; -$smaller: 0.25em; +$small: 0.5rem; +$smaller: 0.25rem; +$medium: 0.75rem; +$large: 1.5rem; +$larger: 2rem; // media query mixins - @mixin phone-only { @media (max-width: 599px) { @content; diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss index fabaf242..71cfc690 100644 --- a/src/assets/css/global.scss +++ b/src/assets/css/global.scss @@ -95,11 +95,9 @@ button { } .l-sidebar { - width: 15em; + width: 15rem; grid-area: l-sidebar; padding-top: 0.5rem; - margin: 0.5rem 0 0.5rem 0.5rem; - border-radius: 0.5rem; background-color: $card-dark; } @@ -109,7 +107,7 @@ button { } .collapsed .l-sidebar { - width: 70px; + width: 3rem; transition: all 0.3s ease; } @@ -141,16 +139,6 @@ button { .r-sidebar { grid-area: r-sidebar; - border-radius: 5px; - margin-right: 0.5rem; - overflow-y: auto; - width: 30em; - position: relative; - margin-bottom: 0.5em; - - @include tablet-landscape { - display: none; - } } .image { diff --git a/src/components/LeftSidebar/Navigation.vue b/src/components/LeftSidebar/Navigation.vue index 74e93959..23ce2b9b 100644 --- a/src/components/LeftSidebar/Navigation.vue +++ b/src/components/LeftSidebar/Navigation.vue @@ -1,5 +1,5 @@ + + diff --git a/src/main.js b/src/main.js index d8444922..972b1fa8 100644 --- a/src/main.js +++ b/src/main.js @@ -5,7 +5,6 @@ import router from "./router"; import "../src/assets/css/global.scss"; -import "animate.css"; import mitt from "mitt"; const emitter = mitt(); diff --git a/yarn.lock b/yarn.lock index da6cafde..c2c7c59f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -333,11 +333,6 @@ ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -animate.css@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/animate.css/-/animate.css-4.1.1.tgz#614ec5a81131d7e4dc362a58143f7406abd68075" - integrity sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ== - ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"