parent
f57bc4a3fc
commit
d9e3e77614
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,4 @@
|
|||||||
```dataview
|
```dataviewjs
|
||||||
table Priority, Status, NextReviewDate as "Next Review Date", DueDate as "Due Date" from "<% tp.file.folder() %>"
|
const {taskFunc} = customJS
|
||||||
where DocType = "Task"
|
taskFunc.getAllTasks({app, dv, luxon, that:this, theme: })
|
||||||
Where !startswith(file.name, "Template")
|
|
||||||
sort DueDate ascending, NextReviewDate ascending
|
|
||||||
```
|
```
|
@ -1,18 +1,7 @@
|
|||||||
let {sourcetype, dateadded, language, author, publicationd, theme, readingd} = input;
|
let {sourcetype, dateadded, language, author, publicationd, theme, readingd} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Source'
|
const DataType = 'Source'
|
||||||
let page = dv.pages()
|
|
||||||
.filter(p => {return !p.file.path.contains('00.01') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains(DataType) && p.Source.Type !== undefined && p.Source.Type !== null && p.Source.Type.contains(`${sourcetype}`)})
|
|
||||||
|
|
||||||
const iArray = [sourcetype, dateadded, language, author, publicationd, theme, readingd];
|
const iArray = [sourcetype, dateadded, language, author, publicationd, theme, readingd];
|
||||||
const dArray = ["sourcetype", "dateadded", "language", "author", "publicationd", "theme", "readingd"];
|
const dArray = ["sourcetype", "dateadded", "language", "author", "publicationd", "theme", "readingd"];
|
||||||
|
|
||||||
if (page.length === 0) {
|
return globalFunc.getTable(dv, DataType, dArray, iArray, 0)
|
||||||
return '"No result matching your query"'
|
|
||||||
}
|
|
||||||
|
|
||||||
dv.table(globalFunc.GetTableHeaders(DataType, 0), page
|
|
||||||
.where(p => p && globalFunc.IsInSearch(p, DataType, dArray, iArray))
|
|
||||||
.sort(p => p.file.name, `asc`)
|
|
||||||
.map(p => globalFunc.GetTableMap(DataType, 0,p)));
|
|
||||||
|
|
||||||
|
@ -1,18 +1,7 @@
|
|||||||
let curr = dv.current();
|
let {tabletype, invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Investment'
|
const DataType = 'Investment'
|
||||||
let {tabletype, invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp} = input;
|
|
||||||
let page = dv.pages()
|
|
||||||
.filter(p => {return !p.file.path.contains('00.') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains(DataType)})
|
|
||||||
|
|
||||||
const iArray = [invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp];
|
const iArray = [invtype, dateadded, style, stage, ccy, theme, tradingd, tradingp];
|
||||||
const dArray = ["invtype", "dateadded", "style", "stage", "ccy", "theme", "tradingd", "tradingp"];
|
const dArray = ["invtype", "dateadded", "style", "stage", "ccy", "theme", "tradingd", "tradingp"];
|
||||||
|
|
||||||
if (page.length === 0) {
|
return globalFunc.getTable(dv, DataType, dArray, iArray, tabletype)
|
||||||
return '"No result matching your query"'
|
|
||||||
}
|
|
||||||
|
|
||||||
dv.table(globalFunc.GetTableHeaders(DataType, tabletype), page
|
|
||||||
.where(p => p && globalFunc.IsInSearch(p, DataType, dArray, iArray))
|
|
||||||
.sort(p => p.file.name, `asc`)
|
|
||||||
.map(p => globalFunc.GetTableMap(DataType, tabletype,p)));
|
|
||||||
|
@ -1,19 +1,8 @@
|
|||||||
|
let {placetype, dateadded, style, ambiance, area, theme, country, status} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Place'
|
const DataType = 'Place'
|
||||||
let curr = dv.current();
|
|
||||||
let {placetype, dateadded, style, ambiance, area, theme, country, status} = input;
|
|
||||||
let templacetype = globalFunc.Get1stArg(placetype)
|
|
||||||
let page = dv.pages()
|
|
||||||
.filter(p => {return !p.file.path.contains('00.') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains(DataType)})
|
|
||||||
|
|
||||||
const iArray = [placetype, dateadded, style, ambiance, area, theme, country, status];
|
const iArray = [placetype, dateadded, style, ambiance, area, theme, country, status];
|
||||||
const dArray = ["placetype", "dateadded", "style", "ambiance", "area", "theme", "country", "status"];
|
const dArray = ["placetype", "dateadded", "style", "ambiance", "area", "theme", "country", "status"];
|
||||||
|
let templacetype = globalFunc.Get1stArg(placetype)
|
||||||
|
|
||||||
if (page.length === 0) {
|
return globalFunc.getTable(dv, DataType, dArray, iArray, templacetype)
|
||||||
return '"No result matching your query"'
|
|
||||||
}
|
|
||||||
|
|
||||||
dv.table(globalFunc.GetTableHeaders(DataType, templacetype), page
|
|
||||||
.where(p => p && globalFunc.IsInSearch(p, DataType, dArray, iArray))
|
|
||||||
.sort(p => p.file.name, `asc`)
|
|
||||||
.map(p => globalFunc.GetTableMap(DataType, templacetype,p)));
|
|
||||||
|
@ -1,17 +1,7 @@
|
|||||||
|
let {prodtype, dateadded, prodvalue, theme} = input;
|
||||||
const {globalFunc} = customJS
|
const {globalFunc} = customJS
|
||||||
const DataType = 'Product'
|
const DataType = 'Product'
|
||||||
let {prodtype, dateadded, prodvalue, theme} = input;
|
|
||||||
let page = dv.pages()
|
|
||||||
.filter(p => { return !p.file.path.contains('00.0') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains(DataType)})
|
|
||||||
|
|
||||||
const iArray = [prodtype, dateadded, prodvalue, theme];
|
const iArray = [prodtype, dateadded, prodvalue, theme];
|
||||||
const dArray = ["prodtype", "dateadded", "prodvalue", "theme"];
|
const dArray = ["prodtype", "dateadded", "prodvalue", "theme"];
|
||||||
|
|
||||||
if (page.length === 0) {
|
return globalFunc.getTable(dv, DataType, dArray, iArray, 0)
|
||||||
return '"No result matching your query"'
|
|
||||||
}
|
|
||||||
|
|
||||||
dv.table(globalFunc.GetTableHeaders(DataType, 0), page
|
|
||||||
.where(p => p && globalFunc.IsInSearch(p, DataType, dArray, iArray))
|
|
||||||
.sort(p => p.file.name, `asc`)
|
|
||||||
.map(p => globalFunc.GetTableMap(DataType, 0, p)));
|
|
||||||
|
Loading…
Reference in new issue