-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activity 1 | Read me compat | Future tabs
- Loading branch information
1 parent
569a0ee
commit 9c77fa4
Showing
4 changed files
with
123 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
# Fsh Pterodactyl Panel | ||
Fsh pt is a pterodactyl api web wrapper.\ | ||
This works for both client and application api keys, even tho it may not support all the features all the ones added are carefully thought for the best user experience. | ||
|
||
## Compatibility | ||
- [ ] User | ||
- [ ] Servers | ||
- [ ] View (Missing terminal) | ||
- [x] Files | ||
- [ ] Databases | ||
- [ ] Schedules | ||
- [ ] Users | ||
- [ ] Backups | ||
- [x] Network | ||
- [ ] Startup | ||
- [ ] Settings | ||
- [ ] Activity | ||
- [ ] Account | ||
- [ ] View | ||
- [ ] Edit | ||
- [ ] Api keys | ||
- [ ] 2FA | ||
- [ ] Application | ||
- [ ] Users | ||
- [ ] Nodes | ||
- [ ] Locations | ||
- [ ] Servers | ||
- [ ] Nests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Network view - Fsh Pterodactyl Panel</title> | ||
<!-- Boiler plate------ --> | ||
<link rel="icon" href="https://fsh.plus/fsh.png" type="image/png"> | ||
<meta name="description" content="A pterodactyl panel replacement. View network of a server (login required)."> | ||
<!-- ------- --> | ||
<link rel="stylesheet" href="https://fsh.plus/media/style.css"> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta property="og:image" content="https://fsh.plus/fsh.png"/> | ||
<meta name="theme-color" content="#a89c9b"> | ||
<!-- ------------------ --> | ||
<link rel="stylesheet" href="/style.css"> | ||
<script src="/script.js"></script> | ||
<style> | ||
#logs { | ||
display: flex; | ||
gap: 15px; | ||
flex-direction: column; | ||
} | ||
#logs > div { | ||
display: flex; | ||
align-items: center; | ||
margin: 0px 10px; | ||
padding: 10px; | ||
border-radius: 0.5rem; | ||
background-color: var(--bg-2); | ||
} | ||
#logs > div > span { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.badge { | ||
padding: 2px 4px; | ||
font-size: 75%; | ||
margin-left: 5px; | ||
border-radius: 0.5rem; | ||
background-color: var(--bg-3); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<a id="Bback"><button>Back</button></a> | ||
<div id="logs"></div> | ||
<script> | ||
const params = new URLSearchParams(location.search); | ||
document.getElementById('Bback').href = '/user/server?id='+params.get('id'); | ||
PT('servers/'+params.get('id'), function(s){ | ||
s = s.attributes; | ||
PT('servers/'+s.uuid+'/activity?sort=-timestamp&include[]=actor&page='+(params.get('page')||'1'), function(l){ | ||
document.getElementById('logs').innerHTML = l.data.map(p => {p=p.attributes;return `<div> | ||
<span> | ||
<img src="${p.relationships.actor.attributes.image}"> | ||
<span> | ||
<label>${p.relationships.actor.attributes.username}</label> | ||
${p.is_api ? '<label class="badge">API</label>' : ''} | ||
<br> | ||
<label class="subtext">${p.ip}</label> | ||
</span> | ||
</span> | ||
<span> | ||
<label>${p.event}</label> | ||
<label> | ||
</span> | ||
</div>`}).join('') | ||
/* | ||
{ | ||
"event": "server:allocation.notes", | ||
"properties": { | ||
"allocation": "0.0.0.0:3000", | ||
"old": "cat", | ||
"new": null | ||
}, | ||
"timestamp": "2024-08-28T20:43:17+02:00" | ||
} | ||
*/ | ||
}) | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters