share firestore collection paths across admin and web

I’d like to make re-usable functions that get the Firestore Document/Collection reference across web and admin (node.js). for example: getUserDocumentReference(company: string, user: string) { …

Generate an array of years with duplicates of each year + labeled season

How do i dynamically generate an array of years starting from 2004 till the current year, with each year labeled with “Spring” and “Fall” like in the attached picture? Thank you!

How to submit form to array and clear inputs in vue

I have a vue form inside a dialog. Where the user can select a date and multplie starting times and ending times. So far I can save one object consisting of one date and multiple times. But when I …

nextjs has some exclusive functionality for vercel only

I’m migrating all my applications to nextjs framework! and I would like to know, if all the functionality of nextjs is possible to replicate on private dockers servers or any type of jamstack itself …

Typescript: type of subclasses of an abstract generic class

I have a Base generic class: abstract class BaseClass { abstract itemArray: Array; static getName(): string { throw new Error(`BaseClass – ‘getName’ was not overridden!`); …

Having problems with Chart.js and Canvas

I am currently using Graph.js to render graphs it is working on the initial render, but until I press setTimeformats buttons in order to show another graph on the same canvas, it is giving me Error: …

Cannot create type as specific number when number is in variable

I want to create a type that can be only 1 or root 2. This works: type OneOrRootTwo = 1 | 1.4142135623730951; But when I try to use Math.SQRT2, or any variable reference to the numeric value of root …

RxJS: Modify Observable array before subscribing

I’m fetching data (students via getStudents()) from an API which returns an Observable. Within this result I need to get data from two different tables and combine the result. Here are my simplified …

Ignore $in if empty array is provided

I have the following model: export type IMangaModel = Document & { _id: string; title: string; description: string; demographic: Array; genre: Array; tags: …

Property ‘noise’ does not exist on type ‘typeof @types/p5/index”‘

I was humming along in a TypeScript Data Viz project and thought I’d use the p5.js noise function to save some time. Instead I’ve encountered a problem that I can’t fully understand. There seems to be …