refactor logo, bottom bar and perks.js

- add new logo
- add tsconfig.json
- move logo to new component
- update bottombar
- remove props from hotkeys and progress bar
- convert perks.js -> perks.ts
This commit is contained in:
geoffrey45
2022-05-24 15:55:26 +03:00
parent 599ba060b2
commit b497344521
24 changed files with 129 additions and 246 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
<script>
import playAudio from "@/composables/playAudio.js";
import {ref} from "@vue/reactivity";
import perks from "../../composables/perks.js";
import {putCommas, formatSeconds} from "../../composables/perks.js";
import HotKeys from "../shared/HotKeys.vue";
import Progress from "../shared/Progress.vue";
-14
View File
@@ -15,26 +15,12 @@
</template>
<script setup lang="ts">
import { reactive, ref } from "@vue/reactivity";
import useSearchStore from "../../stores/gsearch";
import useTabStore from "../../stores/tabs";
import TabsWrapper from "./TabsWrapper.vue";
import Tab from "./Tab.vue";
import TracksGrid from "./Search/TracksGrid.vue";
import AlbumGrid from "./Search/AlbumGrid.vue";
import "@/assets/css/Search/Search.scss";
import ArtistGrid from "./Search/ArtistGrid.vue";
const search = useSearchStore();
const tabs = useTabStore();
const search_thing = ref(null);
const artists = reactive({
artists: [],
more: false,
});
</script>
<style lang="scss">
+2 -2
View File
@@ -12,7 +12,7 @@
<p class="title ellip">{{ next.title }}</p>
<hr />
<p class="artist ellip">
<span v-for="artist in perks.putCommas(next.artists)" :key="artist">{{
<span v-for="artist in putCommas(next.artists)" :key="artist">{{
artist
}}</span>
</p>
@@ -23,7 +23,7 @@
<script setup lang="ts">
import { Track } from "../../../interfaces";
import perks from "../../../composables/perks";
import {putCommas} from "../../../composables/perks";
import { paths } from "../../../config";
const imguri = paths.images.thumb;