clocktopus 1.5.0 → 1.5.1

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 CHANGED
@@ -72,7 +72,13 @@ After installing, remove the quarantine flag (app is not code-signed):
72
72
  xattr -cr /Applications/Clocktopus.app
73
73
  ```
74
74
 
75
- The dashboard server must be running (`clocktopus serve`). See [desktop/README.md](desktop/README.md) for details.
75
+ The app manages the dashboard server for you:
76
+
77
+ - **Install Clocktopus** — if the CLI is not installed, the popup offers a one-click installer that runs `bun install -g clocktopus` for you.
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
+ - **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
+
81
+ See [desktop/README.md](desktop/README.md) for details.
76
82
 
77
83
  ---
78
84
 
@@ -5,8 +5,14 @@ export function indexPage() {
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <title>Clocktopus Dashboard</title>
8
+ <script>
9
+ if (!window.__TAURI_INTERNALS__ && !window.__TAURI__) {
10
+ document.documentElement.classList.add('browser');
11
+ }
12
+ </script>
8
13
  <style>
9
14
  * { box-sizing: border-box; margin: 0; padding: 0; }
15
+ html.browser { background: #0d1117; }
10
16
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: transparent; color: #e1e4e8; padding: 2rem; }
11
17
  h1 { font-size: 1.8rem; margin-bottom: 0; color: #fff; }
12
18
  h2 { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clocktopus",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {