Merge branch 'main' into kory

This commit is contained in:
Akshay Nair
2020-10-15 00:22:29 +05:30
committed by GitHub
75 changed files with 848 additions and 10 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
}
```
* After the pull request is merged, you will see a 404 error on `your-domain.is-a.dev`. To fix this go to your github page repo's `Settings > Github pages > Custom domain` and add `your-domain.is-a.dev` in the given field
* If you have added the `URL` record for forced https, check the `Enforce HTTPS` checkbox too
* Check the `Enforce HTTPS` checkbox below the custom domain input
+6
View File
@@ -0,0 +1,6 @@
# Security Policy
## Reporting a Vulnerability
You can report low severity bugs as [issues](https://github.com/is-a-dev/register/issues/new/choose) on this repo.
For higher severity vulnerabilities and bugs, kindly email them to me at [phenax5@gmail.com](mailto:phenax5@gmail.com).
+12
View File
@@ -0,0 +1,12 @@
{
"description": "This website is a link to my personal developer portfolio.",
"repo": "https://github.com/aaraam/aaraam.github.io",
"owner": {
"username": "aaraam",
"email": "aaraam.goblin@gmail.com"
},
"record": {
"CNAME": "aaraam.github.io",
"URL": "https://aaraam.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Abdul's personal developer website",
"repo": "https://github.com/ariskycode/ariskycode.github.io",
"owner": {
"username": "ariskycode",
"email": "arirfanshaikh23@gmail.com"
},
"record": {
"CNAME": "ariskycode.github.io",
"URL": "https://abdulrshaikh.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Adarsh's personal developer website",
"repo": "https://github.com/Adarsh1999/adarsh-portfolio.github.io",
"owner": {
"username": "Adarsh1999",
"email": "adarshguptamaurya@gmail.com"
},
"record": {
"CNAME": "adarsh-portfolio.github.io",
"URL": "https://adarsh.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "The awesome portfolio site for Adrian Grimm",
"repo": "https://github.com/usmcamgrimm/usmcamgrimm.github.io",
"owner": {
"username": "usmcamgrimm",
"email": "usmcamgrimm@gmail.com"
},
"record": {
"CNAME": "usmcamgrimm.github.io",
"URL": "https://adrian.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Eyamin Personal Website",
"repo": "https://github.com/ahmadeyamin/ahmadeyamin.github.io",
"owner": {
"username": "ahmadeyamin",
"email": "ahmadeyamin@gmail.com"
},
"record": {
"CNAME": "ahmadeyamin.github.io",
"URL": "https://ahmadeyamin.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Akas Portfolio",
"repo":"https://github.com/akasrai/akasrai.github.io",
"owner": {
"username": "akasrai",
"email": "akasky70@gmail.com"
},
"record": {
"CNAME":"akasrai.github.io",
"URL": "https://akas.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Alexander's personal website",
"repo": "https://github.com/amatzen",
"owner": {
"username": "amatzen",
"email": "alexander@alexander.dk"
},
"record": {
"CNAME": "alexander.dk",
"URL": "https://alexander.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Allan's personal website",
"repo": "https://github.com/abarriel",
"owner": {
"username": "abarriel",
"email": "abarriel@student.42.fr"
},
"record": {
"CNAME": "abarriel.github.io",
"URL": "https://allan.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Amal's personal developer website",
"repo": "https://github.com/amalsebs/amalsebs.github.io",
"owner": {
"username": "amalsebs",
"email": "amalsebastian48@gmail.com"
},
"record": {
"CNAME": "amalsebs.github.io",
"URL": "https://amal.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Andy's portfolio website",
"repo": "https://github.com/andyfaizan/andyfaizan.github.io",
"owner": {
"username": "andyfaizan",
"email": "andyfaizan@gmail.com"
},
"record": {
"CNAME": "andyfaizan.github.io",
"URL": "https://andy.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Anupam's portfolio website",
"repo": "https://github.com/anupamroy8/portfolio",
"owner": {
"username": "anupamroy8",
"email": "anupamroy8@gmail.com"
},
"record": {
"CNAME": "anupamroy8.github.io",
"URL": "https://anupam.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Anwar's personal website",
"repo": "https://github.com/getanwar",
"owner": {
"username": "getanwar",
"email": "say@anwar.im"
},
"record": {
"URL": "https://anwar.im"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "👋 Hello there! I'm Asad, nice to meet you. Building things that bring delight to users is what I enjoy, always learning new stuff everyday.",
"repo": "https://github.com/asadkhan777",
"owner": {
"username": "asadkhan777",
"email": "asadkhan1776@gmail.com"
},
"record": {
"CNAME": "asadkhan777.github.io",
"URL": "https://asad-khan.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Portfolio Website",
"repo": "https://github.com/ashleymavericks/Portfolio-Site",
"owner": {
"username": "ashlyemavericks",
"email": "singhanurag024@gmail.com"
},
"record": {
"URL": "https://anuragsingh.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Aswin's personal portfolio",
"repo": "https://github.com/aswinskumar67/iamaswin.github.io",
"owner": {
"username": "aswinskumar67",
"email": "aswin.skumaro2bme@gmail.com"
},
"record": {
"CNAME": "aswinskumar67.github.io",
"URL": "https://aswin.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Portfolio website",
"repo": "https://github.com/robertdrakedennis/portfolio",
"owner": {
"username": "robertdrakedennis",
"email": "robertdennispersonal@gmail.com"
},
"record": {
"CNAME": "robertdennis.netlify.app",
"URL": "https://atlas.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Augustine's personal developer website",
"repo": "https://github.com/augustineaykara",
"owner": {
"username": "augustineaykara",
"email": "augustineaykara@gmail.com"
},
"record": {
"CNAME": "augustine.aykara4.com",
"URL": "https://augustine.is-a.dev"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"description": "Bae's personal website",
"owner": {
"username": "ba-e",
"email": "bae.nyom@gmail.com"
},
"record": {
"CNAME": "bae.codes",
"URL": "https://bae.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Biplob's website",
"repo": "https://github.com/revolutionisme/revolutionisme.github.io",
"owner": {
"username": "revolutionisme",
"email": "revolutionisme+github@gmail.com"
},
"record": {
"CNAME": "revolutionisme.github.io",
"URL": "https://biplob.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Bree is a Dev",
"repo": "https://github.com/breekoy/breekoy.github.io",
"owner": {
"username": "breekoy",
"email": "mcwall.breekoy@gmail.com"
},
"record": {
"CNAME": "breekoy.github.io",
"URL": "https://bree.is-a.dev"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"description": "My proud is-a.dev website",
"owner": {
"username": "edwinm",
"email": "edwin@bitstorm.org"
},
"record": {
"CNAME": "bitstorm.org"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"description": "/home/epgeroy",
"repo": "https://github.com/epgeroy/epgeroy.github.io",
"owner": {
"username": "epgeroy",
"email": "epgeroy@gmail.com"
},
"record": {
"CNAME": "epgeroy.github.io",
"URL": "https://epgeroy.is-a.dev"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"description": "Frontend Engineer",
"repo": "https://github.com/ericp3reira/ericp3reira.github.io",
"owner": {
"username": "ericp3reira",
"email": "",
"twitter": "ericp3reira"
},
"record": {
"CNAME": "ericp3reira.github.io",
"URL": "https://ericp3reira.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Fityan Azizi's portofolio website",
"repo": "https://github.com/fityanazizi/fityanazizi.github.io",
"owner": {
"username": "fityanazizi",
"email": "ftyns57@gmail.com"
},
"record": {
"CNAME": "fityanazizi.rf.gd",
"URL": "https://fityan.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "F Javier López GitHub profile",
"repo": "https://github.com/fjavierlh/fjavierlh.github.io",
"owner": {
"username": "fjavierlh",
"email": "fjavierlh@gmail.com"
},
"record": {
"CNAME": "fjavierlh.github.io",
"URL": "https://fjavierlh.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Ganesh Sekhar's Personal Portfolio",
"repo": "https://github.com/iamganeshsekhar/iamganeshsekhar.github.io",
"owner": {
"username": "iamganeshsekhar",
"email": "ganeshsekha6@gmail.com"
},
"record": {
"CNAME": "iamganeshsekhar.github.io",
"URL": "https://ganesh.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "George Aykara's personal developer website",
"repo": "https://github.com/aykarageorge",
"owner": {
"username": "aykarageorge",
"email": "aykarageorge@gmail.com"
},
"record": {
"CNAME": "george.aykara4.com"
}
}
+1 -1
View File
@@ -4,6 +4,6 @@
"email": "hello@gautamkrishnar.com"
},
"record": {
"A": ["185.224.138.125"]
"CNAME": "gautamkrishnar.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Harry-Ross",
"email": "hazross@hotmail.com"
},
"description": "Personal site/blog",
"repository": "https://github.com/Harry-Ross/harry-ross.github.io.git",
"record": {
"CNAME": "harry-ross.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Haseena's website",
"repo": "https://github.com/haseena-hassan/is-a-dev",
"owner": {
"username": "haseena-hassan",
"email": "haseena2199@gmail.com"
},
"record": {
"CNAME": "haseena-hassan.github.io",
"URL": "https://haseena.is-a.dev"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"description": "Hemanth's developer portfolio",
"repo": "https://github.com/Hemanthwarrier/hemanth.github.io",
"owner": {
"username": "Hemanthwarrier",
"email": "hemanthwarrier@gmail.com"
},
"record": {
"CNAME": "Hemanthwarrier.github.io",
"URL": "https://hemanth.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "hjmao.is-a.dev",
"repo": "https://github.com/huajianmao/huajianmao.github.io",
"owner": {
"username": "huajianmao",
"email": "huajianmao@gmail.com"
},
"record": {
"CNAME": "huajianmao.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "The domain will be used for a new version of my portfolio site, later in a future :)",
"repo": "https://github.com/Nagellan/Portfolio-v2",
"owner": {
"username": "Nagellan",
"email": "ireknazmievirek@gmail.com"
},
"record": {
"CNAME": "Nagellan.github.io",
"URL": "https://ireknazm.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "JaCkIsO is a Developer!",
"owner": {
"username": "JaCkIsO",
"email": "jackisodev@gmail.com"
},
"record": {
"CNAME": "JaCkIsO.github.io",
"URL": "https://jackiso.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Kaguwo's Personal Website",
"owner": {
"username": "kaguwomin",
"email": "business@kaguwo.com"
},
"record": {
"CNAME": "kaguwo.com",
"URL": "https://kaguwo.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "My very own is a dev domain for github pages",
"repo": "https://github.com/kiranhart/kiranhart.github.io",
"owner": {
"username": "kiranhart",
"email": "kiran.hart@live.com"
},
"record": {
"CNAME": "kiranhart.github.io",
"URL": "https://kiran.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Lacti's blog",
"repo": "https://github.com/lacti/lacti.github.io",
"owner": {
"username": "lacti",
"email": "lactrious@gmail.com"
},
"record": {
"CNAME": "lacti.github.io",
"URL": "https://lacti.is-a.dev"
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"repo": "https://github.com/LeonskiDev/leonskidev.github.io",
"description": "This is my portfolio website, if possible I'll also have bodged.is-a.dev as my blog.",
"owner": {
"username": "LeonskiDev",
"email": "bodged@pm.me"
},
"record": {
"CNAME": "leonskidev.github.io",
"URL": "https://leonskidev.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Lok's portfolio website",
"repo": "https://github.com/lokgubhaju/lokgubhaju.github.io",
"owner": {
"username": "lokgubhaju",
"email": "lok.gubhaju@gmail.com"
},
"record": {
"CNAME": "lokgubhaju.github.io",
"URL": "https://lok.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "m42e Homepage",
"repo": "https://github.com/m42e",
"owner": {
"username": "m42e",
"email": "matthias@bilger.info"
},
"record": {
"CNAME": "bilger.info",
"URL": "https://m42e.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Madhan's portfolio",
"repo": "https://github.com/madhank93/madhank93.github.io",
"owner": {
"username": "madhank93",
"email": "madhankumaravelu93@gmail.com"
},
"record": {
"CNAME": "madhank93.github.io",
"URL": "https://madhan.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Masood Mohammad's Personal Website",
"repo": "https://github.com/masoodbinmohammad",
"owner": {
"username": "masoodbinmohammad",
"email": "masoodbinmohammad@hotmail.com"
},
"record": {
"CNAME": "masoodbinmohammad.github.io",
"URL": "https://masood.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "mklabs' website",
"repo": "https://github.com/mklabs/mklabs.github.com",
"owner": {
"username": "mklabs",
"email": "daniel.mickael@gmail.com"
},
"record": {
"CNAME": "mklabs.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Muchenski's personal developer website",
"repo": "https://github.com/HenriqueMuchenski/henriquemuchenski.github.io",
"owner": {
"username": "HenriqueMuchenski",
"email": "hjmuchenski@gmail.com"
},
"record": {
"CNAME": "henriquemuchenski.github.io",
"URL": "https://muchenski.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description" : "Nand's web",
"owner" : {
"username" : "nandkk05",
"email" : "nandkk07@gmail.com"
},
"record" : {
"CNAME" : "nandkk05.github.io",
"URL" : "https://nand.is-a.dev"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"owner": {
"username": "TheNoim",
"email": "nilsbergmann@noim.io"
},
"description": "Use as alias for noim.io (My private webpage)",
"record": {
"URL": "https://noim.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Nishant's website and blog",
"repo": "https://github.com/nishch/nishch.github.io",
"owner": {
"username": "nishch",
"email": "nishantchvedi@gmail.com"
},
"record": {
"CNAME": "twistedsoft.com",
"URL": "https://nishant.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "ParanoiaSystem's Domain",
"repo": "https://github.com/paranoiasystem/paranoiasystem.github.io",
"owner": {
"username": "paranoiasystem",
"email": "marcoferraioli@live.com"
},
"record": {
"CNAME": "paranoiasystem.github.io",
"URL": "https://paranoiasystem.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "YAY, new place for my Portfolio",
"repo": "https://github.com/parshnt",
"owner": {
"username": "parshnt",
"email": "hi.parshant@gmail.com"
},
"record": {
"CNAME": "parshnt.github.io",
"URL": "https://parshnt.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Peris's Portfolio",
"repo": "https://github.com/perisrai/perisrai.github.io",
"owner": {
"username": "perisrai",
"email": "perishrai@gmail.com"
},
"record": {
"CNAME": "perisrai.github.io",
"URL": "https://peris.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "cool stuff",
"repo": "https://github.com/ticklerick/ticklerick.github.io",
"owner": {
"username": "ticklerick",
"email": "pickle@anonemail.net"
},
"record": {
"CNAME": "ticklerick.github.io",
"URL": "https://picklerick.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Rahul's personal developer website",
"repo": "https://github.com/rahuldahal",
"owner": {
"username": "rahuldahal",
"email": "rdaahal@gmail.com"
},
"record": {
"CNAME": "rahuldahal.com.np",
"URL": "https://rahul.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Rusiru Anupama is a Dev",
"repo": "https://github.com/sparkstark03/register",
"owner": {
"username": "sparkstark03",
"email": "rusirurasanjana@gmail.com"
},
"record": {
"CNAME": "sparkstark03.github.io",
"URL": "https://rusiru.is-a.dev"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"description": "Sailesh's Personal Website",
"owner": {
"username": "saileshbro",
"email": "saileshbro@gmail.com"
},
"record": {
"CNAME": "saileshbro.github.io"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Sandeep's personal website",
"owner": {
"username": "SandeepVattapparambil",
"email": "sandeepv68@gmail.com"
},
"record": {
"CNAME": "sandeepv.in",
"URL": "https://sandeepv.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Sarath's Website",
"repo": "https://github.com/Sharkaboi/sharkaboi.github.io",
"owner": {
"username": "Sharkaboi",
"email": "sarathsedu@gmail.com"
},
"record": {
"CNAME": "sharkaboi.github.io",
"URL": "https://sarath.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Full Stack Software Engineer",
"repo": "https://github.com/shajanjp/shajanjp.github.io",
"owner": {
"username": "shajanjp",
"email": "shajanjp@gmail.com"
},
"record": {
"CNAME": "shajanjp.github.io",
"URL": "https://shajanjp.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Shane Vandegrift, a friendly fullstack developer",
"repo": "https://github.com/vandesm14/vandesm14.github.io",
"owner": {
"username": "Vandesm14",
"email": "vandesm14@gmail.com"
},
"record": {
"CNAME": "vandesm14.github.io",
"URL": "https://shane.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Social media website project.",
"repo": "https://github.com/thesct22",
"owner": {
"username": "thesct22",
"email": "sharathct22@gmail.com"
},
"record": {
"CNAME": "thesct22.github.io",
"URL": "http://sharath.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Frontend Developer Siful",
"repo": "https://github.com/sifulbd/sifulbd.github.io",
"owner": {
"username": "sifulbd",
"email": "sifulweb@gmail.com"
},
"record": {
"CNAME": "sifulbd.github.io",
"URL": "https://siful.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "My Site",
"repo": "https://github.com/snaildos",
"owner": {
"username": "snaildos",
"email": ""
},
"record": {
"CNAME": "snaildos.tk",
"URL": "https://snaildos.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Sumedhaa's Portfolio",
"repo": "https://github.com/misticorion/misticorion.github.io",
"owner": {
"username": "misticorion",
"email": "mistic.orion@gmail.com"
},
"record": {
"CNAME": "misticorion.github.io",
"URL": "https://sumedhaa.is-a.dev"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "sycured",
"email": "sycured@protonmail.com"
},
"record": {
"URL": "https://sycured.com"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Tharindu's personal developer website",
"repo": "https://github.com/tharindusathis/tharindu",
"owner": {
"username": "tharindusathis",
"email": "tharindu.sathis@gmail.com"
},
"record": {
"CNAME": "tharindu.vercel.app",
"URL": "https://tharindu.is-a.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"description": "Tim is a Dev",
"owner": {
"username": "xorob0",
"email": "xorob0@toum"
},
"repo": "https://github.com/xorob0/register",
"record": {
"CNAME": "toum.me"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "A-Tokyo's website",
"repo": "https://github.com/a-tokyo/tokyo",
"owner": {
"username": "a-tokyo",
"email": "ahmed.tokyo1@gmail.com"
},
"record": {
"CNAME": "a-tokyo.github.io",
"URL": "https://tokyo.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "Yuksel Beyti's personal developer website",
"repo": "https://github.com/yuks/yuks.github.io",
"owner": {
"username": "yuks",
"email": "admin@yukselbeyti.com"
},
"record": {
"CNAME": "yuks.github.io",
"URL": "https://yuksel.is-a.dev"
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"description": "My Github pages portfolio",
"repo": "https://github.com/YAOfficial/portfolio/tree/gh-pages",
"owner": {
"username": "YAOfficial",
"email": "yahumble1@gmail.com"
},
"record": {
"CNAME": "yaofficial.github.io",
"URL": "https://yusuf.is-a.dev"
}
}
+30
View File
@@ -0,0 +1,30 @@
const fs = require('fs');
const path = require('path');
const R = require('ramda');
const { DOMAINS_PATH } = require('./utils/constants');
const migrate = ([file, domain]) => [
file,
{
...domain,
record: /\.github\.io$/.test(domain.record.CNAME || '')
? R.dissoc('URL', domain.record)
: domain.record,
}
];
const main = async () => {
const domains = await fs.promises.readdir(DOMAINS_PATH).then(R.map(async file => [
file,
JSON.parse(await fs.promises.readFile(path.join(DOMAINS_PATH, file), 'utf-8')),
])).then(ps => Promise.all(ps));
const newDomains = domains.map(migrate);
await Promise.all(newDomains.map(([file, json]) => {
return fs.promises.writeFile(path.join(DOMAINS_PATH, file), JSON.stringify(json, null, 2));
}));
};
main();
+1 -1
View File
@@ -11,7 +11,7 @@ If your domain points to a server you own, add \`domain-name.is-a.dev\` to your
* Open up the **settings** tab
* Scroll down to the **Github pages** section
* In the **Custom domain** text input, enter the domain you registered (\`domain-name.is-a.dev\`)
* Check the 'Enforce HTTPS' check box if you added the URL record for forced https redirection
* Check the 'Enforce HTTPS' checkbox below the input
* Give it some time to reflect and you should be good to go
+4
View File
@@ -31,9 +31,13 @@ describe('validateDomainData', () => {
})),
{ ...defaultDomain, record: { CNAME: 'sd', A: ['121,3213'] } },
{ ...defaultDomain, record: { A: ['121', '12'], FOOBAR: ['sd'] } },
{ ...defaultDomain, record: { A: [] } },
{ ...defaultDomain, record: { A: ['11122'], URL: 'foobar' } },
{ ...defaultDomain, owner: {}, },
{ ...defaultDomain, owner: { username: 'hwelo', }, },
{ ...defaultDomain, owner: { email: 'hwelo' }, },
{ ...defaultDomain, record: { CNAME: 'http://foobar.com' } },
{ ...defaultDomain, record: { CNAME: 'https://foobar.com' } },
];
const validCases = [
+1 -1
View File
@@ -9,7 +9,7 @@ const recordToRedirection = ({ name, address }) => ({
redirect: address,
type: 'permanent',
redirect_wildcard: 1,
redirect_www: 0,
redirect_www: 1,
});
const recordToZone = ({ name, type, address, ...rec }) => ({
...rec, //line
+13 -6
View File
@@ -17,6 +17,7 @@ const getDomains = () =>
})));
const between = (min, max) => num => num >= min && num <= max;
const testRegex = regex => str => !!(str && str.match(regex));
const validate = pattern => data => R.compose(
invalidPairs => invalidPairs.length ? { errors: invalidPairs, valid: false } : { errors: [], valid: true },
@@ -24,9 +25,15 @@ const validate = pattern => data => R.compose(
R.toPairs,
)(pattern);
const validateNameRecord = type => R.allPass([
const validateCnameRecord = key => R.allPass([
R.propSatisfies(R.is(String), key),
R.compose(R.equals(1), R.length, R.reject(R.equals('URL')), R.keys),
R.propSatisfies(R.is(String), type),
R.propSatisfies(R.complement(testRegex(/^https?:\/\//ig)), key),
]);
const validateARecord = key => R.allPass([
R.compose(R.equals(1), R.length, R.keys),
R.propSatisfies(R.compose(R.gte(R.__, 1), R.length), key),
]);
const validateDomainData = validate({
@@ -36,7 +43,7 @@ const validateDomainData = validate({
R.equals('@'),
R.allPass([
R.compose(between(2, 100), R.length),
str => str && str.match(/^[a-z0-9\-]+$/ig),
testRegex(/^[a-z0-9\-]+$/g),
])
]),
},
@@ -54,13 +61,13 @@ const validateDomainData = validate({
]),
},
record: {
reason: 'Invalid record',
reason: 'Invalid record. CNAME records have to be a host name and A records has to be a list of ips',
fn: R.allPass([
R.is(Object),
R.compose(R.isEmpty, R.flip(R.difference)(VALID_RECORD_TYPES), R.keys),
R.cond([
[R.prop('CNAME'), validateNameRecord('CNAME')],
[R.prop('A'), R.propSatisfies(R.is(Array), 'A')],
[R.prop('CNAME'), validateCnameRecord('CNAME')],
[R.prop('A'), validateARecord('A')],
[R.prop('URL'), R.propSatisfies(R.is(String), 'URL')],
[R.T, R.T],
]),