rueder frontend
    Preparing search index...

    Class DemoReader

    Implements

    Index
    account: null

    Who is logged in; null where there is nobody to log in.

    articleLabels: Record<string, string[]> = ...

    The labels of each article, by its id.

    articles: Record<string, DemoArticle[]> = ...

    Articles per feed, oldest first.

    can: Abilities = ...
    closed: ReadonlySet<string> = ...

    Folders shown closed in the sidebar.

    connection: { state: "live" } = ...

    The made-up articles are here, always.

    cursor: string | null = ...

    The article the cursor is on, and the one that is open in the list view.

    demo: DemoReader = ...

    Only the reader with made-up data has these.

    feeds: Record<string, Feed> = ...
    filters: DemoReader = ...

    The filter rules and the draft's own switches are this reader's own methods.

    fresh: Fresh[] = ...

    Feeds with something unread, each with its two newest unread articles.

    hasMore: boolean = ...

    Whether the list goes on after what is on the page.

    hiddenCount: number = ...
    labels: Label[] = ...

    The account's labels, in their order.

    latestStarred: DemoArticle[] = ...
    legal: null

    The draft has no operator, so no legal texts and no terms.

    limit: number = ...

    How many articles of the list are on the page; more come with scrolling.

    list: DemoArticle[] = ...

    All articles of the stream that pass its filters, in reading order.

    live: boolean = ...

    Whether made-up articles keep arriving.

    loading: false

    Whether what the main pane shows is still on its way.

    moved: number = ...

    Counts the steps of the cursor, so the list can scroll to where it went.

    newestFirst: boolean = ...
    notice: null

    What went wrong last, until it is closed.

    pending: number = ...

    Articles that arrived since the list was drawn.

    query: string = ...

    The words the list is searched for.

    reportsConsent: null

    The draft sends nothing anywhere.

    resuming: false

    Every made-up article is at hand, so a resumed list is there at once.

    rules: FilterRule[] = ...
    states: Record<string, FeedState> = ...
    stream: Stream = ...

    What the main pane shows.

    totalUnread: number = ...
    tree: TreeNode[] = ...
    unreadOnly: boolean = ...
    unsentChanges: 0

    How many changes wait for the server, which did not answer; they go once it does.

    visible: DemoArticle[] = ...

    The part of the list that is on the page.

    • Whether dropping the feed id on the feed targetId can put both into a new folder.

      Parameters

      • id: string
      • targetId: string

      Returns boolean

    • The draft cannot fetch, so whatever looks like an address is taken as a feed, named after its host; one on the host of the made-up website is that website.

      Parameters

      • address: string

      Returns Promise<Found>

    • Puts the feed targetId and then the feed id into a new folder where the target was.

      Parameters

      • id: string
      • targetId: string
      • title: string

      Returns void

    • Whether a folder of the tree is folded away in the sidebar. The sidebar's own sections use a name instead of a folder's id, labels for one.

      Parameters

      • folderId: string

      Returns boolean

    • Marks the stream's articles on the page as read; with olderThan, only those older than that many milliseconds.

      Parameters

      • olderThan: number = 0

      Returns void

    • Gives a feed a name of the reader's own; an empty one goes back to the feed's.

      Parameters

      • id: string
      • title: string

      Returns void

    • Shows a stream as it was left, with its filters and its open article, before start. The list is loaded far enough to hold the wanted articles and the open one, as far as they are still in it.

      Parameters

      Returns void

    • Lets articles arrive every few seconds while live is on; returns how to stop.

      Parameters

      • every: number = 9000

      Returns () => void