Category "javascript"

How to test stenciljs nested components

I have a stenciljs component embedded inside another stenciljs component <parent-component> <child-component attrz="x"> </child-component>

NextAuth Credentials, adding more to the user scheme

Nextauth with mysql persisting users. I'm trying out this NextAuth thing to see if this is something I like. So far so good. There is one thing tho which is bug

How to override Kendo grid CSS

I have following grid in vue.js. I wanna to change the grid header background and text color and hide the scrollbar according to these links: https://docs.teler

Rendering Overlay Containers when theming Angular Material?

According to this tutorial we should be able to add the class needed to render the overlay container that backs Angular Material Select, Snackbar, etc. like thi

Is it possible to convert a Scratch project to an Android app?

For those of you who don't know, Scratch (scratch.mit.edu) is a programming language based around connecting 'blocks' of code in order to create a project. I h

Why did user object is undefined in NextAuth session callback?

I use NextAuth for signIn with discord provider and I need to add userID into the session object. For that I use session callback but user object is undefined.

Why is my page not loading when clicking on event listener?

I'm creating an anime quiz. So when the user clicks on "Welcome to the anime quiz" s/he should be presented with 4 different anime titles. However, nothing happ

Next-auth CredentialProvider config and redirect

I'm a bit confused on the implementation of the credentials provider and the redirects. The documentation says that the credentials provider doesn't support a c

I have a problem entering data into an object using FOR

I have an object I want to go through using the FOR loop Because I want to change the object according to my needs Here is my original object I copied it from c

Is there a way to add two values of an array?

I am trying to make a vernam cypher using html and js, I started by giving each letter a value like (a = 0, b = 1, c = 2, … z = 25). Made two inputs so

Reactnative asyncstorage for a specific user is not working properly

I am trying to save the passing screen after a user that is logged in, has passed the test. And that passing screen is saved even after the app is completely cl

My Discord bot won't reply back with the Embed I made

I don't know much about coding myself but I followed someone's video (specifically this video:https://www.youtube.com/watch?v=tQjpv0OO5pA) on how to make embeds

Cypress wait for API after button click

I've made a React app, which all works perfectly and I'm now writing some end to end tests using Cypress. The React app all works on the same url, it's not got

How to seed a one file only with sequelize-cli?

sequqlize-cli db:seed:all is working fine, but how to seed only one file? Tried to db:seed:[name-that-i-gave-with-create-command] and db:seed:[full-path-to-seed

Do react hooks work via CDN links in a simple single html file?

What is wrong with the following html & js, I can't use hooks! ... this is the only file in my project (no other files or package managers) <html> <

How to change tag name of all html elements which is selected by class name? dynamically

strong text .my-p{ display: inline; } .my-div {} .my-bold{ font-weight: 900; } <!DOCTYPE html> <html> <head> </head> <

Error: ENOENT: no such file or directory, stat ... .steampath

I am trying to start the development server on a React project that I have not worked on for a long time. Upon running npm install and npm start I received the

Cannot read properties of undefined (reading 'execute) when i using js

hello I have a discord bot and I want to create reaction roles but when I execute It doesn't work ? please any body help me this is ap prt of the code put it on

How to make - - legend in 'areaspline' type high charts?

I already had look at Highcharts - How do I get dashed lines in legend . Its for "line" chart type my chart type is "areaspline" where I need dashed style legen

About implement single HTML page with multiple tabs via CSS with or without JavaScript aid

I am interested in building a web page with one single HTML file and multiple tabs. Since only one tab at a time can be selected, I thought that the most approp