"Added static sites - agent orange, habibi"
This commit is contained in:
parent
eb0d67e118
commit
3f15f13d6c
57
zradylko.sh
57
zradylko.sh
|
@ -69,15 +69,64 @@ get_zradylko() {
|
||||||
},'
|
},'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example usage:
|
get_habibi() {
|
||||||
|
local url="$1"
|
||||||
|
local commonName="$2"
|
||||||
|
local icon="$3"
|
||||||
|
|
||||||
|
# Create a JSON object with the desired fields
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
output=''${output}'
|
||||||
|
{
|
||||||
|
"title": "**'"$commonName"'**",
|
||||||
|
"author": {
|
||||||
|
"name": "'"$commonName"'",
|
||||||
|
"icon_url": "'"${icon}"'"
|
||||||
|
},
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "Menu",
|
||||||
|
"value": "'"https://www.foodora.cz/restaurant/qus9/kebab-house-galerie-slovany?utm_source=google&utm_medium=organic&utm_campaign=google_reserve_place_order_action"'"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},'
|
||||||
|
}
|
||||||
|
|
||||||
|
get_agent_orange() {
|
||||||
|
local url="$1"
|
||||||
|
local commonName="$2"
|
||||||
|
local icon="$3"
|
||||||
|
|
||||||
|
# Create a JSON object with the desired fields
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
output=''${output}'
|
||||||
|
{
|
||||||
|
"title": "**'"$commonName"'**",
|
||||||
|
"author": {
|
||||||
|
"name": "'"$commonName"'",
|
||||||
|
"icon_url": "'"${icon}"'"
|
||||||
|
},
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "Menu",
|
||||||
|
"value": "'"https://www.foodora.cz/restaurant/r2xt/bistro-pho-time?utm_source=google&utm_medium=organic&utm_campaign=google_reserve_place_order_action"'"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},'
|
||||||
|
}
|
||||||
|
|
||||||
urlGarage="https://www.unasplzenchutna.cz/garage/cz/denni-nabidka/"
|
urlGarage="https://www.unasplzenchutna.cz/garage/cz/denni-nabidka/"
|
||||||
get_zradylko "$urlGarage" "Salieriho bar" "https://png.pngtree.com/png-vector/20240211/ourlarge/pngtree-italy-round-flag-peeling-sticker-transparent-background-vector-png-image_11738118.png"
|
get_zradylko "$urlGarage" "Salieriho bar" "https://png.pngtree.com/png-vector/20240211/ourlarge/pngtree-italy-round-flag-peeling-sticker-transparent-background-vector-png-image_11738118.png"
|
||||||
|
|
||||||
urlSladovnicka="https://sladovnicka.unasplzenchutna.cz/cz/denni-nabidka/"
|
urlSladovnicka="https://sladovnicka.unasplzenchutna.cz/cz/denni-nabidka/"
|
||||||
get_zradylko "$urlSladovnicka" "V. pavilón" "https://i0.wp.com/life4you.cz/wp-content/uploads/2022/09/Pilsner-Urquell.png?fit=480%2C480&ssl=1"
|
get_zradylko "$urlSladovnicka" "V. pavilón" "https://i0.wp.com/life4you.cz/wp-content/uploads/2022/09/Pilsner-Urquell.png?fit=480%2C480&ssl=1"
|
||||||
|
|
||||||
# Remove the trailing comma from the menu_data
|
get_habibi "Habibi" "Habibi" "https://upload.wikimedia.org/wikipedia/commons/e/ed/Flag_of_the_Islamic_State_of_Iraq_and_the_Levant2.svg"
|
||||||
#output="${output%,}"
|
|
||||||
|
get_agent_orange "Agent Orange" "Agent Orange" "https://www.postavy.cz/foto-dila/vietcong-foto.jpg"
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# get_microsoft_support
|
||||||
|
|
||||||
# Print the complete menu data
|
# Print the complete menu data
|
||||||
echo "$output" #| jq .
|
echo "$output"
|
Loading…
Reference in New Issue