A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
159
v-if="station"160
class="flex flex-col gap-6 mt-8"161
>162
<div v-if="station.tags && station.tags.length > 0" class="flex gap-3 flex-wrap">163
<span v-for="tag in station.tags" class="cursor-pointer text-md text-white/90 font-medium items-center gap-[5px] bg-zinc-900 hover:bg-zinc-800 rounded-[4px] text-[14px] px-[14px] inline-flex h-[34px] leading-[34px]">{{tag}}</span>164
</div>162
<div class="flex gap-3">163
<v-play-button :station="station"></v-play-button>164
<v-button
173
</div>174
<p v-if="getDescription()" class="text-md text-gray-400 mt-2" v-html="getDescription()"></p>175
<p v-else class="text-md text-gray-400">{{$lang('detail.no-description')}}</p>176
<div v-if="station.tags && station.tags.length > 0" class="flex gap-3 flex-wrap">177
<span v-for="tag in station.tags" class="cursor-pointer text-md text-white/90 font-medium items-center gap-[5px] bg-zinc-900 hover:bg-zinc-800 rounded-[4px] text-[14px] px-[14px] inline-flex h-[34px] leading-[34px]">{{tag}}</span>178
</div>179
<div v-if="station.is_restricted || station.is_broken || station.is_no_track_info" class="flex gap-2 flex-wrap">180
<span181
v-if="station.is_restricted"
6
args:7
- VERSION8
ports:9
- "443:443"9
- "4202:4202"10
volumes:11
- /home/andreas/.config/:/root/.config/:z12
- /etc/letsencrypt/:/etc/letsencrypt/:z13
- /home/andreas/git/verbal/media/:/home/andreas/git/verbal/media/:z
1
#!/bin/bash3
city="$1"4
state="$2"5
location=$(curl -sL "https://nominatim.openstreetmap.org/search?city=$city&state=$state&format=json" | jq -r '.[0] | "[" + .lat + ", " + .lon + "],"')6
echo "$location"
1
#!/bin/bash3
id="$1"4
echo "$id"5
ext="$2"6
url=$(psql verbal -c "select icon from station where id = $id;" -t | xargs echo -n)7
curl -sL "$url" -o "/home/andreas/git/verbal/media/$id.jpg"8
psql verbal -c "insert into station_status (station_id, is_icon) values ($id, true) on conflict (station_id) do update set is_icon = excluded.is_icon;"
38
Self::new(&err.to_string())39
}40
}42
impl From<sqlx::Error> for Error {43
fn from(err: sqlx::Error) -> Self {44
Self::new(&err.to_string())45
}46
}48
impl From<tide::Error> for Error {49
fn from(err: tide::Error) -> Self {50
Self::new(&err.to_string())51
}52
}
18
))19
.build())20
}22
pub fn ok() -> tide::Result {23
Response::respond(tide::Body::from_json(&Self {24
ok: true,25
data: None,26
error: None,27
}))28
}29
}31
impl<T> Response<T, ()>
221
);222
let mut conn = req.sqlx_conn::<Postgres>().await;223
sqlx::query(&sql).execute(conn.acquire().await?).await?;224
Response::with(())224
Response::ok()225
}227
pub async fn delete_favorite(mut req: tide::Request<()>) -> tide::Result {
240
);241
let mut conn = req.sqlx_conn::<Postgres>().await;242
sqlx::query(&sql).execute(conn.acquire().await?).await?;243
Response::with(())243
Response::ok()244
}246
pub async fn get_account_by_id(req: tide::Request<()>) -> tide::Result {