{"size": 1605, "ext": "js", "max_stars_repo_path": "frontend/helpers/apimock/index.js", "max_stars_repo_name": "buserbrasil/djavue-python-brasil", "max_stars_repo_stars_event_min_datetime": "2021-10-16T13:37:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-12T11:55:24.000Z", "max_issues_repo_path": "frontend/helpers/apimock/index.js", "max_issues_repo_name": "magnomatos822/djavue-python-brasil", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/helpers/apimock/index.js", "max_forks_repo_name": "magnomatos822/djavue-python-brasil", "max_forks_repo_forks_event_min_datetime": "2021-10-16T13:56:00.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-20T12:20:04.000Z"}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 25.078125, "max_line_length": 72, "alphanum_fraction": 0.5588785047}
import {zuck} from './db_people'
import {todos} from './db_todos'
import {mockasync} from './mockutils'

const keepLoggedIn = true

export default {
  login (username, password) {
    return mockasync(zuck)
  },
  logout () {
    return mockasync({})
  },
  whoami () {
    const iam = {authenticated: keepLoggedIn}
    if (iam.authenticated) {
      iam.user = zuck
    }
    return mockasync(iam)
  },
  settings () {
    return mockasync({
      SENTRY_DSN_FRONT: ''
      // SENTRY_DSN_FRONT: 'https://abcd1234@sentry.example.com/10'
    })
  },
  list_todos () {
    return mockasync(todos)
  },
  add_todo (newtask) {
    return mockasync({description: newtask, done: false})
  },
  list_tweets () {
    return mockasync(
      [
        {
          id: 1,
          author_name: 'Zé Ninguém',
          author_username: '@zeninguem',
          author_avatar: 'https://cdn.vuetifyjs.com/images/lists/1.jpg',
          created_at: '43min',
          text: 'Eu sou do povo, eu sou um Zé ninguém'
        },
        {
          id: 2,
          author_name: 'Zé Ninguém 2',
          author_username: '@zeninguem 2',
          author_avatar: 'https://cdn.vuetifyjs.com/images/lists/2.jpg',
          created_at: '45min',
          text: 'Eu sou do povo, eu sou um Zé ninguém, de novo'
        },
        {
          id: 3,
          author_name: 'Maria Ninguém',
          author_username: '@marianinguem',
          author_avatar: 'https://cdn.vuetifyjs.com/images/lists/3.jpg',
          created_at: '1h43min',
          text: 'Eu sou do povo, eu sou uma Maria ninguém'
        }
      ]
    )
  }
}
