diff --git a/routes/_actions/timeline.js b/routes/_actions/timeline.js index e788553..9f01023 100644 --- a/routes/_actions/timeline.js +++ b/routes/_actions/timeline.js @@ -78,11 +78,11 @@ export async function setupTimeline() { if (statusStream) { statusStream.close() } - statusStream = new StatusStream(instanceInfo.urls.streaming_api, accessToken, timelineName, { + /*statusStream = new StatusStream(instanceInfo.urls.streaming_api, accessToken, timelineName, { onMessage(message) { console.log('message', message) } - }) + })*/ stop('addStatuses') } diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualList.html b/routes/_components/pseudoVirtualList/PseudoVirtualList.html new file mode 100644 index 0000000..796ca0a --- /dev/null +++ b/routes/_components/pseudoVirtualList/PseudoVirtualList.html @@ -0,0 +1,65 @@ +
+ {{#each wrappedItems as wrappedItem, i @item}} + + {{/each}} +
+ + \ No newline at end of file diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualListItem.html b/routes/_components/pseudoVirtualList/PseudoVirtualListItem.html new file mode 100644 index 0000000..3295787 --- /dev/null +++ b/routes/_components/pseudoVirtualList/PseudoVirtualListItem.html @@ -0,0 +1,32 @@ +
+ <:Component {component} + virtualProps="{{props}}" + virtualIndex="{{index}}" + virtualLength="{length}}" + on:renderedListItem + on:scrollToPosition + /> +
+ diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html b/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html new file mode 100644 index 0000000..eddce33 --- /dev/null +++ b/routes/_components/pseudoVirtualList/PseudoVirtualListLazyItem.html @@ -0,0 +1,24 @@ +{{#if props}} + +{{/if}} + \ No newline at end of file diff --git a/routes/_components/timeline/StatusListItem.html b/routes/_components/timeline/StatusVirtualListItem.html similarity index 100% rename from routes/_components/timeline/StatusListItem.html rename to routes/_components/timeline/StatusVirtualListItem.html diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index 803dd3f..98b26e7 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -1,14 +1,26 @@
- + {{#if virtual}} + + {{else}} + + + {{/if}}