5.2.2 • Published 6 months ago

bus-seat-structuring v5.2.2

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Bus Seats Structuring

This is a fully open-source package that allows for easy importing of bus seat structures into your project. The primary purpose of developing this package is to assist university students in their academic projects.

Authors

Installation

To install this package into a React project, you can use npm

  npm install bus-seat-structuring@latest --force

Usage/Examples

Upon importing the package, you can utilize the structure by using the <Seat busmodel={''} bookedSeatsList={[]} booked_seats={booked_seats}/> tag.

import React from 'react';
import { Seat } from 'bus-seat-structuring'; 

function App() {
  
  function booked_seats(clickedSeats){
    alert(clickedSeats);
  }

  return (
    <div className="App">
      <Seat 
            busmodel={'layland_seats_49'}
            bookedSeatsList={[]}
            booked_seats={booked_seats}
            />
    </div>
  );
}
  • bookedSeatsList - The list of booked seats. (Example : '1-2', '3-4', '5-6')

  • booked_seats - When seats are booked, the updated information will be displayed.

  • busmodel - Busmodel refers to the structure of the bus you desire. The list of available bus structures and their respective codes are as follows:

Supported Bus Models

Bus ModelCode
Ashok Layland seats 49layland_seats_49
Ashok Layland seats 54layland_seats_54
Volvo 9100volvo_9100

Screenshots

Before Bookings. App Screenshot

After bookings. The seats that are already reserved will be displayed in red. When a user clicks on a seat, it will change to a yellow color to indicate that it has been selected or clicked.

App Screenshot

Support

For support,

5.2.2

6 months ago

5.2.1

6 months ago

5.2.0

6 months ago

5.1.0

6 months ago

5.0.11

6 months ago

5.0.10

6 months ago

5.0.9

6 months ago

5.0.8

6 months ago

5.0.7

6 months ago

5.0.6

6 months ago

5.0.5

6 months ago

5.0.4

6 months ago

5.0.3

6 months ago

5.0.2

6 months ago

5.0.1

6 months ago

5.0.0

6 months ago

4.0.3

6 months ago

4.0.2

6 months ago

4.0.1

6 months ago

4.0.0

6 months ago

3.2.0

6 months ago

3.1.0

6 months ago

3.0.1

6 months ago

3.0.0

6 months ago

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago