Category "javascript"

Extjs 4.x Grid drag and drop records with parent-child relation

I have created a Extjs (4.X) grid which has records of parents and childrens. The records are in sorted order where in the childrens always appear just below th

Is there a method to group different type of col in a class

I'm working on a project where often I need to implement the same type of tag such as <div class="col-12 col-md-10 col-lg-8 col-xl-4"> and I want to creat

Mongoose - Update an object inside nested array

My Mongo schema looks like this, I want to update a flashcard object located in an array of flashcard also located in an array of subject. const classrooms = ne

What is the term for a program that consumes a dependency?

I am currently working on an update to a package, which other programs use as a dependency. I'm curious what the correct term is for those dependency-consuming

Laravel Sanctum CSRF not authenticating

I have a problem understanding use of CSRF tokens with Laravel/Sanctum. As I see, there is no need to create Sanctum API token to authenticate user, and conside

The token '&&' is not a valid statement separator in this version

On the way of installing Webpack on my React Project, the following problem hinders my progress: last step to configure the Webpack npm run build && nod

Best way to save a secretKey

I'm learning Solana API on ReactJS. After generating a keypair you can recreate the same keypair with the secretKey. How can I save this keypair? I'm using reac

How to highlight matches within a string with JSX?

I have a custom autocomplete, so when you type, it will display a list of suggestions based on the input value. In the list, I would like to bold the character

'TypeError: coment.map is not a function' with realtime database of firebase

I wrote this code to receive all comments from the database and then print them one by one in the console. The code is: import { getDatabase, ref, child,

Axios error: ... .data.pipe is not a function

So I am basically trying to use axios to download a image from a url, but I get this error: TypeError: streamResponse.data.pipe is not a function My function fo

Dart support for using Script Property Values in Regular Expressions

The Unicode regular expression documentation describes doing complex matches for text. Specifically, I am wondering about matching various scripts within a stri

Vuejs: Parent component not updating after updating child component

I need clarity. When there is update in a child component in vuejs, even the parent also triggers its updated hook. But I thought that the parent had already un

How to use div like link to redirect to another page?

I need to make div which will act simulate to Link element, so when you click on it you navigate to another page. Something like this <Link to="/employees"&g

Filter out bots from member count in client status

I want to make my bot activity say "Watching + Member Count (not include bots)". I did some steps, here is my code: client.once('ready', () => { set

How to render global styles from styled-components in Storybook?

Cannot render storybook application when trying to add global styles to the config file. It was working before and when I tried to add the knobs addons it brok

Prevent multiple votes on Node/Express + Pusher JS Voting App

I'm creating a simple voting app where by the client gets to choose from a HTML select dropdown and select an option, and then submitted through a form it fires

Vue3- Using Vitest toHaveBeenCalled() method

I am running a vue3 application using the Composition API and the setup() hook. I am using Vitest as unit-test framework. (v 0.6.1) I have the following sample

Send a link to a webpage and automatically download a file

so I have a webpage with a element similar to the following <a href="docs/some_file.xlsx" download="some_file.xlsx" class="btn btn-primary">Download!<

this.setState is not working when using firebase database

I am using the state to get value from the firebase database but I think there is some problem while doing it. const dbRef=firebase.database().ref().child('pro

Prisma ORM Postgres SQL DB Schema Not Null Fields

Just so you have it here is my defined prisma schema. Now if I read correctly in the prisma docs it said, that every field in which I do not declare a ? after t