Commit Graph
581 Commits
Author SHA1 Message Date
Michał Fox 5c57b63d00 Validate upload size against the node limit before uploading (#7305)
the file manager only found out a file was over the node's upload limit
after sending the whole thing. the client server resource now exposes
the node's `upload_size` and `useFileUploader` rejects bigger files
before any bytes go out. added `useFileUploader.spec.tsx`, the api
fixtures have the new field.
2026-11-11 12:34:47 -05:00
robert dennis e6f1b328f6 review cleanup 2026-11-05 15:40:41 -05:00
robert dennis e467b4b5ff review fixes 2026-11-05 15:10:39 -05:00
robert dennis f7aa208cab fix ci 2026-10-20 15:46:16 -04:00
robert dennis e71c2c1e22 upload drop check 2026-10-20 15:30:15 -04:00
ItzLinaton 60b72365d8 Feat: Custom User Avatars (V2) (#7295)
Added custom user avatar support.

## Extra Details:
- Users can upload custom `PNG, JPEG, SVG, WebP, AVIF`, and `ICO`
avatars.
- Added avatar management to the user account area.
- Added admin controls to update and remove user avatars.
- Custom User avatars appear in:
  - Panel Navbar.
  - Panel Admin Activity Logs.
  - Server Sub user List.
  - Server Activity Logs
  - Personal Account Activity Logs.
  - Server Ownership Details.
  
---

<img width="1329" height="327"
alt="{B32EBD7F-1FCA-4356-966C-0D60A9A23E49}"
src="https://github.com/user-attachments/assets/881fa5b3-9599-4370-975d-83b6bd91a7d1"
/>

---

<img width="997" height="847" alt="adminpage"
src="https://github.com/user-attachments/assets/989acbcc-351c-431b-ab7f-557ba4c7e070"
/>

---

<img width="955" height="781" alt="serverinfo"
src="https://github.com/user-attachments/assets/6556afac-1971-4112-9686-b71137072c5f"
/>

---

<img width="1376" height="919" alt="userarea"
src="https://github.com/user-attachments/assets/d49f0ddb-1f38-4884-b186-8db78bfed4b0"
/>

---

<img width="936" height="232" alt="userslist"
src="https://github.com/user-attachments/assets/0e8a4b4a-719a-4d52-a485-d7577736b43f"
/>

---

<img width="983" height="772" alt="activity"
src="https://github.com/user-attachments/assets/37ef7176-a804-43f7-ae32-ae65e1a2671b"
/>
2026-10-20 15:09:33 -04:00
Haseeb d9c303f951 Fix file upload detection (#7299)
Files with an empty MIME type were incorrectly rejected as folders when
their size was 0 or exactly 4096 bytes. One matching file also blocked
the entire upload batch.
This removes the MIME type and size heuristic from `useFileUploader` and
checks dropped items using `webkitGetAsEntry()` instead. Actual
directories remain rejected when the browser provides directory entry
information.
2026-10-19 15:06:19 -04:00
Sandip Ghimire eb1611f9e2 fix(console): improve terminal layout, resize reliability, and rendering performance (#7300)
## Description

This PR resolves several visual artifacts, resize desync issues, and
edge-case rendering glitches with the Ghostty-web terminal integration
in the server console:

### 1. Reliable Terminal Resizing & Layout Transitions
- **Bypass `FitAddon` throttle lock (`unlockFitResize`)**: Ghostty's
`FitAddon` sets a 50ms `_isResizing` lock via `setTimeout`, which
silently dropped subsequent `fit()` calls triggered immediately after
layout/route transitions. Unlocking this ensures post-layout re-fits are
never lost.
- **WASM Line Bounds & Viewport Clamping (`patchWasmTerminal`)**:
- Guards against potential null/undefined line reads from the WASM
terminal (`getLine` and `getScrollbackLine` fallback to empty arrays).
- Synchronizes and clamps viewport coordinates during `term.resize` to
prevent scroll desync and jumps when resizing windows or toggling
devtools.

### 2. Precise Font Metrics & Clean Canvas Redraws
- **Canvas-based Font Measurement (`measureTerminalFont`)**: Accurately
computes font cell width, baseline, ascent, and descent using a 2D
canvas context instead of relying on rough estimates.
- **Artifact Prevention in `adjustRendering`**: Automatically flushes
and repaints the canvas background with the theme background color when
viewport offsets change or full redraws occur, eliminating ghosting/text
smearing.

### 3. Clear & Output Lifecycle Improvements
- **Terminal Clear Handling**: Extends `preserveScrollPositionOnWrite`
to intercept `term.clear()`, issuing ANSI reset escapes
(`\x1b[2J\x1b[3J\x1b[H`) and resetting viewport positions.
- **Prefix Newlines**: Normalizes `term.writeln` to ensure initial logs
and scrollback buffer transitions don't overwrite the first line.

### 4. Layout & Styling Polish
- Replaced negative margin gutter compensation hacks (`-ml-4
w-[calc(100%+2rem)]`) in `Terminal.tsx` with clean `w-full` and
`overflow-hidden`.
- Ensured consistent container and input rounding across mobile and
desktop breakpoints.

---

## Changes Overview

- `resources/scripts/components/server/console/useTerminal.ts`: Added
`unlockFitResize`, `measureTerminalFont`, `patchWasmTerminal`, viewport
clamping, canvas clear on redraw, and clear handling.
- `resources/scripts/themes/classic/views/server/console/Terminal.tsx`:
Cleaned container classes and removed mobile negative-margin overrides.
2026-10-19 15:06:01 -04:00
Sky Mulley bf761ec11a fix console addon changes breaking lint tests 2026-10-19 09:15:48 +01:00
Sky Mulley 33c5dd6f31 migrate terminal improvements to addons 2026-10-18 21:33:16 +01:00
Sky Mulley 266544edfc Interactable Terminal Improvements (#7296)
Fixes some internal Discord discussions.

Most of this works around gaps in ghostty-web 0.4.0's selection and link
handling. Several fixes reach into its private internals, so the
dependency is pinned to `0.4.0` now instead of free spinning.

Ghostty seems to be an overall regression as a library over XTerm, below
are some internal hook ins to provide vital functionality back to the
console that v1 originally had.

### Selection
- Double-click selects the word on the line you clicked. Ghostty's
`getWordAtCell` reads the live screen row whatever the scroll position,
so once you'd scrolled up it picked a word from a different line.
- Triple-click now selects and copies the whole line, including every
row it wraps onto.
- Copying no longer puts a line break where a line only wrapped.
Ghostty's `getSelection` puts `\n` between every row, which broke copied
URLs and commands. The fix covers Ctrl/Cmd+C, drag-copy, right-click
copy and triple-click. If a row wrapped at a space, the space is kept.

### Links
- URLs that wrap across rows are detected as one link, and hovering any
part of them underlines the whole URL.
- Only `http:` and `https:` links can be opened. Console output comes
from the game server, so a `javascript:`, `file:` or `ssh:` link in the
output is ignored rather than passed to `window.open`.

### Focus
- The page no longer scrolls when the console takes focus. Ghostty
focuses the console on open and its hidden textarea on every press; both
now focus with `preventScroll`.
2026-10-16 14:11:59 -04:00
robert dennis a106396179 test helpers 2026-10-12 21:41:35 -04:00
robert dennis 5006604b02 theme leftovers 2026-10-12 20:14:47 -04:00
robert dennis 5d17261cbd theme cleanup 2026-10-12 17:59:50 -04:00
robert dennis 4c8256c08c theme fixes 2026-10-12 17:59:43 -04:00
robert dennis 38d2aadccc console and file views 2026-10-12 15:31:58 -04:00
robert dennis 20b037a168 server views 2026-10-12 15:19:54 -04:00
robert dennis 69a065ca02 account views 2026-10-12 15:12:49 -04:00
robert dennis ec60d70e4c theme tooling 2026-10-12 14:24:49 -04:00
robert dennis 9cf7804d20 skin primitives 2026-10-12 14:22:47 -04:00
robert dennis 117d8ee489 theme runtime tests 2026-10-12 08:14:53 -04:00
robert dennis 7b8b592900 theme views 2026-10-12 08:14:53 -04:00
robert dennis cf956515d9 console scroll easing 2026-10-11 01:11:32 -04:00
robert dennis 706d7ea5a9 console scrollbar 2026-10-11 01:11:32 -04:00
robert dennis 93e4b98882 touch scrolling for console 2026-10-11 00:31:17 -04:00
robert dennis 2aa8e5fc64 stop console opening mobile keyboard 2026-10-11 00:18:11 -04:00
robert dennis 489528e269 format 2026-10-09 17:43:41 -04:00
ItzLinaton b3446c5324 Fix: Centered Bulletpoints in MassActionsBar (V2) (#7265)
Before:
<img width="569" height="248"
alt="{92F812C3-A2EA-45FD-BC4E-F27AE92A8BE5}"
src="https://github.com/user-attachments/assets/2744d97d-0279-4b18-8fc2-e1935f9a9306"
/>

Fixed:
<img width="558" height="244"
alt="{9D6E50EA-81CD-49FC-96DE-E48BF4B21534}"
src="https://github.com/user-attachments/assets/e8e2a56e-8cb0-483b-8597-0e6c0acc008e"
/>
2026-10-09 15:34:32 -04:00
ItzLinaton 70353cfc94 Added new "Add All Permission" button (V2) (#7264)
* Added a button to add all available permissions to new subusers
<img width="1165" height="328"
alt="{210F04F1-6476-42F0-ACE5-59DA080A2327}"
src="https://github.com/user-attachments/assets/cc54783b-8d8e-4e4b-9b14-e7f82d24d671"
/>
2026-10-09 15:33:53 -04:00
robert dennis e217e42360 complexity cleanup 2026-10-08 18:49:15 -04:00
robert dennis 3314ce8630 chart cleanup 2026-10-08 17:48:30 -04:00
robert dennis 56fb932a73 action cleanup 2026-10-08 17:40:00 -04:00
robert dennis cceaa535b8 lint cleanup 2026-10-08 16:54:59 -04:00
Sky Mulley 4adda9b8df don't snap to bottom for new lines in console log 2026-10-06 23:10:31 +01:00
Sky Mulley faa806668b mask database password when viewing credentials 2026-10-06 22:32:56 +01:00
Sky Mulley b40a98afa7 don't force docker image selector to inherit the height of the startup parameter field 2026-10-06 22:26:11 +01:00
Sky Mulley 240aaf62ea properly handle file permissions regarding to creation and updating 2026-10-06 13:51:34 +01:00
Sky Mulley 6bc4fb33c4 fix issue where console terminals could leak between sessions 2026-10-06 12:19:05 +01:00
Sky Mulley 45eeda1999 only validate for a payload on scheduled actions that require a payload 2026-10-06 03:31:47 +01:00
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00
VoidValueandcesarmr-github e5a9706d6c Fix Unicode character width rendering using Unicode11Addon in xterm.js [TO FIX #2484] (#5524)
fixes #2484

Co-authored-by: cesarmr-github <167689141+cesarmr-github@users.noreply.github.com>
2026-02-11 16:05:02 -08:00
Dawid Jaworski a1f7d287ac feat: Auth Required modal for hytale (#5526)
This PR add modal related to requiring auth to download or update hytale
server.

Egg feature to use: `hytale_oauth`

Preview:


https://github.com/user-attachments/assets/77bd4f16-ba5b-4652-88b1-7abfd4ab45b8
2026-01-12 12:22:49 -06:00
Dane Everitt 1fdaf008b4 don't endlessly poll websocket when disconnected due to suspension (#5464) 2025-12-26 09:51:54 -08:00
Dane Everitt bbb1294267 Support zero-byte file uploads (#5459) 2025-12-24 17:32:53 -08:00
Dane Everitt f1ea7ec90d Load IBM Plex Sans from code and export as part of bundle (#5447)
Removes the need to load any external resources for fonts. Resolves https://github.com/pterodactyl/panel/issues/5343
2025-12-20 16:37:54 -08:00
Dane Everitt a264791fd4 Update PHP and JS dependencies to latest versions and modernize codebase (#5446) 2025-12-20 15:55:13 -08:00
Daniel BartonandAlan Escarcha dbd7f31c41 Update Minecraft Eula link (#5090)
Co-authored-by: Alan Escarcha <alanescarcha11@gmail.com>
2024-05-06 18:50:06 -06:00
Matthew Penner 8abf2d8106 ui(server): fix defaultValue not being used with VariableBox select 2023-10-20 19:30:25 -06:00
Boy132 67b2d944a6 ui(client): allow MassActionBar to be clicked through (#4753) 2023-08-22 19:12:57 -06:00
Vadym 2d4071ca25 do not show strings with password in notification text 2023-08-22 15:03:47 -10:00