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
const path = require('path'); | |
module.exports = { | |
entry: './src/main/resources/static/new.js', | |
output: { | |
path: path.resolve(__dirname, 'src/main/resources/static/dist'), | |
filename: 'newBundle.js' | |
}, | |
module: { | |
rules: [ |
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
// deps for editor | |
require('codemirror/lib/codemirror.css'); // codemirror | |
require('tui-editor/dist/tui-editor.css'); // editor ui | |
require('tui-editor/dist/tui-editor-contents.css'); // editor content | |
require('highlight.js/styles/github.css'); // code block highlight | |
var Editor = require('tui-editor'); | |
var editor = new Editor({ | |
el: document.querySelector('#editSection'), |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Article New</title> | |
</head> | |
<body> | |
<div> |
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 io.inhyuck.tuipractice.controller; | |
@Controller | |
@RequestMapping("/article") | |
public class ArticleController { | |
@Autowired | |
private ArticleMapper articleMapper; | |
@Autowired | |
private UploadFileService uploadFileService; |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Article New</title> | |
<!-- tui-file-uploader --> | |
<script src="/tui-file-uploader/jquery/dist/jquery.js"></script> | |
<script src="/tui-file-uploader/tui-code-snippet/dist/tui-code-snippet.js"></script> |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Article New</title> | |
<!-- tui-file-uploader --> | |
<script src="/tui-file-uploader/jquery/dist/jquery.js"></script> | |
<script src="/tui-file-uploader/tui-code-snippet/dist/tui-code-snippet.js"></script> |
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 io.inhyuck.tuipractice.controller; | |
import java.util.List; | |
import org.springframework... //생략 | |
import io.inhyuck.tuipractice.domain.Article; | |
import io.inhyuck.tuipractice.mapper.ArticleMapper; | |
import io.inhyuck.tuipractice.service.UploadFileService; |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Article New</title> | |
<!-- tui-editor --> | |
<script src="/tui-editor/jquery/dist/jquery.js"></script> | |
<script src='/tui-editor/markdown-it/dist/markdown-it.js'></script> |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Article</title> | |
</head> | |
<body> | |
<div> | |
<h1>Article</h1> |
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 io.inhyuck.tuipractice.domain; | |
import lombok.*; | |
@Data | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@Builder | |
public class Article { | |
private int id; |
NewerOlder