text: 
  export default {
      
      state:{
          font:'',
          background:'',
          image:'',
          superAdminData:null,
          admins:[],
          groups:[],
          classes:[],
          courses:[],
          sessions:[],
  
          adminDetails:null,
          Afont:'',
          Abackground:'',
          Aimage:'',
          Acourse:'',
          adminClasses:[],
          adminSupervisorIn:[],
          seperatistClasses:[],
          adminExams:[],
          PracticeExams:[],
          coursesOfSuForAdmin:[],
          dummyCourseAdded:[],
          dummyImageMaterialAdded:'',
          dummyVideoMaterialAdded:'',
          dummyAudioMaterialAdded:'',
          dummyDocMaterialAdded:'',
          topicExams:[],
  
          userQuestions:[],
          userpracticeQuestions:[],
          Exams:[],
          allpexams:[],
          allClasses:[],
          trigger:'',
      },
  
      getters:{
          
      },
  
      mutations:{
          //users
          GET_USER_QUESTIONS(state, gottenQuestions) {
              state.userQuestions = gottenQuestions
          },
          GET_USER_practice_QUESTIONS(state, gottenQuestions) {
              state.userpracticeQuestions = gottenQuestions
          },
          GET_EXAMS(state, gottenExams) {
              state.Exams = gottenExams
          },
          GET_ALL_CLASSES(state, gottenClasses) {
              state.allClasses = gottenClasses
          },
          GET_ALL_PRACTICE_EXAM(state, gottenExams) {
              state.allpexams = gottenExams
          },
  
  
          //admin
          insertToicExam(state, gotten) {
              state.topicExams.push(gotten)
          },
          insertToDummyCourseOfClass(state, gotten) {
              state.dummyCourseAdded = gotten
          },
          addDummyImageMaterialTrigger(state, gotten) {
              state.dummyImageMaterialAdded = gotten
          },
          addDummyDocMaterialTrigger(state, gotten) {
              state.dummyDocMaterialAdded = gotten
          },
          addDummyVidMaterialTrigger(state, gotten) {
              state.dummyVideoMaterialAdded = gotten
          },
          addDummyAudMaterialTrigger(state, gotten) {
              state.dummyAudioMaterialAdded = gotten
          },
          GETTON_COURSES_OF_SU_FOR_ADMIN(state, gotten) {
              state.coursesOfSuForAdmin = gotten
          },
          GET_PRACTICE_EXAM(state, gottenPracticeExams) {
              state.PracticeExams = gottenPracticeExams
          },
          GET_A_FONT(state, gottenDetails) {
              state.Afont = gottenDetails
          },
          GET_A_BACKGROUND(state, gottenDetails) {
              state.Abackground = gottenDetails
          },
          GET_ADMIN_DATA(state, gottenData) {
              state.adminDetails = gottenData
          },
  
          GET_A_FONT(state, gottenData) {
              state.Afont = gottenData
          },
  
          GET_A_BACKGROUND(state, gottenData) {
              state.Abackground = gottenData
          },
  
          GET_A_IMAGE(state, gottenData) {
              state.Aimage = gottenData
          },
  
          GET_A_COURSE(state, gottenData) {
              state.Acourse = gottenData
          },
  
          GET_ADMIN_CLASSES(state, gottenAminClasses) {
              state.adminClasses = gottenAminClasses
          },
  
          GET_ADMIN_SUpervisor_in(state, adminSupervisorIn) {
              state.adminSupervisorIn = adminSupervisorIn
          },
          GET_SE_CLASS(state, gottenSeperatistClasses) {
              state.seperatistClasses = gottenSeperatistClasses
          },
  
  
          GET_ADMIN_EXAMS(state, gottenAminExams) {
              state.adminExams = gottenAminExams
          },
          REM_AN_ADMIN(state, adminId) {
              state.admins = state.admins.filter(admin =>admin.id !== adminId)
          },
          REM_A_COURSE(state, courseId) {
              state.courses = state.courses.filter(admin =>admin.id !== courseId)
          },
          REM_A_CLASS(state, classId) {
              state.classes = state.classes.filter(classs =>classs.id !== classId)
          },
  
          //s admin
          GET_SUPER_DATA(state, gottenData) {
              state.superAdminData = gottenData
          },
          GET_ADMINS_OF_SUPER(state, gottenAdmins) {
              state.admins = gottenAdmins
          },
          GET_GROUPS_OF_SUPER(state, groups) {
              state.groups = groups
          },
          GET_CLASSES_OF_SUPER(state, gottenClasses) {
              state.classes = gottenClasses
          },
          GET_COURSES_OF_SUPER(state, gottenCourses) {
              state.courses = gottenCourses
          },
          GET_SECTIONS_OF_SUPER(state, gottenSections) {
              state.sessions = gottenSections
          },
          GET_FONT(state, gottenDetails) {
              state.font = gottenDetails
          },
          GET_BACKGROUND(state, gottenDetails) {
              state.background = gottenDetails
          },
          GET_IMAGE(state, gottenDetails) {
              state.image = gottenDetails
          },
          trigger(state, payload){
              state.trigger = payload
          },
      },
  
      actions:{
          //user
          getAllpracticeExams(context) {
              axios.get('/getAllpracticeExams')
              .then((res) =>{
                  context.commit('GET_ALL_PRACTICE_EXAM', res.data)
              })
              .catch((error) => {
                  console.log(error)
              });
          },
  
          practiceexamquestions(context, payload) {
              axios.get('/practiceexamquestions', {
                  params:{
                      examid:payload
                  }
              })
              .then((res) =>{
                  context.commit('GET_USER_practice_QUESTIONS', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          examQuestionsForUser(context, payload) {
              axios.get('/examQuestionsForUser', {
                  params:{
                      examid:payload
                  }
              })
              .then((res) =>{
                  context.commit('GET_USER_QUESTIONS', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getExams(context) {
              axios.get('/getExams')
              .then((res) =>{
                  context.commit('GET_EXAMS', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getUserClasses(context) {
              axios.get('/getUserClasses')
              .then((res) =>{
                  context.commit('GET_ALL_CLASSES', res.data)
              })
              .catch((error) => {
                  
              });
          },
          
  
          //admin
          getCoursesOfThisAdminSuper(context, payload) {
              axios.get('/getCoursesOfThisAdminSuper')
              .then((res) =>{
                  context.commit('GETTON_COURSES_OF_SU_FOR_ADMIN', res.data)
              })
              .catch((error) => {
                  console.log(error)
              });
          },
          getPracticeExams(context, payload) {
              axios.get('/getPracticeExam')
              .then((res) =>{
                  context.commit('GET_PRACTICE_EXAM', res.data)
              })
              .catch((error) => {
                  console.log(error)
              });
          },
          setBackgroundA(context, payload) {
              context.commit('GET_A_BACKGROUND', payload)
              axios.post('/setBackgroundAdmin', {
                  color : payload,               
              })
              .then((res) =>{
                 
              })
              .catch((error) => {
                  console.log(error)
              });
              
          },
          setFontA(context, payload) {
              context.commit('GET_A_FONT', payload)
              axios.post('/setFontAdmin', {
                  color : payload,               
              })
              .then((res) =>{
              })
              .catch((error) => {
                  console.log(error)
              });
          },
          getSeperatistClass(context) {
              axios.get('/getSeperatistClass')
              .then((res) =>{
                  context.commit('GET_SE_CLASS', res.data)
              })
              .catch((error) => {
                  
              });
          },
          adminDetails(context) {
              axios.get('/adminDetails')
              .then((res) =>{
                  context.commit('GET_ADMIN_DATA', res.data.admindata)
              })
              .catch((error) => {
                  
              });
          },
  
          getAFont(context) {
              axios.get('/adminFont')
              .then((res) =>{
                  context.commit('GET_A_FONT', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getABackground(context) {
              axios.get('/adminBackground')
              .then((res) =>{
                  context.commit('GET_A_BACKGROUND', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getAImage(context) {
              axios.get('/adminImage')
              .then((res) =>{
                  context.commit('GET_A_IMAGE', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getACourse(context) {
              axios.get('/adminCourse')
              .then((res) =>{
                  context.commit('GET_A_COURSE', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          classesOfAdmin(context) {
              axios.get('/classesOfAdmin')
              .then((res) =>{
                  context.commit('GET_ADMIN_CLASSES', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          getAdminSupervisorIn(context) {
              axios.get('/getAdminSupervisorIn')
              .then((res) =>{
                  context.commit('GET_ADMIN_SUpervisor_in', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          examsOfAdmin(context) {
              axios.get('/examsOfAdmin')
              .then((res) =>{
                  context.commit('GET_ADMIN_EXAMS', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          getExamsOfAdmin(context, payload) {
              axios.get('/getExamsOfAdmin', {
                  params:{
                      classid:payload
                  }
              })
              .then((res) =>{
                  context.commit('GET_ADMIN_EXAMS', res.data)
              })
              .catch((error) => {
                  
              });
          },
  
          //sadmin
          getSuperAdminData(context) {
              axios.get('/superadmindata')
              .then((res) =>{
                  context.commit('GET_SUPER_DATA', res.data.superadmindata)
              })
              .catch((error) => {
                  
              });
          },
          getAdmins(context) {
              axios.get('/getAdminsOfSuper')
              .then((res) =>{
                  context.commit('GET_ADMINS_OF_SUPER', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getGroups(context) {
              axios.get('/getGroupsOfSuper')
              .then((res) =>{
                  context.commit('GET_GROUPS_OF_SUPER', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getCourses(context) {
              axios.get('/getCoursesOfSuper')
              .then((res) =>{
                  context.commit('GET_COURSES_OF_SUPER', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getClasses(context) {
              axios.get('/getClassesOfSuper')
              .then((res) =>{
                  context.commit('GET_CLASSES_OF_SUPER', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getSections(context) {
              axios.get('/getSectionsOfSuper')
              .then((res) =>{
                  context.commit('GET_SECTIONS_OF_SUPER', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getFont(context) {
              axios.get('/superadminFont')
              .then((res) =>{
                  context.commit('GET_FONT', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getBackground(context) {
              axios.get('/superadminBackground')
              .then((res) =>{
                  context.commit('GET_BACKGROUND', res.data)
              })
              .catch((error) => {
                  
              });
          },
          getImage(context) {
              axios.get('/superadminImage')
              .then((res) =>{
                  context.commit('GET_IMAGE', res.data)
              })
              .catch((error) => {
                  
              });
          },
          setBackground(context, payload) {
              context.commit('GET_BACKGROUND', payload)
              axios.post('/setBackgroundSuper', {
                  color : payload,               
              })
              .then((res) =>{
                 
              })
              .catch((error) => {
                  console.log(error)
              });
              
          },
          setFont(context, payload) {
              context.commit('GET_FONT', payload)
              axios.post('/setFontSuper', {
                  color : payload,               
              })
              .then((res) =>{
              })
              .catch((error) => {
                  console.log(error)
              });
          },
      },
  
  };
  