|
|
@ -149,8 +149,8 @@ Vue.component("code-box", { |
|
|
|
props: ['title', 'content', 'escape'] |
|
|
|
props: ['title', 'content', 'escape'] |
|
|
|
}); |
|
|
|
}); |
|
|
|
const socketUrl = "/detail"; |
|
|
|
const socketUrl = "/detail"; |
|
|
|
const displayConfig = <%- JSON.stringify(displayConfig) %>; |
|
|
|
const displayConfig = <%- serializejs(displayConfig) %>; |
|
|
|
const token = <%- JSON.stringify(socketToken) %>; |
|
|
|
const token = <%- serializejs(socketToken) %>; |
|
|
|
|
|
|
|
|
|
|
|
const TestcaseResultType = {}; |
|
|
|
const TestcaseResultType = {}; |
|
|
|
(function (TestcaseResultType) { |
|
|
|
(function (TestcaseResultType) { |
|
|
@ -187,8 +187,8 @@ const TaskStatus = {}; |
|
|
|
TaskStatus[TaskStatus["Skipped"] = 4] = "Skipped"; |
|
|
|
TaskStatus[TaskStatus["Skipped"] = 4] = "Skipped"; |
|
|
|
})(TaskStatus); |
|
|
|
})(TaskStatus); |
|
|
|
|
|
|
|
|
|
|
|
const unformattedCode = <%- JSON.stringify(code) %>; |
|
|
|
const unformattedCode = <%- serializejs(code) %>; |
|
|
|
const formattedCode = <%- JSON.stringify(formattedCode) %>; |
|
|
|
const formattedCode = <%- serializejs(formattedCode) %>; |
|
|
|
|
|
|
|
|
|
|
|
function toggleFormattedCode() { |
|
|
|
function toggleFormattedCode() { |
|
|
|
if (vueApp.currentFormatted) { |
|
|
|
if (vueApp.currentFormatted) { |
|
|
@ -204,14 +204,14 @@ const vueApp = new Vue({ |
|
|
|
el: '#vueAppFuckSafari', |
|
|
|
el: '#vueAppFuckSafari', |
|
|
|
data: { |
|
|
|
data: { |
|
|
|
roughData: { |
|
|
|
roughData: { |
|
|
|
info: <%- JSON.stringify(info) %>, |
|
|
|
info: <%- serializejs(info) %>, |
|
|
|
result: <%- JSON.stringify(roughResult) %>, |
|
|
|
result: <%- serializejs(roughResult) %>, |
|
|
|
running: false, |
|
|
|
running: false, |
|
|
|
displayConfig: displayConfig |
|
|
|
displayConfig: displayConfig |
|
|
|
}, |
|
|
|
}, |
|
|
|
code: <%- JSON.stringify(preferFormattedCode && formattedCode !== null) -%> ? formattedCode : unformattedCode, |
|
|
|
code: <%- serializejs(preferFormattedCode && formattedCode !== null) -%> ? formattedCode : unformattedCode, |
|
|
|
currentFormatted: <%- JSON.stringify(preferFormattedCode && formattedCode !== null) -%>, |
|
|
|
currentFormatted: <%- serializejs(preferFormattedCode && formattedCode !== null) -%>, |
|
|
|
detailResult: <%- JSON.stringify(detailResult) %>, |
|
|
|
detailResult: <%- serializejs(detailResult) %>, |
|
|
|
displayConfig: displayConfig, |
|
|
|
displayConfig: displayConfig, |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|