getBlogEntity(Integer page, Integer size);
32 |
33 | Blogs getBlogEntityByType(String typeId, Integer page, Integer size);
34 |
35 | Blog getBlogByID(String id);
36 |
37 | void saveBlog(String title, String author, String typeID, String md);
38 |
39 | void deleteBlogByID(String id);
40 |
41 | void updataBlogByID(String id, String title, String author, String typeID, String md);
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/resources/static/views/view_5/view_5.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
欢迎访问我的博客 目前网站正在建设中...
6 |
运行环境:阿里云 学生 > Ubuntu > Tomcat8
7 |
网站架构:AngularJS+Spring Boot
8 |
前端框架:
9 |
10 |
11 |
12 |
13 |
14 |
后端框架
15 |
16 |
17 |
感谢所有开源项目!
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/json-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on jsonlint.js from https://github.com/zaach/jsonlint
5 |
6 | // declare global: jsonlint
7 |
8 | (function (mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function (CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "json", function (text) {
19 | var found = [];
20 | jsonlint.parseError = function (str, hash) {
21 | var loc = hash.loc;
22 | found.push({
23 | from: CodeMirror.Pos(loc.first_line - 1, loc.first_column),
24 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column),
25 | message: str
26 | });
27 | };
28 | try {
29 | jsonlint.parse(text);
30 | }
31 | catch (e) {
32 | }
33 | return found;
34 | });
35 |
36 | });
37 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/theme/neo.css:
--------------------------------------------------------------------------------
1 | /* neo theme for codemirror */
2 |
3 | /* Color scheme */
4 |
5 | .cm-s-neo.CodeMirror {
6 | background-color: #ffffff;
7 | color: #2e383c;
8 | line-height: 1.4375;
9 | }
10 |
11 | .cm-s-neo .cm-comment {
12 | color: #75787b
13 | }
14 |
15 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {
16 | color: #1d75b3
17 | }
18 |
19 | .cm-s-neo .cm-atom, .cm-s-neo .cm-number {
20 | color: #75438a
21 | }
22 |
23 | .cm-s-neo .cm-node, .cm-s-neo .cm-tag {
24 | color: #9c3328
25 | }
26 |
27 | .cm-s-neo .cm-string {
28 | color: #b35e14
29 | }
30 |
31 | .cm-s-neo .cm-variable, .cm-s-neo .cm-qualifier {
32 | color: #047d65
33 | }
34 |
35 | /* Editor styling */
36 |
37 | .cm-s-neo pre {
38 | padding: 0;
39 | }
40 |
41 | .cm-s-neo .CodeMirror-gutters {
42 | border: none;
43 | border-right: 10px solid transparent;
44 | background-color: transparent;
45 | }
46 |
47 | .cm-s-neo .CodeMirror-linenumber {
48 | padding: 0;
49 | color: #e0e2e5;
50 | }
51 |
52 | .cm-s-neo .CodeMirror-guttermarker {
53 | color: #1d75b3;
54 | }
55 |
56 | .cm-s-neo .CodeMirror-guttermarker-subtle {
57 | color: #e0e2e5;
58 | }
59 |
60 | .cm-s-neo div.CodeMirror-cursor {
61 | width: auto;
62 | border: 0;
63 | background: rgba(155, 157, 162, 0.37);
64 | z-index: 1;
65 | }
66 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/edit/trailingspace.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function (CodeMirror) {
12 | CodeMirror.defineOption("showTrailingSpace", false, function (cm, val, prev) {
13 | if (prev == CodeMirror.Init) prev = false;
14 | if (prev && !val)
15 | cm.removeOverlay("trailingspace");
16 | else if (!prev && val)
17 | cm.addOverlay({
18 | token: function (stream) {
19 | for (var l = stream.string.length, i = l; i && /\s/.test(stream.string.charAt(i - 1)); --i) {
20 | }
21 | if (i > stream.pos) {
22 | stream.pos = i;
23 | return null;
24 | }
25 | stream.pos = l;
26 | return "trailingspace";
27 | },
28 | name: "trailingspace"
29 | });
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/src/main/java/com/ning/itning/entity/view_1/Carousel.java:
--------------------------------------------------------------------------------
1 | package com.ning.itning.entity.view_1;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.Id;
6 | import javax.persistence.Table;
7 | import java.io.Serializable;
8 |
9 | /**
10 | * @author : ning
11 | * @version : 1.0.0
12 | * @package_name : com.ning.itning.entity.view_1
13 | * @date : 2017/9/22
14 | **/
15 | @Entity
16 | @Table(name = "view1_carousel")
17 | public class Carousel implements Serializable {
18 | @Id
19 | @Column(name = "id")
20 | private String id;
21 | @Column(name = "href")
22 | private String href;
23 | @Column(name = "alt")
24 | private String alt;
25 | @Column(name = "src")
26 | private String src;
27 |
28 | public String getSrc() {
29 | return src;
30 | }
31 |
32 | public void setSrc(String src) {
33 | this.src = src;
34 | }
35 |
36 | public String getId() {
37 | return id;
38 | }
39 |
40 | public void setId(String id) {
41 | this.id = id;
42 | }
43 |
44 | public String getHref() {
45 | return href;
46 | }
47 |
48 | public void setHref(String href) {
49 | this.href = href;
50 | }
51 |
52 | public String getAlt() {
53 | return alt;
54 | }
55 |
56 | public void setAlt(String alt) {
57 | this.alt = alt;
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/jquery.flowchart.min.js:
--------------------------------------------------------------------------------
1 | /*! jQuery.flowchart.js v1.1.0 | jquery.flowchart.min.js | jQuery plugin for flowchart.js. | MIT License | By: Pandao | https://github.com/pandao/jquery.flowchart.js | 2015-03-09 */
2 | (function(factory){if(typeof require==="function"&&typeof exports==="object"&&typeof module==="object"){module.exports=factory}else{if(typeof define==="function"){factory(jQuery,flowchart)}else{factory($,flowchart)}}}(function(jQuery,flowchart){(function($){$.fn.flowChart=function(options){options=options||{};var defaults={"x":0,"y":0,"line-width":2,"line-length":50,"text-margin":10,"font-size":14,"font-color":"black","line-color":"black","element-color":"black","fill":"white","yes-text":"yes","no-text":"no","arrow-end":"block","symbols":{"start":{"font-color":"black","element-color":"black","fill":"white"},"end":{"class":"end-element"}},"flowstate":{"past":{"fill":"#CCCCCC","font-size":12},"current":{"fill":"black","font-color":"white","font-weight":"bold"},"future":{"fill":"white"},"request":{"fill":"blue"},"invalid":{"fill":"#444444"},"approved":{"fill":"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},"rejected":{"fill":"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}};return this.each(function(){var $this=$(this);var diagram=flowchart.parse($this.text());var settings=$.extend(true,defaults,options);$this.html("");diagram.drawSVG(this,settings)})}})(jQuery)}));
--------------------------------------------------------------------------------
/src/main/resources/static/css/error.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 | .error_background {
3 | background-color: #0f0f0f;
4 | }
5 |
6 | .error_padding {
7 | padding: 40px 0 60px 0;
8 | }
9 |
10 | .error_img {
11 | width: 100%;
12 | }
13 |
14 | .error_div {
15 | float: left;
16 | background-color: #ffffff;
17 | width: 40%;
18 | }
19 |
20 | .error_h1 {
21 | padding: 83px 0;
22 | font-size: 80px;
23 | line-height: 84px;
24 | }
25 |
26 | .error_h2 {
27 | padding-bottom: 66px;
28 | }
29 |
30 | @media (max-width: 1200px) {
31 | .error_h1 {
32 | padding: 52.5px 0;
33 | font-size: 80px;
34 | line-height: 84px;
35 | }
36 | }
37 |
38 | @media (max-width: 992px) {
39 | .error_h1 {
40 | padding: 18.5px 0;
41 | font-size: 80px;
42 | line-height: 84px;
43 | }
44 | }
45 |
46 | @media (max-width: 768px) {
47 | .error_h1 {
48 | padding: 18.5px 0;
49 | font-size: 80px;
50 | line-height: 84px;
51 | }
52 |
53 | .error_div_img {
54 | width: 100%;
55 | float: left;
56 | margin-bottom: 10px;
57 | }
58 |
59 | .error_div {
60 | float: left;
61 | background-color: #ffffff;
62 | width: 100%;
63 | margin-bottom: 4em;
64 | }
65 |
66 | }
67 |
68 | @media (min-width: 768px) {
69 | .error_div_img {
70 | width: 60%;
71 | float: left;
72 | margin-bottom: 60px;
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/css-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on csslint.js from https://github.com/stubbornella/csslint
5 |
6 | // declare global: CSSLint
7 |
8 | (function (mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function (CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "css", function (text) {
19 | var found = [];
20 | if (!window.CSSLint) return found;
21 | var results = CSSLint.verify(text), messages = results.messages, message = null;
22 | for (var i = 0; i < messages.length; i++) {
23 | message = messages[i];
24 | var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1,
25 | endCol = message.col;
26 | found.push({
27 | from: CodeMirror.Pos(startLine, startCol),
28 | to: CodeMirror.Pos(endLine, endCol),
29 | message: message.message,
30 | severity: message.type
31 | });
32 | }
33 | return found;
34 | });
35 |
36 | });
37 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function (CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("diff", function () {
15 |
16 | var TOKEN_NAMES = {
17 | '+': 'positive',
18 | '-': 'negative',
19 | '@': 'meta'
20 | };
21 |
22 | return {
23 | token: function (stream) {
24 | var tw_pos = stream.string.search(/[\t ]+?$/);
25 |
26 | if (!stream.sol() || tw_pos === 0) {
27 | stream.skipToEnd();
28 | return ("error " + (
29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
30 | }
31 |
32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
33 |
34 | if (tw_pos === -1) {
35 | stream.skipToEnd();
36 | } else {
37 | stream.pos = tw_pos;
38 | }
39 |
40 | return token_name;
41 | }
42 | };
43 | });
44 |
45 | CodeMirror.defineMIME("text/x-diff", "diff");
46 |
47 | });
48 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NTriples mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
28 |
29 |
30 | NTriples mode
31 |
40 |
41 |
44 | MIME types defined: text/n-triples.
45 |
46 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/runmode/colorize.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("./runmode"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "./runmode"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function (CodeMirror) {
12 | "use strict";
13 |
14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
15 |
16 | function textContent(node, out) {
17 | if (node.nodeType == 3) return out.push(node.nodeValue);
18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) {
19 | textContent(ch, out);
20 | if (isBlock.test(node.nodeType)) out.push("\n");
21 | }
22 | }
23 |
24 | CodeMirror.colorize = function (collection, defaultMode) {
25 | if (!collection) collection = document.body.getElementsByTagName("pre");
26 |
27 | for (var i = 0; i < collection.length; ++i) {
28 | var node = collection[i];
29 | var mode = node.getAttribute("data-lang") || defaultMode;
30 | if (!mode) continue;
31 |
32 | var text = [];
33 | textContent(node, text);
34 | node.innerHTML = "";
35 | CodeMirror.runMode(text.join(""), mode, node);
36 |
37 | node.className += " cm-s-default";
38 | }
39 | };
40 | });
41 |
--------------------------------------------------------------------------------
/src/main/java/com/ning/itning/controller/ArticleController.java:
--------------------------------------------------------------------------------
1 | package com.ning.itning.controller;
2 |
3 | import com.ning.itning.entity.view_3.Blog;
4 | import com.ning.itning.entity.view_3.Type;
5 | import com.ning.itning.service.View_3_Service;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Controller;
8 | import org.springframework.ui.Model;
9 | import org.springframework.web.bind.annotation.PathVariable;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.ResponseBody;
12 |
13 | import java.util.ArrayList;
14 | import java.util.Date;
15 | import java.util.List;
16 | import java.util.UUID;
17 |
18 | /**
19 | * Blog 文章控制层
20 | *
21 | * @author : ning
22 | * @version : 1.0.0
23 | * @package_name : com.ning.itning.controller
24 | * @date : 2017/9/24
25 | **/
26 | @Controller
27 | public class ArticleController {
28 |
29 | private final View_3_Service view_3_service;
30 |
31 | @Autowired
32 | public ArticleController(View_3_Service view_3_service) {
33 | this.view_3_service = view_3_service;
34 | }
35 |
36 | /**
37 | * 根据ID获取文章实体
38 | *
39 | * @param id, 文章ID
40 | * @param model org.springframework.ui.Model
41 | * @return --java.lang.String
42 | * @author : ning
43 | * @date : 2017/9/25
44 | **/
45 | @RequestMapping("/article/{id}")
46 | public String getArticleByID(@PathVariable("id") String id, Model model) {
47 | Blog blogByID = view_3_service.getBlogByID(id);
48 | model.addAttribute("blog", blogByID);
49 | return "article";
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/tern/worker.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // declare global: tern, server
5 |
6 | var server;
7 |
8 | this.onmessage = function (e) {
9 | var data = e.data;
10 | switch (data.type) {
11 | case "init":
12 | return startServer(data.defs, data.plugins, data.scripts);
13 | case "add":
14 | return server.addFile(data.name, data.text);
15 | case "del":
16 | return server.delFile(data.name);
17 | case "req":
18 | return server.request(data.body, function (err, reqData) {
19 | postMessage({id: data.id, body: reqData, err: err && String(err)});
20 | });
21 | case "getFile":
22 | var c = pending[data.id];
23 | delete pending[data.id];
24 | return c(data.err, data.text);
25 | default:
26 | throw new Error("Unknown message type: " + data.type);
27 | }
28 | };
29 |
30 | var nextId = 0, pending = {};
31 |
32 | function getFile(file, c) {
33 | postMessage({type: "getFile", name: file, id: ++nextId});
34 | pending[nextId] = c;
35 | }
36 |
37 | function startServer(defs, plugins, scripts) {
38 | if (scripts) importScripts.apply(null, scripts);
39 |
40 | server = new tern.Server({
41 | getFile: getFile,
42 | async: true,
43 | defs: defs,
44 | plugins: plugins
45 | });
46 | }
47 |
48 | var console = {
49 | log: function (v) {
50 | postMessage({type: "debug", message: v});
51 | }
52 | };
53 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/css/editormd.logo.min.css:
--------------------------------------------------------------------------------
1 | /*! Editor.md v1.5.0 | editormd.logo.min.css | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */
2 | /*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */@font-face{font-family:editormd-logo;src:url(../../../fonts/editormd-logo.eot?-5y8q6h);src:url(.../fonts/editormd-logo.eot?#iefix-5y8q6h)format("embedded-opentype"),url(../../../fonts/editormd-logo.woff?-5y8q6h)format("woff"),url(../../../fonts/editormd-logo.ttf?-5y8q6h)format("truetype"),url(../../../fonts/editormd-logo.svg?-5y8q6h#icomoon)format("svg");font-weight:400;font-style:normal}.editormd-logo,.editormd-logo-1x,.editormd-logo-2x,.editormd-logo-3x,.editormd-logo-4x,.editormd-logo-5x,.editormd-logo-6x,.editormd-logo-7x,.editormd-logo-8x{font-family:editormd-logo;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;font-size:inherit;line-height:1;display:inline-block;text-rendering:auto;vertical-align:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.editormd-logo-1x:before,.editormd-logo-2x:before,.editormd-logo-3x:before,.editormd-logo-4x:before,.editormd-logo-5x:before,.editormd-logo-6x:before,.editormd-logo-7x:before,.editormd-logo-8x:before,.editormd-logo:before{content:"\e1987"}.editormd-logo-1x{font-size:1em}.editormd-logo-lg{font-size:1.2em}.editormd-logo-2x{font-size:2em}.editormd-logo-3x{font-size:3em}.editormd-logo-4x{font-size:4em}.editormd-logo-5x{font-size:5em}.editormd-logo-6x{font-size:6em}.editormd-logo-7x{font-size:7em}.editormd-logo-8x{font-size:8em}.editormd-logo-color{color:#2196F3}
--------------------------------------------------------------------------------
/src/main/java/com/ning/itning/controller/IndexFrameWork.java:
--------------------------------------------------------------------------------
1 | package com.ning.itning.controller;
2 |
3 | import com.ning.itning.entity.indexFrameWork.Index;
4 | import com.ning.itning.service.IndexService;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.security.access.prepost.PreAuthorize;
7 | import org.springframework.stereotype.Controller;
8 | import org.springframework.web.bind.annotation.RequestMapping;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 |
11 | /**
12 | * 主页框架类
13 | *
14 | * @author : ning
15 | * @version : 1.0.0
16 | * @package_name : com.ning.itning.controller
17 | * @date : 2017/9/21
18 | **/
19 | @Controller
20 | public class IndexFrameWork {
21 |
22 | private final IndexService indexService;
23 |
24 | @Autowired
25 | public IndexFrameWork(IndexService indexService) {
26 | this.indexService = indexService;
27 | }
28 |
29 | /**
30 | * 进入首页方法
31 | *
32 | * @return 首页HTML名--java.lang.String
33 | * @author : ning
34 | * @date : 2017/9/21
35 | **/
36 | @RequestMapping("/")
37 | public String index() {
38 | return "index";
39 | }
40 |
41 | /**
42 | * 框架数据获取方法
43 | *
44 | * @return JSON数据--com.ning.itning.entity.indexFrameWork.Index
45 | * @author : ning
46 | * @date : 2017/9/22
47 | **/
48 | @RequestMapping("/getIndexFrameWorkData")
49 | @ResponseBody
50 | public Index getIndexFrameWorkData() {
51 | return indexService.getIndexEntity();
52 | }
53 |
54 |
55 | @RequestMapping("/admin")
56 | public String admin() {
57 | return "index-admin";
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PersonalBlogSystem
2 | Personal Blog System Project
3 |
4 | [](https://github.com/itning/itning/stargazers)
5 | [](https://github.com/itning/itning/network/members)
6 | [](https://github.com/itning/itning/watchers)
7 | [](https://github.com/itning?tab=followers)
8 |
9 | [](https://github.com/itning/itning/issues)
10 | [](https://github.com/itning/itning/blob/master/LICENSE)
11 | [](https://github.com/itning/itning/commits)
12 | [](https://github.com/itning/itning/releases)
13 | [](https://github.com/itning/itning)
14 | [](http://hits.dwyl.io/itning/itning)
15 | [](https://github.com/itning/itning)
16 |
17 | **实现功能:**
18 |
19 | 个人网站
20 |
21 | **项目所用框架/插件:**
22 |
23 | 前端:
24 |
25 | 1.JQuery
26 | 2.Bootstrap
27 | 3.AngularJS
28 | 4.editor.md
29 | 5.canvas-nest.js
30 | 后端:
31 |
32 | 1.Spring Boot
33 | 2.Spring JPA
34 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HTTP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
27 |
28 |
29 | HTTP mode
30 |
31 |
32 |
42 |
43 |
46 |
47 | MIME types defined: message/http.
48 |
49 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/coffeescript-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
5 |
6 | // declare global: coffeelint
7 |
8 | (function (mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function (CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "coffeescript", function (text) {
19 | var found = [];
20 | var parseError = function (err) {
21 | var loc = err.lineNumber;
22 | found.push({
23 | from: CodeMirror.Pos(loc - 1, 0),
24 | to: CodeMirror.Pos(loc, 0),
25 | severity: err.level,
26 | message: err.message
27 | });
28 | };
29 | try {
30 | var res = coffeelint.lint(text);
31 | for (var i = 0; i < res.length; i++) {
32 | parseError(res[i]);
33 | }
34 | } catch (e) {
35 | found.push({
36 | from: CodeMirror.Pos(e.location.first_line, 0),
37 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
38 | severity: 'error',
39 | message: e.message
40 | });
41 | }
42 | return found;
43 | });
44 |
45 | });
46 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/spreadsheet/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Spreadsheet mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
28 |
29 |
30 | Spreadsheet mode
31 |
32 |
33 |
40 |
41 | MIME types defined: text/x-spreadsheet.
42 |
43 | The Spreadsheet Mode
44 | Created by Robert Plummer
45 |
46 |
--------------------------------------------------------------------------------
/src/main/resources/static/views/admin/blogeditor/blogeditor.html:
--------------------------------------------------------------------------------
1 |
2 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Z80 assembly mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
27 |
28 |
29 | Z80 assembly mode
30 |
31 |
32 |
47 |
48 |
53 |
54 | MIME type defined: text/x-z80.
55 |
56 |
--------------------------------------------------------------------------------
/src/main/resources/static/views/view_3/js/view_3.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var view_3_Controller = angular.module('view_3.Controller', ['ngRoute']);
3 | view_3_Controller.controller('view_3_Controller', ['$scope', '$http', '$routeParams', '$log', function ($scope, $http, $routeParams, $log) {
4 | $scope.type = [];
5 | $scope.blog = [];
6 | $scope.page = 1;
7 | $scope.nowType = "all";
8 | var page = $routeParams['page'] ? $routeParams['page'] : 1;
9 | var n_type = $routeParams['type'];
10 | if (parseInt(page) < 1) {
11 | page = 1;
12 | }
13 | $scope.page = (parseInt(page));
14 | var url = '/getBlogData?page=' + (parseInt(page) - 1);
15 | if (n_type !== "all") {
16 | $scope.nowType = n_type;
17 | url = '/getBlogEntityByType?type=' + n_type + '&page=' + page;
18 | }
19 | $http.get('/getBlogTypeData').then(function (response) {
20 | if (response.status === 200) {
21 | $scope.type = response.data;
22 | } else {
23 | $log.error("view_3_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText);
24 | }
25 | }, function (err) {
26 | $log.error(err);
27 | });
28 |
29 | $http.get(url).then(function (response) {
30 | if (response.status === 200) {
31 | $scope.first = response.data.first;
32 | $scope.last = response.data.last;
33 | $scope.totalPages = response.data.totalPages;
34 | $scope.blog = response.data.content;
35 | } else {
36 | $log.error("view_3_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText);
37 | }
38 | }, function (err) {
39 | $log.error(err);
40 | });
41 | }]);
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ECL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
26 |
27 |
28 | ECL mode
29 |
47 |
50 |
51 | Based on CodeMirror's clike mode. For more information see HPCC Systems web
52 | site.
53 | MIME types defined: text/x-ecl.
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/solr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Solr mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
33 |
34 |
35 | Solr mode
36 |
37 |
38 |
47 |
48 |
49 |
55 |
56 | MIME types defined: text/x-solr.
57 |
58 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta {
2 | color: #FF1717;
3 | }
4 |
5 | .cm-s-eclipse span.cm-keyword {
6 | line-height: 1em;
7 | font-weight: bold;
8 | color: #7F0055;
9 | }
10 |
11 | .cm-s-eclipse span.cm-atom {
12 | color: #219;
13 | }
14 |
15 | .cm-s-eclipse span.cm-number {
16 | color: #164;
17 | }
18 |
19 | .cm-s-eclipse span.cm-def {
20 | color: #00f;
21 | }
22 |
23 | .cm-s-eclipse span.cm-variable {
24 | color: black;
25 | }
26 |
27 | .cm-s-eclipse span.cm-variable-2 {
28 | color: #0000C0;
29 | }
30 |
31 | .cm-s-eclipse span.cm-variable-3 {
32 | color: #0000C0;
33 | }
34 |
35 | .cm-s-eclipse span.cm-property {
36 | color: black;
37 | }
38 |
39 | .cm-s-eclipse span.cm-operator {
40 | color: black;
41 | }
42 |
43 | .cm-s-eclipse span.cm-comment {
44 | color: #3F7F5F;
45 | }
46 |
47 | .cm-s-eclipse span.cm-string {
48 | color: #2A00FF;
49 | }
50 |
51 | .cm-s-eclipse span.cm-string-2 {
52 | color: #f50;
53 | }
54 |
55 | .cm-s-eclipse span.cm-qualifier {
56 | color: #555;
57 | }
58 |
59 | .cm-s-eclipse span.cm-builtin {
60 | color: #30a;
61 | }
62 |
63 | .cm-s-eclipse span.cm-bracket {
64 | color: #cc7;
65 | }
66 |
67 | .cm-s-eclipse span.cm-tag {
68 | color: #170;
69 | }
70 |
71 | .cm-s-eclipse span.cm-attribute {
72 | color: #00c;
73 | }
74 |
75 | .cm-s-eclipse span.cm-link {
76 | color: #219;
77 | }
78 |
79 | .cm-s-eclipse span.cm-error {
80 | color: #f00;
81 | }
82 |
83 | .cm-s-eclipse .CodeMirror-activeline-background {
84 | background: #e8f2ff !important;
85 | }
86 |
87 | .cm-s-eclipse .CodeMirror-matchingbracket {
88 | outline: 1px solid grey;
89 | color: black !important;
90 | }
91 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Rust mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
27 |
28 |
29 | Rust mode
30 |
31 |
32 |
55 |
56 |
61 |
62 | MIME types defined: text/x-rustsrc.
63 |
64 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/canvas-nest/canvas-nest.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016 hustcc
3 | * License: MIT
4 | * Version: v1.0.1
5 | * GitHub: https://github.com/hustcc/canvas-nest.js
6 | **/
7 | !function(){function n(n,e,t){return n.getAttribute(e)||t}function e(n){return document.getElementsByTagName(n)}function t(){var t=e("script"),o=t.length,i=t[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){r.clearRect(0,0,a,c);var n,e,t,o,m,l;s.forEach(function(i,x){for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e=n.max/2&&(i.x-=.03*o,i.y-=.03*m),t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))}),x(i)}var a,c,u,m=document.createElement("canvas"),d=t(),l="c_n"+d.l,r=m.getContext("2d"),x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/45)},w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,y.x=n.clientX,y.y=n.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],f=0;d.n>f;f++){var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})}u=s.concat([y]),setTimeout(function(){i()},100)}();
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Turtle mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
27 |
28 |
29 | Turtle mode
30 |
44 |
50 |
51 | MIME types defined: text/turtle.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/scroll/simplescrollbars.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
2 | position: absolute;
3 | background: #ccc;
4 | -moz-box-sizing: border-box;
5 | box-sizing: border-box;
6 | border: 1px solid #bbb;
7 | border-radius: 2px;
8 | }
9 |
10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
11 | position: absolute;
12 | z-index: 6;
13 | background: #eee;
14 | }
15 |
16 | .CodeMirror-simplescroll-horizontal {
17 | bottom: 0;
18 | left: 0;
19 | height: 8px;
20 | }
21 |
22 | .CodeMirror-simplescroll-horizontal div {
23 | bottom: 0;
24 | height: 100%;
25 | }
26 |
27 | .CodeMirror-simplescroll-vertical {
28 | right: 0;
29 | top: 0;
30 | width: 8px;
31 | }
32 |
33 | .CodeMirror-simplescroll-vertical div {
34 | right: 0;
35 | width: 100%;
36 | }
37 |
38 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler {
39 | display: none;
40 | }
41 |
42 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div {
43 | position: absolute;
44 | background: #bcd;
45 | border-radius: 3px;
46 | }
47 |
48 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical {
49 | position: absolute;
50 | z-index: 6;
51 | }
52 |
53 | .CodeMirror-overlayscroll-horizontal {
54 | bottom: 0;
55 | left: 0;
56 | height: 6px;
57 | }
58 |
59 | .CodeMirror-overlayscroll-horizontal div {
60 | bottom: 0;
61 | height: 100%;
62 | }
63 |
64 | .CodeMirror-overlayscroll-vertical {
65 | right: 0;
66 | top: 0;
67 | width: 6px;
68 | }
69 |
70 | .CodeMirror-overlayscroll-vertical div {
71 | right: 0;
72 | width: 100%;
73 | }
74 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/pascal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pascal mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
27 |
28 |
29 | Pascal mode
30 |
31 |
32 |
55 |
56 |
62 |
63 | MIME types defined: text/x-pascal.
64 |
65 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/addon/display/fullscreen.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function (CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("fullScreen", false, function (cm, val, old) {
15 | if (old == CodeMirror.Init) old = false;
16 | if (!old == !val) return;
17 | if (val) setFullscreen(cm);
18 | else setNormal(cm);
19 | });
20 |
21 | function setFullscreen(cm) {
22 | var wrap = cm.getWrapperElement();
23 | cm.state.fullScreenRestore = {
24 | scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset,
25 | width: wrap.style.width, height: wrap.style.height
26 | };
27 | wrap.style.width = "";
28 | wrap.style.height = "auto";
29 | wrap.className += " CodeMirror-fullscreen";
30 | document.documentElement.style.overflow = "hidden";
31 | cm.refresh();
32 | }
33 |
34 | function setNormal(cm) {
35 | var wrap = cm.getWrapperElement();
36 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, "");
37 | document.documentElement.style.overflow = "";
38 | var info = cm.state.fullScreenRestore;
39 | wrap.style.width = info.width;
40 | wrap.style.height = info.height;
41 | window.scrollTo(info.scrollLeft, info.scrollTop);
42 | cm.refresh();
43 | }
44 | });
45 |
--------------------------------------------------------------------------------
/src/main/resources/static/lib_web/editormd/lib/codemirror/mode/pig/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pig Latin mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
26 |
27 |
28 | Pig Latin mode
29 |
41 |
42 |
49 |
50 |
51 | Simple mode that handles Pig Latin language.
52 |
53 |
54 | MIME type defined: text/x-pig
55 | (PIG code)
56 |