language: 'en',
// Show help text for images
showHelp: true,
- // base URL
- base_url: 'https://downloads.openwrt.org',
// Files to get data from
versions: {
//'SNAPSHOT': '/api/names/SNAPSHOT', // when using sasu backend
}).join(' / ');
}
-function get_version_url(version) {
- if (version == 'SNAPSHOT') {
- return config.base_url + '/snapshots/targets/{target}'
- } else {
- return config.base_url + '/releases/{version}/targets/{target}'.replace('{version}', version)
- }
-}
-
function build_asa_request() {
if (!current_model || !current_model.id) {
alert('bad profile');
data.json().then(obj => {
// handle native openwrt json format
if ('profiles' in obj) {
- obj['url'] = get_version_url(version)
obj['models'] = {}
for (const [key, value] of Object.entries(obj['profiles'])) {
obj['models'][get_model_titles(value.titles)] = value