-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjournal.html
More file actions
98 lines (91 loc) · 5.48 KB
/
Copy pathjournal.html
File metadata and controls
98 lines (91 loc) · 5.48 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Bitácora de Trading</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="static/js/config-portable.js"></script>
<script src="static/auth.js"></script>
<script src="static/js/header.js"></script>
<script src="static/js/hero.js"></script>
<script src="static/js/feedback.js"></script>
<script src="static/js/main.js"></script>
<link rel="stylesheet" href="static/css/styles.css">
<style>
body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
</style>
</head>
<body class="bg-gray-100 min-h-screen p-6">
<div id="app-header"></div>
<div id="app-hero" data-icon="📝" data-title="Bitácora" data-subtitle="Consulta, filtra y gestiona tus análisis guardados."></div>
<script>try{ Auth.requireAuth(); }catch(e){ }</script>
<div class="max-w-6xl mx-auto space-y-6">
<section class="bg-white dark-mode:bg-gray-800 rounded-lg border dark-mode:border-gray-600 p-4">
<div class="grid md:grid-cols-7 gap-3 items-end">
<div>
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Símbolo</label>
<input id="f-symbol" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm" placeholder="TSLA"/>
</div>
<div>
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Resultado</label>
<select id="f-outcome" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm">
<option value="">Todos</option>
<option value="pos">Positivo</option>
<option value="neg">Negativo</option>
<option value="neutro">Neutro</option>
</select>
</div>
<div>
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Operé</label>
<select id="f-traded" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm">
<option value="">Todos</option>
<option value="1">Sí</option>
<option value="0">No</option>
</select>
</div>
<div>
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Desde</label>
<input id="f-from" type="date" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm" />
</div>
<div>
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Hasta</label>
<input id="f-to" type="date" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm" />
</div>
<div class="md:col-span-2">
<label class="block text-sm text-gray-700 dark-mode:text-gray-300">Buscar</label>
<input id="f-q" class="mt-1 w-full rounded-md border-gray-300 dark-mode:border-gray-600 dark-mode:bg-gray-700 dark-mode:text-gray-100 shadow-sm" placeholder="título, texto, notas"/>
</div>
</div>
<div class="flex items-center justify-end gap-2 mt-3">
<button id="btn-search" class="py-1.5 px-3 rounded-md border text-gray-700 hover:bg-gray-50 dark-mode:text-gray-300 dark-mode:hover:bg-gray-700 dark-mode:border-gray-600">Buscar</button>
</div>
</section>
<section id="list" class="grid gap-3"></section>
<div id="pager" class="flex items-center justify-between">
<button id="prev" class="py-1 px-2 rounded border text-gray-700 hover:bg-gray-50 dark-mode:text-gray-300 dark-mode:hover:bg-gray-700 dark-mode:border-gray-600">« Anterior</button>
<div id="page-info" class="text-sm text-gray-600 dark-mode:text-gray-400"></div>
<button id="next" class="py-1 px-2 rounded border text-gray-700 hover:bg-gray-50 dark-mode:text-gray-300 dark-mode:hover:bg-gray-700 dark-mode:border-gray-600">Siguiente »</button>
</div>
</div>
<!-- Modal detalle/edición -->
<div id="modal" class="fixed inset-0 bg-black/50 hidden items-center justify-center z-50">
<div class="bg-white dark-mode:bg-gray-800 w-full max-w-3xl rounded-lg shadow-lg p-4 space-y-3">
<div class="flex items-center justify-between">
<div class="text-lg font-semibold dark-mode:text-gray-100">Detalle del análisis</div>
<button id="m-close" class="text-gray-500 hover:text-gray-700 dark-mode:text-gray-400 dark-mode:hover:text-gray-200">✕</button>
</div>
<div id="m-body" class="space-y-3 text-sm dark-mode:text-gray-300"></div>
<div class="flex items-center justify-end gap-2">
<span id="m-msg" class="text-sm text-gray-500 dark-mode:text-gray-400"></span>
<button id="m-reopen" class="py-1.5 px-3 rounded-md border text-gray-700 hover:bg-gray-50 dark-mode:text-gray-300 dark-mode:hover:bg-gray-700 dark-mode:border-gray-600">Reabrir en analizador</button>
<button id="m-save" class="py-1.5 px-3 rounded-md text-white bg-indigo-600 hover:bg-indigo-700 dark-mode:bg-indigo-500 dark-mode:hover:bg-indigo-600">Guardar cambios</button>
</div>
</div>
</div>
<script>
// El módulo Journal se inicializa automáticamente
// Todas las funcionalidades están ahora en static/js/journal.js
</script>
</body>
</html>