| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Remove unwanted witespace caused by tabs and spaces.
Add margin to the ip card style to define an explicit spacing.
|
|
|
|
|
|
| |
Show cache contents in client details for a more complete view
of the client's state.
Move the cache inspector code to its own template for reusability.
|
|
|
|
|
| |
Ease detection of potential problems with images in cache.
Show checksum under each image in the form.
|
|
|
|
| |
Show client IPs inside div components with a custom "card" styling.
|
|
|
|
|
| |
Add vertical padding to the div holding the report of no selected
client with cached images.
|
|
|
|
|
|
| |
Hide the cache inspector when no cache elements are found in
neither of the selected clients.
Fix js exception caused by an array access in an empty image list.
|
|
|
|
|
| |
The template conditional must show the table when form.images has
more than zero elements.
|
|
|
|
| |
Make headings take less space and have a dashed line under them.
|
|
|
|
|
| |
Hide form table when the client's cache is empty and inform the
user about the selected clients not having images in cache.
|
|
Implement cache management through cache/list and cache/delete
API REST methods.
The view corresponds to the URL action/cache and contains three
main parts:
- Free cache available in the client's bubbles.
- Image selection form to request the deletion and view the
client with that image in cache.
- Cache details per client to see total, used and available cache.
The main usecase for the view is the removal of cache to make room
for new images in clients with slow connections. Checking clients
where available cache space is not enough to hold the new image and
then requesting removal of specific images.
The html template receives the following structures from the view:
storage_data[ip] = {'used': 223452345,
'total': 2345234523452}
client_images[ip] = [f'{image_name}.{image_checksum}', ...]
image_data[f'{image_name}.{image_checksum}'] = {
clients: ['192.168.0.1', ...],
size: 34534530850,
name: image_name,
}
|