diff --git a/packages/freesewing.dev/:w b/packages/freesewing.dev/:w deleted file mode 100644 index 97f476e4b93..00000000000 --- a/packages/freesewing.dev/:w +++ /dev/null @@ -1,54 +0,0 @@ -import NextLink from 'next/link' - -const Link = ({ href, txt }) => ( - - {txt} - -) - - -const social = { - Discord: 'https://discord.freesewing.org/', - Instagram: 'https://instagram.com/freesewing_org', - Facebook: 'https://www.facebook.com/groups/627769821272714/', - Reddit: 'https://www.reddit.com/r/freesewing/', - Twitter: 'https://twitter.com/freesewing_org', -} - - -const Footer = ({ app }) => { - return ( - - ) -} - -export default Footer - diff --git a/packages/freesewing.dev/components/footer.js b/packages/freesewing.dev/components/footer.js index 6a3302dec9e..aa5c8292237 100644 --- a/packages/freesewing.dev/components/footer.js +++ b/packages/freesewing.dev/components/footer.js @@ -1,12 +1,17 @@ import NextLink from 'next/link' import Logo from 'shared/components/logos/freesewing.js' +import contributors from 'site/prebuild/allcontributors.js' +import patrons from 'site/prebuild/patrons.js' +import OsiLogo from 'shared/components/logos/osi.js' +import CreativeCommonsLogo from 'shared/components/logos/cc.js' +import CcByLogo from 'shared/components/logos/cc-by.js' const Link = ({ href, txt }) => ( {txt} ) -const link = "text-secondary font-bold hover:pointer hover:underline" +const link = "text-secondary font-bold hover:pointer hover:underline px-1" const social = { Discord: 'https://discord.freesewing.org/', @@ -17,66 +22,133 @@ const social = { Twitter: 'https://twitter.com/freesewing_org', } - -const Footer = ({ app }) => { - return ( - +) export default Footer diff --git a/packages/freesewing.dev/prebuild/allcontributors.js b/packages/freesewing.dev/prebuild/allcontributors.js new file mode 100644 index 00000000000..088684953ce --- /dev/null +++ b/packages/freesewing.dev/prebuild/allcontributors.js @@ -0,0 +1,700 @@ +export default [ + { + "login": "joostdecock", + "name": "Joost De Cock", + "avatar_url": "https://avatars.githubusercontent.com/u/1708494?v=4", + "profile": "https://joost.at/", + "contributions": [ + "maintenance" + ] + }, + { + "login": "starfetch", + "name": "starfetch", + "avatar_url": "https://avatars.githubusercontent.com/u/80041179?v=4", + "profile": "https://github.com/starfetch", + "contributions": [ + "code", + "doc", + "translation", + "design" + ] + }, + { + "login": "lucibytes", + "name": "Lucian", + "avatar_url": "https://avatars.githubusercontent.com/u/77203781?v=4", + "profile": "https://github.com/lucibytes", + "contributions": [ + "eventOrganizing" + ] + }, + { + "login": "tangerineshark", + "name": "Karen", + "avatar_url": "https://avatars.githubusercontent.com/u/70777269?v=4", + "profile": "https://github.com/tangerineshark", + "contributions": [ + "doc", + "eventOrganizing" + ] + }, + { + "login": "woutervdub", + "name": "Wouter van Wageningen", + "avatar_url": "https://avatars.githubusercontent.com/u/24414629?v=4", + "profile": "https://github.com/woutervdub", + "contributions": [ + "code", + "design", + "tool" + ] + }, + { + "login": "bobgeorgethe3rd", + "name": "bobgeorgethe3rd", + "avatar_url": "https://avatars.githubusercontent.com/u/16866285?v=4", + "profile": "https://github.com/bobgeorgethe3rd", + "contributions": [ + "code", + "doc", + "design" + ] + }, + { + "login": "sannek", + "name": "Sanne", + "avatar_url": "https://avatars.githubusercontent.com/u/17491062?v=4", + "profile": "https://github.com/sannek", + "contributions": [ + "code", + "doc" + ] + }, + { + "login": "hellgy", + "name": "hellgy", + "avatar_url": "https://avatars.githubusercontent.com/u/6494414?v=4", + "profile": "https://weblog.redisdead.net", + "contributions": [ + "design" + ] + }, + { + "login": "biou", + "name": "biou", + "avatar_url": "https://avatars.githubusercontent.com/u/1340376?v=4", + "profile": "https://github.com/biou", + "contributions": [ + "code" + ] + }, + { + "login": "chri5b", + "name": "chri5b", + "avatar_url": "https://avatars.githubusercontent.com/u/2373249?v=4", + "profile": "http://www.chrisbarrett.fr", + "contributions": [ + "code", + "test" + ] + }, + { + "login": "ephphatha", + "name": "Andrew James", + "avatar_url": "https://avatars.githubusercontent.com/u/357684?v=4", + "profile": "http://thelettereph.com", + "contributions": [ + "doc" + ] + }, + { + "login": "AlfaLyr", + "name": "AlfaLyr", + "avatar_url": "https://avatars.githubusercontent.com/u/39273729?v=4", + "profile": "https://github.com/AlfaLyr", + "contributions": [ + "code", + "plugin", + "design" + ] + }, + { + "login": "destos", + "name": "Patrick Forringer", + "avatar_url": "https://avatars.githubusercontent.com/u/136456?v=4", + "profile": "https://pat.forringer.com/", + "contributions": [ + "plugin" + ] + }, + { + "login": "nataliasayang", + "name": "Natalia", + "avatar_url": "https://avatars.githubusercontent.com/u/48160791?v=4", + "profile": "https://github.com/nataliasayang", + "contributions": [ + "code", + "design", + "blog" + ] + }, + { + "login": "kieranklaassen", + "name": "Kieran Klaassen", + "avatar_url": "https://avatars.githubusercontent.com/u/209089?v=4", + "profile": "http://www.kieranklaassen.com/", + "contributions": [ + "code" + ] + }, + { + "login": "jejacks0n", + "name": "Jeremy Jackson", + "avatar_url": "https://avatars.githubusercontent.com/u/13765?v=4", + "profile": "https://github.com/jejacks0n", + "contributions": [ + "code" + ] + }, + { + "login": "DocSpencer77", + "name": "gaylyndie", + "avatar_url": "https://avatars.githubusercontent.com/u/43393580?v=4", + "profile": "https://github.com/DocSpencer77", + "contributions": [ + "doc" + ] + }, + { + "login": "bankair", + "name": "Alexandre Ignjatovic", + "avatar_url": "https://avatars.githubusercontent.com/u/365999?v=4", + "profile": "http://polymerisation-des-concepts.fr/", + "contributions": [ + "code" + ] + }, + { + "login": "darigovresearch", + "name": "Darigov Research", + "avatar_url": "https://avatars.githubusercontent.com/u/30328618?v=4", + "profile": "https://www.darigovresearch.com/", + "contributions": [ + "doc", + "ideas" + ] + }, + { + "login": "sorchanidhubhghaill", + "name": "Prof. dr. Sorcha Ní Dhubhghaill", + "avatar_url": "https://avatars.githubusercontent.com/u/30624634?v=4", + "profile": "https://www.uza.be/persoon/prof-dr-sorcha-ni-dhubhghaill", + "contributions": [ + "doc" + ] + }, + { + "login": "forresto", + "name": "Forrest O.", + "avatar_url": "https://avatars.githubusercontent.com/u/395307?v=4", + "profile": "https://www.forresto.com/", + "contributions": [ + "doc" + ] + }, + { + "login": "TriploidTree", + "name": "Tríona", + "avatar_url": "https://avatars.githubusercontent.com/u/4170521?v=4", + "profile": "https://github.com/TriploidTree", + "contributions": [ + "doc" + ] + }, + { + "login": "woolishboy", + "name": "woolishboy", + "avatar_url": "https://avatars.githubusercontent.com/u/57816321?v=4", + "profile": "https://github.com/woolishboy", + "contributions": [ + "code" + ] + }, + { + "login": "ttimearl", + "name": "ttimearl", + "avatar_url": "https://avatars.githubusercontent.com/u/77916590?v=4", + "profile": "https://github.com/ttimearl", + "contributions": [ + "content" + ] + }, + { + "login": "grimlokason", + "name": "grimlokason", + "avatar_url": "https://avatars.githubusercontent.com/u/5112238?v=4", + "profile": "https://github.com/grimlokason", + "contributions": [ + "code" + ] + }, + { + "login": "nadege", + "name": "Nadege Michel", + "avatar_url": "https://avatars.githubusercontent.com/u/3792171?v=4", + "profile": "https://github.com/nadege", + "contributions": [ + "test", + "doc" + ] + }, + { + "login": "geeksam", + "name": "Sam Livingston-Gray", + "avatar_url": "https://avatars.githubusercontent.com/u/6462?v=4", + "profile": "http://resume.livingston-gray.com/faq.html", + "contributions": [ + "doc" + ] + }, + { + "login": "kapunahelewong", + "name": "Kapunahele Wong", + "avatar_url": "https://avatars.githubusercontent.com/u/4116963?v=4", + "profile": "https://twitter.com/kapunahele", + "contributions": [ + "doc" + ] + }, + { + "login": "joshessman", + "name": "Josh Essman", + "avatar_url": "https://avatars.githubusercontent.com/u/9941074?v=4", + "profile": "https://github.com/joshessman", + "contributions": [ + "doc" + ] + }, + { + "login": "valadaptive", + "name": "valadaptive", + "avatar_url": "https://avatars.githubusercontent.com/u/79560998?v=4", + "profile": "https://github.com/valadaptive", + "contributions": [ + "code" + ] + }, + { + "login": "martintribo", + "name": "Martin Tribo", + "avatar_url": "https://avatars.githubusercontent.com/u/1613442?v=4", + "profile": "https://github.com/martintribo", + "contributions": [ + "doc" + ] + }, + { + "login": "phillipthelen", + "name": "Phillip Thelen", + "avatar_url": "https://avatars.githubusercontent.com/u/298062?v=4", + "profile": "https://github.com/phillipthelen", + "contributions": [ + "code" + ] + }, + { + "login": "amysews", + "name": "amysews", + "avatar_url": "https://avatars.githubusercontent.com/u/25280778?v=4", + "profile": "https://github.com/amysews", + "contributions": [ + "doc" + ] + }, + { + "login": "Slylele", + "name": "Slylele", + "avatar_url": "https://avatars.githubusercontent.com/u/57619777?v=4", + "profile": "https://www.instagram.com/celine_mge/", + "contributions": [ + "doc", + "translation" + ] + }, + { + "login": "ElenaFdR", + "name": "Elena FdR", + "avatar_url": "https://avatars.githubusercontent.com/u/5113815?v=4", + "profile": "https://github.com/ElenaFdR", + "contributions": [ + "doc", + "blog" + ] + }, + { + "login": "camerondubas", + "name": "Cameron Dubas", + "avatar_url": "https://avatars.githubusercontent.com/u/6216460?v=4", + "profile": "https://github.com/camerondubas", + "contributions": [ + "doc" + ] + }, + { + "login": "KakeLP", + "name": "Kake", + "avatar_url": "https://avatars.githubusercontent.com/u/1956810?v=4", + "profile": "http://www.earth.li/~kake/", + "contributions": [ + "doc" + ] + }, + { + "login": "Anternative", + "name": "Anternative", + "avatar_url": "https://avatars.githubusercontent.com/u/81079850?v=4", + "profile": "https://github.com/Anternative", + "contributions": [ + "doc" + ] + }, + { + "login": "mcgnly", + "name": "Katie McGinley", + "avatar_url": "https://avatars.githubusercontent.com/u/5653631?v=4", + "profile": "https://github.com/mcgnly", + "contributions": [ + "doc" + ] + }, + { + "login": "enyachoke", + "name": "Emmanuel Nyachoke", + "avatar_url": "https://avatars.githubusercontent.com/u/1908926?v=4", + "profile": "https://emmanuelnyachoke.com/", + "contributions": [ + "code", + "doc" + ] + }, + { + "login": "econo202", + "name": "econo202", + "avatar_url": "https://avatars.githubusercontent.com/u/34138153?v=4", + "profile": "https://github.com/econo202", + "contributions": [ + "doc" + ] + }, + { + "login": "chrisgloom", + "name": "tuesgloomsday", + "avatar_url": "https://avatars.githubusercontent.com/u/15905991?v=4", + "profile": "https://github.com/chrisgloom", + "contributions": [ + "doc" + ] + }, + { + "login": "annekecaramin", + "name": "Anneke", + "avatar_url": "https://avatars.githubusercontent.com/u/38046191?v=4", + "profile": "https://github.com/annekecaramin", + "contributions": [ + "doc", + "translation" + ] + }, + { + "login": "cloutiy", + "name": "yc", + "avatar_url": "https://avatars.githubusercontent.com/u/8433147?v=4", + "profile": "https://github.com/cloutiy", + "contributions": [ + "translation" + ] + }, + { + "login": "fightingrabbit", + "name": "fightingrabbit", + "avatar_url": "https://avatars.githubusercontent.com/u/25751445?v=4", + "profile": "https://github.com/fightingrabbit", + "contributions": [ + "code" + ] + }, + { + "login": "QuentinFelix", + "name": "Quentin FELIX", + "avatar_url": "https://avatars.githubusercontent.com/u/5288091?v=4", + "profile": "https://github.com/QuentinFelix", + "contributions": [ + "code", + "design" + ] + }, + { + "login": "nyergler", + "name": "Nathan Yergler", + "avatar_url": "https://avatars.githubusercontent.com/u/510875?v=4", + "profile": "http://yergler.net/", + "contributions": [ + "doc" + ] + }, + { + "login": "cabi", + "name": "Carsten Biebricher", + "avatar_url": "https://avatars.githubusercontent.com/u/2596253?v=4", + "profile": "https://github.com/cabi", + "contributions": [ + "doc" + ] + }, + { + "login": "Kittycatou", + "name": "Kittycatou", + "avatar_url": "https://avatars.githubusercontent.com/u/48165583?v=4", + "profile": "https://github.com/Kittycatou", + "contributions": [ + "translation" + ] + }, + { + "login": "Pixieish", + "name": "Pixieish", + "avatar_url": "https://avatars.githubusercontent.com/u/32991415?v=4", + "profile": "https://github.com/Pixieish", + "contributions": [ + "doc" + ] + }, + { + "login": "kristinruben", + "name": "Kristin Ruben", + "avatar_url": "https://avatars.githubusercontent.com/u/17237479?v=4", + "profile": "https://github.com/kristinruben", + "contributions": [ + "code" + ] + }, + { + "login": "Soazillon", + "name": "Soazillon", + "avatar_url": "https://avatars.githubusercontent.com/u/40845940?v=4", + "profile": "https://github.com/Soazillon", + "contributions": [ + "translation" + ] + }, + { + "login": "ericamattos", + "name": "ericamattos", + "avatar_url": "https://avatars.githubusercontent.com/u/4341417?v=4", + "profile": "https://github.com/ericamattos", + "contributions": [ + "translation" + ] + }, + { + "login": "berce", + "name": "berce", + "avatar_url": "https://avatars.githubusercontent.com/u/10439709?v=4", + "profile": "https://github.com/berce", + "contributions": [ + "doc" + ] + }, + { + "login": "manufakturedelweiss", + "name": "Marcus", + "avatar_url": "https://avatars.githubusercontent.com/u/38063391?v=4", + "profile": "https://github.com/manufakturedelweiss", + "contributions": [ + "translation" + ] + }, + { + "login": "PD75", + "name": "Paul", + "avatar_url": "https://avatars.githubusercontent.com/u/10294795?v=4", + "profile": "http://pd75.github.io/", + "contributions": [ + "doc", + "blog", + "translation" + ] + }, + { + "login": "EvEkSwed", + "name": "EvEkSwed", + "avatar_url": "https://avatars.githubusercontent.com/u/39723451?v=4", + "profile": "https://github.com/EvEkSwed", + "contributions": [ + "translation" + ] + }, + { + "login": "viocky", + "name": "viocky", + "avatar_url": "https://avatars.githubusercontent.com/u/39279173?v=4", + "profile": "https://github.com/viocky", + "contributions": [ + "translation" + ] + }, + { + "login": "Joebidido", + "name": "Joebidido", + "avatar_url": "https://avatars.githubusercontent.com/u/39796210?v=4", + "profile": "https://github.com/Joebidido", + "contributions": [ + "translation" + ] + }, + { + "login": "dingcycle", + "name": "dingcycle", + "avatar_url": "https://avatars.githubusercontent.com/u/1681985?v=4", + "profile": "https://github.com/dingcycle", + "contributions": [ + "translation" + ] + }, + { + "login": "web-goddess", + "name": "Kris", + "avatar_url": "https://avatars.githubusercontent.com/u/5946286?v=4", + "profile": "https://www.krishoward.org/", + "contributions": [ + "doc" + ] + }, + { + "login": "Fantastik-Maman", + "name": "Fantastik-Maman", + "avatar_url": "https://avatars.githubusercontent.com/u/39785382?v=4", + "profile": "https://github.com/Fantastik-Maman", + "contributions": [ + "translation" + ] + }, + { + "login": "AdamRTomkins", + "name": "Adam Tomkins", + "avatar_url": "https://avatars.githubusercontent.com/u/5709603?v=4", + "profile": "http://adamrtomkins.github.io/", + "contributions": [ + "doc" + ] + }, + { + "login": "dpiquet", + "name": "Damien PIQUET", + "avatar_url": "https://avatars.githubusercontent.com/u/4688628?v=4", + "profile": "https://github.com/dpiquet", + "contributions": [ + "code" + ] + }, + { + "login": "brmlyklr", + "name": "brmlyklr", + "avatar_url": "https://avatars.githubusercontent.com/u/22308713?v=4", + "profile": "https://github.com/brmlyklr", + "contributions": [ + "doc" + ] + }, + { + "login": "Loudepeuter", + "name": "Loudepeuter", + "avatar_url": "https://avatars.githubusercontent.com/u/38081954?v=4", + "profile": "https://github.com/Loudepeuter", + "contributions": [ + "translation" + ] + }, + { + "login": "stsydow", + "name": "Stefan Sydow", + "avatar_url": "https://avatars.githubusercontent.com/u/961256?v=4", + "profile": "http://metafly.info/", + "contributions": [ + "translation" + ] + }, + { + "login": "beautifulsummermoon", + "name": "beautifulsummermoon", + "avatar_url": "https://avatars.githubusercontent.com/u/40396388?v=4", + "profile": "https://github.com/beautifulsummermoon", + "contributions": [ + "translation" + ] + }, + { + "login": "Chantalbijoux", + "name": "Chantal Lapointe", + "avatar_url": "https://avatars.githubusercontent.com/u/39673694?v=4", + "profile": "https://github.com/Chantalbijoux", + "contributions": [ + "translation" + ] + }, + { + "login": "Irapeke", + "name": "Irapeke", + "avatar_url": "https://avatars.githubusercontent.com/u/39604334?v=4", + "profile": "https://github.com/Irapeke", + "contributions": [ + "translation" + ] + }, + { + "login": "marckiesel", + "name": "marckiesel", + "avatar_url": "https://avatars.githubusercontent.com/u/39653780?v=4", + "profile": "https://github.com/marckiesel", + "contributions": [ + "translation" + ] + }, + { + "login": "theUnmutual", + "name": "Unmutual", + "avatar_url": "https://avatars.githubusercontent.com/u/22374635?v=4", + "profile": "https://github.com/theUnmutual", + "contributions": [ + "doc" + ] + }, + { + "login": "cathyzoller", + "name": "Cathy Zoller", + "avatar_url": "https://avatars.githubusercontent.com/u/2120275?v=4", + "profile": "https://github.com/cathyzoller", + "contributions": [ + "doc" + ] + }, + { + "login": "jsawo", + "name": "Jacek Sawoszczuk", + "avatar_url": "https://avatars.githubusercontent.com/u/1294706?v=4", + "profile": "https://github.com/jsawo", + "contributions": [ + "doc" + ] + }, + { + "login": "Quiltmaster", + "name": "Anthony", + "avatar_url": "https://avatars.githubusercontent.com/u/71795777?v=4", + "profile": "https://github.com/Quiltmaster", + "contributions": [ + "question" + ] + } +] \ No newline at end of file diff --git a/packages/freesewing.dev/prebuild/patrons.js b/packages/freesewing.dev/prebuild/patrons.js new file mode 100644 index 00000000000..2b087cd3b7f --- /dev/null +++ b/packages/freesewing.dev/prebuild/patrons.js @@ -0,0 +1,872 @@ +export default [ + { + "hande": "huxtc", + "username": "AMarks", + "img": "https://static.freesewing.org/users/h/huxtc/huxtc.svg" + }, + { + "hande": "qwfoh", + "username": "Balsko", + "img": "https://static.freesewing.org/users/q/qwfoh/qwfoh.svg" + }, + { + "hande": "owtpj", + "username": "Barbara", + "img": "https://static.freesewing.org/users/o/owtpj/owtpj.svg" + }, + { + "hande": "inooe", + "username": "BobTinsley", + "img": "https://static.freesewing.org/users/i/inooe/s-inooe.jpeg" + }, + { + "hande": "ugdgn", + "username": "DawsonUK", + "img": "https://static.freesewing.org/users/u/ugdgn/s-ugdgn.png" + }, + { + "hande": "xdwao", + "username": "Doombucket", + "img": "https://static.freesewing.org/users/x/xdwao/xdwao.svg" + }, + { + "hande": "iztxp", + "username": "F T R", + "img": "https://static.freesewing.org/users/i/iztxp/s-iztxp.jpg" + }, + { + "hande": "lqfhj", + "username": "Jane-Ana", + "img": "https://static.freesewing.org/users/l/lqfhj/s-lqfhj.jpeg" + }, + { + "hande": "vkmrr", + "username": "Juona", + "img": "https://static.freesewing.org/users/v/vkmrr/s-vkmrr.jpeg" + }, + { + "hande": "nbiod", + "username": "KB", + "img": "https://static.freesewing.org/users/n/nbiod/s-nbiod.jpeg" + }, + { + "hande": "pwrga", + "username": "Lorna", + "img": "https://static.freesewing.org/users/p/pwrga/pwrga.svg" + }, + { + "hande": "wregv", + "username": "Pear_yne", + "img": "https://static.freesewing.org/users/w/wregv/s-wregv.jpeg" + }, + { + "hande": "cupdd", + "username": "SLY91300", + "img": "https://static.freesewing.org/users/c/cupdd/s-cupdd.jpeg" + }, + { + "hande": "tngvg", + "username": "Susan", + "img": "https://static.freesewing.org/users/t/tngvg/s-tngvg.jpeg" + }, + { + "hande": "xbbwb", + "username": "Suzerphone", + "img": "https://static.freesewing.org/users/x/xbbwb/s-xbbwb.png" + }, + { + "hande": "uznnk", + "username": "Toast", + "img": "https://static.freesewing.org/users/u/uznnk/s-uznnk.jpeg" + }, + { + "hande": "ceuyd", + "username": "alliejones", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "rglmh", + "username": "borgem", + "img": "https://static.freesewing.org/users/r/rglmh/rglmh.svg" + }, + { + "hande": "gnefm", + "username": "buster", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "adfpz", + "username": "charity", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "qqcew", + "username": "colorjoy", + "img": "https://static.freesewing.org/users/q/qqcew/qqcew.svg" + }, + { + "hande": "muxrj", + "username": "desaturatedsilver", + "img": "https://static.freesewing.org/users/m/muxrj/s-muxrj.jpeg" + }, + { + "hande": "pwavh", + "username": "didecibel", + "img": "https://static.freesewing.org/users/p/pwavh/s-pwavh.png" + }, + { + "hande": "dcxas", + "username": "enyachoke", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "gwlhi", + "username": "evan", + "img": "https://static.freesewing.org/users/g/gwlhi/s-gwlhi.png" + }, + { + "hande": "tbqve", + "username": "ferdi", + "img": "https://static.freesewing.org/users/t/tbqve/s-tbqve.png" + }, + { + "hande": "eibul", + "username": "gxwalsh", + "img": "https://static.freesewing.org/users/e/eibul/s-eibul.jpeg" + }, + { + "hande": "hhafv", + "username": "hyangwoo", + "img": "https://static.freesewing.org/users/h/hhafv/hhafv.svg" + }, + { + "hande": "vtgkv", + "username": "imagine", + "img": "https://static.freesewing.org/users/v/vtgkv/s-vtgkv.jpeg" + }, + { + "hande": "whskz", + "username": "jonmac", + "img": "https://static.freesewing.org/users/w/whskz/s-whskz.jpg" + }, + { + "hande": "tbpsr", + "username": "kfvera", + "img": "https://static.freesewing.org/users/t/tbpsr/s-tbpsr.jpg" + }, + { + "hande": "ezcng", + "username": "klynne6559", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "wxtsn", + "username": "lamprini", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "pjbna", + "username": "lennonnel", + "img": "https://static.freesewing.org/users/p/pjbna/s-pjbna.jpeg" + }, + { + "hande": "yrvll", + "username": "magdalena", + "img": "https://static.freesewing.org/users/y/yrvll/s-yrvll.jpeg" + }, + { + "hande": "miwuf", + "username": "magdalena_addams", + "img": "https://static.freesewing.org/users/m/miwuf/s-miwuf.jpeg" + }, + { + "hande": "qmrxh", + "username": "massagewise", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "xntmh", + "username": "mattwilding", + "img": "https://static.freesewing.org/users/x/xntmh/s-xntmh.jpg" + }, + { + "hande": "nzfdg", + "username": "nellucoj", + "img": "https://static.freesewing.org/users/n/nzfdg/s-nzfdg.jpeg" + }, + { + "hande": "bquij", + "username": "oceanblue222", + "img": "https://static.freesewing.org/users/b/bquij/s-bquij.png" + }, + { + "hande": "vxzkn", + "username": "pascaledaubry08", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "nxgvo", + "username": "racerxmachina", + "img": "https://static.freesewing.org/users/n/nxgvo/s-nxgvo.jpg" + }, + { + "hande": "rzuqd", + "username": "raispaddy", + "img": "https://static.freesewing.org/users/r/rzuqd/s-rzuqd.jpeg" + }, + { + "hande": "dxfmr", + "username": "rene", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "aqgvd", + "username": "rrmf", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "etkfz", + "username": "scavecilla", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "bxdwz", + "username": "sjhocart", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "nbazf", + "username": "snipandsew", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "iwawl", + "username": "snowbot", + "img": "https://static.freesewing.org/users/i/iwawl/s-iwawl.jpeg" + }, + { + "hande": "teawv", + "username": "sshelagh", + "img": "https://static.freesewing.org/users/t/teawv/s-teawv.jpg" + }, + { + "hande": "atzkm", + "username": "tjlynch45", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "hdhvc", + "username": "user-hdhvc", + "img": "https://static.freesewing.org/users/h/hdhvc/hdhvc.svg" + }, + { + "hande": "nmwqw", + "username": "user-nmwqw", + "img": "https://static.freesewing.org/users/n/nmwqw/nmwqw.svg" + }, + { + "hande": "qbscx", + "username": "user-qbscx", + "img": "https://static.freesewing.org/users/q/qbscx/qbscx.svg" + }, + { + "hande": "uwccr", + "username": "user-u27thLancerwccr", + "img": "https://static.freesewing.org/users/u/uwccr/uwccr.svg" + }, + { + "hande": "zddut", + "username": "user-zddut", + "img": "https://static.freesewing.org/users/z/zddut/zddut.svg" + }, + { + "hande": "zcrxy", + "username": "user1043", + "img": "https://static.freesewing.org/users/z/zcrxy/s-zcrxy.jpg" + }, + { + "hande": "zygwe", + "username": "user1246", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "gmphz", + "username": "user3898", + "img": "https://static.freesewing.org/users/g/gmphz/s-gmphz.jpg" + }, + { + "hande": "yfhts", + "username": "user545", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "rqkyt", + "username": "user686", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "uxvys", + "username": "watersong", + "img": "https://static.freesewing.org/users/u/uxvys/s-uxvys.jpg" + }, + { + "hande": "ejpvi", + "username": "Baroque_Badger", + "img": "https://static.freesewing.org/users/e/ejpvi/s-ejpvi.jpeg" + }, + { + "hande": "lckiw", + "username": "Beedhul", + "img": "https://static.freesewing.org/users/l/lckiw/lckiw.svg" + }, + { + "hande": "ytkgg", + "username": "Cherry", + "img": "https://static.freesewing.org/users/y/ytkgg/ytkgg.svg" + }, + { + "hande": "lwsul", + "username": "Chrysalis", + "img": "https://static.freesewing.org/users/l/lwsul/lwsul.svg" + }, + { + "hande": "etczo", + "username": "Daiji", + "img": "https://static.freesewing.org/users/e/etczo/s-etczo.jpeg" + }, + { + "hande": "sqwba", + "username": "DragonsSecondThought", + "img": "https://static.freesewing.org/users/s/sqwba/s-sqwba.jpeg" + }, + { + "hande": "gngoz", + "username": "GoinWild", + "img": "https://static.freesewing.org/users/g/gngoz/s-gngoz.jpeg" + }, + { + "hande": "cywko", + "username": "Haute NTX", + "img": "https://static.freesewing.org/users/c/cywko/s-cywko.jpg" + }, + { + "hande": "tspvw", + "username": "JoeJoe", + "img": "https://static.freesewing.org/users/t/tspvw/s-tspvw.jpeg" + }, + { + "hande": "pytvz", + "username": "Mariz", + "img": "https://static.freesewing.org/users/p/pytvz/s-pytvz.jpeg" + }, + { + "hande": "ebpho", + "username": "MichaelJ01902", + "img": "https://static.freesewing.org/users/e/ebpho/ebpho.svg" + }, + { + "hande": "dbtyr", + "username": "Prowxima", + "img": "https://static.freesewing.org/users/d/dbtyr/s-dbtyr.jpeg" + }, + { + "hande": "wlbni", + "username": "Reid", + "img": "https://static.freesewing.org/users/w/wlbni/wlbni.svg" + }, + { + "hande": "kdaqb", + "username": "Skinnywinny", + "img": "https://static.freesewing.org/users/k/kdaqb/kdaqb.svg" + }, + { + "hande": "uktqh", + "username": "Stümperin", + "img": "https://static.freesewing.org/users/u/uktqh/s-uktqh.jpeg" + }, + { + "hande": "taudq", + "username": "Wolf", + "img": "https://static.freesewing.org/users/t/taudq/s-taudq.jpg" + }, + { + "hande": "geshh", + "username": "Wolfgang", + "img": "https://static.freesewing.org/users/g/geshh/geshh.svg" + }, + { + "hande": "vavvp", + "username": "Zachary Pascoe", + "img": "https://static.freesewing.org/users/v/vavvp/s-vavvp.png" + }, + { + "hande": "uhkvn", + "username": "aeg178", + "img": "https://static.freesewing.org/users/u/uhkvn/s-uhkvn.jpg" + }, + { + "hande": "xmkes", + "username": "ajquiltmaker", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "dkkpv", + "username": "alyssaduran", + "img": "https://static.freesewing.org/users/d/dkkpv/s-dkkpv.jpeg" + }, + { + "hande": "mieuh", + "username": "artsyhonker", + "img": "https://static.freesewing.org/users/m/mieuh/s-mieuh.jpeg" + }, + { + "hande": "zpbkf", + "username": "arwelgo", + "img": "https://static.freesewing.org/users/z/zpbkf/s-zpbkf.jpg" + }, + { + "hande": "ygqui", + "username": "bdiddy4521", + "img": "https://static.freesewing.org/users/y/ygqui/ygqui.svg" + }, + { + "hande": "ndcut", + "username": "brenda", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "xtczr", + "username": "dr.jam.jenkins", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "ztvus", + "username": "englishgirlathome", + "img": "https://static.freesewing.org/users/z/ztvus/s-ztvus.jpg" + }, + { + "hande": "qchnf", + "username": "erika", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "vrqtu", + "username": "flaminsaganaki", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "bposp", + "username": "gaylyndie", + "img": "https://static.freesewing.org/users/b/bposp/s-bposp.png" + }, + { + "hande": "ngedc", + "username": "gucu", + "img": "https://static.freesewing.org/users/n/ngedc/s-ngedc.jpg" + }, + { + "hande": "rapoq", + "username": "hellgy", + "img": "https://static.freesewing.org/users/r/rapoq/s-rapoq.jpeg" + }, + { + "hande": "ekyxp", + "username": "inge", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "eulae", + "username": "inlimbo", + "img": "https://static.freesewing.org/users/e/eulae/s-eulae.jpeg" + }, + { + "hande": "ksxuf", + "username": "ipedrazas", + "img": "https://static.freesewing.org/users/k/ksxuf/s-ksxuf.png" + }, + { + "hande": "tqsvx", + "username": "james", + "img": "https://static.freesewing.org/users/t/tqsvx/s-tqsvx.jpeg" + }, + { + "hande": "msnex", + "username": "jessie", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "fwztq", + "username": "juliancordell", + "img": "https://static.freesewing.org/users/f/fwztq/s-fwztq.jpg" + }, + { + "hande": "qtedw", + "username": "lianne", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "gfzxs", + "username": "martypage", + "img": "https://static.freesewing.org/users/g/gfzxs/s-gfzxs.jpg" + }, + { + "hande": "olxig", + "username": "msdoss", + "img": "https://static.freesewing.org/users/o/olxig/s-olxig.jpeg" + }, + { + "hande": "zmfnh", + "username": "nutmeg_makes", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "fxuwx", + "username": "pattilandia", + "img": "https://static.freesewing.org/users/f/fxuwx/fxuwx.svg" + }, + { + "hande": "vuhks", + "username": "paull", + "img": "https://static.freesewing.org/users/v/vuhks/s-vuhks.png" + }, + { + "hande": "rarfr", + "username": "pingpong", + "img": "https://static.freesewing.org/users/r/rarfr/s-rarfr.jpeg" + }, + { + "hande": "mrbdh", + "username": "pixie", + "img": "https://static.freesewing.org/users/m/mrbdh/s-mrbdh.png" + }, + { + "hande": "bwtvm", + "username": "poliel", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "zysgx", + "username": "prittystitches", + "img": "https://static.freesewing.org/users/z/zysgx/s-zysgx.jpg" + }, + { + "hande": "qurfq", + "username": "rad.disco", + "img": "https://static.freesewing.org/users/q/qurfq/s-qurfq.jpeg" + }, + { + "hande": "sbugt", + "username": "riversstjohn", + "img": "https://static.freesewing.org/users/s/sbugt/s-sbugt.jpg" + }, + { + "hande": "rgeiy", + "username": "simonhenry", + "img": "https://static.freesewing.org/users/r/rgeiy/s-rgeiy.jpeg" + }, + { + "hande": "gtszd", + "username": "starfetch", + "img": "https://static.freesewing.org/users/g/gtszd/s-gtszd.png" + }, + { + "hande": "cnilw", + "username": "sterling421", + "img": "https://static.freesewing.org/users/c/cnilw/cnilw.svg" + }, + { + "hande": "dyrkc", + "username": "tacha0610", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "gmvaz", + "username": "textilewitches", + "img": "https://static.freesewing.org/users/g/gmvaz/s-gmvaz.jpg" + }, + { + "hande": "okdoa", + "username": "urmomza", + "img": "https://static.freesewing.org/users/o/okdoa/okdoa.svg" + }, + { + "hande": "esada", + "username": "user-esada", + "img": "https://static.freesewing.org/users/e/esada/esada.svg" + }, + { + "hande": "fyuzx", + "username": "user-fyuzx", + "img": "https://static.freesewing.org/users/f/fyuzx/fyuzx.svg" + }, + { + "hande": "jqnyt", + "username": "user-jqnyt", + "img": "https://static.freesewing.org/users/j/jqnyt/jqnyt.svg" + }, + { + "hande": "uuswo", + "username": "user-maria", + "img": "https://static.freesewing.org/users/u/uuswo/s-uuswo.jpeg" + }, + { + "hande": "ranqf", + "username": "user458", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "ersdc", + "username": "user51", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "hncfw", + "username": "user6307", + "img": "https://static.freesewing.org/users/h/hncfw/s-hncfw.jpeg" + }, + { + "hande": "rbcqn", + "username": "veronikau", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "rmxtg", + "username": "wildfiredragon", + "img": "https://static.freesewing.org/users/r/rmxtg/s-rmxtg.png" + }, + { + "hande": "rpxrc", + "username": "An", + "img": "https://static.freesewing.org/users/r/rpxrc/s-rpxrc.jpeg" + }, + { + "hande": "hztas", + "username": "DustyFoot", + "img": "https://static.freesewing.org/users/h/hztas/hztas.svg" + }, + { + "hande": "tazbx", + "username": "Kada1987", + "img": "https://static.freesewing.org/users/t/tazbx/s-tazbx.jpg" + }, + { + "hande": "kgyah", + "username": "KatePeach", + "img": "https://static.freesewing.org/users/k/kgyah/s-kgyah.jpeg" + }, + { + "hande": "yvimj", + "username": "Liesbeth", + "img": "https://static.freesewing.org/users/y/yvimj/s-yvimj.jpeg" + }, + { + "hande": "acznm", + "username": "LoveTeachSew", + "img": "https://static.freesewing.org/users/a/acznm/s-acznm.png" + }, + { + "hande": "uauok", + "username": "NENE83130", + "img": "https://static.freesewing.org/users/u/uauok/s-uauok.png" + }, + { + "hande": "pgncq", + "username": "Oxford Seamster", + "img": "https://static.freesewing.org/users/p/pgncq/s-pgncq.png" + }, + { + "hande": "fmfyh", + "username": "Underdev82", + "img": "https://static.freesewing.org/users/f/fmfyh/s-fmfyh.jpeg" + }, + { + "hande": "qdopj", + "username": "Zachariahlebaron", + "img": "https://static.freesewing.org/users/q/qdopj/s-qdopj.jpeg" + }, + { + "hande": "qfeyh", + "username": "amamama", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "ceqyt", + "username": "annekecaramin", + "img": "https://static.freesewing.org/users/c/ceqyt/s-ceqyt.jpg" + }, + { + "hande": "frpni", + "username": "ashleynorth", + "img": "https://static.freesewing.org/users/f/frpni/s-frpni.jpg" + }, + { + "hande": "tiayx", + "username": "awaywesew", + "img": "https://static.freesewing.org/users/t/tiayx/s-tiayx.jpeg" + }, + { + "hande": "pxnfk", + "username": "bookandneedle", + "img": "https://static.freesewing.org/users/p/pxnfk/s-pxnfk.jpg" + }, + { + "hande": "fdief", + "username": "chetungwan", + "img": "https://static.freesewing.org/users/f/fdief/s-fdief.png" + }, + { + "hande": "nvurp", + "username": "deb", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "khavd", + "username": "garykfc", + "img": "https://static.freesewing.org/users/k/khavd/s-khavd.jpg" + }, + { + "hande": "utshp", + "username": "genski", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "nzwqk", + "username": "jacqueline", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "kedmw", + "username": "joaoao", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "sxkgq", + "username": "johng", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "vqynm", + "username": "jonaaron", + "img": "https://static.freesewing.org/users/v/vqynm/s-vqynm.jpeg" + }, + { + "hande": "joost", + "username": "joost", + "img": "https://static.freesewing.org/users/j/joost/s-joost.jpeg" + }, + { + "hande": "fyzba", + "username": "kevin", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "amjge", + "username": "lazymeadow", + "img": "https://static.freesewing.org/users/a/amjge/s-amjge.png" + }, + { + "hande": "umnag", + "username": "levifiction", + "img": "https://static.freesewing.org/users/u/umnag/s-umnag.jpeg" + }, + { + "hande": "yegrg", + "username": "mathias", + "img": "https://static.freesewing.org/users/y/yegrg/s-yegrg.jpeg" + }, + { + "hande": "clrqj", + "username": "mcr109", + "img": "https://static.freesewing.org/users/c/clrqj/clrqj.svg" + }, + { + "hande": "qswxd", + "username": "meliforpresident", + "img": "https://static.freesewing.org/users/q/qswxd/s-qswxd.jpeg" + }, + { + "hande": "haqbm", + "username": "mikael", + "img": "https://static.freesewing.org/users/h/haqbm/s-haqbm.jpg" + }, + { + "hande": "shqza", + "username": "netpraxis", + "img": "https://static.freesewing.org/users/s/shqza/s-shqza.jpg" + }, + { + "hande": "nxevw", + "username": "nyergler", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "cbmwu", + "username": "schiusano", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "chomp", + "username": "scorch2", + "img": "https://static.freesewing.org/users/c/chomp/s-chomp.jpg" + }, + { + "hande": "curma", + "username": "sew mojo", + "img": "https://static.freesewing.org/users/c/curma/curma.svg" + }, + { + "hande": "rtfum", + "username": "sewannsew", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "axytf", + "username": "stoffsuchti", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "hgkyw", + "username": "the_curvy_sewist", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "uaexn", + "username": "tinkgineer", + "img": "https://static.freesewing.org/users/u/uaexn/s-uaexn.png" + }, + { + "hande": "mxfwe", + "username": "topstitched", + "img": "https://freesewing.org/avatar.svg" + }, + { + "hande": "rbdpy", + "username": "user-SGA", + "img": "https://static.freesewing.org/users/r/rbdpy/s-rbdpy.jpeg" + }, + { + "hande": "gdhiv", + "username": "user-gdhiv", + "img": "https://static.freesewing.org/users/g/gdhiv/gdhiv.svg" + }, + { + "hande": "kelcf", + "username": "user-kelcf", + "img": "https://static.freesewing.org/users/k/kelcf/kelcf.svg" + }, + { + "hande": "pedoh", + "username": "user-pedoh", + "img": "https://static.freesewing.org/users/p/pedoh/pedoh.svg" + }, + { + "hande": "mvfde", + "username": "wilma", + "img": "https://static.freesewing.org/users/m/mvfde/s-mvfde.jpg" + }, + { + "hande": "xdpug", + "username": "wouter.vdub", + "img": "https://static.freesewing.org/users/x/xdpug/s-xdpug.jpg" + } +] \ No newline at end of file diff --git a/packages/freesewing.dev/public/brands/algolia.svg b/packages/freesewing.dev/public/brands/algolia.svg new file mode 100644 index 00000000000..ab6ae5ab524 --- /dev/null +++ b/packages/freesewing.dev/public/brands/algolia.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/freesewing.dev/public/brands/bugsnag.svg b/packages/freesewing.dev/public/brands/bugsnag.svg new file mode 100644 index 00000000000..8abd9ff4ebf --- /dev/null +++ b/packages/freesewing.dev/public/brands/bugsnag.svg @@ -0,0 +1,15 @@ + + + + + + + diff --git a/packages/freesewing.dev/public/brands/crowdin.svg b/packages/freesewing.dev/public/brands/crowdin.svg new file mode 100644 index 00000000000..bbfe90540be --- /dev/null +++ b/packages/freesewing.dev/public/brands/crowdin.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + diff --git a/packages/freesewing.dev/public/brands/netlify.svg b/packages/freesewing.dev/public/brands/netlify.svg new file mode 100644 index 00000000000..8d306be6fb6 --- /dev/null +++ b/packages/freesewing.dev/public/brands/netlify.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/freesewing.dev/public/vercel.svg b/packages/freesewing.dev/public/vercel.svg deleted file mode 100644 index fbf0e25a651..00000000000 --- a/packages/freesewing.dev/public/vercel.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/freesewing.shared/components/logos/cc-by.js b/packages/freesewing.shared/components/logos/cc-by.js new file mode 100644 index 00000000000..05a30619928 --- /dev/null +++ b/packages/freesewing.shared/components/logos/cc-by.js @@ -0,0 +1,7 @@ +const CcByLogo = ({ color='currentColor' }) => ( + + + +) + +export default CcByLogo diff --git a/packages/freesewing.shared/components/logos/cc.js b/packages/freesewing.shared/components/logos/cc.js new file mode 100644 index 00000000000..267ca1d2f6e --- /dev/null +++ b/packages/freesewing.shared/components/logos/cc.js @@ -0,0 +1,7 @@ +const CreativeCommonsLogo = ({ color='currentColor' }) => ( + + + +) + +export default CreativeCommonsLogo diff --git a/packages/freesewing.shared/components/logos/osi.js b/packages/freesewing.shared/components/logos/osi.js new file mode 100644 index 00000000000..9a1b71fcbf3 --- /dev/null +++ b/packages/freesewing.shared/components/logos/osi.js @@ -0,0 +1,7 @@ +const OsiLogo = ({ color='currentColor' }) => ( + + + +) + +export default OsiLogo diff --git a/packages/freesewing.shared/prebuild/contributors.mjs b/packages/freesewing.shared/prebuild/contributors.mjs new file mode 100644 index 00000000000..743399747b7 --- /dev/null +++ b/packages/freesewing.shared/prebuild/contributors.mjs @@ -0,0 +1,25 @@ +import path from 'path' +import fs from 'fs' + +/* + * Main method that does what needs doing + */ +export const prebuildContributors = async(site) => { + + // Say hi + console.log() + console.log(`Prebuilding contributor list for freesewing.${site}`) + + // Read from rc file + const contributors = JSON.parse(fs.readFileSync( + path.resolve('..', '..', '.all-contributorsrc'), + 'utf-8' + )) + + // Write to json + fs.writeFileSync( + path.resolve('..', `freesewing.${site}`, 'prebuild', `allcontributors.js`), + `export default ${JSON.stringify(contributors.contributors, null ,2)}` + ) +} + diff --git a/packages/freesewing.shared/prebuild/index.mjs b/packages/freesewing.shared/prebuild/index.mjs index 17e1b73385a..d1efd83d5bf 100644 --- a/packages/freesewing.shared/prebuild/index.mjs +++ b/packages/freesewing.shared/prebuild/index.mjs @@ -1,6 +1,8 @@ import { prebuildMdx } from './mdx.mjs' import { prebuildStrapi } from './strapi.mjs' import { prebuildNavigation } from './navigation.mjs' +import { prebuildContributors } from './contributors.mjs' +import { prebuildPatrons } from './patrons.mjs' const SITE = process.env.SITE @@ -8,6 +10,8 @@ const run = async () => { const mdxPages = await prebuildMdx(SITE) const [posts, authors] = await prebuildStrapi(SITE) await prebuildNavigation(mdxPages, posts, SITE) + await prebuildContributors(SITE) + await prebuildPatrons(SITE) console.log() } diff --git a/packages/freesewing.shared/prebuild/patrons.mjs b/packages/freesewing.shared/prebuild/patrons.mjs new file mode 100644 index 00000000000..1f324afa3cf --- /dev/null +++ b/packages/freesewing.shared/prebuild/patrons.mjs @@ -0,0 +1,29 @@ +import path from 'path' +import fs from 'fs' +import axios from 'axios' + +/* + * Main method that does what needs doing + */ +export const prebuildPatrons = async(site) => { + + // Say hi + console.log() + console.log(`Prebuilding patron list for freesewing.${site}`) + + const patrons = await axios.get('https://backend.freesewing.org/patrons') + if (patrons?.data) { + const list = [ + ...patrons.data['2'].map(p => ({hande: p.handle, username: p.username, img: p.pictureUris.s })), + ...patrons.data['4'].map(p => ({hande: p.handle, username: p.username, img: p.pictureUris.s })), + ...patrons.data['8'].map(p => ({hande: p.handle, username: p.username, img: p.pictureUris.s })), + ] + + // Write to json + fs.writeFileSync( + path.resolve('..', `freesewing.${site}`, 'prebuild', `patrons.js`), + `export default ${JSON.stringify(list, null ,2)}` + ) + } +} +