|
|
2 роки тому | |
|---|---|---|
| src | 2 роки тому | |
| README.md | 2 роки тому | |
| fix-executables.sh | 3 роки тому |
The idea of this project is to have a better panel for the pineapple NANO/TETRA
To install it, you just have to copy the contents of the src folder to / of the pineapple and reboot.
The following functionalities are modified looking for a better user experience
For edit notification timer you can use this
# sed -i 's/OLD-VALUE/NEW-VALUE/' FILE
sed -i 's/30000/60000/' src/pineapple/js/controllers.js
To open the menu on hover uncomment this in src/pineapple/main.css
.sidebar:hover {
margin-left: 0;
}
.menu-toggle {
display: none !important;
}
To develop locally you can point your panel to the pinapple replacing the src/pineapple/api/index.php with this
<?php
$endpoint = 'http://172.16.42.1:1471/api/index.php';
$sessid = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$xsrftoken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents('php://input'));
curl_setopt($ch, CURLOPT_COOKIE, "PHPSESSID={$sessid}");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-XSRF-TOKEN: {$xsrftoken}"]);
$response = curl_exec($ch);
curl_close($ch);
header('Content-Type: application/json');
echo $response;