{#if show} {#if serverOnline} {#if allmodeinfo && flashProfileJson && profile}

{flashProfileJson.projectProp.platformio.default_envs}

{userdata.username}

{#each profile.modules.virtual_elments as m, i} {#if allmodeinfo[m.path]?.usedLibs[profile.projectProp.platformio.default_envs]}

(m.active = !m.active)} class="{m.active ? 'bg-green-100' : ''} cursor-pointer select-none text-black text-xs font-medium mr-2 px-0.5 py-0.5 rounded text-center">{m.path.substring(m.path.lastIndexOf("/") + 1, m.path.length)}

{/if} {/each} {#each profile.modules.sensors as m, i} {#if allmodeinfo[m.path]?.usedLibs[profile.projectProp.platformio.default_envs]}

(m.active = !m.active)} class="{m.active ? 'bg-green-100' : ''} cursor-pointer select-none text-black text-xs font-medium mr-2 px-0.5 py-0.5 rounded text-center">{m.path.substring(m.path.lastIndexOf("/") + 1, m.path.length)}

{/if} {/each} {#each profile.modules.executive_devices as m, i} {#if allmodeinfo[m.path]?.usedLibs[profile.projectProp.platformio.default_envs]}

(m.active = !m.active)} class="{m.active ? 'bg-green-100' : ''} cursor-pointer select-none text-black text-xs font-medium mr-2 px-0.5 py-0.5 rounded text-center">{m.path.substring(m.path.lastIndexOf("/") + 1, m.path.length)}

{/if} {/each} {#each profile.modules.screens as m, i} {#if allmodeinfo[m.path]?.usedLibs[profile.projectProp.platformio.default_envs]}

(m.active = !m.active)} class="{m.active ? 'bg-green-100' : ''} cursor-pointer select-none text-black text-xs font-medium mr-2 px-0.5 py-0.5 rounded text-center">{m.path.substring(m.path.lastIndexOf("/") + 1, m.path.length)}

{/if} {/each}
{#each errors as e, i}

{$t(e.msg)}

{/each} {#if Object.keys(otaJson).length !== 0}

Статус последнего обновления:

{otaJson.build === 0 && otaJson.fs === 0 ? "успешно" : "ошибка"}

{/if} {#if userBuilds} {#each userBuilds as build, i} {#if build.projectProp.platformio.default_envs === flashProfileJson.projectProp.platformio.default_envs} {#if build.status.preparation === 0 && build.status.build === 0 && build.status.fs === 0} {#if build.status.build === 2 && build.status.preparation === 2 && build.status.fs === 2} {:else} {:else} {/if} {/each}
Название Версия Время Подготовка Сборка build Сборка fs
{build.projectProp.platformio.default_envs} {build.ver} {new Date(build.dateAdded).toLocaleString("ru", { timeZone: "Europe/Vienna" })}

{"Ожидание очереди..."}

{:else}
showLog(build, "py.txt")}> {st[build.status.preparation]}
showLog(build, "build.txt")}> {st[build.status.build]}
showLog(build, "fs.txt")}>{st[build.status.fs]}
updateBuild("http://portal.iotmanager.org/compiler/userdata/builds/" + build.orderId)} class="tbl-bdy-lg ipt-lg w-full cursor-pointer select-none bg-green-100 hover:bg-green-200">

Установить

{/if} {#if build.processed} delBuild(build)} /> {/if} {/if}
{/if}
{/if} {:else}
{/if} {:else} {/if}