mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 16:14:52 +00:00
Merge branch 'main' into main
This commit is contained in:
6 files changed
+40
-18
No files matched your search
+15
-15
@@ -111,7 +111,7 @@ for (var subdomain in domains) {
|
|||||||
subdomainName,
|
subdomainName,
|
||||||
tlsaRecord.usage,
|
tlsaRecord.usage,
|
||||||
tlsaRecord.selector,
|
tlsaRecord.selector,
|
||||||
tlsaRecord.matchingType,
|
tlsaRecord.matching_type,
|
||||||
tlsaRecord.certificate
|
tlsaRecord.certificate
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -136,6 +136,10 @@ for (var subdomain in domains) {
|
|||||||
|
|
||||||
// Manage service records
|
// Manage service records
|
||||||
if (data.services) {
|
if (data.services) {
|
||||||
|
if (data.services.bluesky) {
|
||||||
|
records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\""));
|
||||||
|
}
|
||||||
|
|
||||||
if (data.services.discord) {
|
if (data.services.discord) {
|
||||||
if (Array.isArray(data.services.discord)) {
|
if (Array.isArray(data.services.discord)) {
|
||||||
for (var txt in data.services.discord) {
|
for (var txt in data.services.discord) {
|
||||||
@@ -146,20 +150,6 @@ for (var subdomain in domains) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.services.vercel) {
|
|
||||||
if (Array.isArray(data.services.vercel)) {
|
|
||||||
for (var txt in data.services.vercel) {
|
|
||||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\""));
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\""));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.services.bluesky) {
|
|
||||||
records.push(TXT("_atproto." + subdomainName, "\"" + data.services.bluesky + "\""));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.services.gitlab) {
|
if (data.services.gitlab) {
|
||||||
if (Array.isArray(data.services.gitlab)) {
|
if (Array.isArray(data.services.gitlab)) {
|
||||||
for (var txt in data.services.gitlab) {
|
for (var txt in data.services.gitlab) {
|
||||||
@@ -169,6 +159,16 @@ for (var subdomain in domains) {
|
|||||||
records.push(TXT("_gitlab-pages-verification-code." + subdomainName, "\"" + data.services.gitlab + "\""));
|
records.push(TXT("_gitlab-pages-verification-code." + subdomainName, "\"" + data.services.gitlab + "\""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.services.vercel) {
|
||||||
|
if (Array.isArray(data.services.vercel)) {
|
||||||
|
for (var txt in data.services.vercel) {
|
||||||
|
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel[txt] + "\""));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
records.push(TXT("_vercel." + subdomainName, "\"" + data.services.vercel + "\""));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"owner": {
|
||||||
|
"username": "roxiTheReal",
|
||||||
|
"email": "aetheron.inc@proton.me"
|
||||||
|
},
|
||||||
|
"records": {
|
||||||
|
"TXT": "b4a63d8475ddf68f5f1a907cb04fff"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"owner": {
|
||||||
|
"username": "roxiTheReal",
|
||||||
|
"email": "aetheron.inc@proton.me"
|
||||||
|
},
|
||||||
|
"records": {
|
||||||
|
"CNAME": "roxiTheReal.github.io"
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
"email": "tothgergoci2@gmail.com"
|
"email": "tothgergoci2@gmail.com"
|
||||||
},
|
},
|
||||||
"records": {
|
"records": {
|
||||||
"CNAME": "tggamesyt.github.io"
|
"CNAME": "tggamesyt.github.io",
|
||||||
|
"TXT": "google-site-verification=MqP9uuv-eJnnCBGFcD2xK5ux6S1YZpLm2aySQQNiAWI"
|
||||||
},
|
},
|
||||||
"proxied": true
|
"proxied": true
|
||||||
}
|
}
|
||||||
@@ -212,8 +212,8 @@ function validateRecordValues(t, data, file) {
|
|||||||
`${file}: Invalid selector for ${key} at index ${idx}`
|
`${file}: Invalid selector for ${key} at index ${idx}`
|
||||||
);
|
);
|
||||||
t.true(
|
t.true(
|
||||||
Number.isInteger(record.matchingType) && record.matchingType >= 0 && record.matchingType <= 255,
|
Number.isInteger(record.matching_type) && record.matching_type >= 0 && record.matching_type <= 255,
|
||||||
`${file}: Invalid matchingType for ${key} at index ${idx}`
|
`${file}: Invalid matching_type for ${key} at index ${idx}`
|
||||||
);
|
);
|
||||||
t.true(
|
t.true(
|
||||||
isValidHexadecimal(record.certificate),
|
isValidHexadecimal(record.certificate),
|
||||||
|
|||||||
@@ -160,6 +160,9 @@ fs.readdir(directoryPath, function (err, files) {
|
|||||||
|
|
||||||
processedCount++;
|
processedCount++;
|
||||||
if (processedCount === files.length) {
|
if (processedCount === files.length) {
|
||||||
|
v1.sort((a, b) => a.domain.localeCompare(b.subdomain));
|
||||||
|
v2.sort((a, b) => a.domain.localeCompare(b.subdomain));
|
||||||
|
|
||||||
fs.writeFile("raw-api/index.json", JSON.stringify(v1), (err) => {
|
fs.writeFile("raw-api/index.json", JSON.stringify(v1), (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user