hotfix repair html table
This commit is contained in:
@@ -62,6 +62,11 @@ Create a `config.json` file in `/opt/decypharr/` with your Decypharr configurati
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Docker Compose Setup
|
||||||
|
|
||||||
|
- Check your current user and group IDs by running `id -u` and `id -g` in your terminal. You can use these values to set the `PUID` and `PGID` environment variables in the Docker Compose file.
|
||||||
|
- You should also set `user` to your user ID and group ID in the Docker Compose file to ensure proper file permissions.
|
||||||
|
|
||||||
Create a `docker-compose.yml` file with the following content:
|
Create a `docker-compose.yml` file with the following content:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -69,11 +74,14 @@ services:
|
|||||||
decypharr:
|
decypharr:
|
||||||
image: cy01/blackhole:latest
|
image: cy01/blackhole:latest
|
||||||
container_name: decypharr
|
container_name: decypharr
|
||||||
|
user: "${PUID:-1000}:${PGID:-1000}"
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/:/mnt:rslave
|
- /mnt/:/mnt:rslave
|
||||||
- /opt/decypharr/:/app
|
- /opt/decypharr/:/app
|
||||||
environment:
|
environment:
|
||||||
- UMASK=002
|
- UMASK=002
|
||||||
|
- PUID=1000 # Replace with your user ID
|
||||||
|
- PGID=1000 # Replace with your group ID
|
||||||
ports:
|
ports:
|
||||||
- "8282:8282/tcp"
|
- "8282:8282/tcp"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -103,10 +103,5 @@ func (s *Server) getLogs(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.Header().Set("Expires", "0")
|
w.Header().Set("Expires", "0")
|
||||||
|
|
||||||
// Stream the file
|
// Stream the file
|
||||||
_, err = io.Copy(w, file)
|
_, _ = io.Copy(w, file)
|
||||||
if err != nil {
|
|
||||||
s.logger.Error().Err(err).Msg("Error streaming log file")
|
|
||||||
http.Error(w, "Error streaming log file", http.StatusInternalServerError)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,6 +380,12 @@
|
|||||||
let totalItems = job.broken_items ? Object.values(job.broken_items).reduce((sum, arr) => sum + arr.length, 0) : 0;
|
let totalItems = job.broken_items ? Object.values(job.broken_items).reduce((sum, arr) => sum + arr.length, 0) : 0;
|
||||||
|
|
||||||
row.innerHTML = `
|
row.innerHTML = `
|
||||||
|
<td>
|
||||||
|
<div class="form-check">
|
||||||
|
<input class="form-check-input job-checkbox" type="checkbox" value="${job.id}"
|
||||||
|
${canDelete ? '' : 'disabled'} data-can-delete="${canDelete}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td><a href="#" class="text-link view-job" data-id="${job.id}"><small>${job.id.substring(0, 8)}</small></a></td>
|
<td><a href="#" class="text-link view-job" data-id="${job.id}"><small>${job.id.substring(0, 8)}</small></a></td>
|
||||||
<td>${job.arrs.join(', ')}</td>
|
<td>${job.arrs.join(', ')}</td>
|
||||||
<td><small>${formattedDate}</small></td>
|
<td><small>${formattedDate}</small></td>
|
||||||
@@ -619,7 +625,7 @@
|
|||||||
document.querySelectorAll('#itemsPagination a[data-items-page]').forEach(link => {
|
document.querySelectorAll('#itemsPagination a[data-items-page]').forEach(link => {
|
||||||
link.addEventListener('click', (e) => {
|
link.addEventListener('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
currentItemsPage = parseInt(e.currentTarget.dataset.itemsPage);;
|
currentItemsPage = parseInt(e.currentTarget.dataset.itemsPage);
|
||||||
renderBrokenItemsTable();
|
renderBrokenItemsTable();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user