├── .gitattributes ├── src ├── main │ ├── resources │ │ ├── application.yml │ │ ├── static │ │ │ ├── favicon.ico │ │ │ ├── img │ │ │ │ ├── 404.jpg │ │ │ │ └── logo.png │ │ │ ├── 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 │ │ │ ├── views │ │ │ │ ├── view_1 │ │ │ │ │ ├── img │ │ │ │ │ │ ├── 1.png │ │ │ │ │ │ ├── 2.png │ │ │ │ │ │ ├── slide-1.jpg │ │ │ │ │ │ ├── slide-2.jpg │ │ │ │ │ │ ├── slide-3.jpg │ │ │ │ │ │ ├── slide-4.jpg │ │ │ │ │ │ ├── slide-5.jpg │ │ │ │ │ │ ├── blog-featured-01.jpg │ │ │ │ │ │ ├── blog-featured-02.jpg │ │ │ │ │ │ ├── blog-featured-03.jpg │ │ │ │ │ │ └── blog-featured-04.jpg │ │ │ │ │ ├── js │ │ │ │ │ │ └── view_1.js │ │ │ │ │ └── css │ │ │ │ │ │ └── view_1.css │ │ │ │ ├── view_3 │ │ │ │ │ ├── img │ │ │ │ │ │ └── 4.jpg │ │ │ │ │ └── js │ │ │ │ │ │ └── view_3.js │ │ │ │ ├── view_2 │ │ │ │ │ ├── view_2.html │ │ │ │ │ └── js │ │ │ │ │ │ └── view_2.js │ │ │ │ ├── view_5 │ │ │ │ │ ├── css │ │ │ │ │ │ └── view_5.css │ │ │ │ │ ├── js │ │ │ │ │ │ └── view_5.js │ │ │ │ │ └── view_5.html │ │ │ │ ├── view_4 │ │ │ │ │ ├── js │ │ │ │ │ │ └── view_4.js │ │ │ │ │ └── view_4.html │ │ │ │ └── admin │ │ │ │ │ └── blogeditor │ │ │ │ │ └── blogeditor.html │ │ │ ├── js │ │ │ │ ├── main.js │ │ │ │ ├── app-service.js │ │ │ │ ├── app-controller-admin.js │ │ │ │ ├── app-admin.js │ │ │ │ ├── app-service-admin.js │ │ │ │ ├── app-controller.js │ │ │ │ └── app.js │ │ │ ├── lib_web │ │ │ │ ├── editormd │ │ │ │ │ ├── images │ │ │ │ │ │ ├── loading.gif │ │ │ │ │ │ ├── logos │ │ │ │ │ │ │ ├── vi.png │ │ │ │ │ │ │ ├── editormd-logo-16x16.png │ │ │ │ │ │ │ ├── editormd-logo-24x24.png │ │ │ │ │ │ │ ├── editormd-logo-32x32.png │ │ │ │ │ │ │ ├── editormd-logo-48x48.png │ │ │ │ │ │ │ ├── editormd-logo-57x57.png │ │ │ │ │ │ │ ├── editormd-logo-64x64.png │ │ │ │ │ │ │ ├── editormd-logo-72x72.png │ │ │ │ │ │ │ ├── editormd-logo-96x96.png │ │ │ │ │ │ │ ├── editormd-favicon-16x16.ico │ │ │ │ │ │ │ ├── editormd-favicon-24x24.ico │ │ │ │ │ │ │ ├── editormd-favicon-32x32.ico │ │ │ │ │ │ │ ├── editormd-favicon-48x48.ico │ │ │ │ │ │ │ ├── editormd-favicon-64x64.ico │ │ │ │ │ │ │ ├── editormd-logo-114x114.png │ │ │ │ │ │ │ ├── editormd-logo-120x120.png │ │ │ │ │ │ │ ├── editormd-logo-144x144.png │ │ │ │ │ │ │ ├── editormd-logo-180x180.png │ │ │ │ │ │ │ ├── editormd-logo-240x240.png │ │ │ │ │ │ │ └── editormd-logo-320x320.png │ │ │ │ │ │ ├── loading@2x.gif │ │ │ │ │ │ └── loading@3x.gif │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── codemirror │ │ │ │ │ │ │ ├── theme │ │ │ │ │ │ │ │ ├── ambiance-mobile.css │ │ │ │ │ │ │ │ ├── neat.css │ │ │ │ │ │ │ │ ├── elegant.css │ │ │ │ │ │ │ │ ├── neo.css │ │ │ │ │ │ │ │ ├── eclipse.css │ │ │ │ │ │ │ │ ├── cobalt.css │ │ │ │ │ │ │ │ ├── rubyblue.css │ │ │ │ │ │ │ │ ├── monokai.css │ │ │ │ │ │ │ │ ├── night.css │ │ │ │ │ │ │ │ ├── colorforth.css │ │ │ │ │ │ │ │ └── the-matrix.css │ │ │ │ │ │ │ ├── addon │ │ │ │ │ │ │ │ ├── display │ │ │ │ │ │ │ │ │ ├── fullscreen.css │ │ │ │ │ │ │ │ │ ├── fullscreen.js │ │ │ │ │ │ │ │ │ └── placeholder.js │ │ │ │ │ │ │ │ ├── search │ │ │ │ │ │ │ │ │ └── matchesonscrollbar.css │ │ │ │ │ │ │ │ ├── fold │ │ │ │ │ │ │ │ │ ├── foldgutter.css │ │ │ │ │ │ │ │ │ ├── markdown-fold.js │ │ │ │ │ │ │ │ │ └── indent-fold.js │ │ │ │ │ │ │ │ ├── dialog │ │ │ │ │ │ │ │ │ └── dialog.css │ │ │ │ │ │ │ │ ├── hint │ │ │ │ │ │ │ │ │ ├── show-hint.css │ │ │ │ │ │ │ │ │ ├── anyword-hint.js │ │ │ │ │ │ │ │ │ └── css-hint.js │ │ │ │ │ │ │ │ ├── mode │ │ │ │ │ │ │ │ │ └── multiplex_test.js │ │ │ │ │ │ │ │ ├── lint │ │ │ │ │ │ │ │ │ ├── yaml-lint.js │ │ │ │ │ │ │ │ │ ├── json-lint.js │ │ │ │ │ │ │ │ │ ├── css-lint.js │ │ │ │ │ │ │ │ │ └── coffeescript-lint.js │ │ │ │ │ │ │ │ ├── edit │ │ │ │ │ │ │ │ │ ├── trailingspace.js │ │ │ │ │ │ │ │ │ └── continuelist.js │ │ │ │ │ │ │ │ ├── runmode │ │ │ │ │ │ │ │ │ └── colorize.js │ │ │ │ │ │ │ │ ├── tern │ │ │ │ │ │ │ │ │ └── worker.js │ │ │ │ │ │ │ │ └── scroll │ │ │ │ │ │ │ │ │ ├── simplescrollbars.css │ │ │ │ │ │ │ │ │ └── scrollpastend.js │ │ │ │ │ │ │ ├── mode │ │ │ │ │ │ │ │ ├── tiddlywiki │ │ │ │ │ │ │ │ │ └── tiddlywiki.css │ │ │ │ │ │ │ │ ├── ruby │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ │ ├── tiki │ │ │ │ │ │ │ │ │ ├── tiki.css │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── diff │ │ │ │ │ │ │ │ │ └── diff.js │ │ │ │ │ │ │ │ ├── ntriples │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── http │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── spreadsheet │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── z80 │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── ecl │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── solr │ │ │ │ │ │ │ │ │ └── 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 │ │ │ │ │ │ │ │ ├── sass │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── perl │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── idl │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── dart │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ └── dart.js │ │ │ │ │ │ │ │ ├── xml │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ │ ├── jinja2 │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── sparql │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ │ │ ├── less_test.js │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── gas │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── django │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── shell │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ │ ├── tornado │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── pegjs │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── toml │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── forth │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── octave │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── htmlembedded │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── soy │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── smalltalk │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── cypher │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ ├── modelica │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ └── php │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ ├── bower.json │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ └── jquery.flowchart.min.js │ │ │ │ │ ├── css │ │ │ │ │ │ └── editormd.logo.min.css │ │ │ │ │ └── plugins │ │ │ │ │ │ └── test-plugin │ │ │ │ │ │ └── test-plugin.js │ │ │ │ ├── bootstrap │ │ │ │ │ ├── fonts │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ └── js │ │ │ │ │ │ └── npm.js │ │ │ │ ├── jquery.kwicks │ │ │ │ │ ├── jquery.kwicks.min.css │ │ │ │ │ └── jquery.kwicks.css │ │ │ │ └── canvas-nest │ │ │ │ │ └── canvas-nest.min.js │ │ │ └── css │ │ │ │ ├── error.css │ │ │ │ └── dashboard.css │ │ ├── application-prod.yml │ │ └── application-dev.yml │ └── java │ │ └── com │ │ └── ning │ │ └── itning │ │ ├── entity │ │ ├── view_1 │ │ │ ├── FromBlog.java │ │ │ └── Carousel.java │ │ ├── indexFrameWork │ │ │ ├── Index.java │ │ │ ├── Title.java │ │ │ └── NavBar.java │ │ └── view_3 │ │ │ ├── Type.java │ │ │ ├── Archiving.java │ │ │ └── Blogs.java │ │ ├── ItningApplication.java │ │ ├── service │ │ ├── IndexService.java │ │ ├── View_1_Service.java │ │ ├── impl │ │ │ ├── View_1_ServiceImpl.java │ │ │ └── IndexServiceImpl.java │ │ └── View_3_Service.java │ │ ├── dao │ │ ├── view_3 │ │ │ ├── TypeDao.java │ │ │ ├── ArchivingDao.java │ │ │ └── BlogDao.java │ │ ├── view_1 │ │ │ └── CarouselDao.java │ │ └── indexFrameWork │ │ │ ├── TitleDao.java │ │ │ └── NavBarDao.java │ │ ├── config │ │ ├── ServletInitializer.java │ │ ├── GlobalExceptionHandler.java │ │ └── WebSecurityConfig.java │ │ └── controller │ │ ├── View_1_Controller.java │ │ ├── ArticleController.java │ │ └── IndexFrameWork.java └── test │ └── java │ └── com │ └── ning │ └── itning │ └── ItningApplicationTests.java ├── .gitignore ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | active: dev -------------------------------------------------------------------------------- /src/main/resources/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/favicon.ico -------------------------------------------------------------------------------- /src/main/resources/static/img/404.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/img/404.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/img/logo.png -------------------------------------------------------------------------------- /src/main/resources/static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/1.png -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/2.png -------------------------------------------------------------------------------- /src/main/resources/static/views/view_3/img/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_3/img/4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/fonts/editormd-logo.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/editormd-logo.eot -------------------------------------------------------------------------------- /src/main/resources/static/fonts/editormd-logo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/editormd-logo.ttf -------------------------------------------------------------------------------- /src/main/resources/static/fonts/editormd-logo.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/editormd-logo.woff -------------------------------------------------------------------------------- /src/main/resources/static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/static/js/main.js: -------------------------------------------------------------------------------- 1 | /* 2 | var width = $(window).width(); //浏览器当前窗口可视区域宽度 3 | if (width < 768) { 4 | $('.header_logo_img').width(width / 2); 5 | }*/ -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/slide-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/slide-1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/slide-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/slide-2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/slide-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/slide-3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/slide-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/slide-4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/slide-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/slide-5.jpg -------------------------------------------------------------------------------- /src/main/resources/static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/static/views/view_2/view_2.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

正在学....

4 |
5 |
-------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/loading.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/vi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/vi.png -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/blog-featured-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/blog-featured-01.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/blog-featured-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/blog-featured-02.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/blog-featured-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/blog-featured-03.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/img/blog-featured-04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/views/view_1/img/blog-featured-04.jpg -------------------------------------------------------------------------------- /src/main/resources/static/views/view_5/css/view_5.css: -------------------------------------------------------------------------------- 1 | .about_background_color { 2 | background-color: #0f0f0f; 3 | } 4 | 5 | .about_padding { 6 | padding: 40px 0 60px 0; 7 | } -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/loading@2x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/loading@2x.gif -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/loading@3x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/loading@3x.gif -------------------------------------------------------------------------------- /src/main/resources/static/js/app-service.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var myService = angular.module('main.Service', []); 3 | /*服务*/ 4 | myService.service('MainService', [function () { 5 | 6 | }]); 7 | /*/服务*/ -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-16x16.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-24x24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-24x24.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-32x32.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-48x48.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-57x57.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-64x64.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-72x72.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-96x96.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-16x16.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-16x16.ico -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-24x24.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-24x24.ico -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-32x32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-32x32.ico -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-48x48.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-48x48.ico -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-64x64.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-favicon-64x64.ico -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-114x114.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-120x120.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-144x144.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-180x180.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-240x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-240x240.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-320x320.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/editormd/images/logos/editormd-logo-320x320.png -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itning/itningblog_old/HEAD/src/main/resources/static/lib_web/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/view_1/FromBlog.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.view_1; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | public class FromBlog implements Serializable { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_2/js/view_2.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var view_2_Controller = angular.module('view_2.Controller', ['ngRoute']); 3 | view_2_Controller.controller('view_2_Controller', ['$scope', function ($scope) { 4 | 5 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/views/view_4/js/view_4.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var view_4_Controller = angular.module('view_4.Controller', ['ngRoute']); 3 | view_4_Controller.controller('view_4_Controller', ['$scope', function ($scope) { 4 | 5 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/views/view_5/js/view_5.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var view_5_Controller = angular.module('view_5.Controller', ['ngRoute']); 3 | view_5_Controller.controller('view_5_Controller', ['$scope', function ($scope) { 4 | 5 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/display/fullscreen.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-fullscreen { 2 | position: fixed; 3 | top: 0; 4 | left: 0; 5 | right: 0; 6 | bottom: 0; 7 | height: auto; 8 | z-index: 9; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/static/js/app-controller-admin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var controller = angular.module('admin.Controller', ['ngRoute']); 3 | controller.controller('classController', ['$scope', '$location', function ($scope, $location) { 4 | $scope.$location = $location; 5 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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/main/resources/static/lib_web/editormd/lib/codemirror/mode/tiddlywiki/tiddlywiki.css: -------------------------------------------------------------------------------- 1 | span.cm-underlined { 2 | text-decoration: underline; 3 | } 4 | 5 | span.cm-strikethrough { 6 | text-decoration: line-through; 7 | } 8 | 9 | span.cm-brace { 10 | color: #170; 11 | font-weight: bold; 12 | } 13 | 14 | span.cm-table { 15 | color: blue; 16 | font-weight: bold; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/ItningApplication.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ItningApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ItningApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "codemirror", 3 | "version": "5.0.0", 4 | "main": [ 5 | "lib/codemirror.js", 6 | "lib/codemirror.css" 7 | ], 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "components", 12 | "bin", 13 | "demo", 14 | "doc", 15 | "test", 16 | "index.html", 17 | "package.json" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/service/IndexService.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.service; 2 | 3 | import com.ning.itning.entity.indexFrameWork.Index; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * 页面框架服务层接口 9 | * 10 | * @author : ning 11 | * @version : 1.0.0 12 | * @package_name : com.ning.itning.service 13 | * @date : 2017/9/22 14 | **/ 15 | public interface IndexService { 16 | Index getIndexEntity(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_4/view_4.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |

学生作业管理系统

5 |
6 |

豆瓣电影接口调用

7 |
8 |
9 |
-------------------------------------------------------------------------------- /src/main/java/com/ning/itning/service/View_1_Service.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.service; 2 | 3 | import com.ning.itning.entity.view_1.Carousel; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * 视图一服务接口类 9 | * 10 | * @author : ning 11 | * @version : 1.0.0 12 | * @package_name : com.ning.itning.service 13 | * @date : 2017/9/22 14 | **/ 15 | public interface View_1_Service { 16 | List getCarouselData(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/view_3/TypeDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.view_3; 2 | 3 | import com.ning.itning.entity.view_3.Type; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * Type Dao 层 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.dao.view_3 12 | * @date : 2017/9/23 13 | **/ 14 | public interface TypeDao extends JpaRepository { 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/view_1/CarouselDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.view_1; 2 | 3 | import com.ning.itning.entity.view_1.Carousel; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * 轮播图数据Dao层接口 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.dao.view_1 12 | * @date : 2017/9/23 13 | **/ 14 | public interface CarouselDao extends JpaRepository { 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/view_3/ArchivingDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.view_3; 2 | 3 | import com.ning.itning.entity.view_3.Archiving; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * 归档Dao层接口 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.dao.view_3 12 | * @date : 2017/9/23 13 | **/ 14 | public interface ArchivingDao extends JpaRepository { 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/indexFrameWork/TitleDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.indexFrameWork; 2 | 3 | import com.ning.itning.entity.indexFrameWork.Title; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * 标题导航Dao层接口 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.dao.indexFrameWork 12 | * @date : 2017/9/23 13 | **/ 14 | public interface TitleDao extends JpaRepository { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/indexFrameWork/NavBarDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.indexFrameWork; 2 | 3 | import com.ning.itning.entity.indexFrameWork.NavBar; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | /** 7 | * 导航条Dao层接口 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.dao.indexFrameWork 12 | * @date : 2017/9/23 13 | **/ 14 | public interface NavBarDao extends JpaRepository { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/test/java/com/ning/itning/ItningApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | import java.util.UUID; 9 | 10 | @RunWith(SpringRunner.class) 11 | @SpringBootTest 12 | public class ItningApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | 12 | ### IntelliJ IDEA ### 13 | .idea 14 | *.iws 15 | *.iml 16 | *.ipr 17 | 18 | ### NetBeans ### 19 | nbproject/private/ 20 | build/ 21 | nbbuild/ 22 | dist/ 23 | nbdist/ 24 | .nb-gradle/ 25 | 26 | 27 | .mvn/ 28 | mvnw 29 | mvnw.cmd 30 | src/main/resources/static/lib_web/angular/angular.js 31 | META-INF/ 32 | itning.properties 33 | itning.xml 34 | module_itning.xml 35 | out/ 36 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/config/ServletInitializer.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.config; 2 | 3 | import com.ning.itning.ItningApplication; 4 | import org.springframework.boot.builder.SpringApplicationBuilder; 5 | import org.springframework.boot.web.support.SpringBootServletInitializer; 6 | 7 | public class ServletInitializer extends SpringBootServletInitializer { 8 | 9 | @Override 10 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { 11 | return application.sources(ItningApplication.class); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/bootstrap/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/dao/view_3/BlogDao.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.dao.view_3; 2 | 3 | import com.ning.itning.entity.view_3.Blog; 4 | import com.ning.itning.entity.view_3.Type; 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Blog数据Dao层 11 | * 12 | * @author : ning 13 | * @version : 1.0.0 14 | * @package_name : com.ning.itning.dao.view_3 15 | * @date : 2017/9/23 16 | **/ 17 | public interface BlogDao extends JpaRepository { 18 | List findByTypeOrderByDateDesc(Type type); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/resources/static/js/app-admin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var app = angular.module('itning_admin', ['admin.service', 'admin.Controller', 'blogeditor.Controller', 'admin.view_3.Controller', 'ngRoute']); 3 | /*路由*/ 4 | app.config(['$routeProvider', function ($routeProvider) { 5 | $routeProvider.when('/blog', { 6 | controller: 'blog_Controller', 7 | templateUrl: 'views/admin/blogeditor/blogeditor.html' 8 | }).when('/view_3', { 9 | controller: 'view_3_Controller', 10 | templateUrl: 'views/admin/view_3/view_3.html' 11 | }).otherwise({redirectTo: '/view_3'}); 12 | }]); 13 | /*/路由*/ -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | 9 | .CodeMirror-foldgutter { 10 | width: .7em; 11 | } 12 | 13 | .CodeMirror-foldgutter-open, 14 | .CodeMirror-foldgutter-folded { 15 | cursor: pointer; 16 | } 17 | 18 | .CodeMirror-foldgutter-open:after { 19 | content: "\25BE"; 20 | } 21 | 22 | .CodeMirror-foldgutter-folded:after { 23 | content: "\25B8"; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | 7 | function MT(name) { 8 | test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); 9 | } 10 | 11 | MT("divide_equal_operator", 12 | "[variable bar] [operator /=] [variable foo]"); 13 | 14 | MT("divide_equal_operator_no_spacing", 15 | "[variable foo][operator /=][number 42]"); 16 | 17 | })(); 18 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | 14 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/ 15 | padding-left: 10px; 16 | } 17 | 18 | .cm-tw-box { 19 | border-top-width: 0px ! important; 20 | border-style: solid; 21 | border-width: 1px; 22 | border-color: inherit; 23 | } 24 | 25 | .cm-tw-underline { 26 | text-decoration: underline; 27 | } -------------------------------------------------------------------------------- /src/main/resources/application-prod.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 80 3 | debug: false 4 | spring: 5 | jpa: 6 | hibernate: 7 | ddl-auto: update 8 | show-sql: false 9 | datasource: 10 | driver-class-name: com.mysql.jdbc.Driver 11 | url: jdbc:mysql://localhost:3306/itning?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=0 12 | username: root 13 | password: kingston 14 | thymeleaf: 15 | cache: true 16 | mode: HTML 17 | mvc: 18 | favicon: 19 | enabled: false 20 | security: 21 | user: 22 | name: 用户名 23 | password: 密码 24 | logging: 25 | level: error -------------------------------------------------------------------------------- /src/main/resources/static/js/app-service-admin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var service = angular.module('admin.service', []); 3 | /*服务*/ 4 | service.service('MainService', [function () { 5 | var blog = []; 6 | var delID = -1; 7 | var delWhat = ""; 8 | this.getblogData = function () { 9 | return blog; 10 | }; 11 | this.setblogData = function (blog_) { 12 | blog = blog_; 13 | }; 14 | this.setWhatID = function (what, id) { 15 | delID = id; 16 | delWhat = what; 17 | }; 18 | this.getDelWhat = function () { 19 | return delWhat; 20 | }; 21 | this.getDelID = function () { 22 | return delID; 23 | }; 24 | 25 | }]); 26 | /*/服务*/ -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/jquery.kwicks/jquery.kwicks.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Kwicks: Sexy Sliding Panels for jQuery - v2.2.1 3 | * http://devsmash.com/projects/kwicks 4 | * 5 | * Copyright 2013 Jeremy Martin (jmar777) 6 | * Contributors: Duke Speer (Duke3D), Guillermo Guerrero (gguerrero) 7 | * Released under the MIT license 8 | * http://www.opensource.org/licenses/mit-license.php 9 | */.kwicks{display:block;list-style-type:none;list-style:none;position:relative;margin:0;padding:0}.kwicks>*{display:block;overflow:hidden;padding:0;margin:0}.kwicks.kwicks-processed>*{margin:0;position:absolute}.kwicks-horizontal>*{float:left}.kwicks-horizontal>:first-child{margin-left:0}.kwicks-vertical>:first-child{margin-top:0} -------------------------------------------------------------------------------- /src/main/resources/application-dev.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | debug: false 4 | spring: 5 | jpa: 6 | hibernate: 7 | ddl-auto: update 8 | show-sql: true 9 | datasource: 10 | driver-class-name: com.mysql.jdbc.Driver 11 | url: jdbc:mysql://localhost:3306/itning?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=0 12 | username: root 13 | password: kingston 14 | thymeleaf: 15 | cache: false 16 | mode: HTML 17 | mvc: 18 | favicon: 19 | enabled: false 20 | output: 21 | ansi: 22 | enabled: detect # 控制台输出 多彩 23 | security: 24 | user: 25 | name: 1 26 | password: 1 27 | logging: 28 | level: debug -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/dialog/dialog.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-dialog { 2 | position: absolute; 3 | left: 0; 4 | right: 0; 5 | background: white; 6 | z-index: 15; 7 | padding: .1em .8em; 8 | overflow: hidden; 9 | color: #333; 10 | } 11 | 12 | .CodeMirror-dialog-top { 13 | border-bottom: 1px solid #eee; 14 | top: 0; 15 | } 16 | 17 | .CodeMirror-dialog-bottom { 18 | border-top: 1px solid #eee; 19 | bottom: 0; 20 | } 21 | 22 | .CodeMirror-dialog input { 23 | border: none; 24 | outline: none; 25 | background: transparent; 26 | width: 20em; 27 | color: inherit; 28 | font-family: monospace; 29 | } 30 | 31 | .CodeMirror-dialog button { 32 | font-size: 70%; 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/config/GlobalExceptionHandler.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.config; 2 | 3 | import org.springframework.web.bind.annotation.ControllerAdvice; 4 | import org.springframework.web.bind.annotation.ExceptionHandler; 5 | import org.springframework.web.servlet.ModelAndView; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | 9 | @ControllerAdvice //定义统一的异常处理类,而不是在每个Controller中逐个定义。 10 | public class GlobalExceptionHandler { 11 | @ExceptionHandler(value = Exception.class) 12 | public ModelAndView defaultErrorHandler(HttpServletRequest req, Exception e) throws Exception { 13 | ModelAndView mav = new ModelAndView(); 14 | mav.addObject("exception", e); 15 | mav.addObject("url", req.getRequestURL()); 16 | mav.setViewName("error"); 17 | return mav; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/config/WebSecurityConfig.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.security.config.annotation.web.builders.HttpSecurity; 5 | import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; 6 | 7 | @Configuration 8 | public class WebSecurityConfig extends WebSecurityConfigurerAdapter { 9 | 10 | @Override 11 | protected void configure(HttpSecurity http) throws Exception { 12 | http.authorizeRequests(). 13 | antMatchers("/admin/**", "/adminApi/**").authenticated(). 14 | antMatchers("/").permitAll(). 15 | and().formLogin().permitAll(). 16 | and().logout().logoutSuccessUrl("/").permitAll(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/static/js/app-controller.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var myController = angular.module('main.Controller', ['ngRoute']); 3 | /*控制器*/ 4 | myController.controller('indexFrameWork_Controller', ['$scope', '$http', '$location', '$log', function ($scope, $http, $location, $log) { 5 | $scope.$location = $location; 6 | $scope.navbar = []; 7 | $scope.viewTitle = []; 8 | $http.get('/getIndexFrameWorkData').then(function (response) { 9 | if (response.status === 200) { 10 | $scope.navbar = response.data.navbarList; 11 | $scope.viewTitle = response.data.viewTitle; 12 | } else { 13 | $log.error("indexFrameWork_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText); 14 | } 15 | }, function (err) { 16 | $log.error(err); 17 | }); 18 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/indexFrameWork/Index.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.indexFrameWork; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | /** 7 | * JAVA BEAN 用于封装主页框架数据 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.entity 12 | * @date : 2017/9/22 13 | **/ 14 | public class Index implements Serializable { 15 | private List navbarList; 16 | private List viewTitle; 17 | 18 | public List getNavbarList() { 19 | return navbarList; 20 | } 21 | 22 | public void setNavbarList(List navbarList) { 23 | this.navbarList = navbarList; 24 | } 25 | 26 | public List getViewTitle() { 27 | return viewTitle; 28 | } 29 | 30 | public void setViewTitle(List viewTitle) { 31 | this.viewTitle = viewTitle; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/view_3/Type.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.view_3; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * 博客类别模块实体类 11 | * 12 | * @author : ning 13 | * @version : 1.0.0 14 | * @package_name : com.ning.itning.entity.view_3 15 | * @date : 2017/9/22 16 | **/ 17 | @Entity 18 | @Table(name = "type") 19 | public class Type implements Serializable { 20 | @Id 21 | @Column(name = "id") 22 | private String id; 23 | @Column(name = "name") 24 | private String name; 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | 30 | public void setId(String id) { 31 | this.id = id; 32 | } 33 | 34 | public String getName() { 35 | return name; 36 | } 37 | 38 | public void setName(String name) { 39 | this.name = name; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/resources/static/js/app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var app = angular.module('itning', ['main.Service', 'main.Controller', 'view_1.Controller', 'view_2.Controller', 'view_3.Controller', 'view_4.Controller', 'view_5.Controller', 'ngRoute']); 3 | /*路由*/ 4 | app.config(['$routeProvider', function ($routeProvider) { 5 | $routeProvider.when('/view_1', { 6 | controller: 'view_1_Controller', 7 | templateUrl: 'views/view_1/view_1.html' 8 | }).when('/view_2', { 9 | controller: 'view_2_Controller', 10 | templateUrl: 'views/view_2/view_2.html' 11 | }).when('/view_3/:type/:page?', { 12 | controller: 'view_3_Controller', 13 | templateUrl: 'views/view_3/view_3.html' 14 | }).when('/view_4', { 15 | controller: 'view_4_Controller', 16 | templateUrl: 'views/view_4/view_4.html' 17 | }).when('/view_5', { 18 | controller: 'view_5_Controller', 19 | templateUrl: 'views/view_5/view_5.html' 20 | }).otherwise({redirectTo: '/view_1'}); 21 | }]); 22 | /*/路由*/ -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/indexFrameWork/Title.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.indexFrameWork; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * JAVA BEAN 页面导航栏实体 用于封装页面框架数据 11 | * 12 | * @author : ning 13 | * @version : 1.0.0 14 | * @package_name : com.ning.itning.entity.indexFrameWork 15 | * @date : 2017/9/22 16 | **/ 17 | @Entity 18 | @Table(name = "index_title") 19 | public class Title implements Serializable { 20 | @Id 21 | @Column(name = "id") 22 | private String id; 23 | @Column(name = "text") 24 | private String text; 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | 30 | public void setId(String id) { 31 | this.id = id; 32 | } 33 | 34 | public String getText() { 35 | return text; 36 | } 37 | 38 | public void setText(String text) { 39 | this.text = text; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/neat.css: -------------------------------------------------------------------------------- 1 | .cm-s-neat span.cm-comment { 2 | color: #a86; 3 | } 4 | 5 | .cm-s-neat span.cm-keyword { 6 | line-height: 1em; 7 | font-weight: bold; 8 | color: blue; 9 | } 10 | 11 | .cm-s-neat span.cm-string { 12 | color: #a22; 13 | } 14 | 15 | .cm-s-neat span.cm-builtin { 16 | line-height: 1em; 17 | font-weight: bold; 18 | color: #077; 19 | } 20 | 21 | .cm-s-neat span.cm-special { 22 | line-height: 1em; 23 | font-weight: bold; 24 | color: #0aa; 25 | } 26 | 27 | .cm-s-neat span.cm-variable { 28 | color: black; 29 | } 30 | 31 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { 32 | color: #3a3; 33 | } 34 | 35 | .cm-s-neat span.cm-meta { 36 | color: #555; 37 | } 38 | 39 | .cm-s-neat span.cm-link { 40 | color: #3a3; 41 | } 42 | 43 | .cm-s-neat .CodeMirror-activeline-background { 44 | background: #e8f2ff !important; 45 | } 46 | 47 | .cm-s-neat .CodeMirror-matchingbracket { 48 | outline: 1px solid grey; 49 | color: black !important; 50 | } 51 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/js/view_1.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var view_1_Controller = angular.module('view_1.Controller', ['ngRoute']); 3 | view_1_Controller.controller('view_1_Controller', ['$scope', '$http', function ($scope, $http) { 4 | $scope.carousel = []; 5 | $scope.blog = []; 6 | $http.get('/getCarouselData').then(function (response) { 7 | if (response.status === 200) { 8 | $scope.carousel = response.data; 9 | } else { 10 | $log.error("view_1_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText); 11 | } 12 | }, function (err) { 13 | $log.error(err); 14 | }); 15 | $http.get('/getBlogData?size=8').then(function (response) { 16 | if (response.status === 200) { 17 | $scope.blog = response.data.content; 18 | } else { 19 | $log.error("view_1_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText); 20 | } 21 | }, function (err) { 22 | $log.error(err); 23 | }); 24 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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": [ 7 | { 8 | "type": "MIT", 9 | "url": "http://codemirror.net/LICENSE" 10 | } 11 | ], 12 | "directories": { 13 | "lib": "./lib" 14 | }, 15 | "scripts": { 16 | "test": "node ./test/run.js" 17 | }, 18 | "devDependencies": { 19 | "node-static": "0.6.0", 20 | "phantomjs": "1.9.2-5", 21 | "blint": ">=0.1.1" 22 | }, 23 | "bugs": "http://github.com/codemirror/CodeMirror/issues", 24 | "keywords": [ 25 | "JavaScript", 26 | "CodeMirror", 27 | "Editor" 28 | ], 29 | "homepage": "http://codemirror.net", 30 | "maintainers": [ 31 | { 32 | "name": "Marijn Haverbeke", 33 | "email": "marijnh@gmail.com", 34 | "web": "http://marijnhaverbeke.nl" 35 | } 36 | ], 37 | "repository": { 38 | "type": "git", 39 | "url": "https://github.com/codemirror/CodeMirror.git" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 a1837634447 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/elegant.css: -------------------------------------------------------------------------------- 1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { 2 | color: #762; 3 | } 4 | 5 | .cm-s-elegant span.cm-comment { 6 | color: #262; 7 | font-style: italic; 8 | line-height: 1em; 9 | } 10 | 11 | .cm-s-elegant span.cm-meta { 12 | color: #555; 13 | font-style: italic; 14 | line-height: 1em; 15 | } 16 | 17 | .cm-s-elegant span.cm-variable { 18 | color: black; 19 | } 20 | 21 | .cm-s-elegant span.cm-variable-2 { 22 | color: #b11; 23 | } 24 | 25 | .cm-s-elegant span.cm-qualifier { 26 | color: #555; 27 | } 28 | 29 | .cm-s-elegant span.cm-keyword { 30 | color: #730; 31 | } 32 | 33 | .cm-s-elegant span.cm-builtin { 34 | color: #30a; 35 | } 36 | 37 | .cm-s-elegant span.cm-link { 38 | color: #762; 39 | } 40 | 41 | .cm-s-elegant span.cm-error { 42 | background-color: #fdd; 43 | } 44 | 45 | .cm-s-elegant .CodeMirror-activeline-background { 46 | background: #e8f2ff !important; 47 | } 48 | 49 | .cm-s-elegant .CodeMirror-matchingbracket { 50 | outline: 1px solid grey; 51 | color: black !important; 52 | } 53 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_1/css/view_1.css: -------------------------------------------------------------------------------- 1 | .bg_black { 2 | background-color: #0f0f0f; 3 | } 4 | 5 | .kwicks { 6 | height: 393px; 7 | } 8 | 9 | .kwicks > li { 10 | opacity: 0.6; 11 | } 12 | 13 | .kwicks > li.kwicks-expanded { 14 | opacity: 1; 15 | } 16 | 17 | .box_size { 18 | margin: 40px 0 55px; 19 | } 20 | 21 | @media (max-width: 767px) { 22 | .blog_style { 23 | padding: 0 10px; 24 | } 25 | 26 | .h1_style { 27 | margin: 20px 0 50px 0; 28 | } 29 | } 30 | 31 | .box_img { 32 | width: 100%; 33 | } 34 | 35 | @media (min-width: 767px) { 36 | .li_style { 37 | float: left; 38 | width: 18.5em; 39 | margin-left: 20px; 40 | margin-bottom: 40px; 41 | } 42 | 43 | .blog_style { 44 | padding: 14px 0; 45 | } 46 | 47 | .h1_style { 48 | margin: 20px 0 50px 20px; 49 | } 50 | } 51 | 52 | .li_style > div { 53 | margin-bottom: 1em; 54 | } 55 | 56 | .li_span { 57 | display: block; 58 | margin-top: 0.5em; 59 | color: #0f0f0f; 60 | } 61 | 62 | .text_hide { 63 | width: 245px; 64 | overflow: hidden; 65 | text-overflow: ellipsis; 66 | } -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/service/impl/View_1_ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.service.impl; 2 | 3 | import com.ning.itning.dao.view_1.CarouselDao; 4 | import com.ning.itning.entity.view_1.Carousel; 5 | import com.ning.itning.service.View_1_Service; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * 视图一服务层实现类 13 | * 14 | * @author : ning 15 | * @version : 1.0.0 16 | * @package_name : com.ning.itning.service.impl 17 | * @date : 2017/9/22 18 | **/ 19 | @Service 20 | public class View_1_ServiceImpl implements View_1_Service { 21 | 22 | private final CarouselDao carouselDao; 23 | 24 | @Autowired 25 | public View_1_ServiceImpl(CarouselDao carouselDao) { 26 | this.carouselDao = carouselDao; 27 | } 28 | 29 | 30 | /** 31 | * 获取轮播图数据方法 32 | * 33 | * @return --java.util.List 34 | * @author : ning 35 | * @date : 2017/9/22 36 | **/ 37 | @Override 38 | public List getCarouselData() { 39 | return carouselDao.findAll(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/jquery.kwicks/jquery.kwicks.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Kwicks: Sexy Sliding Panels for jQuery - v2.2.1 3 | * http://devsmash.com/projects/kwicks 4 | * 5 | * Copyright 2013 Jeremy Martin (jmar777) 6 | * Contributors: Duke Speer (Duke3D), Guillermo Guerrero (gguerrero) 7 | * Released under the MIT license 8 | * http://www.opensource.org/licenses/mit-license.php 9 | */ 10 | /* 11 | * This file contains styles that are common to all kwicks instances. Note that each kwicks instance requires 12 | * additional styling - please see the examples for more info. 13 | */ 14 | .kwicks { 15 | display: block; 16 | list-style-type: none; 17 | list-style: none; 18 | position: relative; 19 | margin: 0; 20 | padding: 0; 21 | } 22 | 23 | .kwicks > * { 24 | display: block; 25 | overflow: hidden; 26 | padding: 0; 27 | margin: 0; 28 | } 29 | 30 | .kwicks.kwicks-processed > * { 31 | margin: 0; 32 | position: absolute; 33 | } 34 | 35 | .kwicks-horizontal > * { 36 | float: left; 37 | } 38 | 39 | .kwicks-horizontal > :first-child { 40 | margin-left: 0; 41 | } 42 | 43 | .kwicks-vertical > :first-child { 44 | margin-top: 0; 45 | } 46 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 { 21 | jsyaml.load(text); 22 | } 23 | catch (e) { 24 | var loc = e.mark; 25 | found.push({ 26 | from: CodeMirror.Pos(loc.line, loc.column), 27 | to: CodeMirror.Pos(loc.line, loc.column), 28 | message: e.message 29 | }); 30 | } 31 | return found; 32 | }); 33 | 34 | }); 35 | -------------------------------------------------------------------------------- /src/main/resources/static/fonts/editormd-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/controller/View_1_Controller.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.controller; 2 | 3 | import com.ning.itning.entity.view_1.Carousel; 4 | import com.ning.itning.service.View_1_Service; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.RestController; 8 | 9 | import java.util.List; 10 | 11 | 12 | /** 13 | * 视图一控制层 14 | * 15 | * @author : ning 16 | * @version : 1.0.0 17 | * @package_name : com.ning.itning.controller 18 | * @date : 2017/9/21 19 | **/ 20 | @RestController 21 | public class View_1_Controller { 22 | 23 | private final View_1_Service view_1_service; 24 | 25 | @Autowired 26 | public View_1_Controller(View_1_Service view_1_service) { 27 | this.view_1_service = view_1_service; 28 | } 29 | 30 | /** 31 | * 获取轮播图数据方法 32 | * 33 | * @return 轮播图数据JSON--java.util.List 34 | * @author : ning 35 | * @date : 2017/9/22 36 | **/ 37 | @RequestMapping("/getCarouselData") 38 | public List getCarouselData() { 39 | return view_1_service.getCarouselData(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/view_3/Archiving.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.view_3; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | import java.io.Serializable; 8 | import java.util.Date; 9 | 10 | /** 11 | * 博客归档模块实体类 12 | * 13 | * @author : ning 14 | * @version : 1.0.0 15 | * @package_name : com.ning.itning.entity.view_3 16 | * @date : 2017/9/22 17 | **/ 18 | @Entity 19 | @Table(name = "archiving") 20 | public class Archiving implements Serializable { 21 | @Id 22 | @Column(name = "id") 23 | private String id; 24 | @Column(name = "data") 25 | private Date date; 26 | @Column(name = "href") 27 | private String href; 28 | 29 | public String getId() { 30 | return id; 31 | } 32 | 33 | public void setId(String id) { 34 | this.id = id; 35 | } 36 | 37 | public Date getDate() { 38 | return date; 39 | } 40 | 41 | public void setDate(Date date) { 42 | this.date = date; 43 | } 44 | 45 | public String getHref() { 46 | return href; 47 | } 48 | 49 | public void setHref(String href) { 50 | this.href = href; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/indexFrameWork/NavBar.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.indexFrameWork; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * JAVA BEAN 导航条实体 用于封装页面框架数据 11 | * 12 | * @author : ning 13 | * @version : 1.0.0 14 | * @package_name : com.ning.itning.entity 15 | * @date : 2017/9/22 16 | **/ 17 | @Entity 18 | @Table(name = "index_narbar") 19 | public class NavBar implements Serializable { 20 | @Id 21 | @Column(name = "id") 22 | private String id; 23 | @Column(name = "title") 24 | private String title; 25 | @Column(name = "href") 26 | private String href; 27 | 28 | public String getId() { 29 | return id; 30 | } 31 | 32 | public void setId(String id) { 33 | this.id = id; 34 | } 35 | 36 | public String getTitle() { 37 | return title; 38 | } 39 | 40 | public void setTitle(String title) { 41 | this.title = title; 42 | } 43 | 44 | public String getHref() { 45 | return href; 46 | } 47 | 48 | public void setHref(String href) { 49 | this.href = href; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/view_3/Blogs.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.view_3; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | /** 7 | * 用于封装选择类别后的Blog实体类和分页信息 8 | * 9 | * @author : ning 10 | * @version : 1.0.0 11 | * @package_name : com.ning.itning.entity.view_3 12 | * @date : 2017/9/23 13 | **/ 14 | public class Blogs implements Serializable { 15 | private Boolean first; 16 | private Boolean last; 17 | private Integer totalPages; 18 | private List content; 19 | 20 | public Boolean getFirst() { 21 | return first; 22 | } 23 | 24 | public void setFirst(Boolean first) { 25 | this.first = first; 26 | } 27 | 28 | public Boolean getLast() { 29 | return last; 30 | } 31 | 32 | public void setLast(Boolean last) { 33 | this.last = last; 34 | } 35 | 36 | public Integer getTotalPages() { 37 | return totalPages; 38 | } 39 | 40 | public void setTotalPages(Integer totalPages) { 41 | this.totalPages = totalPages; 42 | } 43 | 44 | public List getContent() { 45 | return content; 46 | } 47 | 48 | public void setContent(List content) { 49 | this.content = content; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/service/View_3_Service.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.service; 2 | 3 | import com.ning.itning.entity.view_3.Archiving; 4 | import com.ning.itning.entity.view_3.Blog; 5 | import com.ning.itning.entity.view_3.Blogs; 6 | import com.ning.itning.entity.view_3.Type; 7 | import org.springframework.data.domain.Page; 8 | import org.springframework.data.domain.Pageable; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * 视图三服务接口类 14 | * 15 | * @author : ning 16 | * @version : 1.0.0 17 | * @package_name : com.ning.itning.service 18 | * @date : 2017/9/22 19 | **/ 20 | public interface View_3_Service { 21 | List getTypeEntity(); 22 | 23 | void saveType(String name); 24 | 25 | void deleteTypeByID(String id); 26 | 27 | void updataTypeByID(String id, String name); 28 | 29 | List getArchivingEntity(); 30 | 31 | Page getBlogEntity(Integer page, Integer size); 32 | 33 | Blogs getBlogEntityByType(String typeId, Integer page, Integer size); 34 | 35 | Blog getBlogByID(String id); 36 | 37 | void saveBlog(String title, String author, String typeID, String md); 38 | 39 | void deleteBlogByID(String id); 40 | 41 | void updataBlogByID(String id, String title, String author, String typeID, String md); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_5/view_5.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |

欢迎访问我的博客 目前网站正在建设中...


6 |

运行环境:阿里云 学生 > Ubuntu > Tomcat8


7 |

网站架构:AngularJS+Spring Boot


8 |

前端框架:


9 |

1.jquery


10 |

2.Bootstrap


11 |

3.AngularJS


12 |

4.Editor.md


13 |

5.canvas-nest


14 |

后端框架


15 |

1.Spring Boot


16 |

2.Spring JPA


17 |

感谢所有开源项目!


18 |
19 |
20 |
-------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/json-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on jsonlint.js from https://github.com/zaach/jsonlint 5 | 6 | // declare global: jsonlint 7 | 8 | (function (mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function (CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "json", function (text) { 19 | var found = []; 20 | jsonlint.parseError = function (str, hash) { 21 | var loc = hash.loc; 22 | found.push({ 23 | from: CodeMirror.Pos(loc.first_line - 1, loc.first_column), 24 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column), 25 | message: str 26 | }); 27 | }; 28 | try { 29 | jsonlint.parse(text); 30 | } 31 | catch (e) { 32 | } 33 | return found; 34 | }); 35 | 36 | }); 37 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/neo.css: -------------------------------------------------------------------------------- 1 | /* neo theme for codemirror */ 2 | 3 | /* Color scheme */ 4 | 5 | .cm-s-neo.CodeMirror { 6 | background-color: #ffffff; 7 | color: #2e383c; 8 | line-height: 1.4375; 9 | } 10 | 11 | .cm-s-neo .cm-comment { 12 | color: #75787b 13 | } 14 | 15 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property { 16 | color: #1d75b3 17 | } 18 | 19 | .cm-s-neo .cm-atom, .cm-s-neo .cm-number { 20 | color: #75438a 21 | } 22 | 23 | .cm-s-neo .cm-node, .cm-s-neo .cm-tag { 24 | color: #9c3328 25 | } 26 | 27 | .cm-s-neo .cm-string { 28 | color: #b35e14 29 | } 30 | 31 | .cm-s-neo .cm-variable, .cm-s-neo .cm-qualifier { 32 | color: #047d65 33 | } 34 | 35 | /* Editor styling */ 36 | 37 | .cm-s-neo pre { 38 | padding: 0; 39 | } 40 | 41 | .cm-s-neo .CodeMirror-gutters { 42 | border: none; 43 | border-right: 10px solid transparent; 44 | background-color: transparent; 45 | } 46 | 47 | .cm-s-neo .CodeMirror-linenumber { 48 | padding: 0; 49 | color: #e0e2e5; 50 | } 51 | 52 | .cm-s-neo .CodeMirror-guttermarker { 53 | color: #1d75b3; 54 | } 55 | 56 | .cm-s-neo .CodeMirror-guttermarker-subtle { 57 | color: #e0e2e5; 58 | } 59 | 60 | .cm-s-neo div.CodeMirror-cursor { 61 | width: auto; 62 | border: 0; 63 | background: rgba(155, 157, 162, 0.37); 64 | z-index: 1; 65 | } 66 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/edit/trailingspace.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function (mod) { 5 | if (typeof exports == "object" && typeof module == "object") // CommonJS 6 | mod(require("../../lib/codemirror")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | CodeMirror.defineOption("showTrailingSpace", false, function (cm, val, prev) { 13 | if (prev == CodeMirror.Init) prev = false; 14 | if (prev && !val) 15 | cm.removeOverlay("trailingspace"); 16 | else if (!prev && val) 17 | cm.addOverlay({ 18 | token: function (stream) { 19 | for (var l = stream.string.length, i = l; i && /\s/.test(stream.string.charAt(i - 1)); --i) { 20 | } 21 | if (i > stream.pos) { 22 | stream.pos = i; 23 | return null; 24 | } 25 | stream.pos = l; 26 | return "trailingspace"; 27 | }, 28 | name: "trailingspace" 29 | }); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/entity/view_1/Carousel.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.entity.view_1; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.Id; 6 | import javax.persistence.Table; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * @author : ning 11 | * @version : 1.0.0 12 | * @package_name : com.ning.itning.entity.view_1 13 | * @date : 2017/9/22 14 | **/ 15 | @Entity 16 | @Table(name = "view1_carousel") 17 | public class Carousel implements Serializable { 18 | @Id 19 | @Column(name = "id") 20 | private String id; 21 | @Column(name = "href") 22 | private String href; 23 | @Column(name = "alt") 24 | private String alt; 25 | @Column(name = "src") 26 | private String src; 27 | 28 | public String getSrc() { 29 | return src; 30 | } 31 | 32 | public void setSrc(String src) { 33 | this.src = src; 34 | } 35 | 36 | public String getId() { 37 | return id; 38 | } 39 | 40 | public void setId(String id) { 41 | this.id = id; 42 | } 43 | 44 | public String getHref() { 45 | return href; 46 | } 47 | 48 | public void setHref(String href) { 49 | this.href = href; 50 | } 51 | 52 | public String getAlt() { 53 | return alt; 54 | } 55 | 56 | public void setAlt(String alt) { 57 | this.alt = alt; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/jquery.flowchart.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery.flowchart.js v1.1.0 | jquery.flowchart.min.js | jQuery plugin for flowchart.js. | MIT License | By: Pandao | https://github.com/pandao/jquery.flowchart.js | 2015-03-09 */ 2 | (function(factory){if(typeof require==="function"&&typeof exports==="object"&&typeof module==="object"){module.exports=factory}else{if(typeof define==="function"){factory(jQuery,flowchart)}else{factory($,flowchart)}}}(function(jQuery,flowchart){(function($){$.fn.flowChart=function(options){options=options||{};var defaults={"x":0,"y":0,"line-width":2,"line-length":50,"text-margin":10,"font-size":14,"font-color":"black","line-color":"black","element-color":"black","fill":"white","yes-text":"yes","no-text":"no","arrow-end":"block","symbols":{"start":{"font-color":"black","element-color":"black","fill":"white"},"end":{"class":"end-element"}},"flowstate":{"past":{"fill":"#CCCCCC","font-size":12},"current":{"fill":"black","font-color":"white","font-weight":"bold"},"future":{"fill":"white"},"request":{"fill":"blue"},"invalid":{"fill":"#444444"},"approved":{"fill":"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},"rejected":{"fill":"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}};return this.each(function(){var $this=$(this);var diagram=flowchart.parse($this.text());var settings=$.extend(true,defaults,options);$this.html("");diagram.drawSVG(this,settings)})}})(jQuery)})); -------------------------------------------------------------------------------- /src/main/resources/static/css/error.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | .error_background { 3 | background-color: #0f0f0f; 4 | } 5 | 6 | .error_padding { 7 | padding: 40px 0 60px 0; 8 | } 9 | 10 | .error_img { 11 | width: 100%; 12 | } 13 | 14 | .error_div { 15 | float: left; 16 | background-color: #ffffff; 17 | width: 40%; 18 | } 19 | 20 | .error_h1 { 21 | padding: 83px 0; 22 | font-size: 80px; 23 | line-height: 84px; 24 | } 25 | 26 | .error_h2 { 27 | padding-bottom: 66px; 28 | } 29 | 30 | @media (max-width: 1200px) { 31 | .error_h1 { 32 | padding: 52.5px 0; 33 | font-size: 80px; 34 | line-height: 84px; 35 | } 36 | } 37 | 38 | @media (max-width: 992px) { 39 | .error_h1 { 40 | padding: 18.5px 0; 41 | font-size: 80px; 42 | line-height: 84px; 43 | } 44 | } 45 | 46 | @media (max-width: 768px) { 47 | .error_h1 { 48 | padding: 18.5px 0; 49 | font-size: 80px; 50 | line-height: 84px; 51 | } 52 | 53 | .error_div_img { 54 | width: 100%; 55 | float: left; 56 | margin-bottom: 10px; 57 | } 58 | 59 | .error_div { 60 | float: left; 61 | background-color: #ffffff; 62 | width: 100%; 63 | margin-bottom: 4em; 64 | } 65 | 66 | } 67 | 68 | @media (min-width: 768px) { 69 | .error_div_img { 70 | width: 60%; 71 | float: left; 72 | margin-bottom: 60px; 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/css-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on csslint.js from https://github.com/stubbornella/csslint 5 | 6 | // declare global: CSSLint 7 | 8 | (function (mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function (CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "css", function (text) { 19 | var found = []; 20 | if (!window.CSSLint) return found; 21 | var results = CSSLint.verify(text), messages = results.messages, message = null; 22 | for (var i = 0; i < messages.length; i++) { 23 | message = messages[i]; 24 | var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, 25 | endCol = message.col; 26 | found.push({ 27 | from: CodeMirror.Pos(startLine, startCol), 28 | to: CodeMirror.Pos(endLine, endCol), 29 | message: message.message, 30 | severity: message.type 31 | }); 32 | } 33 | return found; 34 | }); 35 | 36 | }); 37 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/diff/diff.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function (mod) { 5 | if (typeof exports == "object" && typeof module == "object") // CommonJS 6 | mod(require("../../lib/codemirror")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | "use strict"; 13 | 14 | CodeMirror.defineMode("diff", function () { 15 | 16 | var TOKEN_NAMES = { 17 | '+': 'positive', 18 | '-': 'negative', 19 | '@': 'meta' 20 | }; 21 | 22 | return { 23 | token: function (stream) { 24 | var tw_pos = stream.string.search(/[\t ]+?$/); 25 | 26 | if (!stream.sol() || tw_pos === 0) { 27 | stream.skipToEnd(); 28 | return ("error " + ( 29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, ''); 30 | } 31 | 32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd(); 33 | 34 | if (tw_pos === -1) { 35 | stream.skipToEnd(); 36 | } else { 37 | stream.pos = tw_pos; 38 | } 39 | 40 | return token_name; 41 | } 42 | }; 43 | }); 44 | 45 | CodeMirror.defineMIME("text/x-diff", "diff"); 46 | 47 | }); 48 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/ntriples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: NTriples mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 28 | 29 |
30 |

NTriples mode

31 |
32 | 39 |
40 | 41 | 44 |

MIME types defined: text/n-triples.

45 |
46 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/runmode/colorize.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function (mod) { 5 | if (typeof exports == "object" && typeof module == "object") // CommonJS 6 | mod(require("../../lib/codemirror"), require("./runmode")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror", "./runmode"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | "use strict"; 13 | 14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/; 15 | 16 | function textContent(node, out) { 17 | if (node.nodeType == 3) return out.push(node.nodeValue); 18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) { 19 | textContent(ch, out); 20 | if (isBlock.test(node.nodeType)) out.push("\n"); 21 | } 22 | } 23 | 24 | CodeMirror.colorize = function (collection, defaultMode) { 25 | if (!collection) collection = document.body.getElementsByTagName("pre"); 26 | 27 | for (var i = 0; i < collection.length; ++i) { 28 | var node = collection[i]; 29 | var mode = node.getAttribute("data-lang") || defaultMode; 30 | if (!mode) continue; 31 | 32 | var text = []; 33 | textContent(node, text); 34 | node.innerHTML = ""; 35 | CodeMirror.runMode(text.join(""), mode, node); 36 | 37 | node.className += " cm-s-default"; 38 | } 39 | }; 40 | }); 41 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/controller/ArticleController.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.controller; 2 | 3 | import com.ning.itning.entity.view_3.Blog; 4 | import com.ning.itning.entity.view_3.Type; 5 | import com.ning.itning.service.View_3_Service; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.ui.Model; 9 | import org.springframework.web.bind.annotation.PathVariable; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.ResponseBody; 12 | 13 | import java.util.ArrayList; 14 | import java.util.Date; 15 | import java.util.List; 16 | import java.util.UUID; 17 | 18 | /** 19 | * Blog 文章控制层 20 | * 21 | * @author : ning 22 | * @version : 1.0.0 23 | * @package_name : com.ning.itning.controller 24 | * @date : 2017/9/24 25 | **/ 26 | @Controller 27 | public class ArticleController { 28 | 29 | private final View_3_Service view_3_service; 30 | 31 | @Autowired 32 | public ArticleController(View_3_Service view_3_service) { 33 | this.view_3_service = view_3_service; 34 | } 35 | 36 | /** 37 | * 根据ID获取文章实体 38 | * 39 | * @param id, 文章ID 40 | * @param model org.springframework.ui.Model 41 | * @return --java.lang.String 42 | * @author : ning 43 | * @date : 2017/9/25 44 | **/ 45 | @RequestMapping("/article/{id}") 46 | public String getArticleByID(@PathVariable("id") String id, Model model) { 47 | Blog blogByID = view_3_service.getBlogByID(id); 48 | model.addAttribute("blog", blogByID); 49 | return "article"; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/tern/worker.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // declare global: tern, server 5 | 6 | var server; 7 | 8 | this.onmessage = function (e) { 9 | var data = e.data; 10 | switch (data.type) { 11 | case "init": 12 | return startServer(data.defs, data.plugins, data.scripts); 13 | case "add": 14 | return server.addFile(data.name, data.text); 15 | case "del": 16 | return server.delFile(data.name); 17 | case "req": 18 | return server.request(data.body, function (err, reqData) { 19 | postMessage({id: data.id, body: reqData, err: err && String(err)}); 20 | }); 21 | case "getFile": 22 | var c = pending[data.id]; 23 | delete pending[data.id]; 24 | return c(data.err, data.text); 25 | default: 26 | throw new Error("Unknown message type: " + data.type); 27 | } 28 | }; 29 | 30 | var nextId = 0, pending = {}; 31 | 32 | function getFile(file, c) { 33 | postMessage({type: "getFile", name: file, id: ++nextId}); 34 | pending[nextId] = c; 35 | } 36 | 37 | function startServer(defs, plugins, scripts) { 38 | if (scripts) importScripts.apply(null, scripts); 39 | 40 | server = new tern.Server({ 41 | getFile: getFile, 42 | async: true, 43 | defs: defs, 44 | plugins: plugins 45 | }); 46 | } 47 | 48 | var console = { 49 | log: function (v) { 50 | postMessage({type: "debug", message: v}); 51 | } 52 | }; 53 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/css/editormd.logo.min.css: -------------------------------------------------------------------------------- 1 | /*! Editor.md v1.5.0 | editormd.logo.min.css | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */ 2 | /*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */@font-face{font-family:editormd-logo;src:url(../../../fonts/editormd-logo.eot?-5y8q6h);src:url(.../fonts/editormd-logo.eot?#iefix-5y8q6h)format("embedded-opentype"),url(../../../fonts/editormd-logo.woff?-5y8q6h)format("woff"),url(../../../fonts/editormd-logo.ttf?-5y8q6h)format("truetype"),url(../../../fonts/editormd-logo.svg?-5y8q6h#icomoon)format("svg");font-weight:400;font-style:normal}.editormd-logo,.editormd-logo-1x,.editormd-logo-2x,.editormd-logo-3x,.editormd-logo-4x,.editormd-logo-5x,.editormd-logo-6x,.editormd-logo-7x,.editormd-logo-8x{font-family:editormd-logo;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;font-size:inherit;line-height:1;display:inline-block;text-rendering:auto;vertical-align:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.editormd-logo-1x:before,.editormd-logo-2x:before,.editormd-logo-3x:before,.editormd-logo-4x:before,.editormd-logo-5x:before,.editormd-logo-6x:before,.editormd-logo-7x:before,.editormd-logo-8x:before,.editormd-logo:before{content:"\e1987"}.editormd-logo-1x{font-size:1em}.editormd-logo-lg{font-size:1.2em}.editormd-logo-2x{font-size:2em}.editormd-logo-3x{font-size:3em}.editormd-logo-4x{font-size:4em}.editormd-logo-5x{font-size:5em}.editormd-logo-6x{font-size:6em}.editormd-logo-7x{font-size:7em}.editormd-logo-8x{font-size:8em}.editormd-logo-color{color:#2196F3} -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/controller/IndexFrameWork.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.controller; 2 | 3 | import com.ning.itning.entity.indexFrameWork.Index; 4 | import com.ning.itning.service.IndexService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.security.access.prepost.PreAuthorize; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | import org.springframework.web.bind.annotation.ResponseBody; 10 | 11 | /** 12 | * 主页框架类 13 | * 14 | * @author : ning 15 | * @version : 1.0.0 16 | * @package_name : com.ning.itning.controller 17 | * @date : 2017/9/21 18 | **/ 19 | @Controller 20 | public class IndexFrameWork { 21 | 22 | private final IndexService indexService; 23 | 24 | @Autowired 25 | public IndexFrameWork(IndexService indexService) { 26 | this.indexService = indexService; 27 | } 28 | 29 | /** 30 | * 进入首页方法 31 | * 32 | * @return 首页HTML名--java.lang.String 33 | * @author : ning 34 | * @date : 2017/9/21 35 | **/ 36 | @RequestMapping("/") 37 | public String index() { 38 | return "index"; 39 | } 40 | 41 | /** 42 | * 框架数据获取方法 43 | * 44 | * @return JSON数据--com.ning.itning.entity.indexFrameWork.Index 45 | * @author : ning 46 | * @date : 2017/9/22 47 | **/ 48 | @RequestMapping("/getIndexFrameWorkData") 49 | @ResponseBody 50 | public Index getIndexFrameWorkData() { 51 | return indexService.getIndexEntity(); 52 | } 53 | 54 | 55 | @RequestMapping("/admin") 56 | public String admin() { 57 | return "index-admin"; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PersonalBlogSystem 2 | Personal Blog System Project 3 | 4 | [![GitHub stars](https://img.shields.io/github/stars/itning/itning.svg?style=social&label=Stars)](https://github.com/itning/itning/stargazers) 5 | [![GitHub forks](https://img.shields.io/github/forks/itning/itning.svg?style=social&label=Fork)](https://github.com/itning/itning/network/members) 6 | [![GitHub watchers](https://img.shields.io/github/watchers/itning/itning.svg?style=social&label=Watch)](https://github.com/itning/itning/watchers) 7 | [![GitHub followers](https://img.shields.io/github/followers/itning.svg?style=social&label=Follow)](https://github.com/itning?tab=followers) 8 | 9 | [![GitHub issues](https://img.shields.io/github/issues/itning/itning.svg)](https://github.com/itning/itning/issues) 10 | [![GitHub license](https://img.shields.io/github/license/itning/itning.svg)](https://github.com/itning/itning/blob/master/LICENSE) 11 | [![GitHub last commit](https://img.shields.io/github/last-commit/itning/itning.svg)](https://github.com/itning/itning/commits) 12 | [![GitHub release](https://img.shields.io/github/release/itning/itning.svg)](https://github.com/itning/itning/releases) 13 | [![GitHub repo size in bytes](https://img.shields.io/github/repo-size/itning/itning.svg)](https://github.com/itning/itning) 14 | [![HitCount](http://hits.dwyl.io/itning/itning.svg)](http://hits.dwyl.io/itning/itning) 15 | [![language](https://img.shields.io/badge/language-JAVA-green.svg)](https://github.com/itning/itning) 16 | 17 | **实现功能:** 18 | 19 | 个人网站 20 | 21 | **项目所用框架/插件:** 22 | 23 | 前端: 24 | 25 | 1.JQuery 26 | 2.Bootstrap 27 | 3.AngularJS 28 | 4.editor.md 29 | 5.canvas-nest.js 30 | 后端: 31 | 32 | 1.Spring Boot 33 | 2.Spring JPA 34 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/http/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: HTTP mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

HTTP mode

30 | 31 | 32 |
42 | 43 | 46 | 47 |

MIME types defined: message/http.

48 |
49 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/lint/coffeescript-lint.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js 5 | 6 | // declare global: coffeelint 7 | 8 | (function (mod) { 9 | if (typeof exports == "object" && typeof module == "object") // CommonJS 10 | mod(require("../../lib/codemirror")); 11 | else if (typeof define == "function" && define.amd) // AMD 12 | define(["../../lib/codemirror"], mod); 13 | else // Plain browser env 14 | mod(CodeMirror); 15 | })(function (CodeMirror) { 16 | "use strict"; 17 | 18 | CodeMirror.registerHelper("lint", "coffeescript", function (text) { 19 | var found = []; 20 | var parseError = function (err) { 21 | var loc = err.lineNumber; 22 | found.push({ 23 | from: CodeMirror.Pos(loc - 1, 0), 24 | to: CodeMirror.Pos(loc, 0), 25 | severity: err.level, 26 | message: err.message 27 | }); 28 | }; 29 | try { 30 | var res = coffeelint.lint(text); 31 | for (var i = 0; i < res.length; i++) { 32 | parseError(res[i]); 33 | } 34 | } catch (e) { 35 | found.push({ 36 | from: CodeMirror.Pos(e.location.first_line, 0), 37 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column), 38 | severity: 'error', 39 | message: e.message 40 | }); 41 | } 42 | return found; 43 | }); 44 | 45 | }); 46 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/spreadsheet/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Spreadsheet mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 28 | 29 |
30 |

Spreadsheet mode

31 |
32 | 33 | 40 | 41 |

MIME types defined: text/x-spreadsheet.

42 | 43 |

The Spreadsheet Mode

44 |

Created by Robert Plummer

45 |
46 | -------------------------------------------------------------------------------- /src/main/resources/static/views/admin/blogeditor/blogeditor.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 11 | {{typeID}} 12 |
13 | 14 |
15 |
16 | 17 |
18 |
19 |
20 |
21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/z80/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Z80 assembly mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Z80 assembly mode

30 | 31 | 32 |
47 | 48 | 53 | 54 |

MIME type defined: text/x-z80.

55 |
56 | -------------------------------------------------------------------------------- /src/main/resources/static/views/view_3/js/view_3.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var view_3_Controller = angular.module('view_3.Controller', ['ngRoute']); 3 | view_3_Controller.controller('view_3_Controller', ['$scope', '$http', '$routeParams', '$log', function ($scope, $http, $routeParams, $log) { 4 | $scope.type = []; 5 | $scope.blog = []; 6 | $scope.page = 1; 7 | $scope.nowType = "all"; 8 | var page = $routeParams['page'] ? $routeParams['page'] : 1; 9 | var n_type = $routeParams['type']; 10 | if (parseInt(page) < 1) { 11 | page = 1; 12 | } 13 | $scope.page = (parseInt(page)); 14 | var url = '/getBlogData?page=' + (parseInt(page) - 1); 15 | if (n_type !== "all") { 16 | $scope.nowType = n_type; 17 | url = '/getBlogEntityByType?type=' + n_type + '&page=' + page; 18 | } 19 | $http.get('/getBlogTypeData').then(function (response) { 20 | if (response.status === 200) { 21 | $scope.type = response.data; 22 | } else { 23 | $log.error("view_3_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText); 24 | } 25 | }, function (err) { 26 | $log.error(err); 27 | }); 28 | 29 | $http.get(url).then(function (response) { 30 | if (response.status === 200) { 31 | $scope.first = response.data.first; 32 | $scope.last = response.data.last; 33 | $scope.totalPages = response.data.totalPages; 34 | $scope.blog = response.data.content; 35 | } else { 36 | $log.error("view_3_Controller.$http.get.response.status:" + response.status + "text:" + response.statusText); 37 | } 38 | }, function (err) { 39 | $log.error(err); 40 | }); 41 | }]); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/ecl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: ECL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 26 | 27 |
28 |

ECL mode

29 |
47 | 50 | 51 |

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

53 |

MIME types defined: text/x-ecl.

54 | 55 |
56 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/solr/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Solr mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 20 | 33 | 34 |
35 |

Solr mode

36 | 37 |
38 | 47 |
48 | 49 | 55 | 56 |

MIME types defined: text/x-solr.

57 |
58 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/eclipse.css: -------------------------------------------------------------------------------- 1 | .cm-s-eclipse span.cm-meta { 2 | color: #FF1717; 3 | } 4 | 5 | .cm-s-eclipse span.cm-keyword { 6 | line-height: 1em; 7 | font-weight: bold; 8 | color: #7F0055; 9 | } 10 | 11 | .cm-s-eclipse span.cm-atom { 12 | color: #219; 13 | } 14 | 15 | .cm-s-eclipse span.cm-number { 16 | color: #164; 17 | } 18 | 19 | .cm-s-eclipse span.cm-def { 20 | color: #00f; 21 | } 22 | 23 | .cm-s-eclipse span.cm-variable { 24 | color: black; 25 | } 26 | 27 | .cm-s-eclipse span.cm-variable-2 { 28 | color: #0000C0; 29 | } 30 | 31 | .cm-s-eclipse span.cm-variable-3 { 32 | color: #0000C0; 33 | } 34 | 35 | .cm-s-eclipse span.cm-property { 36 | color: black; 37 | } 38 | 39 | .cm-s-eclipse span.cm-operator { 40 | color: black; 41 | } 42 | 43 | .cm-s-eclipse span.cm-comment { 44 | color: #3F7F5F; 45 | } 46 | 47 | .cm-s-eclipse span.cm-string { 48 | color: #2A00FF; 49 | } 50 | 51 | .cm-s-eclipse span.cm-string-2 { 52 | color: #f50; 53 | } 54 | 55 | .cm-s-eclipse span.cm-qualifier { 56 | color: #555; 57 | } 58 | 59 | .cm-s-eclipse span.cm-builtin { 60 | color: #30a; 61 | } 62 | 63 | .cm-s-eclipse span.cm-bracket { 64 | color: #cc7; 65 | } 66 | 67 | .cm-s-eclipse span.cm-tag { 68 | color: #170; 69 | } 70 | 71 | .cm-s-eclipse span.cm-attribute { 72 | color: #00c; 73 | } 74 | 75 | .cm-s-eclipse span.cm-link { 76 | color: #219; 77 | } 78 | 79 | .cm-s-eclipse span.cm-error { 80 | color: #f00; 81 | } 82 | 83 | .cm-s-eclipse .CodeMirror-activeline-background { 84 | background: #e8f2ff !important; 85 | } 86 | 87 | .cm-s-eclipse .CodeMirror-matchingbracket { 88 | outline: 1px solid grey; 89 | color: black !important; 90 | } 91 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/rust/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Rust mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Rust mode

30 | 31 | 32 |
55 | 56 | 61 | 62 |

MIME types defined: text/x-rustsrc.

63 |
64 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/canvas-nest/canvas-nest.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2016 hustcc 3 | * License: MIT 4 | * Version: v1.0.1 5 | * GitHub: https://github.com/hustcc/canvas-nest.js 6 | **/ 7 | !function(){function n(n,e,t){return n.getAttribute(e)||t}function e(n){return document.getElementsByTagName(n)}function t(){var t=e("script"),o=t.length,i=t[o-1];return{l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99)}}function o(){a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function i(){r.clearRect(0,0,a,c);var n,e,t,o,m,l;s.forEach(function(i,x){for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e=n.max/2&&(i.x-=.03*o,i.y-=.03*m),t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke()))}),x(i)}var a,c,u,m=document.createElement("canvas"),d=t(),l="c_n"+d.l,r=m.getContext("2d"),x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){window.setTimeout(n,1e3/45)},w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o,window.onmousemove=function(n){n=n||window.event,y.x=n.clientX,y.y=n.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],f=0;d.n>f;f++){var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3})}u=s.concat([y]),setTimeout(function(){i()},100)}(); -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/turtle/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Turtle mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Turtle mode

30 |
44 | 50 | 51 |

MIME types defined: text/turtle.

52 | 53 |
54 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/scroll/simplescrollbars.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div { 2 | position: absolute; 3 | background: #ccc; 4 | -moz-box-sizing: border-box; 5 | box-sizing: border-box; 6 | border: 1px solid #bbb; 7 | border-radius: 2px; 8 | } 9 | 10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical { 11 | position: absolute; 12 | z-index: 6; 13 | background: #eee; 14 | } 15 | 16 | .CodeMirror-simplescroll-horizontal { 17 | bottom: 0; 18 | left: 0; 19 | height: 8px; 20 | } 21 | 22 | .CodeMirror-simplescroll-horizontal div { 23 | bottom: 0; 24 | height: 100%; 25 | } 26 | 27 | .CodeMirror-simplescroll-vertical { 28 | right: 0; 29 | top: 0; 30 | width: 8px; 31 | } 32 | 33 | .CodeMirror-simplescroll-vertical div { 34 | right: 0; 35 | width: 100%; 36 | } 37 | 38 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler { 39 | display: none; 40 | } 41 | 42 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div { 43 | position: absolute; 44 | background: #bcd; 45 | border-radius: 3px; 46 | } 47 | 48 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical { 49 | position: absolute; 50 | z-index: 6; 51 | } 52 | 53 | .CodeMirror-overlayscroll-horizontal { 54 | bottom: 0; 55 | left: 0; 56 | height: 6px; 57 | } 58 | 59 | .CodeMirror-overlayscroll-horizontal div { 60 | bottom: 0; 61 | height: 100%; 62 | } 63 | 64 | .CodeMirror-overlayscroll-vertical { 65 | right: 0; 66 | top: 0; 67 | width: 6px; 68 | } 69 | 70 | .CodeMirror-overlayscroll-vertical div { 71 | right: 0; 72 | width: 100%; 73 | } 74 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/pascal/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pascal mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Pascal mode

30 | 31 | 32 |
55 | 56 | 62 | 63 |

MIME types defined: text/x-pascal.

64 |
65 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/display/fullscreen.js: -------------------------------------------------------------------------------- 1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others 2 | // Distributed under an MIT license: http://codemirror.net/LICENSE 3 | 4 | (function (mod) { 5 | if (typeof exports == "object" && typeof module == "object") // CommonJS 6 | mod(require("../../lib/codemirror")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | "use strict"; 13 | 14 | CodeMirror.defineOption("fullScreen", false, function (cm, val, old) { 15 | if (old == CodeMirror.Init) old = false; 16 | if (!old == !val) return; 17 | if (val) setFullscreen(cm); 18 | else setNormal(cm); 19 | }); 20 | 21 | function setFullscreen(cm) { 22 | var wrap = cm.getWrapperElement(); 23 | cm.state.fullScreenRestore = { 24 | scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset, 25 | width: wrap.style.width, height: wrap.style.height 26 | }; 27 | wrap.style.width = ""; 28 | wrap.style.height = "auto"; 29 | wrap.className += " CodeMirror-fullscreen"; 30 | document.documentElement.style.overflow = "hidden"; 31 | cm.refresh(); 32 | } 33 | 34 | function setNormal(cm) { 35 | var wrap = cm.getWrapperElement(); 36 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, ""); 37 | document.documentElement.style.overflow = ""; 38 | var info = cm.state.fullScreenRestore; 39 | wrap.style.width = info.width; 40 | wrap.style.height = info.height; 41 | window.scrollTo(info.scrollLeft, info.scrollTop); 42 | cm.refresh(); 43 | } 44 | }); 45 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/pig/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Pig Latin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 26 | 27 |
28 |

Pig Latin mode

29 |
41 | 42 | 49 | 50 |

51 | Simple mode that handles Pig Latin language. 52 |

53 | 54 |

MIME type defined: text/x-pig 55 | (PIG code) 56 | 57 |

58 | -------------------------------------------------------------------------------- /src/main/java/com/ning/itning/service/impl/IndexServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.ning.itning.service.impl; 2 | 3 | import com.ning.itning.dao.indexFrameWork.NavBarDao; 4 | import com.ning.itning.dao.indexFrameWork.TitleDao; 5 | import com.ning.itning.entity.indexFrameWork.Index; 6 | import com.ning.itning.entity.indexFrameWork.NavBar; 7 | import com.ning.itning.entity.indexFrameWork.Title; 8 | import com.ning.itning.service.IndexService; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | import java.util.ArrayList; 13 | import java.util.List; 14 | 15 | /** 16 | * 页面框架服务层实现 17 | * 18 | * @author : ning 19 | * @version : 1.0.0 20 | * @package_name : com.ning.itning.service.impl 21 | * @date : 2017/9/22 22 | **/ 23 | @Service 24 | public class IndexServiceImpl implements IndexService { 25 | 26 | private final NavBarDao navBarDao; 27 | 28 | private final TitleDao titleDao; 29 | 30 | @Autowired 31 | public IndexServiceImpl(NavBarDao navBarDao, TitleDao titleDao) { 32 | this.navBarDao = navBarDao; 33 | this.titleDao = titleDao; 34 | } 35 | 36 | /** 37 | * 实现getIndexEntity()方法,调用Dao层封装数据返回 38 | * 获取框架实体数据 39 | * 40 | * @return 实体类-com.ning.itning.entity.indexFrameWork.Index 41 | * @author : ning 42 | * @date : 2017/9/22 43 | **/ 44 | @Override 45 | public Index getIndexEntity() { 46 | List navBarList = navBarDao.findAll(); 47 | List titleList = titleDao.findAll(); 48 | List<String> viewTitle = new ArrayList<>(); 49 | for (Title title : titleList) { 50 | viewTitle.add(title.getText()); 51 | } 52 | Index index = new Index(); 53 | index.setNavbarList(navBarList); 54 | index.setViewTitle(viewTitle); 55 | return index; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/vbscript/index.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | 3 | <title>CodeMirror: VBScript mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

VBScript mode

30 | 31 | 32 |
49 | 50 | 56 | 57 |

MIME types defined: text/vbscript.

58 |
59 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/gherkin/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Gherkin mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Gherkin mode

30 |
45 | 48 | 49 |

MIME types defined: text/x-feature.

50 | 51 |
52 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/properties/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Properties files mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Properties files mode

30 |
49 | 52 | 53 |

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

55 | 56 |
57 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/javascript/typescript.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: TypeScript mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

TypeScript mode

30 | 31 | 32 |
54 | 55 | 62 | 63 |

This is a specialization of the JavaScript mode.

64 |
65 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | module.exports = factory; 44 | } 45 | else if (typeof define === "function") // AMD/CMD/Sea.js 46 | { 47 | if (define.amd) { // for Require.js 48 | 49 | define(["editormd"], function (editormd) { 50 | factory(editormd); 51 | }); 52 | 53 | } else { // for Sea.js 54 | define(function (require) { 55 | var editormd = require("./../../editormd"); 56 | factory(editormd); 57 | }); 58 | } 59 | } 60 | else { 61 | factory(window.editormd); 62 | } 63 | 64 | })(); 65 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/sass/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Sass mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 29 | 30 |
31 |

Sass mode

32 |
62 | 68 | 69 |

MIME types defined: text/x-sass.

70 |
71 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/perl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Perl mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Perl mode

30 | 31 | 32 |
70 | 71 | 76 | 77 |

MIME types defined: text/x-perl.

78 |
79 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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, 28 | endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir; 29 | for (; line != endLine; line += dir) { 30 | var text = editor.getLine(line), m; 31 | while (m = re.exec(text)) { 32 | if (line == cur.line && m[0] === curWord) continue; 33 | if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) { 34 | seen[m[0]] = true; 35 | list.push(m[0]); 36 | } 37 | } 38 | } 39 | } 40 | return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)}; 41 | }); 42 | }); 43 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/idl/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: IDL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

IDL mode

30 | 31 |
55 | 67 | 68 |

MIME types defined: text/x-idl.

69 |
70 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/dart/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Dart mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 26 | 27 |
28 |

Dart mode

29 |
30 | 64 |
65 | 66 | 72 | 73 |
74 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/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 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/cobalt.css: -------------------------------------------------------------------------------- 1 | .cm-s-cobalt.CodeMirror { 2 | background: #002240; 3 | color: white; 4 | } 5 | 6 | .cm-s-cobalt div.CodeMirror-selected { 7 | background: #b36539 !important; 8 | } 9 | 10 | .cm-s-cobalt.CodeMirror ::selection { 11 | background: rgba(179, 101, 57, .99); 12 | } 13 | 14 | .cm-s-cobalt.CodeMirror ::-moz-selection { 15 | background: rgba(179, 101, 57, .99); 16 | } 17 | 18 | .cm-s-cobalt .CodeMirror-gutters { 19 | background: #002240; 20 | border-right: 1px solid #aaa; 21 | } 22 | 23 | .cm-s-cobalt .CodeMirror-guttermarker { 24 | color: #ffee80; 25 | } 26 | 27 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { 28 | color: #d0d0d0; 29 | } 30 | 31 | .cm-s-cobalt .CodeMirror-linenumber { 32 | color: #d0d0d0; 33 | } 34 | 35 | .cm-s-cobalt .CodeMirror-cursor { 36 | border-left: 1px solid white !important; 37 | } 38 | 39 | .cm-s-cobalt span.cm-comment { 40 | color: #08f; 41 | } 42 | 43 | .cm-s-cobalt span.cm-atom { 44 | color: #845dc4; 45 | } 46 | 47 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { 48 | color: #ff80e1; 49 | } 50 | 51 | .cm-s-cobalt span.cm-keyword { 52 | color: #ffee80; 53 | } 54 | 55 | .cm-s-cobalt span.cm-string { 56 | color: #3ad900; 57 | } 58 | 59 | .cm-s-cobalt span.cm-meta { 60 | color: #ff9d00; 61 | } 62 | 63 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { 64 | color: #9effff; 65 | } 66 | 67 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { 68 | color: white; 69 | } 70 | 71 | .cm-s-cobalt span.cm-bracket { 72 | color: #d8d8d8; 73 | } 74 | 75 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { 76 | color: #ff9e59; 77 | } 78 | 79 | .cm-s-cobalt span.cm-link { 80 | color: #845dc4; 81 | } 82 | 83 | .cm-s-cobalt span.cm-error { 84 | color: #9d1e15; 85 | } 86 | 87 | .cm-s-cobalt .CodeMirror-activeline-background { 88 | background: #002D57 !important; 89 | } 90 | 91 | .cm-s-cobalt .CodeMirror-matchingbracket { 92 | outline: 1px solid grey; 93 | color: white !important 94 | } 95 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/xml/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}, "xml"), mname = "xml"; 6 | 7 | function MT(name) { 8 | test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); 9 | } 10 | 11 | MT("matching", 12 | "[tag&bracket <][tag top][tag&bracket >]", 13 | " text", 14 | " [tag&bracket <][tag inner][tag&bracket />]", 15 | "[tag&bracket ]"); 16 | 17 | MT("nonmatching", 18 | "[tag&bracket <][tag top][tag&bracket >]", 19 | " [tag&bracket <][tag inner][tag&bracket />]", 20 | " [tag&bracket ]"); 21 | 22 | MT("doctype", 23 | "[meta ]", 24 | "[tag&bracket <][tag top][tag&bracket />]"); 25 | 26 | MT("cdata", 27 | "[tag&bracket <][tag top][tag&bracket >]", 28 | " [atom ]", 30 | "[tag&bracket ]"); 31 | 32 | // HTML tests 33 | mode = CodeMirror.getMode({indentUnit: 2}, "text/html"); 34 | 35 | MT("selfclose", 36 | "[tag&bracket <][tag html][tag&bracket >]", 37 | " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]", 38 | "[tag&bracket ]"); 39 | 40 | MT("list", 41 | "[tag&bracket <][tag ol][tag&bracket >]", 42 | " [tag&bracket <][tag li][tag&bracket >]one", 43 | " [tag&bracket <][tag li][tag&bracket >]two", 44 | "[tag&bracket ]"); 45 | 46 | MT("valueless", 47 | "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]"); 48 | 49 | MT("pThenArticle", 50 | "[tag&bracket <][tag p][tag&bracket >]", 51 | " foo", 52 | "[tag&bracket <][tag article][tag&bracket >]bar"); 53 | 54 | })(); 55 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/jinja2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Jinja2 mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Jinja2 mode

30 |
52 | 59 |
60 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/sparql/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: SPARQL mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 28 | 29 |
30 |

SPARQL mode

31 |
55 | 61 | 62 |

MIME types defined: application/sparql-query.

63 | 64 |
65 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/rubyblue.css: -------------------------------------------------------------------------------- 1 | .cm-s-rubyblue.CodeMirror { 2 | background: #112435; 3 | color: white; 4 | } 5 | 6 | .cm-s-rubyblue div.CodeMirror-selected { 7 | background: #38566F !important; 8 | } 9 | 10 | .cm-s-rubyblue.CodeMirror ::selection { 11 | background: rgba(56, 86, 111, 0.99); 12 | } 13 | 14 | .cm-s-rubyblue.CodeMirror ::-moz-selection { 15 | background: rgba(56, 86, 111, 0.99); 16 | } 17 | 18 | .cm-s-rubyblue .CodeMirror-gutters { 19 | background: #1F4661; 20 | border-right: 7px solid #3E7087; 21 | } 22 | 23 | .cm-s-rubyblue .CodeMirror-guttermarker { 24 | color: white; 25 | } 26 | 27 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { 28 | color: #3E7087; 29 | } 30 | 31 | .cm-s-rubyblue .CodeMirror-linenumber { 32 | color: white; 33 | } 34 | 35 | .cm-s-rubyblue .CodeMirror-cursor { 36 | border-left: 1px solid white !important; 37 | } 38 | 39 | .cm-s-rubyblue span.cm-comment { 40 | color: #999; 41 | font-style: italic; 42 | line-height: 1em; 43 | } 44 | 45 | .cm-s-rubyblue span.cm-atom { 46 | color: #F4C20B; 47 | } 48 | 49 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { 50 | color: #82C6E0; 51 | } 52 | 53 | .cm-s-rubyblue span.cm-keyword { 54 | color: #F0F; 55 | } 56 | 57 | .cm-s-rubyblue span.cm-string { 58 | color: #F08047; 59 | } 60 | 61 | .cm-s-rubyblue span.cm-meta { 62 | color: #F0F; 63 | } 64 | 65 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { 66 | color: #7BD827; 67 | } 68 | 69 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { 70 | color: white; 71 | } 72 | 73 | .cm-s-rubyblue span.cm-bracket { 74 | color: #F0F; 75 | } 76 | 77 | .cm-s-rubyblue span.cm-link { 78 | color: #F4C20B; 79 | } 80 | 81 | .cm-s-rubyblue span.CodeMirror-matchingbracket { 82 | color: #F0F !important; 83 | } 84 | 85 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { 86 | color: #FF9D00; 87 | } 88 | 89 | .cm-s-rubyblue span.cm-error { 90 | color: #AF2018; 91 | } 92 | 93 | .cm-s-rubyblue .CodeMirror-activeline-background { 94 | background: #173047 !important; 95 | } 96 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/css/less_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 | "use strict"; 6 | 7 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-less"); 8 | 9 | function MT(name) { 10 | test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "less"); 11 | } 12 | 13 | MT("variable", 14 | "[variable-2 @base]: [atom #f04615];", 15 | "[qualifier .class] {", 16 | " [property width]: [variable percentage]([number 0.5]); [comment // returns `50%`]", 17 | " [property color]: [variable saturate]([variable-2 @base], [number 5%]);", 18 | "}"); 19 | 20 | MT("amp", 21 | "[qualifier .child], [qualifier .sibling] {", 22 | " [qualifier .parent] [atom &] {", 23 | " [property color]: [keyword black];", 24 | " }", 25 | " [atom &] + [atom &] {", 26 | " [property color]: [keyword red];", 27 | " }", 28 | "}"); 29 | 30 | MT("mixin", 31 | "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {", 32 | " [property color]: [variable darken]([variable-2 @color], [number 10%]);", 33 | "}", 34 | "[qualifier .mixin] ([variable light]; [variable-2 @color]) {", 35 | " [property color]: [variable lighten]([variable-2 @color], [number 10%]);", 36 | "}", 37 | "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {", 38 | " [property display]: [atom block];", 39 | "}", 40 | "[variable-2 @switch]: [variable light];", 41 | "[qualifier .class] {", 42 | " [qualifier .mixin]([variable-2 @switch]; [atom #888]);", 43 | "}"); 44 | 45 | MT("nest", 46 | "[qualifier .one] {", 47 | " [def @media] ([property width]: [number 400px]) {", 48 | " [property font-size]: [number 1.2em];", 49 | " [def @media] [attribute print] [keyword and] [property color] {", 50 | " [property color]: [keyword blue];", 51 | " }", 52 | " }", 53 | "}"); 54 | })(); 55 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/gas/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Gas mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 26 | 27 |
28 |

Gas mode

29 |
30 | 52 |
53 | 54 | 60 | 61 |

Handles AT&T assembler syntax (more specifically this handles 62 | the GNU Assembler (gas) syntax.) 63 | It takes a single optional configuration parameter: 64 | architecture, which can be one of "ARM", 65 | "ARMv6" or "x86". 66 | Including the parameter adds syntax for the registers and special 67 | directives for the supplied architecture. 68 | 69 |

MIME types defined: text/x-gas

70 |
71 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/django/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Django template mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 30 | 31 |
32 |

Django template mode

33 |
53 | 54 | 62 | 63 |

Mode for HTML with embedded Django template markup.

64 | 65 |

MIME types defined: text/x-django

66 |
67 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/shell/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Shell mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 30 | 31 |
32 |

Shell mode

33 | 34 | 35 | 59 | 60 | 67 | 68 |

MIME types defined: text/x-sh.

69 |
70 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/shell/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({}, "shell"); 6 | 7 | function MT(name) { 8 | test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); 9 | } 10 | 11 | MT("var", 12 | "text [def $var] text"); 13 | MT("varBraces", 14 | "text[def ${var}]text"); 15 | MT("varVar", 16 | "text [def $a$b] text"); 17 | MT("varBracesVarBraces", 18 | "text[def ${a}${b}]text"); 19 | 20 | MT("singleQuotedVar", 21 | "[string 'text $var text']"); 22 | MT("singleQuotedVarBraces", 23 | "[string 'text ${var} text']"); 24 | 25 | MT("doubleQuotedVar", 26 | '[string "text ][def $var][string text"]'); 27 | MT("doubleQuotedVarBraces", 28 | '[string "text][def ${var}][string text"]'); 29 | MT("doubleQuotedVarPunct", 30 | '[string "text ][def $@][string text"]'); 31 | MT("doubleQuotedVarVar", 32 | '[string "][def $a$b][string "]'); 33 | MT("doubleQuotedVarBracesVarBraces", 34 | '[string "][def ${a}${b}][string "]'); 35 | 36 | MT("notAString", 37 | "text\\'text"); 38 | MT("escapes", 39 | "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)"); 40 | 41 | MT("subshell", 42 | "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`]."); 43 | MT("doubleQuotedSubshell", 44 | "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]"); 45 | 46 | MT("hashbang", 47 | "[meta #!/bin/bash]"); 48 | MT("comment", 49 | "text [comment # Blurb]"); 50 | 51 | MT("numbers", 52 | "[number 0] [number 1] [number 2]"); 53 | MT("keywords", 54 | "[keyword while] [atom true]; [keyword do]", 55 | " [builtin sleep] [number 3]", 56 | "[keyword done]"); 57 | MT("options", 58 | "[builtin ls] [attribute -l] [attribute --human-readable]"); 59 | MT("operator", 60 | "[def var][operator =]value"); 61 | })(); 62 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/tornado/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Tornado template mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 30 | 31 |
32 |

Tornado template mode

33 |
53 | 54 | 62 | 63 |

Mode for HTML with embedded Tornado template markup.

64 | 65 |

MIME types defined: text/x-tornado

66 |
67 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/dart/dart.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("../clike/clike")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror", "../clike/clike"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | "use strict"; 13 | 14 | var keywords = ("this super static final const abstract class extends external factory " + 15 | "implements get native operator set typedef with enum throw rethrow " + 16 | "assert break case continue default in return new deferred async await " + 17 | "try catch finally do else for if switch while import library export " + 18 | "part of show hide is").split(" "); 19 | var blockKeywords = "try catch finally do else for if switch while".split(" "); 20 | var atoms = "true false null".split(" "); 21 | var builtins = "void bool num int double dynamic var String".split(" "); 22 | 23 | function set(words) { 24 | var obj = {}; 25 | for (var i = 0; i < words.length; ++i) obj[words[i]] = true; 26 | return obj; 27 | } 28 | 29 | CodeMirror.defineMIME("application/dart", { 30 | name: "clike", 31 | keywords: set(keywords), 32 | multiLineStrings: true, 33 | blockKeywords: set(blockKeywords), 34 | builtin: set(builtins), 35 | atoms: set(atoms), 36 | hooks: { 37 | "@": function (stream) { 38 | stream.eatWhile(/[\w\$_]/); 39 | return "meta"; 40 | } 41 | } 42 | }); 43 | 44 | CodeMirror.registerHelper("hintWords", "application/dart", keywords.concat(atoms).concat(builtins)); 45 | 46 | // This is needed to make loading through meta.js work. 47 | CodeMirror.defineMode("dart", function (conf) { 48 | return CodeMirror.getMode(conf, "application/dart"); 49 | }, "clike"); 50 | }); 51 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/pegjs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | CodeMirror: PEG.js Mode 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 16 | 17 | 18 | 31 | 32 |
33 |

PEG.js Mode

34 |
59 | 65 |

The PEG.js Mode

66 |

Created by Forbes Lindesay.

67 |
68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/edit/continuelist.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 listRE = /^(\s*)(>[> ]*|[*+-]\s|(\d+)\.)(\s*)/, 15 | emptyListRE = /^(\s*)(>[> ]*|[*+-]|(\d+)\.)(\s*)$/, 16 | unorderedListRE = /[*+-]\s/; 17 | 18 | CodeMirror.commands.newlineAndIndentContinueMarkdownList = function (cm) { 19 | if (cm.getOption("disableInput")) return CodeMirror.Pass; 20 | var ranges = cm.listSelections(), replacements = []; 21 | for (var i = 0; i < ranges.length; i++) { 22 | var pos = ranges[i].head, match; 23 | var eolState = cm.getStateAfter(pos.line); 24 | var inList = eolState.list !== false; 25 | var inQuote = eolState.quote !== false; 26 | 27 | if (!ranges[i].empty() || (!inList && !inQuote) || !(match = cm.getLine(pos.line).match(listRE))) { 28 | cm.execCommand("newlineAndIndent"); 29 | return; 30 | } 31 | if (cm.getLine(pos.line).match(emptyListRE)) { 32 | cm.replaceRange("", { 33 | line: pos.line, ch: 0 34 | }, { 35 | line: pos.line, ch: pos.ch + 1 36 | }); 37 | replacements[i] = "\n"; 38 | 39 | } else { 40 | var indent = match[1], after = match[4]; 41 | var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0 42 | ? match[2] 43 | : (parseInt(match[3], 10) + 1) + "."; 44 | 45 | replacements[i] = "\n" + indent + bullet + after; 46 | } 47 | } 48 | 49 | cm.replaceSelections(replacements); 50 | }; 51 | }); 52 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/toml/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: TOML Mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

TOML Mode

30 |
67 | 73 |

The TOML Mode

74 |

Created by Forbes Lindesay.

75 |

MIME type defined: text/x-toml.

76 |
77 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/monokai.css: -------------------------------------------------------------------------------- 1 | /* Based on Sublime Text's Monokai theme */ 2 | 3 | .cm-s-monokai.CodeMirror { 4 | background: #272822; 5 | color: #f8f8f2; 6 | } 7 | 8 | .cm-s-monokai div.CodeMirror-selected { 9 | background: #49483E !important; 10 | } 11 | 12 | .cm-s-monokai.CodeMirror ::selection { 13 | background: rgba(73, 72, 62, .99); 14 | } 15 | 16 | .cm-s-monokai.CodeMirror ::-moz-selection { 17 | background: rgba(73, 72, 62, .99); 18 | } 19 | 20 | .cm-s-monokai .CodeMirror-gutters { 21 | background: #272822; 22 | border-right: 0px; 23 | } 24 | 25 | .cm-s-monokai .CodeMirror-guttermarker { 26 | color: white; 27 | } 28 | 29 | .cm-s-monokai .CodeMirror-guttermarker-subtle { 30 | color: #d0d0d0; 31 | } 32 | 33 | .cm-s-monokai .CodeMirror-linenumber { 34 | color: #d0d0d0; 35 | } 36 | 37 | .cm-s-monokai .CodeMirror-cursor { 38 | border-left: 1px solid #f8f8f0 !important; 39 | } 40 | 41 | .cm-s-monokai span.cm-comment { 42 | color: #75715e; 43 | } 44 | 45 | .cm-s-monokai span.cm-atom { 46 | color: #ae81ff; 47 | } 48 | 49 | .cm-s-monokai span.cm-number { 50 | color: #ae81ff; 51 | } 52 | 53 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { 54 | color: #a6e22e; 55 | } 56 | 57 | .cm-s-monokai span.cm-keyword { 58 | color: #f92672; 59 | } 60 | 61 | .cm-s-monokai span.cm-string { 62 | color: #e6db74; 63 | } 64 | 65 | .cm-s-monokai span.cm-variable { 66 | color: #a6e22e; 67 | } 68 | 69 | .cm-s-monokai span.cm-variable-2 { 70 | color: #9effff; 71 | } 72 | 73 | .cm-s-monokai span.cm-def { 74 | color: #fd971f; 75 | } 76 | 77 | .cm-s-monokai span.cm-bracket { 78 | color: #f8f8f2; 79 | } 80 | 81 | .cm-s-monokai span.cm-tag { 82 | color: #f92672; 83 | } 84 | 85 | .cm-s-monokai span.cm-link { 86 | color: #ae81ff; 87 | } 88 | 89 | .cm-s-monokai span.cm-error { 90 | background: #f92672; 91 | color: #f8f8f0; 92 | } 93 | 94 | .cm-s-monokai .CodeMirror-activeline-background { 95 | background: #373831 !important; 96 | } 97 | 98 | .cm-s-monokai .CodeMirror-matchingbracket { 99 | text-decoration: underline; 100 | color: white !important; 101 | } 102 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/tiki/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Tiki wiki mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 28 | 29 |
30 |

Tiki wiki mode

31 | 32 | 33 |
90 | 91 | 97 | 98 |
99 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/night.css: -------------------------------------------------------------------------------- 1 | /* Loosely based on the Midnight Textmate theme */ 2 | 3 | .cm-s-night.CodeMirror { 4 | background: #0a001f; 5 | color: #f8f8f8; 6 | } 7 | 8 | .cm-s-night div.CodeMirror-selected { 9 | background: #447 !important; 10 | } 11 | 12 | .cm-s-night.CodeMirror ::selection { 13 | background: rgba(68, 68, 119, .99); 14 | } 15 | 16 | .cm-s-night.CodeMirror ::-moz-selection { 17 | background: rgba(68, 68, 119, .99); 18 | } 19 | 20 | .cm-s-night .CodeMirror-gutters { 21 | background: #0a001f; 22 | border-right: 1px solid #aaa; 23 | } 24 | 25 | .cm-s-night .CodeMirror-guttermarker { 26 | color: white; 27 | } 28 | 29 | .cm-s-night .CodeMirror-guttermarker-subtle { 30 | color: #bbb; 31 | } 32 | 33 | .cm-s-night .CodeMirror-linenumber { 34 | color: #f8f8f8; 35 | } 36 | 37 | .cm-s-night .CodeMirror-cursor { 38 | border-left: 1px solid white !important; 39 | } 40 | 41 | .cm-s-night span.cm-comment { 42 | color: #6900a1; 43 | } 44 | 45 | .cm-s-night span.cm-atom { 46 | color: #845dc4; 47 | } 48 | 49 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { 50 | color: #ffd500; 51 | } 52 | 53 | .cm-s-night span.cm-keyword { 54 | color: #599eff; 55 | } 56 | 57 | .cm-s-night span.cm-string { 58 | color: #37f14a; 59 | } 60 | 61 | .cm-s-night span.cm-meta { 62 | color: #7678e2; 63 | } 64 | 65 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { 66 | color: #99b2ff; 67 | } 68 | 69 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { 70 | color: white; 71 | } 72 | 73 | .cm-s-night span.cm-bracket { 74 | color: #8da6ce; 75 | } 76 | 77 | .cm-s-night span.cm-comment { 78 | color: #6900a1; 79 | } 80 | 81 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { 82 | color: #ff9e59; 83 | } 84 | 85 | .cm-s-night span.cm-link { 86 | color: #845dc4; 87 | } 88 | 89 | .cm-s-night span.cm-error { 90 | color: #9d1e15; 91 | } 92 | 93 | .cm-s-night .CodeMirror-activeline-background { 94 | background: #1C005A !important; 95 | } 96 | 97 | .cm-s-night .CodeMirror-matchingbracket { 98 | outline: 1px solid grey; 99 | color: white !important; 100 | } 101 | -------------------------------------------------------------------------------- /src/main/resources/static/css/dashboard.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /* 3 | * Base structure 4 | */ 5 | 6 | /* Move down content because we have a fixed navbar that is 50px tall */ 7 | body { 8 | padding-top: 50px; 9 | } 10 | 11 | /* 12 | * Global add-ons 13 | */ 14 | 15 | .sub-header { 16 | padding-bottom: 10px; 17 | border-bottom: 1px solid #eee; 18 | } 19 | 20 | /* 21 | * Top navigation 22 | * Hide default border to remove 1px line. 23 | */ 24 | .navbar-fixed-top { 25 | border: 0; 26 | } 27 | 28 | /* 29 | * Sidebar 30 | */ 31 | 32 | /* Hide for mobile, show later */ 33 | .sidebar { 34 | display: none; 35 | } 36 | 37 | @media (min-width: 768px) { 38 | .sidebar { 39 | position: fixed; 40 | top: 51px; 41 | bottom: 0; 42 | left: 0; 43 | z-index: 1000; 44 | display: block; 45 | padding: 20px; 46 | overflow-x: hidden; 47 | overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ 48 | background-color: #f5f5f5; 49 | border-right: 1px solid #eee; 50 | } 51 | } 52 | 53 | /* Sidebar navigation */ 54 | .nav-sidebar { 55 | margin-right: -21px; /* 20px padding + 1px border */ 56 | margin-bottom: 20px; 57 | margin-left: -20px; 58 | } 59 | 60 | .nav-sidebar > li > a { 61 | padding-right: 20px; 62 | padding-left: 20px; 63 | } 64 | 65 | .nav-sidebar > .active > a, 66 | .nav-sidebar > .active > a:hover, 67 | .nav-sidebar > .active > a:focus { 68 | color: #fff; 69 | background-color: #428bca; 70 | } 71 | 72 | /* 73 | * Main content 74 | */ 75 | 76 | .main { 77 | padding: 20px; 78 | } 79 | 80 | @media (min-width: 768px) { 81 | .main { 82 | padding-right: 40px; 83 | padding-left: 40px; 84 | } 85 | } 86 | 87 | .main .page-header { 88 | margin-top: 0; 89 | } 90 | 91 | /* 92 | * Placeholder dashboard ideas 93 | */ 94 | 95 | .placeholders { 96 | margin-bottom: 30px; 97 | text-align: center; 98 | } 99 | 100 | .placeholders h4 { 101 | margin-bottom: 0; 102 | } 103 | 104 | .placeholder { 105 | margin-bottom: 20px; 106 | } 107 | 108 | .placeholder img { 109 | display: inline-block; 110 | border-radius: 50%; 111 | } -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/forth/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Forth mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 18 | 31 | 32 |
33 | 34 |

Forth mode

35 | 36 |
57 |
58 | 59 | 70 | 71 |

Simple mode that handle Forth-Syntax (Forth 72 | on WikiPedia).

73 | 74 |

MIME types defined: text/x-forth.

75 | 76 |
77 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/octave/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Octave mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 27 | 28 |
29 |

Octave mode

30 | 31 |
74 | 86 | 87 |

MIME types defined: text/x-octave.

88 |
89 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/htmlembedded/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Html Embedded Scripts mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 18 | 31 | 32 |
33 |

Html Embedded Scripts mode

34 |
46 | 47 | 55 | 56 |

Mode for html embedded scripts like JSP and ASP.NET. Depends on HtmlMixed which in turn depends on 57 | JavaScript, CSS and XML.
Other dependancies include those of the scriping language chosen.

58 | 59 |

MIME types defined: application/x-aspx (ASP.NET), 60 | application/x-ejs (Embedded Javascript), application/x-jsp (JavaServer Pages)

61 |
62 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/soy/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Soy (Closure Template) mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 32 | 33 |
34 |

Soy (Closure Template) mode

35 |
58 | 59 | 68 | 69 |

A mode for Closure Templates (Soy).

70 |

MIME type defined: text/x-soy.

71 |
72 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/css/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: CSS mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 29 | 30 |
31 |

CSS mode

32 |
67 | 72 | 73 |

MIME types defined: text/css, text/x-scss (demo), text/x-less (demo).

75 | 76 |

Parsing/Highlighting Tests: normal, verbose.

78 | 79 |
80 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/colorforth.css: -------------------------------------------------------------------------------- 1 | .cm-s-colorforth.CodeMirror { 2 | background: #000000; 3 | color: #f8f8f8; 4 | } 5 | 6 | .cm-s-colorforth .CodeMirror-gutters { 7 | background: #0a001f; 8 | border-right: 1px solid #aaa; 9 | } 10 | 11 | .cm-s-colorforth .CodeMirror-guttermarker { 12 | color: #FFBD40; 13 | } 14 | 15 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { 16 | color: #78846f; 17 | } 18 | 19 | .cm-s-colorforth .CodeMirror-linenumber { 20 | color: #bababa; 21 | } 22 | 23 | .cm-s-colorforth .CodeMirror-cursor { 24 | border-left: 1px solid white !important; 25 | } 26 | 27 | .cm-s-colorforth span.cm-comment { 28 | color: #ededed; 29 | } 30 | 31 | .cm-s-colorforth span.cm-def { 32 | color: #ff1c1c; 33 | font-weight: bold; 34 | } 35 | 36 | .cm-s-colorforth span.cm-keyword { 37 | color: #ffd900; 38 | } 39 | 40 | .cm-s-colorforth span.cm-builtin { 41 | color: #00d95a; 42 | } 43 | 44 | .cm-s-colorforth span.cm-variable { 45 | color: #73ff00; 46 | } 47 | 48 | .cm-s-colorforth span.cm-string { 49 | color: #007bff; 50 | } 51 | 52 | .cm-s-colorforth span.cm-number { 53 | color: #00c4ff; 54 | } 55 | 56 | .cm-s-colorforth span.cm-atom { 57 | color: #606060; 58 | } 59 | 60 | .cm-s-colorforth span.cm-variable-2 { 61 | color: #EEE; 62 | } 63 | 64 | .cm-s-colorforth span.cm-variable-3 { 65 | color: #DDD; 66 | } 67 | 68 | .cm-s-colorforth span.cm-property { 69 | } 70 | 71 | .cm-s-colorforth span.cm-operator { 72 | } 73 | 74 | .cm-s-colorforth span.cm-meta { 75 | color: yellow; 76 | } 77 | 78 | .cm-s-colorforth span.cm-qualifier { 79 | color: #FFF700; 80 | } 81 | 82 | .cm-s-colorforth span.cm-bracket { 83 | color: #cc7; 84 | } 85 | 86 | .cm-s-colorforth span.cm-tag { 87 | color: #FFBD40; 88 | } 89 | 90 | .cm-s-colorforth span.cm-attribute { 91 | color: #FFF700; 92 | } 93 | 94 | .cm-s-colorforth span.cm-error { 95 | color: #f00; 96 | } 97 | 98 | .cm-s-colorforth .CodeMirror-selected { 99 | background: #333d53 !important; 100 | } 101 | 102 | .cm-s-colorforth span.cm-compilation { 103 | background: rgba(255, 255, 255, 0.12); 104 | } 105 | 106 | .cm-s-colorforth .CodeMirror-activeline-background { 107 | background: #253540 !important; 108 | } 109 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/smalltalk/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Smalltalk mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 27 | 40 | 41 |
42 |

Smalltalk mode

43 |
66 | 67 | 75 | 76 |

Simple Smalltalk mode.

77 | 78 |

MIME types defined: text/x-stsrc.

79 |
80 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/cypher/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Cypher Mode for CodeMirror 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 17 | 30 | 31 |
32 |

Cypher Mode for CodeMirror

33 |
34 | 40 |
41 |

MIME types defined: 42 | application/x-cypher-query 43 |

44 | 62 | 63 |
64 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/modelica/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: Modelica mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 29 | 30 |
31 |

Modelica mode

32 | 33 |
54 | 55 | 64 | 65 |

Simple mode that tries to handle Modelica as well as it can.

66 | 67 |

MIME types defined: text/x-modelica 68 | (Modlica code).

69 |
70 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/mode/php/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeMirror: PHP mode 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 20 | 33 | 34 |
35 |

PHP mode

36 |
51 | 52 | 61 | 62 |

Simple HTML/PHP mode based on 63 | the C-like mode. Depends on XML, 64 | JavaScript, CSS, HTMLMixed, and C-like modes.

65 | 66 |

MIME types defined: application/x-httpd-php (HTML with PHP code), 67 | text/x-php (plain, non-wrapped PHP code).

68 |
69 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/hint/css-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"), require("../../mode/css/css")); 7 | else if (typeof define == "function" && define.amd) // AMD 8 | define(["../../lib/codemirror", "../../mode/css/css"], mod); 9 | else // Plain browser env 10 | mod(CodeMirror); 11 | })(function (CodeMirror) { 12 | "use strict"; 13 | 14 | var pseudoClasses = { 15 | link: 1, visited: 1, active: 1, hover: 1, focus: 1, 16 | "first-letter": 1, "first-line": 1, "first-child": 1, 17 | before: 1, after: 1, lang: 1 18 | }; 19 | 20 | CodeMirror.registerHelper("hint", "css", function (cm) { 21 | var cur = cm.getCursor(), token = cm.getTokenAt(cur); 22 | var inner = CodeMirror.innerMode(cm.getMode(), token.state); 23 | if (inner.mode.name != "css") return; 24 | 25 | var start = token.start, end = cur.ch, word = token.string.slice(0, end - start); 26 | if (/[^\w$_-]/.test(word)) { 27 | word = ""; 28 | start = end = cur.ch; 29 | } 30 | 31 | var spec = CodeMirror.resolveMode("text/css"); 32 | 33 | var result = []; 34 | 35 | function add(keywords) { 36 | for (var name in keywords) 37 | if (!word || name.lastIndexOf(word, 0) == 0) 38 | result.push(name); 39 | } 40 | 41 | var st = inner.state.state; 42 | if (st == "pseudo" || token.type == "variable-3") { 43 | add(pseudoClasses); 44 | } else if (st == "block" || st == "maybeprop") { 45 | add(spec.propertyKeywords); 46 | } else if (st == "prop" || st == "parens" || st == "at" || st == "params") { 47 | add(spec.valueKeywords); 48 | add(spec.colorKeywords); 49 | } else if (st == "media" || st == "media_parens") { 50 | add(spec.mediaTypes); 51 | add(spec.mediaFeatures); 52 | } 53 | 54 | if (result.length) return { 55 | list: result, 56 | from: CodeMirror.Pos(cur.line, start), 57 | to: CodeMirror.Pos(cur.line, end) 58 | }; 59 | }); 60 | }); 61 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/addon/display/placeholder.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("placeholder", "", function (cm, val, old) { 13 | var prev = old && old != CodeMirror.Init; 14 | if (val && !prev) { 15 | cm.on("blur", onBlur); 16 | cm.on("change", onChange); 17 | onChange(cm); 18 | } else if (!val && prev) { 19 | cm.off("blur", onBlur); 20 | cm.off("change", onChange); 21 | clearPlaceholder(cm); 22 | var wrapper = cm.getWrapperElement(); 23 | wrapper.className = wrapper.className.replace(" CodeMirror-empty", ""); 24 | } 25 | 26 | if (val && !cm.hasFocus()) onBlur(cm); 27 | }); 28 | 29 | function clearPlaceholder(cm) { 30 | if (cm.state.placeholder) { 31 | cm.state.placeholder.parentNode.removeChild(cm.state.placeholder); 32 | cm.state.placeholder = null; 33 | } 34 | } 35 | 36 | function setPlaceholder(cm) { 37 | clearPlaceholder(cm); 38 | var elt = cm.state.placeholder = document.createElement("pre"); 39 | elt.style.cssText = "height: 0; overflow: visible"; 40 | elt.className = "CodeMirror-placeholder"; 41 | elt.appendChild(document.createTextNode(cm.getOption("placeholder"))); 42 | cm.display.lineSpace.insertBefore(elt, cm.display.lineSpace.firstChild); 43 | } 44 | 45 | function onBlur(cm) { 46 | if (isEmpty(cm)) setPlaceholder(cm); 47 | } 48 | 49 | function onChange(cm) { 50 | var wrapper = cm.getWrapperElement(), empty = isEmpty(cm); 51 | wrapper.className = wrapper.className.replace(" CodeMirror-empty", "") + (empty ? " CodeMirror-empty" : ""); 52 | 53 | if (empty) setPlaceholder(cm); 54 | else clearPlaceholder(cm); 55 | } 56 | 57 | function isEmpty(cm) { 58 | return (cm.lineCount() === 1) && (cm.getLine(0) === ""); 59 | } 60 | }); 61 | -------------------------------------------------------------------------------- /src/main/resources/static/lib_web/editormd/lib/codemirror/theme/the-matrix.css: -------------------------------------------------------------------------------- 1 | .cm-s-the-matrix.CodeMirror { 2 | background: #000000; 3 | color: #00FF00; 4 | } 5 | 6 | .cm-s-the-matrix div.CodeMirror-selected { 7 | background: #2D2D2D !important; 8 | } 9 | 10 | .cm-s-the-matrix.CodeMirror ::selection { 11 | background: rgba(45, 45, 45, 0.99); 12 | } 13 | 14 | .cm-s-the-matrix.CodeMirror ::-moz-selection { 15 | background: rgba(45, 45, 45, 0.99); 16 | } 17 | 18 | .cm-s-the-matrix .CodeMirror-gutters { 19 | background: #060; 20 | border-right: 2px solid #00FF00; 21 | } 22 | 23 | .cm-s-the-matrix .CodeMirror-guttermarker { 24 | color: #0f0; 25 | } 26 | 27 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { 28 | color: white; 29 | } 30 | 31 | .cm-s-the-matrix .CodeMirror-linenumber { 32 | color: #FFFFFF; 33 | } 34 | 35 | .cm-s-the-matrix .CodeMirror-cursor { 36 | border-left: 1px solid #00FF00 !important; 37 | } 38 | 39 | .cm-s-the-matrix span.cm-keyword { 40 | color: #008803; 41 | font-weight: bold; 42 | } 43 | 44 | .cm-s-the-matrix span.cm-atom { 45 | color: #3FF; 46 | } 47 | 48 | .cm-s-the-matrix span.cm-number { 49 | color: #FFB94F; 50 | } 51 | 52 | .cm-s-the-matrix span.cm-def { 53 | color: #99C; 54 | } 55 | 56 | .cm-s-the-matrix span.cm-variable { 57 | color: #F6C; 58 | } 59 | 60 | .cm-s-the-matrix span.cm-variable-2 { 61 | color: #C6F; 62 | } 63 | 64 | .cm-s-the-matrix span.cm-variable-3 { 65 | color: #96F; 66 | } 67 | 68 | .cm-s-the-matrix span.cm-property { 69 | color: #62FFA0; 70 | } 71 | 72 | .cm-s-the-matrix span.cm-operator { 73 | color: #999 74 | } 75 | 76 | .cm-s-the-matrix span.cm-comment { 77 | color: #CCCCCC; 78 | } 79 | 80 | .cm-s-the-matrix span.cm-string { 81 | color: #39C; 82 | } 83 | 84 | .cm-s-the-matrix span.cm-meta { 85 | color: #C9F; 86 | } 87 | 88 | .cm-s-the-matrix span.cm-qualifier { 89 | color: #FFF700; 90 | } 91 | 92 | .cm-s-the-matrix span.cm-builtin { 93 | color: #30a; 94 | } 95 | 96 | .cm-s-the-matrix span.cm-bracket { 97 | color: #cc7; 98 | } 99 | 100 | .cm-s-the-matrix span.cm-tag { 101 | color: #FFBD40; 102 | } 103 | 104 | .cm-s-the-matrix span.cm-attribute { 105 | color: #FFF700; 106 | } 107 | 108 | .cm-s-the-matrix span.cm-error { 109 | color: #FF0000; 110 | } 111 | 112 | .cm-s-the-matrix .CodeMirror-activeline-background { 113 | background: #040; 114 | } 115 | --------------------------------------------------------------------------------