summaryrefslogtreecommitdiff
path: root/SI/Dashboard.md
blob: ea9865e0bf7c4833c97e538656af395d54f47dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
id: "2023-12-17"
aliases:
  - βŒ›Notes to Process
  - Dashboard
tags:
  - Dashboard
cssclasses:
  - dashboard
  - dashboard-ReadLineLength
---

# Dashboard

- ### 🏠 [House]()

  - πŸ’° Budget
  - [[Q1 2024]]
  - #### πŸ›’ Grocery
  - πŸ’³ Transaction

- ### πŸ‘€ [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
```

---