fix image loading

This commit is contained in:
Lucas 2023-07-31 18:24:46 +02:00 committed by LUCASTUCIOUS
parent 68bf0de608
commit b16e74f21b
29 changed files with 32 additions and 56 deletions

View file

@ -24,8 +24,7 @@ source: Studio Agate, Créatures vol.1
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -18,8 +18,7 @@ organisations:
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -20,8 +20,7 @@ todo:
- Lui trouver une utilité plus large - Lui trouver une utilité plus large
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -20,8 +20,7 @@ organisations:
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -23,8 +23,7 @@ organisations: ["[La Tridentine](../../Factions/La%20Tridentine.md)"]
status: DONE status: DONE
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -21,8 +21,7 @@ organisations:
- "[Aïpio](../../Factions/Aïpio.md)" - "[Aïpio](../../Factions/Aïpio.md)"
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href=" + dv.current().image + "><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -7,6 +7,7 @@ class:
ethnicity: ethnicity:
short-desc: test short-desc: test
image: image:
source: Studio Agate, Créatures 1
goals: goals:
- "" - ""
likes: [] likes: []
@ -14,8 +15,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: Studio Agate, Créatures 1*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -21,8 +21,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -21,8 +21,7 @@ todo:
- Leur créer une backstory interessante. Peut-etre les utiliser pour justifier les travaux du [Taudis d'Asoif](../../Locations/Taudis%20d'Asoif.md) - Leur créer une backstory interessante. Peut-etre les utiliser pour justifier les travaux du [Taudis d'Asoif](../../Locations/Taudis%20d'Asoif.md)
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: *
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -15,8 +15,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -23,8 +23,7 @@ organisations:
- "[La Main](../../Factions/La%20Main.md)" - "[La Main](../../Factions/La%20Main.md)"
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source:: *
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -15,8 +15,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -20,8 +20,7 @@ organisations: ["[La Raqisa](../../Factions/La%20Raqisa.md)",]
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -20,8 +20,7 @@ organisations: ["[La Raqisa](../../Factions/La%20Raqisa.md)","[Nihiliens](../../
status: WIP status: WIP
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -18,8 +18,7 @@ organisations:
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -17,8 +17,7 @@ hates: []
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -21,8 +21,7 @@ status: DONE
banner_y: 0.65714 banner_y: 0.65714
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -8,6 +8,7 @@ class: Bourgeoisie
ethnicity: Ouestrien ethnicity: Ouestrien
short-desc: L'homme de main d'[[Erulissen]] et le leader politique des Elenions à [[LAssemblée]] short-desc: L'homme de main d'[[Erulissen]] et le leader politique des Elenions à [[LAssemblée]]
image: ../Illustrations/dai_lavellan_by_nanoetetsu_d8ajxjc-fullview.jpg image: ../Illustrations/dai_lavellan_by_nanoetetsu_d8ajxjc-fullview.jpg
source: dai lavellan, by nanoetetsu
goals: goals:
- Accéder à [[La Main]] - Accéder à [[La Main]]
- " Dominer les races inférieurs et assurer la suprématie elfique" - " Dominer les races inférieurs et assurer la suprématie elfique"
@ -24,8 +25,7 @@ organisations:
status: DONE status: DONE
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source:: dai lavellan, by nanoetetsu *
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ organisations:
status: TODO status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -16,8 +16,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -17,8 +17,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -19,8 +19,7 @@ status: TODO
--- ---
> [!infobox]+ `= this.file.name` > [!infobox]+ `= this.file.name`
>`$= "<a class='internal-link' data-href='" + dv.current().image.replace(/'/g, "%27") + "' ><img src='app://local/" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + encodeURIComponent(dv.current().image).replace(/'/g, "%27") + "' > </a>"` > `$= dv.io.load(dv.page("Snippet-portrait").file.path)`
> *source: `= this.source`*
> >
> | | | > | | |
> | --- | --- | > | --- | --- |

View file

@ -0,0 +1,2 @@
> `$= "<a class='internal-link' data-href='" + dv.current().image + "'><img src='file:///" + this.app.vault.adapter.basePath + "/" + this.app.vault.config.attachmentFolderPath + "/" + dv.current().image + "'> </img></a>"`
> *source: `= this.source`*