mirror of
https://github.com/TxtDot/instances.git
synced 2025-03-13 05:14:44 +03:00
fix: lumaeris, remove unsupported version check
This commit is contained in:
parent
3d23107865
commit
f641002f6e
3 changed files with 21 additions and 26 deletions
39
index.js
39
index.js
|
@ -20,29 +20,24 @@ async function run() {
|
|||
instances.map(async (instance) => {
|
||||
if (typeof instance === "string") {
|
||||
const config_url = instance + "/configuration/json";
|
||||
try {
|
||||
await fetch(config_url).then((res) => res.json());
|
||||
return `- <${instance}> ${badge(
|
||||
config_url,
|
||||
"version",
|
||||
"version"
|
||||
)} ${badge(config_url, "protocol", "protocol")} ${badge(
|
||||
config_url,
|
||||
"searx",
|
||||
"third_party.searx_url"
|
||||
)} ${badge(
|
||||
config_url,
|
||||
"webder",
|
||||
"third_party.webder_url"
|
||||
)} ${badge(
|
||||
config_url,
|
||||
"image compression",
|
||||
"proxy.img_compress"
|
||||
)}`;
|
||||
|
||||
return `- <${instance}> ${badge(
|
||||
config_url,
|
||||
"version",
|
||||
"version"
|
||||
)} ${badge(config_url, "protocol", "protocol")} ${badge(
|
||||
config_url,
|
||||
"searx",
|
||||
"third_party.searx_url"
|
||||
)} ${badge(
|
||||
config_url,
|
||||
"webder",
|
||||
"third_party.webder_url"
|
||||
)} ${badge(
|
||||
config_url,
|
||||
"image compression",
|
||||
"proxy.img_compress"
|
||||
)}`;
|
||||
} catch {
|
||||
return `- <${instance}> (unsupported configuration version)`;
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue