1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-11-22 08:04:27 +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.
</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>
</div></template>
<template id="template-vault">

View file

@ -155,11 +155,12 @@ export class VaultElement extends CustomElement {
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>}
*/
async refetchSteffoFileIndex() {
const response = await this.fetchCooldown("steffo-file-index.json")
async refetchFileIndex() {
const response = await this.fetchCooldown("file-index.json")
if(response.status >= 400) {
this.fileIndex = null
return
@ -190,6 +191,6 @@ export class VaultElement extends CustomElement {
this.recalculateVaultElement()
this.#fetchQueueScheduler().then()
await this.refetchAppearance()
await this.refetchSteffoFileIndex()
await this.refetchFileIndex()
}
}