Hello, world.
This is a blog about application development web, desktop & mobile across a range of programming languages incl. JavaScript, C# and more.
These are interesting times for the web. Tag along as I get amazed on what the web can do, how AI is taking over the world, and sympathize my spectacular failures and stupidity.
Explore
- đ Posts â In-depth articles on web development, JavaScript, TypeScript, Vue.js, ASP.NET, and more
- đïž Categories â Browse topics: JavaScript, Vue.js, TypeScript, ASP.NET, and more
- đ Apps â Simple, powerful tools built for real-world use
Stay in touch!: đ€Twitter | đRSS | đGitHub
Enabling social share buttons in Vuetify is quite easy. All you have to do is stitch together three components provided out of the box -
Speed dial Buttons Icons We will create a quick demo on Codepen. Create a new Codepen, click on Settings, navigate to JS and add the below libraries -
https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js Click on Save & Close.
In the JS editor, paste following code to initialise Vue.
new Vue({ el: "#app", vuetify: new Vuetify(), methods: {}, data() { return { dialShare: false, pageUrl: "https://techformist.com", }; }, }); In the ânormalâ app, you would want to extract the page URL with something like this.$route.fullURL.
...
Firestore can make up for a great backend application. You can get started quite easily, scale it up nicely, and in general, worry less about the âserverâ side of things. While it is quite easy to use Firestore as-is, using it in Vue opens up a whole new universe.
But, first - letâs go through the grind of knowing why we would want to do this? And, of course, to please everyone who just happens to be here reading the next exciting story on a lazy afternoon.
...
Vuetify is a God-send for lazy developers like me. Thanks to Vuetify I have all styles standardized, customise UI to my heartâs content and create an app that is ready to take on any device.
But, Vuetify does not support masonry layout for your grid. Hereâs a look at available options if you need masonry layouts in your projects.
A Typical Vuetify Grid The typical Vuetify grid is made up of rows and columns. Creating such a grid is quite simple.
...
I am a big fan of Vuetify - it has far too many components available out of the box and makes my life as easy as it gets. But that does not prevent me from getting annoyed by small âstuffâ that matter.
Take tooltip as an example. Vuetify has v-tooltip component to enable tooltips -
<template> <div class="text-center d-flex align-center"> <v-tooltip bottom> <template v-slot:activator="{ on, attrs }"> <v-btn color="primary" dark v-bind="attrs" v-on="on">Button</v-btn> </template> <span>Yes, this is a button</span> </v-tooltip> </div> </template> This will result in the below UI -
...
Nuxt enables automatic routing. All you need to do is -
Create the Nuxt app Create Vue pages under pages root directory All pages will automatically be routes in the app - no need for a distinct Vue router definition.
Automatic Routes in Nuxt Consider the below pages in an example app https://my-app.com-
Create /pages/index.vue for your home page => maps to => https://my-app.com/ Create /pages/contact.vue for your contact page => maps to => (https://my-app.com/contact Create /pages/customers.vue for to display customers => maps to => https://my-app.com/customers The directory structure in pages..
...
I have always struggled with new projects. Donât get me wrong - we live in exciting times and all that. But, there is this thing called âconundrum of choiceâ. There are just too many ways to get things done and the ânext shiny thingâ syndrome rears its head each and every darn time.
I can safely say that I have never really achieved a standard flow to get things started. Why is that important did I hear you ask?
...
I had used VueDraggable in my projects before, but only sparingly. One of the recent experiences taught me just how cool it was!
The Problem of Drag & Drop There is no problem.. really.
You drag You drop And the world goes âyeah yeah yeahâ (.. use this tone - sorry, couldnât resist)
The problem manifests itself when that drag and drop can include any and all components. So, thatâs effectively the modern web.
...
Hereâs an high-level overview of local storage, popular options to get started on local storage in Vue, and how to choose an option that works for you.
Local Storage and Browsers Browsers are windows to your web application. While it is easier to manage data access on your own servers, super secure and all, getting users to connect to the server for each and every task can be tiring and lead to a bad user experience. These are some use cases that highlight such problems -
...
ES2020 introduced nullish coalescing operator. We will see just how and where can you find use for it?
What it is? Nullish coalescing operator (??) is introduced in the newest Javascript specification. Itâs primary design goal is quite simple - provide a way to check for nulls to return true or false values from an expression.
The operator follows in the footsteps of shorcircuitinng operators && and || to provide developers with a reliable way of checking for -
...
In this post let us see how we can leverage the power of Express with a sprinkling of Alpine JS to create a quick URL shortener application.
But, why? Express is the most popular server-side framework and my âgo toâ choice for creating anything really quick. Building a front-end for Express is as easy as using handlebars (or anything really) that goes in HTML served by Express. But that lacks a âniceâ user experience.
...