Тёмный

Adding a new nuxt.com logo with useCookie and routing 

Alexander Lichter
Подписаться 10 тыс.
Просмотров 3 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@Muphet
@Muphet 5 месяцев назад
i had no idea such trend exists but this is cool example on how to contribute to open source
@TheAlexLichter
@TheAlexLichter 4 месяца назад
I'd say so too 👏🏻
@TheAlexLichter
@TheAlexLichter 5 месяцев назад
Did you try the uwu mode yet? 👀
@undertale-15075O
@undertale-15075O 5 месяцев назад
Темы о которых невозможно молчать)🐱
@MartinMasevski
@MartinMasevski 5 месяцев назад
Love this kind of content! Thank you
@TheAlexLichter
@TheAlexLichter 4 месяца назад
Glad you enjoyed it 🙏🏻
@youhan96
@youhan96 5 месяцев назад
For above the fold images I usually use preload on NuxtImg too
@epiphanyatnight8732
@epiphanyatnight8732 4 месяца назад
Great video! I am curious: Why do we not use local storage? Is there a reason for using cookies to store the data?
@TheAlexLichter
@TheAlexLichter 4 месяца назад
Answered in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tcvXfn3zkeg.html&lc=UgwWzUsO8F4Xes96zvp4AaABAg TL;DR - localStorage is not available on the server ☺️
@othmanbensaoula489
@othmanbensaoula489 5 месяцев назад
oh didn't know this syntax :class="{'md:pt-24' : isUwuEnabled}" I used to make like this :class="{isUwuEnabled && 'md:pt-24'}" so what's the difference ?
5 месяцев назад
It's the same thing. The second is the react way, the first one is the vue way
@othmanbensaoula489
@othmanbensaoula489 5 месяцев назад
Well I always used the react way in vue 😆
@TheAlexLichter
@TheAlexLichter 4 месяца назад
actually both is fine. I prefer an object though because multiple classes/conditions could occur, e.g. { 'md:pt-24': anotherCondition, 'text-red-500': andAnotherCondition }
@rrd_webmania
@rrd_webmania 5 месяцев назад
Out of curiosity: why cookie and not localStorage?
@TheAlexLichter
@TheAlexLichter 5 месяцев назад
So it will work also during SSR and doesn't cause a flicker when hard-reloading! 👍🏻
@lovelyboy8056
@lovelyboy8056 5 месяцев назад
@@TheAlexLichterin this case cookie better to use for authentication?
@VELIXYZ
@VELIXYZ 5 месяцев назад
@@lovelyboy8056 it only used to prevent flicks of image on start since localStorage is client-only. Cookies are server-side
@lovelyboy8056
@lovelyboy8056 5 месяцев назад
thanks for this video Idea for your future video: create some component or plugin and add it to npm. Show all process how unify component or plug-in, then add to some project. Second idea: how add 3rd libraries written in pure js into nuxt
@TheAlexLichter
@TheAlexLichter 4 месяца назад
You are welcome! 🙏🏻 1) Good idea. Might show when I build my own ESLint config 👀 2) Any specific one you want to see?
@lovelyboy8056
@lovelyboy8056 4 месяца назад
@@TheAlexLichter thanks for answer. About second it can be photoswipe. I tried couple times, but gave up. Exist example for vue. But I tried to use it with nuxt. It didn’t work. Idea in that, to took pure js some library and inject into nuxt as a plugin might be or how it be by best practices :)
@VELIXYZ
@VELIXYZ 5 месяцев назад
Great showcase how to do pull requests and make nuxt & vue bettter
@TheAlexLichter
@TheAlexLichter 4 месяца назад
Thanks 🙏🏻
@AksoomHussain7866
@AksoomHussain7866 5 месяцев назад
it better to also add it trending sound 🤣🤣 with vueuse/useSound on logo hover #justsaying
Далее
Dynamic Components in Vue
14:30
Просмотров 8 тыс.
Слушали бы такое на повторе?
01:00
НЮША РОЖАЕТ?
00:17
Просмотров 893 тыс.
Visual Guide to the Modern Frontend Toolchain (Vite)
9:18
Route Rules in Nuxt - SSR, SSG, ISR and more
25:43
Просмотров 3,6 тыс.
I Remade YouTube From Scratch Using Just Bash
17:51
Просмотров 48 тыс.
A Better Way To Organize Components In Vue
10:10
Просмотров 22 тыс.
i fell for mocks again...
9:08
Просмотров 25 тыс.
Getting Started With Nuxt UI
27:13
Просмотров 16 тыс.
Become a bash scripting pro - full course
36:00
Просмотров 61 тыс.
This Simple Trick Makes My API a LOT Faster
9:25
Просмотров 23 тыс.
Слушали бы такое на повторе?
01:00