Files
api/web/components/Logs/log.query.ts
Eli Bosley 3f590c56e3 feat: add resolver for logging (#1222)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a comprehensive Log Viewer accessible from the web
interface and Unraid management, allowing users to easily view, refresh,
and download log files.
- Enabled real-time log updates with auto-scroll functionality for
seamless monitoring.
- Enhanced log display with syntax highlighting and detailed file
metadata for improved readability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-03-17 11:44:10 -04:00

24 lines
470 B
TypeScript

import { graphql } from '~/composables/gql/gql';
export const GET_LOG_FILES = graphql(/* GraphQL */ `
query LogFiles {
logFiles {
name
path
size
modifiedAt
}
}
`);
export const GET_LOG_FILE_CONTENT = graphql(/* GraphQL */ `
query LogFileContent($path: String!, $lines: Int, $startLine: Int) {
logFile(path: $path, lines: $lines, startLine: $startLine) {
path
content
totalLines
startLine
}
}
`);