Skip to content

Commit

Permalink
Merge pull request #34 from teppos/isoWeekNumbers
Browse files Browse the repository at this point in the history
Add option for showing week numbers in ISO format
  • Loading branch information
xyhp915 authored Jun 7, 2023
2 parents 38511b2 + 81bb640 commit 8f2385c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default {
backgroundColorOfContainerLight, backgroundColorOfContainerDark,
keepOpenOnSelect,
showWeekNumbers,
showIsoWeeknumbers,
} = logseq.settings
return {
Expand All @@ -59,6 +60,7 @@ export default {
color: 'orange',
[`is-dark`]: false,
[`show-weeknumbers`]: showWeekNumbers,
[`show-iso-weeknumbers`]: showIsoWeeknumbers,
attributes: [
{
dot: true,
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f2385c

Please sign in to comment.