├── web ├── img │ ├── csdn.png │ ├── home.jpg │ ├── GitHub.png │ ├── banner.jpg │ └── takagi.jpg ├── WEB-INF │ └── lib │ │ ├── jstl.jar │ │ ├── standard.jar │ │ ├── gson-2.8.0.jar │ │ └── mysql-connector-java-5.1.18.jar ├── fonts │ ├── FontAwesome.otf │ ├── editormd-logo.eot │ ├── editormd-logo.ttf │ ├── editormd-logo.woff │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ └── editormd-logo.svg ├── admin │ ├── lib │ │ ├── codemirror │ │ │ ├── theme │ │ │ │ ├── ambiance-mobile.css │ │ │ │ ├── neat.css │ │ │ │ ├── elegant.css │ │ │ │ ├── neo.css │ │ │ │ ├── eclipse.css │ │ │ │ ├── cobalt.css │ │ │ │ ├── monokai.css │ │ │ │ ├── rubyblue.css │ │ │ │ ├── night.css │ │ │ │ ├── the-matrix.css │ │ │ │ ├── colorforth.css │ │ │ │ └── blackboard.css │ │ │ ├── addon │ │ │ │ ├── display │ │ │ │ │ ├── fullscreen.css │ │ │ │ │ └── fullscreen.js │ │ │ │ ├── search │ │ │ │ │ └── matchesonscrollbar.css │ │ │ │ ├── fold │ │ │ │ │ ├── foldgutter.css │ │ │ │ │ ├── indent-fold.js │ │ │ │ │ └── markdown-fold.js │ │ │ │ ├── dialog │ │ │ │ │ └── dialog.css │ │ │ │ ├── hint │ │ │ │ │ ├── show-hint.css │ │ │ │ │ └── anyword-hint.js │ │ │ │ ├── mode │ │ │ │ │ └── multiplex_test.js │ │ │ │ ├── lint │ │ │ │ │ ├── yaml-lint.js │ │ │ │ │ ├── json-lint.js │ │ │ │ │ ├── css-lint.js │ │ │ │ │ └── coffeescript-lint.js │ │ │ │ ├── edit │ │ │ │ │ └── trailingspace.js │ │ │ │ ├── tern │ │ │ │ │ └── worker.js │ │ │ │ ├── runmode │ │ │ │ │ └── colorize.js │ │ │ │ └── scroll │ │ │ │ │ ├── simplescrollbars.css │ │ │ │ │ └── scrollpastend.js │ │ │ ├── mode │ │ │ │ ├── tiddlywiki │ │ │ │ │ └── tiddlywiki.css │ │ │ │ ├── ruby │ │ │ │ │ └── test.js │ │ │ │ ├── tiki │ │ │ │ │ └── tiki.css │ │ │ │ ├── diff │ │ │ │ │ └── diff.js │ │ │ │ ├── ntriples │ │ │ │ │ └── index.html │ │ │ │ ├── spreadsheet │ │ │ │ │ └── index.html │ │ │ │ ├── http │ │ │ │ │ └── index.html │ │ │ │ ├── solr │ │ │ │ │ └── index.html │ │ │ │ ├── z80 │ │ │ │ │ └── index.html │ │ │ │ ├── ecl │ │ │ │ │ └── index.html │ │ │ │ ├── rust │ │ │ │ │ └── index.html │ │ │ │ ├── turtle │ │ │ │ │ └── index.html │ │ │ │ ├── pascal │ │ │ │ │ └── index.html │ │ │ │ ├── pig │ │ │ │ │ └── index.html │ │ │ │ ├── vbscript │ │ │ │ │ └── index.html │ │ │ │ ├── gherkin │ │ │ │ │ └── index.html │ │ │ │ ├── properties │ │ │ │ │ └── index.html │ │ │ │ └── javascript │ │ │ │ │ └── typescript.html │ │ │ ├── bower.json │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ └── LICENSE │ │ └── jquery.flowchart.min.js │ └── plugins │ │ └── test-plugin │ │ └── test-plugin.js ├── css │ ├── login.css │ ├── page.css │ ├── index.css │ ├── pagination.css │ ├── about.css │ ├── manage.css │ └── project.css ├── js │ └── blog.js ├── index.html ├── about.html └── login.html ├── .gitattributes ├── 基于Java Web的个人博客.pdf ├── out ├── artifacts │ ├── myBlog │ │ └── myBlog.war │ └── blog_war_exploded │ │ ├── img │ │ ├── GitHub.png │ │ ├── banner.jpg │ │ ├── csdn.png │ │ ├── home.jpg │ │ └── takagi.jpg │ │ ├── WEB-INF │ │ ├── lib │ │ │ ├── jstl.jar │ │ │ ├── standard.jar │ │ │ ├── gson-2.8.0.jar │ │ │ ├── mysql-connector-java-5.1.18.jar │ │ │ └── mysql-connector-java-8.0.11.jar │ │ └── classes │ │ │ ├── com │ │ │ └── liu │ │ │ │ ├── test │ │ │ │ └── Test.class │ │ │ │ ├── dao │ │ │ │ ├── UserDao.class │ │ │ │ ├── ArticleDao.class │ │ │ │ └── CategoryDao.class │ │ │ │ ├── model │ │ │ │ ├── Pager.class │ │ │ │ ├── User.class │ │ │ │ ├── Article.class │ │ │ │ ├── Category.class │ │ │ │ ├── MainCategory.class │ │ │ │ └── SubCategory.class │ │ │ │ ├── util │ │ │ │ └── JdbcUtil.class │ │ │ │ ├── filter │ │ │ │ └── AdminFilter.class │ │ │ │ ├── service │ │ │ │ ├── UserService.class │ │ │ │ ├── ArticleService.class │ │ │ │ └── CategoryService.class │ │ │ │ └── servlet │ │ │ │ ├── ImgServlet.class │ │ │ │ ├── LoginServlet.class │ │ │ │ ├── CategoryServlet.class │ │ │ │ ├── PostEditServlet.class │ │ │ │ ├── PostlistServlet.class │ │ │ │ └── CategoryEditServlet.class │ │ │ ├── jdbc.properties │ │ │ └── blog.sql │ │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── editormd-logo.eot │ │ ├── editormd-logo.ttf │ │ ├── editormd-logo.woff │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ ├── fontawesome-webfont.woff2 │ │ └── editormd-logo.svg │ │ ├── admin │ │ ├── lib │ │ │ ├── codemirror │ │ │ │ ├── theme │ │ │ │ │ ├── ambiance-mobile.css │ │ │ │ │ ├── neat.css │ │ │ │ │ ├── elegant.css │ │ │ │ │ ├── neo.css │ │ │ │ │ ├── eclipse.css │ │ │ │ │ ├── cobalt.css │ │ │ │ │ ├── monokai.css │ │ │ │ │ ├── rubyblue.css │ │ │ │ │ ├── night.css │ │ │ │ │ ├── the-matrix.css │ │ │ │ │ └── colorforth.css │ │ │ │ ├── addon │ │ │ │ │ ├── display │ │ │ │ │ │ ├── fullscreen.css │ │ │ │ │ │ └── fullscreen.js │ │ │ │ │ ├── search │ │ │ │ │ │ └── matchesonscrollbar.css │ │ │ │ │ ├── fold │ │ │ │ │ │ └── foldgutter.css │ │ │ │ │ ├── dialog │ │ │ │ │ │ └── dialog.css │ │ │ │ │ ├── hint │ │ │ │ │ │ └── show-hint.css │ │ │ │ │ ├── mode │ │ │ │ │ │ └── multiplex_test.js │ │ │ │ │ ├── lint │ │ │ │ │ │ ├── yaml-lint.js │ │ │ │ │ │ ├── json-lint.js │ │ │ │ │ │ ├── css-lint.js │ │ │ │ │ │ └── coffeescript-lint.js │ │ │ │ │ ├── edit │ │ │ │ │ │ └── trailingspace.js │ │ │ │ │ ├── tern │ │ │ │ │ │ └── worker.js │ │ │ │ │ ├── runmode │ │ │ │ │ │ └── colorize.js │ │ │ │ │ └── scroll │ │ │ │ │ │ ├── simplescrollbars.css │ │ │ │ │ │ └── scrollpastend.js │ │ │ │ ├── mode │ │ │ │ │ ├── tiddlywiki │ │ │ │ │ │ └── tiddlywiki.css │ │ │ │ │ ├── ruby │ │ │ │ │ │ └── test.js │ │ │ │ │ ├── tiki │ │ │ │ │ │ └── tiki.css │ │ │ │ │ ├── diff │ │ │ │ │ │ └── diff.js │ │ │ │ │ ├── ntriples │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── spreadsheet │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── http │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── solr │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── z80 │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── ecl │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── rust │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── turtle │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── pascal │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── pig │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── vbscript │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── gherkin │ │ │ │ │ │ └── index.html │ │ │ │ │ └── properties │ │ │ │ │ │ └── index.html │ │ │ │ ├── bower.json │ │ │ │ ├── README.md │ │ │ │ ├── package.json │ │ │ │ └── LICENSE │ │ │ └── jquery.flowchart.min.js │ │ └── plugins │ │ │ └── test-plugin │ │ │ └── test-plugin.js │ │ ├── css │ │ ├── login.css │ │ ├── page.css │ │ ├── index.css │ │ ├── pagination.css │ │ ├── about.css │ │ ├── manage.css │ │ └── project.css │ │ ├── js │ │ └── blog.js │ │ ├── index.html │ │ ├── about.html │ │ └── login.html └── production │ └── blog │ ├── com │ └── liu │ │ ├── test │ │ └── Test.class │ │ ├── dao │ │ ├── UserDao.class │ │ ├── ArticleDao.class │ │ └── CategoryDao.class │ │ ├── model │ │ ├── Pager.class │ │ ├── User.class │ │ ├── Article.class │ │ ├── Category.class │ │ ├── SubCategory.class │ │ └── MainCategory.class │ │ ├── util │ │ └── JdbcUtil.class │ │ ├── filter │ │ └── AdminFilter.class │ │ ├── service │ │ ├── UserService.class │ │ ├── ArticleService.class │ │ └── CategoryService.class │ │ └── servlet │ │ ├── ImgServlet.class │ │ ├── LoginServlet.class │ │ ├── CategoryServlet.class │ │ ├── PostEditServlet.class │ │ ├── PostlistServlet.class │ │ └── CategoryEditServlet.class │ ├── jdbc.properties │ └── blog.sql ├── .idea ├── .gitignore ├── sqldialects.xml ├── encodings.xml ├── modules.xml ├── misc.xml ├── runConfigurations.xml ├── inspectionProfiles │ └── Project_Default.xml ├── artifacts │ ├── blog_war_exploded.xml │ └── myBlog.xml └── dataSources.xml ├── src ├── com │ └── liu │ │ ├── test │ │ └── Test.java │ │ ├── service │ │ ├── UserService.java │ │ └── ArticleService.java │ │ ├── model │ │ ├── User.java │ │ ├── MainCategory.java │ │ ├── Category.java │ │ ├── Pager.java │ │ └── SubCategory.java │ │ ├── dao │ │ └── UserDao.java │ │ ├── servlet │ │ └── LoginServlet.java │ │ └── filter │ │ └── AdminFilter.java ├── jdbc.properties └── blog.sql ├── README.md └── blog.iml /web/img/csdn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/img/csdn.png -------------------------------------------------------------------------------- /web/img/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/img/home.jpg -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /web/img/GitHub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/img/GitHub.png -------------------------------------------------------------------------------- /web/img/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/img/banner.jpg -------------------------------------------------------------------------------- /web/img/takagi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/img/takagi.jpg -------------------------------------------------------------------------------- /基于Java Web的个人博客.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/基于Java Web的个人博客.pdf -------------------------------------------------------------------------------- /web/WEB-INF/lib/jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/WEB-INF/lib/jstl.jar -------------------------------------------------------------------------------- /web/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /web/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /web/fonts/editormd-logo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/editormd-logo.eot -------------------------------------------------------------------------------- /web/fonts/editormd-logo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/editormd-logo.ttf -------------------------------------------------------------------------------- /web/fonts/editormd-logo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/editormd-logo.woff -------------------------------------------------------------------------------- /out/artifacts/myBlog/myBlog.war: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/myBlog/myBlog.war -------------------------------------------------------------------------------- /web/WEB-INF/lib/gson-2.8.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/WEB-INF/lib/gson-2.8.0.jar -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /web/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /out/production/blog/com/liu/test/Test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/test/Test.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/img/GitHub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/img/GitHub.png -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/img/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/img/banner.jpg -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/img/csdn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/img/csdn.png -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/img/home.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/img/home.jpg -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/img/takagi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/img/takagi.jpg -------------------------------------------------------------------------------- /out/production/blog/com/liu/dao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/dao/UserDao.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/Pager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/Pager.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/User.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/dao/ArticleDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/dao/ArticleDao.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/Article.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/Article.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/Category.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/util/JdbcUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/util/JdbcUtil.class -------------------------------------------------------------------------------- /web/WEB-INF/lib/mysql-connector-java-5.1.18.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/web/WEB-INF/lib/mysql-connector-java-5.1.18.jar -------------------------------------------------------------------------------- /out/production/blog/com/liu/dao/CategoryDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/dao/CategoryDao.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/SubCategory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/SubCategory.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/lib/jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/lib/jstl.jar -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /out/production/blog/com/liu/filter/AdminFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/filter/AdminFilter.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/model/MainCategory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/model/MainCategory.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/service/UserService.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/ImgServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/ImgServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/editormd-logo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/editormd-logo.eot -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/editormd-logo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/editormd-logo.ttf -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/editormd-logo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/editormd-logo.woff -------------------------------------------------------------------------------- /out/production/blog/com/liu/service/ArticleService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/service/ArticleService.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/LoginServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/lib/gson-2.8.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/lib/gson-2.8.0.jar -------------------------------------------------------------------------------- /out/production/blog/com/liu/service/CategoryService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/service/CategoryService.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/CategoryServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/CategoryServlet.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/PostEditServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/PostEditServlet.class -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/PostlistServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/PostlistServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /out/production/blog/com/liu/servlet/CategoryEditServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/production/blog/com/liu/servlet/CategoryEditServlet.class -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/ambiance-mobile.css: -------------------------------------------------------------------------------- 1 | .cm-s-ambiance.CodeMirror { 2 | -webkit-box-shadow: none; 3 | -moz-box-shadow: none; 4 | box-shadow: none; 5 | } 6 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/test/Test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/test/Test.class -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/display/fullscreen.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-fullscreen { 2 | position: fixed; 3 | top: 0; left: 0; right: 0; bottom: 0; 4 | height: auto; 5 | z-index: 9; 6 | } 7 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/UserDao.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Pager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Pager.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/User.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/ArticleDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/ArticleDao.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Article.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Article.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Category.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/Category.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/util/JdbcUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/util/JdbcUtil.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.18.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.18.jar -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/lib/mysql-connector-java-8.0.11.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/lib/mysql-connector-java-8.0.11.jar -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/ambiance-mobile.css: -------------------------------------------------------------------------------- 1 | .cm-s-ambiance.CodeMirror { 2 | -webkit-box-shadow: none; 3 | -moz-box-shadow: none; 4 | box-shadow: none; 5 | } 6 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/CategoryDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/dao/CategoryDao.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/filter/AdminFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/filter/AdminFilter.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/MainCategory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/MainCategory.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/SubCategory.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/model/SubCategory.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/UserService.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/ImgServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/ImgServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/LoginServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/ArticleService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/ArticleService.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/CategoryService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/service/CategoryService.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/CategoryServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/CategoryServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/PostEditServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/PostEditServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/PostlistServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/PostlistServlet.class -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/display/fullscreen.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-fullscreen { 2 | position: fixed; 3 | top: 0; left: 0; right: 0; bottom: 0; 4 | height: auto; 5 | z-index: 9; 6 | } 7 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/CategoryEditServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liucxi04/MyBlog/HEAD/out/artifacts/blog_war_exploded/WEB-INF/classes/com/liu/servlet/CategoryEditServlet.class -------------------------------------------------------------------------------- /.idea/sqldialects.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/com/liu/test/Test.java: -------------------------------------------------------------------------------- 1 | package com.liu.test; 2 | 3 | import javax.xml.parsers.ParserConfigurationException; 4 | 5 | public class Test { 6 | 7 | public static void main(String[] args) throws ParserConfigurationException { 8 | 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MyBlog 2 | 基于Java Web(HTML、CSS、JS,servlet、JSP、MySQL)实现的个人博客网站 3 | 4 | 本项目发现自coderzcr整理的Java Web项目https://github.com/coderzcr/JavaWeb-Project-Source-Share 5 | 6 | 项目原作者https://gitee.com/nanpingping/jsp-blog 7 | 8 | 本项目在此基础上进行了一定量的修改,项目说明见PDF文档 9 | 10 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/search/matchesonscrollbar.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-search-match { 2 | background: gold; 3 | border-top: 1px solid orange; 4 | border-bottom: 1px solid orange; 5 | -moz-box-sizing: border-box; 6 | box-sizing: border-box; 7 | opacity: .5; 8 | } 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/search/matchesonscrollbar.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-search-match { 2 | background: gold; 3 | border-top: 1px solid orange; 4 | border-bottom: 1px solid orange; 5 | -moz-box-sizing: border-box; 6 | box-sizing: border-box; 7 | opacity: .5; 8 | } 9 | -------------------------------------------------------------------------------- /src/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.username=root 2 | jdbc.password=mysql 3 | jdbc.driver=com.mysql.jdbc.Driver 4 | jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true 5 | #jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8 -------------------------------------------------------------------------------- /out/production/blog/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.username=root 2 | jdbc.password=mysql 3 | jdbc.driver=com.mysql.jdbc.Driver 4 | jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true 5 | #jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8 -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/tiddlywiki/tiddlywiki.css: -------------------------------------------------------------------------------- 1 | span.cm-underlined { 2 | text-decoration: underline; 3 | } 4 | span.cm-strikethrough { 5 | text-decoration: line-through; 6 | } 7 | span.cm-brace { 8 | color: #170; 9 | font-weight: bold; 10 | } 11 | span.cm-table { 12 | color: blue; 13 | font-weight: bold; 14 | } 15 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.username=root 2 | jdbc.password=mysql 3 | jdbc.driver=com.mysql.jdbc.Driver 4 | jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true 5 | #jdbc.url=jdbc:mysql://127.0.0.1:3306/blog?useUnicode=true&characterEncoding=UTF-8 -------------------------------------------------------------------------------- /web/admin/lib/codemirror/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version":"5.0.0", 4 | "main": ["lib/codemirror.js", "lib/codemirror.css"], 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "components", 9 | "bin", 10 | "demo", 11 | "doc", 12 | "test", 13 | "index.html", 14 | "package.json" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/tiddlywiki/tiddlywiki.css: -------------------------------------------------------------------------------- 1 | span.cm-underlined { 2 | text-decoration: underline; 3 | } 4 | span.cm-strikethrough { 5 | text-decoration: line-through; 6 | } 7 | span.cm-brace { 8 | color: #170; 9 | font-weight: bold; 10 | } 11 | span.cm-table { 12 | color: blue; 13 | font-weight: bold; 14 | } 15 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version":"5.0.0", 4 | "main": ["lib/codemirror.js", "lib/codemirror.css"], 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "components", 9 | "bin", 10 | "demo", 11 | "doc", 12 | "test", 13 | "index.html", 14 | "package.json" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /src/com/liu/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.liu.service; 2 | 3 | import com.liu.dao.UserDao; 4 | 5 | public class UserService { 6 | private UserDao userDao; 7 | public UserService(){ 8 | userDao = new UserDao(); 9 | } 10 | public boolean VerifyUser(String username,String password){ 11 | boolean result=userDao.VerifyUser(username,password); 12 | return result; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /web/css/login.css: -------------------------------------------------------------------------------- 1 | #main { 2 | width: 100%; 3 | height: 100vh; 4 | } 5 | 6 | .wrap { 7 | position: relative; 8 | top: 20%; 9 | text-align: center; 10 | } 11 | 12 | h2 { 13 | margin-bottom: 30px; 14 | } 15 | 16 | .btn { 17 | margin-bottom: 10px; 18 | } 19 | 20 | .form-control { 21 | margin: 10px 0; 22 | } 23 | #img{ 24 | margin-left: 15px; 25 | } 26 | .img-wrap{ 27 | display: flex; 28 | align-items: center; 29 | margin-top: -10px; 30 | } -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/login.css: -------------------------------------------------------------------------------- 1 | #main { 2 | width: 100%; 3 | height: 100vh; 4 | } 5 | 6 | .wrap { 7 | position: relative; 8 | top: 20%; 9 | text-align: center; 10 | } 11 | 12 | h2 { 13 | margin-bottom: 30px; 14 | } 15 | 16 | .btn { 17 | margin-bottom: 10px; 18 | } 19 | 20 | .form-control { 21 | margin: 10px 0; 22 | } 23 | #img{ 24 | margin-left: 15px; 25 | } 26 | .img-wrap{ 27 | display: flex; 28 | align-items: center; 29 | margin-top: -10px; 30 | } -------------------------------------------------------------------------------- /.idea/artifacts/blog_war_exploded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/out/artifacts/blog_war_exploded 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/ruby/test.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function() { 5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby"); 6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } 7 | 8 | MT("divide_equal_operator", 9 | "[variable bar] [operator /=] [variable foo]"); 10 | 11 | MT("divide_equal_operator_no_spacing", 12 | "[variable foo][operator /=][number 42]"); 13 | 14 | })(); 15 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/fold/foldgutter.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-foldmarker { 2 | color: blue; 3 | text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px; 4 | font-family: arial; 5 | line-height: .3; 6 | cursor: pointer; 7 | } 8 | .CodeMirror-foldgutter { 9 | width: .7em; 10 | } 11 | .CodeMirror-foldgutter-open, 12 | .CodeMirror-foldgutter-folded { 13 | cursor: pointer; 14 | } 15 | .CodeMirror-foldgutter-open:after { 16 | content: "\25BE"; 17 | } 18 | .CodeMirror-foldgutter-folded:after { 19 | content: "\25B8"; 20 | } 21 | -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | mysql.8 6 | true 7 | com.mysql.cj.jdbc.Driver 8 | jdbc:mysql://localhost:3306 9 | $ProjectFileDir$ 10 | 11 | 12 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/ruby/test.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function() { 5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby"); 6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } 7 | 8 | MT("divide_equal_operator", 9 | "[variable bar] [operator /=] [variable foo]"); 10 | 11 | MT("divide_equal_operator_no_spacing", 12 | "[variable foo][operator /=][number 42]"); 13 | 14 | })(); 15 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/tiki/tiki.css: -------------------------------------------------------------------------------- 1 | .cm-tw-syntaxerror { 2 | color: #FFF; 3 | background-color: #900; 4 | } 5 | 6 | .cm-tw-deleted { 7 | text-decoration: line-through; 8 | } 9 | 10 | .cm-tw-header5 { 11 | font-weight: bold; 12 | } 13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/ 14 | padding-left: 10px; 15 | } 16 | 17 | .cm-tw-box { 18 | border-top-width: 0px ! important; 19 | border-style: solid; 20 | border-width: 1px; 21 | border-color: inherit; 22 | } 23 | 24 | .cm-tw-underline { 25 | text-decoration: underline; 26 | } -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/fold/foldgutter.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-foldmarker { 2 | color: blue; 3 | text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px; 4 | font-family: arial; 5 | line-height: .3; 6 | cursor: pointer; 7 | } 8 | .CodeMirror-foldgutter { 9 | width: .7em; 10 | } 11 | .CodeMirror-foldgutter-open, 12 | .CodeMirror-foldgutter-folded { 13 | cursor: pointer; 14 | } 15 | .CodeMirror-foldgutter-open:after { 16 | content: "\25BE"; 17 | } 18 | .CodeMirror-foldgutter-folded:after { 19 | content: "\25B8"; 20 | } 21 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/tiki/tiki.css: -------------------------------------------------------------------------------- 1 | .cm-tw-syntaxerror { 2 | color: #FFF; 3 | background-color: #900; 4 | } 5 | 6 | .cm-tw-deleted { 7 | text-decoration: line-through; 8 | } 9 | 10 | .cm-tw-header5 { 11 | font-weight: bold; 12 | } 13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/ 14 | padding-left: 10px; 15 | } 16 | 17 | .cm-tw-box { 18 | border-top-width: 0px ! important; 19 | border-style: solid; 20 | border-width: 1px; 21 | border-color: inherit; 22 | } 23 | 24 | .cm-tw-underline { 25 | text-decoration: underline; 26 | } -------------------------------------------------------------------------------- /web/css/page.css: -------------------------------------------------------------------------------- 1 | #page-top { 2 | width: 100%; 3 | height: 20vh; 4 | position: relative; 5 | background: url(../img/home.jpg); 6 | background-size: cover; 7 | background-repeat: no-repeat; 8 | display: flex; 9 | justify-content:center; 10 | align-items:center; 11 | } 12 | #page-top{ 13 | color: #fff; 14 | } 15 | .single-title{ 16 | margin-top: 40px; 17 | } 18 | .single-title h2 { 19 | font-size: 24px; 20 | font-weight: 300; 21 | margin: 0.67em 0; 22 | color: #404040; 23 | line-height: 1.5; 24 | text-align: center; 25 | } 26 | .single-info{ 27 | text-align: center; 28 | margin-top: 30px; 29 | margin-bottom: 40px; 30 | } -------------------------------------------------------------------------------- /web/css/index.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | a{ 7 | color: #000000; 8 | } 9 | #container{ 10 | width: 100%; 11 | height: 100vh; 12 | } 13 | .wrap{ 14 | position: relative; 15 | top: 20%; 16 | text-align: center; 17 | } 18 | .wrap img{ 19 | border-radius: 64px; 20 | width: 128px; 21 | height: 128px; 22 | } 23 | .wrap img:hover{ 24 | transform:rotate(360deg); 25 | transition: transform .5s ease; 26 | } 27 | .nav{ 28 | margin-top:10px ; 29 | } 30 | .nav a{ 31 | font-size: 18px; 32 | margin: 0 5px; 33 | } 34 | h1{ 35 | margin: 15px 0; 36 | } 37 | p{ 38 | line-height: 2.1em; 39 | } 40 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/page.css: -------------------------------------------------------------------------------- 1 | #page-top { 2 | width: 100%; 3 | height: 20vh; 4 | position: relative; 5 | background: url(../img/home.jpg); 6 | background-size: cover; 7 | background-repeat: no-repeat; 8 | display: flex; 9 | justify-content:center; 10 | align-items:center; 11 | } 12 | #page-top{ 13 | color: #fff; 14 | } 15 | .single-title{ 16 | margin-top: 40px; 17 | } 18 | .single-title h2 { 19 | font-size: 24px; 20 | font-weight: 300; 21 | margin: 0.67em 0; 22 | color: #404040; 23 | line-height: 1.5; 24 | text-align: center; 25 | } 26 | .single-info{ 27 | text-align: center; 28 | margin-top: 30px; 29 | margin-bottom: 40px; 30 | } -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/dialog/dialog.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-dialog { 2 | position: absolute; 3 | left: 0; right: 0; 4 | background: white; 5 | z-index: 15; 6 | padding: .1em .8em; 7 | overflow: hidden; 8 | color: #333; 9 | } 10 | 11 | .CodeMirror-dialog-top { 12 | border-bottom: 1px solid #eee; 13 | top: 0; 14 | } 15 | 16 | .CodeMirror-dialog-bottom { 17 | border-top: 1px solid #eee; 18 | bottom: 0; 19 | } 20 | 21 | .CodeMirror-dialog input { 22 | border: none; 23 | outline: none; 24 | background: transparent; 25 | width: 20em; 26 | color: inherit; 27 | font-family: monospace; 28 | } 29 | 30 | .CodeMirror-dialog button { 31 | font-size: 70%; 32 | } 33 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/index.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | a{ 7 | color: #000000; 8 | } 9 | #container{ 10 | width: 100%; 11 | height: 100vh; 12 | } 13 | .wrap{ 14 | position: relative; 15 | top: 20%; 16 | text-align: center; 17 | } 18 | .wrap img{ 19 | border-radius: 64px; 20 | width: 128px; 21 | height: 128px; 22 | } 23 | .wrap img:hover{ 24 | transform:rotate(360deg); 25 | transition: transform .5s ease; 26 | } 27 | .nav{ 28 | margin-top:10px ; 29 | } 30 | .nav a{ 31 | font-size: 18px; 32 | margin: 0 5px; 33 | } 34 | h1{ 35 | margin: 15px 0; 36 | } 37 | p{ 38 | line-height: 2.1em; 39 | } 40 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/dialog/dialog.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-dialog { 2 | position: absolute; 3 | left: 0; right: 0; 4 | background: white; 5 | z-index: 15; 6 | padding: .1em .8em; 7 | overflow: hidden; 8 | color: #333; 9 | } 10 | 11 | .CodeMirror-dialog-top { 12 | border-bottom: 1px solid #eee; 13 | top: 0; 14 | } 15 | 16 | .CodeMirror-dialog-bottom { 17 | border-top: 1px solid #eee; 18 | bottom: 0; 19 | } 20 | 21 | .CodeMirror-dialog input { 22 | border: none; 23 | outline: none; 24 | background: transparent; 25 | width: 20em; 26 | color: inherit; 27 | font-family: monospace; 28 | } 29 | 30 | .CodeMirror-dialog button { 31 | font-size: 70%; 32 | } 33 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/neat.css: -------------------------------------------------------------------------------- 1 | .cm-s-neat span.cm-comment { color: #a86; } 2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } 3 | .cm-s-neat span.cm-string { color: #a22; } 4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } 5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } 6 | .cm-s-neat span.cm-variable { color: black; } 7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } 8 | .cm-s-neat span.cm-meta {color: #555;} 9 | .cm-s-neat span.cm-link { color: #3a3; } 10 | 11 | .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;} 12 | .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 13 | -------------------------------------------------------------------------------- /src/com/liu/model/User.java: -------------------------------------------------------------------------------- 1 | package com.liu.model; 2 | 3 | public class User { 4 | private int id; 5 | private int username; 6 | private int password; 7 | 8 | public User() { 9 | } 10 | 11 | public User(int username, int password) { 12 | this.username = username; 13 | this.password = password; 14 | } 15 | 16 | public int getId() { 17 | return id; 18 | } 19 | 20 | public int getUsername() { 21 | return username; 22 | } 23 | 24 | public void setUsername(int username) { 25 | this.username = username; 26 | } 27 | 28 | public int getPassword() { 29 | return password; 30 | } 31 | 32 | public void setPassword(int password) { 33 | this.password = password; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/neat.css: -------------------------------------------------------------------------------- 1 | .cm-s-neat span.cm-comment { color: #a86; } 2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } 3 | .cm-s-neat span.cm-string { color: #a22; } 4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } 5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } 6 | .cm-s-neat span.cm-variable { color: black; } 7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } 8 | .cm-s-neat span.cm-meta {color: #555;} 9 | .cm-s-neat span.cm-link { color: #3a3; } 10 | 11 | .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;} 12 | .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 13 | -------------------------------------------------------------------------------- /web/js/blog.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | $(window).scroll(function() { 3 | var scrollY = $(document).scrollTop(); 4 | if(scrollY > 0) { 5 | $('.info').hide(); 6 | } else { 7 | $('.info').show(); 8 | } 9 | }); 10 | 11 | $("#switch").click(function() { 12 | if ($("#wrap").hasClass('open')) { 13 | $('#wrap,#left-nav').removeClass('open'); 14 | $(this).removeClass('botton-open'); 15 | } else { 16 | $('#wrap,#left-nav').addClass('open'); 17 | $(this).addClass('botton-open'); 18 | } 19 | }); 20 | 21 | $(".havasub").click(function() { 22 | $(this).next(".submenu").slideToggle(); //实现二级菜单的展开收缩功能 23 | $(this).find("i").toggleClass("fa fa-angle-down"); //实现菜单点击时图标的转换效果 24 | $(this).find("i").toggleClass("fa fa-angle-up"); 25 | }); 26 | 27 | }); -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/elegant.css: -------------------------------------------------------------------------------- 1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;} 2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;} 3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;} 4 | .cm-s-elegant span.cm-variable {color: black;} 5 | .cm-s-elegant span.cm-variable-2 {color: #b11;} 6 | .cm-s-elegant span.cm-qualifier {color: #555;} 7 | .cm-s-elegant span.cm-keyword {color: #730;} 8 | .cm-s-elegant span.cm-builtin {color: #30a;} 9 | .cm-s-elegant span.cm-link {color: #762;} 10 | .cm-s-elegant span.cm-error {background-color: #fdd;} 11 | 12 | .cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;} 13 | .cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 14 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/README.md: -------------------------------------------------------------------------------- 1 | # CodeMirror 2 | [![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror) 3 | [![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror) 4 | [Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png)](https://marijnhaverbeke.nl/fund/) 5 | 6 | CodeMirror is a JavaScript component that provides a code editor in 7 | the browser. When a mode is available for the language you are coding 8 | in, it will color your code, and optionally help with indentation. 9 | 10 | The project page is http://codemirror.net 11 | The manual is at http://codemirror.net/doc/manual.html 12 | The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md) 13 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/js/blog.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | $(window).scroll(function() { 3 | var scrollY = $(document).scrollTop(); 4 | if(scrollY > 0) { 5 | $('.info').hide(); 6 | } else { 7 | $('.info').show(); 8 | } 9 | }); 10 | 11 | $("#switch").click(function() { 12 | if ($("#wrap").hasClass('open')) { 13 | $('#wrap,#left-nav').removeClass('open'); 14 | $(this).removeClass('botton-open'); 15 | } else { 16 | $('#wrap,#left-nav').addClass('open'); 17 | $(this).addClass('botton-open'); 18 | } 19 | }); 20 | 21 | $(".havasub").click(function() { 22 | $(this).next(".submenu").slideToggle(); //实现二级菜单的展开收缩功能 23 | $(this).find("i").toggleClass("fa fa-angle-down"); //实现菜单点击时图标的转换效果 24 | $(this).find("i").toggleClass("fa fa-angle-up"); 25 | }); 26 | 27 | }); -------------------------------------------------------------------------------- /web/css/pagination.css: -------------------------------------------------------------------------------- 1 | .pagination { 2 | font-size: 80%; 3 | } 4 | 5 | .pagination span { 6 | border-radius: 10px; 7 | font-size: 14px; 8 | } 9 | .pagination a { 10 | border-radius: 10px; 11 | font-size: 14px; 12 | } 13 | 14 | .pagination a { 15 | text-decoration: none; 16 | border: solid 1px #AAE; 17 | color: #15B; 18 | } 19 | 20 | .pagination a, .pagination span { 21 | display: block; 22 | float: left; 23 | padding: 0.3em 0.5em; 24 | margin-right: 5px; 25 | margin-bottom: 5px; 26 | min-width: 1em; 27 | text-align: center; 28 | } 29 | 30 | .pagination .current { 31 | background: #26B; 32 | color: #fff; 33 | border: solid 1px #AAE; 34 | } 35 | 36 | .pagination .current.prev, .pagination .current.next { 37 | color: #999; 38 | border-color: #999; 39 | background: #fff; 40 | } 41 | -------------------------------------------------------------------------------- /.idea/artifacts/myBlog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/out/artifacts/myBlog 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/hint/show-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-hints { 2 | position: absolute; 3 | z-index: 10; 4 | overflow: hidden; 5 | list-style: none; 6 | 7 | margin: 0; 8 | padding: 2px; 9 | 10 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 11 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 12 | box-shadow: 2px 3px 5px rgba(0,0,0,.2); 13 | border-radius: 3px; 14 | border: 1px solid silver; 15 | 16 | background: white; 17 | font-size: 90%; 18 | font-family: monospace; 19 | 20 | max-height: 20em; 21 | overflow-y: auto; 22 | } 23 | 24 | .CodeMirror-hint { 25 | margin: 0; 26 | padding: 0 4px; 27 | border-radius: 2px; 28 | max-width: 19em; 29 | overflow: hidden; 30 | white-space: pre; 31 | color: black; 32 | cursor: pointer; 33 | } 34 | 35 | li.CodeMirror-hint-active { 36 | background: #08f; 37 | color: white; 38 | } 39 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/README.md: -------------------------------------------------------------------------------- 1 | # CodeMirror 2 | [![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror) 3 | [![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror) 4 | [Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png)](https://marijnhaverbeke.nl/fund/) 5 | 6 | CodeMirror is a JavaScript component that provides a code editor in 7 | the browser. When a mode is available for the language you are coding 8 | in, it will color your code, and optionally help with indentation. 9 | 10 | The project page is http://codemirror.net 11 | The manual is at http://codemirror.net/doc/manual.html 12 | The contributing guidelines are in [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md) 13 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/elegant.css: -------------------------------------------------------------------------------- 1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;} 2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;} 3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;} 4 | .cm-s-elegant span.cm-variable {color: black;} 5 | .cm-s-elegant span.cm-variable-2 {color: #b11;} 6 | .cm-s-elegant span.cm-qualifier {color: #555;} 7 | .cm-s-elegant span.cm-keyword {color: #730;} 8 | .cm-s-elegant span.cm-builtin {color: #30a;} 9 | .cm-s-elegant span.cm-link {color: #762;} 10 | .cm-s-elegant span.cm-error {background-color: #fdd;} 11 | 12 | .cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;} 13 | .cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 14 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/pagination.css: -------------------------------------------------------------------------------- 1 | .pagination { 2 | font-size: 80%; 3 | } 4 | 5 | .pagination span { 6 | border-radius: 10px; 7 | font-size: 14px; 8 | } 9 | .pagination a { 10 | border-radius: 10px; 11 | font-size: 14px; 12 | } 13 | 14 | .pagination a { 15 | text-decoration: none; 16 | border: solid 1px #AAE; 17 | color: #15B; 18 | } 19 | 20 | .pagination a, .pagination span { 21 | display: block; 22 | float: left; 23 | padding: 0.3em 0.5em; 24 | margin-right: 5px; 25 | margin-bottom: 5px; 26 | min-width: 1em; 27 | text-align: center; 28 | } 29 | 30 | .pagination .current { 31 | background: #26B; 32 | color: #fff; 33 | border: solid 1px #AAE; 34 | } 35 | 36 | .pagination .current.prev, .pagination .current.next { 37 | color: #999; 38 | border-color: #999; 39 | background: #fff; 40 | } 41 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/hint/show-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-hints { 2 | position: absolute; 3 | z-index: 10; 4 | overflow: hidden; 5 | list-style: none; 6 | 7 | margin: 0; 8 | padding: 2px; 9 | 10 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 11 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 12 | box-shadow: 2px 3px 5px rgba(0,0,0,.2); 13 | border-radius: 3px; 14 | border: 1px solid silver; 15 | 16 | background: white; 17 | font-size: 90%; 18 | font-family: monospace; 19 | 20 | max-height: 20em; 21 | overflow-y: auto; 22 | } 23 | 24 | .CodeMirror-hint { 25 | margin: 0; 26 | padding: 0 4px; 27 | border-radius: 2px; 28 | max-width: 19em; 29 | overflow: hidden; 30 | white-space: pre; 31 | color: black; 32 | cursor: pointer; 33 | } 34 | 35 | li.CodeMirror-hint-active { 36 | background: #08f; 37 | color: white; 38 | } 39 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/mode/multiplex_test.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function() { 5 | CodeMirror.defineMode("markdown_with_stex", function(){ 6 | var inner = CodeMirror.getMode({}, "stex"); 7 | var outer = CodeMirror.getMode({}, "markdown"); 8 | 9 | var innerOptions = { 10 | open: '$', 11 | close: '$', 12 | mode: inner, 13 | delimStyle: 'delim', 14 | innerStyle: 'inner' 15 | }; 16 | 17 | return CodeMirror.multiplexingMode(outer, innerOptions); 18 | }); 19 | 20 | var mode = CodeMirror.getMode({}, "markdown_with_stex"); 21 | 22 | function MT(name) { 23 | test.mode( 24 | name, 25 | mode, 26 | Array.prototype.slice.call(arguments, 1), 27 | 'multiplexing'); 28 | } 29 | 30 | MT( 31 | "stexInsideMarkdown", 32 | "[strong **Equation:**] [delim $][inner&tag \\pi][delim $]"); 33 | })(); 34 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version":"5.0.0", 4 | "main": "lib/codemirror.js", 5 | "description": "In-browser code editing made bearable", 6 | "licenses": [{"type": "MIT", 7 | "url": "http://codemirror.net/LICENSE"}], 8 | "directories": {"lib": "./lib"}, 9 | "scripts": {"test": "node ./test/run.js"}, 10 | "devDependencies": {"node-static": "0.6.0", 11 | "phantomjs": "1.9.2-5", 12 | "blint": ">=0.1.1"}, 13 | "bugs": "http://github.com/codemirror/CodeMirror/issues", 14 | "keywords": ["JavaScript", "CodeMirror", "Editor"], 15 | "homepage": "http://codemirror.net", 16 | "maintainers":[{"name": "Marijn Haverbeke", 17 | "email": "marijnh@gmail.com", 18 | "web": "http://marijnhaverbeke.nl"}], 19 | "repository": {"type": "git", 20 | "url": "https://github.com/codemirror/CodeMirror.git"} 21 | } 22 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/lint/yaml-lint.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 | // Depends on js-yaml.js from https://github.com/nodeca/js-yaml 15 | 16 | // declare global: jsyaml 17 | 18 | CodeMirror.registerHelper("lint", "yaml", function(text) { 19 | var found = []; 20 | try { jsyaml.load(text); } 21 | catch(e) { 22 | var loc = e.mark; 23 | found.push({ from: CodeMirror.Pos(loc.line, loc.column), to: CodeMirror.Pos(loc.line, loc.column), message: e.message }); 24 | } 25 | return found; 26 | }); 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/mode/multiplex_test.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function() { 5 | CodeMirror.defineMode("markdown_with_stex", function(){ 6 | var inner = CodeMirror.getMode({}, "stex"); 7 | var outer = CodeMirror.getMode({}, "markdown"); 8 | 9 | var innerOptions = { 10 | open: '$', 11 | close: '$', 12 | mode: inner, 13 | delimStyle: 'delim', 14 | innerStyle: 'inner' 15 | }; 16 | 17 | return CodeMirror.multiplexingMode(outer, innerOptions); 18 | }); 19 | 20 | var mode = CodeMirror.getMode({}, "markdown_with_stex"); 21 | 22 | function MT(name) { 23 | test.mode( 24 | name, 25 | mode, 26 | Array.prototype.slice.call(arguments, 1), 27 | 'multiplexing'); 28 | } 29 | 30 | MT( 31 | "stexInsideMarkdown", 32 | "[strong **Equation:**] [delim $][inner&tag \\pi][delim $]"); 33 | })(); 34 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version":"5.0.0", 4 | "main": "lib/codemirror.js", 5 | "description": "In-browser code editing made bearable", 6 | "licenses": [{"type": "MIT", 7 | "url": "http://codemirror.net/LICENSE"}], 8 | "directories": {"lib": "./lib"}, 9 | "scripts": {"test": "node ./test/run.js"}, 10 | "devDependencies": {"node-static": "0.6.0", 11 | "phantomjs": "1.9.2-5", 12 | "blint": ">=0.1.1"}, 13 | "bugs": "http://github.com/codemirror/CodeMirror/issues", 14 | "keywords": ["JavaScript", "CodeMirror", "Editor"], 15 | "homepage": "http://codemirror.net", 16 | "maintainers":[{"name": "Marijn Haverbeke", 17 | "email": "marijnh@gmail.com", 18 | "web": "http://marijnhaverbeke.nl"}], 19 | "repository": {"type": "git", 20 | "url": "https://github.com/codemirror/CodeMirror.git"} 21 | } 22 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/lint/yaml-lint.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 | // Depends on js-yaml.js from https://github.com/nodeca/js-yaml 15 | 16 | // declare global: jsyaml 17 | 18 | CodeMirror.registerHelper("lint", "yaml", function(text) { 19 | var found = []; 20 | try { jsyaml.load(text); } 21 | catch(e) { 22 | var loc = e.mark; 23 | found.push({ from: CodeMirror.Pos(loc.line, loc.column), to: CodeMirror.Pos(loc.line, loc.column), message: e.message }); 24 | } 25 | return found; 26 | }); 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /src/com/liu/service/ArticleService.java: -------------------------------------------------------------------------------- 1 | package com.liu.service; 2 | 3 | import com.liu.dao.ArticleDao; 4 | import com.liu.model.Article; 5 | import com.liu.model.Pager; 6 | 7 | public class ArticleService { 8 | private ArticleDao articleDao; 9 | public ArticleService(){ 10 | articleDao = new ArticleDao(); 11 | } 12 | /** 13 | * 根据查询条件,查询文章分页信息 14 | */ 15 | public Pager findArticle(Article searchModel, int pageNum, int pageSize) { 16 | return articleDao.findArticle(searchModel, pageNum, pageSize); 17 | } 18 | /** 19 | * 插入文章 20 | */ 21 | public boolean addArticle(Article article) { 22 | return articleDao.addArticle(article); 23 | } 24 | /** 25 | * 修改文章 26 | */ 27 | public boolean updateArticle(Article article, int id) { 28 | return articleDao.updateArticle(article,id); 29 | } 30 | /** 31 | * 删除文章 32 | * @param id 文章id 33 | * @return 删除结果 34 | */ 35 | public boolean deleteArticle(int id) { 36 | return articleDao.deleteArticle(id); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /web/fonts/editormd-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/blog.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE maincategory( 2 | id int(50) NOT NULL AUTO_INCREMENT, 3 | name varchar(500) NOT NULL, 4 | PRIMARY KEY (id) 5 | )DEFAULT CHARSET=utf8; 6 | 7 | CREATE TABLE subcategory( 8 | id int(50) NOT NULL AUTO_INCREMENT, 9 | name varchar(500) NOT NULL, 10 | main_id int(20) NOT NULL, 11 | PRIMARY KEY (id), 12 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 13 | )DEFAULT CHARSET=utf8; 14 | 15 | CREATE TABLE article( 16 | id int(50) NOT NULL AUTO_INCREMENT, 17 | title varchar(500) NOT NULL, 18 | subtitle varchar(500) DEFAULT NULL, 19 | md_content text, 20 | html_content text, 21 | createdate varchar(500) NOT NULL, 22 | sub_id int(20), 23 | main_id int(20) NOT NULL, 24 | top int(10) DEFAULT 0, 25 | PRIMARY KEY (id), 26 | FOREIGN KEY (sub_id) REFERENCES subcategory(id), 27 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 28 | )DEFAULT CHARSET=utf8; 29 | 30 | CREATE TABLE user( 31 | id int(50) NOT NULL AUTO_INCREMENT, 32 | username varchar(50) NOT NULL, 33 | password varchar(50) NOT NULL, 34 | PRIMARY KEY (id) 35 | )DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /out/production/blog/blog.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE maincategory( 2 | id int(50) NOT NULL AUTO_INCREMENT, 3 | name varchar(500) NOT NULL, 4 | PRIMARY KEY (id) 5 | )DEFAULT CHARSET=utf8; 6 | 7 | CREATE TABLE subcategory( 8 | id int(50) NOT NULL AUTO_INCREMENT, 9 | name varchar(500) NOT NULL, 10 | main_id int(20) NOT NULL, 11 | PRIMARY KEY (id), 12 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 13 | )DEFAULT CHARSET=utf8; 14 | 15 | CREATE TABLE article( 16 | id int(50) NOT NULL AUTO_INCREMENT, 17 | title varchar(500) NOT NULL, 18 | subtitle varchar(500) DEFAULT NULL, 19 | md_content text, 20 | html_content text, 21 | createdate varchar(500) NOT NULL, 22 | sub_id int(20), 23 | main_id int(20) NOT NULL, 24 | top int(10) DEFAULT 0, 25 | PRIMARY KEY (id), 26 | FOREIGN KEY (sub_id) REFERENCES subcategory(id), 27 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 28 | )DEFAULT CHARSET=utf8; 29 | 30 | CREATE TABLE user( 31 | id int(50) NOT NULL AUTO_INCREMENT, 32 | username varchar(50) NOT NULL, 33 | password varchar(50) NOT NULL, 34 | PRIMARY KEY (id) 35 | )DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/fonts/editormd-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /web/admin/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({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), 23 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), 24 | message: str}); 25 | }; 26 | try { jsonlint.parse(text); } 27 | catch(e) {} 28 | return found; 29 | }); 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/WEB-INF/classes/blog.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE maincategory( 2 | id int(50) NOT NULL AUTO_INCREMENT, 3 | name varchar(500) NOT NULL, 4 | PRIMARY KEY (id) 5 | )DEFAULT CHARSET=utf8; 6 | 7 | CREATE TABLE subcategory( 8 | id int(50) NOT NULL AUTO_INCREMENT, 9 | name varchar(500) NOT NULL, 10 | main_id int(20) NOT NULL, 11 | PRIMARY KEY (id), 12 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 13 | )DEFAULT CHARSET=utf8; 14 | 15 | CREATE TABLE article( 16 | id int(50) NOT NULL AUTO_INCREMENT, 17 | title varchar(500) NOT NULL, 18 | subtitle varchar(500) DEFAULT NULL, 19 | md_content text, 20 | html_content text, 21 | createdate varchar(500) NOT NULL, 22 | sub_id int(20), 23 | main_id int(20) NOT NULL, 24 | top int(10) DEFAULT 0, 25 | PRIMARY KEY (id), 26 | FOREIGN KEY (sub_id) REFERENCES subcategory(id), 27 | FOREIGN KEY (main_id) REFERENCES maincategory(id) 28 | )DEFAULT CHARSET=utf8; 29 | 30 | CREATE TABLE user( 31 | id int(50) NOT NULL AUTO_INCREMENT, 32 | username varchar(50) NOT NULL, 33 | password varchar(50) NOT NULL, 34 | PRIMARY KEY (id) 35 | )DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), 23 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), 24 | message: str}); 25 | }; 26 | try { jsonlint.parse(text); } 27 | catch(e) {} 28 | return found; 29 | }); 30 | 31 | }); 32 | -------------------------------------------------------------------------------- /web/admin/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 | .cm-s-neo .cm-comment {color:#75787b} 11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} 12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} 13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328} 14 | .cm-s-neo .cm-string {color:#b35e14} 15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65} 16 | 17 | 18 | /* Editor styling */ 19 | 20 | .cm-s-neo pre { 21 | padding:0; 22 | } 23 | 24 | .cm-s-neo .CodeMirror-gutters { 25 | border:none; 26 | border-right:10px solid transparent; 27 | background-color:transparent; 28 | } 29 | 30 | .cm-s-neo .CodeMirror-linenumber { 31 | padding:0; 32 | color:#e0e2e5; 33 | } 34 | 35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } 36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } 37 | 38 | .cm-s-neo div.CodeMirror-cursor { 39 | width: auto; 40 | border: 0; 41 | background: rgba(155,157,162,0.37); 42 | z-index: 1; 43 | } 44 | -------------------------------------------------------------------------------- /web/admin/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 | if (i > stream.pos) { stream.pos = i; return null; } 21 | stream.pos = l; 22 | return "trailingspace"; 23 | }, 24 | name: "trailingspace" 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 | .cm-s-neo .cm-comment {color:#75787b} 11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} 12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} 13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328} 14 | .cm-s-neo .cm-string {color:#b35e14} 15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65} 16 | 17 | 18 | /* Editor styling */ 19 | 20 | .cm-s-neo pre { 21 | padding:0; 22 | } 23 | 24 | .cm-s-neo .CodeMirror-gutters { 25 | border:none; 26 | border-right:10px solid transparent; 27 | background-color:transparent; 28 | } 29 | 30 | .cm-s-neo .CodeMirror-linenumber { 31 | padding:0; 32 | color:#e0e2e5; 33 | } 34 | 35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } 36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } 37 | 38 | .cm-s-neo div.CodeMirror-cursor { 39 | width: auto; 40 | border: 0; 41 | background: rgba(155,157,162,0.37); 42 | z-index: 1; 43 | } 44 | -------------------------------------------------------------------------------- /src/com/liu/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.liu.dao; 2 | 3 | import com.liu.model.User; 4 | import com.liu.util.JdbcUtil; 5 | 6 | import java.sql.SQLException; 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | public class UserDao { 12 | public boolean VerifyUser(String username,String password){ 13 | List> list = new ArrayList>(); 14 | JdbcUtil jdbcUtil = new JdbcUtil(); 15 | jdbcUtil.getConnection(); // 获取数据库链接 16 | StringBuilder sql = new StringBuilder("select * from user where 1=1"); 17 | List paramList = new ArrayList(); 18 | paramList.add(username); 19 | sql.append(" and username = ?"); 20 | paramList.add(password); 21 | sql.append(" and password = ?"); 22 | List> result = null; 23 | try { 24 | result = jdbcUtil.findResult(sql.toString(),paramList); 25 | if (result.size()!=0) 26 | return true; 27 | } catch (SQLException e) { 28 | e.printStackTrace(); 29 | } 30 | return false; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 | if (i > stream.pos) { stream.pos = i; return null; } 21 | stream.pos = l; 22 | return "trailingspace"; 23 | }, 24 | name: "trailingspace" 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2014 by Marijn Haverbeke and others 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /web/css/about.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | 7 | #sidebar { 8 | background: #000; 9 | height: 100vh; 10 | width: 20%; 11 | position: fixed; 12 | top: 0; 13 | bottom: 0; 14 | padding: 0; 15 | display: flex; 16 | align-items: center; 17 | } 18 | 19 | .inner { 20 | width: 100%; 21 | margin: 0 45px; 22 | } 23 | 24 | .inner ul li a { 25 | text-decoration: none; 26 | color: white; 27 | opacity: 0.5; 28 | } 29 | 30 | .inner ul li { 31 | padding: 20px 15px 10px 15px; 32 | text-align: right; 33 | border-bottom: 1px solid white; 34 | } 35 | 36 | .current { 37 | opacity: 1; 38 | } 39 | 40 | #intro { 41 | height: 100vh; 42 | width: 80%; 43 | float: right; 44 | background-color: yellow; 45 | } 46 | 47 | #experience { 48 | height: 100vh; 49 | width: 80%; 50 | float: right; 51 | background-color: blue; 52 | } 53 | 54 | 55 | #skill { 56 | height: 100vh; 57 | width: 80%; 58 | float: right; 59 | background-color: green; 60 | } 61 | #other { 62 | height: 100vh; 63 | width: 80%; 64 | float: right; 65 | background-color: orange; 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2014 by Marijn Haverbeke and others 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/about.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | 7 | #sidebar { 8 | background: #000; 9 | height: 100vh; 10 | width: 20%; 11 | position: fixed; 12 | top: 0; 13 | bottom: 0; 14 | padding: 0; 15 | display: flex; 16 | align-items: center; 17 | } 18 | 19 | .inner { 20 | width: 100%; 21 | margin: 0 45px; 22 | } 23 | 24 | .inner ul li a { 25 | text-decoration: none; 26 | color: white; 27 | opacity: 0.5; 28 | } 29 | 30 | .inner ul li { 31 | padding: 20px 15px 10px 15px; 32 | text-align: right; 33 | border-bottom: 1px solid white; 34 | } 35 | 36 | .current { 37 | opacity: 1; 38 | } 39 | 40 | #intro { 41 | height: 100vh; 42 | width: 80%; 43 | float: right; 44 | background-color: yellow; 45 | } 46 | 47 | #experience { 48 | height: 100vh; 49 | width: 80%; 50 | float: right; 51 | background-color: blue; 52 | } 53 | 54 | 55 | #skill { 56 | height: 100vh; 57 | width: 80%; 58 | float: right; 59 | background-color: green; 60 | } 61 | #other { 62 | height: 100vh; 63 | width: 80%; 64 | float: right; 65 | background-color: orange; 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | INDEX 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | takagi 18 | 19 |

liucxi

20 |

School of Computer Science and Technology XIDIAN UNIVERSITY.

21 |

Xi'an · China

22 | 28 |
29 |
30 | 31 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/eclipse.css: -------------------------------------------------------------------------------- 1 | .cm-s-eclipse span.cm-meta {color: #FF1717;} 2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } 3 | .cm-s-eclipse span.cm-atom {color: #219;} 4 | .cm-s-eclipse span.cm-number {color: #164;} 5 | .cm-s-eclipse span.cm-def {color: #00f;} 6 | .cm-s-eclipse span.cm-variable {color: black;} 7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;} 8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;} 9 | .cm-s-eclipse span.cm-property {color: black;} 10 | .cm-s-eclipse span.cm-operator {color: black;} 11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;} 12 | .cm-s-eclipse span.cm-string {color: #2A00FF;} 13 | .cm-s-eclipse span.cm-string-2 {color: #f50;} 14 | .cm-s-eclipse span.cm-qualifier {color: #555;} 15 | .cm-s-eclipse span.cm-builtin {color: #30a;} 16 | .cm-s-eclipse span.cm-bracket {color: #cc7;} 17 | .cm-s-eclipse span.cm-tag {color: #170;} 18 | .cm-s-eclipse span.cm-attribute {color: #00c;} 19 | .cm-s-eclipse span.cm-link {color: #219;} 20 | .cm-s-eclipse span.cm-error {color: #f00;} 21 | 22 | .cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;} 23 | .cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 24 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | INDEX 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | takagi 18 | 19 |

liucxi

20 |

School of Computer Science and Technology XIDIAN UNIVERSITY.

21 |

Xi'an · China

22 | 28 |
29 |
30 | 31 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/eclipse.css: -------------------------------------------------------------------------------- 1 | .cm-s-eclipse span.cm-meta {color: #FF1717;} 2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } 3 | .cm-s-eclipse span.cm-atom {color: #219;} 4 | .cm-s-eclipse span.cm-number {color: #164;} 5 | .cm-s-eclipse span.cm-def {color: #00f;} 6 | .cm-s-eclipse span.cm-variable {color: black;} 7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;} 8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;} 9 | .cm-s-eclipse span.cm-property {color: black;} 10 | .cm-s-eclipse span.cm-operator {color: black;} 11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;} 12 | .cm-s-eclipse span.cm-string {color: #2A00FF;} 13 | .cm-s-eclipse span.cm-string-2 {color: #f50;} 14 | .cm-s-eclipse span.cm-qualifier {color: #555;} 15 | .cm-s-eclipse span.cm-builtin {color: #30a;} 16 | .cm-s-eclipse span.cm-bracket {color: #cc7;} 17 | .cm-s-eclipse span.cm-tag {color: #170;} 18 | .cm-s-eclipse span.cm-attribute {color: #00c;} 19 | .cm-s-eclipse span.cm-link {color: #219;} 20 | .cm-s-eclipse span.cm-error {color: #f00;} 21 | 22 | .cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;} 23 | .cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 24 | -------------------------------------------------------------------------------- /web/admin/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, endCol = message.col; 25 | found.push({ 26 | from: CodeMirror.Pos(startLine, startCol), 27 | to: CodeMirror.Pos(endLine, endCol), 28 | message: message.message, 29 | severity : message.type 30 | }); 31 | } 32 | return found; 33 | }); 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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, endCol = message.col; 25 | found.push({ 26 | from: CodeMirror.Pos(startLine, startCol), 27 | to: CodeMirror.Pos(endLine, endCol), 28 | message: message.message, 29 | severity : message.type 30 | }); 31 | } 32 | return found; 33 | }); 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /web/css/manage.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | ul{ 7 | list-style: none; 8 | } 9 | 10 | #left-nav { 11 | background: #fafafa; 12 | height: 100vh; 13 | /* position: fixed; */ 14 | top: 0; 15 | bottom: 0; 16 | padding: 0; 17 | } 18 | 19 | .author-nav { 20 | text-align: center; 21 | margin: 40px auto 40px auto; 22 | } 23 | 24 | .author-nav img { 25 | height: 100px; 26 | width: 100px; 27 | border-radius: 50%; 28 | } 29 | 30 | .main-nav { 31 | text-align: center; 32 | font-size: 20px; 33 | } 34 | 35 | .main-nav a { 36 | text-decoration: none; 37 | cursor: pointer; 38 | color: #504E4E; 39 | } 40 | 41 | .main-nav a:hover { 42 | text-decoration: none; 43 | color: #504E4E; 44 | background-color: #eee; 45 | } 46 | .main-nav a .current{ 47 | text-decoration: none; 48 | color: #504E4E; 49 | background-color: #eee; 50 | } 51 | 52 | .main-nav ul li { 53 | padding: 15px 0; 54 | } 55 | 56 | .main-nav ul li:hover { 57 | background-color: #eee; 58 | } 59 | #addCty{ 60 | height: 100%; 61 | padding: 0 20px; 62 | } 63 | #ciyList{ 64 | height: 100%; 65 | padding: 0 20px; 66 | } 67 | .paginat{ 68 | float: right; 69 | } 70 | .fiter{ 71 | margin:20px 0; 72 | } 73 | #edit{ 74 | height: 100%; 75 | padding: 0 15px; 76 | } 77 | #operate{ 78 | height: 100%; 79 | padding: 0 10px; 80 | } 81 | -------------------------------------------------------------------------------- /web/admin/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 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/manage.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | font-family: Consolas, "Microsoft YaHei", play; 5 | } 6 | ul{ 7 | list-style: none; 8 | } 9 | 10 | #left-nav { 11 | background: #fafafa; 12 | height: 100vh; 13 | /* position: fixed; */ 14 | top: 0; 15 | bottom: 0; 16 | padding: 0; 17 | } 18 | 19 | .author-nav { 20 | text-align: center; 21 | margin: 40px auto 40px auto; 22 | } 23 | 24 | .author-nav img { 25 | height: 100px; 26 | width: 100px; 27 | border-radius: 50%; 28 | } 29 | 30 | .main-nav { 31 | text-align: center; 32 | font-size: 20px; 33 | } 34 | 35 | .main-nav a { 36 | text-decoration: none; 37 | cursor: pointer; 38 | color: #504E4E; 39 | } 40 | 41 | .main-nav a:hover { 42 | text-decoration: none; 43 | color: #504E4E; 44 | background-color: #eee; 45 | } 46 | .main-nav a .current{ 47 | text-decoration: none; 48 | color: #504E4E; 49 | background-color: #eee; 50 | } 51 | 52 | .main-nav ul li { 53 | padding: 15px 0; 54 | } 55 | 56 | .main-nav ul li:hover { 57 | background-color: #eee; 58 | } 59 | #addCty{ 60 | height: 100%; 61 | padding: 0 20px; 62 | } 63 | #ciyList{ 64 | height: 100%; 65 | padding: 0 20px; 66 | } 67 | .paginat{ 68 | float: right; 69 | } 70 | .fiter{ 71 | margin:20px 0; 72 | } 73 | #edit{ 74 | height: 100%; 75 | padding: 0 15px; 76 | } 77 | #operate{ 78 | height: 100%; 79 | padding: 0 10px; 80 | } 81 | -------------------------------------------------------------------------------- /web/admin/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)})); -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 | -------------------------------------------------------------------------------- /blog.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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)})); -------------------------------------------------------------------------------- /web/admin/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": return startServer(data.defs, data.plugins, data.scripts); 12 | case "add": return server.addFile(data.name, data.text); 13 | case "del": return server.delFile(data.name); 14 | case "req": return server.request(data.body, function(err, reqData) { 15 | postMessage({id: data.id, body: reqData, err: err && String(err)}); 16 | }); 17 | case "getFile": 18 | var c = pending[data.id]; 19 | delete pending[data.id]; 20 | return c(data.err, data.text); 21 | default: throw new Error("Unknown message type: " + data.type); 22 | } 23 | }; 24 | 25 | var nextId = 0, pending = {}; 26 | function getFile(file, c) { 27 | postMessage({type: "getFile", name: file, id: ++nextId}); 28 | pending[nextId] = c; 29 | } 30 | 31 | function startServer(defs, plugins, scripts) { 32 | if (scripts) importScripts.apply(null, scripts); 33 | 34 | server = new tern.Server({ 35 | getFile: getFile, 36 | async: true, 37 | defs: defs, 38 | plugins: plugins 39 | }); 40 | } 41 | 42 | var console = { 43 | log: function(v) { postMessage({type: "debug", message: v}); } 44 | }; 45 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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": return startServer(data.defs, data.plugins, data.scripts); 12 | case "add": return server.addFile(data.name, data.text); 13 | case "del": return server.delFile(data.name); 14 | case "req": return server.request(data.body, function(err, reqData) { 15 | postMessage({id: data.id, body: reqData, err: err && String(err)}); 16 | }); 17 | case "getFile": 18 | var c = pending[data.id]; 19 | delete pending[data.id]; 20 | return c(data.err, data.text); 21 | default: throw new Error("Unknown message type: " + data.type); 22 | } 23 | }; 24 | 25 | var nextId = 0, pending = {}; 26 | function getFile(file, c) { 27 | postMessage({type: "getFile", name: file, id: ++nextId}); 28 | pending[nextId] = c; 29 | } 30 | 31 | function startServer(defs, plugins, scripts) { 32 | if (scripts) importScripts.apply(null, scripts); 33 | 34 | server = new tern.Server({ 35 | getFile: getFile, 36 | async: true, 37 | defs: defs, 38 | plugins: plugins 39 | }); 40 | } 41 | 42 | var console = { 43 | log: function(v) { postMessage({type: "debug", message: v}); } 44 | }; 45 | -------------------------------------------------------------------------------- /web/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | ABOUT 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 33 | 34 | 35 | 36 |

37 | 		
41 | 
42 | 		
43 | 		
44 | 		
45 | 		
46 | 	
47 | 


--------------------------------------------------------------------------------
/web/admin/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({from: CodeMirror.Pos(loc-1, 0),
23 |                 to: CodeMirror.Pos(loc, 0),
24 |                 severity: err.level,
25 |                 message: err.message});
26 |   };
27 |   try {
28 |     var res = coffeelint.lint(text);
29 |     for(var i = 0; i < res.length; i++) {
30 |       parseError(res[i]);
31 |     }
32 |   } catch(e) {
33 |     found.push({from: CodeMirror.Pos(e.location.first_line, 0),
34 |                 to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
35 |                 severity: 'error',
36 |                 message: e.message});
37 |   }
38 |   return found;
39 | });
40 | 
41 | });
42 | 


--------------------------------------------------------------------------------
/out/artifacts/blog_war_exploded/about.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 	
 3 | 		ABOUT
 4 | 		
 5 | 		
 6 | 		
 7 | 		
 8 | 		
 9 | 		
10 | 
11 | 		
16 | 
17 | 		
33 | 	
34 | 
35 | 	
36 | 		

37 | 		
41 | 
42 | 		
43 | 		
44 | 		
45 | 		
46 | 	
47 | 


--------------------------------------------------------------------------------
/web/admin/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 | 


--------------------------------------------------------------------------------
/out/artifacts/blog_war_exploded/admin/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({from: CodeMirror.Pos(loc-1, 0),
23 |                 to: CodeMirror.Pos(loc, 0),
24 |                 severity: err.level,
25 |                 message: err.message});
26 |   };
27 |   try {
28 |     var res = coffeelint.lint(text);
29 |     for(var i = 0; i < res.length; i++) {
30 |       parseError(res[i]);
31 |     }
32 |   } catch(e) {
33 |     found.push({from: CodeMirror.Pos(e.location.first_line, 0),
34 |                 to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
35 |                 severity: 'error',
36 |                 message: e.message});
37 |   }
38 |   return found;
39 | });
40 | 
41 | });
42 | 


--------------------------------------------------------------------------------
/out/artifacts/blog_war_exploded/admin/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 | 


--------------------------------------------------------------------------------
/web/admin/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 |
32 | 39 |
40 | 41 | 44 |

MIME types defined: text/n-triples.

45 |
46 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/spreadsheet/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Spreadsheet mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 25 | 26 |
27 |

Spreadsheet mode

28 |
29 | 30 | 37 | 38 |

MIME types defined: text/x-spreadsheet.

39 | 40 |

The Spreadsheet Mode

41 |

Created by Robert Plummer

42 |
43 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 |
32 | 39 |
40 | 41 | 44 |

MIME types defined: text/n-triples.

45 |
46 | -------------------------------------------------------------------------------- /src/com/liu/model/MainCategory.java: -------------------------------------------------------------------------------- 1 | package com.liu.model; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | public class MainCategory { 7 | private int id; 8 | private String name; 9 | private Number main_count; 10 | private List sublist; 11 | 12 | public MainCategory() {} 13 | 14 | public MainCategory(Map map){ 15 | this.id = (int)map.get("id"); 16 | this.name = (String)map.get("name"); 17 | this.main_count = (Number)map.get("main_count"); 18 | } 19 | 20 | public int getId() { 21 | return id; 22 | } 23 | 24 | public void setId(int id) { 25 | this.id = id; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public void setName(String name) { 33 | this.name = name; 34 | } 35 | 36 | public Number getMain_count() { 37 | return main_count; 38 | } 39 | 40 | public void setMain_count(int main_count) { 41 | this.main_count = main_count; 42 | } 43 | 44 | public List getSublist() { 45 | return sublist; 46 | } 47 | 48 | public void setSublist(List sublist) { 49 | this.sublist = sublist; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | return "MainCategory{" + 55 | "id=" + id + 56 | ", name='" + name + '\'' + 57 | ", main_count=" + main_count + 58 | ", sublist=" + sublist + 59 | '}'; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/http/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: HTTP mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

HTTP mode

27 | 28 | 29 |
39 | 40 | 43 | 44 |

MIME types defined: message/http.

45 |
46 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/cobalt.css: -------------------------------------------------------------------------------- 1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; } 2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; } 3 | .cm-s-cobalt.CodeMirror ::selection { background: rgba(179, 101, 57, .99); } 4 | .cm-s-cobalt.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); } 5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } 6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } 7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } 9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-cobalt span.cm-comment { color: #08f; } 12 | .cm-s-cobalt span.cm-atom { color: #845dc4; } 13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } 14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; } 15 | .cm-s-cobalt span.cm-string { color: #3ad900; } 16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; } 17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } 18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; } 19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; } 20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } 21 | .cm-s-cobalt span.cm-link { color: #845dc4; } 22 | .cm-s-cobalt span.cm-error { color: #9d1e15; } 23 | 24 | .cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;} 25 | .cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important} 26 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/spreadsheet/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Spreadsheet mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 25 | 26 |
27 |

Spreadsheet mode

28 |
29 | 30 | 37 | 38 |

MIME types defined: text/x-spreadsheet.

39 | 40 |

The Spreadsheet Mode

41 |

Created by Robert Plummer

42 |
43 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/http/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: HTTP mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

HTTP mode

27 | 28 | 29 |
39 | 40 | 43 | 44 |

MIME types defined: message/http.

45 |
46 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/cobalt.css: -------------------------------------------------------------------------------- 1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; } 2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; } 3 | .cm-s-cobalt.CodeMirror ::selection { background: rgba(179, 101, 57, .99); } 4 | .cm-s-cobalt.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); } 5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } 6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } 7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } 9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-cobalt span.cm-comment { color: #08f; } 12 | .cm-s-cobalt span.cm-atom { color: #845dc4; } 13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } 14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; } 15 | .cm-s-cobalt span.cm-string { color: #3ad900; } 16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; } 17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } 18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; } 19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; } 20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } 21 | .cm-s-cobalt span.cm-link { color: #845dc4; } 22 | .cm-s-cobalt span.cm-error { color: #9d1e15; } 23 | 24 | .cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;} 25 | .cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important} 26 | -------------------------------------------------------------------------------- /web/admin/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/com/liu/servlet/LoginServlet.java: -------------------------------------------------------------------------------- 1 | package com.liu.servlet; 2 | 3 | import com.liu.dao.UserDao; 4 | import com.liu.service.UserService; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | import java.io.IOException; 13 | 14 | @WebServlet(name = "LoginServlet") 15 | public class LoginServlet extends HttpServlet { 16 | private UserService userservice; 17 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | userservice = new UserService(); 19 | String username = request.getParameter("username"); 20 | String password = request.getParameter("password"); 21 | String re = request.getParameter("VerifyCode"); 22 | String answer =(String)request.getSession().getAttribute("VerifyCode"); 23 | if((userservice.VerifyUser(username,password))&&(re.equals(answer))) { 24 | HttpSession session = request.getSession(); 25 | session.setAttribute("username",username); 26 | session.setMaxInactiveInterval(3*60); 27 | response.sendRedirect("PostlistServlet?role=1"); 28 | } 29 | else 30 | request.getRequestDispatcher(request.getContextPath()+"/error.jsp").forward(request, response); 31 | } 32 | 33 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/z80/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Z80 assembly mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Z80 assembly mode

27 | 28 | 29 |
44 | 45 | 50 | 51 |

MIME type defined: text/x-z80.

52 |
53 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/ecl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: ECL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

ECL mode

27 |
45 | 48 | 49 |

Based on CodeMirror's clike mode. For more information see HPCC Systems web site.

50 |

MIME types defined: text/x-ecl.

51 | 52 |
53 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/rust/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Rust mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Rust mode

27 | 28 | 29 |
52 | 53 | 58 | 59 |

MIME types defined: text/x-rustsrc.

60 |
61 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/z80/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Z80 assembly mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Z80 assembly mode

27 | 28 | 29 |
44 | 45 | 50 | 51 |

MIME type defined: text/x-z80.

52 |
53 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/monokai.css: -------------------------------------------------------------------------------- 1 | /* Based on Sublime Text's Monokai theme */ 2 | 3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;} 4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;} 5 | .cm-s-monokai.CodeMirror ::selection { background: rgba(73, 72, 62, .99); } 6 | .cm-s-monokai.CodeMirror ::-moz-selection { background: rgba(73, 72, 62, .99); } 7 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;} 8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; } 9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 10 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;} 11 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;} 12 | 13 | .cm-s-monokai span.cm-comment {color: #75715e;} 14 | .cm-s-monokai span.cm-atom {color: #ae81ff;} 15 | .cm-s-monokai span.cm-number {color: #ae81ff;} 16 | 17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;} 18 | .cm-s-monokai span.cm-keyword {color: #f92672;} 19 | .cm-s-monokai span.cm-string {color: #e6db74;} 20 | 21 | .cm-s-monokai span.cm-variable {color: #a6e22e;} 22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;} 23 | .cm-s-monokai span.cm-def {color: #fd971f;} 24 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;} 25 | .cm-s-monokai span.cm-tag {color: #f92672;} 26 | .cm-s-monokai span.cm-link {color: #ae81ff;} 27 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;} 28 | 29 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;} 30 | .cm-s-monokai .CodeMirror-matchingbracket { 31 | text-decoration: underline; 32 | color: white !important; 33 | } 34 | -------------------------------------------------------------------------------- /src/com/liu/model/Category.java: -------------------------------------------------------------------------------- 1 | package com.liu.model; 2 | 3 | import java.util.Map; 4 | 5 | public class Category { 6 | private int main_id; 7 | private String main_name; 8 | private int sub_id; 9 | private String sub_name; 10 | private Number sub_count; 11 | 12 | public Category() { 13 | } 14 | 15 | public Category(Map map) { 16 | this.main_id = (int) map.get("id"); 17 | this.main_name = (String) map.get("name"); 18 | if (map.get("sub_id")!=null) 19 | this.sub_id = (int) map.get("sub_id"); 20 | if (map.get("sub_name")!=null) 21 | this.sub_name = (String) map.get("sub_name"); 22 | this.sub_count = (Number)map.get("sub_count"); 23 | } 24 | 25 | public int getMain_id() { 26 | return main_id; 27 | } 28 | 29 | public void setMain_id(int main_id) { 30 | this.main_id = main_id; 31 | } 32 | 33 | public String getMain_name() { 34 | return main_name; 35 | } 36 | 37 | public void setMain_name(String main_name) { 38 | this.main_name = main_name; 39 | } 40 | 41 | public int getSub_id() { 42 | return sub_id; 43 | } 44 | 45 | public void setSub_id(int sub_id) { 46 | this.sub_id = sub_id; 47 | } 48 | 49 | public String getSub_name() { 50 | return sub_name; 51 | } 52 | 53 | public void setSub_name(String sub_name) { 54 | this.sub_name = sub_name; 55 | } 56 | 57 | public Number getSub_count() { 58 | return sub_count; 59 | } 60 | 61 | public void setSub_count(Number sub_count) { 62 | this.sub_count = sub_count; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /web/admin/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; left: 0; 18 | height: 8px; 19 | } 20 | .CodeMirror-simplescroll-horizontal div { 21 | bottom: 0; 22 | height: 100%; 23 | } 24 | 25 | .CodeMirror-simplescroll-vertical { 26 | right: 0; top: 0; 27 | width: 8px; 28 | } 29 | .CodeMirror-simplescroll-vertical div { 30 | right: 0; 31 | width: 100%; 32 | } 33 | 34 | 35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler { 36 | display: none; 37 | } 38 | 39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div { 40 | position: absolute; 41 | background: #bcd; 42 | border-radius: 3px; 43 | } 44 | 45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical { 46 | position: absolute; 47 | z-index: 6; 48 | } 49 | 50 | .CodeMirror-overlayscroll-horizontal { 51 | bottom: 0; left: 0; 52 | height: 6px; 53 | } 54 | .CodeMirror-overlayscroll-horizontal div { 55 | bottom: 0; 56 | height: 100%; 57 | } 58 | 59 | .CodeMirror-overlayscroll-vertical { 60 | right: 0; top: 0; 61 | width: 6px; 62 | } 63 | .CodeMirror-overlayscroll-vertical div { 64 | right: 0; 65 | width: 100%; 66 | } 67 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/rubyblue.css: -------------------------------------------------------------------------------- 1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; } 2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; } 3 | .cm-s-rubyblue.CodeMirror ::selection { background: rgba(56, 86, 111, 0.99); } 4 | .cm-s-rubyblue.CodeMirror ::-moz-selection { background: rgba(56, 86, 111, 0.99); } 5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } 6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; } 7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } 8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; } 9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } 12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; } 13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } 14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; } 15 | .cm-s-rubyblue span.cm-string { color: #F08047; } 16 | .cm-s-rubyblue span.cm-meta { color: #F0F; } 17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } 18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; } 19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; } 20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; } 21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } 22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } 23 | .cm-s-rubyblue span.cm-error { color: #AF2018; } 24 | 25 | .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;} 26 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/ecl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: ECL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

ECL mode

27 |
45 | 48 | 49 |

Based on CodeMirror's clike mode. For more information see HPCC Systems web site.

50 |

MIME types defined: text/x-ecl.

51 | 52 |
53 | -------------------------------------------------------------------------------- /src/com/liu/model/Pager.java: -------------------------------------------------------------------------------- 1 | package com.liu.model; 2 | 3 | import java.util.List; 4 | 5 | public class Pager { 6 | private int pageSize; //每页显示多少条记录 7 | private int currentPage; //当前是第几页数据 8 | private int totalRecord; //一共多少条记录 9 | private int totalPage; //一共多少页记录 10 | private List
dataList; //要显示的数据 11 | 12 | public Pager() { 13 | } 14 | 15 | public Pager(int pageSize, int currentPage, int totalRecord, int totalPage, List
dataList) { 16 | this.pageSize = pageSize; 17 | this.currentPage = currentPage; 18 | this.totalRecord = totalRecord; 19 | this.totalPage = totalPage; 20 | this.dataList = dataList; 21 | } 22 | 23 | public int getPageSize() { 24 | return pageSize; 25 | } 26 | 27 | public void setPageSize(int pageSize) { 28 | this.pageSize = pageSize; 29 | } 30 | 31 | public int getCurrentPage() { 32 | return currentPage; 33 | } 34 | 35 | public void setCurrentPage(int currentPage) { 36 | this.currentPage = currentPage; 37 | } 38 | 39 | public int getTotalRecord() { 40 | return totalRecord; 41 | } 42 | 43 | public void setTotalRecord(int totalRecord) { 44 | this.totalRecord = totalRecord; 45 | } 46 | 47 | public int getTotalPage() { 48 | return totalPage; 49 | } 50 | 51 | public void setTotalPage(int totalPage) { 52 | this.totalPage = totalPage; 53 | } 54 | 55 | public List
getDataList() { 56 | return dataList; 57 | } 58 | 59 | public void setDataList(List
dataList) { 60 | this.dataList = dataList; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/rust/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Rust mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Rust mode

27 | 28 | 29 |
52 | 53 | 58 | 59 |

MIME types defined: text/x-rustsrc.

60 |
61 | -------------------------------------------------------------------------------- /web/css/project.css: -------------------------------------------------------------------------------- 1 | #project-top { 2 | width: 100%; 3 | height: 30vh; 4 | position: relative; 5 | background: url(../img/banner.jpg); 6 | background-size: cover; 7 | background-repeat: no-repeat; 8 | display: flex; 9 | justify-content: center; 10 | align-items: center; 11 | } 12 | .title { 13 | color: #000; 14 | font-size: 60px; 15 | margin: 30px; 16 | margin-bottom: 0; 17 | } 18 | .main-inner{ 19 | margin:20px 0; 20 | } 21 | .card { 22 | height: 300px; 23 | border-radius: 10px; 24 | margin: 20px 0px; 25 | display: flex; 26 | justify-content: center; 27 | align-items: center; 28 | } 29 | 30 | .card:hover { 31 | box-shadow: #666 0px 0px 3px; 32 | transition: transform 1s ease; 33 | } 34 | 35 | .card-wrap { 36 | text-align: center; 37 | height: 100%; 38 | width: 100%; 39 | } 40 | 41 | .card img { 42 | width: 80px; 43 | height: 80px; 44 | } 45 | 46 | .color0 { 47 | background: #8DC058; 48 | color: #fff; 49 | } 50 | 51 | .color1 { 52 | background: #319DD4; 53 | color: #fff; 54 | } 55 | 56 | .color2 { 57 | background: #686871; 58 | color: #fff; 59 | } 60 | .color3 { 61 | background: #D9534F; 62 | color: #fff; 63 | } 64 | 65 | .color4 { 66 | background: #F0AD4E; 67 | color: #fff; 68 | } 69 | 70 | .color5 { 71 | background: #5C51EC; 72 | color: #fff; 73 | } 74 | .card-content{ 75 | padding : 0 25px; 76 | height: 80%; 77 | display:flex;/*Flex布局*/ 78 | display: -webkit-flex; /* Safari */ 79 | align-items:center;/*指定垂直居中*/ 80 | justify-content: center; 81 | } 82 | .card-ft{ 83 | height: 20%; 84 | display:flex;/*Flex布局*/ 85 | display: -webkit-flex; /* Safari */ 86 | align-items:center;/*指定垂直居中*/ 87 | } 88 | .card-ft a,.card-content a{ 89 | color: #fff; 90 | } -------------------------------------------------------------------------------- /web/admin/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 = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, 24 | width: wrap.style.width, height: wrap.style.height}; 25 | wrap.style.width = ""; 26 | wrap.style.height = "auto"; 27 | wrap.className += " CodeMirror-fullscreen"; 28 | document.documentElement.style.overflow = "hidden"; 29 | cm.refresh(); 30 | } 31 | 32 | function setNormal(cm) { 33 | var wrap = cm.getWrapperElement(); 34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, ""); 35 | document.documentElement.style.overflow = ""; 36 | var info = cm.state.fullScreenRestore; 37 | wrap.style.width = info.width; wrap.style.height = info.height; 38 | window.scrollTo(info.scrollLeft, info.scrollTop); 39 | cm.refresh(); 40 | } 41 | }); 42 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/night.css: -------------------------------------------------------------------------------- 1 | /* Loosely based on the Midnight Textmate theme */ 2 | 3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } 4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; } 5 | .cm-s-night.CodeMirror ::selection { background: rgba(68, 68, 119, .99); } 6 | .cm-s-night.CodeMirror ::-moz-selection { background: rgba(68, 68, 119, .99); } 7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 8 | .cm-s-night .CodeMirror-guttermarker { color: white; } 9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } 10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } 11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; } 12 | 13 | .cm-s-night span.cm-comment { color: #6900a1; } 14 | .cm-s-night span.cm-atom { color: #845dc4; } 15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } 16 | .cm-s-night span.cm-keyword { color: #599eff; } 17 | .cm-s-night span.cm-string { color: #37f14a; } 18 | .cm-s-night span.cm-meta { color: #7678e2; } 19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } 20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; } 21 | .cm-s-night span.cm-bracket { color: #8da6ce; } 22 | .cm-s-night span.cm-comment { color: #6900a1; } 23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } 24 | .cm-s-night span.cm-link { color: #845dc4; } 25 | .cm-s-night span.cm-error { color: #9d1e15; } 26 | 27 | .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;} 28 | .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 29 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/monokai.css: -------------------------------------------------------------------------------- 1 | /* Based on Sublime Text's Monokai theme */ 2 | 3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;} 4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;} 5 | .cm-s-monokai.CodeMirror ::selection { background: rgba(73, 72, 62, .99); } 6 | .cm-s-monokai.CodeMirror ::-moz-selection { background: rgba(73, 72, 62, .99); } 7 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;} 8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; } 9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 10 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;} 11 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;} 12 | 13 | .cm-s-monokai span.cm-comment {color: #75715e;} 14 | .cm-s-monokai span.cm-atom {color: #ae81ff;} 15 | .cm-s-monokai span.cm-number {color: #ae81ff;} 16 | 17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;} 18 | .cm-s-monokai span.cm-keyword {color: #f92672;} 19 | .cm-s-monokai span.cm-string {color: #e6db74;} 20 | 21 | .cm-s-monokai span.cm-variable {color: #a6e22e;} 22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;} 23 | .cm-s-monokai span.cm-def {color: #fd971f;} 24 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;} 25 | .cm-s-monokai span.cm-tag {color: #f92672;} 26 | .cm-s-monokai span.cm-link {color: #ae81ff;} 27 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;} 28 | 29 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;} 30 | .cm-s-monokai .CodeMirror-matchingbracket { 31 | text-decoration: underline; 32 | color: white !important; 33 | } 34 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/rubyblue.css: -------------------------------------------------------------------------------- 1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; } 2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; } 3 | .cm-s-rubyblue.CodeMirror ::selection { background: rgba(56, 86, 111, 0.99); } 4 | .cm-s-rubyblue.CodeMirror ::-moz-selection { background: rgba(56, 86, 111, 0.99); } 5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } 6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; } 7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } 8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; } 9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } 12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; } 13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } 14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; } 15 | .cm-s-rubyblue span.cm-string { color: #F08047; } 16 | .cm-s-rubyblue span.cm-meta { color: #F0F; } 17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } 18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; } 19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; } 20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; } 21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } 22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } 23 | .cm-s-rubyblue span.cm-error { color: #AF2018; } 24 | 25 | .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;} 26 | -------------------------------------------------------------------------------- /web/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ADMIN 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 |
20 |
21 |
22 |
23 |

控制台

24 | 25 | 26 |
27 | 28 | 29 |
30 | 31 | 返回博客 32 |
33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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; left: 0; 18 | height: 8px; 19 | } 20 | .CodeMirror-simplescroll-horizontal div { 21 | bottom: 0; 22 | height: 100%; 23 | } 24 | 25 | .CodeMirror-simplescroll-vertical { 26 | right: 0; top: 0; 27 | width: 8px; 28 | } 29 | .CodeMirror-simplescroll-vertical div { 30 | right: 0; 31 | width: 100%; 32 | } 33 | 34 | 35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler { 36 | display: none; 37 | } 38 | 39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div { 40 | position: absolute; 41 | background: #bcd; 42 | border-radius: 3px; 43 | } 44 | 45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical { 46 | position: absolute; 47 | z-index: 6; 48 | } 49 | 50 | .CodeMirror-overlayscroll-horizontal { 51 | bottom: 0; left: 0; 52 | height: 6px; 53 | } 54 | .CodeMirror-overlayscroll-horizontal div { 55 | bottom: 0; 56 | height: 100%; 57 | } 58 | 59 | .CodeMirror-overlayscroll-vertical { 60 | right: 0; top: 0; 61 | width: 6px; 62 | } 63 | .CodeMirror-overlayscroll-vertical div { 64 | right: 0; 65 | width: 100%; 66 | } 67 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/turtle/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Turtle mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Turtle mode

27 |
41 | 47 | 48 |

MIME types defined: text/turtle.

49 | 50 |
51 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/css/project.css: -------------------------------------------------------------------------------- 1 | #project-top { 2 | width: 100%; 3 | height: 30vh; 4 | position: relative; 5 | background: url(../img/banner.jpg); 6 | background-size: cover; 7 | background-repeat: no-repeat; 8 | display: flex; 9 | justify-content: center; 10 | align-items: center; 11 | } 12 | .title { 13 | color: #000; 14 | font-size: 60px; 15 | margin: 30px; 16 | margin-bottom: 0; 17 | } 18 | .main-inner{ 19 | margin:20px 0; 20 | } 21 | .card { 22 | height: 300px; 23 | border-radius: 10px; 24 | margin: 20px 0px; 25 | display: flex; 26 | justify-content: center; 27 | align-items: center; 28 | } 29 | 30 | .card:hover { 31 | box-shadow: #666 0px 0px 3px; 32 | transition: transform 1s ease; 33 | } 34 | 35 | .card-wrap { 36 | text-align: center; 37 | height: 100%; 38 | width: 100%; 39 | } 40 | 41 | .card img { 42 | width: 80px; 43 | height: 80px; 44 | } 45 | 46 | .color0 { 47 | background: #8DC058; 48 | color: #fff; 49 | } 50 | 51 | .color1 { 52 | background: #319DD4; 53 | color: #fff; 54 | } 55 | 56 | .color2 { 57 | background: #686871; 58 | color: #fff; 59 | } 60 | .color3 { 61 | background: #D9534F; 62 | color: #fff; 63 | } 64 | 65 | .color4 { 66 | background: #F0AD4E; 67 | color: #fff; 68 | } 69 | 70 | .color5 { 71 | background: #5C51EC; 72 | color: #fff; 73 | } 74 | .card-content{ 75 | padding : 0 25px; 76 | height: 80%; 77 | display:flex;/*Flex布局*/ 78 | display: -webkit-flex; /* Safari */ 79 | align-items:center;/*指定垂直居中*/ 80 | justify-content: center; 81 | } 82 | .card-ft{ 83 | height: 20%; 84 | display:flex;/*Flex布局*/ 85 | display: -webkit-flex; /* Safari */ 86 | align-items:center;/*指定垂直居中*/ 87 | } 88 | .card-ft a,.card-content a{ 89 | color: #fff; 90 | } -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/scroll/scrollpastend.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("scrollPastEnd", false, function(cm, val, old) { 15 | if (old && old != CodeMirror.Init) { 16 | cm.off("change", onChange); 17 | cm.off("refresh", updateBottomMargin); 18 | cm.display.lineSpace.parentNode.style.paddingBottom = ""; 19 | cm.state.scrollPastEndPadding = null; 20 | } 21 | if (val) { 22 | cm.on("change", onChange); 23 | cm.on("refresh", updateBottomMargin); 24 | updateBottomMargin(cm); 25 | } 26 | }); 27 | 28 | function onChange(cm, change) { 29 | if (CodeMirror.changeEnd(change).line == cm.lastLine()) 30 | updateBottomMargin(cm); 31 | } 32 | 33 | function updateBottomMargin(cm) { 34 | var padding = ""; 35 | if (cm.lineCount() > 1) { 36 | var totalH = cm.display.scroller.clientHeight - 30, 37 | lastLineH = cm.getLineHandle(cm.lastLine()).height; 38 | padding = (totalH - lastLineH) + "px"; 39 | } 40 | if (cm.state.scrollPastEndPadding != padding) { 41 | cm.state.scrollPastEndPadding = padding; 42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding; 43 | cm.setSize(); 44 | } 45 | } 46 | }); 47 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/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 = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, 24 | width: wrap.style.width, height: wrap.style.height}; 25 | wrap.style.width = ""; 26 | wrap.style.height = "auto"; 27 | wrap.className += " CodeMirror-fullscreen"; 28 | document.documentElement.style.overflow = "hidden"; 29 | cm.refresh(); 30 | } 31 | 32 | function setNormal(cm) { 33 | var wrap = cm.getWrapperElement(); 34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, ""); 35 | document.documentElement.style.overflow = ""; 36 | var info = cm.state.fullScreenRestore; 37 | wrap.style.width = info.width; wrap.style.height = info.height; 38 | window.scrollTo(info.scrollLeft, info.scrollTop); 39 | cm.refresh(); 40 | } 41 | }); 42 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/night.css: -------------------------------------------------------------------------------- 1 | /* Loosely based on the Midnight Textmate theme */ 2 | 3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } 4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; } 5 | .cm-s-night.CodeMirror ::selection { background: rgba(68, 68, 119, .99); } 6 | .cm-s-night.CodeMirror ::-moz-selection { background: rgba(68, 68, 119, .99); } 7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 8 | .cm-s-night .CodeMirror-guttermarker { color: white; } 9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } 10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } 11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; } 12 | 13 | .cm-s-night span.cm-comment { color: #6900a1; } 14 | .cm-s-night span.cm-atom { color: #845dc4; } 15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } 16 | .cm-s-night span.cm-keyword { color: #599eff; } 17 | .cm-s-night span.cm-string { color: #37f14a; } 18 | .cm-s-night span.cm-meta { color: #7678e2; } 19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } 20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; } 21 | .cm-s-night span.cm-bracket { color: #8da6ce; } 22 | .cm-s-night span.cm-comment { color: #6900a1; } 23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } 24 | .cm-s-night span.cm-link { color: #845dc4; } 25 | .cm-s-night span.cm-error { color: #9d1e15; } 26 | 27 | .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;} 28 | .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 29 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ADMIN 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 |
20 |
21 |
22 |
23 |

控制台

24 | 25 | 26 |
27 | 28 | 29 |
30 | 31 | 返回博客 32 |
33 |
34 |
35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/pascal/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pascal mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Pascal mode

27 | 28 | 29 |
52 | 53 | 59 | 60 |

MIME types defined: text/x-pascal.

61 |
62 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/turtle/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Turtle mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Turtle mode

27 |
41 | 47 | 48 |

MIME types defined: text/turtle.

49 | 50 |
51 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/pig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pig Latin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Pig Latin mode

27 |
39 | 40 | 47 | 48 |

49 | Simple mode that handles Pig Latin language. 50 |

51 | 52 |

MIME type defined: text/x-pig 53 | (PIG code) 54 | 55 |

56 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/addon/scroll/scrollpastend.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("scrollPastEnd", false, function(cm, val, old) { 15 | if (old && old != CodeMirror.Init) { 16 | cm.off("change", onChange); 17 | cm.off("refresh", updateBottomMargin); 18 | cm.display.lineSpace.parentNode.style.paddingBottom = ""; 19 | cm.state.scrollPastEndPadding = null; 20 | } 21 | if (val) { 22 | cm.on("change", onChange); 23 | cm.on("refresh", updateBottomMargin); 24 | updateBottomMargin(cm); 25 | } 26 | }); 27 | 28 | function onChange(cm, change) { 29 | if (CodeMirror.changeEnd(change).line == cm.lastLine()) 30 | updateBottomMargin(cm); 31 | } 32 | 33 | function updateBottomMargin(cm) { 34 | var padding = ""; 35 | if (cm.lineCount() > 1) { 36 | var totalH = cm.display.scroller.clientHeight - 30, 37 | lastLineH = cm.getLineHandle(cm.lastLine()).height; 38 | padding = (totalH - lastLineH) + "px"; 39 | } 40 | if (cm.state.scrollPastEndPadding != padding) { 41 | cm.state.scrollPastEndPadding = padding; 42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding; 43 | cm.setSize(); 44 | } 45 | } 46 | }); 47 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/pascal/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pascal mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Pascal mode

27 | 28 | 29 |
52 | 53 | 59 | 60 |

MIME types defined: text/x-pascal.

61 |
62 | -------------------------------------------------------------------------------- /web/admin/plugins/test-plugin/test-plugin.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Test plugin for Editor.md 3 | * 4 | * @file test-plugin.js 5 | * @author pandao 6 | * @version 1.2.0 7 | * @updateTime 2015-03-07 8 | * {@link https://github.com/pandao/editor.md} 9 | * @license MIT 10 | */ 11 | 12 | (function() { 13 | 14 | var factory = function (exports) { 15 | 16 | var $ = jQuery; // if using module loader(Require.js/Sea.js). 17 | 18 | exports.testPlugin = function(){ 19 | alert("testPlugin"); 20 | }; 21 | 22 | exports.fn.testPluginMethodA = function() { 23 | /* 24 | var _this = this; // this == the current instance object of Editor.md 25 | var lang = _this.lang; 26 | var settings = _this.settings; 27 | var editor = this.editor; 28 | var cursor = cm.getCursor(); 29 | var selection = cm.getSelection(); 30 | var classPrefix = this.classPrefix; 31 | 32 | cm.focus(); 33 | */ 34 | //.... 35 | 36 | alert("testPluginMethodA"); 37 | }; 38 | 39 | }; 40 | 41 | // CommonJS/Node.js 42 | if (typeof require === "function" && typeof exports === "object" && typeof module === "object") 43 | { 44 | module.exports = factory; 45 | } 46 | else if (typeof define === "function") // AMD/CMD/Sea.js 47 | { 48 | if (define.amd) { // for Require.js 49 | 50 | define(["editormd"], function(editormd) { 51 | factory(editormd); 52 | }); 53 | 54 | } else { // for Sea.js 55 | define(function(require) { 56 | var editormd = require("./../../editormd"); 57 | factory(editormd); 58 | }); 59 | } 60 | } 61 | else 62 | { 63 | factory(window.editormd); 64 | } 65 | 66 | })(); 67 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/pig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pig Latin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Pig Latin mode

27 |
39 | 40 | 47 | 48 |

49 | Simple mode that handles Pig Latin language. 50 |

51 | 52 |

MIME type defined: text/x-pig 53 | (PIG code) 54 | 55 |

56 | -------------------------------------------------------------------------------- /src/com/liu/model/SubCategory.java: -------------------------------------------------------------------------------- 1 | package com.liu.model; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | public class SubCategory { 8 | private int id; 9 | private String name; 10 | private int main_id; 11 | private Number sub_count; 12 | 13 | public SubCategory() {} 14 | 15 | public SubCategory(Map map){ 16 | this.id = (int)map.get("id"); 17 | this.name = (String)map.get("name"); 18 | this.main_id = (int)map.get("main_id"); 19 | this.sub_count = (Number)map.get("sub_count"); 20 | } 21 | 22 | public int getId() { 23 | return id; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | 34 | public int getMain_id() { 35 | return main_id; 36 | } 37 | 38 | public void setMain_id(int main_id) { 39 | this.main_id = main_id; 40 | } 41 | 42 | public void setId(int id) { 43 | this.id = id; 44 | } 45 | 46 | public Number getSub_count() { 47 | return sub_count; 48 | } 49 | 50 | public void setSub_count(int sub_count) { 51 | this.sub_count = sub_count; 52 | } 53 | 54 | @Override 55 | public String toString() { 56 | return "SubCategory{" + 57 | "id=" + id + 58 | ", name='" + name + '\'' + 59 | ", main_id=" + main_id + 60 | ", sub_count=" + sub_count + 61 | '}'; 62 | } 63 | 64 | public List toList() { 65 | List list = new ArrayList(); 66 | list.add(name); 67 | list.add(main_id); 68 | return list; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/vbscript/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: VBScript mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

VBScript mode

27 | 28 | 29 |
46 | 47 | 53 | 54 |

MIME types defined: text/vbscript.

55 |
56 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/the-matrix.css: -------------------------------------------------------------------------------- 1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } 2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D !important; } 3 | .cm-s-the-matrix.CodeMirror ::selection { background: rgba(45, 45, 45, 0.99); } 4 | .cm-s-the-matrix.CodeMirror ::-moz-selection { background: rgba(45, 45, 45, 0.99); } 5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } 6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } 7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } 8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } 9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; } 10 | 11 | .cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;} 12 | .cm-s-the-matrix span.cm-atom {color: #3FF;} 13 | .cm-s-the-matrix span.cm-number {color: #FFB94F;} 14 | .cm-s-the-matrix span.cm-def {color: #99C;} 15 | .cm-s-the-matrix span.cm-variable {color: #F6C;} 16 | .cm-s-the-matrix span.cm-variable-2 {color: #C6F;} 17 | .cm-s-the-matrix span.cm-variable-3 {color: #96F;} 18 | .cm-s-the-matrix span.cm-property {color: #62FFA0;} 19 | .cm-s-the-matrix span.cm-operator {color: #999} 20 | .cm-s-the-matrix span.cm-comment {color: #CCCCCC;} 21 | .cm-s-the-matrix span.cm-string {color: #39C;} 22 | .cm-s-the-matrix span.cm-meta {color: #C9F;} 23 | .cm-s-the-matrix span.cm-qualifier {color: #FFF700;} 24 | .cm-s-the-matrix span.cm-builtin {color: #30a;} 25 | .cm-s-the-matrix span.cm-bracket {color: #cc7;} 26 | .cm-s-the-matrix span.cm-tag {color: #FFBD40;} 27 | .cm-s-the-matrix span.cm-attribute {color: #FFF700;} 28 | .cm-s-the-matrix span.cm-error {color: #FF0000;} 29 | 30 | .cm-s-the-matrix .CodeMirror-activeline-background {background: #040;} 31 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/plugins/test-plugin/test-plugin.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Test plugin for Editor.md 3 | * 4 | * @file test-plugin.js 5 | * @author pandao 6 | * @version 1.2.0 7 | * @updateTime 2015-03-07 8 | * {@link https://github.com/pandao/editor.md} 9 | * @license MIT 10 | */ 11 | 12 | (function() { 13 | 14 | var factory = function (exports) { 15 | 16 | var $ = jQuery; // if using module loader(Require.js/Sea.js). 17 | 18 | exports.testPlugin = function(){ 19 | alert("testPlugin"); 20 | }; 21 | 22 | exports.fn.testPluginMethodA = function() { 23 | /* 24 | var _this = this; // this == the current instance object of Editor.md 25 | var lang = _this.lang; 26 | var settings = _this.settings; 27 | var editor = this.editor; 28 | var cursor = cm.getCursor(); 29 | var selection = cm.getSelection(); 30 | var classPrefix = this.classPrefix; 31 | 32 | cm.focus(); 33 | */ 34 | //.... 35 | 36 | alert("testPluginMethodA"); 37 | }; 38 | 39 | }; 40 | 41 | // CommonJS/Node.js 42 | if (typeof require === "function" && typeof exports === "object" && typeof module === "object") 43 | { 44 | module.exports = factory; 45 | } 46 | else if (typeof define === "function") // AMD/CMD/Sea.js 47 | { 48 | if (define.amd) { // for Require.js 49 | 50 | define(["editormd"], function(editormd) { 51 | factory(editormd); 52 | }); 53 | 54 | } else { // for Sea.js 55 | define(function(require) { 56 | var editormd = require("./../../editormd"); 57 | factory(editormd); 58 | }); 59 | } 60 | } 61 | else 62 | { 63 | factory(window.editormd); 64 | } 65 | 66 | })(); 67 | -------------------------------------------------------------------------------- /src/com/liu/filter/AdminFilter.java: -------------------------------------------------------------------------------- 1 | package com.liu.filter; 2 | 3 | import javax.servlet.*; 4 | import javax.servlet.annotation.WebFilter; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import javax.servlet.http.HttpSession; 8 | import java.io.IOException; 9 | 10 | @WebFilter(filterName = "AdminFilter") 11 | public class AdminFilter implements Filter { 12 | private FilterConfig config; //定义全局的config变量 13 | public void destroy() { 14 | } 15 | 16 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { 17 | HttpServletRequest req = (HttpServletRequest) request; //强制类型转换 18 | HttpServletResponse res = (HttpServletResponse) response; 19 | String noFilterPaths = config.getInitParameter("noFilterPaths"); //获取web.xml中配置的初始化参数 20 | if(noFilterPaths!=null){ 21 | String[] noFilter = noFilterPaths.split(";"); 22 | for (String path : noFilter) { 23 | if(path==null || "".equals(path)) 24 | continue; 25 | if(req.getRequestURI().indexOf(path)!=-1 ){ //匹配到不需要过滤的路径 26 | chain.doFilter(request, response); //允许放行 27 | return; 28 | } 29 | } 30 | } 31 | HttpSession session = req.getSession(); 32 | if(session.getAttribute("username")!=null){ 33 | chain.doFilter(request, response); //允许放行 34 | }else{ 35 | res.sendRedirect(req.getContextPath()+"../login.html"); 36 | } 37 | } 38 | 39 | public void init(FilterConfig filterConfig) throws ServletException { 40 | config = filterConfig; //获取到config对象 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/gherkin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Gherkin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Gherkin mode

27 |
42 | 45 | 46 |

MIME types defined: text/x-feature.

47 | 48 |
49 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/vbscript/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: VBScript mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

VBScript mode

27 | 28 | 29 |
46 | 47 | 53 | 54 |

MIME types defined: text/vbscript.

55 |
56 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/the-matrix.css: -------------------------------------------------------------------------------- 1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } 2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D !important; } 3 | .cm-s-the-matrix.CodeMirror ::selection { background: rgba(45, 45, 45, 0.99); } 4 | .cm-s-the-matrix.CodeMirror ::-moz-selection { background: rgba(45, 45, 45, 0.99); } 5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } 6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } 7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } 8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } 9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; } 10 | 11 | .cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;} 12 | .cm-s-the-matrix span.cm-atom {color: #3FF;} 13 | .cm-s-the-matrix span.cm-number {color: #FFB94F;} 14 | .cm-s-the-matrix span.cm-def {color: #99C;} 15 | .cm-s-the-matrix span.cm-variable {color: #F6C;} 16 | .cm-s-the-matrix span.cm-variable-2 {color: #C6F;} 17 | .cm-s-the-matrix span.cm-variable-3 {color: #96F;} 18 | .cm-s-the-matrix span.cm-property {color: #62FFA0;} 19 | .cm-s-the-matrix span.cm-operator {color: #999} 20 | .cm-s-the-matrix span.cm-comment {color: #CCCCCC;} 21 | .cm-s-the-matrix span.cm-string {color: #39C;} 22 | .cm-s-the-matrix span.cm-meta {color: #C9F;} 23 | .cm-s-the-matrix span.cm-qualifier {color: #FFF700;} 24 | .cm-s-the-matrix span.cm-builtin {color: #30a;} 25 | .cm-s-the-matrix span.cm-bracket {color: #cc7;} 26 | .cm-s-the-matrix span.cm-tag {color: #FFBD40;} 27 | .cm-s-the-matrix span.cm-attribute {color: #FFF700;} 28 | .cm-s-the-matrix span.cm-error {color: #FF0000;} 29 | 30 | .cm-s-the-matrix .CodeMirror-activeline-background {background: #040;} 31 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/properties/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Properties files mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Properties files mode

27 |
46 | 49 | 50 |

MIME types defined: text/x-properties, 51 | text/x-ini.

52 | 53 |
54 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/gherkin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Gherkin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Gherkin mode

27 |
42 | 45 | 46 |

MIME types defined: text/x-feature.

47 | 48 |
49 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/colorforth.css: -------------------------------------------------------------------------------- 1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } 2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } 4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } 5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } 6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white !important; } 7 | 8 | .cm-s-colorforth span.cm-comment { color: #ededed; } 9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } 10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; } 11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; } 12 | .cm-s-colorforth span.cm-variable { color: #73ff00; } 13 | .cm-s-colorforth span.cm-string { color: #007bff; } 14 | .cm-s-colorforth span.cm-number { color: #00c4ff; } 15 | .cm-s-colorforth span.cm-atom { color: #606060; } 16 | 17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; } 18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; } 19 | .cm-s-colorforth span.cm-property {} 20 | .cm-s-colorforth span.cm-operator {} 21 | 22 | .cm-s-colorforth span.cm-meta { color: yellow; } 23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; } 24 | .cm-s-colorforth span.cm-bracket { color: #cc7; } 25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; } 26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; } 27 | .cm-s-colorforth span.cm-error { color: #f00; } 28 | 29 | .cm-s-colorforth .CodeMirror-selected { background: #333d53 !important; } 30 | 31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } 32 | 33 | .cm-s-colorforth .CodeMirror-activeline-background {background: #253540 !important;} 34 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/fold/indent-fold.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.registerHelper("fold", "indent", function(cm, start) { 15 | var tabSize = cm.getOption("tabSize"), firstLine = cm.getLine(start.line); 16 | if (!/\S/.test(firstLine)) return; 17 | var getIndent = function(line) { 18 | return CodeMirror.countColumn(line, null, tabSize); 19 | }; 20 | var myIndent = getIndent(firstLine); 21 | var lastLineInFold = null; 22 | // Go through lines until we find a line that definitely doesn't belong in 23 | // the block we're folding, or to the end. 24 | for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) { 25 | var curLine = cm.getLine(i); 26 | var curIndent = getIndent(curLine); 27 | if (curIndent > myIndent) { 28 | // Lines with a greater indent are considered part of the block. 29 | lastLineInFold = i; 30 | } else if (!/\S/.test(curLine)) { 31 | // Empty lines might be breaks within the block we're trying to fold. 32 | } else { 33 | // A non-empty line at an indent equal to or less than ours marks the 34 | // start of another block. 35 | break; 36 | } 37 | } 38 | if (lastLineInFold) return { 39 | from: CodeMirror.Pos(start.line, firstLine.length), 40 | to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length) 41 | }; 42 | }); 43 | 44 | }); 45 | -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/mode/properties/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Properties files mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

Properties files mode

27 |
46 | 49 | 50 |

MIME types defined: text/x-properties, 51 | text/x-ini.

52 | 53 |
54 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/fold/markdown-fold.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.registerHelper("fold", "markdown", function(cm, start) { 15 | var maxDepth = 100; 16 | 17 | function isHeader(lineNo) { 18 | var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0)); 19 | return tokentype && /\bheader\b/.test(tokentype); 20 | } 21 | 22 | function headerLevel(lineNo, line, nextLine) { 23 | var match = line && line.match(/^#+/); 24 | if (match && isHeader(lineNo)) return match[0].length; 25 | match = nextLine && nextLine.match(/^[=\-]+\s*$/); 26 | if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2; 27 | return maxDepth; 28 | } 29 | 30 | var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1); 31 | var level = headerLevel(start.line, firstLine, nextLine); 32 | if (level === maxDepth) return undefined; 33 | 34 | var lastLineNo = cm.lastLine(); 35 | var end = start.line, nextNextLine = cm.getLine(end + 2); 36 | while (end < lastLineNo) { 37 | if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break; 38 | ++end; 39 | nextLine = nextNextLine; 40 | nextNextLine = cm.getLine(end + 2); 41 | } 42 | 43 | return { 44 | from: CodeMirror.Pos(start.line, firstLine.length), 45 | to: CodeMirror.Pos(end, cm.getLine(end).length) 46 | }; 47 | }); 48 | 49 | }); 50 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/addon/hint/anyword-hint.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 | var WORD = /[\w$]+/, RANGE = 500; 15 | 16 | CodeMirror.registerHelper("hint", "anyword", function(editor, options) { 17 | var word = options && options.word || WORD; 18 | var range = options && options.range || RANGE; 19 | var cur = editor.getCursor(), curLine = editor.getLine(cur.line); 20 | var end = cur.ch, start = end; 21 | while (start && word.test(curLine.charAt(start - 1))) --start; 22 | var curWord = start != end && curLine.slice(start, end); 23 | 24 | var list = [], seen = {}; 25 | var re = new RegExp(word.source, "g"); 26 | for (var dir = -1; dir <= 1; dir += 2) { 27 | var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir; 28 | for (; line != endLine; line += dir) { 29 | var text = editor.getLine(line), m; 30 | while (m = re.exec(text)) { 31 | if (line == cur.line && m[0] === curWord) continue; 32 | if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) { 33 | seen[m[0]] = true; 34 | list.push(m[0]); 35 | } 36 | } 37 | } 38 | } 39 | return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)}; 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/mode/javascript/typescript.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: TypeScript mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 24 | 25 |
26 |

TypeScript mode

27 | 28 | 29 |
51 | 52 | 59 | 60 |

This is a specialization of the JavaScript mode.

61 |
62 | -------------------------------------------------------------------------------- /web/admin/lib/codemirror/theme/blackboard.css: -------------------------------------------------------------------------------- 1 | /* Port of TextMate's Blackboard theme */ 2 | 3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } 4 | .cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; } 5 | .cm-s-blackboard.CodeMirror ::selection { background: rgba(37, 59, 118, .99); } 6 | .cm-s-blackboard.CodeMirror ::-moz-selection { background: rgba(37, 59, 118, .99); } 7 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } 8 | .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; } 9 | .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; } 10 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; } 11 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; } 12 | 13 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; } 14 | .cm-s-blackboard .cm-atom { color: #D8FA3C; } 15 | .cm-s-blackboard .cm-number { color: #D8FA3C; } 16 | .cm-s-blackboard .cm-def { color: #8DA6CE; } 17 | .cm-s-blackboard .cm-variable { color: #FF6400; } 18 | .cm-s-blackboard .cm-operator { color: #FBDE2D;} 19 | .cm-s-blackboard .cm-comment { color: #AEAEAE; } 20 | .cm-s-blackboard .cm-string { color: #61CE3C; } 21 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; } 22 | .cm-s-blackboard .cm-meta { color: #D8FA3C; } 23 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; } 24 | .cm-s-blackboard .cm-tag { color: #8DA6CE; } 25 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; } 26 | .cm-s-blackboard .cm-header { color: #FF6400; } 27 | .cm-s-blackboard .cm-hr { color: #AEAEAE; } 28 | .cm-s-blackboard .cm-link { color: #8DA6CE; } 29 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; } 30 | 31 | .cm-s-blackboard .CodeMirror-activeline-background {background: #3C3636 !important;} 32 | .cm-s-blackboard .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important} -------------------------------------------------------------------------------- /out/artifacts/blog_war_exploded/admin/lib/codemirror/theme/colorforth.css: -------------------------------------------------------------------------------- 1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } 2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } 4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } 5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } 6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white !important; } 7 | 8 | .cm-s-colorforth span.cm-comment { color: #ededed; } 9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } 10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; } 11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; } 12 | .cm-s-colorforth span.cm-variable { color: #73ff00; } 13 | .cm-s-colorforth span.cm-string { color: #007bff; } 14 | .cm-s-colorforth span.cm-number { color: #00c4ff; } 15 | .cm-s-colorforth span.cm-atom { color: #606060; } 16 | 17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; } 18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; } 19 | .cm-s-colorforth span.cm-property {} 20 | .cm-s-colorforth span.cm-operator {} 21 | 22 | .cm-s-colorforth span.cm-meta { color: yellow; } 23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; } 24 | .cm-s-colorforth span.cm-bracket { color: #cc7; } 25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; } 26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; } 27 | .cm-s-colorforth span.cm-error { color: #f00; } 28 | 29 | .cm-s-colorforth .CodeMirror-selected { background: #333d53 !important; } 30 | 31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } 32 | 33 | .cm-s-colorforth .CodeMirror-activeline-background {background: #253540 !important;} 34 | --------------------------------------------------------------------------------