-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
266 lines (243 loc) · 10.3 KB
/
Copy pathindex.html
File metadata and controls
266 lines (243 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content">
<!-- Primary Meta Tags -->
<title>Chrome Built-in AI Chat App: Private, Zero-Dependency PWA</title>
<meta name="description" content="Experience the fastest, most private AI chat. Runs 100% on your device using Chrome's built-in Gemini Nano. Zero external servers, zero dependencies. Chat offline!">
<!-- Production: Use bundled CSS -->
<!--pro-start-->
<!-- <link rel="stylesheet" href="/dist/layx/layx.bundle.css">
<link rel="stylesheet" href="/dist/assets/css/chat_app/main.bundle.css"> -->
<!--pro-end-->
<!-- Development: Uncomment to use original CSS files for debugging -->
<!--dev-start-->
<link rel="stylesheet" href="/layx/layx.css">
<link rel="stylesheet" href="/assets/css/chat_app/main.css">
<!--dev-end-->
<link rel="manifest" href="layx/others/pwa/assets/app.webmanifest">
<link rel="shortcut icon" href="/assets/brand/logo.svg" type="image/svg">
<!-- Font file should be preloaded -->
<link rel="preload" href="/assets/font/Red_Hat_Display_variable.woff2" as="font" crossorigin>
</head>
<body>
<div class="chat__wrapper initial" id="chat-app-root">
<div class="side__nav">
<div class="header__wrapper">
<button class="icon__btn sidebar-toggler">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#sidebar-icon" />
</svg>
</button>
<button class="icon__btn search-btn">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#search-icon" />
</svg>
</button>
</div>
<div class="top__wrapper">
<button class="" id="new-chat-button">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#plus-icon" />
</svg>
<span>New Chat</span>
</button>
<p class="history__text">Recent</p>
</div>
<div class="history__wrapper">
<div class="scroll__container">
<div class="items__wrapper" id="chat-history-container">
</div>
</div>
</div>
<div class="footer__wrapper">
<div class="block user">
<img class="avatar__img" src="/layx/others/dynamic_render/assets/user.webp" alt="">
<div class="user__info">
<span class="name">User Name</span>
<span class="subscription">Premium</span>
</div>
</div>
<div class="block settings">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#settings-icon" />
</svg>
<span class="title__text">Settings</span>
</div>
<div class="block theme">
<div class="wrapper">
<button data-theme-value="light"></button>
<button data-theme-value="dark"></button>
<button data-theme-value="auto"></button>
</div>
</div>
</div>
</div>
<div class="main">
<div class="window__wrapper">
<div class="header__wrapper">
<div class="start__wrapper">
<button class="icon__btn sidebar-toggler">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#sidebar-icon" />
</svg>
</button>
<div class="btn icon__btn model__selector" tabindex="0">
<span>Model</span>
<svg class="icon">
<use href="/assets/image/svg/icons.svg#down-icon" />
</svg>
<div class="model__menu" id="model-menu"></div>
</div>
</div>
<div class="end__wrapper">
<div class="icon__btn quota__info__wrapper">
<svg class="icon" style="rotate: -15deg;">
<use href="/assets/image/svg/icons.svg#quote-icon" />
</svg>
<div class="quota__info__main" id="quota-info">
<div class="info__block available">
<span class="title">Available</span>
<span class="number"></span>
</div>
<div class="info__block used">
<span class="title">Used</span>
<span class="number"></span>
</div>
<div class="info__block left">
<span class="title">Left</span>
<span class="number"></span>
</div>
</div>
</div>
</div>
</div>
<div class="scroll__container" id="content-scroll-container">
<div class="chat__block__wrapper" id="content-container">
</div>
</div>
<button class="scroll-to-bottom" id="scroll-button">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#arrow-up-icon" />
</svg>
</button>
<div class="initial__content_wrapper">
<div class="content__wrapper">
<h3 class="new__chat_text">Hey, How can i help you today?</h3>
</div>
</div>
<div class="offline__content_wrapper">
<div class="content__wrapper">
<h3 class="offline__chat_text">Your offline. Get online to use Model.</h3>
</div>
</div>
</div>
<div class="action__wrapper">
<div class="chat__action" id="chat-action">
<div class="attachment__wrapper" id="file-preview-container"></div>
<textarea class="chat__textarea" id="chat-massage" placeholder="Ask to model"
enterkeyhint="send"></textarea>
<div class="bottom__wrapper">
<button class="r chat__button" id="chat-add-file">
<input type="file" id="file-input" accept="image/*, text/*, application/*" multiple style="display: none;">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#plus-icon" />
</svg>
</button>
<button class="r chat__button">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#globe-icon" />
</svg>
</button>
<button class="dark r chat__button send" id="chat-send-button">
<svg class="icon">
<use href="/assets/image/svg/icons.svg#arrow-up-icon" />
</svg>
</button>
</div>
</div>
<span class="note">Model can make mistakes. Check important info.</span>
</div>
</div>
<div class="setting_wrapper" id="settings">
<div class="wrapper">
<div class="head">
<h4 class="heading">Settings</h4>
<button class="close"></button>
</div>
<div class="link_wrapper">
<button class="link active" data-window-target="api">API</button>
<button class="link" data-window-target="ui">UI</button>
<button class="link" data-window-target="chat">Chat</button>
<button class="link" data-window-target="other">Other</button>
</div>
<div class="window__wrapper">
<div class="window api" data-window="api">
<form id="api-form">
<label for="host">Host</label>
<input class="validate invalid" type="url" name="host"
placeholder="Host URL (e.g. http://localhost:11434)" required pattern="^http[s]?:\/\/.*$">
<button class="dark submit-btn" type="submit">Save</button>
</form>
</div>
<div class="window ui" data-window="ui">
<form id="ui-form">
<label>Message Format</label>
<select name="messageFormat" class="">
<option value="markdown">Markdown</option>
<option value="plain">Plain Text</option>
</select>
<button class="dark submit-btn" type="submit">Save</button>
</form>
</div>
<div class="window chat" data-window="chat">
<form id="chat-form">
<label>Max Context Length</label>
<input type="number" name="maxContextLength" min="1" max="100" placeholder="e.g. 20 ">
<label>System Prompt</label>
<textarea name="systemPrompt" placeholder="System Prompt"></textarea>
<label>Temperature</label>
<input type="range" class="value" min="0.1" max="1" value="0.7" step="0.1">
<button class="dark submit-btn" type="submit">Save</button>
</form>
</div>
<div class="window other" data-window="other">
<label>Export</label>
<button class="export-settings lg wide">Export Settings</button>
<label>Import</label>
<button class="import-settings lg wide">Import Settings</button>
</div>
</div>
</div>
</div>
<div class="search__wrapper" id="search">
<div class="wrapper">
<div class="head">
<h4 class="heading">Search</h4>
<button class="close"></button>
</div>
<input class="search-input" type="search" name="search" placeholder="Search chat..">
<div class="result-wrapper">
</div>
</div>
</div>
</div>
<dialog class="modern __dialog middle" id="model-info"></dialog>
<!-- Production: Use bundled versions -->
<!--pro-start-->
<!-- <script src="/dist/layx/layx.bundle.js" type="module"></script>
<script src="/dist/assets/js/chat_app/main.bundle.js" type="module"></script> -->
<!--pro-end-->
<!-- Development: Uncomment to use original files for debugging -->
<!--dev-start-->
<script src="/layx/layx.js" type="module"></script>
<script defer src="/assets/js/chat_app/main.js" type="module"></script>
<!--dev-end-->
<script defer src="/assets/js/check.js"></script>
<!-- Should commented durning development -->
<!--pro-start-->
<!-- <script src="/layx/others/pwa/sw/register.js"></script> -->
<!--pro-end-->
</body>
</html>