More updates to bases syntax
This commit is contained in:
@@ -2,19 +2,13 @@ filters:
|
|||||||
and:
|
and:
|
||||||
- note.categories.contains(link("Albums"))
|
- note.categories.contains(link("Albums"))
|
||||||
- '!file.name.contains("Template")'
|
- '!file.name.contains("Template")'
|
||||||
properties:
|
display:
|
||||||
file.name:
|
file.name: Album
|
||||||
displayName: Album
|
note.year: Year
|
||||||
note.year:
|
note.artist: Artist
|
||||||
displayName: Year
|
note.created: Added
|
||||||
note.artist:
|
note.rating: Rating
|
||||||
displayName: Artist
|
note.genre: Genre
|
||||||
note.created:
|
|
||||||
displayName: Added
|
|
||||||
note.rating:
|
|
||||||
displayName: Rating
|
|
||||||
note.genre:
|
|
||||||
displayName: Genre
|
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: Albums
|
name: Albums
|
||||||
|
|||||||
32
Templates/Bases/Attachments.base
Normal file
32
Templates/Bases/Attachments.base
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
formulas:
|
||||||
|
Embeds: if(file.embeds[0].containsAny("jpg","gif","webp","jpeg","avif"), file.embeds[0])
|
||||||
|
Date: if(created,created,if(start,start))
|
||||||
|
links: file.
|
||||||
|
views:
|
||||||
|
- type: cards
|
||||||
|
name: Images
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- this.file.hasLink(file)
|
||||||
|
- '!file.ext.containsAny("base", "canvas", "pdf", "md")'
|
||||||
|
- file == ""
|
||||||
|
order: []
|
||||||
|
sort:
|
||||||
|
- property: file.name
|
||||||
|
direction: ASC
|
||||||
|
image: file.file
|
||||||
|
cardSize: 70
|
||||||
|
- type: table
|
||||||
|
name: Images 2
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- '!file.ext.containsAny("base", "canvas", "pdf", "md")'
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- file.links
|
||||||
|
- formula.links
|
||||||
|
sort:
|
||||||
|
- property: file.name
|
||||||
|
direction: ASC
|
||||||
|
image: file.file
|
||||||
|
cardSize: 90
|
||||||
@@ -23,7 +23,7 @@ views:
|
|||||||
- topics
|
- topics
|
||||||
- last
|
- last
|
||||||
sort:
|
sort:
|
||||||
- column: file.name
|
- property: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- type: table
|
- type: table
|
||||||
name: Top rated
|
name: Top rated
|
||||||
|
|||||||
@@ -20,8 +20,10 @@ views:
|
|||||||
- created
|
- created
|
||||||
- published
|
- published
|
||||||
sort:
|
sort:
|
||||||
- column: clipped
|
- property: created
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
columnSize:
|
||||||
|
note.author: 140
|
||||||
- type: table
|
- type: table
|
||||||
name: Author
|
name: Author
|
||||||
filters:
|
filters:
|
||||||
@@ -33,5 +35,5 @@ views:
|
|||||||
- created
|
- created
|
||||||
- published
|
- published
|
||||||
sort:
|
sort:
|
||||||
- column: clipped
|
- property: clipped
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ views:
|
|||||||
- categories
|
- categories
|
||||||
- created
|
- created
|
||||||
sort:
|
sort:
|
||||||
|
- property: file.name
|
||||||
|
direction: ASC
|
||||||
- property: created
|
- property: created
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- type: table
|
- type: table
|
||||||
|
|||||||
@@ -20,3 +20,27 @@ views:
|
|||||||
sort:
|
sort:
|
||||||
- property: start
|
- property: start
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
- type: table
|
||||||
|
name: Type
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- list(type).contains(this)
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- start
|
||||||
|
- loc
|
||||||
|
sort:
|
||||||
|
- property: start
|
||||||
|
direction: DESC
|
||||||
|
- type: table
|
||||||
|
name: Location
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- list(loc).contains(this)
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- start
|
||||||
|
- loc
|
||||||
|
sort:
|
||||||
|
- property: start
|
||||||
|
direction: DESC
|
||||||
|
|||||||
@@ -14,5 +14,5 @@ views:
|
|||||||
- file.name
|
- file.name
|
||||||
- created
|
- created
|
||||||
sort:
|
sort:
|
||||||
- property: created
|
- column: note.created
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
|||||||
@@ -1,17 +1,7 @@
|
|||||||
filters:
|
formulas:
|
||||||
and:
|
Embeds: if(file.embeds[0].containsAny("jpg","gif","webp","jpeg","avif"), file.embeds[0])
|
||||||
- file.ext.contains("md")
|
Date: if(created,created,if(start,start))
|
||||||
properties:
|
|
||||||
file.name:
|
|
||||||
displayName: Name
|
|
||||||
note.categories:
|
|
||||||
displayName: Categories
|
|
||||||
views:
|
views:
|
||||||
- type: table
|
|
||||||
name: Notes
|
|
||||||
order:
|
|
||||||
- file.name
|
|
||||||
- categories
|
|
||||||
- type: table
|
- type: table
|
||||||
name: All files
|
name: All files
|
||||||
order:
|
order:
|
||||||
@@ -19,6 +9,28 @@ views:
|
|||||||
- file.mtime
|
- file.mtime
|
||||||
- file.path
|
- file.path
|
||||||
- file.ext
|
- file.ext
|
||||||
|
- type: cards
|
||||||
|
name: Images
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- '!file.ext.containsAny("base", "canvas", "pdf", "md")'
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
sort:
|
sort:
|
||||||
- column: file.path
|
- property: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
|
image: file.file
|
||||||
|
- type: cards
|
||||||
|
name: Images in posts
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- "!formula.Embeds.isEmpty()"
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- formula.Date
|
||||||
|
sort:
|
||||||
|
- property: file.name
|
||||||
|
direction: ASC
|
||||||
|
- property: date
|
||||||
|
direction: DESC
|
||||||
|
image: formula.Embeds
|
||||||
|
|||||||
@@ -2,19 +2,13 @@ filters:
|
|||||||
and:
|
and:
|
||||||
- note.categories.contains(link("Games"))
|
- note.categories.contains(link("Games"))
|
||||||
- '!file.name.contains("Template")'
|
- '!file.name.contains("Template")'
|
||||||
properties:
|
display:
|
||||||
file.name:
|
file.name: Games
|
||||||
displayName: Games
|
note.year: Year
|
||||||
note.year:
|
note.maker: Maker
|
||||||
displayName: Year
|
note.rating: Rating
|
||||||
note.maker:
|
note.genre: Genre
|
||||||
displayName: Maker
|
note.last: Last played
|
||||||
note.rating:
|
|
||||||
displayName: Rating
|
|
||||||
note.genre:
|
|
||||||
displayName: Genre
|
|
||||||
note.last:
|
|
||||||
displayName: Last played
|
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: Games
|
name: Games
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
filters:
|
filters:
|
||||||
and:
|
and:
|
||||||
- list(genre).contains(this)
|
- list(genre).contains(this)
|
||||||
properties:
|
display:
|
||||||
note.rating:
|
note.rating: Rating
|
||||||
displayName: Rating
|
note.categories: Category
|
||||||
note.categories:
|
note.last: Last
|
||||||
displayName: Category
|
file.name: Name
|
||||||
note.last:
|
|
||||||
displayName: Last
|
|
||||||
file.name:
|
|
||||||
displayName: Name
|
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: Genre
|
name: Genre
|
||||||
@@ -19,9 +15,9 @@ views:
|
|||||||
- categories
|
- categories
|
||||||
- last
|
- last
|
||||||
sort:
|
sort:
|
||||||
- property: rating
|
- column: note.rating
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- property: last
|
- column: note.last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
columnSize:
|
columnSize:
|
||||||
file.name: 248
|
file.name: 248
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filters:
|
filters:
|
||||||
and:
|
and:
|
||||||
- note.categories.contains(link("Meetings"))
|
- categories.contains(link("Meetings"))
|
||||||
- '!file.name.contains("Template")'
|
- '!file.name.contains("Template")'
|
||||||
properties:
|
properties:
|
||||||
note.date:
|
note.date:
|
||||||
@@ -11,6 +11,8 @@ properties:
|
|||||||
displayName: Type
|
displayName: Type
|
||||||
file.name:
|
file.name:
|
||||||
displayName: Meeting
|
displayName: Meeting
|
||||||
|
note.org:
|
||||||
|
displayName: Org
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: Meetings
|
name: Meetings
|
||||||
@@ -43,8 +45,8 @@ views:
|
|||||||
order:
|
order:
|
||||||
- file.name
|
- file.name
|
||||||
- date
|
- date
|
||||||
- type
|
|
||||||
- people
|
- people
|
||||||
|
- org
|
||||||
sort:
|
sort:
|
||||||
- property: date
|
- property: date
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
|||||||
@@ -32,19 +32,19 @@ views:
|
|||||||
order:
|
order:
|
||||||
- file.name
|
- file.name
|
||||||
- year
|
- year
|
||||||
|
- director
|
||||||
- rating
|
- rating
|
||||||
- last
|
- last
|
||||||
- plot
|
- plot
|
||||||
- genre
|
- genre
|
||||||
- director
|
|
||||||
sort:
|
sort:
|
||||||
- property: director
|
- property: director
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- column: formula.test
|
|
||||||
direction: DESC
|
|
||||||
- property: plot
|
- property: plot
|
||||||
direction: ASC
|
direction: ASC
|
||||||
columnSize:
|
columnSize:
|
||||||
|
file.name: 193
|
||||||
|
note.director: 205
|
||||||
note.plot: 233
|
note.plot: 233
|
||||||
note.genre: 261
|
note.genre: 261
|
||||||
- type: table
|
- type: table
|
||||||
@@ -69,7 +69,7 @@ views:
|
|||||||
direction: DESC
|
direction: DESC
|
||||||
- property: watchlist
|
- property: watchlist
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- column: file.name
|
- property: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- property: director
|
- property: director
|
||||||
direction: ASC
|
direction: ASC
|
||||||
@@ -92,7 +92,7 @@ views:
|
|||||||
- ratingImdb
|
- ratingImdb
|
||||||
- last
|
- last
|
||||||
sort:
|
sort:
|
||||||
- column: file.name
|
- property: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- property: ratingImdb
|
- property: ratingImdb
|
||||||
direction: DESC
|
direction: DESC
|
||||||
@@ -104,7 +104,7 @@ views:
|
|||||||
name: Last seen
|
name: Last seen
|
||||||
filters:
|
filters:
|
||||||
and:
|
and:
|
||||||
- note.last != ""
|
- "!last.isEmpty()"
|
||||||
order:
|
order:
|
||||||
- file.name
|
- file.name
|
||||||
- year
|
- year
|
||||||
@@ -115,7 +115,9 @@ views:
|
|||||||
sort:
|
sort:
|
||||||
- property: last
|
- property: last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
limit: 15
|
- property: file.name
|
||||||
|
direction: ASC
|
||||||
|
limit: 20
|
||||||
- type: table
|
- type: table
|
||||||
name: Actor
|
name: Actor
|
||||||
filters:
|
filters:
|
||||||
@@ -126,6 +128,10 @@ views:
|
|||||||
- year
|
- year
|
||||||
- director
|
- director
|
||||||
- genre
|
- genre
|
||||||
|
- ratingImdb
|
||||||
|
sort:
|
||||||
|
- property: ratingImdb
|
||||||
|
direction: DESC
|
||||||
- type: table
|
- type: table
|
||||||
name: Genre
|
name: Genre
|
||||||
filters:
|
filters:
|
||||||
@@ -138,9 +144,6 @@ views:
|
|||||||
- director
|
- director
|
||||||
- last
|
- last
|
||||||
- genre
|
- genre
|
||||||
columnSize:
|
|
||||||
note.director: 166
|
|
||||||
note.last: 115
|
|
||||||
sort:
|
sort:
|
||||||
- property: last
|
- property: last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
@@ -148,6 +151,9 @@ views:
|
|||||||
direction: ASC
|
direction: ASC
|
||||||
- property: rating
|
- property: rating
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
columnSize:
|
||||||
|
note.director: 166
|
||||||
|
note.last: 115
|
||||||
- type: table
|
- type: table
|
||||||
name: Director
|
name: Director
|
||||||
filters:
|
filters:
|
||||||
@@ -221,7 +227,7 @@ views:
|
|||||||
direction: DESC
|
direction: DESC
|
||||||
- property: watchlist
|
- property: watchlist
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- column: file.name
|
- property: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- property: director
|
- property: director
|
||||||
direction: ASC
|
direction: ASC
|
||||||
|
|||||||
@@ -2,14 +2,32 @@ filters:
|
|||||||
and:
|
and:
|
||||||
- '!file.name.contains("Template")'
|
- '!file.name.contains("Template")'
|
||||||
- note.tags.contains("people")
|
- note.tags.contains("people")
|
||||||
|
formulas:
|
||||||
|
Age: (now() - birthday).years.floor()
|
||||||
properties:
|
properties:
|
||||||
file.name:
|
file.name:
|
||||||
displayName: Name
|
displayName: Name
|
||||||
note.tags:
|
note.tags:
|
||||||
displayName: Tags
|
displayName: Tags
|
||||||
|
note.birthday:
|
||||||
|
displayName: Birthday
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: Table
|
name: All people
|
||||||
order:
|
order:
|
||||||
- file.name
|
- file.name
|
||||||
- tags
|
- tags
|
||||||
|
- birthday
|
||||||
|
- formula.Age
|
||||||
|
columnSize:
|
||||||
|
note.tags: 209
|
||||||
|
formula.Age: 99
|
||||||
|
sort:
|
||||||
|
- column: file.name
|
||||||
|
direction: ASC
|
||||||
|
- column: note.tags
|
||||||
|
direction: ASC
|
||||||
|
- column: formula.Age
|
||||||
|
direction: DESC
|
||||||
|
- column: note.birthday
|
||||||
|
direction: DESC
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ views:
|
|||||||
filters:
|
filters:
|
||||||
and:
|
and:
|
||||||
- file.hasLink(this)
|
- file.hasLink(this)
|
||||||
|
- '!tags.containsAny("cities", "countries")'
|
||||||
order:
|
order:
|
||||||
- file.name
|
- file.name
|
||||||
- rating
|
- rating
|
||||||
@@ -81,6 +82,8 @@ views:
|
|||||||
- type
|
- type
|
||||||
- last
|
- last
|
||||||
sort:
|
sort:
|
||||||
|
- property: rating
|
||||||
|
direction: DESC
|
||||||
- property: last
|
- property: last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- property: type
|
- property: type
|
||||||
@@ -89,5 +92,24 @@ views:
|
|||||||
direction: ASC
|
direction: ASC
|
||||||
columnSize:
|
columnSize:
|
||||||
file.name: 162
|
file.name: 162
|
||||||
|
note.rating: 65
|
||||||
note.loc: 145
|
note.loc: 145
|
||||||
note.type: 199
|
note.type: 199
|
||||||
|
- type: table
|
||||||
|
name: Metatype
|
||||||
|
filters:
|
||||||
|
or:
|
||||||
|
- list(type).contains(this)
|
||||||
|
- list(type).containsAny(this.topics)
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- type
|
||||||
|
- rating
|
||||||
|
- last
|
||||||
|
sort:
|
||||||
|
- property: last
|
||||||
|
direction: DESC
|
||||||
|
- property: loc
|
||||||
|
direction: ASC
|
||||||
|
columnSize:
|
||||||
|
note.type: 153
|
||||||
|
|||||||
@@ -2,21 +2,14 @@ filters:
|
|||||||
and:
|
and:
|
||||||
- note.categories.contains(link("Podcast episodes"))
|
- note.categories.contains(link("Podcast episodes"))
|
||||||
- '!file.name.contains("Template")'
|
- '!file.name.contains("Template")'
|
||||||
properties:
|
display:
|
||||||
file.name:
|
file.name: Podcast
|
||||||
displayName: Podcast
|
note.show: Show
|
||||||
note.show:
|
note.guests: Guests
|
||||||
displayName: Show
|
note.episode: Episode
|
||||||
note.guests:
|
note.rating: Rating
|
||||||
displayName: Guests
|
note.published: Published
|
||||||
note.episode:
|
note.guest: Guest
|
||||||
displayName: Episode
|
|
||||||
note.rating:
|
|
||||||
displayName: Rating
|
|
||||||
note.published:
|
|
||||||
displayName: Published
|
|
||||||
note.guest:
|
|
||||||
displayName: Guest
|
|
||||||
views:
|
views:
|
||||||
- type: table
|
- type: table
|
||||||
name: All episodes
|
name: All episodes
|
||||||
@@ -28,7 +21,7 @@ views:
|
|||||||
- rating
|
- rating
|
||||||
- published
|
- published
|
||||||
sort:
|
sort:
|
||||||
- property: published
|
- column: note.published
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- type: table
|
- type: table
|
||||||
name: Show
|
name: Show
|
||||||
|
|||||||
@@ -17,5 +17,5 @@ views:
|
|||||||
- status
|
- status
|
||||||
- published
|
- published
|
||||||
sort:
|
sort:
|
||||||
- property: published
|
- column: note.published
|
||||||
direction: DESC
|
direction: DESC
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ views:
|
|||||||
- status
|
- status
|
||||||
- url
|
- url
|
||||||
sort:
|
sort:
|
||||||
- property: status
|
- column: note.status
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- property: year
|
- column: note.year
|
||||||
direction: DESC
|
direction: DESC
|
||||||
columnSize:
|
columnSize:
|
||||||
file.name: 209
|
file.name: 209
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ views:
|
|||||||
- last
|
- last
|
||||||
- categories
|
- categories
|
||||||
sort:
|
sort:
|
||||||
- property: last
|
- column: note.last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
columnSize:
|
columnSize:
|
||||||
file.name: 238
|
file.name: 238
|
||||||
@@ -34,6 +34,6 @@ views:
|
|||||||
- last
|
- last
|
||||||
- categories
|
- categories
|
||||||
sort:
|
sort:
|
||||||
- property: last
|
- column: note.last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
limit: 100
|
limit: 100
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ views:
|
|||||||
- director
|
- director
|
||||||
- genre
|
- genre
|
||||||
sort:
|
sort:
|
||||||
- property: rating
|
- column: note.rating
|
||||||
direction: DESC
|
direction: DESC
|
||||||
- column: file.name
|
- column: file.name
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- property: director
|
- column: note.director
|
||||||
direction: ASC
|
direction: ASC
|
||||||
- type: table
|
- type: table
|
||||||
name: Favorites
|
name: Favorites
|
||||||
@@ -59,7 +59,7 @@ views:
|
|||||||
- director
|
- director
|
||||||
- genre
|
- genre
|
||||||
sort:
|
sort:
|
||||||
- property: last
|
- column: note.last
|
||||||
direction: DESC
|
direction: DESC
|
||||||
limit: 20
|
limit: 20
|
||||||
- type: table
|
- type: table
|
||||||
|
|||||||
12
Templates/Bases/Templates.base
Normal file
12
Templates/Bases/Templates.base
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- file.path.contains("/Templates")
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
name: Table
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- categories
|
||||||
|
sort: []
|
||||||
|
columnSize:
|
||||||
|
file.name: 234
|
||||||
@@ -23,7 +23,7 @@ views:
|
|||||||
- end
|
- end
|
||||||
- loc
|
- loc
|
||||||
sort:
|
sort:
|
||||||
- property: end
|
- column: note.end
|
||||||
direction: DESC
|
direction: DESC
|
||||||
columnSize:
|
columnSize:
|
||||||
file.name: 255
|
file.name: 255
|
||||||
|
|||||||
Reference in New Issue
Block a user