clocktopus 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/views.js +33 -27
- package/package.json +1 -1
package/dist/dashboard/views.js
CHANGED
|
@@ -13,14 +13,16 @@ export function indexPage() {
|
|
|
13
13
|
<style>
|
|
14
14
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
15
15
|
html.browser { background: #0d1117; }
|
|
16
|
+
html, body { border-radius: 12px; }
|
|
17
|
+
html { overflow: hidden; background: transparent; }
|
|
16
18
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: transparent; color: #e1e4e8; padding: 2rem; }
|
|
17
19
|
h1 { font-size: 1.8rem; margin-bottom: 0; color: #fff; }
|
|
18
20
|
h2 { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
|
|
19
21
|
|
|
20
22
|
/* Nav */
|
|
21
23
|
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
|
|
22
|
-
.nav { display: flex; gap: 0.25rem; background: #1c1f26; border-radius: 10px; padding: 0.3rem; }
|
|
23
|
-
.nav-btn { margin-top: 0; padding: 0.5rem
|
|
24
|
+
.nav { display: flex; gap: 0.25rem; background: #1c1f26; border-radius: 10px; padding: 0.3rem; flex-wrap: nowrap; }
|
|
25
|
+
.nav-btn { margin-top: 0; padding: 0.5rem 0.85rem; border: none; border-radius: 6px; background: transparent; color: #8b949e; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
|
|
24
26
|
.nav-btn:hover { color: #e1e4e8; }
|
|
25
27
|
.nav-btn.active { background: #30363d; color: #fff; }
|
|
26
28
|
.tab-content { display: none; }
|
|
@@ -112,7 +114,7 @@ export function indexPage() {
|
|
|
112
114
|
.header { flex-direction: column; gap: 0; align-items: stretch; margin-bottom: 1rem; }
|
|
113
115
|
.header h1 { display: none; }
|
|
114
116
|
.nav { justify-content: center; flex-wrap: wrap; }
|
|
115
|
-
.nav-btn { padding: 0.
|
|
117
|
+
.nav-btn { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
|
|
116
118
|
}
|
|
117
119
|
/* Project toggles */
|
|
118
120
|
.project-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid #21262d; }
|
|
@@ -147,6 +149,7 @@ export function indexPage() {
|
|
|
147
149
|
<h1>Clocktopus</h1>
|
|
148
150
|
<div class="nav">
|
|
149
151
|
<button class="nav-btn active" onclick="switchTab('home')" id="nav-home">Home</button>
|
|
152
|
+
<button class="nav-btn" onclick="switchTab('sessions')" id="nav-sessions">Sessions</button>
|
|
150
153
|
<button class="nav-btn" onclick="switchTab('projects')" id="nav-projects">Projects</button>
|
|
151
154
|
<button class="nav-btn" onclick="switchTab('calendar')" id="nav-calendar">Calendar</button>
|
|
152
155
|
<button class="nav-btn" onclick="switchTab('settings')" id="nav-settings">Settings</button>
|
|
@@ -262,30 +265,33 @@ export function indexPage() {
|
|
|
262
265
|
</div>
|
|
263
266
|
</div>
|
|
264
267
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
</
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<
|
|
282
|
-
</
|
|
283
|
-
</
|
|
284
|
-
<
|
|
285
|
-
<
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
<!-- SESSIONS TAB -->
|
|
272
|
+
<div id="tab-sessions" class="tab-content">
|
|
273
|
+
<div class="card card-full">
|
|
274
|
+
<h2>Recent Sessions</h2>
|
|
275
|
+
<div id="sessions-container" class="table-wrap">
|
|
276
|
+
<table class="sessions-table">
|
|
277
|
+
<thead>
|
|
278
|
+
<tr>
|
|
279
|
+
<th>Description</th>
|
|
280
|
+
<th>Project</th>
|
|
281
|
+
<th>Started</th>
|
|
282
|
+
<th>Duration</th>
|
|
283
|
+
<th>Jira</th>
|
|
284
|
+
<th></th>
|
|
285
|
+
</tr>
|
|
286
|
+
</thead>
|
|
287
|
+
<tbody id="sessions-body">
|
|
288
|
+
<tr><td colspan="6" class="empty-state">Loading...</td></tr>
|
|
289
|
+
</tbody>
|
|
290
|
+
</table>
|
|
291
|
+
<div id="pagination" style="display:none; margin-top:1rem; align-items:center; justify-content:center; gap:0.75rem; flex-wrap:wrap;">
|
|
292
|
+
<button id="prev-btn" onclick="changePage(-1)" style="background:#30363d; margin-top:0; padding:0.3rem 0.75rem;" disabled><</button>
|
|
293
|
+
<span id="page-info" style="font-size:0.85rem; color:#8b949e;"></span>
|
|
294
|
+
<button id="next-btn" onclick="changePage(1)" style="background:#30363d; margin-top:0; padding:0.3rem 0.75rem;">></button>
|
|
289
295
|
</div>
|
|
290
296
|
</div>
|
|
291
297
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clocktopus",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Time-tracking automation for Clockify with idle monitoring, Jira integration, Google Calendar sync, CLI, web dashboard, and desktop app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|