first 3D model
All checks were successful
Deploy App / deploy (push) Successful in 1m18s

This commit is contained in:
valere
2025-09-17 23:39:43 +02:00
parent 116d15d1ce
commit 0c1cf30996
28 changed files with 1384 additions and 63 deletions

70
server/api/artists.ts Normal file
View File

@@ -0,0 +1,70 @@
export default eventHandler(() => {
return [
{
id: 0,
name: "L'efondras",
url: "https://leffondras.bandcamp.com/music",
coverId: "0024705317"
},
{
id: 1,
name: "The kundalini genie",
url: "https://the-kundalini-genie.bandcamp.com",
coverId: "0012045550"
},
{
id: 2,
name: "Fontaines D.C.",
url: "https://fontainesdc.bandcamp.com",
coverId: "0027327090"
},
{
id: 3,
name: "Fontanarosa",
url: "https://fontanarosa.bandcamp.com",
coverId: "0035380235",
},
{
id: 4,
name: "Johnny mafia",
url: "https://johnnymafia.bandcamp.com",
coverId: "0035009392",
},
{
id: 5,
name: "New candys",
url: "https://newcandys.bandcamp.com",
coverId: "0033518637",
},
{
id: 6,
name: "Magic shoppe",
url: "https://magicshoppe.bandcamp.com",
coverId: "0030748374"
},
{
id: 7,
name: "Les jaguars",
url: "https://radiomartiko.bandcamp.com/album/surf-qu-b-cois",
coverId: "0016551336",
},
{
id: 8,
name: "TRAAMS",
url: "https://traams.bandcamp.com",
coverId: "0028348410",
},
{
id: 9,
name: "Blue orchid",
url: "https://blue-orchid.bandcamp.com",
coverId: "0034796193",
},
{
id: 10,
name: "I love UFO",
url: "https://bruitblanc.bandcamp.com",
coverId: "a2203158939",
}
]
})

View File

@@ -0,0 +1,36 @@
export default eventHandler(() => {
return [
{
id: 'ES00A',
name: 'zero',
duration: 2794,
description: 'Zero is for manifesto ... ;)',
colorFrom: '#ffffff',
colorTo: '#48959d',
},
{
id: 'ES00B',
name: 'zero b-side',
duration: 2470,
description: 'Even Zero has a b-side',
colorFrom: '#0d01b9',
colorTo: '#3b7589',
},
{
id: 'ES01A',
name: 'first',
duration: 3487,
description: '...',
colorFrom: '#c7b3aa',
colorTo: '#000100',
},
{
id: 'ES01B',
name: 'first b-side',
duration: 3773,
description: '...',
colorFrom: '#f7dd01',
colorTo: '#010103',
}
]
})

View File

@@ -0,0 +1,23 @@
import fs from 'fs'
import path from 'path'
export default eventHandler(async (event) => {
const id = event.context.params?.id || ''
const directoryPath = path.join(process.cwd(), 'media/files/music/' + id) // replace 'your-folder' with the folder you want to list
try {
// Read the directory contents
const files = await fs.promises.readdir(directoryPath)
return {
success: true,
files: files.filter(file => !file.startsWith('.')) // optional: exclude unwanted files
}
} catch (error) {
return {
success: false,
error: error.message
}
}
})

View File

@@ -0,0 +1,21 @@
import fs from 'fs'
import path from 'path'
export default eventHandler(async (event) => {
const directoryPath = path.join(process.cwd(), 'media/files/music')
try {
// Read the directory contents
const files = await fs.promises.readdir(directoryPath)
return {
success: true,
files: files.filter(file => !file.startsWith('.')).reverse() // exclude unwanted files
}
} catch (error) {
return {
success: false,
error: error.message
}
}
})

224
server/api/tracks.ts Normal file
View File

@@ -0,0 +1,224 @@
export default eventHandler(() => {
return [
{
id: 1,
compilationId: 'ES00A',
title: 'The grinding wheel',
artist: 0,
start: 0,
bpm: 0,
url: 'https://arakirecords.bandcamp.com/track/the-grinding-wheel',
coverId: 'a3236746052',
},
{
id: 2,
compilationId: 'ES00A',
title: 'Bleach',
artist: 1,
start: 393,
bpm: 0,
url: 'https://the-kundalini-genie.bandcamp.com/track/bleach-2',
coverId: 'a1714786533',
},
{
id: 3,
compilationId: 'ES00A',
title: 'Televised mind',
artist: 2,
start: 892,
bpm: 0,
url: 'https://fontainesdc.bandcamp.com/track/televised-mind',
coverId: 'a3772806156'
},
{
id: 4,
compilationId: 'ES00A',
title: 'In it',
artist: 3,
start: 1138,
bpm: 0,
url: 'https://howlinbananarecords.bandcamp.com/track/in-it',
coverId: 'a1720372066',
},
{
id: 5,
compilationId: 'ES00A',
title: 'Bad michel',
artist: 4,
start: 1245,
bpm: 0,
url: 'https://johnnymafia.bandcamp.com/track/bad-michel-3',
coverId: 'a0984622869',
},
{
id: 6,
compilationId: 'ES00A',
title: 'Overall',
artist: 5,
start: 1394,
bpm: 0,
url: 'https://newcandys.bandcamp.com/track/overall',
coverId: 'a0559661270',
},
{
id: 7,
compilationId: 'ES00A',
title: 'Blowup',
artist: 6,
start: 1674,
bpm: 0,
url: 'https://magicshoppe.bandcamp.com/track/blowup',
coverId: 'a1444895293',
},
{
id: 8,
compilationId: 'ES00A',
title: 'Guitar jet',
artist: 7,
start: 1880,
bpm: 0,
url: 'https://radiomartiko.bandcamp.com/track/guitare-jet',
coverId: 'a1494681687',
},
{
id: 9,
compilationId: 'ES00A',
title: 'Intercontinental radio waves',
artist: 8,
start: 2024,
bpm: 0,
url: 'https://traams.bandcamp.com/track/intercontinental-radio-waves',
coverId: 'a0046738552',
},
{
id: 10,
compilationId: 'ES00A',
title: 'Here comes the sun',
artist: 9,
start: 2211,
bpm: 0,
url: 'https://blue-orchid.bandcamp.com/track/here-come-the-sun',
coverId: 'a4102567047',
},
{
id: 11,
compilationId: 'ES00A',
title: 'Like in the movies',
artist: 10,
start: 2559,
bpm: 0,
url: 'https://bruitblanc.bandcamp.com/track/like-in-the-movies-2',
coverId: 'a2203158939',
},
{
id: 21,
compilationId: 'ES00B',
title: 'Ce que révèle l\'éclipse',
artist: 0,
start: 0,
bpm: 0,
url: 'https://arakirecords.bandcamp.com/track/ce-que-r-v-le-l-clipse',
coverId: 'a3236746052',
},
{
id: 22,
compilationId: 'ES00B',
title: 'Bleedin\' Gums Mushrool',
artist: 1,
start: 263,
bpm: 0,
url: 'https://the-kundalini-genie.bandcamp.com/track/bleedin-gums-mushroom',
coverId: 'a1714786533',
},
{
id: 23,
compilationId: 'ES00B',
title: 'A lucid dream',
artist: 2,
start: 554,
bpm: 0,
url: 'https://fontainesdc.bandcamp.com/track/a-lucid-dream',
coverId: 'a3772806156',
},
{
id: 24,
compilationId: 'ES00B',
title: 'Lights off',
artist: 3,
start: 781,
bpm: 0,
url: 'https://howlinbananarecords.bandcamp.com/track/lights-off',
coverId: 'a1720372066',
},
{
id: 25,
compilationId: 'ES00B',
title: 'I\'m sentimental',
artist: 4,
start: 969,
bpm: 0,
url: 'https://johnnymafia.bandcamp.com/track/im-sentimental-2',
coverId: 'a2333676849',
},
{
id: 26,
compilationId: 'ES00B',
title: 'Thrill or trip',
artist: 5,
start: 1128,
bpm: 0,
url: 'https://newcandys.bandcamp.com/track/thrill-or-trip',
coverId: 'a0559661270',
},
{
id: 27,
compilationId: 'ES00B',
title: 'Redhead',
artist: 6,
start: 1303,
bpm: 0,
url: 'https://magicshoppe.bandcamp.com/track/redhead',
coverId: 'a0594426943',
},
{
id: 28,
compilationId: 'ES00B',
title: 'Supersonic twist',
artist: 7,
start: 1584,
bpm: 0,
url: 'https://open.spotify.com/track/66voQIZAJ3zD3Eju2qtNjF',
coverId: 'a1494681687',
},
{
id: 29,
compilationId: 'ES00B',
title: 'Flowers',
artist: 8,
start: 1749,
bpm: 0,
url: 'https://traams.bandcamp.com/track/flowers',
coverId: 'a3644668199',
},
{
id: 30,
compilationId: 'ES00B',
title: 'The shade',
artist: 9,
start: 1924,
bpm: 0,
url: 'https://blue-orchid.bandcamp.com/track/the-shade',
coverId: 'a0804204790',
},
{
id: 31,
compilationId: 'ES00B',
title: 'Like in the movies',
artist: 10,
start: 2185,
bpm: 0,
url: 'https://bruitblanc.bandcamp.com/track/like-in-the-movies',
coverId: 'a3647322740',
},
]
})

3
server/tsconfig.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}