move some elements to demo

This commit is contained in:
“chrisshank” 2024-12-11 16:13:15 -08:00
parent 3623702b79
commit 4558990ac2
7 changed files with 9 additions and 15 deletions

View File

@ -108,7 +108,7 @@
<script type="module">
import '../src/standalone/folk-shape.ts';
import '../src/standalone/folk-llm.ts';
import '../src/standalone/folk-timer.ts';
import './src/folk-timer.ts';
import '../src/standalone/folk-event-propagator.ts';
</script>
</body>

View File

@ -90,7 +90,7 @@
<script type="module">
import '../src/standalone/folk-shape.ts';
import { FolkMap } from '../src/standalone/folk-map.ts';
import { FolkWeather } from '../src/standalone/folk-weather.ts';
import { FolkWeather } from './src/folk-weather.ts';
import { GeoWiki } from './src/geo-wiki.ts';
import { FolkCluster } from '../src/standalone/folk-proximity.ts';
import '../src/standalone/folk-event-propagator.ts';

View File

@ -77,7 +77,7 @@
<script type="module">
import '../src/standalone/folk-shape.ts';
import { FolkMap } from '../src/standalone/folk-map.ts';
import { FolkWeather } from '../src/standalone/folk-weather.ts';
import { FolkWeather } from './src/folk-weather.ts';
import { GeoWiki } from './src/geo-wiki.ts';
import { FolkCluster } from '../src/standalone/folk-proximity.ts';

View File

@ -1,4 +1,4 @@
import { FolkElement } from './common/folk-element';
import { FolkElement } from '../../src/common/folk-element';
declare global {
interface HTMLElementTagNameMap {
@ -43,3 +43,5 @@ export class FolkTimer extends FolkElement {
this.renderRoot.textContent = (time / 1000).toFixed(1);
};
}
FolkTimer.define();

View File

@ -1,4 +1,4 @@
import { html } from './common/tags';
import { html } from '../../src/common/tags';
interface Weather {
temperature: string;
@ -71,3 +71,5 @@ export class FolkWeather extends HTMLElement {
`);
}
}
FolkWeather.define();

View File

@ -1,5 +0,0 @@
import { FolkTimer } from '../folk-timer';
FolkTimer.define();
export { FolkTimer };

View File

@ -1,5 +0,0 @@
import { FolkWeather } from '../folk-weather';
FolkWeather.define();
export { FolkWeather };