update routes

This commit is contained in:
joseph le 2023-09-12 15:23:11 +07:00
parent 32cee3e3d1
commit c7512e2041
1 changed files with 2 additions and 4 deletions

View File

@ -93,9 +93,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
let data = content.data.split("\n"); let data = content.data.split("\n");
data.map((line, index) => { data.map((line, index) => {
data[index] = data[index] =
"<span style='background-color:pink;'>" +
(index + 1) + (index + 1) +
"</span>" + "|-|" +
line; line;
listKeyValues listKeyValues
.map((obj) => obj.$original.value) .map((obj) => obj.$original.value)
@ -105,9 +104,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
.length === 0) { .length === 0) {
data[index] = data[index] =
data[index].slice(0, data[index].search(value)) + data[index].slice(0, data[index].search(value)) +
"<span style='background-color:yellow;'>" +
value + value +
"</span>" + "|-|" +
data[index].slice(data[index].search(value) + value.length); data[index].slice(data[index].search(value) + value.length);
// } // }
} }