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 css/logreader-main.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* extracted by css-entry-points-plugin */
@import './main-C2Yz2D2E.chunk.css';
@import './main-BivpBDb1.chunk.css';
16 changes: 16 additions & 0 deletions css/main-BivpBDb1.chunk.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions 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.

377 changes: 206 additions & 171 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.6",
"@nextcloud/eslint-config": "^9.0.0-rc.7",
"@nextcloud/vite-config": "^2.5.2",
"@pinia/testing": "^1.0.3",
"@vitest/coverage-istanbul": "^4.0.18",
Expand Down
6 changes: 3 additions & 3 deletions src/components/LogDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<NcModal
:show="open"
size="large"
:has-previous="index > 0"
:has-next="index < logEntries.length - 1"
:hasPrevious="index > 0"
:hasNext="index < logEntries.length - 1"
@next="emit('update:currentEntry', logEntries[index + 1])"
@previous="emit('update:currentEntry', logEntries[index - 1])"
@update:show="emit('update:open', false)">
Expand Down Expand Up @@ -45,7 +45,7 @@
</NcButton>
</div>
<template v-if="currentEntry.exception">
<LogException :exception="currentEntry.exception" class="log-details__exception" :is-expanded="isExceptionExpanded" />
<LogException :exception="currentEntry.exception" class="log-details__exception" :isExpanded="isExceptionExpanded" />
<hr>
</template>
<figure class="log-details__raw">
Expand Down
6 changes: 3 additions & 3 deletions src/components/LogSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
<template>
<NcActions
v-model:open="isOpen"
:force-menu="true"
forceMenu
:aria-label="t('logreader', 'Search log entries')"
:type="buttonType">
<template #icon>
<IconTextSearch :size="20" />
</template>
<template #default>
<NcActionInput
:model-value="currentQuery"
:modelValue="currentQuery"
:label="t('logreader', 'Search log entries')"
:show-trailing-button="false"
:showTrailingButton="false"
@submit="isOpen = false"
@input="onSearchInput">
{{ t('logreader', 'Search log entries') }}
Expand Down
2 changes: 1 addition & 1 deletion src/components/exception/LogException.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<span class="exception__message">{{ exceptionMessage }}</span>
</div>
<StackTrace v-if="props.isExpanded" :trace="props.exception.Trace" class="exception__trace" />
<LogException v-if="props.isExpanded && props.exception.Previous" :is-previous="true" :exception="props.exception.Previous" />
<LogException v-if="props.isExpanded && props.exception.Previous" :isPrevious="true" :exception="props.exception.Previous" />
</span>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/AppSettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<NcAppSettingsDialog
:open="props.open"
:show-navigation="true"
showNavigation
:name="t('logreader', 'Log reader settings')"
@update:open="onUpdateOpen">
<NcAppSettingsSection id="logreader-settings-levels" :name="t('logreader', 'Filter log levels')">
Expand Down
16 changes: 8 additions & 8 deletions src/components/settings/SettingsDatetimeFormat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@
<fieldset>
<legend>{{ fieldsetLegend }}</legend>
<NcCheckboxRadioSwitch
:model-value="dateTimeFormat"
:modelValue="dateTimeFormat"
value="raw"
name="timestamp_format"
type="radio"
@update:model-value="setDateTimeFormat">
@update:modelValue="setDateTimeFormat">
{{ t('logreader', 'Raw data') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
:model-value="dateTimeFormat"
:modelValue="dateTimeFormat"
:disabled="isLocalLogfile"
value="local"
name="timestamp_format"
type="radio"
@update:model-value="setDateTimeFormat">
@update:modelValue="setDateTimeFormat">
{{ t('logreader', 'Local time') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
:model-value="dateTimeFormat"
:modelValue="dateTimeFormat"
:disabled="isLocalLogfile"
value="utc"
name="timestamp_format"
type="radio"
@update:model-value="setDateTimeFormat">
@update:modelValue="setDateTimeFormat">
{{ t('logreader', 'UTC time') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
:model-value="dateTimeFormat"
:modelValue="dateTimeFormat"
:disabled="isLocalLogfile"
value="relative"
name="timestamp_format"
type="radio"
@update:model-value="setDateTimeFormat">
@update:modelValue="setDateTimeFormat">
{{ t('logreader', 'Relative') }}
</NcCheckboxRadioSwitch>
</fieldset>
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/SettingsLogLevels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<NcCheckboxRadioSwitch
v-for="(levelName, levelId) in LOGGING_LEVEL_NAMES"
:key="levelId"
:model-value="shownLevels[levelId]"
@update:model-value="setShowLevels(levelId)">
:modelValue="shownLevels[levelId]"
@update:modelValue="setShowLevels(levelId)">
{{ levelName }}
</NcCheckboxRadioSwitch>
</fieldset>
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/SettingsSetLogLevel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<NcCheckboxRadioSwitch
v-for="(levelName, levelId) in LOGGING_LEVEL_NAMES"
:key="levelId"
:model-value="logLevel"
:modelValue="logLevel"
:value="`${levelId}`"
type="radio"
name="loglevel"
@update:model-value="setLogLevel">
@update:modelValue="setLogLevel">
{{ levelName }}
</NcCheckboxRadioSwitch>
</fieldset>
Expand Down
6 changes: 3 additions & 3 deletions src/components/table/LogTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<LogDetailsModal
v-if="currentRow"
v-model:open="isModalOpen"
v-model:current-entry="currentRow"
:log-entries="sortedRows" />
v-model:currentEntry="currentRow"
:logEntries="sortedRows" />
<table ref="tableRoot" class="log-table__table">
<thead role="rowgroup" class="log-table__header">
<tr>
Expand Down Expand Up @@ -45,7 +45,7 @@
:key="row.id"
:row="row"
class="log-table__row"
@show-details="showDetailsForRow" />
@showDetails="showDetailsForRow" />
</tbody>
<tfoot role="rowgroup" class="log-table__footer">
<tr v-if="sortedByTime !== 'ascending'" class="log-table__load-more">
Expand Down
8 changes: 4 additions & 4 deletions src/components/table/LogTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,24 @@
v-else
:key="settingsStore.dateTimeFormat"
:timestamp="timestamp"
:relative-time="isRelativeDate && 'long'"
:relativeTime="isRelativeDate && 'long'"
:format="dateTimeFormat" />
</td>
<td>
<NcActions placement="left-start">
<NcActionButton close-after-click @click="emit('showDetails', row)">
<NcActionButton closeAfterClick @click="emit('showDetails', row)">
<template #icon>
<IconViewList />
</template>
{{ t('logreader', 'Show details') }}
</NcActionButton>
<NcActionButton close-after-click @click="copyRaw">
<NcActionButton closeAfterClick @click="copyRaw">
<template #icon>
<IconContentCopy />
</template>
{{ t('logreader', 'Copy raw entry') }}
</NcActionButton>
<NcActionButton close-after-click @click="copyFormatted">
<NcActionButton closeAfterClick @click="copyFormatted">
<template #icon>
<IconContentCopy />
</template>
Expand Down