You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const { withUt } = require("uploadthing/tw");
module.exports = withUt({
...leave everything the same
});
}
I can rename the sign-in or sign-up in .env, but then i will need to change the name of the folders in routes to new-name[[...new-name]]
to implement: gltf-binary-model-viewer uploading in chat, live2d in chat, AI bots, custom themes, fix it so when we upload an image, we upload a smaller version
in the future i need to find out how to add my own theme
[fixed] fix the fact that once we click on the server settings and then exit that screen without saving, the next time we enter, the screen data is empty
make it so when managing members and when doing other things, we can only see the email of a member, if he enabled that setting
make it so we delete the images in our database of a server when we delete the server ( both for the server image and also uploaded data)
[nice] implement a server banner on the left side
[important] make sure the back end checks if the name of the channel already exists or not for the same type of channel, if it does, dont add it and send a response to the user (this can be done in the app/api/channels/route and .../servers/route or in the [channelId]/route)
[important] make sure that we can only upload a name of server and channel to the back end, if it is smaller than a certain size (this can be done in the app/api/channels/route and .../servers/route or in the [serverId] route)
instead of being redirected to the general every time you select the server, make it so you get redirected to the last channel you were rendering
[important] for mobile and original, make it so right side of the screen has the friends private messages, do not forget to add friends to prisma to begin with, with [yourId]/[friendId]
[idea] make a personal board screen for when you chat with yourself, so that you can store data for later
[important] make it so when I press x in the uploadthing, be it in the red x or in the modal, whatever picture was uploaded, will be deleted
[important] modal, when we click on an image we open a modal with the image a bit bigger, if we click the button below we open the link of the img
[very-important] make it so the message wraps around when too long, and that the delete and edit stays in frame
[important] make it so when you delete a message with an image, the images also get deleted from the database
[important] make sure you delete all the messages from the database when you delete a server
[importamt] we should save in our database the original image and a smaller version, so we can render the smaller version in chat
[important] make it so when someone sends a message, we hear the notification sound, also
[important] make it so when someone send a message in a channel and we havent seen the message, for it to be marked
[important] make it so when we scale down the video/audio conference the buttons scales as well
[important] make it so we can have a @user call message system kind of thing
[important] make it so when you call a person, he may hear your call
[important] make it refresh and see when a new member joins
[very-important] make it so it refreshes when new channel is made and when someone joins, etc
[important] if you click leave button in a call, it should redirect you to general
I need to be able to block or ban people from certain servers/channels or the application altogether
pay attention to the pictures for reference
npm i @prisma/client
npx prisma studio // is good for seeing the server and profiles
we are using clerk for authentication
we are also installing components from ui.shadcn.com
we are using planetscale for the database
we are using uploadthing for the images upload
we are using shadcn/ui for most of the assets
we are using livekit.io for video and audio
we are using railway.app to deploy our app, we cant use vercel because vercel is serverless and we are using websockets, and websockets wont work there
we used "npm install uploadthing @uploadthing/react react-dropzone" to install uploadthing
FileUpload: endpoint="serverImage" depending what we want to upload, look at uploadthing/core to see the possible ones to choose from
we also "npm i uuid" and we also installed the dependencies with "npm i -D @types/uuid"
we also installed zustand with npm i zustand
modals are like the windows of the pop up windows, as in, a secondary mini screen menu that can be used for things like log in, create server and such
when we use "use client" it doesn't mean that something is not rendered in the server, it still is, all it means is, that it isnt a react server component
the only thing is that "use client" means that it is also rendered on the client, that's where it can cause hydration errors
which happens when it is rendered in one state in the server, and in another state in the client (like a desync)
modals are a bit problematic with that since they can be opened by useEffects and onClicks
and since they may cause these problems, we make them not render in the server, since there it is no need for it to render in the server anyways
The modals are like the pop ups, such as, invite friends, create new server, etc