Commit Graph
17 Commits
Author SHA1 Message Date
robert dennis 6640531ca3 search on input 2026-11-11 12:34:50 -05:00
Sky Mulley e7993cb2ef import indent with tab into file editor 2026-11-10 16:28:05 +00: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
BHASKAR MELKANI 67c36e6088 feat: Refactor CodemirrorEditor for improved syntax highlighting (#7298)
This PR improves YAML syntax highlighting, selection rendering, and
search decorations across nested structures, multiline content, and
differently styled tokens.

Issues and fixes:

- YAML tokens in nested structures were not always classified correctly,
causing inconsistent syntax highlighting. The token classification logic
was refined to handle nested structures more reliably.
- Selection highlighting could render incorrectly across multiline
content and differently styled tokens. Selection rendering was updated
to preserve consistent highlighting in these cases.
- Search decorations could become misaligned with highlighted text.
Search marker alignment was corrected so decorations match the
corresponding content.
- Scrollbar markers did not always accurately reflect search results.
Scrollbar marker handling was improved to keep markers synchronized with
search decorations.
- Decoration layers could overlap or render in the wrong order.
Decoration layering was adjusted to ensure selection and search
decorations are displayed correctly.
2026-10-20 15:08:38 -04:00
robert dennis 4eb7f1f390 format editor 2026-10-12 05:26:08 -04:00
Sandip Ghimire 0d3ce311eb feat(editor): align CodeMirror search widget with panel theme and fix replace toggle (#7279)
The default CodeMirror search & replace bar in the File Editor was
unstyled, pushed the editor code down when opened, used mismatched
fonts/colors, and had a broken Replace collapse toggle.

### Changes
- Replaced the default search panel with a compact, floating top-right
widget (VS Code style) that doesn't shift editor content.
- Applied panel theme variables for backgrounds, inputs
(`var(--input)`), borders (`var(--border)`), primary buttons
(`var(--primary)`), and a danger close button (`var(--destructive)`).
- Set all widget inputs and buttons to use the theme font
(`var(--font-sans)`).
- Change the Replace section so it stays hidden by default and properly
collapses/expands on chevron click or `Ctrl+H`.
2026-10-11 17:49:53 -04:00
robert dennis cceaa535b8 lint cleanup 2026-10-08 16:54:59 -04:00
BletzziandClaude Opus 5.5 55ad1f5e4b Keep the file editor focus ring above the active line and gutters
The focus ring was an outline on .cm-editor with a negative offset. The
scroller and the sticky gutters are positioned, so they painted over it:
the active line hid the ring on the right and the line numbers hid it on
the left. Draw the ring on a ::after layer above them instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 01:01:16 -03: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
Dane Everitt ab093344e7 Don't delete the initial content when using "Ctrl+Z" to undo (#5448)
Resolves https://github.com/pterodactyl/panel/issues/5263
2025-12-20 16:38:10 -08:00
DaneEveritt 922d75f471 fix remaining eslint error 2022-06-26 15:30:05 -04:00
DaneEveritt dc84af9937 Apply new eslint rules; default to prettier for styling 2022-06-26 15:13:52 -04:00
Charles Morgan f6bec474f4 Remove unused imports 2020-09-18 03:43:33 -04:00
Dane Everitt 3af9e92603 Codemirror cleanup 2020-09-15 20:53:23 -07:00
Matthew Penner 9d7f4f954e Replace Ace editor with CodeMirror 2020-09-13 17:17:40 -06:00