18 Commits
1.0 ... master

Author SHA1 Message Date
Zephrynis
b672feedc5 Add contributors to license copyright 2025-12-29 22:18:43 +00:00
Emma
f02a60d3d9 feat: add blueprint-managed readme [skip ci] 2025-12-29 23:10:47 +01:00
Zephrynis
91de51d4b6 Change repository license in preparation for moving to blueprint community org 2025-12-29 22:00:03 +00:00
Zephrynis
ee8e96b221 Added clarification to license 2025-09-11 21:01:30 +01:00
Zephrynis
7b1a998248 Create LICENSE 2025-09-11 20:56:20 +01:00
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
bec87d1493 Fix save shortcut to handle uppercase 'S' key
Updated the keyboard shortcut handler to use event.key.toLowerCase() for detecting 's', ensuring the save action works regardless of key case.
2025-08-06 23:53:16 +01:00
Zephrynis
59af15d5c6 Update issue templates 2025-07-21 13:02:28 +01:00
f5468b293d Bump version to 1.1 in conf.yml
Updated the version number from 1.0 to 1.1 to reflect recent changes or improvements.
2025-07-21 12:57:58 +01:00
c8a9691d6e Add cmd+s support 2025-07-20 21:31:31 +01:00
Zephrynis
a21481c795 Update issue templates 2025-07-18 23:23:37 +01:00
5daa5e2656 Update README for PteroMonaco installation
Revised the README to reflect the new project name 'PteroMonaco' and updated installation instructions to use 'pteromonaco.blueprint' instead of 'sidebar.blueprint'.
2025-07-13 18:35:50 +01:00
7 changed files with 107 additions and 11 deletions

37
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] "
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Panel Info (please complete the following information):**
- Pterodactyl Version: [e.g. 1.11.11]
- Blueprint Version: [e.g. beta-2024-12]
- Blueprint Addons [e.g. PteroMonaco, Nebula, Any others]
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 Zephrynis & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,6 +1,22 @@
# ptero-sidebar
A basic sidebar for pterodactyl made using blueprint
<!-- START BLUEPRINT-MANAGED README -->
> [!IMPORTANT]
> This project is an unofficial project hosted on the [`blueprint-community`](https://github.com/blueprint-community) GitHub organization.
> [Blueprint](https://blueprint.zip) does not create, endorse or maintain these projects.
>
> You are free to contribute, fork and reuse sections of this codebase [in accordance with this projects' license](LICENSE).
<br>
<h2 align="center"> PteroMonaco </h2>
<p align="center"> Replaces the regular pterodactyl file editor with Monaco </p>
<br>
<!-- END BLUEPRINT-MANAGED README -->
## Steps to install
1. Drop sidebar.blueprint into your pterodactyl root folder (This is usually /var/www/pterodactyl/)
2. Run "blueprint -i sidebar" in the terminal
1. Drop pteromonaco.blueprint into your pterodactyl root folder (This is usually /var/www/pterodactyl/)
2. Run "blueprint -i pteromonaco" in the terminal

View File

@@ -357,13 +357,15 @@ const Editor = () => {
}
}, [lang]);
// Add keyboard shortcut for Ctrl+S
// Add keyboard shortcut for Ctrl+S (Windows/Linux) and Cmd+S (macOS)
useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => {
if (event.ctrlKey && event.key === 's') {
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 's') {
event.preventDefault();
if (action === 'edit') {
save();
} else if (action === 'new') {
setModalVisible(true);
}
}
};

View File

@@ -2,7 +2,7 @@ info:
name: "PteroMonaco"
identifier: "pteromonaco"
description: "Replaces the regular pterodactyl file editor with Monaco"
version: "1.0"
version: "1.2"
target: "beta-2024-12"
author: "Zephrynis"
icon: "icon.png"
@@ -13,4 +13,4 @@ admin:
dashboard:
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;
}
@@ -7,12 +7,12 @@
min-height: 16rem;
}
.cDkCmT {
.Button__ButtonStyle-sc-1qu1gou-0 {
flex: 1 1 0%;
}
@media (min-width: 640px) {
.cDkCmT {
.Button__ButtonStyle-sc-1qu1gou-0 {
flex: none;
}
}