rapidoc-core
Advanced tools
Comparing version 0.0.1-alfa.5 to 0.0.1-alfa.6
{ | ||
"name": "rapidoc-core", | ||
"version": "0.0.1-alfa.5", | ||
"version": "0.0.1-alfa.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/rapidoc-core.js", |
import _ from 'lodash'; | ||
import Card from './templates/Card'; | ||
import html from '@popeindustries/lit-html-server'; | ||
import numRef from './ref.json'; | ||
export default Card; | ||
export function numToWord(num) { | ||
@@ -14,1 +12,9 @@ return _.reduce(numRef, (accum, ref) => (ref.num === num ? ref.word : accum), ''); | ||
} | ||
export function card(data) { | ||
return html` | ||
<h1> ${data.title}</h1> | ||
<p> ${data.text}</p> | ||
`; | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
886487
16612