diff options
Diffstat (limited to 'SI/Dashboard.md')
| -rw-r--r-- | SI/Dashboard.md | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/SI/Dashboard.md b/SI/Dashboard.md new file mode 100644 index 0000000..bcd1e81 --- /dev/null +++ b/SI/Dashboard.md @@ -0,0 +1,113 @@ +--- +id: 2023-12-17 +aliases: + - βNotes to Process +tags: + - Dashboard +cssclasses: + - dashboard + - dashboard-ReadLineLength +--- +# Dashboard + +- ### π [House]() + - π° Budget + - [[Q1 2024]] + - ## π Grocery + - lπ³ Transaction + - hello +- ### π€ Personal + - ## π‘[Archive](file:////Users/si/Documents/SI/Archive) + - ## βοΈ [Area](file:////Users/si/Documents/SI/Area) + - ## π [Projects](file:////Users/si/Documents/SI/Project) + - ## π [Resource](file:////Users/si/Documents/SI/Resource) + - β
[To-do](file:////Users/si/Documents/SI/To-do) + `$=dv.list(dv.pages('"To-do"').sort(f=>f.file.name,"desc").limit(4).file.link)` + +- ### π’ [School]() + - π [Class]() + `$=dv.list(dv.pages('"Resource"').sort(f=>f.file.mtime.ts,"desc").limit(4).file.link)` + - πΌ [Project]() + - βοΈ [Assignment]() + `$=dv.list(dv.pages('#assignment').sort(f=>f.file.mtime.ts,"desc").file.link)` +- ### π§ Life Progress + + ```dataviewjs + const today = DateTime.now() + const endOfYear = { + year: today.year, + month: 12, + day: 1 + } + + const lifespan = { year: 80 } + const birthday = DateTime.fromObject({ + year: 2001, + month: 6, + day: 9 + }); + const deathday = birthday.plus(lifespan) + + function progress(type) { + let value; + + switch(type) { + case "lifespan": + value = (today.year - birthday.year) / lifespan.year * 100; + break; + case "year": + value = today.month / 12 * 100 + break; + case "month": + value = today.day / today.daysInMonth * 100 + break; + case "day": + value = today.hour / 24 * 100 + break; + } + return `<progress value="${parseInt(value)}" max="100"></progress> | ${parseInt(value)} %` + } + + + dv.span(` + + | | Progress | Percentage | + | --- | --- |:---:| + | **Year** | ${progress("year")} + | **Month**| ${progress("month")} + | **Day**| ${progress("day")} + | **Life** | ${progress("lifespan")} + + `) + + ``` + +--- + +- ## π°οΈ Recent + + `$=dv.list(dv.pages('').sort(f=>f.file.mtime.ts,"desc").limit(4).file.link)` + +- ## ππ» Navigation + - [[Writing Ideas]] + - [[Content Ideas]] + - [[Habit Tracker]] + - [[Time Tracker]] + - [[C Programming for beginnners]] +- ## π Stats + - Notes: `$=dv.pages().length` + - Personal recipes:Β `$=dv.pages('"Family/Recipes"').length` +- ## β° Time <iframe width='350' height='250' style='padding:0!important;margin:0!important;border:none!important;background:none!important;background:transparent!important' marginheight='0' marginwidth='0' frameborder='0' scrolling='no' comment='/*defined*/' src='https://dayspedia.com/if/digit/?v=1&iframe=eyJ3LTEyIjp0cnVlLCJ3LTExIjp0cnVlLCJ3LTEzIjp0cnVlLCJ3LTE0IjpmYWxzZSwidy0xNSI6dHJ1ZSwidy0xMTAiOnRydWUsInctd2lkdGgtMCI6ZmFsc2UsInctd2lkdGgtMSI6dHJ1ZSwidy13aWR0aC0yIjpmYWxzZSwidy0xNiI6IjI0cHgiLCJ3LTE5IjoiNDgiLCJ3LTE3IjoiMTYiLCJ3LTIxIjp0cnVlLCJiZ2ltYWdlIjo5LCJiZ2ltYWdlU2V0Ijp0cnVlLCJ3LTIxYzAiOiIjZmZmZmZmIiwidy0wIjp0cnVlLCJ3LTMiOnRydWUsInctM2MwIjoiIzM0MzQzNCIsInctM2IwIjoiMSIsInctNiI6IiMzNDM0MzQiLCJ3LTIwIjp0cnVlLCJ3LTQiOiIjMDA3ZGJmIiwidy0xOCI6dHJ1ZSwidy13aWR0aC0yYy0wIjoiMzAwIiwidy0xMTUiOmZhbHNlfQ==&lang=en&cityid=3701'></iframe> + +--- + +## β[[Notes to Process]] + +```dataview +TABLE file.ctime as "Created" +FROM #todevelop and -"004 TEMPLATES" +Limit 20 +sort file.ctime +``` + +--- |
