mirror of
https://github.com/unraid/api.git
synced 2026-01-01 22:20:05 -06:00
<!-- 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 -->
24 lines
470 B
TypeScript
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
|
|
}
|
|
}
|
|
`);
|