@openremote/or-log-viewer 1.2.0-snapshot.20240512160221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/lib/index.d.ts +78 -0
- package/lib/index.js +167 -0
- package/lib/index.js.map +1 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @openremote/or-log-viewer \<or-log-viewer\>
|
|
2
|
+
[![NPM Version][npm-image]][npm-url]
|
|
3
|
+
[![Linux Build][travis-image]][travis-url]
|
|
4
|
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
5
|
+
|
|
6
|
+
Web Component for displaying system logs.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
```bash
|
|
10
|
+
npm i @openremote/or-attribute-history
|
|
11
|
+
yarn add @openremote/or-attribute-history
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
For a full list of properties, methods and options refer to the TypeDoc generated [documentation]().
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Supported Browsers
|
|
19
|
+
The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox, Edge. In addition,
|
|
20
|
+
Internet Explorer 11 is also supported.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
[GNU AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
25
|
+
|
|
26
|
+
[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
|
|
27
|
+
[npm-url]: https://npmjs.org/package/@openremote/or-log-viewer
|
|
28
|
+
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
|
|
29
|
+
[travis-url]: https://travis-ci.org/live-js/live-xxx
|
|
30
|
+
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
|
|
31
|
+
[coveralls-url]: https://coveralls.io/r/live-js/live-xxx?branch=master
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
+
import * as Model from "@openremote/model";
|
|
3
|
+
import "@openremote/or-mwc-components/or-mwc-input";
|
|
4
|
+
import "@openremote/or-components/or-panel";
|
|
5
|
+
import "@openremote/or-translate";
|
|
6
|
+
import { MDCDataTable } from "@material/data-table";
|
|
7
|
+
import "@openremote/or-mwc-components/or-mwc-menu";
|
|
8
|
+
import { ListItem } from "@openremote/or-mwc-components/or-mwc-list";
|
|
9
|
+
import { GenericAxiosResponse } from "axios";
|
|
10
|
+
export interface ViewerConfig {
|
|
11
|
+
allowedCategories?: Model.SyslogCategory[];
|
|
12
|
+
initialCategories?: Model.SyslogCategory[];
|
|
13
|
+
initialFilter?: string;
|
|
14
|
+
initialLevel?: Model.SyslogLevel;
|
|
15
|
+
hideCategories?: boolean;
|
|
16
|
+
hideFilter?: boolean;
|
|
17
|
+
hideLevel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const OrLogViewer_base: (new (...args: any[]) => {
|
|
20
|
+
_i18nextJustInitialized: boolean;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
shouldUpdate(changedProps: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): any;
|
|
24
|
+
initCallback: (options: import("i18next").InitOptions) => void;
|
|
25
|
+
langChangedCallback: () => void;
|
|
26
|
+
readonly isConnected: boolean;
|
|
27
|
+
}) & typeof LitElement;
|
|
28
|
+
export declare class OrLogViewer extends OrLogViewer_base {
|
|
29
|
+
static DEFAULT_TIMESTAMP_FORMAT: string;
|
|
30
|
+
static DEFAULT_LIMIT: number;
|
|
31
|
+
static DEFAULT_LEVEL: Model.SyslogLevel;
|
|
32
|
+
static DEFAULT_INTERVAL: Model.DatapointInterval;
|
|
33
|
+
static get styles(): import("lit").CSSResult[];
|
|
34
|
+
interval?: Model.DatapointInterval;
|
|
35
|
+
timestamp?: Date;
|
|
36
|
+
limit?: number;
|
|
37
|
+
categories?: Model.SyslogCategory[];
|
|
38
|
+
filter?: string;
|
|
39
|
+
level?: Model.SyslogLevel;
|
|
40
|
+
live: boolean;
|
|
41
|
+
config?: ViewerConfig;
|
|
42
|
+
protected _loading: boolean;
|
|
43
|
+
protected _data?: Model.SyslogEvent[];
|
|
44
|
+
protected _tableElem: HTMLDivElement;
|
|
45
|
+
protected _table?: MDCDataTable;
|
|
46
|
+
protected _eventSubscriptionId?: string;
|
|
47
|
+
protected _refresh?: number;
|
|
48
|
+
protected _pageCount?: number;
|
|
49
|
+
protected _currentPage: number;
|
|
50
|
+
protected _pendingCategories?: Model.SyslogCategory[];
|
|
51
|
+
connectedCallback(): void;
|
|
52
|
+
disconnectedCallback(): void;
|
|
53
|
+
shouldUpdate(_changedProperties: PropertyValues): boolean;
|
|
54
|
+
render(): TemplateResult<1>;
|
|
55
|
+
protected _getLimitOptions(): string[];
|
|
56
|
+
protected _getLevelOptions(): string[][];
|
|
57
|
+
protected _getCategoryMenuItems(): ListItem[];
|
|
58
|
+
protected getLimit(): number;
|
|
59
|
+
protected _onCategoriesChanged(values: Model.SyslogCategory[]): void;
|
|
60
|
+
protected _onCategoriesClosed(): void;
|
|
61
|
+
protected _onLiveChanged(live: boolean): void;
|
|
62
|
+
protected _onLimitChanged(limit: string): void;
|
|
63
|
+
protected _onFilterChanged(filter: string): void;
|
|
64
|
+
protected _onLevelChanged(level: Model.SyslogLevel): void;
|
|
65
|
+
protected _getTable(): TemplateResult;
|
|
66
|
+
protected _getIntervalOptions(): [string, string][];
|
|
67
|
+
protected _loadData(): Promise<void>;
|
|
68
|
+
protected _getPageCount(response: GenericAxiosResponse<any>): number | undefined;
|
|
69
|
+
protected _updatePage(forward: boolean): void;
|
|
70
|
+
protected _subscribeEvents(): Promise<void>;
|
|
71
|
+
protected _unsubscribeEvents(): void;
|
|
72
|
+
protected _getFrom(): number | undefined;
|
|
73
|
+
protected _calculateTimestamp(timestamp: Date, forward?: boolean): Date | undefined;
|
|
74
|
+
protected _onEvent(event: Model.SyslogEvent): void;
|
|
75
|
+
protected _eventMatchesLevel(event: Model.SyslogEvent): boolean;
|
|
76
|
+
protected _cleanup(): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
var OrLogViewer_1,__decorate=this&&this.__decorate||function(e,t,i,a){var o,r=arguments.length,s=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},__awaiter=this&&this.__awaiter||function(e,t,i,a){return new(i||(i=Promise))((function(o,r){function s(e){try{l(a.next(e))}catch(e){r(e)}}function n(e){try{l(a.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,n)}l((a=a.apply(e,t||[])).next())}))};import{css,html,LitElement,unsafeCSS}from"lit";import{customElement,property,query}from"lit/decorators.js";import i18next from"i18next";import{translate}from"@openremote/or-translate";import*as Model from"@openremote/model";import manager,{DefaultColor2,DefaultColor3,Util}from"@openremote/core";import"@openremote/or-mwc-components/or-mwc-input";import"@openremote/or-components/or-panel";import"@openremote/or-translate";import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import moment from"moment";import"@openremote/or-mwc-components/or-mwc-menu";import{getContentWithMenuTemplate}from"@openremote/or-mwc-components/or-mwc-menu";const linkParser=require("parse-link-header"),tableStyle=require("@material/data-table/dist/mdc.data-table.css"),style=css`
|
|
2
|
+
:host {
|
|
3
|
+
--internal-or-log-viewer-background-color: var(--or-log-viewer-background-color, var(--or-app-color2, ${unsafeCSS(DefaultColor2)}));
|
|
4
|
+
--internal-or-log-viewer-text-color: var(--or-log-viewer-text-color, var(--or-app-color3, ${unsafeCSS(DefaultColor3)}));
|
|
5
|
+
--internal-or-log-viewer-controls-margin: var(--or-log-viewer-controls-margin, 0);
|
|
6
|
+
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([hidden]) {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#container {
|
|
15
|
+
display: flex;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#msg {
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
text-align: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#msg:not([hidden]) {
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#controls {
|
|
35
|
+
flex: 0;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-wrap: wrap;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
margin: var(--internal-or-log-viewer-controls-margin);
|
|
40
|
+
padding: 0 20px 20px 20px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#controls > * {
|
|
44
|
+
margin-top: 20px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#time-controls {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#live-button {
|
|
53
|
+
margin-right: 40px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* min-width of selects is 200px somehow
|
|
57
|
+
#period-select {
|
|
58
|
+
width: 90px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#level-select {
|
|
62
|
+
width: 120px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#limit-select {
|
|
66
|
+
width: 80px;
|
|
67
|
+
}
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
#log-controls, #ending-controls, #page-controls {
|
|
71
|
+
display: flex;
|
|
72
|
+
max-width: 100%;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#ending-controls {
|
|
77
|
+
float: right;
|
|
78
|
+
margin: 0 10px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#log-controls > *, #ending-controls > *, #page-controls > * {
|
|
82
|
+
padding: 0 5px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#page-controls[hidden] {
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#ending-date {
|
|
90
|
+
min-width: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#table-container {
|
|
94
|
+
height: 100%;
|
|
95
|
+
overflow: auto;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#table {
|
|
99
|
+
width: 100%;
|
|
100
|
+
margin-bottom: 10px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#table > table {
|
|
104
|
+
width: 100%;
|
|
105
|
+
table-layout: fixed;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#table th, #table td {
|
|
109
|
+
word-wrap: break-word;
|
|
110
|
+
white-space: pre-wrap;
|
|
111
|
+
}
|
|
112
|
+
`;let OrLogViewer=OrLogViewer_1=class extends(translate(i18next)(LitElement)){constructor(){super(...arguments),this.live=!1,this._loading=!1,this._currentPage=1}static get styles(){return[css`${unsafeCSS(tableStyle)}`,style]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._cleanup(),this._unsubscribeEvents()}shouldUpdate(e){return(e.has("level")||e.has("interval")||e.has("timestamp")||e.has("limit")||e.has("categories")||e.has("filter")||e.has("live"))&&(this.live||(this._pageCount=void 0,this._currentPage=1,this._data=void 0)),this.interval||(this.interval=OrLogViewer_1.DEFAULT_INTERVAL),this.categories||(this.config&&this.config.initialCategories?this.categories=[...this.config.initialCategories]:this.categories=Object.keys(Model.SyslogCategory)),void 0===this.filter&&this.config&&this.config.initialFilter&&(this.filter=this.config.initialFilter),this.level||(this.config&&this.config.initialLevel?this.level=this.config.initialLevel:this.level=OrLogViewer_1.DEFAULT_LEVEL),this.live||this.timestamp||(this.timestamp=new Date),this._data||this.live||this._loadData(),e.has("live")&&(this.live?this._subscribeEvents():this._unsubscribeEvents()),super.shouldUpdate(e)}render(){const e=this._loading,t=this.live,i=this.config&&this.config.hideCategories,a=this.config&&this.config.hideFilter,o=this.config&&this.config.hideLevel;return html`
|
|
113
|
+
<div id="container">
|
|
114
|
+
<div id="controls">
|
|
115
|
+
<div id="log-controls">
|
|
116
|
+
${i?"":getContentWithMenuTemplate(html`<or-mwc-input .type=${InputType.BUTTON} raised ?disabled="${e}" .label="${i18next.t("categories")}" icontrailing="chevron-down"></or-mwc-input>`,this._getCategoryMenuItems(),this.categories,(e=>this._onCategoriesChanged(e)),(()=>this._onCategoriesClosed()),!0)}
|
|
117
|
+
<or-mwc-input ?hidden="${a}" .type="${InputType.TEXT}" outlined ?disabled="${e}" icontrailing="magnify" .label="${i18next.t("subCategoryFilters")}" .value="${this.filter}" @or-mwc-input-changed="${e=>this._onFilterChanged(e.detail.value)}"></or-mwc-input>
|
|
118
|
+
<or-mwc-input ?hidden="${o}" .type="${InputType.SELECT}" id="level-select" ?disabled="${e}" .label="${i18next.t("level")}" @or-mwc-input-changed="${e=>this._onLevelChanged(e.detail.value)}" .value="${this.level}" .options="${this._getLevelOptions()}"></or-mwc-input>
|
|
119
|
+
<or-mwc-input .type="${InputType.SELECT}" id="limit-select" ?disabled="${e}" .label="${i18next.t("limit")}" @or-mwc-input-changed="${e=>this._onLimitChanged(e.detail.value)}" .value="${""+this.getLimit()}" .options="${this._getLimitOptions()}"></or-mwc-input>
|
|
120
|
+
</div>
|
|
121
|
+
<div id="page-controls" ?hidden="${t||!this._pageCount||!this._data||0===this._data.length}">
|
|
122
|
+
<or-mwc-input class="button" .type="${InputType.BUTTON}" ?disabled="${e||t||1===this._currentPage}" icon="chevron-left" @or-mwc-input-changed="${()=>this._updatePage(!1)}"></or-mwc-input>
|
|
123
|
+
<span>${this._currentPage}</span><or-translate value="of"></or-translate><span>${this._pageCount}</span>
|
|
124
|
+
<or-mwc-input class="button" .type="${InputType.BUTTON}" ?disabled="${e||t||this._currentPage===this._pageCount||this._data&&this._data.length<this.getLimit()}" icon="chevron-right" @or-mwc-input-changed="${()=>this._updatePage(!0)}"></or-mwc-input>
|
|
125
|
+
</div>
|
|
126
|
+
<div id="time-controls">
|
|
127
|
+
<or-mwc-input id="live-button" .type="${InputType.CHECKBOX}" ?disabled="${e}" .label="${i18next.t("live")}" @or-mwc-input-changed="${e=>this._onLiveChanged(e.detail.value)}" .value="${this.live}"></or-mwc-input>
|
|
128
|
+
<or-mwc-input .type="${InputType.SELECT}" id="period-select" ?disabled="${e||t}" .label="${i18next.t("period")}" @or-mwc-input-changed="${e=>this.interval=e.detail.value}" .value="${this.interval}" .options="${this._getIntervalOptions()}"></or-mwc-input>
|
|
129
|
+
<div id="ending-controls">
|
|
130
|
+
<or-mwc-input class="button" .type="${InputType.BUTTON}" ?disabled="${e||t}" icon="chevron-left" @or-mwc-input-changed="${()=>this.timestamp=this._calculateTimestamp(this.timestamp,!1)}"></or-mwc-input>
|
|
131
|
+
<or-mwc-input id="ending-date" .type="${InputType.DATETIME}" ?disabled="${e||t}" label="${i18next.t("ending")}" .value="${this.timestamp}" @or-mwc-input-changed="${e=>this.timestamp=this._calculateTimestamp(moment(e.detail.value).toDate())}"></or-mwc-input>
|
|
132
|
+
<or-mwc-input class="button" .type="${InputType.BUTTON}" ?disabled="${e||t}" icon="chevron-right" @or-mwc-input-changed="${()=>this.timestamp=this._calculateTimestamp(this.timestamp,!0)}"></or-mwc-input>
|
|
133
|
+
<or-mwc-input class="button" .type="${InputType.BUTTON}" ?disabled="${e||t}" icon="chevron-double-right" @or-mwc-input-changed="${()=>this.timestamp=this._calculateTimestamp(new Date)}"></or-mwc-input>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
${e?html`<div id="msg">${i18next.t("loading")}</div>`:html`<div id="table-container">
|
|
139
|
+
${this._data?this._getTable():""}
|
|
140
|
+
</div>`}
|
|
141
|
+
</div>
|
|
142
|
+
`}_getLimitOptions(){return["25","50","100","200"]}_getLevelOptions(){return Object.keys(Model.SyslogLevel).map((e=>[e,i18next.t(e.toLocaleLowerCase())]))}_getCategoryMenuItems(){return(this.config&&this.config.allowedCategories?this.config.allowedCategories:Object.keys(Model.SyslogCategory)).map((e=>({text:i18next.t("logCategory."+e,{defaultValue:Util.capitaliseFirstLetter(e.toLowerCase().replace(/_/g," "))}),value:e})))}getLimit(){return this.limit||OrLogViewer_1.DEFAULT_LIMIT}_onCategoriesChanged(e){this._pendingCategories=e}_onCategoriesClosed(){this._pendingCategories&&(this.categories=[...this._pendingCategories],this.categories&&this.live&&(this._data=this._data.filter((e=>this.categories.find((t=>t===e.category))))),this._pendingCategories=void 0)}_onLiveChanged(e){this.live=e,e&&(this._data=[],this._pageCount=void 0,this._currentPage=1)}_onLimitChanged(e){if(!e)return void(this.limit=void 0);this.limit=parseInt(e);const t=this.getLimit();this.live&&this._data.length>t&&this._data.splice(t-1)}_onFilterChanged(e){if(this.filter=e,this.filter&&this.live){const e=this.filter.split(";");this._data=this._data.filter((t=>e.find((e=>e===t.subCategory))))}}_onLevelChanged(e){this.level=e,this.level&&this.live&&(this._data=this._data.filter((e=>this._eventMatchesLevel(e))))}_getTable(){return html`
|
|
143
|
+
<div id="table" class="mdc-data-table">
|
|
144
|
+
<table class="mdc-data-table__table" aria-label="logs list">
|
|
145
|
+
<thead>
|
|
146
|
+
<tr class="mdc-data-table__header-row">
|
|
147
|
+
<th style="width: 180px" class="mdc-data-table__header-cell" role="columnheader" scope="col">${i18next.t("timestamp")}</th>
|
|
148
|
+
<th style="width: 80px" class="mdc-data-table__header-cell" role="columnheader" scope="col">${i18next.t("level")}</th>
|
|
149
|
+
<th style="width: 130px" class="mdc-data-table__header-cell" role="columnheader" scope="col">${i18next.t("category")}</th>
|
|
150
|
+
<th style="width: 180px" class="mdc-data-table__header-cell" role="columnheader" scope="col">${i18next.t("subCategory")}</th>
|
|
151
|
+
<th style="width: 100%; min-width: 300px;" class="mdc-data-table__header-cell" role="columnheader" scope="col">${i18next.t("message")}</th>
|
|
152
|
+
</tr>
|
|
153
|
+
</thead>
|
|
154
|
+
<tbody class="mdc-data-table__content">
|
|
155
|
+
${this._data.map((e=>html`
|
|
156
|
+
<tr class="mdc-data-table__row">
|
|
157
|
+
<td class="mdc-data-table__cell">${moment(e.timestamp).format(OrLogViewer_1.DEFAULT_TIMESTAMP_FORMAT)}</td>
|
|
158
|
+
<td class="mdc-data-table__cell">${i18next.t(e.level)}</td>
|
|
159
|
+
<td class="mdc-data-table__cell">${i18next.t(e.category)}</td>
|
|
160
|
+
<td class="mdc-data-table__cell">${i18next.t(e.subCategory)}</td>
|
|
161
|
+
<td class="mdc-data-table__cell">${e.message}</td>
|
|
162
|
+
</tr>
|
|
163
|
+
`))}
|
|
164
|
+
</tbody>
|
|
165
|
+
</table>
|
|
166
|
+
</div>
|
|
167
|
+
`}_getIntervalOptions(){return["HOUR","DAY","WEEK","MONTH","YEAR"].map((e=>[e,i18next.t(e.toLowerCase())]))}_loadData(){return __awaiter(this,void 0,void 0,(function*(){if(this._loading)return;this._loading=!0;const e=yield manager.rest.api.SyslogResource.getEvents({level:this.level,per_page:this.getLimit(),page:this._currentPage,from:this._getFrom(),to:this.timestamp?this.timestamp.getTime():void 0,category:this.categories,subCategory:this.filter?this.filter.split(";"):void 0});this._loading=!1,200===e.status&&(this._pageCount=this._getPageCount(e),this._data=e.data)}))}_getPageCount(e){const t=e.headers.link;if(t){const e=linkParser(t).last;if(e)return e.page}}_updatePage(e){this._pageCount&&(e?this._currentPage<this._pageCount&&(this._data=void 0,this._currentPage++):this._currentPage>1&&(this._data=void 0,this._currentPage--))}_subscribeEvents(){return __awaiter(this,void 0,void 0,(function*(){manager.events&&(this._eventSubscriptionId=yield manager.events.subscribe({eventType:"syslog"},(e=>this._onEvent(e))))}))}_unsubscribeEvents(){this._eventSubscriptionId&&(manager.events.unsubscribe(this._eventSubscriptionId),this._eventSubscriptionId=void 0)}_getFrom(){if(this.timestamp&&this.interval)return this._calculateTimestamp(this.timestamp,!1).getTime()}_calculateTimestamp(e,t){if(!this.interval)return;const i=moment(e);if(void 0!==t)switch(this.interval){case"HOUR":i.add(t?1:-1,"hour");break;case"DAY":i.add(t?1:-1,"day");break;case"WEEK":i.add(t?1:-1,"week");break;case"MONTH":i.add(t?1:-1,"month");break;case"YEAR":i.add(t?1:-1,"year")}return i.toDate()}_onEvent(e){if(this.categories&&!this.categories.find((t=>t===e.category)))return;if(this.filter&&!this.filter.split(";").find((t=>t===e.subCategory)))return;if(!this._eventMatchesLevel(e))return;const t=this.getLimit();this._data.length===t-1&&this._data.pop(),this._data.splice(0,0,e),this._refresh&&window.clearTimeout(this._refresh),this._refresh=window.setTimeout((()=>this.requestUpdate("_data")),2e3)}_eventMatchesLevel(e){return!this.level||"INFO"===this.level||"WARN"===this.level&&("WARN"===e.level||"ERROR"===e.level)||"ERROR"===this.level&&"ERROR"===e.level}_cleanup(){this._table&&(this._table.destroy(),this._table=void 0),this._refresh&&window.clearTimeout(this._refresh)}};OrLogViewer.DEFAULT_TIMESTAMP_FORMAT="L HH:mm:ss",OrLogViewer.DEFAULT_LIMIT=50,OrLogViewer.DEFAULT_LEVEL="INFO",OrLogViewer.DEFAULT_INTERVAL="HOUR",__decorate([property({type:String})],OrLogViewer.prototype,"interval",void 0),__decorate([property({type:Number})],OrLogViewer.prototype,"timestamp",void 0),__decorate([property({type:Number})],OrLogViewer.prototype,"limit",void 0),__decorate([property({type:Array})],OrLogViewer.prototype,"categories",void 0),__decorate([property({type:String})],OrLogViewer.prototype,"filter",void 0),__decorate([property({type:String})],OrLogViewer.prototype,"level",void 0),__decorate([property({type:Boolean})],OrLogViewer.prototype,"live",void 0),__decorate([property({type:Object})],OrLogViewer.prototype,"config",void 0),__decorate([property()],OrLogViewer.prototype,"_loading",void 0),__decorate([property()],OrLogViewer.prototype,"_data",void 0),__decorate([query("#table")],OrLogViewer.prototype,"_tableElem",void 0),OrLogViewer=OrLogViewer_1=__decorate([customElement("or-log-viewer")],OrLogViewer);export{OrLogViewer};
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,EACH,GAAG,EACH,IAAI,EACJ,UAAU,EAGV,SAAS,EACZ,MAAM,KAAK,CAAC;AACb,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,OAAO,EAAE,EAAC,aAAa,EAAE,aAAa,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,4CAA4C,CAAC;AACpD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAC,SAAS,EAAsB,MAAM,4CAA4C,CAAC;AAE1F,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,2CAA2C,CAAC;AACnD,OAAO,EAAC,0BAA0B,EAAC,MAAM,2CAA2C,CAAC;AAIrF,uFAAuF;AACvF,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChD,MAAM,UAAU,GAAG,OAAO,CAAC,8CAA8C,CAAC,CAAC;AAY3E,eAAe;AACf,MAAM,KAAK,GAAG,GAAG,CAAA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AAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;8CACD;AAGjB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CACH;AAGf;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;+CACmB;AAGpC;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;2CACF;AAGhB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0CACQ;AAG1B;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;yCACG;AAGtB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;2CACI;AAGnB;IADT,QAAQ,EAAE;6CACyB;AAG1B;IADT,QAAQ,EAAE;0CAC2B;AAG5B;IADT,KAAK,CAAC,QAAQ,CAAC;+CACsB;AA7C7B,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAsdvB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openremote/or-log-viewer",
|
|
3
|
+
"version": "1.2.0-snapshot.20240512160221",
|
|
4
|
+
"description": "OpenRemote syslog viewer",
|
|
5
|
+
"main": "dist/umd/index.bundle.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./*": "./lib/*.js"
|
|
10
|
+
},
|
|
11
|
+
"types": "lib/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"No tests\" && exit 0",
|
|
14
|
+
"prepublishOnly": "npx webpack"
|
|
15
|
+
},
|
|
16
|
+
"author": "OpenRemote",
|
|
17
|
+
"license": "AGPL-3.0-or-later",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@material/data-table": "^9.0.0",
|
|
20
|
+
"@openremote/core": "1.2.0-snapshot.20240512160221",
|
|
21
|
+
"@openremote/or-mwc-components": "1.2.0-snapshot.20240512160221",
|
|
22
|
+
"lit": "^2.0.2",
|
|
23
|
+
"moment": "^2.29.4",
|
|
24
|
+
"parse-link-header": "^2.0.0",
|
|
25
|
+
"url": "^0.11.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@openremote/util": "1.2.0-snapshot.20240512160221"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|