jCtapuk
jCtapuk
CCConvex Community
Created by CPTRedHawk on 9/25/2024 in #support-community
High bandwidth consumption
you can refuse onUpdate and set the request manually if it has already received a request in the client that has not been set within 5 minutes. I mean that if you need to often see the rating in real time, then it will be expensive, and option 2 suggests saving the rating of users when the points change, we are pregnant with all users for those who have points less than the current points, and move their rating is +1. And this will be a fast query since it will immediately return the data without any calculations.
42 replies
CCConvex Community
Created by CPTRedHawk on 9/25/2024 in #support-community
High bandwidth consumption
And on the client side, make a request every 5 minutes and not subscribe to the update. For example, when you open a modal, you execute a request, and if the request is less than 5 minutes, return the old data to it. And the user can forcefully press the update button, etc. This is an optimization tip It was basic. And if you want, you can make sure that when you update the points, you make a change to all participants and shift the rating. And when requested, it returned the current rating of the position. It all depends on what approach you implement.
42 replies
CCConvex Community
Created by CPTRedHawk on 9/25/2024 in #support-community
High bandwidth consumption
here you can add an update time field to sort who has the same points
42 replies
CCConvex Community
Created by CPTRedHawk on 9/25/2024 in #support-community
High bandwidth consumption
No description
42 replies
CCConvex Community
Created by CPTRedHawk on 9/25/2024 in #support-community
High bandwidth consumption
@CPTRedHawk 1) Select cingle user 2) Read point user and save 3) pick users points < current user point 4) array to size No for operation
42 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
No description
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
Well, let there be a line 🙂 He doesn’t need to know the width and height
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
And having access to the collector directly will be cool
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
essentially you need to convert it to build ts to js
const tutorial = {background: {
layers: [
image: "/assets/image.png" or undefined
]
}
}
const tutorial = {background: {
layers: [
image: "/assets/image.png" or undefined
]
}
}
Let the assembler understand that it is importing an image and simply convention the formula as a path or set any
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
Well, for now I’ll manually enter the keys while there are few of them, but in the future it will come in handy.
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
astro import *.png convert to object
{
src: '/@fs/workspaces/Astro-v2/src/assets/ground/normal-1.png?origWidth=32&origHeight=80&origFormat=png',
width: 32,
height: 80,
format: 'png'
}
{
src: '/@fs/workspaces/Astro-v2/src/assets/ground/normal-1.png?origWidth=32&origHeight=80&origFormat=png',
width: 32,
height: 80,
format: 'png'
}
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
Will it be possible for a convex one?
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
No description
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
But the point is not to get a link to the image, but to be able to ignore it for assembly, let it find imports only along the path *.ts *.js and let it ignore the image
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
for unbuild I think you need to install the file-loader plugin I don’t remember
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
@ballingt https://vitejs.dev/guide/assets well, astro assembles the assembly via vite and its plugin converts the path into metadata
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
No description
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
No description
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
__ Otherwise, manually entering 500 keys is not a job) If I suddenly want to add a new image and key to the project, then I can also enter it manually in the backend. Or he could simply import the entire list of keys and let the image be empty for the backend, he doesn’t need to know
63 replies
CCConvex Community
Created by jCtapuk on 9/20/2024 in #support-community
import declarate import *.png
because if I remember the builder has ignore properties: ["*.png"] this means that during assembly it will not read the image along the import path
63 replies