@3-/cf
v0.1.15
Published
[test/main.coffee](./test/main.coffee) :
Downloads
195
Readme
@3-/cf
#!/usr/bin/env coffee
> @3-/cf:CF
@3-/cf/purgeCache.js
# 获取所有域名
# await CF.GET()
# 获取单个域名x
host = 'xxai.eu.org'
{id} = (await CF.GET('?name='+host))[0]
console.log id
console.log await purgeCache(
id
host
[
"https://#{host}i18n.site/bin/_/v"
]
)
# console.log name, id
# https://developers.cloudflare.com/api/operations/zones-post
# @3-/uridir
# path > join
# ROOT = uridir(import.meta)
###
https://dash.cloudflare.com/api/v4/accounts/3532021fc25349684e9d77545ec45784/workers/domains/records?zone_id=f71f83890a81b1649fd4e58eb741ffbc
###
# conf = {
# DMARC: 'v=DMARC1;p=none;rua=mailto:[email protected]'
# MX: [
# 'mx.mailtie.com'
# ]
# TXT: [
# '[email protected]'
# 'v=spf1 include:_spf.google.com ~all'
# ]
# }
#
# host = 'u-01.eu.org'
# await mail host, conf
# https://dash.cloudflare.com/api/v4/zones/f71f83890a81b1649fd4e58eb741ffbc/dns_records?per_page=50&type=MX&match=all&tag-match=all
#zone = Zone i.id
#zone.dns_records()
# console.log(
# await zone['dns_records?type=TXT']
# )
output :
f1976687f7e0a4e2fbe9cd48761a8cc7
{ id: 'f1976687f7e0a4e2fbe9cd48761a8cc7' }
About
This project is an open-source component of i18n.site ⋅ Internationalization Solution.
i18 : MarkDown Command Line Translation Tool
The translation perfectly maintains the Markdown format.
It recognizes file changes and only translates the modified files.
The translated Markdown content is editable; if you modify the original text and translate it again, manually edited translations will not be overwritten (as long as the original text has not been changed).
i18n.site : MarkDown Multi-language Static Site Generator
Optimized for a better reading experience
关于
本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。
翻译能够完美保持 Markdown 的格式。能识别文件的修改,仅翻译有变动的文件。
Markdown 翻译内容可编辑;如果你修改原文并再次机器翻译,手动修改过的翻译不会被覆盖(如果这段原文没有被修改)。
i18n.site : MarkDown多语言静态站点生成器 为阅读体验而优化。