philipgreat commited on
Commit
85c57f8
·
verified ·
1 Parent(s): a76dcc5

Add controlled TeaQL query console and WebResponse facets

Browse files
dist/assets/index-DTZ5iA72.js ADDED
The diff for this file is too large to render. See raw diff
 
dist/assets/index-inj2slTy.css ADDED
@@ -0,0 +1 @@
 
 
1
+ :root{font:16px/1.5 Inter,system-ui,sans-serif;color:#e8edf5;background:#090b10;color-scheme:dark}body{margin:0}main{width:min(1120px,calc(100% - 40px));margin:6vh auto}.eyebrow{color:#d9ff52;font-size:12px;font-weight:800;letter-spacing:.16em}h1{margin:8px 0;font-size:clamp(36px,7vw,68px);letter-spacing:-.05em}.controls{display:flex;gap:18px;align-items:center;margin:32px 0}button,select{border:0;border-radius:5px;padding:10px 14px;font:inherit;font-weight:700}button{background:#d9ff52;color:#111;cursor:pointer}button:disabled{cursor:wait;opacity:.55}select{background:#202630;color:#e8edf5}#status{color:#aab4c4}.query-panel,.response-panel{margin-top:22px;border:1px solid #2b323e;border-radius:10px;background:#11151c;overflow:hidden}.query-toolbar,.response-heading{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #2b323e}.query-toolbar label{color:#aab4c4;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.query-toolbar .run{margin-left:auto;min-width:120px}textarea{box-sizing:border-box;width:100%;min-height:330px;resize:vertical;border:0;outline:0;padding:22px;background:#0c1016;color:#d9ff52;font:15px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:2}.hint{margin:0;padding:10px 16px;border-top:1px solid #2b323e;color:#7f8a9a;font-size:13px}.response-heading{justify-content:space-between}.response-heading h2{margin:0;font-size:18px}.response-heading span{color:#8c98a8;font:12px ui-monospace,monospace}pre{box-sizing:border-box;min-height:360px;margin:0;padding:22px;overflow:auto;background:#11151c;color:#c6d1df;font-size:14px}@media(max-width:640px){main{width:min(100% - 24px,1120px);margin:24px auto}.controls,.query-toolbar{align-items:stretch;flex-direction:column}.query-toolbar .run{margin-left:0}}
dist/index.html CHANGED
@@ -5,21 +5,40 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <link rel="icon" href="data:," />
7
  <title>TeaQL Browser SQLite</title>
8
- <script type="module" crossorigin src="/assets/index-LiMSU-HT.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BMClFIER.css">
10
  </head>
11
  <body>
12
  <main>
13
  <p class="eyebrow">TEAQL TYPESCRIPT RUNTIME</p>
14
  <h1>Browser-local Data Service</h1>
15
- <p>Generated Q APIs and audited mutations, backed by SQLite/WASM.</p>
16
  <p><strong>Everything runs in this browser.</strong> There is no application backend and no server-side business database.</p>
17
  <div class="controls">
18
  <label><input id="persist" type="checkbox" /> Persist locally with OPFS <span id="opfs-note"></span></label>
19
  <button id="reset">Reset demo data</button>
20
  </div>
21
  <p id="status">Starting SQLite/WASM…</p>
22
- <pre id="result"></pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  </main>
24
  </body>
25
  </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <link rel="icon" href="data:," />
7
  <title>TeaQL Browser SQLite</title>
8
+ <script type="module" crossorigin src="/assets/index-DTZ5iA72.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-inj2slTy.css">
10
  </head>
11
  <body>
12
  <main>
13
  <p class="eyebrow">TEAQL TYPESCRIPT RUNTIME</p>
14
  <h1>Browser-local Data Service</h1>
15
+ <p>Write the same generated Q API used by an application. Peggy parses it into a controlled AST; no arbitrary JavaScript is evaluated.</p>
16
  <p><strong>Everything runs in this browser.</strong> There is no application backend and no server-side business database.</p>
17
  <div class="controls">
18
  <label><input id="persist" type="checkbox" /> Persist locally with OPFS <span id="opfs-note"></span></label>
19
  <button id="reset">Reset demo data</button>
20
  </div>
21
  <p id="status">Starting SQLite/WASM…</p>
22
+ <section class="query-panel">
23
+ <div class="query-toolbar">
24
+ <label for="preset">Example</label>
25
+ <select id="preset">
26
+ <option value="facet">Rows + relation facet</option>
27
+ <option value="filter">String filter</option>
28
+ <option value="all">Bounded list</option>
29
+ </select>
30
+ <button id="run" class="run">Run query</button>
31
+ </div>
32
+ <textarea id="query" spellcheck="false" aria-label="TeaQL query"></textarea>
33
+ <p class="hint">Accepted input is the generated TypeScript Q API. Execution, imports, assignments, and browser APIs are not part of the grammar.</p>
34
+ </section>
35
+ <section class="response-panel">
36
+ <div class="response-heading">
37
+ <h2>Web Response</h2>
38
+ <span>data · metadata · facets</span>
39
+ </div>
40
+ <pre id="result"></pre>
41
+ </section>
42
  </main>
43
  </body>
44
  </html>