Developer Diary
  • Developer Diary
  • 2019

    • June 2019
    • July 2019
    • August 2019
    • September 2019
    • October 2019
    • November 2019
    • December, 2019
  • 2020

    • January 2020
    • February 2020
    • March 2020
    • April 2020
    • May, 2020
    • June 2020
    • July 2020
    • August 2020
    • September 2020
    • October 2020
    • November 2020
    • December 2020
  • 2021

    • January 2021
    • February 2021
    • February 2021
    • April 2021
    • May 2021
    • June 2021
    • July 2021
    • August 2021
    • September 2021
    • October 2021
    • November 2021
    • December 2021
  • 2022

    • January 2022
    • February 2022
    • March 2022
    • April 2022
    • May 2022
    • June 2022
    • July 2022
    • August 2022
    • September 2022
    • October 2022
    • November 2022
    • December 2022
  • 2023

    • January 2023
    • February 2023
    • March 2023
    • April 2023
    • May 2023
    • June 2023
    • July 2023
    • August 2023
    • September 2023
    • October 2023
    • November 2023
  • 2024

    • January 2024
    • February 2024
    • March 2024
    • April 2024
    • May 2024
    • June 2024
    • July 2024
    • August, 2024
    • September 2024
    • October 2024
    • November 2024
    • December 2024
  • 2025

    • January 2025
    • February 2025
    • March 2025
    • April 2025
    • May 2025
    • June 2025
    • July 2025
    • August 2025
    • September 2025

June 17, 2019

Worked on JMS Analytics fixes

  • Discovered GTM now has a built in Youtube tracking.
  • Found a good "striphtml" filter for Vue on Stack overflow
Vue.filter('striphtml', function (value) {
  var div = document.createElement("div");
  div.innerHTML = value;
  var text = div.textContent || div.innerText || "";
  return text;
});
  • Added some code to automatically change the data-gtmaction attribute to download if the href has PDF, XLS, or XLSX in it.

Reviewed KRG home page again.

Trying out a Netlify form with my Nuxt base.

  • Basics work really well, but getting asynchronous to work is a bit trickier.
  • So it works fine if you want to redirect to a thank you page, but when I try to follow the instructions for asynchronous form submittals, they say to post to the same page, or the home page, however, that always gets a 404 and the form doesn't send through. Tabling this for now.

Forked my nuxt base for the new TAP site

Trying to use Prismic GraphQL API with Nuxt

  • https://github.com/nuxt-community/apollo-module
  • https://github.com/prismicio/apollo-link-prismic
  • https://github.com/prismicio/prismic-vue
  • Going to give up on GraphQL because of lack of features with prismic, and overall learning curve.

Installing helper libraries for Prismic

  • Prismic Nuxt
  • Finally got the configuration correct and am getting some data, but I over-installed and have some Prismatic preview stuff I don't necessarily need.
  • Need to figure out how to get the data I need smoothly.