1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-10-16 14:37:33 +00:00

Update file index to 3.0.0

This commit is contained in:
Steffo 2023-11-17 15:09:41 +01:00
parent 222e0ed7b6
commit 98b71207f8
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 6 additions and 5 deletions

View file

@ -100,7 +100,7 @@
Obsiview, running on the web, does not have this ability, and needs to somehow learn about it. Obsiview, running on the web, does not have this ability, and needs to somehow learn about it.
</p> </p>
<p> <p>
To solve this problem, the <a href="https://github.com/Steffo99/obsidian-file-index"><code>steffo-file-index</code></a> plugin was developed; once installed in a given Vault, and once the <code>steffo-file-index.json</code> file it generates is published, Obsiview will be able to resolve Wikilinks. To solve this problem, the <a href="https://github.com/Steffo99/obsidian-file-index"><code>file-index</code></a> plugin was developed; once installed in a given Vault, and once the <code>file-index.json</code> file it generates is published, Obsiview will be able to resolve Wikilinks.
</p> </p>
</div></template> </div></template>
<template id="template-vault"> <template id="template-vault">

View file

@ -155,11 +155,12 @@ export class VaultElement extends CustomElement {
fileIndex fileIndex
/** /**
* Update {@link fileIndex} by fetching the `steffo-file-index.json` file located at the root of the Vault. * Update {@link fileIndex} by fetching the `file-index.json` file located at the root of the Vault.
* See <https://github.com/Steffo99/obsidian-file-index> for more details.
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
async refetchSteffoFileIndex() { async refetchFileIndex() {
const response = await this.fetchCooldown("steffo-file-index.json") const response = await this.fetchCooldown("file-index.json")
if(response.status >= 400) { if(response.status >= 400) {
this.fileIndex = null this.fileIndex = null
return return
@ -190,6 +191,6 @@ export class VaultElement extends CustomElement {
this.recalculateVaultElement() this.recalculateVaultElement()
this.#fetchQueueScheduler().then() this.#fetchQueueScheduler().then()
await this.refetchAppearance() await this.refetchAppearance()
await this.refetchSteffoFileIndex() await this.refetchFileIndex()
} }
} }