1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2652],{18165:(e,r,t)=>{function n(e,r=null){return null==e||""===e?r:"number"==typeof e?Number.isInteger(e)&&e>=0?e:r:"string"==typeof e&&/^\d+$/.test(e)?Number(e):r}function i(e,r){let t=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return r&&t.append("endpoint",r),t}function s(e,r,t){let n=i(e,r);return t&&n.append("query",JSON.stringify(t)),`/api/services/proxy?${n.toString()}`}t.d(r,{$C:()=>s,Sk:()=>n,_V:()=>i})},68e3:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(45911),i=t(18165);function s(e,...r){let t={};r&&r[1]?.refreshInterval&&(t.refreshInterval=r[1].refreshInterval);let l=(0,i.$C)(e,...r);""===r[0]&&(l=null);let{data:u,error:a,mutate:o}=(0,n.Ay)(l,t);return{data:u,error:u?.error??a,mutate:o}}},72652:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(89142),i=t(27030),s=t(42416),l=t(56833),u=t(68e3);function a({service:e}){let{t:r}=(0,l.Bd)(),{widget:t}=e,{data:o,error:c}=(0,u.A)(t,"metrics");if(c)return(0,n.jsx)(s.A,{service:e,error:c});if(!o)return(0,n.jsxs)(s.A,{service:e,children:[(0,n.jsx)(i.A,{label:"trilium.version"}),(0,n.jsx)(i.A,{label:"trilium.notesCount"}),(0,n.jsx)(i.A,{label:"trilium.dbSize"})]});let v=o.version?.app,d=o.database?.activeNotes||0,m=o.statistics?.databaseSizeBytes||0;return(0,n.jsxs)(s.A,{service:e,children:[(0,n.jsx)(i.A,{label:"trilium.version",value:v?`v${v}`:r("trilium.unknown")}),(0,n.jsx)(i.A,{label:"trilium.notesCount",value:r("common.number",{value:d})}),(0,n.jsx)(i.A,{label:"trilium.dbSize",value:r("common.bytes",{value:m})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.