parent
e69540b2dd
commit
6e34ae07e3
@ -0,0 +1,4 @@
|
||||
{
|
||||
"jsFiles": "",
|
||||
"jsFolder": "00.01 Admin/dv-views"
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "customjs",
|
||||
"name": "CustomJS",
|
||||
"version": "1.0.10",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "This plugin allows for the loading and reuse of custom JS inside your vault.",
|
||||
"author": "Sam Lewis",
|
||||
"authorUrl": "https://github.com/samlewis0602",
|
||||
"isDesktopOnly": false
|
||||
}
|
@ -0,0 +1 @@
|
||||
Not Found
|
@ -1,11 +1,18 @@
|
||||
{
|
||||
"renderNullAs": "\\-",
|
||||
"taskLinkLocation": "end",
|
||||
"taskLinkText": "🔗",
|
||||
"warnOnEmptyResult": true,
|
||||
"refreshInterval": 1000,
|
||||
"defaultDateFormat": "dd/MM/yyyy",
|
||||
"defaultDateTimeFormat": "h:mm a - MMMM dd, yyyy",
|
||||
"maxRecursiveRenderDepth": 6,
|
||||
"tableIdColumnName": "File",
|
||||
"tableGroupColumnName": "Group",
|
||||
"inlineQueryPrefix": "=",
|
||||
"inlineJsQueryPrefix": "$=",
|
||||
"enableDataviewJs": true,
|
||||
"enableInlineDataviewJs": true,
|
||||
"prettyRenderInlineFields": true,
|
||||
"schemaVersion": 1
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"ribbonIcon": true,
|
||||
"showRootFolder": true,
|
||||
"showFilesFromSubFolders": true,
|
||||
"searchFunction": true,
|
||||
"showFilesFromSubFoldersButton": true,
|
||||
"excludedExtensions": "",
|
||||
"excludedFolders": "",
|
||||
"folderCount": true,
|
||||
"folderCountOption": "notes",
|
||||
"openFolders": [],
|
||||
"pinnedFiles": [],
|
||||
"customHeight": 0,
|
||||
"evernoteView": true,
|
||||
"filePreviewOnHover": false,
|
||||
"sortFilesBy": "name",
|
||||
"fixedHeaderInFileList": false,
|
||||
"activeFolderPath": "03.01 Reading list"
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "file-tree-alternative",
|
||||
"name": "File Tree Alternative Plugin",
|
||||
"version": "1.5.4",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "This plugin allows you to have an alternative file tree view.",
|
||||
"author": "Ozan Tellioglu",
|
||||
"authorUrl": "https://www.ozan.pl",
|
||||
"isDesktopOnly": false
|
||||
}
|
@ -0,0 +1,212 @@
|
||||
.oz-file-tree-header {
|
||||
height: 22px;
|
||||
color: var(--text-normal);
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oz-nav-action-button {
|
||||
color: var(--text-normal);
|
||||
display: inline-block;
|
||||
padding: 3px 0px 0 3px !important;
|
||||
}
|
||||
|
||||
.oz-input-container {
|
||||
margin-bottom: 3px !important;
|
||||
margin-top: 3px !important;
|
||||
}
|
||||
|
||||
.oz-nav-buttons-right-block {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.oz-nav-file-title {
|
||||
padding-left: 2px !important;
|
||||
padding-right: 2px !important;
|
||||
}
|
||||
|
||||
div.workspace-leaf-content[data-type='file-tree-view'] > div.view-content {
|
||||
padding: 10px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.oz-flex-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.oz-explorer-container {
|
||||
padding-left: 3px !important;
|
||||
padding-right: 3px !important;
|
||||
}
|
||||
|
||||
.oz-file-tree-files {
|
||||
padding-top: 3px !important;
|
||||
}
|
||||
|
||||
.drag-entered,
|
||||
.oz-folder-element:hover,
|
||||
.oz-nav-file:hover {
|
||||
background-color: var(--text-selection);
|
||||
}
|
||||
|
||||
.oz-folder-contents {
|
||||
will-change: transform, opacity, height;
|
||||
margin-left: 6;
|
||||
padding: 4px 0px 0px 14px;
|
||||
border-left: 1px dashed;
|
||||
border-left-color: var(--text-muted);
|
||||
font-size: 12.8px;
|
||||
}
|
||||
|
||||
.oz-folder-toggle {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
margin-right: 10px;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.treeview {
|
||||
position: relative;
|
||||
padding: 4px 0px 0px 0px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.oz-folder-type {
|
||||
text-transform: uppercase;
|
||||
font-family: monospace;
|
||||
font-size: 0.6em;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.oz-folder-name {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
color: var(--text-normal);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
div.oz-folder-name.is-root-folder {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.is-mobile .oz-folder-name.is-root-folder {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.is-mobile .oz-folder-name {
|
||||
font-size: 15.5px;
|
||||
}
|
||||
|
||||
.is-mobile div.oz-nav-file-title .nav-file-title-content {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.oz-icon-div {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.oz-folder-block {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.oz-folder-count.no-root {
|
||||
float: right;
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
||||
.oz-folder-count.with-root {
|
||||
float: right;
|
||||
padding-right: 32px;
|
||||
}
|
||||
|
||||
.oz-folders-tree-wrapper {
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 5px;
|
||||
padding-left: 8px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.oz-folder-element {
|
||||
line-height: 1.35em;
|
||||
padding: 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.oz-input-container > input {
|
||||
padding-left: 8px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.oz-nav-action-button:hover {
|
||||
color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.oz-nav-action-button .fa-lg {
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
.file-tree-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.file-tree-plugin-view {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.oz-folder-pane {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
height: 50%;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.oz-file-list-pane {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.oz-coffee-div {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#file-tree-divider {
|
||||
height: 2.5px;
|
||||
background-color: var(--text-muted);
|
||||
cursor: row-resize;
|
||||
}
|
||||
|
||||
.is-folder-active {
|
||||
color: var(--text-accent);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.file-tree-header-fixed {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
background-color: var(--background-secondary);
|
||||
}
|
||||
|
||||
.file-tree-files-fixed {
|
||||
padding-top: 50px !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
let curr = dv.current();
|
||||
let {dateadded, language, author, publicationd, theme, readingd} = input;
|
||||
let page = dv.pages()
|
||||
.filter(p => {return !p.file.path.contains('00.01') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains('Source') && p.Source.Type !== undefined && p.Source.Type !== null && p.Source.Type.contains('Book')})
|
||||
|
||||
function DataCheck(arg1, arg2) {
|
||||
var iarg1 = arg1
|
||||
if (moment(iarg1).isValid()) {iarg1 = arg1.toString()}
|
||||
var iarg2 = arg2
|
||||
if (moment(iarg2).isValid()) {iarg2 = arg2.toString()}
|
||||
if (!Array.isArray(iarg2)) {
|
||||
var result = iarg1.contains(iarg2)
|
||||
} else if (!Array.isArray(iarg1)) {
|
||||
var result = iarg2.contains(iarg1)
|
||||
} else {
|
||||
let count = iarg2.length
|
||||
let tempresult = false
|
||||
let tempresult2 = false
|
||||
for (let i = 0; i < count; i++) {
|
||||
tempresult = tempresult2 || iarg1.contains(iarg2[i])
|
||||
tempresult2 = tempresult
|
||||
}
|
||||
var result = tempresult
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
function IsInSearch(book) {
|
||||
if (Boolean(theme)) {
|
||||
var result_tag = DataCheck(book.Tag, theme)
|
||||
} else {var result_tag = true}
|
||||
if (Boolean(dateadded)) {
|
||||
var result_date = DataCheck(book.Date, dateadded)
|
||||
} else {var result_date = true}
|
||||
if (Boolean(language)) {
|
||||
var result_lang = DataCheck(book.Source.Language, language)
|
||||
} else {var result_lang = true}
|
||||
if (Boolean(author)) {
|
||||
var result_auth = DataCheck(book.Source.Author, author)
|
||||
} else {var result_auth = true}
|
||||
if (Boolean(publicationd)) {
|
||||
var result_pub = DataCheck(book.Source.Published, publicationd)
|
||||
} else {var result_pub = true}
|
||||
if (readingd !== undefined && readingd !== null) {
|
||||
if (readingd == true) {
|
||||
var result_read = Boolean(book.Source.Read)
|
||||
} else if (!Boolean(readingd)) {
|
||||
var result_read = !Boolean(book.Source.Read)
|
||||
} else {
|
||||
if (Boolean(book.Source.Read)) {
|
||||
var result_read = DataCheck(book.Source.Read, readingd)
|
||||
} else { var result_read = false}
|
||||
}
|
||||
} else {var result_read = true}
|
||||
var result = result_tag && result_date && result_lang && result_auth && result_pub && result_read
|
||||
return result
|
||||
}
|
||||
|
||||
if (page.length > 0) {
|
||||
dv.table(["Title", "Author", "Published date", "Language", "Themes", "Date read"], page
|
||||
.where(p => p && IsInSearch(p))
|
||||
.sort(p => p.file.name, `asc`)
|
||||
.map(p => [p.file.link, p.Source.Author, p.Source.Published, p.Source.Language, p.Tag, p.Source.Read])); } else { return '"No result matching your query"'}
|
||||
|
@ -0,0 +1,70 @@
|
||||
var debug = "found"
|
||||
var debugtitle = "string"
|
||||
let curr = dv.current();
|
||||
let {dateadded, language, author, publicationd, theme, readingd} = input;
|
||||
let page = dv.pages()
|
||||
.filter(p => {return !p.file.path.contains('00.01') && p.DocType !== undefined && p.DocType !== null && p.DocType.contains('Source') && p.Source.Type !== undefined && p.Source.Type !== null && p.Source.Type.contains('Book')})
|
||||
|
||||
function DataCheck(arg1, arg2) {
|
||||
var iarg1 = arg1
|
||||
if (moment(iarg1).isValid()) {iarg1 = arg1.toString()}
|
||||
var iarg2 = arg2
|
||||
if (moment(iarg2).isValid()) {iarg2 = arg2.toString()}
|
||||
if (!Array.isArray(iarg2)) {
|
||||
var result = iarg1.contains(iarg2)
|
||||
} else if (!Array.isArray(iarg1)) {
|
||||
var result = iarg2.contains(iarg1)
|
||||
} else {
|
||||
let count = iarg2.length
|
||||
let tempresult = false
|
||||
let tempresult2 = false
|
||||
for (let i = 0; i < count; i++) {
|
||||
tempresult = tempresult2 || iarg1.contains(iarg2[i])
|
||||
tempresult2 = tempresult
|
||||
}
|
||||
var result = tempresult
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
debug = dateadded
|
||||
|
||||
function IsInSearch(book) {
|
||||
if (Boolean(theme)) {
|
||||
var result_tag = DataCheck(book.Tag, theme)
|
||||
} else {var result_tag = true}
|
||||
if (Boolean(dateadded)) {
|
||||
var result_date = DataCheck(book.Date, dateadded)
|
||||
} else {var result_date = true}
|
||||
if (Boolean(language)) {
|
||||
var result_lang = DataCheck(book.Source.Language, language)
|
||||
} else {var result_lang = true}
|
||||
if (Boolean(author)) {
|
||||
var result_auth = DataCheck(book.Source.Author, author)
|
||||
} else {var result_auth = true}
|
||||
if (Boolean(publicationd)) {
|
||||
var result_pub = DataCheck(book.Source.Published, publicationd)
|
||||
} else {var result_pub = true}
|
||||
if (readingd !== undefined && readingd !== null) {
|
||||
if (readingd == true) {
|
||||
var result_read = Boolean(book.Source.Read)
|
||||
} else if (!Boolean(readingd)) {
|
||||
var result_read = !Boolean(book.Source.Read)
|
||||
} else {
|
||||
if (Boolean(book.Source.Read)) {
|
||||
var result_read = DataCheck(book.Source.Read, readingd)
|
||||
} else { var result_read = false}
|
||||
}
|
||||
} else {var result_read = true}
|
||||
var result = result_tag && result_date && result_lang && result_auth && result_pub && result_read
|
||||
return result
|
||||
}
|
||||
|
||||
if (page.length > 0) {
|
||||
dv.table(["Title", "Author", "Published date", "Language", "Themes", "Date read"], page
|
||||
.where(p => p && IsInSearch(p))
|
||||
.sort(p => p.file.name, `asc`)
|
||||
.map(p => [p.file.link, p.Source.Author, p.Source.Published, p.Source.Language, p.Tag, p.Source.Read])); } else { return '"No result matching your query"'}
|
||||
|
||||
dv.paragraph(debug)
|
||||
|
Loading…
Reference in new issue