-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (133 loc) · 5.56 KB
/
Copy pathindex.html
File metadata and controls
141 lines (133 loc) · 5.56 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Toshl Expense Manager</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<div class="header-content">
<h1>Toshl Expense Manager</h1>
<div class="header-actions">
<span id="connectionStatus"></span>
<button id="settingsBtn" class="settings-btn" title="Configuración">⚙️</button>
</div>
</div>
</header>
<div class="filters">
<div class="filter-group">
<label>Fecha desde:</label>
<input type="date" id="dateFrom">
</div>
<div class="filter-group">
<label>Fecha hasta:</label>
<input type="date" id="dateTo">
</div>
<div class="filter-group">
<label>Categoría:</label>
<input type="text" id="categoryFilter" placeholder="Buscar categoría">
</div>
<div class="filter-group">
<label>Tags:</label>
<div class="tags-input-wrapper">
<div id="selectedTags" class="selected-tags-inline"></div>
<input type="text" id="tagFilter" placeholder="Buscar tags">
</div>
</div>
<button id="applyFilters">Aplicar Filtros</button>
<button id="clearFilters">Limpiar</button>
<button id="refreshBtn">🔄 Refrescar</button>
</div>
<div class="total-and-charts-container">
<div class="total-section">
<div class="total-label">Total:</div>
<div id="totalAmount" class="total-amount">$0.00</div>
</div>
<div class="charts-section">
<div class="chart-card">
<h3>Gastos por Categoría</h3>
<canvas id="categoryChart"></canvas>
</div>
<div class="chart-card">
<h3>Gastos por Tags</h3>
<canvas id="tagsChart"></canvas>
</div>
</div>
</div>
<div id="batchEditBar" class="batch-edit-bar" style="display: none;">
<div class="batch-info">
<span id="selectedCount">0</span> seleccionados
</div>
<button id="batchEditBtn" class="batch-btn">Editar selección</button>
<button id="clearSelectionBtn" class="batch-btn secondary">Limpiar selección</button>
</div>
<div class="table-container">
<table id="expensesTable">
<thead>
<tr>
<th><input type="checkbox" id="selectAll"></th>
<th>Fecha</th>
<th>Categoría</th>
<th>Descripción</th>
<th>Monto</th>
<th>Tags</th>
</tr>
</thead>
<tbody id="expensesBody">
<tr>
<td colspan="6" class="loading">Conecta tu cuenta de Toshl para ver tus gastos</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="autocompleteDropdown" class="autocomplete-dropdown"></div>
<div id="toastContainer" class="toast-container"></div>
<div id="settingsModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Configuración</h2>
<button class="close-btn" id="closeModal">×</button>
</div>
<div class="modal-body">
<label for="apiToken">API Token de Toshl:</label>
<input type="password" id="apiToken" placeholder="Ingresa tu API Token">
<p class="help-text">Obtén tu API Token en <a href="https://toshl.com/developer/apps/" target="_blank">toshl.com/developer/apps/</a></p>
</div>
<div class="modal-footer">
<button id="connectBtn">Guardar y Conectar</button>
</div>
</div>
</div>
<div id="batchEditModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Editar <span id="batchEditCount">0</span> gastos</h2>
<button class="close-btn" id="closeBatchModal">×</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="batchCategory">Categoría:</label>
<input type="text" id="batchCategory" placeholder="Escribe para buscar categoría">
</div>
<div class="form-group">
<label for="batchTags">Tags:</label>
<div class="tags-input-wrapper">
<div id="batchSelectedTags" class="selected-tags-inline"></div>
<input type="text" id="batchTags" placeholder="Buscar tags">
</div>
</div>
</div>
<div class="modal-footer">
<button id="cancelBatchBtn" class="secondary">Cancelar</button>
<button id="applyBatchBtn">Aplicar cambios</button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
<script src="app.js"></script>
</body>
</html>