busao
    Preparing search index...

    Function renderIndexPage

    • Builds the "Index" page with internationalisation.

      Parameters

      • i18n: i18n

        The internationalisation object.

      • database: BunSQLiteDatabase

        The project's database.

      • route: string

        The route to the endpoint trip addition requests are made to.

      • date: Date

        The date the trips were registered in.

      • openingHour: number

        The hour the website actually becomes available.

      Returns Response

      A semantic HTML page with the form and tables for each of the available directions at the right time. Otherwise, a "Too Early" page.

      Displays a form for adding a trip and tables by trip with people whose trips were confirmed.

      If the user reaches the page before the opening hour, a "Too Early" page is shown.