Update static/index.html
Browse files- static/index.html +86 -103
static/index.html
CHANGED
@@ -1,115 +1,98 @@
|
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
-
<head>
|
4 |
-
|
5 |
-
|
6 |
-
<title>AnyCoder AI Code Generator</title>
|
7 |
-
<meta name="description" content="Generate, modify, and understand code with the most advanced AI models." />
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<p>Your AI partner for generating, modifying, and understanding code.</p>
|
16 |
-
</header>
|
17 |
|
18 |
-
|
19 |
-
<
|
20 |
-
|
21 |
-
<label for="model" class="visually-hidden">AI Model</label>
|
22 |
-
<select id="model" name="model">
|
23 |
-
<!-- options populated by script -->
|
24 |
-
</select>
|
25 |
-
</section>
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
</div>
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
<
|
39 |
-
<
|
40 |
-
<
|
41 |
-
|
42 |
-
|
43 |
-
<label for="website-url">Website URL</label>
|
44 |
-
<input type="url" id="website-url" placeholder="https://example.com" />
|
45 |
-
</div>
|
46 |
-
</section>
|
47 |
|
48 |
-
|
49 |
-
<
|
50 |
-
|
51 |
-
<select id="language">
|
52 |
-
<option value="python">Python</option>
|
53 |
-
<option value="c">C</option>
|
54 |
-
<option value="cpp">C++</option>
|
55 |
-
<option value="markdown">Markdown</option>
|
56 |
-
<option value="latex">LaTeX</option>
|
57 |
-
<option value="json">JSON</option>
|
58 |
-
<option value="html">HTML</option>
|
59 |
-
<option value="css">CSS</option>
|
60 |
-
<option value="javascript">JavaScript</option>
|
61 |
-
<option value="jinja2">Jinja2</option>
|
62 |
-
<option value="typescript">TypeScript</option>
|
63 |
-
<option value="yaml">YAML</option>
|
64 |
-
<option value="dockerfile">Dockerfile</option>
|
65 |
-
<option value="shell">Shell</option>
|
66 |
-
<option value="r">R</option>
|
67 |
-
<option value="sql">SQL (generic)</option>
|
68 |
-
<option value="sql-msSQL">SQL - MS SQL</option>
|
69 |
-
<option value="sql-mySQL">SQL - MySQL</option>
|
70 |
-
<option value="sql-mariaDB">SQL - MariaDB</option>
|
71 |
-
<option value="sql-sqlite">SQL - SQLite</option>
|
72 |
-
<option value="sql-cassandra">SQL - Cassandra</option>
|
73 |
-
<option value="sql-plSQL">SQL - PL/SQL</option>
|
74 |
-
<option value="sql-hive">SQL - Hive</option>
|
75 |
-
<option value="sql-pgSQL">SQL - PostgreSQL</option>
|
76 |
-
<option value="sql-gql">SQL - GraphQL</option>
|
77 |
-
<option value="sql-gpSQL">SQL - Greenplum</option>
|
78 |
-
<option value="sql-sparkSQL">SQL - SparkSQL</option>
|
79 |
-
<option value="sql-esper">SQL - Esper</option>
|
80 |
-
</select>
|
81 |
-
<div class="search-toggle">
|
82 |
-
<input type="checkbox" id="web-search" />
|
83 |
-
<label for="web-search">Enable Web Search</label>
|
84 |
-
</div>
|
85 |
-
</section>
|
86 |
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
<
|
98 |
-
|
|
|
|
|
|
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
<
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
</main>
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
</html>
|
|
|
1 |
+
<!-- index.html -->
|
2 |
<!DOCTYPE html>
|
3 |
<html lang="en">
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
7 |
|
8 |
+
<!-- Title & SEO -->
|
9 |
+
<title>AnyCoder AI Code Generator</title>
|
10 |
+
<meta
|
11 |
+
name="description"
|
12 |
+
content="Generate, modify, and understand code with the most advanced AI models."
|
13 |
+
/>
|
|
|
|
|
14 |
|
15 |
+
<!-- External CSS -->
|
16 |
+
<link rel="stylesheet" href="/static/style.css" />
|
17 |
+
</head>
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
<body>
|
20 |
+
<!-- ────────────── Header ────────────── -->
|
21 |
+
<header>
|
22 |
+
<h1>🚀 AnyCoder AI</h1>
|
23 |
+
<p>Your AI partner for generating, modifying, and understanding code.</p>
|
24 |
+
</header>
|
|
|
25 |
|
26 |
+
<!-- ────────────── Main UI ────────────── -->
|
27 |
+
<main>
|
28 |
+
<!-- 1‑ Select Model -->
|
29 |
+
<section aria-labelledby="model-selection">
|
30 |
+
<h2 id="model-selection">1. Select Model</h2>
|
31 |
+
<label class="visually-hidden" for="model">AI Model</label>
|
32 |
+
<select id="model"></select>
|
33 |
+
</section>
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
<!-- 2‑ Provide Context -->
|
36 |
+
<section aria-labelledby="context-input">
|
37 |
+
<h2 id="context-input">2. Provide Context</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
+
<div class="tabs" role="tablist">
|
40 |
+
<button role="tab" id="tab-prompt" aria-controls="panel-prompt" aria-selected="true">Prompt</button>
|
41 |
+
<button role="tab" id="tab-file" aria-controls="panel-file" aria-selected="false">File</button>
|
42 |
+
<button role="tab" id="tab-website" aria-controls="panel-website" aria-selected="false">Website</button>
|
43 |
+
</div>
|
44 |
|
45 |
+
<div id="panel-prompt" role="tabpanel"><textarea id="prompt" placeholder="Describe what you want to build…"></textarea></div>
|
46 |
+
<div id="panel-file" role="tabpanel" hidden>
|
47 |
+
<label for="reference-file">Reference File</label>
|
48 |
+
<input type="file" id="reference-file" accept=".pdf,.docx,.txt" />
|
49 |
+
</div>
|
50 |
+
<div id="panel-website" role="tabpanel" hidden>
|
51 |
+
<label for="website-url">Website URL</label>
|
52 |
+
<input type="url" id="website-url" placeholder="https://example.com" />
|
53 |
+
</div>
|
54 |
+
</section>
|
55 |
|
56 |
+
<!-- 3‑ Configure Output -->
|
57 |
+
<section aria-labelledby="output-config">
|
58 |
+
<h2 id="output-config">3. Configure Output</h2>
|
59 |
+
<label for="language">Target Language</label>
|
60 |
+
<select id="language">
|
61 |
+
<option value="html">HTML</option>
|
62 |
+
<option value="python">Python</option>
|
63 |
+
<option value="javascript">JavaScript</option>
|
64 |
+
<option value="transformers.js">Transformers.js</option>
|
65 |
+
</select>
|
|
|
66 |
|
67 |
+
<div class="search-toggle">
|
68 |
+
<input type="checkbox" id="web-search" />
|
69 |
+
<label for="web-search">Enable Web Search</label>
|
70 |
+
</div>
|
71 |
+
</section>
|
72 |
+
|
73 |
+
<!-- Actions -->
|
74 |
+
<section class="actions">
|
75 |
+
<button id="clear" type="button">Clear Session</button>
|
76 |
+
<button id="generate" type="button">Generate Code</button>
|
77 |
+
</section>
|
78 |
+
|
79 |
+
<!-- 4‑ Output Tabs -->
|
80 |
+
<section aria-labelledby="output-tabs">
|
81 |
+
<h2 id="output-tabs" class="visually-hidden">Output</h2>
|
82 |
+
|
83 |
+
<div class="tabs" role="tablist">
|
84 |
+
<button role="tab" id="tab-code" aria-controls="panel-code" aria-selected="true">Code</button>
|
85 |
+
<button role="tab" id="tab-preview" aria-controls="panel-preview" aria-selected="false">Live Preview</button>
|
86 |
+
<button role="tab" id="tab-history" aria-controls="panel-history" aria-selected="false">History</button>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
<div id="panel-code" role="tabpanel"><pre><code id="code-output"></></code></pre></div>
|
90 |
+
<div id="panel-preview" role="tabpanel" hidden><iframe id="preview" title="Live preview" sandbox="allow-scripts allow-same-origin"></iframe></div>
|
91 |
+
<div id="panel-history" role="tabpanel" hidden><ul id="history-list" aria-live="polite"></ul></div>
|
92 |
+
</section>
|
93 |
+
</main>
|
94 |
+
|
95 |
+
<!-- External JavaScript (ES module) -->
|
96 |
+
<script type="module" src="/static/index.js"></script>
|
97 |
+
</body>
|
98 |
</html>
|