7 Commits

Author SHA1 Message Date
Zephrynis
b4f66610a4 Various bug fixes
- Update CSS to permanent classes
- Ctrl+S on new file opens naming modal
- Ctrl+S with capslock saves file
2025-08-07 00:42:36 +01:00
Zephrynis
6bc1f8ddb6 Bump version 2025-08-07 00:39:32 +01:00
Zephrynis
9c4e19b360 Merge pull request #7 from zephrynis/4-bug-controls-on-unsaved-file-does-not-open-save-location-prompt
Show modal on Ctrl+Enter for new action in Editor
2025-08-07 00:38:41 +01:00
Zephrynis
00a8d64de0 Merge pull request #6 from zephrynis/3-bug-ctrls-save-bug
Fix save shortcut to handle uppercase 'S' key
2025-08-07 00:38:14 +01:00
Zephrynis
c65ba66980 Merge pull request #5 from zephrynis/2-i-got-this-problem-with-my-editor
Update CSS class selectors to new component names
2025-08-07 00:37:17 +01:00
c5cb756811 Update CSS class selectors to new component names 2025-08-07 00:20:35 +01:00
64faf93a11 Show modal on Ctrl+Enter for new action in Editor
Added logic to display the modal when Ctrl+Enter is pressed and the current action is 'new', improving the user workflow for creating new items.
2025-08-06 23:59:50 +01:00
3 changed files with 7 additions and 5 deletions

View File

@@ -364,6 +364,8 @@ const Editor = () => {
event.preventDefault(); event.preventDefault();
if (action === 'edit') { if (action === 'edit') {
save(); save();
} else if (action === 'new') {
setModalVisible(true);
} }
} }
}; };

View File

@@ -2,7 +2,7 @@ info:
name: "PteroMonaco" name: "PteroMonaco"
identifier: "pteromonaco" identifier: "pteromonaco"
description: "Replaces the regular pterodactyl file editor with Monaco" description: "Replaces the regular pterodactyl file editor with Monaco"
version: "1.1" version: "1.2"
target: "beta-2024-12" target: "beta-2024-12"
author: "Zephrynis" author: "Zephrynis"
icon: "icon.png" icon: "icon.png"
@@ -13,4 +13,4 @@ admin:
dashboard: dashboard:
css: "style.css" css: "style.css"
components: "components" components: "components"

View File

@@ -1,4 +1,4 @@
.igexuH, .eDlcZT { .FileEditContainer___StyledDiv3-sc-48rzpu-7, .FileEditContainer___StyledDiv4-sc-48rzpu-8 {
display: none !important; display: none !important;
} }
@@ -7,12 +7,12 @@
min-height: 16rem; min-height: 16rem;
} }
.cDkCmT { .Button__ButtonStyle-sc-1qu1gou-0 {
flex: 1 1 0%; flex: 1 1 0%;
} }
@media (min-width: 640px) { @media (min-width: 640px) {
.cDkCmT { .Button__ButtonStyle-sc-1qu1gou-0 {
flex: none; flex: none;
} }
} }