fix: new layout

This commit is contained in:
Artemy Egorov 2024-08-07 20:06:37 +03:00
parent f641002f6e
commit aba9dd0fe4
2 changed files with 12 additions and 14 deletions

View file

@ -1,7 +1,9 @@
# Instances of TXTDot proxies
- <https://txt.dc09.ru> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txt.bloat.cat> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txt.clovius.club> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
- <https://txtd.lumaeris.com> ![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)
|link|tags|
|-|-|
|<https://txt.dc09.ru>|![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.dc09.ru%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)|
|<https://txt.bloat.cat>|![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.bloat.cat%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)|
|<https://txt.clovius.club>|![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxt.clovius.club%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)|
|<https://txtd.lumaeris.com>|![version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=version&label=version) ![protocol](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=protocol&label=protocol) ![searx](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.searx_url&label=searx) ![webder](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=third_party.webder_url&label=webder) ![image compression](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftxtd.lumaeris.com%2Fconfiguration%2Fjson&query=proxy.img_compress&label=image%20compression)|

View file

@ -8,19 +8,15 @@ function badge(url, label, path) {
)}&query=${encodeURIComponent(path)}&label=${encodeURIComponent(label)})`;
}
function static(label, text) {
return `![${label}](https://img.shields.io/badge/${label}-${text}-blue)`;
}
async function run() {
fs.writeFileSync(
"README.md",
`# Instances of TXTDot proxies\n\n${(
await Promise.all(
instances.map(async (instance) => {
`# Instances of TXTDot proxies\n\n|link|tags|\n|-|-|\n${(
instances.map((instance) => {
if (typeof instance === "string") {
const config_url = instance + "/configuration/json";
return `- <${instance}> ${badge(
return `|<${instance}>|${badge(
config_url,
"version",
"version"
@ -36,12 +32,12 @@ async function run() {
config_url,
"image compression",
"proxy.img_compress"
)}`;
)}|`;
}
})
)
).join("\n")}
.join("\n")}
`
);
}