clocktopus 1.6.9 → 1.6.11
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/README.md +1 -1
- package/dist/dashboard/views.js +7 -1
- package/dist/lib/ensure-native-addons.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ xattr -cr /Applications/Clocktopus.app
|
|
|
74
74
|
|
|
75
75
|
The app manages the dashboard server for you:
|
|
76
76
|
|
|
77
|
-
- **Install Clocktopus** — if the CLI is not installed, the popup offers a one-click installer that runs `bun
|
|
77
|
+
- **Install Clocktopus** — if the CLI is not installed, the popup offers a one-click installer that runs `bun i -g clocktopus --trust` for you.
|
|
78
78
|
- **Start Server** — when the dashboard is not running, the popup shows a "Start Server" button. Click it and the app spawns `clocktopus dash` in the background, then loads the dashboard once it's up.
|
|
79
79
|
- **Stop Server** / **Restart Server** — available from the tray menu when the server is reachable. Stop also kills any pre-existing process on port 4001 (terminal, PM2, prior session).
|
|
80
80
|
|
package/dist/dashboard/views.js
CHANGED
|
@@ -860,7 +860,7 @@ export function indexPage() {
|
|
|
860
860
|
}
|
|
861
861
|
const jira = s.jiraTicket || '-';
|
|
862
862
|
const deleteBtn = s.completedAt
|
|
863
|
-
? '<button class="delete-btn" title="Delete entry"
|
|
863
|
+
? '<button class="delete-btn" title="Delete entry" data-delete-id="' + escapeHtml(s.id) + '">×</button>'
|
|
864
864
|
: '';
|
|
865
865
|
return '<tr>' +
|
|
866
866
|
'<td>' + escapeHtml(s.description) + '</td>' +
|
|
@@ -904,6 +904,12 @@ export function indexPage() {
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
+
document.addEventListener('click', function(e) {
|
|
908
|
+
const btn = e.target.closest && e.target.closest('[data-delete-id]');
|
|
909
|
+
if (!btn) return;
|
|
910
|
+
deleteSession(btn.getAttribute('data-delete-id'));
|
|
911
|
+
});
|
|
912
|
+
|
|
907
913
|
function escapeHtml(str) {
|
|
908
914
|
const div = document.createElement('div');
|
|
909
915
|
div.textContent = str;
|
|
@@ -61,7 +61,7 @@ export function ensureNativeAddons() {
|
|
|
61
61
|
if (!nodeGypCmd) {
|
|
62
62
|
console.warn('Warning: node-gyp not found. Native addons could not be built.');
|
|
63
63
|
console.warn(' Install Node.js (includes npx) then restart, or run:');
|
|
64
|
-
console.warn(' bun
|
|
64
|
+
console.warn(' bun i -g clocktopus --trust');
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
const failed = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clocktopus",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.11",
|
|
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",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"clocktopus": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"preferGlobal": true,
|
|
11
12
|
"files": [
|
|
12
13
|
"dist",
|
|
13
14
|
"data/.gitkeep",
|