Skip to content
Snippets Groups Projects
Select Git revision
  • fd1508873df62ed03264f8e15effef3229866163
  • master default
  • msauth
  • set-sast-config-1
  • email-template
  • 1.4.20 protected
  • 1.4.19 protected
  • 1.4.18 protected
  • 1.4.17 protected
  • 1.4.16 protected
  • 1.4.15 protected
  • 1.4.14 protected
  • 1.4.13 protected
  • 1.4.12 protected
  • 1.4.11-3 protected
  • 1.4.11-2 protected
  • 1.4.11 protected
  • 1.4.10 protected
  • 1.4.9 protected
  • 1.4.8 protected
  • 1.4.7 protected
  • 1.4.6 protected
  • 1.4.5 protected
  • 1.4.4 protected
  • 1.4.3 protected
25 results

permissions.py

Blame
  • AddSolutionReducer.js 621 B
    import { WRITE_SOLUTION, WRITE_SOLUTION_FILE, GET_SOLUTIONS, CLEAR_WRITE } from '../actions/types';
    
    const INITIAL_STATE = {
      task: '',
      name: '',
      description: '',
      file: '',
      solutions: [],
    };
    
    export default (state = INITIAL_STATE, action) => {
      switch (action.type) {
        case WRITE_SOLUTION:
          return { ...state, [action.target]: action.payload };
        case WRITE_SOLUTION_FILE:
          return { ...state, [action.target]: action.payload };
        case GET_SOLUTIONS:
          return { ...state, solutions: action.payload };
        case CLEAR_WRITE:
          return INITIAL_STATE;
        default:
          return state;
      }
    };