fix: Use instance global limits in Draft.ts because it is outside of the ClientController context
refactor: Move client init from Lifecycle into Instance so that the configuration is only pulled once
fix: Use instance prop for server emoji limit
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
refactor: use Instance.apiUrl instead of CONFIGURATION.DEFAULT_API_URL
refactor: use Instance.wsUrl instead of CONFIGURATION.DEFAULT_WS_URL
refactor: use Instance.mediaUrl instead of CONFIGURATION.DEFAULT_MEDIA_URL
refactor: use Instance.proxyUrl instead of CONFIGURATION.DEFAULT_PROXY_URL
refactor: use Instance.gifboxUrl instead of CONFIGURATION.DEFAULT_GIFBOX_URL
refactor: use Instance.isStoat instead of CONFIGURATION.IS_STOAT
refactor: use Instance.hcaptcha_sitekey instead of CONFIGURATION.HCAPTCHA_SITEKEY
refactor: use Instance.maxEmoji instead of CONFIGURATION.MAX_EMOJI
refactor: use Instance.enableVideo instead of CONFIGURATION.ENABLE_VIDEO
chore: take note of remaining variables to be implemented in instance.ts
chore: fix formatting
feat: add hostname to Instance.ts
feat: modify routes to allow access to other instances
Signed-off-by: Gtoasted <git@gtoasted.de>
* feat: loading screen with status querying
Signed-off-by: infi <infi@infi.sh>
* feat: also show troubleshooting advice after 10s
Signed-off-by: infi <infi@infi.sh>
---------
Signed-off-by: infi <infi@infi.sh>
* feat: implement server sidebar in EmojiPicker
Uses the non-functional server sidebar, and makes it functional.
Signed-off-by: AsrayeDev <asrayeofficial@gmail.com>
* fix: centre server rail and adjust spacings
Signed-off-by: AsrayeDev <asrayeofficial@gmail.com>
* chore: resolve requested changes
Signed-off-by: AsrayeDev <asrayeofficial@gmail.com>
* fix: Make the gif picker max the emojis at 32px
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* feat: Update searchbar, localize server picking event interrupt
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* fix: Tighten up the margins on the gif picker to make it hold more
This will get changed when we grow the picker soon
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
---------
Signed-off-by: AsrayeDev <asrayeofficial@gmail.com>
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Co-authored-by: Jacob Schlecht <dadadah@echoha.us>
* feat: Add TranslatedError and use it in register error
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* refactor: Make the error modal use the TranslatedError component
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
---------
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* docs: Add docs for state
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* fix: solidjs typo
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
---------
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
fix: Profile modal not opening on mobile w/ touch & not closing when pressing Message or Edit Profile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Shrink home-screen flex layout to single-column for mobile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: More mobile UI fixes
- Settings menu margin shrink and use "Back" button in sidebar instead of "Esc" button on right when screen width < 800px
- Message box doesn't grow from placeholder, overflow with ... instead
- Hide GIF button when typing
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Mobile UI marches onwards
- Disable hover action buttons for DMs, server list, and messages on mobile because these are too easy to accidentially tap
- Move the text editor fixes from MessageBox.tsx to codeMirrorLineWrap.ts to make it act as a CodeMirror extension
- Allow newlines with enter key on mobile instead of sending (Attempted send with Ctrl + Enter on mobile, but this doesn't work for some reason. Eg. this would matter for mobile external keyboard or Android Desktop mode.)
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Add back button to Channel & Server settings
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Simplified CSS
- Found a better spot to put the media query so that it's all in one place for easier maintence
- Hide breadcrums at top in "My Account" panel to fix visual bug where there's still a gap there despite no title
- Center ESC button text properly
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Move the CSS again & misc
- I swear this is the last time lol. Now using classes for everything instead of just some of it, will also help with changes for phone view
- Change threshold for tablet view to 900px
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* feat: Mobile UI
- Phone UI triggers at < 600px width
- Animated, swipable drawer slider, inspired by Discord app
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* feat: Slide that SlideDrawer real smooth-like
- Inertia-based snapping for SlideDrawer! We mustelids are experts in speed so this was inevitable
- Fix bug that could cause a SlideDrawer race condition if openning and closing settings menu super fast
- Add appDrawer to app state to update things when the state of the UI changes between mobile/non-mobile
- Don't trigger floating tooltops when input is touched, otherwise they get stuck in a showing state on touchscreens
- Reset layout to member sidebar being hidden when mobile view is shown (otherwise how to close it seems to cause some confusion among those who helped test so far)
- Replace primary sidebar collapse button with a "back" button for mobie view
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Enable mobile autocorrect and autocapitalize on text input
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Un-round them corners for portrait phone view
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Refine SlideDrawer inertia detection by always recalculating final velocity at end
- Fix message context menu appearing in editor
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Sensible margains for modals on mobile to prevent weird scroll behavior
- On mobile, skip UserCard preview (which doesn't look right on small displays) when tapping user icon and go straight to full UserProfile modal
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Small chance that two modals have the same ID using Math.random for ID
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Clicking channels/DMs/settings buttons opens slide drawer on mobile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Cease this madness
- Fix#883 text overflow out of dialog modals
- Remove old "error" type modal
- Fix invite embed going past edge of screen on mobile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Disable context menu when editing message, so you can accept OS spellcheck suggestions
- Remove debug print from SlideDrawer
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* feat: Adding a react button to the context menu was harder than anticipated
- Also streamlined the Media Picker menu in the process, should now be much more efficent by generating a lot less stray DOM elements, and using only one Media Picker instance per message
- Only show member sidebar when in server or group DM, because it's blank in normal DMs which causes confusion
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Prettier format
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Reset floating touch timer to prevent overlapping timer bug
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Misc message box fixes
- Fix different sized margin on left vs right side of message box (if you had OCD you'd understand)
- Fix overflow hidden clipping emoji autocorrect dropdown when editing a message
- Fix message box buttons/send button not firing when touch keyboard is open on Chrome (testing needed on Firefox/Safari mobile)
- Fix vite config not allowing rotate to landscape
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Misc console warnings
- Fix 'scrollTo undefined' error in Message
- Fix 'computations will never be disposed' warning in Container
- Add excluded generated dirs from eslint config to vscode config
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Use text cursor on mdui-text-field
Addresses #1005
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Make class naming scheme compatible with #791
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Appearance menu and role editor color pane clipping past edge on mobile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Adjust channel bar bottom margin to match top margin
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* feat: Add reactive signals to SlideDrawer, will come in handy in other PRs
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Use undefined rather than null for consistency
- Start SlideState enum at 1 so that ! can be used to check for undefined
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Fixes for VoiceCallCardPiP
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* refactor: Use new resize & layout hooks
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Apply mobile login layout using hook
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Remember SlideDrawer state when rotating to landscape then portrait
- Auto-hide touch keyboard when swiping from messages view to channels view
- Search icon instead of input box in header on mobile
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Truncate channel name to ensure header buttons don't overflow screen edge
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Ripple on sidebar buttons getting stuck in pressed state on mobile
- Fix reactivity in Sidebar.tsx
- Add ease-out to SlideDrawer transition
- Reformat CSS
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* refactor: Replace reactive vars with CSS conditions
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* refactor: Move reactive styles out of style.css and into PandaCSS conditions
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: [TEMP] Disable channel reordering on mobile for usability
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: React not showing in context menu after refactor
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* chore: Fix merge conflict with embed-the-embeds
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: ChannelHeader inline CSS
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: SettingsContent reactivity, margins on login page layout for VERY small screens
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* chore: Add TODO to AppearanceMenu
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: Default slide state to show messages view by default like Discord
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
---------
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
* fix: slowmode timer goes to 0 now, and shows up above replies
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* refactor: make the countodnw not show 0 but instead have a small delay
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
---------
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
* feat: add message context, add ability to copy links from messages
* fix: don't show context menu unless there's a message
* refactor: make message context an object containing message
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Fixes an error in deleteInvite where entry.id was compared against itself, resulting in an empty array after deleting any invite.
Signed-off-by: Asraye <asrayeofficial@gmail.com>
This PR adds the missing onSuccess to DeleteRole.tsx. Now successfully pushes the user back to the main roles window.
Signed-off-by: Asraye <asrayeofficial@gmail.com>