feat: Números measures the site and the Prumo (0.12)
The browser records page load, upload speed and bytes, Prumo's check and the loose-art montage; the quote keeps them and Números shows average and p95 per period. Print generation and the payment-to-card time come from the database. The upload bar already estimates its remaining time.
This commit is contained in:
@@ -68,9 +68,18 @@ function tracoDoItem(lista,layout){
|
||||
proofSourceIndex:fino.index,
|
||||
proofYFraction:fracaoNoFilme(lista?layout:montagemLayout,fino.index,fino.traco.proofYFraction||0)};
|
||||
}
|
||||
// Fecha a medida da conferência quando não há mais arquivo sendo lido (0.12).
|
||||
function marcaTempos(){
|
||||
const T=window.dtfTimings;
|
||||
if(!T || T.analysisStart==null || T.analysisEnd!=null) return;
|
||||
if(!(folhas.length+artes.length)) return;
|
||||
if(folhas.some(x=>x.pct!=null) || artes.some(a=>a.lendoArte)) return;
|
||||
T.analysisEnd=performance.now();
|
||||
}
|
||||
// Avalia sozinho conforme o cliente sobe e preenche. Devolve o que ainda falta,
|
||||
// para a fila dizer em texto em vez de travar num botão.
|
||||
function avaliar(){
|
||||
marcaTempos();
|
||||
if(ehFolha()){
|
||||
if(!folhas.length) return {pronto:false, falta:'Arraste sua folha montada para começar.'};
|
||||
const pdfInvalido=folhas.find(x=>x.measurementError);
|
||||
|
||||
Reference in New Issue
Block a user