diff --git a/src/tracker.ts b/src/tracker.ts index e871f9d..85658f6 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -64,6 +64,12 @@ export function displayTracker(tracker: Tracker, element: HTMLElement): void { // add list 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" })); + for (let entry of tracker.entries) { let row = table.createEl("tr"); row.createEl("td", { text: entry.name }); diff --git a/styles.css b/styles.css index 825a6cb..64c1fd0 100644 --- a/styles.css +++ b/styles.css @@ -48,6 +48,7 @@ margin-top: 20px; } -.simple-time-tracker-table td { +.simple-time-tracker-table td, +.simple-time-tracker-table th { border: none; } 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 8890a7a..c8b5816 100644 --- a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js +++ b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/main.js @@ -119,6 +119,7 @@ function displayTracker(tracker, element) { let total = totalDiv.createEl("span", { cls: "simple-time-tracker-timer-time", text: "00:00" }); 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" })); for (let entry of tracker.entries) { let row = table.createEl("tr"); row.createEl("td", { text: entry.name }); @@ -200,4 +201,4 @@ var SimpleTimeTrackerPlugin = class extends import_obsidian3.Plugin { }); } }; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsic3JjL21haW4udHMiLCAic3JjL3NldHRpbmdzLnRzIiwgInNyYy9zZXR0aW5ncy10YWIudHMiLCAic3JjL3RyYWNrZXIudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIm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GhoOm1tOnNzXCIpIH0pO1xyXG4gICAgICAgIGlmIChlbnRyeS5lbmRUaW1lKSB7XHJcbiAgICAgICAgICAgIHJvdy5jcmVhdGVFbChcInRkXCIsIHsgdGV4dDogbW9tZW50LnVuaXgoZW50cnkuZW5kVGltZSkuZm9ybWF0KFwiWVktTU0tREQgaGg6bW06c3NcIikgfSk7XHJcbiAgICAgICAgICAgIGxldCBkdXJhdGlvbiA9IG1vbWVudC51bml4KGVudHJ5LmVuZFRpbWUpLmRpZmYobW9tZW50LnVuaXgoZW50cnkuc3RhcnRUaW1lKSk7XHJcbiAgICAgICAgICAgIHJvdy5jcmVhdGVFbChcInRkXCIsIHsgdGV4dDogZ2V0Q291bnRkb3duRGlzcGxheShtb21lbnQuZHVyYXRpb24oZHVyYXRpb24pKSB9KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc2V0Q291bnRkb3duVmFsdWVzKHRyYWNrZXIsIGN1cnJlbnQsIHRvdGFsLCBjdXJyZW50RGl2KTtcclxuICAgIGxldCBpbnRlcnZhbElkID0gd2luZG93LnNldEludGVydmFsKCgpID0+IHtcclxuICAgICAgICAvLyB3ZSBkZWxldGUgdGhlIGludGVydmFsIHRpbWVyIHdoZW4gdGhlIGVsZW1lbnQgaXMgcmVtb3ZlZFxyXG4gICAgICAgIGlmICghZWxlbWVudC5pc0Nvbm5lY3RlZCkge1xyXG4gICAgICAgICAgICB3aW5kb3cuY2xlYXJJbnRlcnZhbChpbnRlcnZhbElkKTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICBzZXRDb3VudGRvd25WYWx1ZXModHJhY2tlciwgY3VycmVudCwgdG90YWwsIGN1cnJlbnREaXYpO1xyXG4gICAgfSwgMTAwMCk7XHJcblxyXG59O1xyXG5cclxuZnVuY3Rpb24gZ2V0Q291bnRkb3duRGlzcGxheShkdXJhdGlvbjogbW9tZW50LkR1cmF0aW9uKTogc3RyaW5nIHtcclxu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3BCLFlBQU0sS0FBSyxTQUFTLEtBQUs7QUFBQTtBQUFBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg== 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 825a6cb..64c1fd0 100644 --- a/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css +++ b/test-vault/.obsidian/plugins/obsidian-simple-time-tracker/styles.css @@ -48,6 +48,7 @@ margin-top: 20px; } -.simple-time-tracker-table td { +.simple-time-tracker-table td, +.simple-time-tracker-table th { border: none; } diff --git a/test-vault/track-note-test.md b/test-vault/track-note-test.md index cc05429..2470d8c 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}]} +{"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}]} ```