feat: activity logs, gallery storage filter, and upload rate limits
Add per-user activity logs with storage backend tracking, gallery storage filter, and IP/token upload rate limiting. Fix storage delete modal flash, pin local backend in filter order, and link settings version to GitHub releases.
This commit is contained in:
1 parent
901fefb3f5
commit
6fc054328d
34 files changed
+1357
-72
No files matched your search
@@ -21,12 +21,15 @@ describe('buildBackendCapacity', () => {
|
||||
|
||||
it('reads disk stats for local backend when available', async () => {
|
||||
const capacity = await buildBackendCapacity('local', 'local', 1024, null)
|
||||
if (capacity.source === 'disk') {
|
||||
expect(capacity.source).toBe('disk')
|
||||
if (capacity.totalBytes != null) {
|
||||
expect(capacity.totalBytes).toBeGreaterThan(0)
|
||||
expect(capacity.freeBytes).not.toBeNull()
|
||||
expect(capacity.percent).not.toBeNull()
|
||||
} else {
|
||||
expect(capacity.usedBytes).toBe(1024)
|
||||
expect(capacity.freeBytes).toBeNull()
|
||||
expect(capacity.percent).toBeNull()
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user