PageSourceSearch

https://viddoc.ru/_nuxt/D69in_Fm.js

js viddoc.ru collected 2026-10-02 02:07:22 UTC 3,005 bytes, 1 lines download raw bytes

1import{t as g,ac as y,a9 as b,M,n as o,k as s,a3 as n,a7 as r,F as h,Z as _,Y as k,j as D,R as l,m as $,f as w}from"./BmN7H_9O.js";const x={class:"stats-cards"},B={class:"s-card"},L={class:"s-card-val"},N={class:"s-card"},R={class:"s-card-val"},S={class:"s-card"},V={class:"s-card-val"},C={class:"s-card"},E={class:"s-card-val"},F={key:0,class:"stats-table-wrap"},I={class:"stats-table"},U={class:"st-date"},j={class:"st-title"},A={class:"st-file"},H={class:"st-dur"},O={class:"st-lang"},Y={class:"st-opts"},Z={key:0,class:"st-opt-none"},q={key:1,class:"stats-empty"},z=g({__name:"stats",setup(G){y({title:"Статистика — VidDoc"});const d=b(),i=k([]),m=D(()=>{const a=i.value.reduce((t,e)=>t+(e.duration_minutes||0),0);return a<60?`${Math.round(a)} мин`:`${Math.floor(a/60)} ч ${Math.round(a%60)} мин`});function p(a){return new Date(a).toLocaleDateString("ru-RU",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function f(a){return a?a<1?`${Math.round(a*60)} сек`:`${Math.round(a)} мин`:"—"}function v(a){return{ru:"RU",en:"EN",auto:"Авто"}[a]||a}function u(a){const t=[];return a.has_speakers&&t.push("Спикеры"),a.has_formatted&&t.push("Формат."),a.has_moments&&t.push("Моменты"),a.summary_preview&&t.push("Конспект"),t}return M(async()=>{try{i.value=await $fetch("/api/transcriptions",{params:{limit:1e3}})}catch{}}),(a,t)=>(l(),o("div",null,[t[6]||(t[6]=s("div",{class:"cab-page-header"},[s("h1",null,"Статистика")],-1)),s("div",x,[s("div",B,[s("div",L,n(Math.round(r(d).usage.month)),1),t[0]||(t[0]=s("div",{class:"s-card-label"},"Минут использовано",-1))]),s("div",N,[s("div",R,n(r(d).limits.monthlyMinutes===1/0?"∞":r(d).limits.monthlyMinutes),1),t[1]||(t[1]=s("div",{class:"s-card-label"},"Лимит в месяц",-1))]),s("div",S,[s("div",V,n(r(i).length),1),t[2]||(t[2]=s("div",{class:"s-card-label"},"Транскрибаций",-1))]),s("div",C,[s("div",E,n(r(m)),1),t[3]||(t[3]=s("div",{class:"s-card-label"},"Общая длительность",-1))])]),r(i).length?(l(),o("div",F,[s("table",I,[t[4]||(t[4]=s("thead",null,[s("tr",null,[s("th",null,"Дата"),s("th",null,"Название"),s("th",null,"Файл"),s("th",null,"Длительность"),s("th",null,"Язык"),s("th",null,"Опции")])],-1)),s("tbody",null,[(l(!0),o(h,null,_(r(i),e=>(l(),o("tr",{key:e.id},[s("td",U,n(p(e.created_at)),1),s("td",j,n(e.title),1),s("td",A,n(e.filename||"—"),1),s("td",H,n(f(e.duration_minutes)),1),s("td",O,n(v(e.language)),1),s("td",Y,[(l(!0),o(h,null,_(u(e),c=>(l(),o("span",{key:c,class:"st-opt-tag"},n(c),1))),128)),u(e).length?$("",!0):(l(),o("span",Z,"—"))])]))),128))])])])):(l(),o("div",q,[...t[5]||(t[5]=[s("i",{class:"fi fi-rr-chart-histogram"},null,-1),s("p",null,"Подробная статистика появится после первых транскрибаций",-1)])]))]))}}),K=w(z,[["__scopeId","data-v-b3c74193"]]);export{K as default};

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.