openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

// Supported Vehicles Vuex Store
// ~~~~~~~~~~~~~~~
{% set footnote_tag = '<a style="position: absolute;" href="/vehicles/#footnote"><sup>{}</sup></a>' -%}
{% set star_icon = '<img src="/supported-cars/icon-star-{}.svg" alt="">' -%}
import axios from 'axios';
export const state = () => ({
leverJobs: [],
columns: [
{% for column in Column %}
'{{column.value}}',
{% endfor %}
],
footnotes: [
{% for footnote in footnotes %}
'{{footnote | replace("'", "\\'")}}',
{% endfor %}
],
supportedVehicles: {
{% for tier, cars in tiers %}
'{{tier.name.title()}}': {
description: '{{tier.value | replace("'", "\\'")}}',
cars: [
{% for car_info in cars %}
{
video_link: '{{car_info.video_link}}',
row: {
{% for column in Column %}
{{column.name.lower()}}: '{{car_info.get_column(column, star_icon, footnote_tag)}}',
{% endfor %}
}
},
{% endfor %}
],
},
{% endfor %}
},
})
export const mutations = {}
export const actions = {}