Main

Vault Info

  • Recent updates $=dv.list(dv.pages('').sort(f=>f.file.mtime.ts,"desc").limit(4).file.link)
  • Recent ideas $=dv.list(dv.pages('').sort(f=>f.file.mtime.ts,"desc").limit(4).file.link)
  • Stats:
    • Total Files: $=dv.pages().length
    • Journal Entries: $=dv.pages('"Daily"').length
    • People: $=dv.pages('"People"').length
    • Inbox Items: $=dv.pages('"Inbox"').length
    • Articles: $=dv.pages('"Articles"').length
searchType: frontmatter
searchTarget: planned
folder: Daily
datasetName: Plan
month:
	mode: annotation
	annotation: πŸ—“οΈ 
	startWeekOn: 'Mon'
	color: steelblue
searchType: frontmatter
searchTarget: portuguese
folder: Daily
datasetName: Portuguese
month:
	mode: annotation
	annotation: πŸ‡΅πŸ‡Ή
	startWeekOn: 'Mon'
	color: steelblue
searchType: frontmatter
searchTarget: meditation
folder: Daily
datasetName: meditation
month:
	mode: annotation
	annotation: πŸ§˜β€β™‚οΈ
	startWeekOn: 'Mon'
	color: steelblue
dv.span("** 😊 Habits  πŸ˜₯**") /* optional βΉοΈπŸ’€βš‘βš πŸ§©β†‘β†“β³πŸ“”πŸ’ΎπŸ“πŸ“πŸ”„πŸ“πŸ”€βŒ¨οΈπŸ•ΈοΈπŸ“…πŸ”βœ¨ */
const calendarData = {
    colors: {    // (optional) defaults to green
        blue:        ["#8cb9ff", "#69a3ff", "#428bff", "#1872ff", "#0058e2"], // first entry is considered default if supplied
        green:       ["#c6e48b", "#7bc96f", "#49af5d", "#2e8840", "#196127"],
        red:         ["#ff9e82", "#ff7b55", "#ff4d1a", "#e73400", "#bd2a00"],
        orange:      ["#ffa244", "#fd7f00", "#dd6f00", "#bf6000", "#9b4e00"],
        pink:        ["#ff96cb", "#ff70b8", "#ff3a9d", "#ee0077", "#c30062"],
        orangeToRed: ["#ffdf04", "#ffbe04", "#ff9a03", "#ff6d02", "#ff2c01"]
    },
    showCurrentDayBorder: true, // (optional) defaults to true
    defaultEntryIntensity: 4,   // (optional) defaults to 4
    intensityScaleStart: 10,    // (optional) defaults to lowest value passed to entries.intensity
    intensityScaleEnd: 100,     // (optional) defaults to highest value passed to entries.intensity
    entries: [meditation],                // (required) populated in the DataviewJS loop below
}
 
//DataviewJS loop
for (let page of dv.pages('"Daily"').where(p => p.meditation)) {
    //dv.span("<br>" + page.file.name) // uncomment for troubleshooting
    calendarData.entries.push({
        date: page.file.name,     // (required) Format YYYY-MM-DD
        intensity: page.meditaion, // (required) the data you want to track, will map color intensities automatically
        content: "πŸ‹οΈ",           // (optional) Add text to the date cell
        color: "orange",          // (optional) Reference from *calendarData.colors*. If no color is supplied; colors[0] is used
    })
}
 
renderHeatmapCalendar(this.container, calendarData)