mirror of
https://github.com/TxtDot/instances.git
synced 2025-03-13 05:14:44 +03:00
fix: new layout
This commit is contained in:
parent
f641002f6e
commit
aba9dd0fe4
2 changed files with 12 additions and 14 deletions
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