You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
2.6 KiB

---
Alias: ["Dashboard"]
Date: 2021-11-20
DocType: "Note"
ChildrenType: ["Task", "Note"]
Hierarchy: "Root"
TimeStamp:
location:
CollapseMetaTable: Yes
---
Parent:: [[Life Admin]]
---
 
```button
name Create Note
type append template
action NewFile
id CreateNote
```
^button-DailytrackerNewTask
```button
name Save
type command
action Save current file
id Save
```
^button-DailytrackerSave
 
```jsx:
<center><Clock /></center>
```
&emsp;
```jsx:
import { Canvas, useFrame } from 'https://cdn.skypack.dev/@react-three/fiber'
function Box(props) {
const mesh = useRef()
const [hovered, setHover] = useState(false)
const [active, setActive] = useState(false)
useFrame((state, delta) => (mesh.current.rotation.x += 0.01))
return (
<mesh
{...props}
ref={mesh}
scale={active ? 1.5 : 1}
onClick={(event) => setActive(!active)}
onPointerOver={(event) => setHover(true)}
onPointerOut={(event) => setHover(false)}
>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />
</mesh>
)
}
<Canvas>
<ambientLight />
<pointLight position={[10, 10, 10]} />
<Box position={[-3.2, 0, 0]} />
<Box position={[-1.2, 0, 0]} />
<Box position={[1.2, 0, 0]} />
<Box position={[3.2, 0, 0]} />
</Canvas>
```
&emsp;
# Main dashboard
&emsp;
```ad-abstract
title: Summary
collapse: open
This space is the main dashboard of my vault.
==WIP==
- React stuff?
```
&emsp;
```toc
style: number
```
&emsp;
---
&emsp;
### Next 5 birthdays
&emsp;
```tasks
not done
path includes Family
description includes :birthday:
limit to 5 tasks
sort by due
hide backlink
hide task count
```
&emsp;
---
&emsp;
### Task management
&emsp;
#### Main Tasks
```dataviewjs
const {taskFunc} = customJS
taskFunc.getAllTasks({app, dv, luxon, that:this, theme: "LifeHacks"})
```
&emsp;
#### Next 5 recurring to-dos
```tasks
not done
is recurring
description does not include :birthday:
sort by due
limit to 5 tasks
hide backlinks
hide task count
```
&emsp;
#### Next 5 one-off to-dos
```tasks
not done
is not recurring
path does not include Templates
limit to 5 tasks
hide backlinks
hide task count
```
&emsp;
---
&emsp;
### Current reading
&emsp;
```dataview
Table without id "![](" + Source.Cover + ")" as "Cover", file.link as "Title", Source.Author as "Author", Source.Published as "Publication Date", Source.Language as "Language"
where Source.Type = "Book"
where ReadingState = "In progress"
```
&emsp;
---
&emsp;
### 3 Recipe ideas to try
&emsp;
`dice: 3d#NotYetTested|link`
`dice: 3d#NotYetTested|link`
`dice: 3d#NotYetTested|link`
&emsp;
---
&emsp;
### Obsidian Activity
```ActivityHistory
/
```
&emsp;
&emsp;