jCtapuk
jCtapuk
CCConvex Community
Created by jCtapuk on 9/26/2024 in #support-community
Modify the dashboard interface.
In the future, will it be possible to add it to the interface in the dashboard. For example, adding a leaderboard page on the site. Of course, you can implement all this on your frontend, but you want the site to be clean without administrative access for ordinary people. example idea code
<convex/dashboard.[ts,js,mjs]>
//1 arument Title Button
//2 argument render client
export const leadboard = ui('Leadboard', (view, ctx) => {
// no idea =(
})
<convex/dashboard.[ts,js,mjs]>
//1 arument Title Button
//2 argument render client
export const leadboard = ui('Leadboard', (view, ctx) => {
// no idea =(
})
Well, that’s all I could come up with for now 🙂 But having such an opportunity is cool
2 replies
CCConvex Community
Created by jCtapuk on 9/22/2024 in #support-community
instanceof Error
No description
2 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/19/2024 in #support-community
generateUploadUrl(...)
Add options to generateUploadUrl so you can specify what file types or sizes are allowed. Otherwise, it turns out that they can fill it with whatever they want, which ruins the idea. Example
generateUploadUrl({contentType: "image/png", maxSize: 1024})
or multiple
generateUploadUrl([{contentType: "image/png", maxSize: 1024}, {contentType: "image/jpeg", maxSize: 1024}])
generateUploadUrl({contentType: "image/png", maxSize: 1024})
or multiple
generateUploadUrl([{contentType: "image/png", maxSize: 1024}, {contentType: "image/jpeg", maxSize: 1024}])
When the user tries to send a file to a link, if the format is not suitable, then return an error
5 replies
CCConvex Community
Created by jCtapuk on 8/30/2024 in #support-community
joinplayroom
I have to use joinplayroom and convex. The reason for each function call is 60 fps is expensive. Are you planning such functions of rooms as before without a database to make it cheaper?
9 replies
CCConvex Community
Created by jCtapuk on 8/19/2024 in #support-community
defineTable parent node
No description
4 replies
CCConvex Community
Created by jCtapuk on 8/7/2024 in #support-community
I don't recommend concatenating it into a string
I tried to output it to the console and it started eating up all the memory and the browser froze and was forced to kill the processor. Or you will hit the function call limit I have not tested pure js since this error is possibly related to Nuxt (from the fact that it transfers the console from the server to the client). and tries to condense all proxy objects into a string, which apparently made him feel bad 🙂
import { api } from '@@/convex/_generated/api'
console.log(api.auth.user);
import { api } from '@@/convex/_generated/api'
console.log(api.auth.user);
10 replies