Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/logreader-main.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/logreader-main.mjs.map

Large diffs are not rendered by default.

567 changes: 277 additions & 290 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@nextcloud/browserslist-config": "^3.1.2",
"@nextcloud/eslint-config": "^9.0.0-rc.5",
"@nextcloud/eslint-config": "^9.0.0-rc.6",
"@nextcloud/vite-config": "^2.5.2",
"@pinia/testing": "^1.0.3",
"@vitest/coverage-istanbul": "^4.0.14",
Expand Down
6 changes: 3 additions & 3 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import type { AxiosRequestConfig, AxiosResponse } from '@nextcloud/axios'
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from '@nextcloud/axios'
import type { IAppSettings, INextcloud22LogEntry } from './interfaces'

import axios from '@nextcloud/axios'
Expand Down Expand Up @@ -43,7 +43,7 @@ type ApiGetAppSettings = never
* @param data Parameters for request
* @param config Axios config for setting data
* @return Array of fetched log entries
* @throws AxiosError with HTTP status 424 if log type is not set to `file`
* @throws {AxiosError} with HTTP status 424 if log type is not set to `file`
*/
export const getLog = (data: ApiGetLog, config: AxiosRequestConfig<ApiGetLog> = {}) => axios.get<ApiLogResult, AxiosResponse<ApiLogResult, ApiGetLog>>(generateUrl('apps/logreader/api/log'), { ...config, params: data }) as Promise<AxiosResponse<ApiLogResult>>

Expand All @@ -53,7 +53,7 @@ export const getLog = (data: ApiGetLog, config: AxiosRequestConfig<ApiGetLog> =
* @param data Parameters for request
* @param config Axios config for setting data
* @return Array of fetched log entries
* @throws AxiosError with HTTP status 424 if log type is not set to `file`
* @throws {AxiosError} with HTTP status 424 if log type is not set to `file`
*/
export const pollLog = (data: ApiPollLog, config: AxiosRequestConfig<ApiPollLog> = {}) => axios.get<ApiPollLogResult, AxiosResponse<ApiPollLogResult, ApiPollLog>>(generateUrl('apps/logreader/api/poll'), { ...config, params: data }) as Promise<AxiosResponse<ApiPollLogResult>>

Expand Down
2 changes: 1 addition & 1 deletion src/components/LogSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>
<template #default>
<NcActionInput
:value="currentQuery"
:model-value="currentQuery"
:label="t('logreader', 'Search log entries')"
:show-trailing-button="false"
@submit="isOpen = false"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function isOldStyleException(logMessage: unknown) {
* Try to parse JSON, sanitized possible unescaped parts.
*
* @param json The json string
* @throws Error when json could not be parsed
* @throws {Error} when json could not be parsed
*/
function tryParseJSON(json: string) {
try {
Expand Down