upgrade to astro 4+

This commit is contained in:
tree🌴 2024-02-09 21:08:06 +01:00
parent 46ee136306
commit c0e7b9866c
3 changed files with 1403 additions and 1845 deletions

3228
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,12 +17,12 @@
"sync-all": "npm run core && npm run contribs && npm run articles && npm run talks && npm run explorer && npm run events-ext"
},
"dependencies": {
"@astrojs/tailwind": "^5.0.2",
"@astrojs/tailwind": "^5.1.0",
"@rollup/plugin-yaml": "^4.1.2",
"astro": "^3.4.3",
"astro": "^4.3.5",
"cfonts": "^3.2.0",
"date-fns": "^2.30.0",
"marked": "^11.1.1",
"tailwindcss": "^3.3.5"
"tailwindcss": "^3.4.1"
}
}

View file

@ -125,13 +125,6 @@ const status = item.confirmed
</div>
<div class="py-1 grow text-right items-center flex gap-4">
<div class="grow"></div>
{/*ext &&
<div class="flex -space-x-3">
{ext.guests.map((guest) => (
<div><img src={guest.avatarUrl} class="w-8 h-8 aspect-square object-fit rounded-full border-gray-800 border-2" /></div>
))}
</div>
*/}
{item.speakers &&
<div class="flex -space-x-3">
{item.speakers.map(spId => getSpeaker(spId)).slice(0,7).map((speaker) => (
@ -168,8 +161,11 @@ const status = item.confirmed
<div>
<div>Date: <span class="text-white">{dateFormat(item.date)} {item.days ? ' - ' + dateFormat(dateEnd(item.date, item.days)) + ` (${item.days} days)` : ''}</span></div>
<div>
Place: {item.place && <span set:html={marked.parseInline(item.place)} class="text-white"></span> || "TBD"}
{item.place && item['place-address'] && <span> @ </span><span class="text-white">{item['place-address']}</span>}
Place: {item.place && <span class="text-white" set:html={marked.parseInline(item.place)}></span> || "TBD"}
{item.place && item['place-address'] &&
<span> @ </span>
<span class="text-white">{item['place-address']}</span>
}
</div>
<div>Status: <span class:list={[status.color]} class="mr-1.5 text-xs">●</span> {status.title}</div>
<div>Lead: <span class="text-white">{item.lead || 'n/a'}</span></div>