Bike Rental — Vue

Build the Vue screen of Mas Sigit's bike rental kiosk: templates, components, hooks and tests. 16 levels, played right in the browser with nothing to install.

What the levels ask

  1. The second-hand kiosk from the district is on, but its screen is still empty. index.html has one element where the app shows. Fill in the argument to mount in main.js so that Vue mounts the Sewa Ontel app on that element.
  2. Mrs. Sari wants to rent the Jengki, then Bagas tries to rent the Simplex, which someone else has. The Sewa button of a bike that is out must be dead. Fill in the button's disabled attribute so that it follows the s.ada data.
  3. Mr. Sigit's notice is written in HTML and must show in bold. A visitor's message must show exactly as written, whatever it says. Bagas comes and writes a message. Choose how to show each of them.
  4. Grandma Marni writes her name in the form, opens Lihat tarif, then comes back. The form must be hidden while the prices are open, and her name must still be there when she returns. Choose how FormSewa is hidden.
  5. Mr. Dodi checks the bikes that come back. Each row has its own note field, state that belongs to the BarisCek component. He writes rem blong on the Simplex's row, then Mr. Sigit signs off the Gazelle and its row goes. The note must stay with the Simplex. Choose a key for each row.
  6. Rara only wants to see the bikes that are in. The list must have one row for each bike that is ada, with no empty rows. Choose how v-for and v-if are arranged inside the <ul>.
  7. Mrs. Ratna reads the prices for her class trip. Each bike shows as a KartuSepeda. The Mini has no price in the data yet, so its card must show the default price, Rp 3000. Fill in the import line in App.vue and defineProps in KartuSepeda.vue.
  8. Mr. Tono taps Sewa sepeda, then types his name straight away without tapping the field. As soon as FormSewa appears, its name field must already have focus. Choose where kolom.value.focus() is called.
  9. Rara rents the Mini. The Argo card adds Rp 1000 to the bill every second on screen while the bike is out. After 3 seconds Rara brings the bike back: the meter card goes, and her bill must stop at Rp 3000. Choose the line that stops the interval.
  10. The rental log is already longer than its box. Mr. Harun rents the Gazelle, then Ms. Wulan rents the Jengki. Each new rental must show at once at the bottom of the box. Choose when the box scrolls to the bottom.
  11. The bike photos and the route map load only when asked for. On the kiosk's network the photos arrive in 150 ms and the map in 2.5 seconds, because the signal at the far end of the fields is weak. Memuat... must not flicker for the fast photos, must show while Mr. Tono waits for the map, and the map must never be declared failed. Choose delay and timeout.
  12. Mr. Sigit makes a v-fokus directive so that the name field is ready for typing in any form. Dina taps Sewa sepeda, types her name straight away, then taps the phone field and types her number. Choose the directive hook that calls el.focus().

And more, 16 levels in all.