From 8e876c722165b094694cb748986d326aead8f187 Mon Sep 17 00:00:00 2001 From: Korauo <84373877+korauo@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:15:19 +0400 Subject: [PATCH 01/23] Create korauo.json --- domains/korauo.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 domains/korauo.json diff --git a/domains/korauo.json b/domains/korauo.json new file mode 100644 index 000000000..90b615987 --- /dev/null +++ b/domains/korauo.json @@ -0,0 +1,11 @@ +{ + "owner": { + "username": "korauo", + "email": "korauo69@gmail.com", + "twitter": "korauo", + "discord": "korauo#1423" + }, + "record": { + "CNAME": "korauo.github.io" + } +} From ecbad5d8836da674799d11ee11d4544a82c2dd1b Mon Sep 17 00:00:00 2001 From: Lazyllama Date: Fri, 4 Mar 2022 10:59:28 +0100 Subject: [PATCH 02/23] Update lazyllama.json I recently changed github username --- domains/lazyllama.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domains/lazyllama.json b/domains/lazyllama.json index 9db79af66..9ef0c5496 100644 --- a/domains/lazyllama.json +++ b/domains/lazyllama.json @@ -1,9 +1,9 @@ { "owner": { - "username": "hapyllama", + "username": "lazylllama", "email": "kws102522@gmail.com" }, "record": { - "CNAME": "hapyllama.github.io" + "CNAME": "lazylllama.github.io" } } From 3cd94965c58f3143239b42a8d9f05a9237e999f4 Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Fri, 4 Mar 2022 11:26:22 +0000 Subject: [PATCH 03/23] Create catzboy.json --- domains/catzboy.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 domains/catzboy.json diff --git a/domains/catzboy.json b/domains/catzboy.json new file mode 100644 index 000000000..f95334ebe --- /dev/null +++ b/domains/catzboy.json @@ -0,0 +1,13 @@ +{ + "description": "Catzboy Profilo", + "repo": "https://github.com/Maruful007/Maruful007", + "owner": { + "username": "Maruful007", + "email": "marufulislamsami2007@gmail.com@gmail.com" + }, + "record": { + "CNAME": [ + "https://maruful007.github.io/Catzboy-Profilo/public/" + ] + } +} From 494320de390788bcbfe4535149f0239327773812 Mon Sep 17 00:00:00 2001 From: censor <86632275+cens6r@users.noreply.github.com> Date: Sat, 5 Mar 2022 03:37:54 +0900 Subject: [PATCH 04/23] Create censor.json --- domains/censor.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 domains/censor.json diff --git a/domains/censor.json b/domains/censor.json new file mode 100644 index 000000000..d73e62482 --- /dev/null +++ b/domains/censor.json @@ -0,0 +1,12 @@ +{ + "description": "My personal Website", + "owner": { + "username": "censor", + "email": "cens6r.dev@gmail.com", + "discord": "cens6r#0001", + "note": "It is faster to contact me on Discord." + }, + "record": { + "CNAME": "cens6r.github.io" + } +} From 417d8191f1059c79c96ebd49532e560e56327710 Mon Sep 17 00:00:00 2001 From: censor <86632275+cens6r@users.noreply.github.com> Date: Sat, 5 Mar 2022 03:40:47 +0900 Subject: [PATCH 05/23] Update censor.json --- domains/censor.json | 1 + 1 file changed, 1 insertion(+) diff --git a/domains/censor.json b/domains/censor.json index d73e62482..5fa90ee8e 100644 --- a/domains/censor.json +++ b/domains/censor.json @@ -1,5 +1,6 @@ { "description": "My personal Website", + "repo": "https://github.com/cens6r/cens6r.github.io", "owner": { "username": "censor", "email": "cens6r.dev@gmail.com", From d08276ed3623c65cfec211648d7cdf167bb585c6 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Mar 2022 12:07:26 +0530 Subject: [PATCH 06/23] chore: adds acme challenge cname as invalid name --- utils/invalid-domains.json | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/invalid-domains.json b/utils/invalid-domains.json index 4c49294be..45599ab2e 100644 --- a/utils/invalid-domains.json +++ b/utils/invalid-domains.json @@ -5,6 +5,7 @@ "noreply", "notifications", "notification", + "_acme-challenge", "ww1", "ww2", "ww3", From fccfc53b818f817005f28fa51b6ef63ee16c153c Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Mar 2022 12:52:49 +0530 Subject: [PATCH 07/23] feat: adds support for dots in subdomain names --- docs/domains-json.md | 5 ++++- tests/validations.test.js | 5 +++++ utils/validations.js | 16 +++++++++++----- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/domains-json.md b/docs/domains-json.md index e502fb144..054f0c2a2 100644 --- a/docs/domains-json.md +++ b/docs/domains-json.md @@ -4,6 +4,9 @@ To register `my-domain.is-a.dev`, you need to create a `domains/my-domain.json` ### Filename The file name must pass the following criteria - + +> NOTE: You can use `.` (dots) in your file name (for registering `blog.mysubdomain.is-a.dev`) but each of the following criteria must be valid for all part of your subdomain + * Must be alpha-numeric in lowercase with dashes as seperators * Must be more than 2 characters long * Must have a `.json` file extension @@ -25,7 +28,7 @@ In the owner object, the fields `username` and `email` are required. You can how } ``` -If you don't wish to share your email address here, please share your twitter or any other social media account. +If you don't wish to share your email address here, please share your twitter, discord or any other social media account. ```json { "owner": { diff --git a/tests/validations.test.js b/tests/validations.test.js index d4c6806e0..cc4b7bc02 100644 --- a/tests/validations.test.js +++ b/tests/validations.test.js @@ -55,6 +55,9 @@ describe('validateDomainData', () => { { ...defaultDomain, record: { CNAME: 'foobar.com', MX: ['ALT4.ASPMX.L.GOOGLE.COM'] } }, ...INVALID_NAMES.map(name => ({ ...defaultDomain, name })).slice(0, 1), { ...defaultDomain, record: { TXT: ['foobar wow nice!!!'] } }, + { ...defaultDomain, name: 'a.b' }, + { ...defaultDomain, name: 'ww2.baa' }, + { ...defaultDomain, name: 'help.baa' }, ]; const validCases = [ @@ -73,6 +76,8 @@ describe('validateDomainData', () => { { ...defaultDomain, record: { MX: ['ALT4.ASPMX.L.GOOGLE.COM'] } }, { ...defaultDomain, record: { TXT: 'foobar wow nice!!!' } }, { ...defaultDomain, record: { A: ['1.1.1.1'], MX: ['mx1.example.com'] } }, + { ...defaultDomain, name: 'gogo.foo.bar' }, + { ...defaultDomain, name: 'ww9.baa' }, ]; it('should return false for invalid data', () => { diff --git a/utils/validations.js b/utils/validations.js index 67a8d3df5..057aa4173 100644 --- a/utils/validations.js +++ b/utils/validations.js @@ -5,7 +5,7 @@ const INVALID_NAMES = require('./invalid-domains.json'); const isValidURL = and([R.is(String), testRegex(/^https?:\/\//ig)]); -const isValidDomain = and([R.is(String), testRegex(/^(([a-z0-9\-]+)\.)+[a-z]+$/ig)]); +const isValidDomain = and([R.is(String), testRegex(/^(([a-z0-9-]+)\.)+[a-z]+$/ig)]); const validateCnameRecord = type => and([ R.propIs(String, type), @@ -27,13 +27,19 @@ const validateMXRecord = type => and([ const validateDomainData = validate({ name: { - reason: 'The name of the file is invalid. It must be lowercased, alphanumeric and more than 2 characters long', + reason: 'The name of the file is invalid. It must be lowercased, alphanumeric and each component must be more than 2 characters long', fn: or([ R.equals('@'), and([ - R.compose(between(2, 100), R.length), - testRegex(/^[a-z0-9-]+$/g), - R.complement(R.includes(R.__, INVALID_NAMES)), + R.is(String), + R.compose( + R.all(and([ + R.compose(between(2, 100), R.length), + testRegex(/^[a-z0-9-]+$/g), + R.complement(R.includes(R.__, INVALID_NAMES)), + ])), + R.split('.'), + ), ]) ]), }, From 4936b6441bf45e25f956883afa0334df1629da47 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Mar 2022 12:53:06 +0530 Subject: [PATCH 08/23] feat: adds my library as an example --- domains/algebraic-effects.akshay.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 domains/algebraic-effects.akshay.json diff --git a/domains/algebraic-effects.akshay.json b/domains/algebraic-effects.akshay.json new file mode 100644 index 000000000..563a84c7b --- /dev/null +++ b/domains/algebraic-effects.akshay.json @@ -0,0 +1,11 @@ +{ + "description": "Docs for algebraic effects library", + "repo": "https://github.com/phenax/algebraic-effects", + "owner": { + "username": "phenax", + "email": "phenax5@gmail.com" + }, + "record": { + "CNAME": "phenax.github.io" + } +} From 8a924c1c7ed96b2a205751640a95dabe32b2b2b8 Mon Sep 17 00:00:00 2001 From: Bad Boy <58816669+Bad-Boy-Codes@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:22:43 +0530 Subject: [PATCH 09/23] Create api.badboy.json --- api.badboy.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 api.badboy.json diff --git a/api.badboy.json b/api.badboy.json new file mode 100644 index 000000000..eda1a9884 --- /dev/null +++ b/api.badboy.json @@ -0,0 +1,11 @@ +{ + "description": "Bad Boy's Api", + "repo": "https://github.com/Bad-Boy-Codes/bad-boy-codes.github.io", + "owner": { + "username": "badboy", + "email": "badboyplays9999@gmail.com" + }, + "record": { + "CNAME": "badboy.up.railway.app" + } +} From 5992adb3a8df708e274473e31d6f7a7c566dc5d1 Mon Sep 17 00:00:00 2001 From: Bad Boy <58816669+Bad-Boy-Codes@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:29:05 +0530 Subject: [PATCH 10/23] Update and rename api.badboy.json to domains/api.badboy.json --- api.badboy.json => domains/api.badboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename api.badboy.json => domains/api.badboy.json (87%) diff --git a/api.badboy.json b/domains/api.badboy.json similarity index 87% rename from api.badboy.json rename to domains/api.badboy.json index eda1a9884..c345cc250 100644 --- a/api.badboy.json +++ b/domains/api.badboy.json @@ -2,7 +2,7 @@ "description": "Bad Boy's Api", "repo": "https://github.com/Bad-Boy-Codes/bad-boy-codes.github.io", "owner": { - "username": "badboy", + "username": "bad-boy-codes", "email": "badboyplays9999@gmail.com" }, "record": { From 090e25a306eb665d858af149df1a1587229e5c28 Mon Sep 17 00:00:00 2001 From: Bad Boy <58816669+Bad-Boy-Codes@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:30:12 +0530 Subject: [PATCH 11/23] name lmfao MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit why no one noticed my username 💀 --- domains/badboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/badboy.json b/domains/badboy.json index c9435dfe2..6bd526298 100644 --- a/domains/badboy.json +++ b/domains/badboy.json @@ -2,7 +2,7 @@ "description": "Bad Boy's Website", "repo": "https://github.com/Bad-Boy-Codes/bad-boy-codes.github.io", "owner": { - "username": "badboy", + "username": "bad-boy-codes", "email": "badboyplays9999@gmail.com" }, "record": { From 5c89d2b5d84bcf638ab767334160bd2ac43d9ae9 Mon Sep 17 00:00:00 2001 From: Bad Boy <58816669+Bad-Boy-Codes@users.noreply.github.com> Date: Sat, 5 Mar 2022 13:35:56 +0530 Subject: [PATCH 12/23] did nothing? --- domains/api.badboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/api.badboy.json b/domains/api.badboy.json index c345cc250..44fa05c6d 100644 --- a/domains/api.badboy.json +++ b/domains/api.badboy.json @@ -1,5 +1,5 @@ { - "description": "Bad Boy's Api", + "description": "Bad Boy / Suzumi Api", "repo": "https://github.com/Bad-Boy-Codes/bad-boy-codes.github.io", "owner": { "username": "bad-boy-codes", From 4ddd7d3fa1d9729f029840e6e5bf86674bc50729 Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Sat, 5 Mar 2022 08:59:21 +0000 Subject: [PATCH 13/23] Update domains/catzboy.json Co-authored-by: MaskDuck --- domains/catzboy.json | 1 - 1 file changed, 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index f95334ebe..6b8fdb020 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -8,6 +8,5 @@ "record": { "CNAME": [ "https://maruful007.github.io/Catzboy-Profilo/public/" - ] } } From 7f5803a576d756604347852bc77eb08373894c19 Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Sat, 5 Mar 2022 08:59:35 +0000 Subject: [PATCH 14/23] Update domains/catzboy.json Co-authored-by: MaskDuck --- domains/catzboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index 6b8fdb020..acddbcc40 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -6,7 +6,7 @@ "email": "marufulislamsami2007@gmail.com@gmail.com" }, "record": { - "CNAME": [ + "CNAME": "https://maruful007.github.io/Catzboy-Profilo/public/", "https://maruful007.github.io/Catzboy-Profilo/public/" } } From 010a3d5b3ba78a5f541a585081c8857b5ccd63ef Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Sat, 5 Mar 2022 08:59:44 +0000 Subject: [PATCH 15/23] Update domains/catzboy.json Co-authored-by: MaskDuck --- domains/catzboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index acddbcc40..4d15724f6 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -3,7 +3,7 @@ "repo": "https://github.com/Maruful007/Maruful007", "owner": { "username": "Maruful007", - "email": "marufulislamsami2007@gmail.com@gmail.com" + "email": "marufulislamsami2007@gmail.com" }, "record": { "CNAME": "https://maruful007.github.io/Catzboy-Profilo/public/", From 73212bb3b68ad3597704bd3d02dc0e870ff753aa Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Sat, 5 Mar 2022 08:59:51 +0000 Subject: [PATCH 16/23] Update domains/catzboy.json Co-authored-by: MaskDuck --- domains/catzboy.json | 1 - 1 file changed, 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index 4d15724f6..2f3bcf2e4 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -7,6 +7,5 @@ }, "record": { "CNAME": "https://maruful007.github.io/Catzboy-Profilo/public/", - "https://maruful007.github.io/Catzboy-Profilo/public/" } } From 7280484dda91a5f9d28b0ecdf075435369305955 Mon Sep 17 00:00:00 2001 From: Bad Boy <58816669+Bad-Boy-Codes@users.noreply.github.com> Date: Sat, 5 Mar 2022 14:53:56 +0530 Subject: [PATCH 17/23] okay i changed my mind i don't need extra domain for my api it's in the main domain, and now using this for my discord bot's dashboard --- domains/{api.badboy.json => suzumi.badboy.json} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename domains/{api.badboy.json => suzumi.badboy.json} (70%) diff --git a/domains/api.badboy.json b/domains/suzumi.badboy.json similarity index 70% rename from domains/api.badboy.json rename to domains/suzumi.badboy.json index 44fa05c6d..8c517b5d1 100644 --- a/domains/api.badboy.json +++ b/domains/suzumi.badboy.json @@ -1,11 +1,11 @@ { - "description": "Bad Boy / Suzumi Api", + "description": "Suzumi's Dashboard", "repo": "https://github.com/Bad-Boy-Codes/bad-boy-codes.github.io", "owner": { "username": "bad-boy-codes", "email": "badboyplays9999@gmail.com" }, "record": { - "CNAME": "badboy.up.railway.app" + "CNAME": "suzumi.up.railway.app" } } From 681e96a6267ac3dc44b0cdaff4ca3ce2a3e58d5d Mon Sep 17 00:00:00 2001 From: Kyuzu <99307966+kyuzu@users.noreply.github.com> Date: Sat, 5 Mar 2022 19:22:33 +0800 Subject: [PATCH 18/23] feat: remove kyuzu.json --- domains/kyuzu.json | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 domains/kyuzu.json diff --git a/domains/kyuzu.json b/domains/kyuzu.json deleted file mode 100644 index f5276be41..000000000 --- a/domains/kyuzu.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "description": "Personal portfolio built with ReactJS", - "repo": "https://github.com/kyuzu/", - "owner": { - "username": "kyuzu", - "discord": "Kyuzu#9214", - "twitter": "kyuzudev", - "email": "" - }, - "record": { - "CNAME": "8ec71685ba9c73e0eaeabaa5.cname.deno.dev" - } -} From cd0ba6a0be550df82d5e12e542e0b1087178bb70 Mon Sep 17 00:00:00 2001 From: Kyuzu <99307966+kyuzu@users.noreply.github.com> Date: Sat, 5 Mar 2022 21:30:29 +0800 Subject: [PATCH 19/23] feat: (re)create kyuzu.json --- domains/kyuzu.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 domains/kyuzu.json diff --git a/domains/kyuzu.json b/domains/kyuzu.json new file mode 100644 index 000000000..471598040 --- /dev/null +++ b/domains/kyuzu.json @@ -0,0 +1,13 @@ +{ + "description": "Personal portfolio built with ReactJS", + "repo": "https://github.com/kyuzu/portfolio", + "owner": { + "username": "kyuzu", + "discord": "Kyuzu#9214", + "twitter": "kyuzudev", + "email": "" + }, + "record": { + "CNAME": "280985daeff00a3fed6006ff.cname.deno.dev" + } +} From 2b0dc455455cd4370ba43169275ed735b279b8c2 Mon Sep 17 00:00:00 2001 From: "Mr. Hacker" <77198417+Maruful007@users.noreply.github.com> Date: Sat, 5 Mar 2022 15:47:05 +0000 Subject: [PATCH 20/23] Update catzboy.json --- domains/catzboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index 2f3bcf2e4..469468cab 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -6,6 +6,6 @@ "email": "marufulislamsami2007@gmail.com" }, "record": { - "CNAME": "https://maruful007.github.io/Catzboy-Profilo/public/", + "CNAME": "maruful007.github.io", } } From 224531529d7003aaac7e06e1c08d073770d48f25 Mon Sep 17 00:00:00 2001 From: Jay Jackson Date: Sat, 5 Mar 2022 10:52:12 -0500 Subject: [PATCH 21/23] Fix trailing comma for the CNAME --- domains/catzboy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/catzboy.json b/domains/catzboy.json index 469468cab..260b616ad 100644 --- a/domains/catzboy.json +++ b/domains/catzboy.json @@ -6,6 +6,6 @@ "email": "marufulislamsami2007@gmail.com" }, "record": { - "CNAME": "maruful007.github.io", + "CNAME": "maruful007.github.io" } } From 5056a0a343a22140e6b9ced7e741ff154ad554bb Mon Sep 17 00:00:00 2001 From: TheBotlyNoob-ALT <75792325+TheBotlyNoob-ALT@users.noreply.github.com> Date: Sat, 5 Mar 2022 12:19:33 -0500 Subject: [PATCH 22/23] Create terminal.sea-shells.jj.json --- domains/terminal.sea-shells.jj.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 domains/terminal.sea-shells.jj.json diff --git a/domains/terminal.sea-shells.jj.json b/domains/terminal.sea-shells.jj.json new file mode 100644 index 000000000..a073f043d --- /dev/null +++ b/domains/terminal.sea-shells.jj.json @@ -0,0 +1,11 @@ +{ + "description": "online terminal for the Sea Shell project", + "repo": "https://github.com/Sea-Shell/online-terminal", + "owner": { + "username": "TheBotlyNoob", + "email": "jj@jj.is-a.dev" + }, + "record": { + "A": ["35.230.85.45"] + } +} From 1687395794db50242772553750750a018045b87f Mon Sep 17 00:00:00 2001 From: TheBotlyNoob-ALT <75792325+TheBotlyNoob-ALT@users.noreply.github.com> Date: Sat, 5 Mar 2022 12:22:38 -0500 Subject: [PATCH 23/23] Create sea-shell.jj.json --- domains/sea-shell.jj.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 domains/sea-shell.jj.json diff --git a/domains/sea-shell.jj.json b/domains/sea-shell.jj.json new file mode 100644 index 000000000..c2cf1087e --- /dev/null +++ b/domains/sea-shell.jj.json @@ -0,0 +1,11 @@ +{ + "description": "website for the Sea Shell project", + "repo": "https://github.com/Sea-Shell/site", + "owner": { + "username": "TheBotlyNoob", + "email": "jj@jj.is-a.dev" + }, + "record": { + "A": ["35.230.85.45"] + } +}