Skip to content

Commit

Permalink
move some elements to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisShank committed Dec 12, 2024
1 parent 3623702 commit 4558990
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion demo/embeddable-llm-with-propagators.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion demo/proximity-based-communication.html
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 3 additions & 1 deletion src/folk-timer.ts → demo/src/folk-timer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FolkElement } from './common/folk-element';
import { FolkElement } from '../../src/common/folk-element';

declare global {
interface HTMLElementTagNameMap {
Expand Down Expand Up @@ -43,3 +43,5 @@ export class FolkTimer extends FolkElement {
this.renderRoot.textContent = (time / 1000).toFixed(1);
};
}

FolkTimer.define();
4 changes: 3 additions & 1 deletion src/folk-weather.ts → demo/src/folk-weather.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html } from './common/tags';
import { html } from '../../src/common/tags';

interface Weather {
temperature: string;
Expand Down Expand Up @@ -71,3 +71,5 @@ export class FolkWeather extends HTMLElement {
`);
}
}

FolkWeather.define();
5 changes: 0 additions & 5 deletions src/standalone/folk-timer.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/standalone/folk-weather.ts

This file was deleted.

0 comments on commit 4558990

Please sign in to comment.