import { html } from 'lit'; import { classMap } from 'lit/directives/class-map.js'; import { WebAppManifest } from 'web-app-manifest'; import { msg } from '@lit/localize'; const template = (name: string, description: string, installDescription: string, disableDescription: boolean, icon: string, manifest: WebAppManifest, installAvailable: any, hideDialog: any, install: any, toggleGallery: any, galleryRequested: boolean) => { const installDialogClasses = () => { return {available: installAvailable, gallery: galleryRequested }}; return html`
icon
${location.hostname}
${description ? html `
${description}
`: ''} ${!disableDescription? html`
${installDescription? installDescription: msg('This site has app functionality. Install it on your device for extensive experience and easy access.')}
` : ''} ${manifest.screenshots && manifest.screenshots.length? html``: ''}
${manifest.screenshots && manifest.screenshots.length? html``:''}
${manifest.screenshots && manifest.screenshots.length? html``: ''}
`; }; export default template;