<commit_before>// import AJAX from 'utils/ajax';

export function getDashboards() {
  // return AJAX({
    // method: 'GET',
    // url: `/chronograf/v1/dashboards`,
  // });
  return {
    then(cb) {
      cb([
        {name: "Goldeneye System Status"},
        {name: "Carver Media Group Broadcast System Status"},
        {name: "Icarus Space Program Status"},
      ]);
    },
  };
}<commit_msg>Make dashboard list fetch from API<commit_after>import AJAX from 'utils/ajax';

export function getDashboards() {
  return AJAX({
    method: 'GET',
    url: `/chronograf/v1/dashboards`,
  });
}
{'fraction_non_alphanumeric': 0.16020236087689713, 'fraction_numerical': 0.003372681281618887, 'mean_word_length': 2.78343949044586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5502851', 'n_tokens_mistral': 201, 'n_tokens_neox': 193, 'n_words': 51}