Skip to content

Commit

Permalink
Update import paths for networked demos.
Browse files Browse the repository at this point in the history
In a some places, we demo loading 3rd party dependencies over-the-wire.
The latest versions of these dependencies on `unpkg` require a slightly
different url. Just a minor change to update those.
  • Loading branch information
theengineear committed Feb 1, 2024
1 parent aa56127 commit e084b30
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions demo/lit-html/base-element.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import XElement from '../../x-element.js';
import { asyncAppend } from 'https://unpkg.com/lit-html/directives/async-append.js?module';
import { asyncReplace } from 'https://unpkg.com/lit-html/directives/async-replace.js?module';
import { cache } from 'https://unpkg.com/lit-html/directives/cache.js?module';
import { classMap } from 'https://unpkg.com/lit-html/directives/class-map.js?module';
import { directive } from 'https://unpkg.com/lit-html/directive.js?module';
import { guard } from 'https://unpkg.com/lit-html/directives/guard.js?module';
import { html, render as originalRender, svg } from 'https://unpkg.com/lit-html/lit-html.js?module';
import { ifDefined } from 'https://unpkg.com/lit-html/directives/if-defined.js?module';
import { live } from 'https://unpkg.com/lit-html/directives/live.js?module';
import { repeat } from 'https://unpkg.com/lit-html/directives/repeat.js?module';
import { styleMap } from 'https://unpkg.com/lit-html/directives/style-map.js?module';
import { templateContent } from 'https://unpkg.com/lit-html/directives/template-content.js?module';
import { unsafeHTML } from 'https://unpkg.com/lit-html/directives/unsafe-html.js?module';
import { unsafeSVG } from 'https://unpkg.com/lit-html/directives/unsafe-svg.js?module';
import { until } from 'https://unpkg.com/lit-html/directives/until.js?module';
import { asyncAppend } from 'https://unpkg.com/lit-html/directives/async-append.js';
import { asyncReplace } from 'https://unpkg.com/lit-html/directives/async-replace.js';
import { cache } from 'https://unpkg.com/lit-html/directives/cache.js';
import { classMap } from 'https://unpkg.com/lit-html/directives/class-map.js';
import { directive } from 'https://unpkg.com/lit-html/directive.js';
import { guard } from 'https://unpkg.com/lit-html/directives/guard.js';
import { html, render as originalRender, svg } from 'https://unpkg.com/lit-html/lit-html.js';
import { ifDefined } from 'https://unpkg.com/lit-html/directives/if-defined.js';
import { live } from 'https://unpkg.com/lit-html/directives/live.js';
import { repeat } from 'https://unpkg.com/lit-html/directives/repeat.js';
import { styleMap } from 'https://unpkg.com/lit-html/directives/style-map.js';
import { templateContent } from 'https://unpkg.com/lit-html/directives/template-content.js';
import { unsafeHTML } from 'https://unpkg.com/lit-html/directives/unsafe-html.js';
import { unsafeSVG } from 'https://unpkg.com/lit-html/directives/unsafe-svg.js';
import { until } from 'https://unpkg.com/lit-html/directives/until.js';

export default class BaseElement extends XElement {
// Use lit-html's template engine rather than the built-in x-element engine.
Expand Down
4 changes: 2 additions & 2 deletions demo/performance/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import XElement from '../../x-element.js';
import { html as litHtmlHtml, render as litHtmlRender } from 'https://unpkg.com/lit-html/lit-html.js?module';
import { render as uhtmlRender, html as uhtmlHtml } from 'https://unpkg.com/uhtml?module';
import { html as litHtmlHtml, render as litHtmlRender } from 'https://unpkg.com/lit-html/lit-html.js';
import { render as uhtmlRender, html as uhtmlHtml } from 'https://unpkg.com/uhtml';

class LitHtmlElement extends XElement {
// Use lit-html's template engine rather than the built-in x-element engine.
Expand Down
2 changes: 1 addition & 1 deletion demo/uhtml/base-element.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XElement from '../../x-element.js';
import { render, html, svg } from 'https://unpkg.com/uhtml?module';
import { render, html, svg } from 'https://unpkg.com/uhtml';

export default class BaseElement extends XElement {
// Use µhtml's template engine rather than the built-in x-element engine.
Expand Down

0 comments on commit e084b30

Please sign in to comment.