9ea8653ef7
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
15 lines
434 B
JavaScript
15 lines
434 B
JavaScript
import { html } from "lit";
|
|
|
|
const tpl_provider = (o, provider) => html`
|
|
<p class="oauth-provider">
|
|
<a @click=${o.oauthLogin} class="oauth-login" data-id="${provider.id}">
|
|
<i class="fa ${provider.class}"></i>${provider.login_text}
|
|
</a>
|
|
</p>
|
|
`;
|
|
|
|
export default (o) => html`
|
|
<fieldset class="oauth-providers">
|
|
${ o.providers.map(provider => tpl_provider(o, provider)) }
|
|
</fieldset>
|
|
`; |