From c4548f5e6708661a4089220f3dc8b11cd6cfab02 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 27 Sep 2022 21:35:26 +0200 Subject: [PATCH] some style improvements --- src/tracker.ts | 12 +++++++----- styles.css | 4 ---- .../plugins/obsidian-simple-time-tracker/main.js | 14 ++++++++------ .../obsidian-simple-time-tracker/styles.css | 4 ---- test-vault/track-note-test.md | 2 +- 5 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/tracker.ts b/src/tracker.ts index 85658f6..2697ad1 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -56,10 +56,10 @@ export function displayTracker(tracker: Tracker, element: HTMLElement): void { // add timers let timer = element.createDiv({ cls: "simple-time-tracker-timers" }); let currentDiv = timer.createEl("div", { cls: "simple-time-tracker-timer" }); - let current = currentDiv.createEl("span", { cls: "simple-time-tracker-timer-time", text: "00:00" }); + let current = currentDiv.createEl("span", { cls: "simple-time-tracker-timer-time" }); currentDiv.createEl("span", { text: "CURRENT" }); let totalDiv = timer.createEl("div", { cls: "simple-time-tracker-timer" }); - let total = totalDiv.createEl("span", { cls: "simple-time-tracker-timer-time", text: "00:00" }); + let total = totalDiv.createEl("span", { cls: "simple-time-tracker-timer-time" }); totalDiv.createEl("span", { text: "TOTAL" }); // add list @@ -96,8 +96,10 @@ export function displayTracker(tracker: Tracker, element: HTMLElement): void { function getCountdownDisplay(duration: moment.Duration): string { let ret = ""; if (duration.hours() > 0) - ret += duration.hours().toString().padStart(2, "0") + ":"; - ret += duration.minutes().toString().padStart(2, "0") + ":" + duration.seconds().toString().padStart(2, "0"); + ret += duration.hours() + "h "; + if (duration.minutes() > 0) + ret += duration.minutes() + "m "; + ret += duration.seconds() + "s"; return ret; } @@ -118,5 +120,5 @@ function setCountdownValues(tracker: Tracker, current: HTMLElement, total: HTMLE } total.setText(getCountdownDisplay(moment.duration(totalDuration))); } - currentDiv.toggleClass("simple-time-tracker-grayed", !currEntry || !!currEntry.endTime); + currentDiv.hidden = !currEntry || !!currEntry.endTime; } diff --git a/styles.css b/styles.css index 64c1fd0..2eb222b 100644 --- a/styles.css +++ b/styles.css @@ -39,10 +39,6 @@ font-weight: bolder; } -.simple-time-tracker-grayed { - opacity: 25%; -} - .simple-time-tracker-table { width: 100%; margin-top: 20px; diff --git a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js index c8b5816..a0ea57b 100644 --- a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js +++ b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js @@ -113,10 +113,10 @@ function loadTracker(json) { function displayTracker(tracker, element) { let timer = element.createDiv({ cls: "simple-time-tracker-timers" }); let currentDiv = timer.createEl("div", { cls: "simple-time-tracker-timer" }); - let current = currentDiv.createEl("span", { cls: "simple-time-tracker-timer-time", text: "00:00" }); + let current = currentDiv.createEl("span", { cls: "simple-time-tracker-timer-time" }); currentDiv.createEl("span", { text: "CURRENT" }); let totalDiv = timer.createEl("div", { cls: "simple-time-tracker-timer" }); - let total = totalDiv.createEl("span", { cls: "simple-time-tracker-timer-time", text: "00:00" }); + let total = totalDiv.createEl("span", { cls: "simple-time-tracker-timer-time" }); totalDiv.createEl("span", { text: "TOTAL" }); let table = element.createEl("table", { cls: "simple-time-tracker-table" }); table.createEl("tr").append(createEl("th", { text: "Segment" }), createEl("th", { text: "Start Time" }), createEl("th", { text: "End Time" }), createEl("th", { text: "Total" })); @@ -142,8 +142,10 @@ function displayTracker(tracker, element) { function getCountdownDisplay(duration) { let ret = ""; if (duration.hours() > 0) - ret += duration.hours().toString().padStart(2, "0") + ":"; - ret += duration.minutes().toString().padStart(2, "0") + ":" + duration.seconds().toString().padStart(2, "0"); + ret += duration.hours() + "h "; + if (duration.minutes() > 0) + ret += duration.minutes() + "m "; + ret += duration.seconds() + "s"; return ret; } function setCountdownValues(tracker, current, total, currentDiv) { @@ -162,7 +164,7 @@ function setCountdownValues(tracker, current, total, currentDiv) { } total.setText(getCountdownDisplay(import_obsidian2.moment.duration(totalDuration))); } - currentDiv.toggleClass("simple-time-tracker-grayed", !currEntry || !!currEntry.endTime); + currentDiv.hidden = !currEntry || !!currEntry.endTime; } // src/main.ts @@ -201,4 +203,4 @@ var SimpleTimeTrackerPlugin = class extends import_obsidian3.Plugin { }); } }; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL21haW4udHMiLCAic3JjL3NldHRpbmdzLnRzIiwgInNyYy9zZXR0aW5ncy10YWIudHMiLCAic3JjL3RyYWNrZXIudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7IEJ1dHRvbkNvbXBvbmVudCwgUGx1Z2luLCBUZXh0Q29tcG9uZW50IH0gZnJvbSBcIm9ic2lkaWFuXCI7XHJcbmltcG9ydCB7IGRlZmF1bHRTZXR0aW5ncywgU2ltcGxlVGltZVRyYWNrZXJTZXR0aW5ncyB9IGZyb20gXCIuL3NldHRpbmdzXCI7XHJcbmltcG9ydCB7IFNpbXBsZVRpbWVUcmFja2VyU2V0dGluZ3NUYWIgfSBmcm9tIFwiLi9zZXR0aW5ncy10YWJcIjtcclxuaW1wb3J0IHsgZGlzcGxheVRyYWNrZXIsIGVuZEVudHJ5LCBpc1J1bm5pbmcsIGxvYWRUcmFja2VyLCBzYXZlVHJhY2tlciwgc3RhcnRFbnRyeSwgVHJhY2tlciB9IGZyb20gXCIuL3RyYWNrZXJcIjtcclxuXHJcbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFNpbXBsZVRpbWVUcmFja2VyUGx1Z2luIGV4dGVuZHMgUGx1Z2luIHtcclxuXHJcblx0c2V0dGluZ3M6IFNpbXBsZVRpbWVUcmFja2VyU2V0dGluZ3M7XHJcblxyXG5cdGFzeW5jIG9ubG9hZCgpOiBQcm9taXNlPHZvaWQ+IHtcclxuXHRcdGF3YWl0IHRoaXMubG9hZFNldHRpbmdzKCk7XHJcblx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XG5cclxuZnVuY3Rpb24gc2V0Q291bnRkb3duVmFsdWVzKHRyYWNrZXI6IFRyYWNrZXIsIGN1cnJlbnQ6IEhUTUxFbGVtZW50LCB0b3RhbDogSFRNTEVsZW1lbnQsIGN1cnJlbnREaXY6IEhUTUxEaXZFbGVtZW50KSB7XHJcbiAgICBsZXQgY3VyckVudHJ5ID0gdHJhY2tlci5lbnRyaWVzLmxhc3QoKTtcclxuICAgIGlmIChjdXJyRW50cnkpIHtcclxuICAgICAgICBsZXQgY3VyckR1cmF0aW9uID0gbW9tZW50KCkuZGlmZihtb21lbnQudW5peChjdXJyRW50cnkuc3RhcnRUaW1lKSk7XHJcbiAgICAgICAgaWYgKCFjdXJyRW50cnkuZW5kVGltZSlcclxuICAgICAgICAgICAgY3VycmVudC5zZXRUZXh0KGdldENvdW50ZG93bkRpc3BsYXkobW9tZW50LmR1cmF0aW9uKGN1cnJEdXJhdGlvbikpKTtcclxuXHJcbiAgICAgICAgbGV0IHRvdGFsRHVyYXRpb24gPSAwO1xyXG4gICAgICAgIGZvciAobGV0IGVudHJ5IG9mIHRyYWNrZXIuZW50cmllcykge1xyXG4gICAgICAgICAgICBpZiAoZW50cnkgPT0gY3VyckVudHJ5ICYmICFjdXJyRW50cnkuZW5kVGltZSkge1xyXG4gICAgICAgICAgICAgICAgdG90YWxEdXJhdGlvbiArPSBjdXJyRHVyYXRpb247XHJcbiAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICB0b3RhbER1cmF0aW9uICs9IG1vbWVudC51bml4KGVudHJ5LmVuZFRpbWUpLmRpZmYobW9tZW50LnVuaXgoZW50cnkuc3RhcnRUaW1lKSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgdG90YWwuc2V0VGV4dChnZXRDb3VudGRvd25EaXNwbGF5KG1vbWVudC5kdXJhdGlvbih0b3RhbER1cmF0aW9uKSkpO1xyXG4gICAgfVxyXG4gICAgY3VycmVudERpdi50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mIChlbnRyeS5lbmRUaW1lKSB7XHJcbiAgICAgICAgICAgIHJvdy5jcmVhdGVFbChcInRkXCIsIHsgdGV4dDogbW9tZW50LnVuaXgoZW50cnkuZW5kVGltZSkuZm9ybWF0KFwiWVktTU0tREQgaGg6bW06c3NcIikgfSk7XHJcbiAgICAgICAgICAgIGxldCBkdXJhdGlvbiA9IG1vbWVudC51bml4KGVudHJ5LmVuZFRpbWUpLmRpZmYobW9tZW50LnVuaXgoZW50cnkuc3RhcnRUaW1lKSk7XHJcbiAgICAgICAgICAgIHJvdy5jcmVhdGVFbChcInRkXCIsIHsgdGV4dDogZ2V0Q291bnRkb3duRGlzcGxheShtb21lbnQuZHVyYXRpb24oZHVyYXRpb24pKSB9KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc2V0Q291bnRkb3duVmFsdWVzKHRyYWNrZXIsIGN1cnJlbnQsIHRvdGFsLCBjdXJyZW50RGl2KTtcclxuICAgIGxldCBpbnRlcnZhbElkID0gd2luZG93LnNldEludGVydmFsKCgpID0+IHtcclxuICAgICAgICAvLyB3ZSBkZWxldGUgdGhlIGludGVydmFsIHRpbWVyIHdoZW4gdGhlIGVsZW1lbnQgaXMgcmVtb3ZlZFxyXG4gICAgICAgIGlmICghZWxlbWVudC5pc0Nvbm5lY3RlZCkge1xyXG4gICAgICAgICAgICB3aW5kb3cuY2xlYXJJbnRlcnZhbChpbnRlcnZhbElkKTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICBzZXRDb3VudGRvd25WYWx1ZXModHJhY2tlciwgY3VycmVudCwgdG90YWwsIGN1cnJlbnREaXYpO1xyXG4gICAgfSwgMTAwMCk7XHJcblxyXG59O1xyXG5cclxuZnVuY3Rpb24gZ2V0Q291bnRkb3duRGlzcGxheShkdXJhdGlvbjogbW9tZW50LkR1cmF0aW9uKTogc3RyaW5nIHtcclxuICAgIGxldCByZXQgPSBcIlwiO1xyXG4gICAgaWYg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0FBbUMsdUJBQXVCLENBQUMsR0FBRyxHQUFHLE1BQU07QUFDM0UsVUFBRTtBQUVGLFlBQUksVUFBVSxZQUFZO0FBQzFCLFlBQUksVUFBVSxVQUFVO0FBRXhCLFlBQUksTUFBTSxJQUFJLGlDQUFnQixHQUM1QixjQUFjLFVBQVUsUUFBUSxTQUNoQyxRQUFRLE1BQVk7QUFDcEIsY0FBSSxTQUFTO0FBQ1oscUJBQVM7QUFBQSxpQkFDSDtBQUNOLHVCQUFXLFNBQVMsS0FBSztBQUFBO0FBRTFCLGdCQUFNLFlBQVksU0FBUyxLQUFLLEtBQUssRUFBRSxlQUFlO0FBQUE7QUFFeEQsWUFBSSxTQUFTLFNBQVM7QUFFdEIsWUFBSSxPQUFPLElBQUksK0JBQWMsR0FDM0IsZUFBZSxnQkFDZixZQUFZO0FBQ2QsYUFBSyxRQUFRLFNBQVM7QUFFdEIsdUJBQWUsU0FBUztBQUFBO0FBQUE7QUFBQTtBQUFBLEVBSXBCLGVBQWU7QUFBQTtBQUNwQixXQUFLLFdBQVcsT0FBTyxPQUFPLElBQUksaUJBQWlCLE1BQU0sS0FBSztBQUFBO0FBQUE7QUFBQSxFQUd6RCxlQUFlO0FBQUE7QUFDcEIsWUFBTSxLQUFLLFNBQVMsS0FBSztBQUFBO0FBQUE7QUFBQTsiLAogICJuYW1lcyI6IFtdCn0K diff --git a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css index 64c1fd0..2eb222b 100644 --- a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css +++ b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css @@ -39,10 +39,6 @@ font-weight: bolder; } -.simple-time-tracker-grayed { - opacity: 25%; -} - .simple-time-tracker-table { width: 100%; margin-top: 20px; diff --git a/test-vault/track-note-test.md b/test-vault/track-note-test.md index 2470d8c..0103b12 100644 --- a/test-vault/track-note-test.md +++ b/test-vault/track-note-test.md @@ -1,7 +1,7 @@ This is a time tracker: ```simple-time-tracker -{"entries":[{"name":"Segment 1","startTime":1664306406,"endTime":1664306408},{"name":"Segment 2","startTime":1664306409,"endTime":1664306410},{"name":"Segment 3","startTime":1664306411,"endTime":1664306412},{"name":"Segment 4","startTime":1664306413,"endTime":1664306422},{"name":"Segment 5","startTime":1664306455,"endTime":1664306458},{"name":"Segment 6","startTime":1664306543,"endTime":1664306545},{"name":"Segment 7","startTime":1664306581,"endTime":1664306599},{"name":"Segment 8","startTime":1664306956,"endTime":1664306959},{"name":"Segment 9","startTime":1664306962,"endTime":1664306965}]} +{"entries":[{"name":"Segment 1","startTime":1664306406,"endTime":1664306408},{"name":"Segment 2","startTime":1664306409,"endTime":1664306410},{"name":"Segment 3","startTime":1664306411,"endTime":1664306412},{"name":"Segment 4","startTime":1664306413,"endTime":1664306422},{"name":"Segment 5","startTime":1664306455,"endTime":1664306458},{"name":"Segment 6","startTime":1664306543,"endTime":1664306545},{"name":"Segment 7","startTime":1664306581,"endTime":1664306599},{"name":"Segment 8","startTime":1664306956,"endTime":1664306959},{"name":"Segment 9","startTime":1664306962,"endTime":1664306965},{"name":"Segment 10","startTime":1664307015,"endTime":1664307018},{"name":"Segment 11","startTime":1664307036,"endTime":1664307039},{"name":"Segment 12","startTime":1664307055,"endTime":1664307149},{"name":"Segment 13","startTime":1664307152,"endTime":1664307159},{"name":"Segment 14","startTime":1664307169,"endTime":1664307198},{"name":"Segment 15","startTime":1664307254,"endTime":1664307270},{"name":"Segment 16","startTime":1664307272,"endTime":1664307279},{"name":"Working on stuff","startTime":1664307284,"endTime":1664307290}]} ```