mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 21:24:18 +00:00
outils de création de sorts/monstres/objets
This commit is contained in:
parent
6237f0e6a2
commit
a6986c42c6
48 changed files with 2743 additions and 259 deletions
|
|
@ -2,13 +2,17 @@
|
|||
<main class="page content">
|
||||
|
||||
<div class="theme-default-content">
|
||||
<h1>{{ $page.title }}</h1>
|
||||
<div class="magic-item-details">
|
||||
<template v-if="!hideTitle">
|
||||
<h1 v-if="!isList">{{ magicItem.title }}</h1>
|
||||
<h2 v-else>{{ magicItem.title }}</h2>
|
||||
</template>
|
||||
<div class="magic-item-details title">
|
||||
{{displayItemMeta()}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Content class="mt-4" />
|
||||
<Content v-if="!magicItem.custom" :pageKey="magicItem.key" class="mt-4" />
|
||||
<div v-else v-html="md.render(magicItem.content)" class="mt-4"></div>
|
||||
|
||||
<p v-if="$page.frontmatter.source" class="source">Source : <em>{{ $page.frontmatter.source }}</em></p>
|
||||
|
||||
|
|
@ -17,11 +21,22 @@
|
|||
|
||||
<script>
|
||||
import {displayItemMeta} from '@theme/util/magicItemHelpers'
|
||||
import MarkdownIt from 'markdown-it'
|
||||
|
||||
export default {
|
||||
name: 'MagicItem',
|
||||
|
||||
data () {
|
||||
return {
|
||||
md: new MarkdownIt()
|
||||
}
|
||||
},
|
||||
|
||||
props: ['magicItem', 'isList', 'hideTitle'],
|
||||
|
||||
methods : {
|
||||
displayItemMeta () {
|
||||
return displayItemMeta(this.$page.frontmatter)
|
||||
return displayItemMeta(this.magicItem.frontmatter)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue