PageSourceSearch

https://www.airgradient.com/_nuxt/-LzwRvyx.js

js airgradient.com collected 2026-09-24 09:05:48 UTC 2,316 bytes, 1 lines download raw bytes

1import{V as g}from"./DQffH0AJ.js";import{K as p,f as h,r as i,e as b,u as w,c as m,d as e,E as s,h as y,a3 as l,a as _,t as G,o as v,af as k}from"./hpNDvw06.js";const A={key:0,class:"col-12 col-lg-5"},x={class:"simulator-panel"},B=["disabled"],C=p({__name:"airgradient-go-simulator",setup(N){const r=h(),u=i("none"),d=i(!0),t=i("on"),a=b(()=>{const c=Array.isArray(r.query.headless)?r.query.headless[0]:r.query.headless;return["1","true","yes","on"].includes(String(c||"").toLowerCase())}),f=()=>{t.value!=="shutting-down"&&(d.value=t.value==="off")};return w(()=>({title:"AirGradient Go Simulator",htmlAttrs:{class:a.value?"headless":void 0},bodyAttrs:{class:["is-go-simulator-page",a.value?"headless go-simulator-page-headless":""].filter(Boolean).join(" ")},meta:[{name:"description",content:"Online UI simulator for the AirGradient Go portable air quality monitor."}]})),(c,o)=>(v(),m("section",{class:s([{section:!a.value,"go-simulator-headless":a.value}])},[e("div",{class:s(["container",{"go-simulator-container-headless":a.value,"py-5":!a.value}])},[e("div",{class:s(["row g-4",a.value?"go-simulator-row-headless":"align-items-start"])},[a.value?y("",!0):(v(),m("div",A,[...o[2]||(o[2]=[e("h1",{class:"mb-3"},"AirGradient Go Simulator",-1),e("p",null,[l(" We built this simulator to test in detail the UI, and be able to get feedback from our community. If you have any feedback, please use this "),e("a",{href:"https://forms.gle/ftj1b3vbzBoHxXwN7",target:"_blank"},"form"),l(". ")],-1),e("p",null,[l(" If you want to be informed when the actual device will become available, you can signup "),e("a",{href:"https://forms.gle/ftj1b3vbzBoHxXwN7",target:"_blank"},"on the same form"),l(". ")],-1),e("p",null,"Have Fun!",-1)])])),e("div",{class:s(["col-12 d-flex justify-content-center",a.value?"go-simulator-stage-headless":"col-lg-7"])},[e("div",x,[_(g,{activeMetric:u.value,"onUpdate:activeMetric":o[0]||(o[0]=n=>u.value=n),powered:d.value,class:"ag-go-device",onPowerPhaseChange:o[1]||(o[1]=n=>t.value=n)},null,8,["activeMetric","powered"]),e("button",{class:"power-button",type:"button",disabled:t.value==="shutting-down",onClick:f},G(t.value==="off"?"Turn On":t.value==="shutting-down"?"Powering Off...":"Turn Off"),9,B)])],2)],2)],2)],2))}}),H=k(C,[["__scopeId","data-v-f2ae297a"]]);export{H as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.