-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
271 lines (264 loc) · 12.5 KB
/
index.html
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>my expenses</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/core.css" />
<link rel="stylesheet" href="css/myx.css" />
<link rel="stylesheet" href="css/menubox.css" />
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="https://suppenhuhn79.github.io/on-screen-console/onscreenconsole.js"></script>
<script src="https://suppenhuhn79.github.io/pagesnippets/pagesnippets.js"></script>
<script src="js/vanilla-tools/htmlbuilder.js"></script>
<script src="js/vanilla-tools/menubox.js"></script>
<script src="js/lib/prototypes.js"></script>
<script src="js/lib/tools.js"></script>
<script src="js/lib/googleappapi.js"></script>
</head>
<body>
<div id="header">
<h1>my expenses</h1>
</div>
<div id="client">
<!-- not sigend in -->
<div id="not-signed-in" data-choice-client="not-signed-in" class="fullscreen-msg">
<div class="fullscreen-msg">
<div class="icon">
<i class="icon far" data-icon="smiley-meh"></i>
</div>
<div class="label">You are not sigend in.</div>
<div id="signin-button" class="click">Click here to sign in.</div>
</div>
</div>
<!-- dummy tab -->
<!-- TODO: new dummy tab matching new home screen -->
<div id="data-dummy" data-choice-client="data-dummy">
<div class="client-header">
<div><span class="dummy text w2"></span></div>
<div class="center flex-fill"><span class="dummy text w9"></span></div>
<div><span class="dummy text w2"></span></div>
</div>
<div class="content list">
<div class="headline"><span class="dummy text w9"></span></div>
<div class="item">
<div class="cat icon dummy"> </div>
<span class="dummy text w9"> </span>
</div>
<div class="item">
<div class="cat icon dummy"> </div>
<span class="dummy text w9"> </span>
</div>
<div class="item">
<div class="cat icon dummy"> </div>
<span class="dummy text w9"> </span>
</div>
</div>
</div>
<div id="home-tab" data-choice-client="home-tab">
<div class="client-header">
<div>DASHBOARD</div>
</div>
<div name="content" class="content">
<div class="headline cutoff" name="headline"></div>
<div class="white">
<div class="wide-flex grey">
<div class="flex-fill">Expenses this month so far:</div>
<i class="fas click hover light-grey" data-icon="filter" name="filter-sum-button"></i>
</div>
<div name="this-month-total" class="click" style="margin: 1rem; font-size: 3.5rem; padding-left: 0.35em; text-align: center; text-shadow: 0.05em 0.05em 0.3em #00000052"><i class="fas" data-icon="hourglass_half"></i></div>
<div class="wide-flex grey">
<div class="flex-fill">Progress:</div>
<i class="fas click hover light-grey" data-icon="cog" name="progress-settings"></i>
</div>
<div style="margin: 0.5rem 2rem 1rem 2rem">
<div class="small uppercase">Month</div>
<div name="progress-bar-month"></div>
<div class="small uppercase">Budget</div>
<div name="progress-bar-budget"></div>
</div>
</div>
<div class="white">
<div class="wide-flex grey" style="margin-bottom: 0.5em">
<div class="flex-fill">Latest expense:</div>
<i class="fas click hover light-grey" data-icon="forward" name="goto-expenses-button"></i>
</div>
<div class="latest-expense click" name="latest-expense-wrapper">
<div name="latest-expense-date" style="margin-bottom: 0.5em"></div>
<div name="latest-expense-item" class="content list" style="padding: 0; overflow: hidden"></div>
</div>
<!-- </div> -->
<!-- <div class="white"> -->
<div>
<div class="wide-flex grey">
<div class="flex-fill">Add expense:</div>
<i class="fas click hover light-grey" data-icon="pen" name="goto-categories-button"></i>
</div>
<div name="category-selector" class="selector labled-icons-grid flex-fill" style="padding: 0.5rem 0"></div>
</div>
</div>
</div>
</div>
<!-- client tab "EXPENSES" -->
<div id="expenses-tab" data-choice-client="expenses-tab">
<div name="month-navigator" class="client-header for-mode default-mode">
<div class="click">
<span name="nav-previous"><span class="dummy w2"></span></span>
<i class="fas" data-icon="angle-left">?</i>
</div>
<div class="center flex-fill click">
<i class="far" data-icon="calendar">?</i>
<span name="nav-current"><span class="dummy w9"></span></span>
</div>
<div class="click">
<i class="fas" data-icon="angle-right">?</i>
<span name="nav-next"><span class="dummy w2"></span></span>
</div>
</div>
<div name="search-header" class="client-header for-mode search-mode">
<div class="wide-flex flex-fill cutoff">
<!-- <i class="fas" data-icon="search">?</i> -->
<div name="search-hint" class="wide-flex cutoff">?</div>
</div>
<i name="back-search-button" class="click fas" data-icon="backward">?</i>
<i name="cancel-search-button" class="click fas" data-icon="times">?</i>
</div>
<div name="multiselect-header" class="client-header for-mode multiselect-mode">
<div class="wide-flex flex-fill cutoff">
<!-- <i class="fas" data-icon="search">?</i> -->
<div name="multiselect-hint" class="cutoff">?</div>
<div name="multiselect-sum" class="flex-fill right cutoff">?</div>
</div>
<i name="edit-multiselect-button" class="click fas" data-icon="pen">?</i>
<i name="cancel-multiselect-button" class="click fas" data-icon="times">?</i>
</div>
<div name="content" class="content list">?</div>
<div name="add-expense-button" class="for-mode default-mode click">
<i class="fas" data-icon="plus">?</i>
</div>
</div>
<!-- client tab "CATEGORIES" -->
<div id="categories-tab" data-choice-client="categories-tab">
<div class="client-header">
<span class="flex-fill">categories</span>
<i name="search-button" class="click for-mode default-mode fas" data-icon="search">?</i>
<i name="edit-button" class="click for-mode default-mode fas" data-icon="pen">?</i>
<i name="add-button" class="click for-mode default-mode fas" data-icon="plus-square">?</i>
<i name="cancel-search-button" class="click for-mode search-mode fas" data-icon="times">?</i>
<i name="apply-edits-button" class="click for-mode edit-mode fas" data-icon="check">?</i>
<i name="cancel-edits-button" class="click for-mode edit-mode fas" data-icon="times">?</i>
</div>
<div class="content list">
<div class="for-mode default-mode headline">Tap category to add expense</div>
<div class="for-mode edit-mode headline">Edit categories or add sub-categories</div>
<div class="for-mode search-mode headline">Tap category to search for expenses</div>
<div name="content"> </div>
</div>
</div>
<!-- client tab "PAYMENT METHODS" -->
<div id="payment-methods-tab" data-choice-client="payment-methods-tab">
<div class="client-header">
<span class="flex-fill">payment methods</span>
<i name="search-button" class="click for-mode default-mode fas" data-icon="search">?</i>
<i name="edit-button" class="click for-mode default-mode fas" data-icon="pen">?</i>
<i name="add-button" class="click for-mode default-mode fas" data-icon="plus-square">?</i>
<i name="cancel-search-button" class="click for-mode search-mode fas" data-icon="times">?</i>
<i name="apply-edits-button" class="click for-mode edit-mode fas" data-icon="check">?</i>
<i name="cancel-edits-button" class="click for-mode edit-mode fas" data-icon="times">?</i>
</div>
<div class="content list" data-choice="default-payment-method">
<div class="for-mode default-mode edit-mode headline">Active payment methods</div>
<div class="for-mode search-mode headline">Tap payment method to search for expenses</div>
<div name="content"> </div>
</div>
</div>
<!-- STATSISTICS -->
<div id="statistics-tab" data-choice-client="statistics-tab">
<div class="client-header">
<span class="flex-fill">Statistics</span>
<i name="filter-select-button" class="click fas" data-icon="filter">?</i>
<i name="chart-select-button" class="click fas" data-icon="chart-line">?</i>
</div>
<div class="content list">
<div name="headline" class="headline"> </div>
<div class="white">
<div class="wide-flex">
<div class="flex-fill big bold cutoff" name="title"></div>
<div class="amt big bold" name="amount"></div>
</div>
<div id="statistics-buttons" class="wide-flex">
<div class="button-group wide-flex">
<i class="fas icon" data-icon="angle-left" name="navigate-prev-time">?</i>
<i class="fas icon" data-icon="angle-right" name="navigate-next-time">?</i>
</div>
<div class="button-group wide-flex" data-choice="time-range-mode">
<i class="fas icon" data-icon="calendar-day" data-choice-value="month">?</i>
<i class="fas icon" data-icon="calendar-alt" data-choice-value="year">?</i>
<i class="fas icon" data-icon="infinite" data-choice-value="all">?</i>
</div>
<div class="flex-fill"> </div>
<div class="button-group wide-flex" data-choice="calculation-mode">
<i class="fas icon" data-icon="plus" data-choice-value="sum">?</i>
<i class="fas icon" data-icon="divide" data-choice-value="mavg">?</i>
</div>
</div>
</div>
<div name="content"></div>
</div>
</div>
</div>
<!-- bottom menu -->
<div id="bottom-menu" data-choice="active-tab" class="buttons hidden">
<div name="home-tab" data-choice-value="home-tab" class="labeled-icon">
<i class="fas" data-icon="home">?</i>
<span class="cutoff">home</span>
</div>
<!--
<div name="payment-methods-tab" data-choice-value="payment-methods-tab" class="labeled-icon">
<i class="fas" data-icon="wallet">?</i>
<span class="cutoff">payment methods</span>
</div>
<div name="categories-tab" data-choice-value="categories-tab" class="labeled-icon">
<i class="fas" data-icon="boxes">?</i>
<span class="cutoff">categories</span>
</div>
-->
<div name="data-selection-button" class="labeled-icon" data-current="">
<i class="fas" data-icon="boxes">?</i>
<span class="cutoff">categories</span>
</div>
<div name="expenses-tab" data-choice-value="expenses-tab" class="labeled-icon">
<i class="fas" data-icon="list-ul">?</i>
<span class="cutoff">expenses</span>
</div>
<div name="statistics-tab" data-choice-value="statistics-tab" class="labeled-icon">
<i class="fas" data-icon="chart-bar">?</i>
<span>statistics</span>
</div>
<div data-choice-value="not-signed-in" style="display: none"></div>
<div data-choice-value="data-dummy" style="display: none"></div>
<!-- <div data-choice-value="home-tab" style="display: none"></div> -->
<div data-choice-value="payment-methods-tab" style="display: none"></div>
<div data-choice-value="categories-tab" style="display: none"></div>
<div data-choice-value="labels-tab" style="display: none"></div>
<div data-choice-value="expense-editor" style="display: none"></div>
<div data-choice-value="icon-editor" style="display: none"></div>
</div>
<div id="xhr-indicator"> </div>
<script src="js/commons.js"></script>
<script src="js/home.js"></script>
<script src="js/paymentmethods.js"></script>
<script src="js/categories.js"></script>
<script src="js/statistics.js"></script>
<script src="js/aggregator.js"></script>
<script src="js/dataindex.js"></script>
<script src="js/repeatingexpenses.js"></script>
<script src="js/expenses.js"></script>
<script src="js/menuboxes.js"></script>
<script src="js/app.js"></script>
<script src="js/debug.js" defer="defer" async="async"></script>
</body>
</html>