/*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

var config = {
  // list images on console that match no model
  listMissingImages: true,
  // see devices.js for different vendor model maps
  vendormodels: vendormodels,
  // set enabled categories of devices (see devices.js)
  enabled_device_categories: ["recommended", "ath10k_lowmem", "4_32", "8_32", "16_32"],
  // Display a checkbox that allows to display not recommended devices.
  // This only make sense if enabled_device_categories also contains not
  // recommended devices.
  recommended_toggle: true,
  // community prefix of the firmware images
  community_prefix: 'gluon-ffs-',
  // firmware version regex
  version_regex: "-((experimental|[0-9]+\.[0-9]+(\.[0-9]+)?)[+][0-9]{4}-[0-9]{2}-[0-9]{2}-g\.[a-f0-9]+-s\.[a-f0-9]+-)",
  prettyPrintVersionRegex: "((experimental|[0-9]+\.[0-9]+(\.[0-9]+)?)[+][0-9]{4}-[0-9]{2}-[0-9]{2})", // removes +2017-09-13-g.d722c26-s.b0e5e48
  // relative image paths and branch
  directories: {
    //'../gluon/stable/factory/': 'stable',
    '../gluon/stable/sysupgrade/': 'stable',
    '../gluon/stable/factory/': 'stable',
    '../gluon/stable/other/': 'stable',
    '../gluon/beta/sysupgrade/': 'beta',
    '../gluon/beta/factory/': 'beta',
    '../gluon/beta/other/': 'beta',
    '../gluon/nightly/sysupgrade/': 'nightly',
    '../gluon/nightly/factory/': 'nightly',
    '../gluon/nightly/other/': 'nightly',
    '../gluon/experimental/sysupgrade/': 'experimental',
    '../gluon/experimental/factory/': 'experimental',
    '../gluon/experimental/other/': 'experimental'
  },
  // page title
  title: 'Firmware',
  // branch descriptions shown during selection
  branch_descriptions: {
    stable: 'Empfohlen.',
    beta: 'Hilf den Firmware-Entwicklern mit Tests. Kann gelegentlich Probleme machen.',
    nightly: 'Ungetestet, automatisch generiert.',
    experimental: 'Halte den Lötkolben bereit.'
  },
  // recommended branch will be marked during selection
  recommended_branch: 'stable',
  // experimental branches (show a warning for these branches)
  experimental_branches: ['experimental', 'nightly'],
  // path to preview pictures directory
  preview_pictures: 'device-pictures/pictures-svg/',
  // link to changelog
  changelog: 'https://wiki.freifunk-stuttgart.net/technik:software:gluon:firmwareversionen_milestones'
};