Dracon
KPCKevin Powell - Community
•Created by thereturning on 9/29/2024 in #front-end
help vite proxy running in a container
So you mean, the request from the browser cannot reach the actual backend api?
I faced some issues before and updating the dockerfile resolved the issue, like the browser cannot find the backend service but trying to assign a proper port and address made it work.
I hope this could help you resolve the issue.
2 replies
KPCKevin Powell - Community
•Created by Zax71 on 6/10/2024 in #front-end
<enhanced:img> in masonry layout
all right
10 replies
KPCKevin Powell - Community
•Created by Zax71 on 6/10/2024 in #front-end
<enhanced:img> in masonry layout
I know how svelte and its ecosystem work. And all I wanted to do was just validify my answer using AI.
10 replies
KPCKevin Powell - Community
•Created by Zax71 on 6/10/2024 in #front-end
<enhanced:img> in masonry layout
it's true that I consulted GPT. But I don't answer if I am not sure of it.
10 replies
KPCKevin Powell - Community
•Created by ProdJuan on 6/10/2024 in #back-end
shell script to create file with latest mod time of any other files in directory
You can add this script to the 'additional deployment actions' in your Plesk Git settings. Here's a sample script that does just that:
#!/bin/bash
# Navigate to the directory containing the files
cd /path/to/your/directory
# Find the latest file with a .js or .css extension
latest_file=$(ls -t1 | grep -E "\.js$|\.css$" | head -n 1)
# Check if a file was found
if [ -n "$latest_file" ]; then
# Use 'touch' to create a new file with the same modification time
touch -r "$latest_file" latest_file_indicator
else
echo "No .js or .css files found in the directory."
fi
Replace /path/to/your/directory with the actual path to your directory. This script will create a file named latest_file_indicator with the modification time of the latest .js or .css file.3 replies
KPCKevin Powell - Community
•Created by Wu-Knows. on 6/8/2024 in #front-end
Infinite horizontal scroll menu
you can use javascript carousel library.
4 replies
KPCKevin Powell - Community
•Created by Zax71 on 6/10/2024 in #front-end
<enhanced:img> in masonry layout
In the context of Svelte, this error might arise if the array you're trying to iterate over is not properly defined or has an unexpected length.
10 replies
KPCKevin Powell - Community
•Created by Zax71 on 6/10/2024 in #front-end
<enhanced:img> in masonry layout
The RangeError: Invalid array length error typically occurs in JavaScript when an attempt is made to create an array with an invalid length, such as a negative number, or a number that is not an integer.
10 replies
KPCKevin Powell - Community
•Created by MuriloMatt on 6/9/2024 in #front-end
My div is bigger than the icon inside of it
Hi @MuriloMatt
Will you share your code with me, please?
I will help you.
5 replies