From 81bb640b70ea6f4f7ee2fbb03d4f6fcd0102698d Mon Sep 17 00:00:00 2001 From: Teppo Date: Wed, 31 May 2023 21:34:56 +0200 Subject: [PATCH] Add option for showing week numbers in ISO format --- src/App.vue | 4 ++++ src/main.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/App.vue b/src/App.vue index 39fac36..eeb4661 100644 --- a/src/App.vue +++ b/src/App.vue @@ -45,6 +45,7 @@ export default { backgroundColorOfContainerLight, backgroundColorOfContainerDark, keepOpenOnSelect, showWeekNumbers, + showIsoWeeknumbers, } = logseq.settings return { @@ -59,6 +60,7 @@ export default { color: 'orange', [`is-dark`]: false, [`show-weeknumbers`]: showWeekNumbers, + [`show-iso-weeknumbers`]: showIsoWeeknumbers, attributes: [ { dot: true, @@ -125,10 +127,12 @@ export default { backgroundColorOfContainerDark, backgroundColorOfContainerLight, keepOpenOnSelect, showWeekNumbers, + showIsoWeeknumbers, } = settings || {} this.opts[`first-day-of-week`] = firstDayOfWeek this.opts[`show-weeknumbers`] = showWeekNumbers + this.opts[`show-iso-weeknumbers`] = showIsoWeeknumbers this.bgColor.dark = backgroundColorOfContainerDark this.bgColor.light = backgroundColorOfContainerLight this.keepOpenOnSelect = keepOpenOnSelect diff --git a/src/main.js b/src/main.js index 5791543..a0466af 100644 --- a/src/main.js +++ b/src/main.js @@ -60,6 +60,12 @@ const settingsSchema = [ title: '', description: 'Show week numbers in calendar', default: false, + },{ + key: 'showIsoWeeknumbers', + type: 'boolean', + title: '', + description: 'Show week number in ISO format', + default: false, }] let app = null