{"size": 395, "ext": "js", "max_stars_repo_path": "src/core/api/index.js", "max_stars_repo_name": "ufbeans/puzzle", "max_stars_repo_stars_event_min_datetime": "2019-06-03T01:16:00.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-22T09:40:38.000Z", "max_issues_repo_path": "src/core/api/index.js", "max_issues_repo_name": "ufbeans/puzzle", "max_issues_repo_issues_event_min_datetime": "2019-06-04T11:59:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-17T23:51:50.000Z", "max_forks_repo_path": "src/core/api/index.js", "max_forks_repo_name": "ufbeans/puzzle", "max_forks_repo_forks_event_min_datetime": "2019-06-03T07:36:55.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-03T02:39:34.000Z"}
{"max_stars_count": 243, "max_issues_count": 22, "max_forks_count": 47, "avg_line_length": 24.6875, "max_line_length": 65, "alphanum_fraction": 0.6126582278}
// 模拟数据
import menus from "./mock/menus";
import user from "./mock/user";

export const getUser = () =>
  new Promise(resolve =>
    setTimeout(() => {
      if (sessionStorage.getItem("frame"))
        user.frame = JSON.parse(sessionStorage.getItem("frame"));
      resolve(user);
    }, 100)
  );

export const getMenus = () =>
  new Promise(resolve => setTimeout(() => resolve(menus), 100));
