Tips and tricks for vue with typescript

I’ve been working on a vue project with typescript for almost a year now. Along the way, we found a few little things that I would like to share. Everything shown here is buried in vue’s documentation somewhere, you may need to dig a little, but it is all there. Note that all examples below use single file components and typescript 3. The project was created using vuecli 3. #1 typing $store and $refs in vue component When using the $store or $refs in a component, there is no typing available due to how vue wire the component together....

June 23, 2019 · 3 min · LPains

TFVC to git import alternative

On [Migrating from TFS + TFVC to VSTS + git]({{ site.baseurl }}{% link _posts/2018-7-15-migrating-from-tfs-to-vsts-git.md %}) post I showed how to export your TFVC repository, or a part of it, to a git repository using git-tfs tool. Today, I found an alternative totally by chance and it might be just what you needed to finally move to git. TFS 2018 and Azure DevOps offers an option called Import Repository located at Code in TFS or Repos Azure DevOps....

February 13, 2019 · 1 min · LPains
This blog is so slow...

Blog Changes

Recently, I run a GT Metrix test on my blog and got an abysmal D score. After some investigation I noticed a few things that need improvement: Disqus was loading too many things that I really didn’t care for. This included ads. Many scripts, styles and images were not optimized nor entirely needed. No browser caching was implemented To fix Disqus problem I removed it entirely, I really don’t like ads, specially how Disqus introduced them in their free offering....

February 11, 2019 · 1 min · LPains

Build and Deploy Xamarin.iOS to Test Flight with Azure DevOps

The goal here is to build a Xamarin.iOS app from a git repository, create a releasable .ipa file and push it to the App Store Connect for Test Flight. What you will need A paid apple developer account Working Xamarin.iOS project in a Source Control system that Azure DevOps can access If you need a sample application, you can grab one here Azure DevOps account and project (it is free, go get one) Register app ID and get certificate and provisioning profile At the end of this section you should have ....

January 31, 2019 · 3 min · LPains

FreshMVVM master/detail page lazy loaded

Out of the box, FreshMVVM offers a Master/Detail page navigation container that works nicely. However, it does not support lazy loading the pages as you navigate to them. Below, I demonstrate how I’ve done it. We need to replace the FreshMVVM original implementation of FreshMasterDetailNavigationContainer. Note that the implementation below is mostly a copy with the following changes: The list view is grouped Each item in the list can have an icon In the AddPage methods, we no longer create an instance of the pages added, we just add a light reference to a collection The menu page is a xaml file instead of fully created in code Only when the menu item is tapped we instantiate and display the Page and ViewModel LazyLoadedPage class:...

July 29, 2018 · 1 min · LPains