mirror of
https://github.com/blueprint-community/extension-pteromonaco.git
synced 2026-02-19 03:41:54 +00:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4f66610a4 | ||
|
|
6bc1f8ddb6 | ||
|
|
9c4e19b360 | ||
|
|
00a8d64de0 | ||
|
|
c65ba66980 | ||
| c5cb756811 | |||
| 64faf93a11 | |||
| bec87d1493 | |||
|
|
59af15d5c6 | ||
| f5468b293d | |||
| c8a9691d6e | |||
|
|
a21481c795 | ||
| 5daa5e2656 |
37
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
37
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal 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.
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal 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.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# ptero-sidebar
|
# PteroMonaco
|
||||||
A basic sidebar for pterodactyl made using blueprint
|
Replaces the regular pterodactyl file editor with Monaco
|
||||||
|
|
||||||
## Steps to install
|
## Steps to install
|
||||||
1. Drop sidebar.blueprint into your pterodactyl root folder (This is usually /var/www/pterodactyl/)
|
1. Drop pteromonaco.blueprint into your pterodactyl root folder (This is usually /var/www/pterodactyl/)
|
||||||
2. Run "blueprint -i sidebar" in the terminal
|
2. Run "blueprint -i pteromonaco" in the terminal
|
||||||
@@ -357,13 +357,15 @@ const Editor = () => {
|
|||||||
}
|
}
|
||||||
}, [lang]);
|
}, [lang]);
|
||||||
|
|
||||||
// Add keyboard shortcut for Ctrl+S
|
// Add keyboard shortcut for Ctrl+S (Windows/Linux) and Cmd+S (macOS)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleKeyDown = (event: KeyboardEvent) => {
|
const handleKeyDown = (event: KeyboardEvent) => {
|
||||||
if (event.ctrlKey && event.key === 's') {
|
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 's') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (action === 'edit') {
|
if (action === 'edit') {
|
||||||
save();
|
save();
|
||||||
|
} else if (action === 'new') {
|
||||||
|
setModalVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
2
conf.yml
2
conf.yml
@@ -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.0"
|
version: "1.2"
|
||||||
target: "beta-2024-12"
|
target: "beta-2024-12"
|
||||||
author: "Zephrynis"
|
author: "Zephrynis"
|
||||||
icon: "icon.png"
|
icon: "icon.png"
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user