home to your local SPACEGIRL 💫 arimelody.space
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

some cleanup, attempting to fix htmx bug

Signed-off-by: ari melody <ari@arimelody.me>

+43 -47
+40 -40
api/v1/music/music.go
··· 53 53 Buyname: "go get it!!", 54 54 Buylink: "https://arimelody.me/", 55 55 Links: []MusicLink{ 56 - MusicLink{ 56 + { 57 57 Name: "youtube", 58 58 Url: "https://youtu.be/dQw4w9WgXcQ", 59 59 }, ··· 61 61 Description: 62 62 `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas viverra ligula interdum, tempor metus venenatis, tempus est. Praesent semper vulputate nulla, a venenatis libero elementum id. Proin maximus aliquet accumsan. Integer eu orci congue, ultrices leo sed, maximus risus. Integer laoreet non urna non accumsan. Cras ut sollicitudin justo. Vivamus eu orci tempus, aliquet est rhoncus, tempus neque. Aliquam tempor sit amet nibh sed tempus. Nulla vitae bibendum purus. Sed in mi enim. Nam pharetra enim lorem, vel tristique diam malesuada a. Duis dignissim nunc mi, id semper ex tincidunt a. Sed laoreet consequat lacus a consectetur. Nulla est diam, tempus eget lacus ullamcorper, tincidunt faucibus ex. Duis consectetur felis sit amet ante fermentum interdum. Sed pulvinar laoreet tellus.`, 63 63 Credits: []MusicCredit{ 64 - MusicCredit{ 64 + { 65 65 Artist: &ari, 66 66 Role: "having the swag", 67 67 }, 68 - MusicCredit{ 68 + { 69 69 Artist: &zaire, 70 70 Role: "having the swag", 71 71 }, 72 - MusicCredit{ 72 + { 73 73 Artist: &mae, 74 74 Role: "having the swag", 75 75 }, 76 - MusicCredit{ 76 + { 77 77 Artist: &loudar, 78 78 Role: "having the swag", 79 79 }, ··· 184 184 Artwork: "https://mellodoot.com/img/music_artwork/mellodoot_-_Dream.webp", 185 185 Buylink: "https://arimelody.bandcamp.com/track/dream", 186 186 Links: []MusicLink{ 187 - MusicLink{ 187 + { 188 188 Name: "spotify", 189 189 Url: "https://open.spotify.com/album/5talRpqzjExP1w6j5LFIAh", 190 190 }, 191 - MusicLink{ 191 + { 192 192 Name: "apple music", 193 193 Url: "https://music.apple.com/ie/album/dream-single/1650037132", 194 194 }, 195 - MusicLink{ 195 + { 196 196 Name: "soundcloud", 197 197 Url: "https://soundcloud.com/arimelody/dream2022", 198 198 }, 199 - MusicLink{ 199 + { 200 200 Name: "youtube", 201 201 Url: "https://www.youtube.com/watch?v=nfFgtMuYAx8", 202 202 }, 203 203 }, 204 204 Description: "living the dream 🌌 ✨", 205 205 Credits: []MusicCredit{ 206 - MusicCredit{ 206 + { 207 207 Artist: &mellodoot, 208 208 Role: "vocals", 209 209 }, 210 - MusicCredit{ 210 + { 211 211 Artist: &mellodoot, 212 212 Role: "production", 213 213 }, 214 - MusicCredit{ 214 + { 215 215 Artist: &mellodoot, 216 216 Role: "artwork", 217 217 }, ··· 252 252 Artwork: "https://mellodoot.com/img/music_artwork/mellodoot_-_Go_My_Way.webp", 253 253 Buylink: "https://arimelody.bandcamp.com/track/go-my-way", 254 254 Links: []MusicLink{ 255 - MusicLink{ 255 + { 256 256 Name: "spotify", 257 257 Url: "https://open.spotify.com/album/35WNtxK12IDHCUoXHDePGE", 258 258 }, 259 - MusicLink{ 259 + { 260 260 Name: "apple music", 261 261 Url: "https://music.apple.com/ie/album/go-my-way-single/1547145699", 262 262 }, 263 - MusicLink{ 263 + { 264 264 Name: "soundcloud", 265 265 Url: "https://soundcloud.com/arimelody/go-my-way", 266 266 }, 267 - MusicLink{ 267 + { 268 268 Name: "youtube", 269 269 Url: "https://www.youtube.com/watch?v=CNptNQdLkl0", 270 270 }, 271 271 }, 272 272 Description: "hey! go my way! 💥 ✨", 273 273 Credits: []MusicCredit{ 274 - MusicCredit{ 274 + { 275 275 Artist: &mellodoot, 276 276 Role: "vocals", 277 277 }, 278 - MusicCredit{ 278 + { 279 279 Artist: &mellodoot, 280 280 Role: "production", 281 281 }, 282 - MusicCredit{ 282 + { 283 283 Artist: &mellodoot, 284 284 Role: "artwork", 285 285 }, ··· 312 312 }, 313 313 Description: "let's take a trip. i've got a goddamn boat ⛵️", 314 314 Credits: []MusicCredit{ 315 - MusicCredit{ 315 + { 316 316 Artist: &mellodoot, 317 317 Role: "vocals", 318 318 }, 319 - MusicCredit{ 319 + { 320 320 Artist: &mellodoot, 321 321 Role: "production", 322 322 }, 323 - MusicCredit{ 323 + { 324 324 Artist: &mellodoot, 325 325 Role: "artwork", 326 326 }, ··· 353 353 }, 354 354 Description: "we'll dawn a new frontier! 👾", 355 355 Credits: []MusicCredit{ 356 - MusicCredit{ 356 + { 357 357 Artist: &mellodoot, 358 358 Role: "vocals", 359 359 }, 360 - MusicCredit{ 360 + { 361 361 Artist: &mellodoot, 362 362 Role: "production", 363 363 }, 364 - MusicCredit{ 364 + { 365 365 Artist: &mellodoot, 366 366 Role: "artwork", 367 367 }, ··· 388 388 }, 389 389 }, 390 390 Credits: []MusicCredit{ 391 - MusicCredit{ 391 + { 392 392 Artist: &zaire, 393 393 Role: "production", 394 394 }, 395 - MusicCredit{ 395 + { 396 396 Artist: &mellodoot, 397 397 Role: "production", 398 398 }, ··· 424 424 }, 425 425 }, 426 426 Credits: []MusicCredit{ 427 - MusicCredit{ 427 + { 428 428 Artist: &mellodoot, 429 429 Role: "production", 430 430 }, 431 - MusicCredit{ 431 + { 432 432 Artist: &mellodoot, 433 433 Role: "artwork", 434 434 }, ··· 460 460 }, 461 461 }, 462 462 Credits: []MusicCredit{ 463 - MusicCredit{ 463 + { 464 464 Artist: &mellodoot, 465 465 Role: "vocals", 466 466 }, 467 - MusicCredit{ 467 + { 468 468 Artist: &mellodoot, 469 469 Role: "production", 470 470 }, 471 - MusicCredit{ 471 + { 472 472 Artist: &mellodoot, 473 473 Role: "artwork", 474 474 }, ··· 500 500 }, 501 501 }, 502 502 Credits: []MusicCredit{ 503 - MusicCredit{ 503 + { 504 504 Artist: &mellodoot, 505 505 Role: "production", 506 506 }, 507 - MusicCredit{ 507 + { 508 508 Artist: &mellodoot, 509 509 Role: "artwork", 510 510 }, ··· 546 546 }, 547 547 }, 548 548 Credits: []MusicCredit{ 549 - MusicCredit{ 549 + { 550 550 Artist: &mellodoot, 551 551 Role: "production", 552 552 }, 553 - MusicCredit{ 553 + { 554 554 Artist: &red, 555 555 Role: "artwork", 556 556 Meta: true, ··· 576 576 }, 577 577 }, 578 578 Credits: []MusicCredit{ 579 - MusicCredit{ 579 + { 580 580 Artist: &mellodoot, 581 581 Role: "production", 582 582 }, 583 - MusicCredit{ 583 + { 584 584 Artist: &red, 585 585 Role: "artwork", 586 586 Meta: true, ··· 607 607 }, 608 608 Description: "an 8-bit expedition! ⚔️🛡️", 609 609 Credits: []MusicCredit{ 610 - MusicCredit{ 610 + { 611 611 Artist: &mellodoot, 612 612 Role: "production", 613 613 }, 614 - MusicCredit{ 614 + { 615 615 Artist: &mellodoot, 616 616 Role: "artwork", 617 617 },
+1 -6
main.go
··· 85 85 return index_handler(writer, root) 86 86 } 87 87 88 - if uri == "/music" { 88 + if uri == "/music" || uri == "/music/" { 89 89 return music_directory_handler(writer, root) 90 90 } 91 91 ··· 121 121 } 122 122 123 123 func music_gateway_handler(writer http.ResponseWriter, req *http.Request, root *template.Template) int { 124 - if len(req.URL.Path) <= len("/music/") { 125 - http.Error(writer, "400 bad request", http.StatusBadRequest) 126 - return 400 127 - } 128 - 129 124 id := req.URL.Path[len("/music/"):] 130 125 // http.Redirect(writer, req, "https://mellodoot.com/music/"+title, 302) 131 126 // return
+1
views/htmx-base.html
··· 3 3 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 4 4 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 5 5 {{block "head" .}}{{end}} 6 + <meta name="htmx-config" content='{"htmx.config.scrollIntoViewOnBoost":false}'> 6 7 <script type="application/javascript" src="/script/lib/htmx.min.js"></script> 7 8 <script type="application/javascript" src="/script/lib/htmx-head-support.js"></script> 8 9
+1 -1
views/music-gateway.html
··· 24 24 <meta name="twitter:image" content="https://arimelody.me{{.ResolveArtwork}}"> 25 25 <meta name="twitter:image:alt" content="Cover art for &quot;{{.Title}}&quot;"> 26 26 27 - <script type="module" src="/script/music-gateway.js" defer></script> 28 27 <link rel="stylesheet" href="/style/music-gateway.css"> 28 + <script type="module" src="/script/music-gateway.js" defer></script> 29 29 {{end}} 30 30 31 31 {{define "content"}}