Update view DPELP
This commit is contained in:
		
							parent
							
								
									abfe83fb29
								
							
						
					
					
						commit
						64e2046402
					
				| 
						 | 
					@ -343,12 +343,14 @@ Route.post('/api/wiki/page/insert', async ({ request, response }) => {
 | 
				
			||||||
    if(typeof dataPayload === "string")
 | 
					    if(typeof dataPayload === "string")
 | 
				
			||||||
    text = dataPayload.replace(/\\n/g, '\n')
 | 
					    text = dataPayload.replace(/\\n/g, '\n')
 | 
				
			||||||
    else if(Array.isArray(dataPayload)){
 | 
					    else if(Array.isArray(dataPayload)){
 | 
				
			||||||
 | 
					      const dataPlatform = dataPayload?.find(el => el.command?.trim() === "show platform")
 | 
				
			||||||
 | 
					      const DPELP = dataPlatform && !dataPlatform?.output?.includes("Incomplete") ? true : false
 | 
				
			||||||
    text = `<pre>
 | 
					    text = `<pre>
 | 
				
			||||||
Line ${lineNumber ?? ""}:
 | 
					Line ${lineNumber ?? ""}:
 | 
				
			||||||
PID: ${pid ?? ""}
 | 
					PID: ${pid ?? ""}
 | 
				
			||||||
VID: ${vid ?? ""}
 | 
					VID: ${vid ?? ""}
 | 
				
			||||||
SN:  ${sn ?? ""}
 | 
					SN:  ${sn ?? ""}
 | 
				
			||||||
List commands: ${dataPayload.map(value => value.command?.trim()).join(", ")}
 | 
					Tested mode: ${DPELP? "DPELP" : "DPEL"}
 | 
				
			||||||
License:  ${license ?? ""}
 | 
					License:  ${license ?? ""}
 | 
				
			||||||
</pre>
 | 
					</pre>
 | 
				
			||||||
`
 | 
					`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue