mirror of
https://github.com/TxtDot/instances.git
synced 2025-03-12 04:44:43 +03:00
fix: new layout
This commit is contained in:
parent
f641002f6e
commit
aba9dd0fe4
2 changed files with 12 additions and 14 deletions
10
README.md
10
README.md
|
@ -1,7 +1,9 @@
|
|||
# Instances of TXTDot proxies
|
||||
|
||||
- <https://txt.dc09.ru>     
|
||||
- <https://txt.bloat.cat>     
|
||||
- <https://txt.clovius.club>     
|
||||
- <https://txtd.lumaeris.com>     
|
||||
|link|tags|
|
||||
|-|-|
|
||||
|<https://txt.dc09.ru>|    |
|
||||
|<https://txt.bloat.cat>|    |
|
||||
|<https://txt.clovius.club>|    |
|
||||
|<https://txtd.lumaeris.com>|    |
|
||||
|
16
index.js
16
index.js
|
@ -8,19 +8,15 @@ function badge(url, label, path) {
|
|||
)}&query=${encodeURIComponent(path)}&label=${encodeURIComponent(label)})`;
|
||||
}
|
||||
|
||||
function static(label, text) {
|
||||
return ``;
|
||||
}
|
||||
|
||||
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")}
|
||||
`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue