Imported file helpers into Vue templates

This commit is contained in:
lucast committed 2026-10-06 02:43:27 +02:00
1 parent 58338d0e8d
commit dec7f46365
10 files changed
+17

No files matched your search

+2
View File
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
const cacheKey = "album-slider-data" const cacheKey = "album-slider-data"
const data = ref<{ genre: Genre; albums: Album[] }[]>([]) const data = ref<{ genre: Genre; albums: Album[] }[]>([])
+1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
import type { Artist } from "@/utils/types" import type { Artist } from "@/utils/types"
const props = defineProps<{ artist: Artist }>() const props = defineProps<{ artist: Artist }>()
+2
View File
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
const { fullscreen, close: closeFullscreen } = useFullscreen() const { fullscreen, close: closeFullscreen } = useFullscreen()
const song = useSong() const song = useSong()
const mouseMovedRecently = ref(true) const mouseMovedRecently = ref(true)
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
const { showButtons } = defineProps<{ showButtons: boolean }>() const { showButtons } = defineProps<{ showButtons: boolean }>()
const song = useSong() const song = useSong()
+2
View File
@@ -1,4 +1,6 @@
<script setup lang="tsx"> <script setup lang="tsx">
import { GET_FILE } from "@/utils/file"
const widthFixerRef = useTemplateRef("width-fixer-ref") const widthFixerRef = useTemplateRef("width-fixer-ref")
const playerRef = useTemplateRef("player-ref") const playerRef = useTemplateRef("player-ref")
+1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
import type { DropdownMenuItem } from "~/ui/DropdownMenu.vue" import type { DropdownMenuItem } from "~/ui/DropdownMenu.vue"
interface TrackRowProps { interface TrackRowProps {
+2
View File
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
const route = useRoute() const route = useRoute()
const id = computed(() => route.params.id) const id = computed(() => route.params.id)
+2
View File
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
const route = useRoute() const route = useRoute()
const id = computed(() => route.params.id) const id = computed(() => route.params.id)
+1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_FILE } from "@/utils/file"
import type { Album } from "@/utils/types" import type { Album } from "@/utils/types"
const { const {
+2
View File
@@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { GET_AUDIO_FILE, GET_FILE } from "@/utils/file"
export type Row = { export type Row = {
name: string name: string
class?: string class?: string