migrate to bases

This commit is contained in:
Steph Ango
2025-05-24 16:03:46 -07:00
parent 831af0dd26
commit b160d8bec5
32 changed files with 588 additions and 306 deletions

View File

@@ -6,13 +6,4 @@ tags:
---
## Movies
```dataview
table without id
file.link as Movie,
year as Year,
rating as Rating
where
contains(categories,[[Movies]]) and
contains(cast,this.file.link)
sort rating desc
```
![[Movies.base#Actor]]

53
Templates/Books.base Normal file
View File

@@ -0,0 +1,53 @@
filters:
and:
- contains(property.categories, "[[Books]]")
- not(contains(file.name, "Template"))
display:
file.name: Name
property.last: Last
property.rating: Rating
property.year: Year
property.genre: Genre
property.author: Author
property.created: Added
views:
- type: table
name: Favorites
order:
- author
- file.name
- rating
- year
- created
- genre
- type: table
name: All
order:
- file.name
- year
- rating
- last
- genre
- type: table
name: Last read
filters:
and:
- not(empty(property.last))
order:
- file.name
- year
- rating
- last
- genre
sort:
- column: property.last
direction: ASC
- type: table
name: Author
filters:
and:
- contains(author, concat("[[", this.file.name, "]]"))
order:
- file.name
- year
- genre

View File

@@ -4,12 +4,4 @@ tags:
---
## Notes
```dataview
list
where
!contains(file.tags, "daily") and
contains(file.outlinks, this.file.link) or
contains(string(file.frontmatter), string(dateformat(this.file.day,"yyyy-MM-dd")))
sort file.ctime asc
limit 50
```
![[Daily.base]]

20
Templates/Daily.base Normal file
View File

@@ -0,0 +1,20 @@
filters:
or:
- linksTo(file.file, this.file.path)
- contains(property.created, this.file.name)
- contains(property.last, this.file.name)
views:
- type: table
name: Day
order:
- file.name
sort:
- column: property.created
direction: ASC
- type: table
name: Daily note
order:
- file.name
sort:
- column: property.created
direction: ASC

58
Templates/Movies.base Normal file
View File

@@ -0,0 +1,58 @@
filters:
and:
- contains
- not(contains(file.name, "Template"))
display:
file.name: Name
property.last: Last
property.rating: Rating
property.year: Year
property.director: Director
property.genre: Genre
views:
- type: table
name: Favorites
filters:
and:
- property.rating > 6
order:
- file.name
- year
- rating
- last
- director
- genre
- type: table
name: All
order:
- file.name
- year
- rating
- last
- director
- genre
- type: table
name: Last seen
filters:
and:
- not(empty(property.last))
order:
- file.name
- year
- rating
- last
- director
- genre
sort:
- column: property.last
direction: ASC
- type: table
name: Actor
filters:
and:
- contains(cast, concat("[[", this.file.name, "]]"))
order:
- file.name
- year
- director
- genre

65
Templates/Products.base Normal file
View File

@@ -0,0 +1,65 @@
filters:
and:
- contains(category, "[[Products]]")
- not(contains(file.name, "Template"))
- property.monthly-uses > 0
formulas:
Usage: formula.Owned * monthly-uses
Owned: round(dateDiff(acquired, now()) / -2629746000)
Per use: concat("$", price / formula.Usage)
display:
property.monthly-uses: Uses/month
formula.Owned: Months
formula.Usage: Total uses
property.price: Price
property.rating: Rating
property.acquired: Acquired
property.type: Type
file.name: Product
views:
- type: table
name: Products
order:
- file.name
- rating
- price
- acquired
- type
columnSize:
file.name: 209
property.monthly-uses: 82
formula.Usage: 115
sort:
- column: file.name
direction: ASC
- column: formula.Usage
direction: DESC
- column: property.acquired
direction: DESC
- column: property.monthly-uses
direction: DESC
- type: table
name: Cost per use
order:
- file.name
- rating
- formula.Per use
- monthly-uses
- price
- formula.Usage
- formula.Owned
- acquired
- type
columnSize:
formula.Per use: 77
property.monthly-uses: 82
formula.Usage: 115
sort:
- column: file.name
direction: ASC
- column: formula.Usage
direction: DESC
- column: property.acquired
direction: DESC
- column: property.monthly-uses
direction: DESC