-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
380 lines (354 loc) · 11.9 KB
/
Copy pathindex.html
File metadata and controls
380 lines (354 loc) · 11.9 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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content"
/>
<title>MedDraft - Editor Clínico</title>
<meta
name="description"
content="Editor de texto médico offline-first. Substitua o bloco de notas por Markdown, Snippets e Vim. Evoluções clínicas rápidas, seguras e privadas no navegador."
/>
<meta
name="keywords"
content="MedDraft, Editor Médico, Prontuário Offline, Markdown para Médicos, SOAP, Anamnese Rápida, CodeMirror, Privacidade de Dados"
/>
<meta name="author" content="Sidney Alves Crestani Jr." />
<meta name="theme-color" content="#0ea5e9" />
<meta property="og:type" content="website" />
<meta
property="og:url"
content="https://sidneycrestani.github.io/MedDraft/"
/>
<meta
property="og:title"
content="MedDraft | Fluxo Clínico com Foco Absoluto"
/>
<meta
property="og:description"
content="O rascunho perfeito para evoluções e anamneses. Sem nuvem, sem rastreamento, 100% local."
/>
<meta
property="og:image"
content="https://raw.githubusercontent.com/sidneycrestani/MedDraft/refs/heads/main/public/favicon/favicon.svg"
/>
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="MedDraft - Editor Clínico" />
<meta
name="twitter:description"
content="Privacidade total e velocidade para profissionais de saúde."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/src/base.css" />
<link rel="stylesheet" href="/src/layout.css" />
<link rel="stylesheet" href="/src/components.css" />
<link
rel="icon"
type="image/png"
href="/favicon/favicon-96x96.png"
sizes="96x96"
/>
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
<link rel="shortcut icon" href="/favicon/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon.png"
/>
<meta name="apple-mobile-web-app-title" content="MedDraft" />
<link rel="manifest" href="/favicon/site.webmanifest" />
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebApplication",
"name": "MedDraft",
"url": "https://sidneycrestani.github.io/MedDraft/",
"applicationCategory": "MedicalApplication",
"operatingSystem": "Web Browser",
"browserRequirements": "Requires JavaScript. Works best in Chrome/Edge/Safari.",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "BRL"
},
"author": {
"@type": "Person",
"name": "Sidney Alves Crestani Jr.",
"url": "https://sidneycrestani.github.io"
},
"featureList": "Offline-first, Local Storage, Markdown Support, Medical Snippets, Vim Mode",
"description": "Ferramenta de produtividade médica focada em privacidade local e velocidade de digitação."
}
</script>
</head>
<body>
<div id="app-menu" class="dropdown-menu">
<div class="menu-header">Configurações</div>
<label class="menu-item">
<input type="checkbox" id="check-theme" />
<span>Modo Escuro</span>
</label>
<label class="menu-item">
<input type="checkbox" id="check-vim" />
<span>Modo VIM (Edição Avançada)</span>
</label>
<div class="menu-footer">
<strong>MedDraft</strong><br />
Offline & Seguro •
<a href="https://codemirror.net/" target="_blank" class="color-inherit"
>CodeMirror 6</a
><br />
© 2025 Sidney Alves Crestani Jr.
</div>
</div>
<div id="toolbar">
<div id="brand-trigger" class="brand" title="Menu">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="logo-icon"
>
<path
d="M3 16H8L12 6L18 24L23 16H25"
stroke="currentColor"
stroke-width="2.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
<rect
x="27"
y="10"
width="3"
height="12"
rx="1"
fill="#0ea5e9"
class="cursor-blink"
/>
</svg>
<div class="brand-text">
<span class="med">Med</span><span class="draft">Draft</span>
</div>
<svg
class="chevron"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#chevron" />
</svg>
</div>
<div class="group">
<button id="btn-new" class="icon-only" title="Novo">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#file-new" />
</svg>
</button>
<input type="file" id="fileInput" hidden accept=".txt,.md" />
<button id="btn-open" title="Abrir" class="icon-only">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#folder-open" />
</svg>
</button>
<button id="btn-save" title="Baixar" class="icon-only">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#download" />
</svg>
</button>
</div>
<div class="group">
<button id="btn-undo" class="icon-only" title="Desfazer">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#undo" />
</svg>
</button>
<button id="btn-redo" class="icon-only" title="Refazer">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#redo" />
</svg>
</button>
<button id="btn-date" title="Inserir Data" class="icon-only">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#clock" />
</svg>
</button>
<button id="btn-case" title="Maiúsculas/Minúsculas">
<span class="label-aa">Aa</span>
</button>
</div>
<div class="spacer"></div>
<button
id="btn-sidebar-toggle"
class="icon-only"
title="Modelos (Snippets)"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
<use href="/icons.svg#sidebar" />
</svg>
</button>
<button id="btn-copy" class="cta" title="Copiar Texto">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#copy" />
</svg>
<span class="label">COPIAR</span>
</button>
</div>
<div id="main-layout">
<div id="editor-wrapper">
<div id="editor"></div>
</div>
<div id="sidebar">
<div class="sidebar-header">
<span id="sidebar-title">Modelos</span>
<div class="actions-row">
<button id="btn-json" class="icon-only" title="JSON Import/Export">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
>
<use href="/icons.svg#arrows" />
</svg>
</button>
<button id="btn-sidebar-close" class="icon-only" title="Fechar">
✕
</button>
</div>
</div>
<div class="sidebar-content">
<div id="view-list" class="view-container active">
<button id="btn-create-snippet" class="cta fullwidth mb10 center">
+ Criar Novo
</button>
<p class="helper-text helper-small">
Clique para inserir ou digite o atalho + <strong>Tab</strong>.
</p>
<ul id="snippet-list-ui" class="snippet-list"></ul>
</div>
<div id="view-edit" class="view-container">
<div class="edit-grid">
<div class="input-group">
<label>Nome</label>
<input type="text" id="edit-name" />
</div>
<div class="input-group">
<label>Atalho (Gatilho)</label>
<input type="text" id="edit-trigger" />
</div>
</div>
<div class="input-group flex-col flex-1">
<label>Conteúdo (${1:foco})</label>
<textarea
id="edit-content"
class="code-editor"
spellcheck="false"
></textarea>
</div>
<div class="mt-10 flex gap-8">
<button id="btn-cancel-edit" class="flex-1">Cancelar</button>
<button id="btn-save-snippet" class="cta flex-1 no-ml">
Salvar
</button>
</div>
</div>
<div id="view-json" class="view-container">
<p class="helper-text">Copie para backup ou cole para importar.</p>
<textarea
id="json-editor"
class="code-editor h300"
spellcheck="false"
></textarea>
<div class="mt-10 flex gap-8 wrap">
<button id="btn-copy-json" class="flex-1">Copiar</button>
<button id="btn-import-json" class="cta flex-1 no-ml">
Importar
</button>
</div>
<button id="btn-back-list" class="fullwidth mt-8">Voltar</button>
</div>
</div>
</div>
</div>
<div id="status">
<div class="status-item">
<span id="save-status" class="save-status">✓ Salvo</span>
</div>
<div class="status-item flex gap-10">
<span id="char-count">0 chars</span>
<span id="cursor-pos">Ln 1</span>
</div>
</div>
<div id="toast"><span id="toast-msg">Notificação</span></div>
<div id="modal-overlay" class="modal-overlay">
<div class="modal-container">
<div class="modal-header">
<h3>Iniciar Novo Rascunho?</h3>
</div>
<div class="modal-body">
<p>O texto atual será removido da tela. Você deseja salvar antes de limpar?</p>
</div>
<div class="modal-footer">
<button id="modal-btn-cancel">Cancelar</button>
<button id="modal-btn-clear" class="btn-danger">Limpar sem Salvar</button>
<button id="modal-btn-save-clear" class="cta">Salvar e Limpar</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>