mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-06 23:59:37 +02:00
Fix avatar fetching
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
"dompurify",
|
"dompurify",
|
||||||
"edgechromium",
|
"edgechromium",
|
||||||
"elkjs",
|
"elkjs",
|
||||||
|
"esno",
|
||||||
"faber",
|
"faber",
|
||||||
"flatmap",
|
"flatmap",
|
||||||
"ftplugin",
|
"ftplugin",
|
||||||
@@ -50,10 +51,12 @@
|
|||||||
"grav",
|
"grav",
|
||||||
"greywolf",
|
"greywolf",
|
||||||
"huynh",
|
"huynh",
|
||||||
|
"huynhicode",
|
||||||
"inkdrop",
|
"inkdrop",
|
||||||
"jaoude",
|
"jaoude",
|
||||||
"jgreywolf",
|
"jgreywolf",
|
||||||
"jison",
|
"jison",
|
||||||
|
"jiti",
|
||||||
"kaufmann",
|
"kaufmann",
|
||||||
"khroma",
|
"khroma",
|
||||||
"klemm",
|
"klemm",
|
||||||
@@ -79,6 +82,7 @@
|
|||||||
"mult",
|
"mult",
|
||||||
"ohmyfetch",
|
"ohmyfetch",
|
||||||
"orlandoni",
|
"orlandoni",
|
||||||
|
"pathe",
|
||||||
"pbrolin",
|
"pbrolin",
|
||||||
"phpbb",
|
"phpbb",
|
||||||
"plantuml",
|
"plantuml",
|
||||||
@@ -119,6 +123,7 @@
|
|||||||
"vinod",
|
"vinod",
|
||||||
"visio",
|
"visio",
|
||||||
"vitepress",
|
"vitepress",
|
||||||
|
"vueuse",
|
||||||
"xlink",
|
"xlink",
|
||||||
"yash"
|
"yash"
|
||||||
],
|
],
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
// generated by unplugin-vue-components
|
/* eslint-disable */
|
||||||
// We suggest you to commit this file into source control
|
/* prettier-ignore */
|
||||||
|
// @ts-nocheck
|
||||||
|
// Generated by unplugin-vue-components
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
import '@vue/runtime-core'
|
import '@vue/runtime-core'
|
||||||
|
|
||||||
|
@@ -5,48 +5,55 @@
|
|||||||
"tylerlong",
|
"tylerlong",
|
||||||
"ashishjain0512",
|
"ashishjain0512",
|
||||||
"weedySeaDragon",
|
"weedySeaDragon",
|
||||||
|
"aloisklink",
|
||||||
"mmorel-35",
|
"mmorel-35",
|
||||||
"GDFaber",
|
"GDFaber",
|
||||||
"aloisklink",
|
|
||||||
"klemmchr",
|
"klemmchr",
|
||||||
"jgreywolf",
|
"jgreywolf",
|
||||||
"cmmoran",
|
"cmmoran",
|
||||||
"Yash-Singh1",
|
"Yash-Singh1",
|
||||||
"IOrlandoni",
|
"IOrlandoni",
|
||||||
"raghur",
|
"raghur",
|
||||||
|
"pbrolin47",
|
||||||
"SeanKilleen",
|
"SeanKilleen",
|
||||||
"erelling",
|
"erelling",
|
||||||
"spopida",
|
"spopida",
|
||||||
"emersonbottero",
|
"emersonbottero",
|
||||||
"bjowes",
|
"bjowes",
|
||||||
|
"huynhicode",
|
||||||
"Andre601",
|
"Andre601",
|
||||||
"dbartholomae",
|
"dbartholomae",
|
||||||
"gibson042",
|
"gibson042",
|
||||||
"pbrolin47",
|
|
||||||
"chrismoran-bkt",
|
"chrismoran-bkt",
|
||||||
"abzicht",
|
"abzicht",
|
||||||
"gwincr11",
|
"gwincr11",
|
||||||
"mearns",
|
"mearns",
|
||||||
"spier",
|
"spier",
|
||||||
"BastianZim",
|
"BastianZim",
|
||||||
|
"JeremyFunk",
|
||||||
|
"remcohaszing",
|
||||||
|
"Billiam",
|
||||||
"devcer",
|
"devcer",
|
||||||
"sagea",
|
"sagea",
|
||||||
"DKurilo",
|
"DKurilo",
|
||||||
"gijswijs",
|
"gijswijs",
|
||||||
"timmaffett",
|
"timmaffett",
|
||||||
|
"tomperr",
|
||||||
"pinghe",
|
"pinghe",
|
||||||
"ciekawy",
|
"ciekawy",
|
||||||
"lexmin0412",
|
"lexmin0412",
|
||||||
|
"karistom",
|
||||||
"koljatm-edeka",
|
"koljatm-edeka",
|
||||||
"notquiterussell",
|
"notquiterussell",
|
||||||
"spect88",
|
"spect88",
|
||||||
"huynhicode",
|
"oleveau",
|
||||||
|
"ted-marozzi",
|
||||||
"dany74q",
|
"dany74q",
|
||||||
"johnnywalker",
|
"johnnywalker",
|
||||||
"72636c",
|
"72636c",
|
||||||
"therzka",
|
"therzka",
|
||||||
"fardog",
|
"fardog",
|
||||||
"Mogztter",
|
"ggrossetie",
|
||||||
"bollwyvl",
|
"bollwyvl",
|
||||||
"adamwulf",
|
"adamwulf",
|
||||||
"elliot-nelson",
|
"elliot-nelson",
|
||||||
@@ -56,8 +63,9 @@
|
|||||||
"flying-sheep",
|
"flying-sheep",
|
||||||
"vallsv",
|
"vallsv",
|
||||||
"Xstoudi",
|
"Xstoudi",
|
||||||
|
"lishid",
|
||||||
"arpansaha13",
|
"arpansaha13",
|
||||||
"Some-Dood",
|
"BastiDood",
|
||||||
"DanShai",
|
"DanShai",
|
||||||
"LarryKlugerDS",
|
"LarryKlugerDS",
|
||||||
"MasonM",
|
"MasonM",
|
||||||
@@ -65,7 +73,6 @@
|
|||||||
"sechel",
|
"sechel",
|
||||||
"swoyam2609",
|
"swoyam2609",
|
||||||
"abhijeet-pathak",
|
"abhijeet-pathak",
|
||||||
"lishid",
|
|
||||||
"eajenkins",
|
"eajenkins",
|
||||||
"harshilparmar",
|
"harshilparmar",
|
||||||
"Guy-Adler",
|
"Guy-Adler",
|
||||||
@@ -79,35 +86,42 @@
|
|||||||
"keenanjt33",
|
"keenanjt33",
|
||||||
"lf-novelt",
|
"lf-novelt",
|
||||||
"faisalarbain",
|
"faisalarbain",
|
||||||
|
"Will-Low",
|
||||||
"cm-wada-yusuke",
|
"cm-wada-yusuke",
|
||||||
"ymgch",
|
"ymgch",
|
||||||
"yutotnh",
|
"yutotnh",
|
||||||
"arnaud-zg",
|
"arnaud-zg",
|
||||||
"BD103",
|
"BD103",
|
||||||
|
"Mister-Hope",
|
||||||
|
"Omerr",
|
||||||
"Aniket1026",
|
"Aniket1026",
|
||||||
|
"bish0polis",
|
||||||
"CalebUsadi",
|
"CalebUsadi",
|
||||||
"gene1wood",
|
"gene1wood",
|
||||||
"gillesdemey",
|
"gillesdemey",
|
||||||
|
"jeroen-ekkelkamp",
|
||||||
|
"josh-bouganim-avant",
|
||||||
"JoshSharpe",
|
"JoshSharpe",
|
||||||
"heyfirst",
|
"heyfirst",
|
||||||
"knuts-ic",
|
"knuts-ic",
|
||||||
|
"kshitijsaksena",
|
||||||
"loris-intergalactique",
|
"loris-intergalactique",
|
||||||
"lindseywild",
|
"lindseywild",
|
||||||
"tmatz",
|
"tmatz",
|
||||||
"mahomedalid",
|
"mahomedalid",
|
||||||
"doble-eme",
|
"doble-eme",
|
||||||
"Mister-Hope",
|
|
||||||
"MrCoder",
|
"MrCoder",
|
||||||
"pbendersky",
|
"pbendersky",
|
||||||
|
"Pr0dt0s",
|
||||||
"Rutorai",
|
"Rutorai",
|
||||||
"ThanasisMpalatsoukas",
|
"ThanasisMpalatsoukas",
|
||||||
"thomasleveil",
|
"thomasleveil",
|
||||||
"tomperr",
|
|
||||||
"husa",
|
"husa",
|
||||||
"abeaton",
|
"abeaton",
|
||||||
"anugs",
|
"anugs",
|
||||||
"ginomempin",
|
"ginomempin",
|
||||||
"lilisha100",
|
"lilisha100",
|
||||||
|
"nekikara",
|
||||||
"nothingismagick",
|
"nothingismagick",
|
||||||
"phairow",
|
"phairow",
|
||||||
"deining",
|
"deining",
|
||||||
@@ -117,17 +131,20 @@
|
|||||||
"vijay40",
|
"vijay40",
|
||||||
"0xflotus",
|
"0xflotus",
|
||||||
"AndreasVolkmann",
|
"AndreasVolkmann",
|
||||||
|
"andrew-clarkson",
|
||||||
"ashsearle",
|
"ashsearle",
|
||||||
"bish0polis",
|
|
||||||
"DawMatt",
|
"DawMatt",
|
||||||
"frankschmitt",
|
"frankschmitt",
|
||||||
|
"guilhermgonzaga",
|
||||||
"ggpasqualino",
|
"ggpasqualino",
|
||||||
"hrgui",
|
"hrgui",
|
||||||
"IanLee1521",
|
"IanLee1521",
|
||||||
"jbednar",
|
"jbednar",
|
||||||
"jdavis61",
|
"jdavis61",
|
||||||
"jayvdb",
|
"jayvdb",
|
||||||
|
"jonabc",
|
||||||
"jbronson-sf",
|
"jbronson-sf",
|
||||||
|
"lauraceconi",
|
||||||
"lorint",
|
"lorint",
|
||||||
"MindaugasLaganeckas",
|
"MindaugasLaganeckas",
|
||||||
"u-minor",
|
"u-minor",
|
||||||
@@ -139,29 +156,32 @@
|
|||||||
"larkinscott",
|
"larkinscott",
|
||||||
"The-Alchemist",
|
"The-Alchemist",
|
||||||
"TomWright",
|
"TomWright",
|
||||||
|
"LeoDog896",
|
||||||
"tshepang",
|
"tshepang",
|
||||||
"Vrixyz",
|
"Vrixyz",
|
||||||
"sinedied",
|
"sinedied",
|
||||||
"yonasb",
|
"yonasb",
|
||||||
"Zer0n0mask",
|
"Zer0n0mask",
|
||||||
|
"luin",
|
||||||
"brookhong",
|
"brookhong",
|
||||||
|
"Jeff-Tian",
|
||||||
"edumicse",
|
"edumicse",
|
||||||
|
"eitsupi",
|
||||||
"ilmari-lauhakangas",
|
"ilmari-lauhakangas",
|
||||||
"jasmaa",
|
"jasmaa",
|
||||||
"sy-records",
|
"sy-records",
|
||||||
"uttk",
|
"uttk",
|
||||||
"el-mapache",
|
"el-mapache",
|
||||||
"bigred8982",
|
"bigred8982",
|
||||||
"imgss",
|
|
||||||
"Joxtacy",
|
"Joxtacy",
|
||||||
"mrmanc",
|
"mrmanc",
|
||||||
"riaanduplessis",
|
|
||||||
"sylhare",
|
"sylhare",
|
||||||
"vikyaiyer",
|
"vikyaiyer",
|
||||||
"CollierCZ",
|
"CollierCZ",
|
||||||
"adutton",
|
"adutton",
|
||||||
"adam-hotait",
|
"adam-hotait",
|
||||||
"ameech",
|
"ameech",
|
||||||
|
"AielloChan",
|
||||||
"AlanHohn",
|
"AlanHohn",
|
||||||
"aledileo",
|
"aledileo",
|
||||||
"alexislefebvre",
|
"alexislefebvre",
|
||||||
@@ -185,9 +205,9 @@
|
|||||||
"Arthaey",
|
"Arthaey",
|
||||||
"AsaAyers",
|
"AsaAyers",
|
||||||
"bglnelissen",
|
"bglnelissen",
|
||||||
|
"Barry1",
|
||||||
"ben-page",
|
"ben-page",
|
||||||
"jawn",
|
"jawn",
|
||||||
"Billiam",
|
|
||||||
"xbojch",
|
"xbojch",
|
||||||
"craigmac",
|
"craigmac",
|
||||||
"hydrosquall",
|
"hydrosquall",
|
||||||
@@ -197,13 +217,16 @@
|
|||||||
"dodoinblue",
|
"dodoinblue",
|
||||||
"ctruelson",
|
"ctruelson",
|
||||||
"beaudry",
|
"beaudry",
|
||||||
|
"Odogwudozilla",
|
||||||
"ct-martin",
|
"ct-martin",
|
||||||
|
"Whoeza",
|
||||||
"Clint-Chester",
|
"Clint-Chester",
|
||||||
"connor4312",
|
"connor4312",
|
||||||
"DCsunset",
|
"DCsunset",
|
||||||
"activus-d",
|
"activus-d",
|
||||||
"DanInProgress",
|
"DanInProgress",
|
||||||
"egnor",
|
"egnor",
|
||||||
|
"cakemanny",
|
||||||
"Olshansk",
|
"Olshansk",
|
||||||
"danielsitnik",
|
"danielsitnik",
|
||||||
"dariuswiles",
|
"dariuswiles",
|
||||||
@@ -224,9 +247,12 @@
|
|||||||
"FabAlchemy",
|
"FabAlchemy",
|
||||||
"fregante",
|
"fregante",
|
||||||
"filipedeschamps",
|
"filipedeschamps",
|
||||||
|
"fkohrt",
|
||||||
"Foo-x",
|
"Foo-x",
|
||||||
"Frank-Mayer",
|
"Frank-Mayer",
|
||||||
|
"l2fprod",
|
||||||
"gwatts",
|
"gwatts",
|
||||||
|
"GavinPen",
|
||||||
"gnkm",
|
"gnkm",
|
||||||
"gjlubbertsen",
|
"gjlubbertsen",
|
||||||
"guidanoli",
|
"guidanoli",
|
||||||
@@ -234,9 +260,11 @@
|
|||||||
"H3RSKO",
|
"H3RSKO",
|
||||||
"hwine",
|
"hwine",
|
||||||
"HerbCaudill",
|
"HerbCaudill",
|
||||||
|
"LiHowe",
|
||||||
"TribalNightOwl",
|
"TribalNightOwl",
|
||||||
"hugovk",
|
"hugovk",
|
||||||
"jolting",
|
"jolting",
|
||||||
|
"imgss",
|
||||||
"ImanimalXI",
|
"ImanimalXI",
|
||||||
"ImgBotApp",
|
"ImgBotApp",
|
||||||
"imma90",
|
"imma90",
|
||||||
@@ -258,7 +286,7 @@
|
|||||||
"jinntrance",
|
"jinntrance",
|
||||||
"jmelfi",
|
"jmelfi",
|
||||||
"Qix-",
|
"Qix-",
|
||||||
"jmg-duarte",
|
"xuanxu",
|
||||||
"kahgoh",
|
"kahgoh",
|
||||||
"Schweinepriester",
|
"Schweinepriester",
|
||||||
"Kaligule",
|
"Kaligule",
|
||||||
@@ -269,6 +297,7 @@
|
|||||||
"kriskhaira",
|
"kriskhaira",
|
||||||
"kale-stew",
|
"kale-stew",
|
||||||
"Lance-DC",
|
"Lance-DC",
|
||||||
|
"Valentine14th",
|
||||||
"kciter",
|
"kciter",
|
||||||
"zaaath",
|
"zaaath",
|
||||||
"manicki",
|
"manicki",
|
||||||
@@ -287,19 +316,24 @@
|
|||||||
"ma-zal",
|
"ma-zal",
|
||||||
"mgaitan",
|
"mgaitan",
|
||||||
"mapio",
|
"mapio",
|
||||||
|
"mre",
|
||||||
"matteodelabre",
|
"matteodelabre",
|
||||||
"maxArturo",
|
"maxArturo",
|
||||||
"DavertMik",
|
"DavertMik",
|
||||||
"mgenereu",
|
"mgenereu",
|
||||||
"maiermic",
|
"maiermic",
|
||||||
|
"vorburger",
|
||||||
"magmax",
|
"magmax",
|
||||||
"quulah",
|
"quulah",
|
||||||
"mbostock",
|
"mbostock",
|
||||||
"Crocin",
|
"Crocin",
|
||||||
|
"natasha-jarus",
|
||||||
"elv-nate",
|
"elv-nate",
|
||||||
"NateChurch",
|
"NateChurch",
|
||||||
"gerardnico",
|
"gerardnico",
|
||||||
"NitinLodha2812",
|
"NitinLodha2812",
|
||||||
|
"Oliboy50",
|
||||||
|
"piradata",
|
||||||
"hype09",
|
"hype09",
|
||||||
"pje",
|
"pje",
|
||||||
"saulgajda",
|
"saulgajda",
|
||||||
@@ -310,6 +344,9 @@
|
|||||||
"reetghosh1",
|
"reetghosh1",
|
||||||
"renanlecaro",
|
"renanlecaro",
|
||||||
"Renfay007",
|
"Renfay007",
|
||||||
|
"riaanduplessis",
|
||||||
|
"RobertWeinmeister",
|
||||||
|
"rodja",
|
||||||
"wontonst",
|
"wontonst",
|
||||||
"RudolfMan",
|
"RudolfMan",
|
||||||
"SlideeScherz",
|
"SlideeScherz",
|
||||||
@@ -332,56 +369,24 @@
|
|||||||
"commai",
|
"commai",
|
||||||
"MetalBlueberry",
|
"MetalBlueberry",
|
||||||
"volkanunsal",
|
"volkanunsal",
|
||||||
|
"Julez404",
|
||||||
"yudenzel",
|
"yudenzel",
|
||||||
"uskey512",
|
"uskey512",
|
||||||
"zakhenry",
|
"zakhenry",
|
||||||
"abergquist",
|
"abergquist",
|
||||||
"JiChao99",
|
"JiChao99",
|
||||||
"aryandeelwal",
|
"aryandeelwal",
|
||||||
|
"atmikeguo",
|
||||||
"avijit1258",
|
"avijit1258",
|
||||||
"bby-bishopclark",
|
"bby-bishopclark",
|
||||||
"beriakomal",
|
"beriakomal",
|
||||||
|
"Bogay",
|
||||||
"bolshoytoster",
|
"bolshoytoster",
|
||||||
"chrismetz09",
|
"chrismetz09",
|
||||||
"christopherkade",
|
"christopherkade",
|
||||||
"tenuki",
|
"tenuki",
|
||||||
|
"dix",
|
||||||
"dkkb",
|
"dkkb",
|
||||||
"endolith",
|
"endolith",
|
||||||
"eel87",
|
"eel87"
|
||||||
"esphas",
|
|
||||||
"raptor0929",
|
|
||||||
"flywire",
|
|
||||||
"gkchic",
|
|
||||||
"gomlgs",
|
|
||||||
"hikerpig",
|
|
||||||
"hopoverflow",
|
|
||||||
"hughli-git",
|
|
||||||
"ishuen",
|
|
||||||
"it-sec-std",
|
|
||||||
"it0a",
|
|
||||||
"ivan-danilov",
|
|
||||||
"kerwin612",
|
|
||||||
"kuanyi-ng",
|
|
||||||
"laDanz",
|
|
||||||
"lgasp",
|
|
||||||
"mahimas28",
|
|
||||||
"may4everL",
|
|
||||||
"meganemura",
|
|
||||||
"monsterkrampe",
|
|
||||||
"mupple",
|
|
||||||
"mvandermade",
|
|
||||||
"penenkel",
|
|
||||||
"r-a-v-a-s",
|
|
||||||
"ryenus",
|
|
||||||
"alguerocode",
|
|
||||||
"siddhant-tripathy1",
|
|
||||||
"sifb",
|
|
||||||
"silverwind",
|
|
||||||
"wfnuser",
|
|
||||||
"chewnoill",
|
|
||||||
"znxkznxk1030",
|
|
||||||
"zepatrik",
|
|
||||||
"zephyraft",
|
|
||||||
"zwpaper",
|
|
||||||
"hetz"
|
|
||||||
]
|
]
|
@@ -16,7 +16,7 @@ export interface CoreTeam {
|
|||||||
// required to download avatars from GitHub
|
// required to download avatars from GitHub
|
||||||
github: string;
|
github: string;
|
||||||
twitter?: string;
|
twitter?: string;
|
||||||
mastodon?: string
|
mastodon?: string;
|
||||||
sponsor?: string;
|
sponsor?: string;
|
||||||
website?: string;
|
website?: string;
|
||||||
linkedIn?: string;
|
linkedIn?: string;
|
||||||
@@ -29,35 +29,32 @@ export interface CoreTeam {
|
|||||||
const contributorNames: string[] = contributorNamesJson;
|
const contributorNames: string[] = contributorNamesJson;
|
||||||
const contributorsAvatars: Record<string, string> = {};
|
const contributorsAvatars: Record<string, string> = {};
|
||||||
|
|
||||||
const getAvatarUrl = (name: string) =>
|
|
||||||
import.meta.hot ? `https://github.com/${name}.png` : `/user-avatars/${name}.png`;
|
|
||||||
|
|
||||||
export const contributors = (contributorNames as string[]).reduce((acc, name) => {
|
export const contributors = (contributorNames as string[]).reduce((acc, name) => {
|
||||||
contributorsAvatars[name] = getAvatarUrl(name)
|
contributorsAvatars[name] = `/user-avatars/${name}.png`;
|
||||||
acc.push({ name, avatar: contributorsAvatars[name] })
|
acc.push({ name, avatar: contributorsAvatars[name] });
|
||||||
return acc
|
return acc;
|
||||||
}, [] as Contributor[])
|
}, [] as Contributor[]);
|
||||||
|
|
||||||
const websiteSVG = {
|
const websiteSVG = {
|
||||||
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-globe"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>'
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-globe"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>',
|
||||||
}
|
};
|
||||||
|
|
||||||
const createLinks = (tm: CoreTeam): CoreTeam => {
|
const createLinks = (tm: CoreTeam): CoreTeam => {
|
||||||
tm.links = [{ icon: 'github', link: `https://github.com/${tm.github}` }]
|
tm.links = [{ icon: 'github', link: `https://github.com/${tm.github}` }];
|
||||||
if (tm.mastodon) {
|
if (tm.mastodon) {
|
||||||
tm.links.push({ icon: 'mastodon', link: tm.mastodon })
|
tm.links.push({ icon: 'mastodon', link: tm.mastodon });
|
||||||
}
|
}
|
||||||
if (tm.twitter) {
|
if (tm.twitter) {
|
||||||
tm.links.push({ icon: 'twitter', link: `https://twitter.com/${tm.twitter}` })
|
tm.links.push({ icon: 'twitter', link: `https://twitter.com/${tm.twitter}` });
|
||||||
}
|
}
|
||||||
if (tm.website) {
|
if (tm.website) {
|
||||||
tm.links.push({ icon: websiteSVG, link: tm.website })
|
tm.links.push({ icon: websiteSVG, link: tm.website });
|
||||||
}
|
}
|
||||||
if (tm.linkedIn) {
|
if (tm.linkedIn) {
|
||||||
tm.links.push({ icon: 'linkedin', link: `https://www.linkedin.com/in/${tm.linkedIn}` })
|
tm.links.push({ icon: 'linkedin', link: `https://www.linkedin.com/in/${tm.linkedIn}` });
|
||||||
}
|
}
|
||||||
return tm
|
return tm;
|
||||||
}
|
};
|
||||||
|
|
||||||
const plainTeamMembers: CoreTeam[] = [
|
const plainTeamMembers: CoreTeam[] = [
|
||||||
{
|
{
|
||||||
@@ -72,13 +69,13 @@ const plainTeamMembers: CoreTeam[] = [
|
|||||||
github: 'NeilCuzon',
|
github: 'NeilCuzon',
|
||||||
avatar: contributorsAvatars.NeilCuzon,
|
avatar: contributorsAvatars.NeilCuzon,
|
||||||
name: 'Neil Cuzon',
|
name: 'Neil Cuzon',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'tylerlong',
|
github: 'tylerlong',
|
||||||
avatar: contributorsAvatars.tylerlong,
|
avatar: contributorsAvatars.tylerlong,
|
||||||
name: 'Tyler Liu',
|
name: 'Tyler Liu',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'sidharthv96',
|
github: 'sidharthv96',
|
||||||
@@ -89,20 +86,20 @@ const plainTeamMembers: CoreTeam[] = [
|
|||||||
mastodon: 'https://techhub.social/@sidv',
|
mastodon: 'https://techhub.social/@sidv',
|
||||||
sponsor: 'https://github.com/sponsors/sidharthv96',
|
sponsor: 'https://github.com/sponsors/sidharthv96',
|
||||||
linkedIn: 'sidharth-vinod',
|
linkedIn: 'sidharth-vinod',
|
||||||
website: 'https://sidharth.dev'
|
website: 'https://sidharth.dev',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'ashishjain0512',
|
github: 'ashishjain0512',
|
||||||
avatar: contributorsAvatars.ashishjain0512,
|
avatar: contributorsAvatars.ashishjain0512,
|
||||||
name: 'Ashish Jain',
|
name: 'Ashish Jain',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'mmorel-35',
|
github: 'mmorel-35',
|
||||||
avatar: contributorsAvatars['mmorel-35'],
|
avatar: contributorsAvatars['mmorel-35'],
|
||||||
name: 'Matthieu Morel',
|
name: 'Matthieu Morel',
|
||||||
title: 'Developer',
|
title: 'Developer',
|
||||||
linkedIn: 'matthieumorel35'
|
linkedIn: 'matthieumorel35',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'aloisklink',
|
github: 'aloisklink',
|
||||||
@@ -110,48 +107,54 @@ const plainTeamMembers: CoreTeam[] = [
|
|||||||
name: 'Alois Klink',
|
name: 'Alois Klink',
|
||||||
title: 'Developer',
|
title: 'Developer',
|
||||||
linkedIn: 'aloisklink',
|
linkedIn: 'aloisklink',
|
||||||
website: 'https://aloisklink.com'
|
website: 'https://aloisklink.com',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'pbrolin47',
|
github: 'pbrolin47',
|
||||||
avatar: contributorsAvatars.pbrolin47,
|
avatar: contributorsAvatars.pbrolin47,
|
||||||
name: 'Per Brolin',
|
name: 'Per Brolin',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'Yash-Singh1',
|
github: 'Yash-Singh1',
|
||||||
avatar: contributorsAvatars['Yash-Singh1'],
|
avatar: contributorsAvatars['Yash-Singh1'],
|
||||||
name: 'Yash Singh',
|
name: 'Yash Singh',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'GDFaber',
|
github: 'GDFaber',
|
||||||
avatar: contributorsAvatars.GDFaber,
|
avatar: contributorsAvatars.GDFaber,
|
||||||
name: 'Marc Faber',
|
name: 'Marc Faber',
|
||||||
title: 'Developer',
|
title: 'Developer',
|
||||||
linkedIn: 'marc-faber'
|
linkedIn: 'marc-faber',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'MindaugasLaganeckas',
|
github: 'MindaugasLaganeckas',
|
||||||
avatar: contributorsAvatars.MindaugasLaganeckas,
|
avatar: contributorsAvatars.MindaugasLaganeckas,
|
||||||
name: 'Mindaugas Laganeckas',
|
name: 'Mindaugas Laganeckas',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'jgreywolf',
|
github: 'jgreywolf',
|
||||||
avatar: contributorsAvatars.jgreywolf,
|
avatar: contributorsAvatars.jgreywolf,
|
||||||
name: 'Justin Greywolf',
|
name: 'Justin Greywolf',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
github: 'IOrlandoni',
|
github: 'IOrlandoni',
|
||||||
avatar: contributorsAvatars.IOrlandoni,
|
avatar: contributorsAvatars.IOrlandoni,
|
||||||
name: 'Nacho Orlandoni',
|
name: 'Nacho Orlandoni',
|
||||||
title: 'Developer'
|
title: 'Developer',
|
||||||
},
|
},
|
||||||
]
|
{
|
||||||
|
github: 'huynhicode',
|
||||||
|
avatar: contributorsAvatars.huynhicode,
|
||||||
|
name: 'Steph Huynh',
|
||||||
|
title: 'Developer',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const teamMembers = plainTeamMembers.map(tm => createLinks(tm))
|
const teamMembers = plainTeamMembers.map((tm) => createLinks(tm));
|
||||||
teamMembers.sort((a, b) => contributorNames.indexOf(a.github) - contributorNames.indexOf(b.github))
|
teamMembers.sort((a, b) => contributorNames.indexOf(a.github) - contributorNames.indexOf(b.github));
|
||||||
|
|
||||||
export { teamMembers }
|
export { teamMembers };
|
||||||
|
@@ -1,32 +1,33 @@
|
|||||||
import { join, resolve } from 'pathe'
|
import fs from 'fs-extra';
|
||||||
import fs from 'fs-extra'
|
import { fileURLToPath } from 'url';
|
||||||
import { $fetch } from 'ohmyfetch'
|
import { $fetch } from 'ohmyfetch';
|
||||||
|
|
||||||
const docsDir = resolve(__dirname, '../..')
|
const pathContributors = new URL('../contributor-names.json', import.meta.url);
|
||||||
const pathContributors = resolve(docsDir, '.vitepress/contributor-names.json')
|
const getAvatarPath = (name: string) =>
|
||||||
const dirAvatars = resolve(docsDir, 'public/user-avatars/')
|
new URL(`../../public/user-avatars/${name}.png`, import.meta.url);
|
||||||
const dirSponsors = resolve(docsDir, 'public/sponsors/')
|
// const dirSponsors = resolve(docsDir, 'public/sponsors/')
|
||||||
|
|
||||||
let contributors: string[] = []
|
let contributors: string[] = [];
|
||||||
|
|
||||||
async function download(url: string, fileName: string) {
|
async function download(url: string, fileName: URL) {
|
||||||
if (fs.existsSync(fileName))
|
if (fs.existsSync(fileName)) return;
|
||||||
return
|
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log('downloading', fileName)
|
console.log('downloading', fileName);
|
||||||
try {
|
try {
|
||||||
const image = await $fetch(url, { responseType: 'arrayBuffer' })
|
const image = await $fetch(url, { responseType: 'arrayBuffer' });
|
||||||
await fs.writeFile(fileName, Buffer.from(image))
|
await fs.writeFile(fileName, Buffer.from(image));
|
||||||
}
|
} catch {}
|
||||||
catch {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchAvatars() {
|
async function fetchAvatars() {
|
||||||
await fs.ensureDir(dirAvatars)
|
await fs.ensureDir(fileURLToPath(new URL('..', getAvatarPath('none'))));
|
||||||
contributors = JSON.parse(await fs.readFile(pathContributors, { encoding: 'utf-8' }))
|
contributors = JSON.parse(await fs.readFile(pathContributors, { encoding: 'utf-8' }));
|
||||||
|
|
||||||
await Promise.all(contributors.map(name => download(`https://github.com/${name}.png?size=100`, join(dirAvatars, `${name}.png`))))
|
await Promise.allSettled(
|
||||||
|
contributors.map((name) =>
|
||||||
|
download(`https://github.com/${name}.png?size=100`, getAvatarPath(name))
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// async function fetchSponsors() {
|
// async function fetchSponsors() {
|
||||||
@@ -36,5 +37,5 @@ async function fetchAvatars() {
|
|||||||
// await download('https://cdn.jsdelivr.net/gh/sheremet-va/static/sponsors.svg', join(dirSponsors, 'sheremet-va.svg'))
|
// await download('https://cdn.jsdelivr.net/gh/sheremet-va/static/sponsors.svg', join(dirSponsors, 'sheremet-va.svg'))
|
||||||
// }
|
// }
|
||||||
|
|
||||||
fetchAvatars()
|
fetchAvatars();
|
||||||
// fetchSponsors()
|
// fetchSponsors()
|
||||||
|
@@ -3,6 +3,8 @@
|
|||||||
import { writeFile } from 'node:fs/promises';
|
import { writeFile } from 'node:fs/promises';
|
||||||
import { $fetch } from 'ohmyfetch';
|
import { $fetch } from 'ohmyfetch';
|
||||||
|
|
||||||
|
const pathContributors = new URL('../contributor-names.json', import.meta.url);
|
||||||
|
|
||||||
interface Contributor {
|
interface Contributor {
|
||||||
login: string;
|
login: string;
|
||||||
}
|
}
|
||||||
@@ -30,11 +32,7 @@ async function fetchContributors() {
|
|||||||
|
|
||||||
async function generate() {
|
async function generate() {
|
||||||
const collaborators = await fetchContributors();
|
const collaborators = await fetchContributors();
|
||||||
await writeFile(
|
await writeFile(pathContributors, JSON.stringify(collaborators, null, 2), 'utf8');
|
||||||
'./packages/mermaid/src/docs/.vitepress/contributor-names.json',
|
|
||||||
`${JSON.stringify(collaborators, null, 2)}\n`,
|
|
||||||
'utf8'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void generate();
|
void generate();
|
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "docs",
|
"name": "docs",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vitepress --port 3333 --open",
|
"dev": "vitepress --port 3333 --open",
|
||||||
"build": "nr prefetch && vitepress build",
|
"build": "nr prefetch && vitepress build",
|
||||||
@@ -8,28 +9,31 @@
|
|||||||
"serve": "vitepress serve",
|
"serve": "vitepress serve",
|
||||||
"preview-https": "pnpm run build && serve .vitepress/dist",
|
"preview-https": "pnpm run build && serve .vitepress/dist",
|
||||||
"preview-https-no-prefetch": "pnpm run build-no-prefetch && serve .vitepress/dist",
|
"preview-https-no-prefetch": "pnpm run build-no-prefetch && serve .vitepress/dist",
|
||||||
"prefetch": "esno .vitepress/scripts/fetch-avatars.ts"
|
"prefetch": "pnpm run fetch-contributors && pnpm run fetch-avatars",
|
||||||
|
"fetch-avatars": "esno .vitepress/scripts/fetch-avatars.ts",
|
||||||
|
"fetch-contributors": "esno .vitepress/scripts/fetch-contributors.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "^9.10.0",
|
"@vueuse/core": "^10.1.0",
|
||||||
"jiti": "^1.16.1",
|
"jiti": "^1.18.2",
|
||||||
"vue": "latest"
|
"vue": "^3.2.47"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-json/carbon": "^1.1.13",
|
"@iconify-json/carbon": "^1.1.16",
|
||||||
"@unocss/reset": "^0.48.3",
|
"@types/fs-extra": "^11.0.1",
|
||||||
"@vite-pwa/vitepress": "^0.0.4",
|
"@unocss/reset": "^0.51.8",
|
||||||
"@vitejs/plugin-vue": "latest",
|
"@vite-pwa/vitepress": "^0.0.5",
|
||||||
|
"@vitejs/plugin-vue": "^4.2.1",
|
||||||
"esno": "^0.16.3",
|
"esno": "^0.16.3",
|
||||||
"fast-glob": "^3.2.12",
|
"fast-glob": "^3.2.12",
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^11.1.1",
|
||||||
"https-localhost": "^4.7.1",
|
"https-localhost": "^4.7.1",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"unocss": "^0.48.3",
|
"unocss": "^0.51.8",
|
||||||
"unplugin-vue-components": "^0.22.12",
|
"unplugin-vue-components": "^0.24.1",
|
||||||
"vite": "^4.1.4",
|
"vite": "^4.3.3",
|
||||||
"vite-plugin-pwa": "^0.14.1",
|
"vite-plugin-pwa": "^0.14.7",
|
||||||
"vitepress": "1.0.0-alpha.47",
|
"vitepress": "1.0.0-alpha.74",
|
||||||
"workbox-window": "^6.5.4"
|
"workbox-window": "^6.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,11 +3,11 @@ import type { PluginOption, Plugin } from 'vite';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
// @ts-expect-error This package has an incorrect export map.
|
// @ts-expect-error This package has an incorrect export map.
|
||||||
import { SearchPlugin } from 'vitepress-plugin-search';
|
import { SearchPlugin } from 'vitepress-plugin-search';
|
||||||
import fs from 'fs'
|
import fs from 'fs';
|
||||||
import Components from 'unplugin-vue-components/vite'
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import Unocss from 'unocss/vite'
|
import Unocss from 'unocss/vite';
|
||||||
import { presetAttributify, presetIcons, presetUno } from 'unocss'
|
import { presetAttributify, presetIcons, presetUno } from 'unocss';
|
||||||
import { resolve } from 'pathe'
|
import { resolve } from 'pathe';
|
||||||
|
|
||||||
const virtualModuleId = 'virtual:mermaid-config';
|
const virtualModuleId = 'virtual:mermaid-config';
|
||||||
const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
||||||
@@ -19,14 +19,19 @@ export default defineConfig({
|
|||||||
exclude: ['vitepress'],
|
exclude: ['vitepress'],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
// @ts-ignore This package has an incorrect exports.
|
||||||
Components({
|
Components({
|
||||||
include: [/\.vue/, /\.md/],
|
include: [/\.vue/, /\.md/],
|
||||||
dirs: '.vitepress/components',
|
dirs: '.vitepress/components',
|
||||||
dts: '.vitepress/components.d.ts',
|
dts: '.vitepress/components.d.ts',
|
||||||
}) as Plugin,
|
}) as Plugin,
|
||||||
|
// @ts-ignore This package has an incorrect exports.
|
||||||
Unocss({
|
Unocss({
|
||||||
shortcuts: [
|
shortcuts: [
|
||||||
['btn', 'px-4 py-1 rounded inline-flex justify-center gap-2 text-white leading-30px children:mya !no-underline cursor-pointer disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
|
[
|
||||||
|
'btn',
|
||||||
|
'px-4 py-1 rounded inline-flex justify-center gap-2 text-white leading-30px children:mya !no-underline cursor-pointer disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
presets: [
|
presets: [
|
||||||
presetUno({
|
presetUno({
|
||||||
@@ -80,21 +85,20 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function IncludesPlugin(): Plugin {
|
function IncludesPlugin(): Plugin {
|
||||||
return {
|
return {
|
||||||
name: 'include-plugin',
|
name: 'include-plugin',
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
transform(code: string, id: string): string | undefined {
|
transform(code: string, id: string): string | undefined {
|
||||||
let changed = false
|
let changed = false;
|
||||||
code = code.replace(/\[@@include]\((.*?)\)/, (_: string, url: any): string => {
|
code = code.replace(/\[@@include]\((.*?)\)/, (_: string, url: any): string => {
|
||||||
changed = true
|
changed = true;
|
||||||
const full = resolve(id, url)
|
const full = resolve(id, url);
|
||||||
return fs.readFileSync(full, 'utf-8')
|
return fs.readFileSync(full, 'utf-8');
|
||||||
})
|
});
|
||||||
if (changed) {
|
if (changed) {
|
||||||
return code
|
return code;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
} as Plugin
|
} as Plugin;
|
||||||
}
|
}
|
||||||
|
9036
pnpm-lock.yaml
generated
9036
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user