Blog

EN How to Make Vuetify available in Nuxt's context

You'll probably are importing Vuetify.js in a plugin like: [...] Thanks to using Vue.use , you have $vuetify available in your components instances. You can access to it with this.$vuetify (in the JS part of your component). But, what if we want to access to the Vuetify object in our context? Say in asyncData , fetch , plugins , middleware s and nuxtServerInit . You only need to add a few lines to your plugin...

EN How to Set Aliases in PowerShell

Let's enable user defined aliases! 1. Enable scripting First, we need to enable PowerShell scripting, because by default it's disabled. Within the Powershell console, we will write (or copy/paste) this, and then press enter. (Nothing would show afterwards) [...] If you want to read more about execution policies, go here. 2. Ok, now we need to write the aliases There are different files where we can write the...

EN How to Search for Emojis with Regular Expressions

Turns out the documentation on MDN wasn't complete for this piece. But there is such a thing as Unicode property escapes. And I was astonished when i find out there is a shorthand for Emojis in there! I said it wasn't really complete because you need to pass the unicode flag (u ) in your RegExp for this to work. Here's the code snippet. [...] (Notice the u at the end.) And this will be the output: The...

EN How to git stash one file and add a message

Git stash might be one of the most useful git commands in my opinion. We can understand git stash as a drawer where we want to keep temporarily some work done in a file (or multiple files) to keep on working on it afterwards. The common use is: [...] To store everything in the working directory (meaning "everything tracked", which is everything that is not committed but new files not tracked yet)....

EN How to filter GitHub issues other people made in your repository

Actually, there are a lot of keywords and special syntax you may use to filter on your GitHub issues and pull requests, but this one seemed to be highly useful for me at one point, and might be also for you. Also, if you are a maintainer of an OOS repository, you might want to filter all your issues or PRs out to see what is left. And here it is: (Notice the - sign, which means "exclusion") [...] It is als...

EN Setting up a Nuxt Blog with Netlify, Netlify-CMS and Netlify Identity.

1. Github account First you need to publish the repository to Github. So If you don't have a Github account yet, go create one. 2. Template If you are using Nuxt, any template will do the job. Remember to hide anything you don't want to be published in the .gitignore first (check mine, for example). I used this one as inspiration. I would recommend to use it for the scaffolding: https://github.com/renestalde...