This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hs.dgsw.spring_mini_blog.controller; | |
import kr.hs.dgsw.spring_mini_blog.domain.Attach; | |
import kr.hs.dgsw.spring_mini_blog.domain.Post; | |
import kr.hs.dgsw.spring_mini_blog.protocol.ResponseFormat; | |
import kr.hs.dgsw.spring_mini_blog.service.AttachService; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.core.io.Resource; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import styled from 'styled-components'; | |
import CalculatorContainer from './containers/CalculatorContainer'; | |
const Wrapper = styled.div` | |
display: flex; | |
flex-flow: column nowrap; | |
width: 100vw; | |
height: 100vh; | |
align-items: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.hs.dgsw.boardback.controller; | |
import kr.hs.dgsw.boardback.model.Post; | |
import kr.hs.dgsw.boardback.service.PostService; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.web.bind.annotation.*; | |
import java.util.List; | |
@RestController |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getBoard, solveBoard, validateBoard, BoardResponse, SolveResponse, ValidateResponse } from 'services/sudoku.service'; | |
let board1: BoardResponse; | |
let board2: BoardResponse; | |
let solved1: SolveResponse; | |
let solved2: SolveResponse; | |
let validated1: ValidateResponse; | |
let validated2: ValidateResponse; | |
beforeAll(async () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import qs from 'qs'; | |
const baseURI: string = 'https://sugoku.herokuapp.com'; | |
type Tuple9<T> = [T, T, T, T, T, T, T, T, T]; | |
export type Board = Tuple9<Tuple9<number>>; | |
export type Difficulty = 'easy' | 'medium' | 'hard' | 'random'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
const baseURI: string = 'https://sugoku.herokuapp.com'; | |
type Tuple9<T> = [T, T, T, T, T, T, T, T, T]; | |
export type Board = Tuple9<Tuple9<number>>; | |
export type Difficulty = 'easy' | 'medium' | 'hard' | 'random'; | |
export type Status = 'solved' | 'unsolved'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
const baseURI: string = 'https://sugoku.herokuapp.com'; | |
type Tuple9<T> = [T, T, T, T, T, T, T, T, T]; | |
export type Board = Tuple9<Tuple9<number>>; | |
export type Difficulty = 'easy' | 'medium' | 'hard' | 'random'; | |
export type Status = 'solved' | 'unsolved'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Board, Difficulty, Status } from 'services/sudoku.service'; | |
export const START = 'sudoku/START'; | |
export const END = 'sudoku/END'; | |
export const GET_BOARD = 'sudoku/GET_BOARD'; | |
export const SOLVE_BOARD = 'sudoku/SOLVE_BOARD'; | |
interface StartAction { | |
type: typeof START; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Board, Difficulty, Status } from 'services/sudoku.service'; | |
import produce from 'immer'; | |
export const START = 'sudoku/START'; | |
export const END = 'sudoku/END'; | |
export const GET_BOARD = 'sudoku/GET_BOARD'; | |
export const SET_BOARD = 'sudoku/SET_BOARD'; | |
export const SOLVE_BOARD = 'sudoku/SOLVE_BOARD'; | |
export const UPDATE_BOARD = 'sudoku/UPDATE_BOARD'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineReducers } from 'redux'; | |
import { SudokuState, sudokuReducer as sudoku } from './sudoku'; | |
export interface StoreState { | |
sudoku: SudokuState; | |
} | |
export default combineReducers<StoreState>({ | |
sudoku | |
}); |