Simple JSON:API plugin for Nuxt.js

Hi all, So far I am keeping myself on track to work a bit every weekend on my side projects. That being said, I am a big fan on JSON:API and in my search for streamlining the consumption on the front-end I’ve finally settled on a nifty JSON:API client called Devour. It has the right amount of magic to make it worthwile and not be over the top ‘magical’. For that, I’ve made a small nuxt....

11 August, 2019 · 2 min · 370 words · Alexandru Bucur

How to setup Font Awesome 5 as VueComponent in Nuxt.js

There were a couple of things that I needed to understand in Nuxt.js so hopefully this will make it quicker for other people as well To have a global component in Nuxt, just create a plugin. Even if the documentation isn’t very clear on setting that up it works well if you look around the Github issue list Font Awesome 5’s VueJS integration works well, but you need to keep in mind to install the icon categories....

08 February, 2019 · 2 min · 225 words · Alexandru Bucur

Quick hack for using google translate (or other services) in Nuxt/Vue.js

Hey guys, here’s a quick way of making google translate play nice using setInterval. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 export default { mounted: function() { this.$nextTick(() => { this.googleTranslateInit(); }); }, methods: { googleTranslateInit: function() { let checkIfGoogleLoaded = setInterval(() => { if (google.translate.TranslateElement !...

26 May, 2018 · 1 min · 145 words · Alexandru Bucur