Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Remove the unused old header code (#2162)
Browse files Browse the repository at this point in the history
* Remove the "blank" layout

* Remove conditional useMeta

* Remove conditional code from index.vue

* Remove conditional code from search.vue

* Remove conditional code from content-layout.vue

* Remove conditional code from middleware.ts

* Remove conditional code from stores

* Remove conditional code from pages

* Remove conditional code from composables

* Remove conditional code from components

* Remove -old components

* Remove -old tests

* Remove -old tests

* Remove -old tests

* Use useMeta on 404 page
  • Loading branch information
obulat authored Feb 15, 2023
1 parent 983016b commit aa1367a
Show file tree
Hide file tree
Showing 89 changed files with 79 additions and 3,360 deletions.
21 changes: 2 additions & 19 deletions src/components/VAudioTrack/layouts/VFullLayout.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<template>
<div class="full-track w-full" :class="{ isNewHeaderEnabled }">
<div
class="relative"
:class="
isNewHeaderEnabled
? 'border-b border-dark-charcoal-20'
: 'bg-dark-charcoal-06'
"
>
<div class="full-track w-full">
<div class="relative border-b border-dark-charcoal-20">
<span
v-if="currentTime > 0"
class="pointer-events-none absolute left-0 hidden h-full w-4 bg-yellow md:block lg:w-10"
Expand Down Expand Up @@ -83,7 +76,6 @@ import { computed, defineComponent, PropType } from "@nuxtjs/composition-api"
import type { AudioDetail } from "~/types/media"
import { timeFmt } from "~/utils/time-fmt"
import { AudioSize, AudioStatus, audioFeatures } from "~/constants/audio"
import { useFeatureFlagStore } from "~/stores/feature-flag"
import VButton from "~/components/VButton.vue"
import VIcon from "~/components/VIcon/VIcon.vue"
Expand Down Expand Up @@ -113,18 +105,12 @@ export default defineComponent({
setup(props) {
const isSmall = computed(() => props.size === "s")
const featureFlagStore = useFeatureFlagStore()
const isNewHeaderEnabled = computed(() =>
featureFlagStore.isOn("new_header")
)
return {
timeFmt,
isSmall,
audioFeatures,
externalIcon,
isNewHeaderEnabled,
}
},
})
Expand All @@ -133,9 +119,6 @@ export default defineComponent({
<style>
.full-track .waveform {
@apply h-[185px] rounded-sm;
}
.full-track.isNewHeaderEnabled .waveform {
--waveform-background-color: theme("colors.white");
}
Expand Down
94 changes: 0 additions & 94 deletions src/components/VContentSwitcherOld/VMobileMenuModal.vue

This file was deleted.

126 changes: 0 additions & 126 deletions src/components/VContentSwitcherOld/VSearchTypeButtonOld.vue

This file was deleted.

64 changes: 0 additions & 64 deletions src/components/VContentSwitcherOld/VSearchTypeItemOld.vue

This file was deleted.

Loading

0 comments on commit aa1367a

Please sign in to comment.