Imported file helpers into Vue templates
This commit is contained in:
1 parent
58338d0e8d
commit
dec7f46365
10 files changed
+17
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const cacheKey = "album-slider-data"
|
||||
const data = ref<{ genre: Genre; albums: Album[] }[]>([])
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
import type { Artist } from "@/utils/types"
|
||||
|
||||
const props = defineProps<{ artist: Artist }>()
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const { fullscreen, close: closeFullscreen } = useFullscreen()
|
||||
const song = useSong()
|
||||
const mouseMovedRecently = ref(true)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const { showButtons } = defineProps<{ showButtons: boolean }>()
|
||||
|
||||
const song = useSong()
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="tsx">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const widthFixerRef = useTemplateRef("width-fixer-ref")
|
||||
const playerRef = useTemplateRef("player-ref")
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
import type { DropdownMenuItem } from "~/ui/DropdownMenu.vue"
|
||||
|
||||
interface TrackRowProps {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const route = useRoute()
|
||||
const id = computed(() => route.params.id)
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
|
||||
const route = useRoute()
|
||||
const id = computed(() => route.params.id)
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_FILE } from "@/utils/file"
|
||||
import type { Album } from "@/utils/types"
|
||||
|
||||
const {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { GET_AUDIO_FILE, GET_FILE } from "@/utils/file"
|
||||
|
||||
export type Row = {
|
||||
name: string
|
||||
class?: string
|
||||
|
||||
Reference in new issue
Block a user