{"size": 1453, "ext": "js", "max_stars_repo_path": "src/store/mutations.js", "max_stars_repo_name": "ErKeLost/web-ADNY", "max_stars_repo_stars_event_min_datetime": "2021-02-24T12:16:57.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-24T12:16:57.000Z", "max_issues_repo_path": "src/store/mutations.js", "max_issues_repo_name": "ErKeLost/web-ADNY", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/store/mutations.js", "max_forks_repo_name": "ErKeLost/web-ADNY", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.904109589, "max_line_length": 48, "alphanum_fraction": 0.6207845836}
import {
  COMMENT_DATA,
  SET_FULL_SCREEN
} from './mutations-type'
import { 
  SET_MINI_SCREEN,
  SET_IS_PLAYING,
  SET_SONG_DETAIL,
  SET_CURRENT_INDEX,
  SET_CURRENT_LYRIC,
  SET_CUR_TIME,
  SET_INDEX,
  MV_DATA,
  COMMENT_MV,
  SEA
} from './mutations-type'
export default {
  //   changeFullPlayer(state,flag){
  //     state.isFullPlayer = flag
  // }
  [SET_FULL_SCREEN](state, flag) {
    state.isFullPlayer = flag
  },
  [SET_MINI_SCREEN](state, flag) {
    state.isMiniPlayer = flag
    // console.log("aaa");
  },
  [SET_IS_PLAYING](state, flag) {
    state.isPlaying = flag
  },
  [SET_SONG_DETAIL](state, list) {
    state.songs = list
  },
  [SET_CURRENT_INDEX](state, index) {
    if (index < 0) {
      index = state.songs.length - 1
    } else if (index > state.songs.length - 1) {
      index = 0
    } else {
      state.currentIndex = index
    }
  },
  [SET_CURRENT_LYRIC](state,lyric){
    state.currentLyric = lyric
  },
  [SET_CUR_TIME](state, time) {
    state.curtime = time
  },
  [SET_INDEX](state, index) {
    state.titleIndex = index
  },
  [MV_DATA](state,data){
    state.mvData = data
  },
  topData(state,data){
    state.top = data
  },
  setmv(state,data){
    state.mvPlaying = data
  },
  comment(state,flag){
    state.isComment = flag
  },
  [COMMENT_DATA](state,list){
    state.commentData = list
  },
  [COMMENT_MV](state,list){
    state.mvComment = list
  },
  [SEA](state,flag){
    state.sea = flag
  }
}