feat: search param

This commit is contained in:
Artemy 2024-01-07 19:20:33 +03:00
parent 4b93e55c56
commit 7c665816a4
3 changed files with 16 additions and 11 deletions

View file

@ -2,8 +2,8 @@
Instances of TXTDot proxies Instances of TXTDot proxies
| Name | Base URL | HTTPS | | Name | Base URL | Search | Connection |
| ------------------------------------- | -------------------------- | ----- | | ------------------------------------- | -------------------------- | ------- | ---------- |
| Official TXTDot instance | <https://txt.dc09.ru> | true | | Official TXTDot instance | <https://txt.dc09.ru> | | https |
| Official TXTDot instance by artegoser | <https://txt.artegoser.ru> | true | | Official TXTDot instance by artegoser | <https://txt.artegoser.ru> | enabled | https |
| Instance by bloatcat | <https://txt.bloat.cat> | true | | Instance by bloatcat | <https://txt.bloat.cat> | | https |

View file

@ -8,12 +8,14 @@ fs.writeFileSync(
Instances of TXTDot proxies Instances of TXTDot proxies
| Name | Base URL | HTTPS | | Name | Base URL | Search | Connection |
| ---- | -------- | ------ | | ---- | -------- | ------ | ---------- |
${instances ${instances
.map( .map(
(instance) => (instance) =>
`| ${instance.name} | <${instance.baseUrl}> | ${instance.HTTPS} |` `| ${instance.name} | <${instance.baseUrl}> | ${
instance.search ? "enabled" : ""
} | ${instance.HTTPS ? "https" : "http"} |`
) )
.join("\n")} .join("\n")}
` `

View file

@ -2,16 +2,19 @@
{ {
"name": "Official TXTDot instance", "name": "Official TXTDot instance",
"baseUrl": "https://txt.dc09.ru", "baseUrl": "https://txt.dc09.ru",
"HTTPS": true "HTTPS": true,
"search": false
}, },
{ {
"name": "Official TXTDot instance by artegoser", "name": "Official TXTDot instance by artegoser",
"baseUrl": "https://txt.artegoser.ru", "baseUrl": "https://txt.artegoser.ru",
"HTTPS": true "HTTPS": true,
"search": true
}, },
{ {
"name": "Instance by bloatcat", "name": "Instance by bloatcat",
"baseUrl": "https://txt.bloat.cat", "baseUrl": "https://txt.bloat.cat",
"HTTPS": true "HTTPS": true,
"search": false
} }
] ]