mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 13:14:20 +00:00
1 line
No EOL
2.7 KiB
JavaScript
1 line
No EOL
2.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{235:function(t,e,s){"use strict";var l=s(4),n=s(28).find,o=s(65),a=s(20),r=!0,i=a("find");"find"in[]&&Array(1).find((function(){r=!1})),l({target:"Array",proto:!0,forced:r||!i},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},247:function(t,e,s){"use strict";s.r(e);s(235);var l=s(98),n={name:"SpellTooltip",props:["l","s"],data:function(){return{spellPath:"",spell:""}},computed:{label:function(){return this.l?this.l:this.spell?this.spell.title.toLowerCase():"[Sort non trouvé]"}},methods:{displaySchoolLevel:function(){return Object(l.a)(this.spell.frontmatter)}},mounted:function(){var t=this;this.spellPath="/grimoire/"+this.s+"/",this.spell=this.$site.pages.find((function(e){return e.path===t.spellPath||e.path===t.spellPath+"/"}))}},o=s(7),a=Object(o.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",[t.spell?s("router-link",{attrs:{to:{path:t.spellPath}}},[s("v-tooltip",{attrs:{"content-class":"spell-tooltip-container",top:""},scopedSlots:t._u([{key:"activator",fn:function(e){var l=e.on;return[s("em",t._g({},l),[t._v(t._s(t.label))])]}}],null,!1,938448509)},[t._v(" "),s("div",{staticClass:"spell-tooltip"},[s("p",{staticClass:"spell-tooltip-title"},[s("strong",[t._v(t._s(t.spell.title))])]),t._v(" "),s("div",{staticClass:"spell-details"},[s("div",{staticClass:"spell-school-level",domProps:{innerHTML:t._s(t.displaySchoolLevel())}}),t._v(" "),s("div",{staticClass:"spell-casting-time"},[s("strong",[t._v("Temps d'incantation")]),t._v(" : "+t._s(t.spell.frontmatter.casting_time))]),t._v(" "),s("div",{staticClass:"spell-range"},[s("strong",[t._v("Portée")]),t._v(" : "+t._s(t.spell.frontmatter.range))]),t._v(" "),s("div",{staticClass:"spell-components"},[s("strong",[t._v("Composantes")]),t._v(" :\n "),t.spell.frontmatter.components.verbal?[t._v("V")]:t._e(),t.spell.frontmatter.components.somatic||t.spell.frontmatter.components.material?[t._v(",")]:t._e(),t._v(" "),t.spell.frontmatter.components.somatic?[t._v("S")]:t._e(),t.spell.frontmatter.components.material?[t._v(",")]:t._e(),t._v(" "),t.spell.frontmatter.components.material?[t._v("M")]:t._e(),t._v(" "),t.spell.frontmatter.components.materials?[t._v("("+t._s(t.spell.frontmatter.components.materials)+")")]:t._e()],2),t._v(" "),s("div",{staticClass:"spell-duration"},[s("strong",[t._v("Durée")]),t._v(" : "),t.spell.frontmatter.concentration?s("span",[t._v("concentration, ")]):t._e(),t._v(t._s(t.spell.frontmatter.duration))])]),t._v(" "),s("div",{staticClass:"spell-description",domProps:{innerHTML:t._s(t.spell.frontmatter.description)}})])])],1):s("router-link",{attrs:{to:{path:t.spellPath}}},[s("em",[t._v(t._s(t.label))])])],1)}),[],!1,null,null,null);e.default=a.exports}}]); |