import { makeElement } from "../../arching-kaos-generator.js";
var welcomeSection = {
element: "div",
id: "welcome-section",
innerHTML: [
{
element : "div",
className:"where-am-i",
innerHTML: `
>
Home
`
},
{
element: "p",
innerText: "Welcome to Arching Kaos project."
},
{
element: "div",
id: "home-grid",
innerHTML: `
`
},
{
element : "h3",
innerText: "Render explicit zblock"
},
{
element: "div",
style:"padding: 1vh 1vw; display: flex; flex-direction: row; align-items: center; gap: 10px;",
innerHTML: `
`
},
{
element: "div",
className: "results-area",
innerHTML: [
{
elements: "h3",
innerText: "Results"
}
]
},
{
element: "h3",
innerText: "Manual scan"
},
{
element: "div",
id: "manual-scan-section",
innerHTML: [
{
element: "div",
className: "manual-scan",
innerHTML: [
{ element:"button", onclick:"scanStellarNetworkForPeers()", innerText:"Check Stellar Network"},
{ element:"button", onclick:"checkLocalNodeInfo()", innerText:"Check local Node"},
{ element:"button", onclick:"checkLocalPeers()", innerText:"Check local Peers"},
{ element:"button", onclick:"checkLocalSchain()", innerText:"Check Local Schain"}
]
}
]
},
{
element: "div",
className: "preview"
},
{
element: "div",
className: "dialog",
innerHTML: [
{
element: "h3",
innerText: "Progress"
},
{
element: "progress",
id: "total-progress",
value: 0
},
{
element: "progress",
id: "http-progress",
value: 0
},
{
element: "pre",
id: "current-log-message"
}
]
},
{
element: "details",
id: "logs-area",
innerHTML: [
{
element: "summary",
innerText: "Logs (click to expand)"
},
{
element: "div",
id: "logs-area-element"
}
]
}
]
};
makeElement(welcomeSection, document.querySelector('.main'));