Pascal 🦋 @botmaster-p-achard (@botmaster) header
Pascal 🦋 @botmaster-p-achard (@botmaster) profile picture

Senior Front-end dev Vue.js, Pinia, Craftcms, Twig, tailwindcss, GraphQL, Docker, Vite, Prettier, Nuxt.js... Personal account @pascal_achard 👽 🤘🎸🏂🎬

Grenoble
Joined August 2008
Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)Photo by Pascal 🦋 @botmaster-p-achard (@botmaster)
Pascal 🦋 @botmaster-p-achard retweeted
✨ Tailwind CSS v4.0 is here! Huge performance improvements, radically simplified setup experience, CSS-first configuration, modernized P3 color palette, container queries, 3D transforms, expanded gradient APIs, @​starting-style support… …and tons, tons more.
296
1,039
228
6,557
507,540
Pascal 🦋 @botmaster-p-achard retweeted
Replying to @AzureSupport
@AzureSupport Azure AD B2C is down and cannot find anything on status.azure.com, why? What is the current status as Service Health updates are really short?
1
1
5
715
Pascal 🦋 @botmaster-p-achard retweeted
Nuxt Fonts first version is out ✨ Plug-and-play web font optimization and configuration for Nuxt apps. Released by @danielcroe on stage at @vuejsamsterdam 🎤 github.com/nuxt/fonts
10
41
3
405
27,631
Pascal 🦋 @botmaster-p-achard retweeted
📕 Zod and Query String Variables in @nuxt_js 👉🏻 @danielkelly_io reminds us that it's important to validate the payloads of POST requests to our API endpoints and Zod makes this super easy to do. vueschool.io/articles/vuejs-…
1
6
22
1,916
Pascal 🦋 @botmaster-p-achard retweeted
Nuxt I18n new docs have been released!🚀🔥 We appreciate the contribution from Nuxt community! 💚 i18n.nuxtjs.org/
1
12
1
85
6,861
Pascal 🦋 @botmaster-p-achard retweeted
Released @vuejs devtools 6.6 with a refreshed look and navigation UI! 🖌️ The update is coming to Chrome, Firefox and Edge very soon! github.com/vuejs/devtools/re…
6
18
1
161
10,861
Pascal 🦋 @botmaster-p-achard retweeted
🤔 Why did I create a new Date library? Tempo solves some unique problems I describe in this announcement post on @ThePracticalDev. Reposting the article here. Full link below 👇 -------------------- Working with dates and time is one of JavaScript’s weakest points. The native Date object is, under the hood, just a unix timestamp with some utility methods. Fortunately, there is no shortage of libraries like moment.js, luxon, date-fns, and day.js to fill the gap. Which brings up the question you’ve already asked yourself, — why another date library? Of course I didn’t set out to create a whole new library, but the following needs have pushed me over the edge. Intl.DateTimeFormat styles The `Intl.DateTimeFormat` API is an incredible underutilized resource. For example, while it is excellent at formatting dates with locale aware format strings like `{ dateStyle: "full" }` there is no easy way to reverse this process. `Friday, March 14, 1997` is the "full" dateStyle in the locale `en-US` but how do you parse it back into a date? With tempo you can: ``` import { parse } from '@formkit/tempo' parse('Friday, March 14, 1997', 'full', 'en') ``` Parse what you format Anything you can format with Tempo you can parse with Tempo. For many libraries this is not the case. Bi-directional support allows you to build great locale aware user experiences like the datepicker in FormKit. Timezones out of the box Working with dates in real-world applications requires timezone support. Tempo does not require a plugin or additional package but instead mines the `Intl.DateTimeFormat` for you. Need to know what the time difference between Amsterdam and Kolkata is in 2 months? ``` import { offset, addMonth } from '@formkit/tempo' const inTwoMonths = addMonth(new Date(), 2) offset(inTwoMonths, 'Europe/Amsterdam', 'Asia/Kolkata') ``` Death to the builder pattern In almost all cases we should().not().use().theBuilder().pattern(). The builder pattern cannot be tree shaken and offers no substantial benefits over a more functional style (this is not a rebuke of objects, just this pattern). Unfortunately tools like Luxon and DayJS make heavy use of the builder pattern. Stop the plugins Many of my favorite date libraries promise an itty bitty core with optional plugins to expand the scope of functionality — unfortunately that little core often doesn’t do much. The same benefit is available to anyone using function notation while tree shaking ensures your project is never bigger than it needs to be. In real-world use cases Tempo is generally ~3-5kb min/gzip including robust support, but depending on what you import it can be as small as 80 bytes. Better docs Most of our time interacting with date libraries is reading docs. I want to enjoy that experience. I also want to tinker with things like the format function directly on the page. Tempo’s docs are (I think) great and every example is interactive so you can test your use case before you write a line of code locally. Why not? Seriously though, this is an open source project and a free gift to the world. If you are perfectly happy with your current solution, keep using it. If you’d like to try something new — give Tempo a shot. Highlights Tempo is full featured in ways you would expect, with full support for day.js style formatting tokens, date parsing, and date manipulation. However it does have some nifty tricks up its sleeves that are worth pointing out: Convert a `dateStyle` to tokens Tempo allows you to extract the formatting tokens of any dateStyle or timeStyle: ``` import { formatStr } from '@formkit/tempo' formatStr({ date: 'full', time: 'full' }, 'en') // dddd, MMMM D, YYYY at h:mm:ss A Z ``` Using this technique you can create incredible user experiences where users are presented editable dates in their own locale. For examples, checkout FormKit’s datepicker where we use this exact feature. Tip: For even more detail you can use the `parts()` function. Using timezones Tempo ships with first class support for timezones — it’s even baked into the `format()` function. ``` import { format } from "@formkit/tempo" // What time is it in LA? format({ date: new Date(), format: 'hh:mm a', tz: 'America/Los_Angeles' }) ``` You can also easily determine the timezone offset from the user’s location to a fixed place. This is useful when building apps where time at a target location matters. For example booking a rental or a meeting in at a given location from another timezone. ``` import { tzDate } from '@formkit/tempo' // Create the date for 1:44pm in Dubai. tzDate('2025-02-28 13:44', 'Asia/Dubai') ``` Token ranges Tempo can "mine" information from `Intl.DateTimeFormat`. For example, if you want to create a select list of months and display them to a user in their own locale, how can you get all those strings? ``` import { range } from '@formkit/tempo' const monthNames = range('MMMM') // January, February, March... // or in french: // janvier,février,mars.. ``` Get building There are many more features to explore in Tempo — give the docs a quick scan so you know what’s available the next time you’re working on a project that requires working with dates. While I have you here — can I ask you a personal favor? Consider giving Tempo a star on GitHub...it makes me happy. If you *really* like Tempo, consider sponsoring FormKit! We don’t make a dime off this open source work, so any sponsorships we get are hugely encouraging.
3
7
3
77
9,659
Pascal 🦋 @botmaster-p-achard retweeted
[#JOBALERT🚨] On recrute un.e développeur.euse PHP en #CDI ! Découvrez l'offre complète et envoyez nous vos candidatures ici : lahautesociete.com/jobs/deve… #recrutement #recrute #dev #php #grenoble #agence #digital
1
4
1
1
843
Pascal 🦋 @botmaster-p-achard retweeted
📕 Is Nuxt 3 Really Production Ready? 👉🏻 Lukas shares some thoughts on using Nuxt in production and what to be aware of if you decide to do so. dev.to/nuxt-wimadev/is-nuxt-…
3
1
16
1,682
Pascal 🦋 @botmaster-p-achard retweeted
Here's a #glb laptop model, optimised to 642KB and rendered with @threejs It's all set to be animated + comes with a screen plane to map *any* texture on + some #GSAP (@greensock ) timelines I created already Live demo & source code: codepen.io/ksenia-k/full/gOE… Hosted on @CodePen
8
26
1
305
21,660
Pascal 🦋 @botmaster-p-achard retweeted
J'ai découvert un site qui rassemble pleins de tips d'UX/UI avec pleins d'exemple ! Il me manque toujours un petit truc sur mes design mais quand j'applique ces conseils mes designs passent à un autre niveau 🤯 ça s'appelle uidesign.tips ! une petite pépite ! 👀
8
106
2
559
63,018
Pascal 🦋 @botmaster-p-achard retweeted
In the `script setup` of a @vuejs component you can define a custom directive just by giving it a camelCase name that starts with `v`:
15
42
5
409
34,221
Pascal 🦋 @botmaster-p-achard retweeted
Create a consistent typography system Archetype is an online typography styling & spacing tool. It allows you to pick fonts and define sizes & spacing. You can preview the typography system in real-time and download fonts archetypeapp.com/
36
1
187
14,765
Pascal 🦋 @botmaster-p-achard retweeted
Nuxt v3.8 is out ✨ - Built-in Nuxt Devtools - Nuxt Image auto-install - App Manifest And much more 🚀 nuxt.com/blog/v3-8
9
120
9
617
67,641
Pascal 🦋 @botmaster-p-achard retweeted
The State of Nuxt 2023 Some hints from my talk at @NuxtNation 🧵
6
21
152
15,122
Pascal 🦋 @botmaster-p-achard retweeted
Après les enquêtes State of JS et State of CSS, voici... State of HTML ! survey.devographics.com/en-U…
3
8
1,523
Pascal 🦋 @botmaster-p-achard retweeted
Je parle ici de ma dernière expérimentation tech. Une histoire de Zégut et de playlist Spotify ^^. linkedin.com/pulse/z%25C3%25… Zégut PG zegut-pg.netlify.app/ Les playlists sont disponibles sur mon profil Spotify ici : open.spotify.com/user/botmas…
1
82