2,532,927 questions
-2
votes
0
answers
10
views
How to properly document an express application with JSDoc
I need a quick help with JSDoc, I'm trying to document a node application running with express but I can find a way to declare it correctly for Intelisense. Below is a code snippet on what I'm trying ...
0
votes
0
answers
6
views
migrating from vue 2 to vue 3 vue-svgicon
I have to migrate an application that use vue2 (2.6.10) to the last version of vue 3; I'm also do not have many experince on frontend development;
I have create the project with
npm init vue@3
I have ...
0
votes
0
answers
11
views
Scrolling function not working in mobile browsers
I created a website (www.techieafrohead.com) and facing an issue on testimonial cards horizontal scrolling. It is smoothly working in desktop browsers but when seen on samsung browsers(Chrome) or in ...
0
votes
0
answers
10
views
Zooming relative to cursor only by element width
I have an element:
<div ref={scrollRef}>
<div ref={containerRef} style={{ width: width * zoomCoef }}>
</div>
</div>
Where "width" is a constant ...
-2
votes
0
answers
25
views
Why is this array broken? [duplicate]
I have a function getTeilnehmer(id) which gets some mail addresses from a Sharepoint list and returns them as array. Now I have this function:
async function signUp(id, userId) {
let ...
0
votes
0
answers
20
views
Why does Chrome "secretly" retry requests and how do I stop it?
If I run this local express server:
const express = require('express')
const cors = require('cors')
const app = express()
app.use(cors())
app.get('/', async (req, res) => {
console.log('hello');...
0
votes
0
answers
9
views
From message event in ios web
I have an webapp that need an 6 digits code from text message, the input is the following
OTP example
the expected behaviour is the cursor go to the next input and copy the following number, this ...
0
votes
0
answers
5
views
Fullcalendar eventClick is missing 'end' property value in 'eventclick' event details
I am not sure why but when I click on a event and look at the 'eventclick' data it is missing the end value.
Here is the data I am binding to the calendar (dropped this out just before I initialize ...
0
votes
0
answers
9
views
Can't figure out the cause of unexpected behaviour of my async recursive animated graph flood-fill algorithm
I've recently been implementing an animated graph flood-fill algorithm, the main feature of which is the animated transition of an "impulse" between selected vertices of the graph. Let me ...
2
votes
1
answer
20
views
How to use jQuery in Laravel blade files
first of all i know there are plenty of similar questions for this, but none of them solved my problem.
I have app.js:
import $ from 'jquery';
$(document).ready(function () {
...
});
window.$ = $...
-1
votes
0
answers
9
views
Can Rollup (used through Vite) be used with 2 simple html pages that "reference" each other ? How to configure it?
I'm making a simple app that I want to run in browsers. I am using a bundler because apparently there is no other way of integrating the physics engine that I use in my app. And even though it is ...
1
vote
0
answers
11
views
Why in Safari do the values of window.screen.height and window.screen.availHeight differ between normal and private modes?
In Safari the values of window.screen.height and window.screen.availHeight differ between normal and private modes, but not between each other, in these conditions:
Only one tab is open,
The window ...
0
votes
0
answers
7
views
initData or initDataUnsafe data is not transmitted in the Telegram mobile app
I have a website that I enable via telegram imni app in a bot Here is the code:
if (window.Telegram && window.Telegram.WebApp) {
const user = Telegram.WebApp.initDataUnsafe.user;
...
0
votes
0
answers
27
views
Selecting last divider element that has not wrapped [duplicate]
To preface this, we can't alter the HTML so the dividers have to be inserted using the provided HTML as shown in the HTML below. We can't use ul and li tags either.
I did a thorough search on Stack ...
0
votes
1
answer
13
views
Upgrade Rails-/Webpacker-App with plain JS, VueJS and Stimulus to Importmaps
I want to migrate a Rails project away from Webpacker.
It uses different JS-parts: VueJS 2.6, StimulusJS, plain old Javascript with some JQuery.
Having used Importmaps in some projects i wonder if ...
-1
votes
2
answers
45
views
Search in a table with inputs on rows
i'm working on a new webapp that includes several tables with different information.
there tables where i only show information but there other table where i need that users can modify values. I ...
-1
votes
1
answer
32
views
Why Node execute a file even file has no .js extension [closed]
We have always used file extension to provide details about the file. And in the scenario where we dont provide an extension we provide the details of the file with sheBang #!/usr/bin/env node which ...
0
votes
0
answers
10
views
Vertical stack bar displays zeroes / "invisible" values with Chart.js
I'm trying to make a vertical stack bar plot with Chart.js.
It works pretty well but for some labels (i.e., for one vertical part of the graph) I don't necessarily have strictly positive values for ...
0
votes
0
answers
31
views
Display Image stored in a sharepoint Site, on a pdf that i want to export
Fetching Image from SharePoint URL for PDF Generation Results in 401 Error Despite Azure App Permissions
I am trying to fetch an image stored in SharePoint by its URL and embed it into a PDF that I ...
0
votes
1
answer
20
views
How clearing coloris elements also to clear rectangle element of current color?
Using latest version of coloris( https://coloris.js.org/ ) in php8 / bootstrap 5.1.3 / jquery 3.6.1 app
I have several coloris elements on my form defined as
<input type="text" ...
0
votes
0
answers
11
views
Google Password Manager autofill, affecting focus()
I have a login component which takes a users username, and then sends a One Time Pin when the username is verified to their phone. The component then dynamically updates and shows the OTP input screen....
-2
votes
0
answers
14
views
why is my code runner delaying in giving output in the OUTPUT box [duplicate]
(https://i.sstatic.net/JpMQBBa2.png)
it only works in my terminal box, how can i make it work in the OUTPUT box and i have downloaded node.js and checked the version which is the recent lts version.i ...
0
votes
0
answers
9
views
ant design define help tag for form field errors
Application use ant.design. When we define Form.Item, we can define noStyle tag to remote style.
When we do that, it will remote the div tag which will display the error with class ant-form-item-...
0
votes
0
answers
24
views
I created an extension but it doesn't download the files
I have a code in a content.js and a background in a chrome extension, the code runs all fine, except the part that makes it download the information I want
part of the code that doesn't work
content....
0
votes
0
answers
27
views
getting org.springframework.messaging.converter.MessageConversionException in chat application
I've made simple real time chat application however when I run the application everything seems fine.
After the typing and sending the message , it is reflecting in the console tab but not reflected ...
0
votes
0
answers
15
views
Why isn't FeedMessage.decode.bind(FeedMessage) equivalent to x => FeedMessage.decode(x) in Javascript? [duplicate]
Below is a Javascript code which attempts to parse some protobuf input data.
'use strict';
import protobuf from 'protobufjs';
const proto = protobuf.loadSync('gtfs-realtime.proto');
const ...
0
votes
0
answers
12
views
Appending Current Page URL to load an alternative version of the page - Wordpress
I am building a site in WordPress in two languages, creating an alternative version of the page for the second language, not translating the text in the page (there are reasons for this).
The URL ...
0
votes
0
answers
6
views
Create a direct link to filter within Elementor gallery
I've created a gallery page. I've used the elementor pro gallery widget and it has multiple galleries which are filterable at the top of the screen "Gallery1" and "Gallery2" etc.
I ...
1
vote
1
answer
27
views
Why do private fields not get overridden in subclasses?
I'm trying to create a parent class A with a private field #abc and a subclass B that overrides this field. However, when I call methods from the parent class that access the private field, it still ...
0
votes
0
answers
11
views
Pixi.js wrong collision
I'm trying to create a game on pixi.js and implement custom physics for the Hero instance. I'm stuck on a jump down right now. My problem is that the collision should disappear with "state === ...
-3
votes
1
answer
25
views
How to avoid reloading page on sending a file? [closed]
I've written a small application using HTML, JavaScript, and Node.js that allows saving strings to a database and a file on a server. However, the file upload is accompanied by an unwanted page reload....
1
vote
0
answers
17
views
expo-av [prepare encountered an error: Error Domain=NSOSStatus error-Domain Code=561017449"Session Activation Failed"]
I am using 'expo-av' in a bare react-native project to record audio. It is working fine on Android and 50% of the time on IOS.
The other 50% of the time it give the error.
prepare encountered an error:...
1
vote
0
answers
40
views
Issue with Tailwindcss intallation: "npx tailwindcss init"
npx tailwindcss init
npx: installed 1 in 1.127s
command not found: tailwindcss
I did try another command npx tailwindcss-cli@latest init -p and created tailwind.config.js folder.
But I do want to ...
0
votes
0
answers
10
views
When can using Reflect in a Proxy trap cause an infinite loop?
Following the documentation on Proxies on MDN, under the example bellow, there is this disclaimer:
If you use Reflect methods within a proxy trap, and the Reflect method
call gets intercepted by the ...
0
votes
0
answers
14
views
How to create a filter panel on a HERE Map
I have created a Here Map and have placed markers based on Data I have extracted using an api. I now would like to add a panel with selectable options to provide filtering options based on my data. I’...
0
votes
0
answers
17
views
Google translate API not translating to any other language after I translate to my base language English
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
...
0
votes
0
answers
18
views
show docx file along with its edit suggestion in reactjs
I'm working on a React application that receives a DOCX file as a base64 string from the backend. When I open this file in Google Docs, it displays edit suggestions/track changes clearly (as shown in ...
-5
votes
0
answers
26
views
Hosting website on github getting 404 error on my folder songs [closed]
I am hosting my website on GitHub but it is giving me an error
it is not uploading the songs folder from my project however the songs folder is pushed in the repository
here is the link to my ...
0
votes
0
answers
19
views
How to compile/watch TypeScript inside jasmine-browser-runner
I'm trying to set up jasmine-browser-runner for a TypeScript project.
My jasmine-config.mjs looks like this:
export default {
srcDir: 'src',
srcFiles: [],
specDir: 'src',
specFiles: [ '...
-1
votes
1
answer
76
views
The conditional code is running without checking the condition [duplicate]
I am trying to hide an element if the mousedown event gets triggered on body but don't want it to hide if another element is clicked. The code is working fine if I don't use the logical or Operator ...
0
votes
0
answers
20
views
Restricted Data Token (RDT) for self-authorized app
I'm trying to retrieve order data from an express.js backend using the Amazon sp-api. I also need address data, customization data etc, which requires me to get a Restricted Data Token (RDT). On the ...
0
votes
1
answer
25
views
When downloading files or downloading multiple files in a zip, it shows the file is insecure or corrupted at times
Have a downloadFiles function in my code which allows users to either download individual files or multiple files in a zip. However, every download comes back as insecure or corrupted, not sure where ...
0
votes
0
answers
19
views
i want to run a website inside webview on android but it uses getusermedia
the thing is it uses getusermedia and it only works in secure contexts & i want the app to be offline
i'm using webview on react native
it opens like with about protocol and getusermedia does not ...
-3
votes
1
answer
39
views
Fetching from a local JSON file not returning any data, function stops running when fetch added [closed]
Trying to fetch a json array from a local json file. The function runs fine when the fetch is not there but as soon as I added the fetch it doesn't run the function at all. I added a console log to ...
-3
votes
3
answers
48
views
How can I push to an array inside an object that is returned by a function?
I am trying to access and alter an array that is within an object that is being returned by a function. I built two mock arrays within objects (The first on its own, the second inside a function.) The ...
0
votes
0
answers
22
views
ESP32 Webserver doesn't run Javascript file in HTML script tag
I am trying to use a pressure sensor on an ESP32 and then plot a live updating graph. The code I used worked perfectly when using my home network but when making the switch to creating my own network ...
1
vote
0
answers
34
views
WebCrypto JS problem decrypting an encrypted file download chunked stream
I have a sample client-side HTML webpage that allows a user to upload a file to a NodeJS file storage server. When a user uploads a file from the webpage, the client's browser encrypts the file with a ...
2
votes
0
answers
16
views
How to reuse route protection logic for multiple components? [duplicate]
I am building a React app and need to conditionally render components based on whether the user is authenticated. While there are existing solutions using ProtectedRoute components, they don’t address ...
0
votes
0
answers
17
views
how to config stylelint in vue project?
I am trying to config stylelint for my vue project (here we can only consider the latest version)
At first, I want to use:
extends: ['stylelint-config-recommended','stylelint-config-recommended-scss', ...
-3
votes
1
answer
55
views
Count of duplicate console.log() resets when called from a different element [closed]
I have the following code:
import ReactDOM from 'react-dom/client';
import { useState, useEffect } from 'react';
const App = () => {
useEffect(() => { console.log('Render'); });
const [...