├── IdeaBlog.iml ├── README.md ├── pom.xml ├── src └── main │ ├── java │ └── ideablog │ │ ├── aop │ │ ├── SystemControllerLog.java │ │ └── SystemLogAspect.java │ │ ├── controller │ │ ├── BlogManageController.java │ │ ├── BlogSquareController.java │ │ ├── CloudFileController.java │ │ ├── ErrorController.java │ │ ├── FollowCollectController.java │ │ ├── HelpAboutController.java │ │ ├── HomeController.java │ │ ├── NoticeController.java │ │ ├── PostBlogController.java │ │ ├── SettingController.java │ │ └── SystemController.java │ │ ├── dao │ │ ├── IBlogDao.java │ │ ├── ICloudFileDao.java │ │ ├── ICommentDao.java │ │ ├── IFeedbackDao.java │ │ ├── ILogDao.java │ │ ├── IRCollectDao.java │ │ ├── IRFollowDao.java │ │ ├── IStatisticDao.java │ │ └── IUserDao.java │ │ ├── model │ │ ├── Blog.java │ │ ├── CloudFile.java │ │ ├── Comment.java │ │ ├── Feedback.java │ │ ├── Log.java │ │ ├── RCollect.java │ │ ├── RFollow.java │ │ ├── Statistic.java │ │ └── User.java │ │ ├── service │ │ ├── IBlogService.java │ │ ├── ICloudFileService.java │ │ ├── ICommentService.java │ │ ├── IFeedbackService.java │ │ ├── ILogService.java │ │ ├── IRCollectService.java │ │ ├── IRFollowService.java │ │ ├── IStatisticService.java │ │ ├── IUserService.java │ │ └── impl │ │ │ ├── BlogServiceImpl.java │ │ │ ├── CloudFileServiceImpl.java │ │ │ ├── CommentServiceImpl.java │ │ │ ├── FeedbackServiceImpl.java │ │ │ ├── LogServiceImpl.java │ │ │ ├── RCollectServiceImpl.java │ │ │ ├── RFollowServiceImpl.java │ │ │ ├── StatisticServiceImpl.java │ │ │ └── UserServiceImpl.java │ │ └── utils │ │ ├── Constant.java │ │ ├── Encrypt.java │ │ ├── IdeaBlogMail.java │ │ ├── MyTime.java │ │ └── NumberCode6.java │ ├── resources │ ├── logback.xml │ ├── mapper │ │ ├── BlogDao.xml │ │ ├── CloudFileDao.xml │ │ ├── CommentDao.xml │ │ ├── FeedbackDao.xml │ │ ├── LogDao.xml │ │ ├── RCollectDao.xml │ │ ├── RFollowDao.xml │ │ ├── StatisticDao.xml │ │ └── UserDao.xml │ ├── spring-mvc.xml │ ├── spring-mybatis.xml │ └── sql │ │ └── ideablog.sql │ └── webapp │ ├── WEB-INF │ ├── views │ │ ├── blog.jsp │ │ ├── blog_manage.jsp │ │ ├── blog_square.jsp │ │ ├── cloud_file.jsp │ │ ├── edit_blog.jsp │ │ ├── error.jsp │ │ ├── find.jsp │ │ ├── follow_collect.jsp │ │ ├── help_about.jsp │ │ ├── home.jsp │ │ ├── login.jsp │ │ ├── notice.jsp │ │ ├── post_blog.jsp │ │ ├── register.jsp │ │ ├── setting.jsp │ │ └── system.jsp │ └── web.xml │ └── resources │ ├── bootstrap-fileinput │ ├── css │ │ └── fileinput.min.css │ ├── img │ │ ├── loading-sm.gif │ │ └── loading.gif │ └── js │ │ ├── fileinput.min.js │ │ └── locales │ │ └── zh.js │ ├── bootstrap-table │ ├── bootstrap-table.min.css │ ├── bootstrap-table.min.js │ └── locale │ │ └── bootstrap-table-zh-CN.min.js │ ├── bootstrap │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── css │ ├── base.css │ ├── blog.css │ ├── blog_square.css │ ├── edit_blog.css │ ├── find.css │ ├── follow_collect.css │ ├── help_about.css │ ├── home.css │ ├── login.css │ ├── notice.css │ ├── post_blog.css │ ├── register.css │ ├── setting.css │ └── system.css │ ├── img │ ├── bg01.jpg │ ├── bg02.png │ ├── bg03.jpg │ ├── bulb.ico │ ├── bulb.jpg │ ├── bulb.png │ ├── icons │ │ ├── browse.svg │ │ ├── clock-16-gray.svg │ │ ├── discount.svg │ │ └── favorite-16.svg │ ├── logo.png │ ├── weather_icon │ │ ├── 100.png │ │ ├── 101.png │ │ ├── 102.png │ │ ├── 103.png │ │ ├── 104.png │ │ ├── 200.png │ │ ├── 201.png │ │ ├── 202.png │ │ ├── 203.png │ │ ├── 204.png │ │ ├── 205.png │ │ ├── 206.png │ │ ├── 207.png │ │ ├── 208.png │ │ ├── 209.png │ │ ├── 210.png │ │ ├── 211.png │ │ ├── 212.png │ │ ├── 213.png │ │ ├── 300.png │ │ ├── 301.png │ │ ├── 302.png │ │ ├── 303.png │ │ ├── 304.png │ │ ├── 305.png │ │ ├── 306.png │ │ ├── 307.png │ │ ├── 308.png │ │ ├── 309.png │ │ ├── 310.png │ │ ├── 311.png │ │ ├── 312.png │ │ ├── 313.png │ │ ├── 400.png │ │ ├── 401.png │ │ ├── 402.png │ │ ├── 403.png │ │ ├── 404.png │ │ ├── 405.png │ │ ├── 406.png │ │ ├── 407.png │ │ ├── 500.png │ │ ├── 501.png │ │ ├── 502.png │ │ ├── 503.png │ │ ├── 504.png │ │ ├── 507.png │ │ ├── 508.png │ │ ├── 900.png │ │ ├── 901.png │ │ └── 999.png │ └── welcome_logo.png │ ├── js │ ├── blog.js │ ├── blog_manage.js │ ├── blog_square.js │ ├── city.js │ ├── cloud_file.js │ ├── datetime.js │ ├── edit_blog.js │ ├── find.js │ ├── follow_collect.js │ ├── help_about.js │ ├── home.js │ ├── jquery-3.2.1.min.js │ ├── login.js │ ├── notice.js │ ├── post_blog.js │ ├── register.js │ ├── setting.js │ └── system.js │ └── ueditor │ ├── dialogs │ ├── anchor │ │ └── anchor.html │ ├── attachment │ │ ├── attachment.css │ │ ├── attachment.html │ │ ├── attachment.js │ │ ├── fileTypeImages │ │ │ ├── icon_chm.gif │ │ │ ├── icon_default.png │ │ │ ├── icon_doc.gif │ │ │ ├── icon_exe.gif │ │ │ ├── icon_jpg.gif │ │ │ ├── icon_mp3.gif │ │ │ ├── icon_mv.gif │ │ │ ├── icon_pdf.gif │ │ │ ├── icon_ppt.gif │ │ │ ├── icon_psd.gif │ │ │ ├── icon_rar.gif │ │ │ ├── icon_txt.gif │ │ │ └── icon_xls.gif │ │ └── images │ │ │ ├── alignicon.gif │ │ │ ├── alignicon.png │ │ │ ├── bg.png │ │ │ ├── file-icons.gif │ │ │ ├── file-icons.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── image.png │ │ │ ├── progress.png │ │ │ ├── success.gif │ │ │ └── success.png │ ├── background │ │ ├── background.css │ │ ├── background.html │ │ ├── background.js │ │ └── images │ │ │ ├── bg.png │ │ │ └── success.png │ ├── charts │ │ ├── chart.config.js │ │ ├── charts.css │ │ ├── charts.html │ │ ├── charts.js │ │ └── images │ │ │ ├── charts0.png │ │ │ ├── charts1.png │ │ │ ├── charts2.png │ │ │ ├── charts3.png │ │ │ ├── charts4.png │ │ │ └── charts5.png │ ├── emotion │ │ ├── emotion.css │ │ ├── emotion.html │ │ ├── emotion.js │ │ └── images │ │ │ ├── 0.gif │ │ │ ├── bface.gif │ │ │ ├── cface.gif │ │ │ ├── fface.gif │ │ │ ├── jxface2.gif │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── tface.gif │ │ │ ├── wface.gif │ │ │ └── yface.gif │ ├── gmap │ │ └── gmap.html │ ├── help │ │ ├── help.css │ │ ├── help.html │ │ └── help.js │ ├── image │ │ ├── image.css │ │ ├── image.html │ │ ├── image.js │ │ └── images │ │ │ ├── alignicon.jpg │ │ │ ├── bg.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── image.png │ │ │ ├── progress.png │ │ │ ├── success.gif │ │ │ └── success.png │ ├── insertframe │ │ └── insertframe.html │ ├── internal.js │ ├── link │ │ └── link.html │ ├── map │ │ ├── map.html │ │ └── show.html │ ├── music │ │ ├── music.css │ │ ├── music.html │ │ └── music.js │ ├── preview │ │ └── preview.html │ ├── scrawl │ │ ├── images │ │ │ ├── addimg.png │ │ │ ├── brush.png │ │ │ ├── delimg.png │ │ │ ├── delimgH.png │ │ │ ├── empty.png │ │ │ ├── emptyH.png │ │ │ ├── eraser.png │ │ │ ├── redo.png │ │ │ ├── redoH.png │ │ │ ├── scale.png │ │ │ ├── scaleH.png │ │ │ ├── size.png │ │ │ ├── undo.png │ │ │ └── undoH.png │ │ ├── scrawl.css │ │ ├── scrawl.html │ │ └── scrawl.js │ ├── searchreplace │ │ ├── searchreplace.html │ │ └── searchreplace.js │ ├── snapscreen │ │ └── snapscreen.html │ ├── spechars │ │ ├── spechars.html │ │ └── spechars.js │ ├── table │ │ ├── dragicon.png │ │ ├── edittable.css │ │ ├── edittable.html │ │ ├── edittable.js │ │ ├── edittd.html │ │ └── edittip.html │ ├── template │ │ ├── config.js │ │ ├── images │ │ │ ├── bg.gif │ │ │ ├── pre0.png │ │ │ ├── pre1.png │ │ │ ├── pre2.png │ │ │ ├── pre3.png │ │ │ └── pre4.png │ │ ├── template.css │ │ ├── template.html │ │ └── template.js │ ├── video │ │ ├── images │ │ │ ├── bg.png │ │ │ ├── center_focus.jpg │ │ │ ├── file-icons.gif │ │ │ ├── file-icons.png │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── image.png │ │ │ ├── left_focus.jpg │ │ │ ├── none_focus.jpg │ │ │ ├── progress.png │ │ │ ├── right_focus.jpg │ │ │ ├── success.gif │ │ │ └── success.png │ │ ├── video.css │ │ ├── video.html │ │ └── video.js │ ├── webapp │ │ └── webapp.html │ └── wordimage │ │ ├── fClipboard_ueditor.swf │ │ ├── imageUploader.swf │ │ ├── tangram.js │ │ ├── wordimage.html │ │ └── wordimage.js │ ├── lang │ ├── en │ │ ├── en.js │ │ └── images │ │ │ ├── addimage.png │ │ │ ├── alldeletebtnhoverskin.png │ │ │ ├── alldeletebtnupskin.png │ │ │ ├── background.png │ │ │ ├── button.png │ │ │ ├── copy.png │ │ │ ├── deletedisable.png │ │ │ ├── deleteenable.png │ │ │ ├── listbackground.png │ │ │ ├── localimage.png │ │ │ ├── music.png │ │ │ ├── rotateleftdisable.png │ │ │ ├── rotateleftenable.png │ │ │ ├── rotaterightdisable.png │ │ │ ├── rotaterightenable.png │ │ │ └── upload.png │ └── zh-cn │ │ ├── images │ │ ├── copy.png │ │ ├── localimage.png │ │ ├── music.png │ │ └── upload.png │ │ └── zh-cn.js │ ├── themes │ ├── default │ │ ├── css │ │ │ ├── ueditor.css │ │ │ └── ueditor.min.css │ │ ├── dialogbase.css │ │ └── images │ │ │ ├── anchor.gif │ │ │ ├── arrow.png │ │ │ ├── arrow_down.png │ │ │ ├── arrow_up.png │ │ │ ├── button-bg.gif │ │ │ ├── cancelbutton.gif │ │ │ ├── charts.png │ │ │ ├── cursor_h.gif │ │ │ ├── cursor_h.png │ │ │ ├── cursor_v.gif │ │ │ ├── cursor_v.png │ │ │ ├── dialog-title-bg.png │ │ │ ├── filescan.png │ │ │ ├── highlighted.gif │ │ │ ├── icons-all.gif │ │ │ ├── icons.gif │ │ │ ├── icons.png │ │ │ ├── loaderror.png │ │ │ ├── loading.gif │ │ │ ├── lock.gif │ │ │ ├── neweditor-tab-bg.png │ │ │ ├── pagebreak.gif │ │ │ ├── scale.png │ │ │ ├── sortable.png │ │ │ ├── spacer.gif │ │ │ ├── sparator_v.png │ │ │ ├── table-cell-align.png │ │ │ ├── tangram-colorpicker.png │ │ │ ├── toolbar_bg.png │ │ │ ├── unhighlighted.gif │ │ │ ├── upload.png │ │ │ ├── videologo.gif │ │ │ ├── word.gif │ │ │ └── wordpaste.png │ └── iframe.css │ ├── third-party │ ├── SyntaxHighlighter │ │ ├── shCore.js │ │ └── shCoreDefault.css │ ├── codemirror │ │ ├── codemirror.css │ │ └── codemirror.js │ ├── highcharts │ │ ├── adapters │ │ │ ├── mootools-adapter.js │ │ │ ├── mootools-adapter.src.js │ │ │ ├── prototype-adapter.js │ │ │ ├── prototype-adapter.src.js │ │ │ ├── standalone-framework.js │ │ │ └── standalone-framework.src.js │ │ ├── highcharts-more.js │ │ ├── highcharts-more.src.js │ │ ├── highcharts.js │ │ ├── highcharts.src.js │ │ ├── modules │ │ │ ├── annotations.js │ │ │ ├── annotations.src.js │ │ │ ├── canvas-tools.js │ │ │ ├── canvas-tools.src.js │ │ │ ├── data.js │ │ │ ├── data.src.js │ │ │ ├── drilldown.js │ │ │ ├── drilldown.src.js │ │ │ ├── exporting.js │ │ │ ├── exporting.src.js │ │ │ ├── funnel.js │ │ │ ├── funnel.src.js │ │ │ ├── heatmap.js │ │ │ ├── heatmap.src.js │ │ │ ├── map.js │ │ │ ├── map.src.js │ │ │ ├── no-data-to-display.js │ │ │ └── no-data-to-display.src.js │ │ └── themes │ │ │ ├── dark-blue.js │ │ │ ├── dark-green.js │ │ │ ├── gray.js │ │ │ ├── grid.js │ │ │ └── skies.js │ ├── jquery-1.10.2.js │ ├── jquery-1.10.2.min.js │ ├── jquery-1.10.2.min.map │ ├── snapscreen │ │ └── UEditorSnapscreen.exe │ ├── video-js │ │ ├── font │ │ │ ├── vjs.eot │ │ │ ├── vjs.svg │ │ │ ├── vjs.ttf │ │ │ └── vjs.woff │ │ ├── video-js.css │ │ ├── video-js.min.css │ │ ├── video-js.swf │ │ ├── video.dev.js │ │ └── video.js │ ├── webuploader │ │ ├── Uploader.swf │ │ ├── webuploader.css │ │ ├── webuploader.custom.js │ │ ├── webuploader.custom.min.js │ │ ├── webuploader.flashonly.js │ │ ├── webuploader.flashonly.min.js │ │ ├── webuploader.html5only.js │ │ ├── webuploader.html5only.min.js │ │ ├── webuploader.js │ │ ├── webuploader.min.js │ │ ├── webuploader.withoutimage.js │ │ └── webuploader.withoutimage.min.js │ ├── xss.min.js │ └── zeroclipboard │ │ ├── ZeroClipboard.js │ │ ├── ZeroClipboard.min.js │ │ └── ZeroClipboard.swf │ ├── ueditor.all.js │ ├── ueditor.all.min.js │ ├── ueditor.config.js │ ├── ueditor.parse.js │ └── ueditor.parse.min.js └── 效果图 ├── 0-0登录.jpg ├── 0-1注册.jpg ├── 0-2找回.jpg ├── 10查看博客.png ├── 1主页.jpg ├── 2发布博客.jpg ├── 3关注收藏.jpg ├── 4博客管理.jpg ├── 5云端文件.jpg ├── 6通知中心.jpg ├── 7个人设置.jpg ├── 8帮助关于.jpg ├── 9-0管理员-主页.jpg ├── 9-1管理员-管理首页(系统日志).jpg ├── 9-2管理员-公开博客.jpg ├── 9-3管理员-共享文件.jpg ├── 9-4管理员-反馈.jpg ├── 9-5管理员-用户.jpg ├── 邮件-欢迎.jpg └── 邮件-验证码.jpg /README.md: -------------------------------------------------------------------------------- 1 | # IdeaBlog 2 | 3 | 本科的毕业设计项目。基于SSM框架实现。做得比较简陋。 4 | 5 | 主要技术:前端HTML5+CSS3+JavaScript,后端SSM(SpringMVC+Spring+MyBatis)框架,服务器Tomcat,数据库MySQL。 6 | 7 | ## 权限划分 8 | - **游客**访问可浏览博客,提交反馈意见,注册为普通用户; 9 | 10 | - **普通用户**除具备游客权限外,还可发表或收藏博客,发表或回复评论,关注用户,上传并分享文件,管理自己的博客和文件,修改个人资料; 11 | 12 | - **管理员**除具备普通用户权限外,还可对整个博客系统进行管理和维护,包括系统日志、博客、文件、反馈、用户等。 13 | 14 | ## 运行效果 15 | ### 登录 16 | ![效果图/0-0登录.jpg](效果图/0-0登录.jpg) 17 | ### 注册,找回账号密码 18 | ![效果图/0-1注册.jpg](效果图/0-1注册.jpg) ![效果图/0-2找回.jpg](效果图/0-2找回.jpg) 19 | ### 系统主页 20 | ![效果图/1主页.jpg](效果图/1主页.jpg) 21 | ### 发布博客 22 | ![效果图/2发布博客.jpg](效果图/2发布博客.jpg) 23 | ### 查看博客 24 | ![效果图/10查看博客.png](效果图/10查看博客.png) 25 | ### 关注收藏 26 | ![效果图/3关注收藏.jpg](效果图/3关注收藏.jpg) 27 | ### 博客管理 28 | ![效果图/4博客管理.jpg](效果图/4博客管理.jpg) 29 | ### 云端文件 30 | ![效果图/5云端文件.jpg](效果图/5云端文件.jpg) 31 | ### 通知中心 32 | ![效果图/6通知中心.jpg](效果图/6通知中心.jpg) 33 | ### 个人设置 34 | ![效果图/7个人设置.jpg](效果图/7个人设置.jpg) 35 | ### 帮助关于 36 | ![效果图/8帮助关于.jpg](效果图/8帮助关于.jpg) 37 | ### 管理员-主页 38 | ![效果图/9-0管理员-主页.jpg](效果图/9-0管理员-主页.jpg) 39 | ### 系统日志管理 40 | ![效果图/9-1管理员-管理首页(系统日志).jpg](效果图/9-1管理员-管理首页(系统日志).jpg) 41 | ### 公开博客管理 42 | ![效果图/9-2管理员-公开博客.jpg](效果图/9-2管理员-公开博客.jpg) 43 | ### 共享文件管理 44 | ![效果图/9-3管理员-共享文件.jpg](效果图/9-3管理员-共享文件.jpg) 45 | ### 反馈管理 46 | ![效果图/9-4管理员-反馈.jpg](效果图/9-4管理员-反馈.jpg) 47 | ### 用户管理 48 | ![效果图/9-5管理员-用户.jpg](效果图/9-5管理员-用户.jpg) 49 | ### 邮件-注册和验证码 50 | ![效果图/邮件-欢迎.jpg](效果图/邮件-欢迎.jpg) 51 | ![效果图/邮件-验证码.jpg](效果图/邮件-验证码.jpg) 52 | -------------------------------------------------------------------------------- /src/main/java/ideablog/aop/SystemControllerLog.java: -------------------------------------------------------------------------------- 1 | package ideablog.aop; 2 | 3 | import java.lang.annotation.*; 4 | 5 | @Target({ElementType.PARAMETER, ElementType.METHOD}) 6 | @Retention(RetentionPolicy.RUNTIME) 7 | @Documented 8 | public @interface SystemControllerLog { 9 | 10 | String description() default ""; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/ideablog/controller/ErrorController.java: -------------------------------------------------------------------------------- 1 | package ideablog.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import static org.springframework.web.bind.annotation.RequestMethod.GET; 6 | 7 | @Controller 8 | public class ErrorController { 9 | 10 | @RequestMapping(value = "/error", method = GET) 11 | public String error(){ 12 | return "error"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/ideablog/controller/HelpAboutController.java: -------------------------------------------------------------------------------- 1 | package ideablog.controller; 2 | 3 | import ideablog.service.IFeedbackService; 4 | import ideablog.utils.MyTime; 5 | import org.springframework.stereotype.Controller; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | 8 | import javax.annotation.Resource; 9 | import javax.servlet.http.HttpServletRequest; 10 | 11 | import static org.springframework.web.bind.annotation.RequestMethod.GET; 12 | import static org.springframework.web.bind.annotation.RequestMethod.POST; 13 | 14 | @Controller 15 | public class HelpAboutController { 16 | 17 | @Resource 18 | private IFeedbackService feedbackService; 19 | 20 | @RequestMapping(value = "/help_about", method = GET)//帮助关于页面 21 | public String helpAbout(){ 22 | return "help_about"; 23 | } 24 | 25 | @RequestMapping(value = "/feedback.do", method = POST)//添加反馈 26 | public String addFeedback(HttpServletRequest request) throws Exception { 27 | request.setCharacterEncoding("UTF-8"); 28 | Boolean add = false; 29 | try { 30 | add = this.feedbackService.addFeedback(request.getParameter("title"), request.getParameter("email"), request.getParameter("content"), MyTime.getMyTime()); 31 | }catch (org.springframework.dao.DuplicateKeyException e){ 32 | System.out.println("捕获异常!"); 33 | } 34 | if(add) { 35 | System.out.println("反馈成功!"); 36 | request.setAttribute("status", "反馈成功!感谢您的支持!"); 37 | } 38 | else { 39 | System.out.println("反馈失败!"); 40 | request.setAttribute("status", "反馈失败!"); 41 | } 42 | return "help_about"; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IBlogDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.Blog; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface IBlogDao { 11 | 12 | Blog selectBlogById(long id); 13 | Blog selectPublicBlogById(long id); 14 | List selectAllBlogs(); 15 | List selectNewBlogs(); 16 | List selectHotBlogs(); 17 | List selectNewBlogsByUserId(long userId); 18 | List selectCollectBlogsByUserId(long userId); 19 | List selectFollowBlogsByUserId(long followerId); 20 | Boolean insertBlog(@Param("userId") long userId, @Param("title") String title, @Param("tag") String tag, @Param("content") String content, @Param("editTime") String editTime, @Param("status") int status); 21 | Boolean updateBlogById(@Param("id") long id, @Param("title") String title, @Param("tag") String tag, @Param("content") String content, @Param("editTime") String editTime); 22 | Boolean switchStatusById(@Param("id") long id, @Param("status") int status); 23 | Boolean deleteBlogById(long id); 24 | Boolean increaseViewsById(long id); 25 | Boolean increaseCollectsById(long id); 26 | Boolean decreaseCollectsById(long id); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/ICloudFileDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.CloudFile; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface ICloudFileDao { 11 | 12 | CloudFile selectCloudFileById(long id); 13 | List selectAllCloudFiles(); 14 | List selectCloudFilesByUserId(long userId); 15 | List selectFollowFilesByUserId(long userId); 16 | Boolean insertCloudFiles(@Param("userId") Long userId, @Param("fileName") String fileName, @Param("fileSize") String fileSize, @Param("filePath") String filePath, @Param("upTime") String upTime); 17 | Boolean switchStatusById(@Param("id") long id, @Param("status") int status); 18 | Boolean deleteCloudFileById(long id); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/ICommentDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.Comment; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface ICommentDao { 11 | 12 | List selectCommentsByBlogId(long blogId); 13 | List selectCommentsByReplyUserId(long replyUserId); 14 | Boolean insertComment(@Param("blogId") long blogId, @Param("userId") long userId, @Param("content") String content, @Param("type") int type, @Param("replyUserId") long replyUserId, @Param("postTime") String postTime); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IFeedbackDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.Feedback; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface IFeedbackDao { 11 | 12 | List selectAllFeedbacks(); 13 | Boolean insertFeedback(@Param("title") String title, @Param("email") String email, @Param("content") String content, @Param("time") String time); 14 | Boolean switchStatusById(@Param("id") long id, @Param("status") int status); 15 | Boolean deleteFeedbackById(long id); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/ILogDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.Log; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface ILogDao { 11 | 12 | List selectAllLogs(); 13 | List selectLogsByUserId(long userId); 14 | Boolean insertLog(@Param("userId") Long userId, @Param("method") String method, @Param("description") String description, @Param("reqIp") String reqIp, @Param("opTime") String opTime); 15 | Boolean deleteLogById(long id); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IRCollectDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.RCollect; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface IRCollectDao { 9 | 10 | RCollect selectRCollect(@Param("blogId") long blogId, @Param("userId") long userId); 11 | Boolean insertRCollect(@Param("blogId") long blogId, @Param("userId") long userId); 12 | Boolean deleteRCollect(@Param("blogId") long blogId, @Param("userId") long userId); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IRFollowDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.RFollow; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface IRFollowDao { 9 | 10 | RFollow selectRFollow(@Param("userId") long userId, @Param("followerId") long followerId); 11 | Boolean insertRFollow(@Param("userId") long userId, @Param("followerId") long followerId); 12 | Boolean deleteRFollow(@Param("userId") long userId, @Param("followerId") long followerId); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IStatisticDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.Statistic; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface IStatisticDao { 8 | 9 | Statistic selectStatisticByUserId(long userId); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/ideablog/dao/IUserDao.java: -------------------------------------------------------------------------------- 1 | package ideablog.dao; 2 | 3 | import ideablog.model.User; 4 | import org.apache.ibatis.annotations.Param; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface IUserDao { 11 | 12 | User selectUserById(long id); 13 | List selectAllUsers(); 14 | User selectUserByEmail(String email); 15 | User selectUser(@Param("userName") String userName, @Param("password") String password); 16 | Boolean insertUser(@Param("userName") String userName, @Param("password") String password, @Param("email") String email, @Param("regTime") String regTime); 17 | Boolean updatePasswordByUserName(@Param("userName") String userName, @Param("password") String password); 18 | Boolean updateInfoById(@Param("id") long id, @Param("gender") int gender, @Param("age") int age, @Param("province") String province, @Param("city") String city, @Param("tel") String tel); 19 | Boolean increaseFollowsById(long id); 20 | Boolean decreaseFollowsById(long id); 21 | Boolean switchStatusById(@Param("id") long id, @Param("status") int status); 22 | Boolean deleteUserById(long id); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/CloudFile.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | import java.util.Date; 4 | 5 | public class CloudFile { 6 | 7 | private long id; 8 | private long userId; 9 | private String fileName; 10 | private String fileSize; 11 | private String filePath; 12 | private Date upTime; 13 | private int status; 14 | 15 | private String username;//扩展 16 | 17 | public long getId() { 18 | return id; 19 | } 20 | 21 | public void setId(long id) { 22 | this.id = id; 23 | } 24 | 25 | public long getUserId() { 26 | return userId; 27 | } 28 | 29 | public void setUserId(long userId) { 30 | this.userId = userId; 31 | } 32 | 33 | public String getFileName() { 34 | return fileName; 35 | } 36 | 37 | public void setFileName(String fileName) { 38 | this.fileName = fileName; 39 | } 40 | 41 | public String getFileSize() { 42 | return fileSize; 43 | } 44 | 45 | public void setFileSize(String fileSize) { 46 | this.fileSize = fileSize; 47 | } 48 | 49 | public String getFilePath() { 50 | return filePath; 51 | } 52 | 53 | public void setFilePath(String filePath) { 54 | this.filePath = filePath; 55 | } 56 | 57 | public Date getUpTime() { 58 | return upTime; 59 | } 60 | 61 | public void setUpTime(Date upTime) { 62 | this.upTime = upTime; 63 | } 64 | 65 | public int getStatus() { 66 | return status; 67 | } 68 | 69 | public void setStatus(int status) { 70 | this.status = status; 71 | } 72 | 73 | public String getUsername() { 74 | return username; 75 | } 76 | 77 | public void setUsername(String username) { 78 | this.username = username; 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/Comment.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | import java.util.Date; 4 | 5 | public class Comment { 6 | 7 | private long id; 8 | private long blogId; 9 | private long userId; 10 | private String content; 11 | private int type; 12 | private long replyUserId; 13 | private Date postTime; 14 | 15 | private String username;//扩展 16 | private String replyUsername;//扩展 17 | private String blogTitle;//扩展 18 | 19 | public long getId() { 20 | return id; 21 | } 22 | 23 | public void setId(long id) { 24 | this.id = id; 25 | } 26 | 27 | public long getBlogId() { 28 | return blogId; 29 | } 30 | 31 | public void setBlogId(long blogId) { 32 | this.blogId = blogId; 33 | } 34 | 35 | public long getUserId() { 36 | return userId; 37 | } 38 | 39 | public void setUserId(long userId) { 40 | this.userId = userId; 41 | } 42 | 43 | public String getContent() { 44 | return content; 45 | } 46 | 47 | public void setContent(String content) { 48 | this.content = content; 49 | } 50 | 51 | public int getType() { 52 | return type; 53 | } 54 | 55 | public void setType(int type) { 56 | this.type = type; 57 | } 58 | 59 | public long getReplyUserId() { 60 | return replyUserId; 61 | } 62 | 63 | public void setReplyUserId(long replyUserId) { 64 | this.replyUserId = replyUserId; 65 | } 66 | 67 | public Date getPostTime() { 68 | return postTime; 69 | } 70 | 71 | public void setPostTime(Date postTime) { 72 | this.postTime = postTime; 73 | } 74 | 75 | public String getUsername() { 76 | return username; 77 | } 78 | 79 | public void setUsername(String username) { 80 | this.username = username; 81 | } 82 | 83 | public String getReplyUsername() { 84 | return replyUsername; 85 | } 86 | 87 | public void setReplyUsername(String replyUsername) { 88 | this.replyUsername = replyUsername; 89 | } 90 | 91 | public String getBlogTitle() { 92 | return blogTitle; 93 | } 94 | 95 | public void setBlogTitle(String blogTitle) { 96 | this.blogTitle = blogTitle; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/Feedback.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | import java.util.Date; 4 | 5 | public class Feedback { 6 | 7 | private long id; 8 | private String title; 9 | private String email; 10 | private String content; 11 | private Date time; 12 | private int status; 13 | 14 | public long getId() { 15 | return id; 16 | } 17 | 18 | public void setId(long id) { 19 | this.id = id; 20 | } 21 | 22 | public String getTitle() { 23 | return title; 24 | } 25 | 26 | public void setTitle(String title) { 27 | this.title = title; 28 | } 29 | 30 | public String getEmail() { 31 | return email; 32 | } 33 | 34 | public void setEmail(String email) { 35 | this.email = email; 36 | } 37 | 38 | public String getContent() { 39 | return content; 40 | } 41 | 42 | public void setContent(String content) { 43 | this.content = content; 44 | } 45 | 46 | public Date getTime() { 47 | return time; 48 | } 49 | 50 | public void setTime(Date time) { 51 | this.time = time; 52 | } 53 | 54 | public int getStatus() { 55 | return status; 56 | } 57 | 58 | public void setStatus(int status) { 59 | this.status = status; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/Log.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | import java.util.Date; 4 | 5 | public class Log { 6 | 7 | private long id; 8 | private long userId; 9 | private String method; 10 | private String description; 11 | private String reqIp; 12 | private Date opTime; 13 | 14 | private String username;//扩展 15 | private int role;//扩展 16 | 17 | public long getId() { 18 | return id; 19 | } 20 | 21 | public void setId(long id) { 22 | this.id = id; 23 | } 24 | 25 | public long getUserId() { 26 | return userId; 27 | } 28 | 29 | public void setUserId(long userId) { 30 | this.userId = userId; 31 | } 32 | 33 | public String getMethod() { 34 | return method; 35 | } 36 | 37 | public void setMethod(String method) { 38 | this.method = method; 39 | } 40 | 41 | public String getDescription() { 42 | return description; 43 | } 44 | 45 | public void setDescription(String description) { 46 | this.description = description; 47 | } 48 | 49 | public String getReqIp() { 50 | return reqIp; 51 | } 52 | 53 | public void setReqIp(String reqIp) { 54 | this.reqIp = reqIp; 55 | } 56 | 57 | public Date getOpTime() { 58 | return opTime; 59 | } 60 | 61 | public void setOpTime(Date opTime) { 62 | this.opTime = opTime; 63 | } 64 | 65 | public String getUsername() { 66 | return username; 67 | } 68 | 69 | public void setUsername(String username) { 70 | this.username = username; 71 | } 72 | 73 | public int getRole() { 74 | return role; 75 | } 76 | 77 | public void setRole(int role) { 78 | this.role = role; 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/RCollect.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | public class RCollect { 4 | 5 | private long id; 6 | private long blogId; 7 | private long userId; 8 | 9 | public long getId() { 10 | return id; 11 | } 12 | 13 | public void setId(long id) { 14 | this.id = id; 15 | } 16 | 17 | public long getBlogId() { 18 | return blogId; 19 | } 20 | 21 | public void setBlogId(long blogId) { 22 | this.blogId = blogId; 23 | } 24 | 25 | public long getUserId() { 26 | return userId; 27 | } 28 | 29 | public void setUserId(long userId) { 30 | this.userId = userId; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/RFollow.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | public class RFollow { 4 | 5 | private long id; 6 | private long userId; 7 | private long followerId; 8 | 9 | public long getId() { 10 | return id; 11 | } 12 | 13 | public void setId(long id) { 14 | this.id = id; 15 | } 16 | 17 | public long getUserId() { 18 | return userId; 19 | } 20 | 21 | public void setUserId(long userId) { 22 | this.userId = userId; 23 | } 24 | 25 | public long getFollowerId() { 26 | return followerId; 27 | } 28 | 29 | public void setFollowerId(long followerId) { 30 | this.followerId = followerId; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/ideablog/model/Statistic.java: -------------------------------------------------------------------------------- 1 | package ideablog.model; 2 | 3 | public class Statistic { 4 | 5 | private int blogCount; 6 | private int fileCount; 7 | private int followCount; 8 | private int collectCount; 9 | 10 | public int getBlogCount() { 11 | return blogCount; 12 | } 13 | 14 | public void setBlogCount(int blogCount) { 15 | this.blogCount = blogCount; 16 | } 17 | 18 | public int getFileCount() { 19 | return fileCount; 20 | } 21 | 22 | public void setFileCount(int fileCount) { 23 | this.fileCount = fileCount; 24 | } 25 | 26 | public int getFollowCount() { 27 | return followCount; 28 | } 29 | 30 | public void setFollowCount(int followCount) { 31 | this.followCount = followCount; 32 | } 33 | 34 | public int getCollectCount() { 35 | return collectCount; 36 | } 37 | 38 | public void setCollectCount(int collectCount) { 39 | this.collectCount = collectCount; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IBlogService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.Blog; 4 | 5 | import java.util.List; 6 | 7 | public interface IBlogService { 8 | 9 | Blog selectBlogById(long id); 10 | Blog selectPublicBlogById(long id); 11 | List selectAllBlogs(); 12 | List selectNewBlogs(); 13 | List selectHotBlogs(); 14 | List selectNewBlogsByUserId(long userId); 15 | List selectCollectBlogsByUserId(long userId); 16 | List selectFollowBlogsByUserId(long followerId); 17 | Boolean insertBlog(long userId, String title, String tag, String content, String editTime, int status); 18 | Boolean updateBlogById(long id, String title, String tag, String content, String editTime); 19 | Boolean switchStatusById(long id, int status); 20 | Boolean deleteBlogById(long id); 21 | Boolean increaseViewsById(long id); 22 | Boolean increaseCollectsById(long id); 23 | Boolean decreaseCollectsById(long id); 24 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/ICloudFileService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.CloudFile; 4 | 5 | import java.util.List; 6 | 7 | public interface ICloudFileService { 8 | 9 | CloudFile selectCloudFileById(long id); 10 | List selectAllCloudFiles(); 11 | List selectCloudFilesByUserId(long userId); 12 | List selectFollowFilesByUserId(long userId); 13 | Boolean insertCloudFiles(Long userId, String fileName, String fileSize, String filePath, String upTime); 14 | Boolean switchStatusById(long id, int status); 15 | Boolean deleteCloudFileById(long id); 16 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/ICommentService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.Comment; 4 | 5 | import java.util.List; 6 | 7 | public interface ICommentService { 8 | 9 | List selectCommentsByBlogId(long blogId); 10 | List selectCommentsByReplyUserId(long replyUserId); 11 | Boolean insertComment(long blogId, long userId, String content, int type, long replyUserId, String postTime); 12 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IFeedbackService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.Feedback; 4 | 5 | import java.util.List; 6 | 7 | public interface IFeedbackService { 8 | 9 | List selectAllFeedbacks(); 10 | Boolean addFeedback(String title, String email, String content, String time); 11 | Boolean switchStatusById(long id, int status); 12 | Boolean deleteFeedbackById(long id); 13 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/ILogService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.Log; 4 | 5 | import java.util.List; 6 | 7 | public interface ILogService { 8 | 9 | List selectAllLogs(); 10 | List selectLogsByUserId(long userId); 11 | Boolean insertLog(Long userId, String method, String description, String reqIp, String opTime); 12 | Boolean deleteLogById(long id); 13 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IRCollectService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.RCollect; 4 | 5 | public interface IRCollectService { 6 | 7 | RCollect selectRCollect(long blogId, long userId); 8 | Boolean insertRCollect(long blogId, long userId); 9 | Boolean deleteRCollect(long blogId, long userId); 10 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IRFollowService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.RFollow; 4 | 5 | public interface IRFollowService { 6 | 7 | RFollow selectRFollow(long userId, long followerId); 8 | Boolean insertRFollow(long userId, long followerId); 9 | Boolean deleteRFollow(long userId, long followerId); 10 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IStatisticService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.Statistic; 4 | 5 | public interface IStatisticService { 6 | 7 | Statistic selectStatisticByUserId(long userId); 8 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/IUserService.java: -------------------------------------------------------------------------------- 1 | package ideablog.service; 2 | 3 | import ideablog.model.User; 4 | 5 | import java.util.List; 6 | 7 | public interface IUserService { 8 | 9 | User selectUserById(long id); 10 | List selectAllUsers(); 11 | User selectUserByEmail(String email); 12 | User login(String userName, String password); 13 | Boolean register(String userName, String password, String email, String regTime); 14 | Boolean updatePasswordByUserName(String userName, String password); 15 | Boolean updateInfoById(long id, int gender, int age, String province, String city, String tel); 16 | Boolean increaseFollowsById(long id); 17 | Boolean decreaseFollowsById(long id); 18 | Boolean switchStatusById(long id, int status); 19 | Boolean deleteUserById(long id); 20 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/CloudFileServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.ICloudFileDao; 4 | import ideablog.model.CloudFile; 5 | import ideablog.service.ICloudFileService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("cloudFileService") 12 | public class CloudFileServiceImpl implements ICloudFileService { 13 | 14 | @Resource 15 | private ICloudFileDao cloudFileDao; 16 | 17 | @Override 18 | public CloudFile selectCloudFileById(long id) { 19 | return this.cloudFileDao.selectCloudFileById(id); 20 | } 21 | 22 | @Override 23 | public List selectAllCloudFiles() { 24 | return this.cloudFileDao.selectAllCloudFiles(); 25 | } 26 | 27 | @Override 28 | public List selectCloudFilesByUserId(long userId) { 29 | return this.cloudFileDao.selectCloudFilesByUserId(userId); 30 | } 31 | 32 | @Override 33 | public List selectFollowFilesByUserId(long userId) { 34 | return this.cloudFileDao.selectFollowFilesByUserId(userId); 35 | } 36 | 37 | @Override 38 | public Boolean insertCloudFiles(Long userId, String fileName, String fileSize, String filePath, String upTime) { 39 | return this.cloudFileDao.insertCloudFiles(userId, fileName, fileSize, filePath, upTime); 40 | } 41 | 42 | @Override 43 | public Boolean switchStatusById(long id, int status) { 44 | return this.cloudFileDao.switchStatusById(id, status); 45 | } 46 | 47 | @Override 48 | public Boolean deleteCloudFileById(long id) { 49 | return this.cloudFileDao.deleteCloudFileById(id); 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/CommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.ICommentDao; 4 | import ideablog.model.Comment; 5 | import ideablog.service.ICommentService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("commentService") 12 | public class CommentServiceImpl implements ICommentService { 13 | 14 | @Resource 15 | private ICommentDao commentDao; 16 | 17 | @Override 18 | public List selectCommentsByBlogId(long blogId) { 19 | return this.commentDao.selectCommentsByBlogId(blogId); 20 | } 21 | 22 | @Override 23 | public List selectCommentsByReplyUserId(long replyUserId) { 24 | return this.commentDao.selectCommentsByReplyUserId(replyUserId); 25 | } 26 | 27 | @Override 28 | public Boolean insertComment(long blogId, long userId, String content, int type, long replyUserId, String postTime) { 29 | return this.commentDao.insertComment(blogId, userId, content, type, replyUserId, postTime); 30 | } 31 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/FeedbackServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.IFeedbackDao; 4 | import ideablog.model.Feedback; 5 | import ideablog.service.IFeedbackService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("feedbackService") 12 | public class FeedbackServiceImpl implements IFeedbackService { 13 | 14 | @Resource 15 | private IFeedbackDao feedbackDao; 16 | 17 | @Override 18 | public List selectAllFeedbacks() { 19 | return this.feedbackDao.selectAllFeedbacks(); 20 | } 21 | 22 | @Override 23 | public Boolean addFeedback(String title, String email, String content, String time) { 24 | return this.feedbackDao.insertFeedback(title, email, content, time); 25 | } 26 | 27 | @Override 28 | public Boolean switchStatusById(long id, int status) { 29 | return this.feedbackDao.switchStatusById(id, status); 30 | } 31 | 32 | @Override 33 | public Boolean deleteFeedbackById(long id) { 34 | return this.feedbackDao.deleteFeedbackById(id); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/LogServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.ILogDao; 4 | import ideablog.model.Log; 5 | import ideablog.service.ILogService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("logService") 12 | public class LogServiceImpl implements ILogService { 13 | 14 | @Resource 15 | private ILogDao logDao; 16 | 17 | @Override 18 | public List selectAllLogs() { 19 | return this.logDao.selectAllLogs(); 20 | } 21 | 22 | @Override 23 | public List selectLogsByUserId(long userId) { 24 | return this.logDao.selectLogsByUserId(userId); 25 | } 26 | 27 | @Override 28 | public Boolean insertLog(Long userId, String method, String description, String reqIp, String opTime) { 29 | return this.logDao.insertLog(userId, method, description, reqIp, opTime); 30 | } 31 | 32 | @Override 33 | public Boolean deleteLogById(long id) { 34 | return this.logDao.deleteLogById(id); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/RCollectServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.IRCollectDao; 4 | import ideablog.model.RCollect; 5 | import ideablog.service.IRCollectService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | 10 | @Service("rCollectService") 11 | public class RCollectServiceImpl implements IRCollectService { 12 | 13 | @Resource 14 | private IRCollectDao rCollectDao; 15 | 16 | 17 | @Override 18 | public RCollect selectRCollect(long blogId, long userId) { 19 | return this.rCollectDao.selectRCollect(blogId, userId); 20 | } 21 | 22 | @Override 23 | public Boolean insertRCollect(long blogId, long userId) { 24 | return this.rCollectDao.insertRCollect(blogId, userId); 25 | } 26 | 27 | @Override 28 | public Boolean deleteRCollect(long blogId, long userId) { 29 | return this.rCollectDao.deleteRCollect(blogId, userId); 30 | } 31 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/RFollowServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.IRFollowDao; 4 | import ideablog.model.RFollow; 5 | import ideablog.service.IRFollowService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | 10 | @Service("rFollowService") 11 | public class RFollowServiceImpl implements IRFollowService { 12 | 13 | @Resource 14 | private IRFollowDao rFollowDao; 15 | 16 | @Override 17 | public RFollow selectRFollow(long userId, long followerId) { 18 | return this.rFollowDao.selectRFollow(userId, followerId); 19 | } 20 | 21 | @Override 22 | public Boolean insertRFollow(long userId, long followerId) { 23 | return this.rFollowDao.insertRFollow(userId, followerId); 24 | } 25 | 26 | @Override 27 | public Boolean deleteRFollow(long userId, long followerId) { 28 | return this.rFollowDao.deleteRFollow(userId, followerId); 29 | } 30 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/StatisticServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.IStatisticDao; 4 | import ideablog.model.Statistic; 5 | import ideablog.service.IStatisticService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | 10 | @Service("statisticService") 11 | public class StatisticServiceImpl implements IStatisticService { 12 | 13 | @Resource 14 | private IStatisticDao statisticDao; 15 | 16 | @Override 17 | public Statistic selectStatisticByUserId(long userId) { 18 | return this.statisticDao.selectStatisticByUserId(userId); 19 | } 20 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package ideablog.service.impl; 2 | 3 | import ideablog.dao.IUserDao; 4 | import ideablog.model.User; 5 | import ideablog.service.IUserService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("userService") 12 | public class UserServiceImpl implements IUserService { 13 | 14 | @Resource 15 | private IUserDao userDao; 16 | 17 | @Override 18 | public User selectUserById(long id) { 19 | return this.userDao.selectUserById(id); 20 | } 21 | 22 | @Override 23 | public List selectAllUsers() { 24 | return this.userDao.selectAllUsers(); 25 | } 26 | 27 | @Override 28 | public User selectUserByEmail(String email) { 29 | return this.userDao.selectUserByEmail(email); 30 | } 31 | 32 | @Override 33 | public User login(String userName, String password) { 34 | return this.userDao.selectUser(userName, password); 35 | } 36 | 37 | @Override 38 | public Boolean register(String userName, String password, String email, String regTime) { 39 | return this.userDao.insertUser(userName, password, email, regTime); 40 | } 41 | 42 | @Override 43 | public Boolean updatePasswordByUserName(String userName, String password) { 44 | return this.userDao.updatePasswordByUserName(userName, password); 45 | } 46 | 47 | @Override 48 | public Boolean updateInfoById(long id, int gender, int age, String province, String city, String tel) { 49 | return this.userDao.updateInfoById(id, gender, age, province, city, tel); 50 | } 51 | 52 | @Override 53 | public Boolean increaseFollowsById(long id) { 54 | return this.userDao.increaseFollowsById(id); 55 | } 56 | 57 | @Override 58 | public Boolean decreaseFollowsById(long id) { 59 | return this.userDao.decreaseFollowsById(id); 60 | } 61 | 62 | @Override 63 | public Boolean switchStatusById(long id, int status) { 64 | return this.userDao.switchStatusById(id, status); 65 | } 66 | 67 | @Override 68 | public Boolean deleteUserById(long id) { 69 | return this.userDao.deleteUserById(id); 70 | } 71 | } -------------------------------------------------------------------------------- /src/main/java/ideablog/utils/Constant.java: -------------------------------------------------------------------------------- 1 | package ideablog.utils; 2 | 3 | public class Constant { 4 | 5 | //对应Tomcat->server.xml配置 6 | private static final String FILEBASEPATH = "E:/IdeaBlogFiles/"; 7 | // public static final String FILEBASEPATH = "/home/IdeaBlogFiles/";//云服务器版 8 | public static final String CLOUDFILEPATH = FILEBASEPATH + "cloudFile/"; 9 | public static final String HEADICONPATH = FILEBASEPATH + "headIcon/"; 10 | private static final String VIRTUALPATH = "/IdeaBlogFiles/"; 11 | public static final String HEADICONVIRTUALPATH = VIRTUALPATH + "headIcon/"; 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/ideablog/utils/Encrypt.java: -------------------------------------------------------------------------------- 1 | package ideablog.utils; 2 | 3 | import java.security.MessageDigest; 4 | import java.security.NoSuchAlgorithmException; 5 | 6 | public class Encrypt 7 | { 8 | 9 | /** 10 | * 传入文本内容,返回 SHA-256 串 11 | * 12 | * @param strText 13 | * @return 14 | */ 15 | public String SHA256(final String strText) 16 | { 17 | return SHA(strText, "SHA-256"); 18 | } 19 | 20 | /** 21 | * 传入文本内容,返回 SHA-512 串 22 | * 23 | * @param strText 24 | * @return 25 | */ 26 | public String SHA512(final String strText) 27 | { 28 | return SHA(strText, "SHA-512"); 29 | } 30 | 31 | /** 32 | * 字符串 SHA 加密 33 | * 34 | * @param strSourceText 35 | * @return 36 | */ 37 | private String SHA(final String strSourceText, final String strType) 38 | { 39 | // 返回值 40 | String strResult = null; 41 | 42 | // 是否是有效字符串 43 | if (strSourceText != null && strSourceText.length() > 0) 44 | { 45 | try 46 | { 47 | // SHA 加密开始 48 | // 创建加密对象 并傳入加密類型 49 | MessageDigest messageDigest = MessageDigest.getInstance(strType); 50 | // 传入要加密的字符串 51 | messageDigest.update(strSourceText.getBytes()); 52 | // 得到 byte 類型结果 53 | byte byteBuffer[] = messageDigest.digest(); 54 | 55 | // 將 byte 轉換爲 string 56 | StringBuffer strHexString = new StringBuffer(); 57 | // 遍歷 byte buffer 58 | for (int i = 0; i < byteBuffer.length; i++) 59 | { 60 | String hex = Integer.toHexString(0xff & byteBuffer[i]); 61 | if (hex.length() == 1) 62 | { 63 | strHexString.append('0'); 64 | } 65 | strHexString.append(hex); 66 | } 67 | // 得到返回結果 68 | strResult = strHexString.toString(); 69 | } 70 | catch (NoSuchAlgorithmException e) 71 | { 72 | e.printStackTrace(); 73 | } 74 | } 75 | 76 | return strResult; 77 | } 78 | } 79 | 80 | -------------------------------------------------------------------------------- /src/main/java/ideablog/utils/IdeaBlogMail.java: -------------------------------------------------------------------------------- 1 | package ideablog.utils; 2 | 3 | import javax.mail.Session; 4 | import javax.mail.Transport; 5 | import javax.mail.internet.InternetAddress; 6 | import javax.mail.internet.MimeMessage; 7 | import java.util.Date; 8 | import java.util.Properties; 9 | 10 | public class IdeaBlogMail { 11 | 12 | private static String myEmailAccount = "ideablog@163.com"; 13 | private static String myEmailPassword = "******";//授权码 14 | private static String myEmailSMTPHost = "smtp.163.com"; 15 | 16 | /** 17 | * 发送简单邮件 18 | * @param receiveMailAccount 19 | * @param mailSubject 20 | * @param mailContent 21 | * @throws Exception 22 | */ 23 | public static void sendMail(String receiveMailAccount, String mailSubject, String mailContent) throws Exception { 24 | 25 | Properties props = new Properties(); 26 | props.setProperty("mail.transport.protocol", "smtp"); 27 | props.setProperty("mail.smtp.host", myEmailSMTPHost); 28 | props.setProperty("mail.smtp.auth", "true"); 29 | 30 | Session session = Session.getInstance(props); 31 | session.setDebug(true); 32 | 33 | MimeMessage message = new MimeMessage(session); 34 | message.setFrom(new InternetAddress(myEmailAccount, "Idea Blog官方", "UTF-8")); 35 | message.setRecipient(MimeMessage.RecipientType.TO, new InternetAddress(receiveMailAccount, "Idea Blog用户", "UTF-8")); 36 | message.setSubject(mailSubject, "UTF-8"); 37 | message.setContent(mailContent, "text/html;charset=UTF-8"); 38 | message.setSentDate(new Date()); 39 | message.saveChanges(); 40 | 41 | Transport transport = session.getTransport(); 42 | transport.connect(myEmailAccount, myEmailPassword); 43 | transport.sendMessage(message, message.getAllRecipients()); 44 | transport.close(); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/ideablog/utils/MyTime.java: -------------------------------------------------------------------------------- 1 | package ideablog.utils; 2 | 3 | import java.sql.Date; 4 | import java.text.SimpleDateFormat; 5 | 6 | public class MyTime { 7 | 8 | public static String getMyTime() { 9 | long l = System.currentTimeMillis(); 10 | Date time = new Date(l); 11 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 12 | return sdf.format(time); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/ideablog/utils/NumberCode6.java: -------------------------------------------------------------------------------- 1 | package ideablog.utils; 2 | 3 | import java.util.Random; 4 | 5 | public class NumberCode6 { 6 | 7 | public static String getNumberCode6() { 8 | Random random = new Random(); 9 | StringBuilder result = new StringBuilder(); 10 | for(int i = 0; i < 6; i++) { 11 | result.append(random.nextInt(10)); 12 | } 13 | return result.toString(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CloudFileDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 19 | 25 | 36 | 37 | INSERT 38 | INTO cloudfile (userId, fileName, fileSize, filePath, upTime) 39 | VALUES (#{userId}, #{fileName}, #{fileSize}, #{filePath}, #{upTime}) 40 | 41 | 42 | UPDATE cloudfile 43 | SET status = #{status} 44 | WHERE id = #{id} 45 | 46 | 47 | DELETE 48 | FROM cloudfile 49 | WHERE id = #{id} 50 | 51 | -------------------------------------------------------------------------------- /src/main/resources/mapper/CommentDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 38 | 39 | INSERT 40 | INTO comment (blogId, userId, content, type, replyUserId, postTime) 41 | VALUES (#{blogId}, #{userId}, #{content}, #{type}, #{replyUserId}, #{postTime}) 42 | 43 | -------------------------------------------------------------------------------- /src/main/resources/mapper/FeedbackDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | INSERT 13 | INTO feedback (title, email, content, time) 14 | VALUES (#{title}, #{email}, #{content}, #{time}) 15 | 16 | 17 | UPDATE feedback 18 | SET status = #{status} 19 | WHERE id = #{id} 20 | 21 | 22 | DELETE 23 | FROM feedback 24 | WHERE id = #{id} 25 | 26 | -------------------------------------------------------------------------------- /src/main/resources/mapper/LogDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | INSERT 21 | INTO log (userId, method, description, reqIp, opTime) 22 | VALUES (#{userId}, #{method}, #{description}, #{reqIp}, #{opTime}) 23 | 24 | 25 | DELETE 26 | FROM log 27 | WHERE id = #{id} 28 | 29 | -------------------------------------------------------------------------------- /src/main/resources/mapper/RCollectDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | INSERT 13 | INTO r_collect (blogId, userId) 14 | VALUES (#{blogId}, #{userId}) 15 | 16 | 17 | DELETE 18 | FROM r_collect 19 | WHERE blogId = #{blogId} AND userId = #{userId} 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/mapper/RFollowDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | INSERT 13 | INTO r_follow (userId, followerId) 14 | VALUES (#{userId}, #{followerId}) 15 | 16 | 17 | DELETE 18 | FROM r_follow 19 | WHERE userId = #{userId} AND followerId = #{followerId} 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/mapper/StatisticDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 22 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 15 | 20 | 25 | 26 | INSERT 27 | INTO user (username, password, email, regTime) 28 | VALUES (#{userName}, #{password}, #{email}, #{regTime}) 29 | 30 | 31 | UPDATE user 32 | SET password = #{password} 33 | WHERE username = #{userName} 34 | 35 | 36 | UPDATE user 37 | SET gender = #{gender}, age = #{age}, province = #{province}, city = #{city}, tel = #{tel} 38 | WHERE id = #{id} 39 | 40 | 41 | UPDATE user 42 | SET follows = follows+1 43 | WHERE id = #{id} 44 | 45 | 46 | UPDATE user 47 | SET follows = follows-1 48 | WHERE id = #{id} 49 | 50 | 51 | UPDATE user 52 | SET status = #{status} 53 | WHERE id = #{id} 54 | 55 | 56 | DELETE 57 | FROM user 58 | WHERE id = #{id} 59 | 60 | -------------------------------------------------------------------------------- /src/main/resources/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/resources/sql/ideablog.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/resources/sql/ideablog.sql -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/blog_manage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

博客列表

18 |
19 |
20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/blog_square.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |

天气提醒

19 |
20 | 未获取到您城市的天气信息!请到【个人设置】修改[所在城市] 21 | ------数据来自:和风天气API------ 22 |
23 |

博客广场

24 |
25 |
26 | 综合 27 | 最新 28 | 热门 29 |
30 |
31 |
    32 | 33 |
    34 |
    35 | 36 | 37 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/cloud_file.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |

    上传文件

    21 |
    22 | 23 |
    24 |

    云端文件列表

    25 |
    26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | Idea Blog错误页面 7 | 8 | 25 | 26 |
    27 |

    抱歉!Idea Blog发生错误。

    28 |

    Sorry! An error occurred in Idea Blog.

    29 |
    30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/find.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 找回账号密码 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 | welcome 17 | 18 | 19 | 20 | 21 | 22 | 23 |

    ${null==requestScope.error?"":requestScope.error }

    24 | 25 |
    26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/follow_collect.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 |

    我的关注

    16 |
      17 | 18 |
        19 | 20 |
        21 |
        22 |

        我的收藏

        23 |
          24 | 25 |
          26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/help_about.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |

          系统简介

          14 |
          15 |

              本系统是基于Java EE的Idea博客系统,Idea意为“想法”,本系统旨在提供一个专门的、简洁的轻量级技术交流分享平台,供用户随时随地将自己好的想法发表为博客,并与其他用户讨论,达到相互学习,共同提高的目的。

          16 |

              这是本人毕业设计的选题。主要技术:前端HTML5+CSS3+JavaScript,后台SSM(SpringMVC+Spring+MyBatis)框架,服务器Tomcat,数据库MySQL。 17 | 前端框架:bootstrap(bootstrap-table/bootstrap-fileinput),编辑器插件:UEditor。

          18 |

              如果您有好的意见或建议,欢迎反馈。感谢您的支持!

          19 |
          20 |

          意见反馈

          21 |

          ${null==requestScope.status?"":requestScope.status}

          22 |
          23 | 24 | 25 | 26 | 27 |
          28 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 欢迎进入Idea Blog! 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
          16 | welcome 17 | 18 | 19 | 20 |

          ${null==requestScope.error?"":requestScope.error}

          21 | 22 | 23 | 新用户注册 24 | 找回账号密码 25 |
          26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/notice.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |

          数据统计

          15 |
          16 |
          17 |

          发布了

          0

          篇博客

          18 | 19 |
          20 |
          21 |

          上传了

          0

          个文件

          22 | 23 |
          24 |
          25 |

          关注了

          0

          位用户

          26 | 27 |
          28 |
          29 |

          收藏了

          0

          篇博客

          30 | 31 |
          32 |
          33 |

          近期通知

          34 |
          35 |
          36 |

          评论回复

          37 |
            38 | 39 |
            40 |
            41 |

            系统日志

            42 |
              43 | 44 |
              45 |
              46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/register.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | 7 | 欢迎注册Idea Blog! 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
              16 | welcome 17 | 18 | 19 | 20 | 21 |

              ${null==requestScope.error?"":requestScope.error }

              22 | 23 | 24 |
              25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/system.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" %> 2 | 3 | 4 | 5 | 6 | Idea Blog系统管理 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 35 |
              36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | IdeaBlog 8 | IdeaBlog_Alpha_0.0.1 9 | 10 | 11 | 12 | encodingFilter 13 | org.springframework.web.filter.CharacterEncodingFilter 14 | 15 | encoding 16 | UTF-8 17 | 18 | 19 | 20 | encodingFilter 21 | /* 22 | 23 | 24 | 25 | 26 | SpringMVC 27 | org.springframework.web.servlet.DispatcherServlet 28 | 29 | 30 | contextConfigLocation 31 | classpath:spring-*.xml 32 | 33 | 1 34 | true 35 | 36 | 37 | SpringMVC 38 | 39 | / 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap-fileinput/img/loading-sm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap-fileinput/img/loading-sm.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap-fileinput/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap-fileinput/img/loading.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap-table/locale/bootstrap-table-zh-CN.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * bootstrap-table - v1.11.1 - 2017-02-22 3 | * https://github.com/wenzhixin/bootstrap-table 4 | * Copyright (c) 2017 zhixin wen 5 | * Licensed MIT License 6 | */ 7 | !function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显示 "+a+" 条记录"},formatShowingRows:function(a,b,c){return"显示第 "+a+" 到第 "+b+" 条记录,总共 "+c+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-CN"])}(jQuery); -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/webapp/resources/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/webapp/resources/css/base.css: -------------------------------------------------------------------------------- 1 | *,::before,::after{ 2 | padding: 0; 3 | margin: 0; 4 | list-style: none; 5 | } 6 | body{ 7 | font-family: "微软雅黑","times new roman"; 8 | } 9 | a{ 10 | text-decoration: none; 11 | } 12 | a:hover{ 13 | text-decoration: none; 14 | } 15 | input{ 16 | border: none; 17 | } 18 | h3 { 19 | padding: 10px; 20 | } 21 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/blog_square.css: -------------------------------------------------------------------------------- 1 | #weather,#blogsquare { 2 | display: block; 3 | float: left; 4 | width: 98%; 5 | padding-left: 10px; 6 | } 7 | #blogs_filter { 8 | display: block; 9 | float: left; 10 | width: 98%; 11 | } 12 | #blogs_filter a { 13 | float: left; 14 | display: block; 15 | width: 100px; 16 | text-align: center; 17 | padding: 5px; 18 | color: #000; 19 | border-top-left-radius: 10px; 20 | border-top-right-radius: 10px; 21 | } 22 | #blogs_filter a:hover { 23 | background-color: #eee; 24 | } 25 | .tabicon { 26 | position: relative; 27 | top: 2px; 28 | right: 5px; 29 | } 30 | #bloglist { 31 | display: block; 32 | float: left; 33 | width: 98%; 34 | background-color: #eee; 35 | border-top-right-radius: 5px; 36 | } 37 | #bloglist li { 38 | display: block; 39 | float: left; 40 | width: 98%; 41 | margin-bottom: 5px; 42 | padding-left: 2px;padding-top: 5px; 43 | border-left: 2px solid #008B8B; 44 | border-bottom: 1px dotted #666; 45 | } 46 | #bloglist li a { 47 | color: dodgerblue; 48 | text-decoration: underline; 49 | } 50 | #showmore { 51 | width: 98%; 52 | text-align: center; 53 | padding: 5px; 54 | color: dodgerblue; 55 | text-decoration: underline; 56 | background: none; 57 | } 58 | .blue { 59 | color: dodgerblue; 60 | } 61 | .gray { 62 | color: #888; 63 | } 64 | .bloglist { 65 | position: relative; 66 | top: 2px; 67 | left: 0px; 68 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/css/edit_blog.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #ccc; 3 | } 4 | h3 { 5 | padding: 10px; 6 | } 7 | #blogtitle, #blogtag { 8 | margin: 10px 35px 10px 35px; 9 | width: 300px; 10 | font-size: 16px; 11 | } 12 | #saveblog, #exit { 13 | margin: 10px 20px 10px 20px; 14 | } 15 | #status { 16 | color: green; 17 | font-weight: bold; 18 | font-size: 16px; 19 | } 20 | #editor { 21 | width: 95%; 22 | height: 360px; 23 | margin: 0 auto; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/find.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(../img/bg01.jpg); 3 | } 4 | 5 | #main { 6 | background-color: #fff; 7 | width: 300px; 8 | height: 400px; 9 | margin: auto; 10 | position: absolute; 11 | top: 0; 12 | left: 0; 13 | right: 0; 14 | bottom: 0; 15 | border-radius: 10px; 16 | opacity: 0.85; 17 | } 18 | #main img { 19 | display: block; 20 | width: 300px; 21 | height: 60px; 22 | padding: 20px 0 20px 0; 23 | border-top-left-radius: 10px; 24 | border-top-right-radius: 10px; 25 | background-color: lightskyblue; 26 | } 27 | #main img:hover { 28 | background-color: gold; 29 | } 30 | #main input#username,#main input#password,#main input#confirmpass,#main input#email,#main input#code { 31 | width: 280px; 32 | font-size: 16px; 33 | margin: 2px 10px 2px 10px; 34 | padding: 10px 0 5px 0; 35 | border-bottom: 1px solid #999; 36 | } 37 | #main input#username { 38 | color: red; 39 | border-bottom: 0; 40 | } 41 | #main #error { 42 | color: red; 43 | font-weight: bold; 44 | text-align: center; 45 | } 46 | #main input#send { 47 | color: #fff; 48 | background-color: #FD7E14; 49 | border-radius: 15px; 50 | font-size: 16px; 51 | margin: 5px 30px 5px 30px; 52 | padding: 5px 20px 5px 20px; 53 | width: 240px; 54 | } 55 | #main input#find { 56 | color: #fff; 57 | background-color: #2AABD2; 58 | border-radius: 15px; 59 | font-size: 16px; 60 | margin: 5px 30px 5px 30px; 61 | padding: 5px 20px 5px 20px; 62 | width: 240px; 63 | } 64 | 65 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/follow_collect.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: dodgerblue; 3 | text-decoration: underline; 4 | } 5 | #follow { 6 | float: left; 7 | display: block; 8 | width: 50%; 9 | border-right: 1px solid #fff; 10 | } 11 | #collect { 12 | float: left; 13 | display: block; 14 | width: 49%; 15 | } 16 | ul { 17 | padding-left: 5px; 18 | } 19 | li { 20 | margin-top: 10px; 21 | padding-left: 2px; 22 | border-left: 2px solid #008B8B; 23 | border-bottom: 1px dashed #fff; 24 | } 25 | #showmorefollowfiles, #showmorefollowblogs, #showmorecollects { 26 | width: 98%; 27 | text-align: center; 28 | padding: 5px; 29 | color: dodgerblue; 30 | text-decoration: underline; 31 | margin-left: 5px; 32 | background: none; 33 | } 34 | #showmorefollowfiles { 35 | border-bottom: 1px solid #ddd; 36 | } 37 | .blue { 38 | color: dodgerblue; 39 | } 40 | .gray { 41 | color: #888; 42 | } 43 | .bloglist { 44 | position: relative; 45 | top: 2px; 46 | left: 0px; 47 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/css/help_about.css: -------------------------------------------------------------------------------- 1 | #introduce { 2 | width: 98%; 3 | padding: 0 5px 0 10px; 4 | } 5 | #feedback { 6 | text-align: center; 7 | } 8 | #feedback input#title,#feedback input#email { 9 | width: 200px; 10 | } 11 | #feedback input#submit { 12 | width: 100px; 13 | color: #fff; 14 | background-color: #2AABD2; 15 | } 16 | #feedback input#title,#feedback input#email,#feedback input#submit { 17 | font-size: 16px; 18 | margin: 10px 10px 10px 20px; 19 | border-radius: 5px; 20 | padding: 3px; 21 | } 22 | #feedback textarea#content { 23 | width: 90%; 24 | height: 200px; 25 | font-size: 16px; 26 | } 27 | #copyright { 28 | width: 100%; 29 | text-align: center; 30 | position: fixed; 31 | bottom: 10px; 32 | } 33 | #status { 34 | color: green; 35 | font-weight: bold; 36 | text-align: center; 37 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/css/login.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(../img/bg01.jpg); 3 | } 4 | 5 | #main { 6 | background-color: #fff; 7 | width: 300px; 8 | height: 350px; 9 | margin: auto; 10 | position: absolute; 11 | top: 0; 12 | left: 0; 13 | right: 0; 14 | bottom: 0; 15 | border-radius: 10px; 16 | opacity: 0.85; 17 | } 18 | #main img { 19 | display: block; 20 | width: 300px; 21 | height: 60px; 22 | padding: 20px 0 20px 0; 23 | border-top-left-radius: 10px; 24 | border-top-right-radius: 10px; 25 | background-color: springgreen; 26 | } 27 | #main img:hover { 28 | background-color: gold; 29 | } 30 | #main input#username,#main input#password { 31 | width: 280px; 32 | font-size: 16px; 33 | margin: 2px 10px 2px 10px; 34 | padding: 10px 0 5px 0; 35 | border-bottom: 1px solid #999; 36 | } 37 | #main input#remember { 38 | margin-top: 10px; 39 | margin-left: 10px; 40 | margin-bottom: 10px; 41 | } 42 | #rem { 43 | font-size: 14px; 44 | } 45 | #main #error { 46 | color: red; 47 | font-weight: bold; 48 | text-align: center; 49 | } 50 | #main input#login { 51 | color: #fff; 52 | background-color: #2AABD2; 53 | border-radius: 15px; 54 | font-size: 16px; 55 | margin: 5px 30px 5px 30px; 56 | padding: 5px 20px 5px 20px; 57 | width: 240px; 58 | } 59 | #main input#visitor { 60 | color: #fff; 61 | background-color: #FD7E14; 62 | border-radius: 15px; 63 | font-size: 16px; 64 | margin: 5px 30px 5px 30px; 65 | padding: 5px 20px 5px 20px; 66 | width: 240px; 67 | } 68 | #main a { 69 | bottom: 10px; 70 | font-weight: bold; 71 | } 72 | #main a#register { 73 | position: absolute; 74 | left: 30px; 75 | } 76 | #main a#find { 77 | position: absolute; 78 | right: 30px; 79 | } 80 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/notice.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: dodgerblue; 3 | text-decoration: underline; 4 | } 5 | #statistics { 6 | float: left; 7 | width: 98%; 8 | padding-left: 15px; 9 | margin-bottom: 10px; 10 | } 11 | #statistics div { 12 | float: left; 13 | width: 47%; 14 | height: 90px; 15 | line-height: 30px; 16 | color: #fff; 17 | border-radius: 5px; 18 | margin: 3px; 19 | padding: 5px; 20 | position: relative; 21 | } 22 | #statistics div span { 23 | font-size: 24px; 24 | } 25 | #statistics div#blogs { 26 | background-color: #007BFF; 27 | } 28 | #statistics div#files { 29 | background-color: #28A745; 30 | } 31 | #statistics div#follows { 32 | background-color: mediumpurple; 33 | } 34 | #statistics div#collects { 35 | background-color: darkcyan; 36 | } 37 | .statisticsicon { 38 | position: absolute; 39 | float: right; 40 | top: 18px; 41 | right: 40px; 42 | } 43 | #notice { 44 | float: left; 45 | width: 97%; 46 | padding-left: 20px; 47 | } 48 | #comment { 49 | float: left; 50 | width: 49%; 51 | border-right: 1px solid #fff; 52 | } 53 | #log { 54 | float: left; 55 | width: 48%; 56 | padding-left: 5px; 57 | } 58 | #notice li { 59 | margin-top: 5px; 60 | padding-left: 2px; 61 | border-left: 2px solid #008B8B; 62 | border-bottom: 1px dashed #fff; 63 | } 64 | #showmorecommentsnotice, #showmoresystemlog { 65 | width: 98%; 66 | text-align: center; 67 | padding: 5px; 68 | color: dodgerblue; 69 | text-decoration: underline; 70 | margin-left: 5px; 71 | background: none; 72 | } 73 | .blue { 74 | color: dodgerblue; 75 | } 76 | .gray { 77 | color: #888; 78 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/css/post_blog.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #ccc; 3 | } 4 | #blogtitle, #blogtag { 5 | margin: 10px 15px 10px 20px; 6 | width: 360px; 7 | font-size: 16px; 8 | } 9 | #saveblog, #postblog { 10 | margin: 10px 15px 10px 15px; 11 | } 12 | #status { 13 | color: green; 14 | font-weight: bold; 15 | font-size: 16px; 16 | text-align: center; 17 | } 18 | #editor { 19 | width: 95%; 20 | height: 360px; 21 | margin: 0 auto; 22 | } 23 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/register.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(../img/bg01.jpg); 3 | } 4 | 5 | #main { 6 | background-color: #fff; 7 | width: 300px; 8 | height: 340px; 9 | margin: auto; 10 | position: absolute; 11 | top: 0; 12 | left: 0; 13 | right: 0; 14 | bottom: 0; 15 | border-radius: 10px; 16 | opacity: 0.85; 17 | } 18 | #main img { 19 | display: block; 20 | width: 300px; 21 | height: 60px; 22 | padding: 20px 0 20px 0; 23 | border-top-left-radius: 10px; 24 | border-top-right-radius: 10px; 25 | background-color: lightskyblue; 26 | } 27 | #main img:hover { 28 | background-color: gold; 29 | } 30 | #main input#username,#main input#password,#main input#confirmpass,#main input#email { 31 | width: 280px; 32 | font-size: 16px; 33 | margin: 2px 10px 2px 10px; 34 | padding: 10px 0 5px 0; 35 | border-bottom: 1px solid #999; 36 | } 37 | #main #error { 38 | color: red; 39 | font-weight: bold; 40 | text-align: center; 41 | } 42 | #main input#register { 43 | color: #fff; 44 | background-color: #2AABD2; 45 | border-radius: 15px; 46 | font-size: 16px; 47 | margin: 20px 10px 5px 30px; 48 | padding: 5px 20px 5px 20px; 49 | width: 100px; 50 | } 51 | #main input#reset { 52 | float: right; 53 | color: #fff; 54 | background-color: #FD7E14; 55 | border-radius: 15px; 56 | font-size: 16px; 57 | margin: 20px 30px 5px 10px; 58 | padding: 5px 20px 5px 20px; 59 | width: 100px; 60 | } 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/resources/css/setting.css: -------------------------------------------------------------------------------- 1 | #accountinfo { 2 | float: left; 3 | display: block; 4 | width: 49%; 5 | border-right: 1px solid #fff; 6 | } 7 | #personinfo { 8 | float: left; 9 | display: block; 10 | width: 49%; 11 | padding-left: 5px; 12 | } 13 | label { 14 | display: block; 15 | width: 80px; 16 | height: 28px; 17 | line-height: 28px; 18 | text-align: center; 19 | margin-left: 10px; 20 | float: left; 21 | } 22 | input { 23 | display: block; 24 | width: 200px; 25 | font-size: 16px; 26 | margin: 25px auto; 27 | border-radius: 5px; 28 | padding: 5px; 29 | } 30 | table input { 31 | margin: 12.5px auto; 32 | } 33 | #modifypassword { 34 | border-top: 1px dotted #fff; 35 | width: 100%; 36 | text-align: center; 37 | } 38 | #oldpassword, #password, #confirmpass { 39 | width: 200px; 40 | } 41 | .submit { 42 | color: #fff; 43 | background-color: #2AABD2; 44 | border-radius: 15px; 45 | padding: 5px 10px 5px 10px; 46 | } 47 | #headicon { 48 | width: 100%; 49 | height: 80px; 50 | } 51 | #headicon img { 52 | width: 80px; 53 | height: 80px; 54 | border: 1px solid #007BFF; 55 | margin-left: 50px; 56 | } 57 | #myfile { 58 | display: none; 59 | } 60 | #modifyicon { 61 | position: absolute; 62 | top: 50px; 63 | right: 80px; 64 | color: #fff; 65 | background-color: #2AABD2; 66 | border-radius: 15px; 67 | width: 150px; 68 | } 69 | #modifyiconstatus { 70 | position: absolute; 71 | top: 110px; 72 | right: 85px; 73 | } 74 | .status { 75 | color: green; 76 | font-weight: bold; 77 | text-align: center; 78 | } 79 | #personinfoinput { 80 | border-top: 1px dotted #fff; 81 | margin-top: 10px; 82 | } 83 | #gender { 84 | float: left; 85 | display: inline-block; 86 | width: 200px; 87 | height: 28px; 88 | border-radius: 5px; 89 | text-align: center; 90 | } 91 | .gender { 92 | display: inline; 93 | width: 30px; 94 | margin: 5px auto; 95 | } 96 | #provinceId, #cityId { 97 | padding: 5px; 98 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/css/system.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/css/system.css -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bg01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bg01.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bg02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bg02.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bg03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bg03.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bulb.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bulb.ico -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bulb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bulb.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/img/bulb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/bulb.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/icons/clock-16-gray.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/webapp/resources/img/icons/discount.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/webapp/resources/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/logo.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/100.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/101.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/102.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/102.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/103.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/103.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/104.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/104.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/200.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/201.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/201.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/202.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/202.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/203.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/203.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/204.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/204.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/205.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/205.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/206.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/206.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/207.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/207.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/208.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/208.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/209.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/209.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/210.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/210.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/211.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/211.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/212.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/213.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/213.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/300.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/301.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/301.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/302.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/302.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/303.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/303.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/304.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/304.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/305.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/305.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/306.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/306.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/307.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/307.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/308.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/308.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/309.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/309.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/310.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/311.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/311.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/312.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/312.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/313.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/313.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/400.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/401.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/401.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/402.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/402.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/403.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/403.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/404.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/405.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/405.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/406.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/406.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/407.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/407.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/500.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/501.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/501.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/502.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/502.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/503.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/503.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/504.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/504.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/507.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/507.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/508.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/508.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/900.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/900.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/901.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/901.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/weather_icon/999.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/weather_icon/999.png -------------------------------------------------------------------------------- /src/main/webapp/resources/img/welcome_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/img/welcome_logo.png -------------------------------------------------------------------------------- /src/main/webapp/resources/js/datetime.js: -------------------------------------------------------------------------------- 1 | Date.prototype.format = function(fmt) { 2 | var o = { 3 | "M+" : this.getMonth()+1, //月份 4 | "d+" : this.getDate(), //日 5 | "h+" : this.getHours(), //小时 6 | "m+" : this.getMinutes(), //分 7 | "s+" : this.getSeconds(), //秒 8 | "q+" : Math.floor((this.getMonth()+3)/3), //季度 9 | "S" : this.getMilliseconds() //毫秒 10 | }; 11 | if(/(y+)/.test(fmt)) { 12 | fmt=fmt.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); 13 | } 14 | for(var k in o) { 15 | if(new RegExp("("+ k +")").test(fmt)){ 16 | fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length))); 17 | } 18 | } 19 | return fmt; 20 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/js/edit_blog.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | $.ajax({ 3 | type:"post", 4 | url:"showBlogById.do", 5 | dataType:"json", 6 | async:true, 7 | success:function(data){ 8 | console.log(data); 9 | $("#blogtitle").val(data.title); 10 | $("#blogtag").val(data.tag); 11 | UE.getEditor('editor').execCommand('insertHtml', data.content); 12 | }, 13 | error:function(){ 14 | console.log("error"); 15 | } 16 | }); 17 | $("#saveblog").click(function () { 18 | if(validate()) { 19 | $.ajax({ 20 | type:"post", 21 | url:"updateBlog.do?blogtitle=" + $("#blogtitle").val() + "&blogtag=" + $("#blogtag").val() + "&blogcontent=" + encodeURIComponent(UE.getEditor('editor').getContent()), 22 | async:true, 23 | success:function(data){ 24 | $("#status").html("保存成功!"); 25 | console.log("success"); 26 | }, 27 | error:function(){ 28 | console.log("error"); 29 | } 30 | }); 31 | } 32 | }); 33 | $("#exit").click(function () { 34 | window.opener=null; 35 | window.open('','_self'); 36 | window.close(); 37 | }); 38 | }); 39 | 40 | function validate() { 41 | if(document.getElementById("blogtitle").value == ""){ 42 | alert("标题不能为空!"); 43 | document.getElementById("blogtitle").focus(); 44 | return false; 45 | } 46 | if(!UE.getEditor('editor').hasContents()) { 47 | alert("亲,写点东西再提交吧!"); 48 | document.getElementById("editor").focus(); 49 | return false; 50 | } 51 | return true; 52 | } 53 | -------------------------------------------------------------------------------- /src/main/webapp/resources/js/find.js: -------------------------------------------------------------------------------- 1 | function sendCode() { 2 | var email_str = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/; 3 | var email_val = $("#email").val(); 4 | if(!email_str.test(email_val)){ 5 | alert("邮箱格式错误!请重新输入!"); 6 | $('#email').focus(); 7 | } 8 | else { 9 | var xmlhttp = new XMLHttpRequest(); 10 | xmlhttp.onreadystatechange = function () { 11 | if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 12 | $("#username").val(xmlhttp.responseText); 13 | } 14 | }; 15 | xmlhttp.open("POST", "findUser.do", true); 16 | xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 17 | xmlhttp.send("email=" + $("#email").val()); 18 | 19 | time($('#send'), 60); 20 | function time(o,wait) { 21 | if(wait == 0) { 22 | $("#email").removeAttr("disabled"); 23 | o.removeAttr("disabled"); 24 | o.val("发送邮箱验证码"); 25 | wait = 60; 26 | } 27 | else { 28 | $("#email").attr("disabled", true); 29 | o.attr("disabled", true); 30 | o.val("重新发送(" + wait + ")"); 31 | wait--; 32 | setTimeout(function(){time(o, wait)}, 1000); 33 | } 34 | } 35 | } 36 | } 37 | function validate() { 38 | var code_str = /^[0-9]{6}$/; 39 | var code_val = $("#code").val(); 40 | var pass_str = /^[A-Za-z0-9]{6,}$/; 41 | var pass_val = $("#password").val(); 42 | if(!code_str.test(code_val)) { 43 | alert("验证码格式错误!必须为6位数字"); 44 | $('#code').focus(); 45 | return false; 46 | } 47 | if($('#username').val() == '') { 48 | alert("未获取到用户名!请先发送邮箱验证码!"); 49 | $('#email').focus(); 50 | return false; 51 | } 52 | if(!pass_str.test(pass_val)) { 53 | alert("密码格式错误!必须为6位以上的字母或数字组合"); 54 | $('#password').focus(); 55 | return false; 56 | } 57 | if (pass_val != $("#confirmpass").val()) { 58 | alert("两次密码输入不一致!"); 59 | $('#confirmpass').focus(); 60 | return false; 61 | } 62 | return true; 63 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/js/help_about.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $("#submit").click(function(){ 3 | console.log(document.getElementById("title").value+document.getElementById("email").value+document.getElementById("feedbackcontent").value); 4 | }); 5 | }); 6 | function validate(){ 7 | var email_str = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/; 8 | var email_val = $("#email").val(); 9 | if($("#title").val() == ""){ 10 | alert("标题不能为空!"); 11 | $('#title').focus(); 12 | return false; 13 | } 14 | if(!email_str.test(email_val)){ 15 | alert("邮箱格式错误!请重新输入!"); 16 | $('#email').focus(); 17 | return false; 18 | } 19 | if($("#content").val() == "") { 20 | alert("亲,写点东西再提交吧!"); 21 | $('#content').focus(); 22 | return false; 23 | } 24 | return true; 25 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/js/login.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $("#visitor").click(function(){ 3 | window.location.href="visit"; 4 | }); 5 | }); 6 | function validate() { 7 | var name_str = /^[A-Za-z0-9]{4,}$/; 8 | var name_val = $("#username").val(); 9 | var pass_str = /^[A-Za-z0-9]{6,}$/; 10 | var pass_val = $("#password").val(); 11 | if(!name_str.test(name_val)){ 12 | alert("用户名格式错误!必须为4位以上的字母或数字组合"); 13 | $('#username').focus(); 14 | return false; 15 | } 16 | if(!pass_str.test(pass_val)){ 17 | alert("密码格式错误!必须为6位以上的字母或数字组合"); 18 | $('#password').focus(); 19 | return false; 20 | } 21 | return true; 22 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/js/post_blog.js: -------------------------------------------------------------------------------- 1 | function saveBlog() { 2 | if(validate()) { 3 | $.ajax({ 4 | type:"post", 5 | url:"saveBlog.do?blogtitle=" + $("#blogtitle").val() + "&blogtag=" + $("#blogtag").val() + "&blogcontent=" + encodeURIComponent(UE.getEditor('editor').getContent()), 6 | async:true, 7 | success:function(data){ 8 | $("#status").html(data); 9 | console.log("success"); 10 | reset(); 11 | }, 12 | error:function(){ 13 | console.log("error"); 14 | } 15 | }); 16 | } 17 | } 18 | function postBlog() { 19 | if(validate()) { 20 | $.ajax({ 21 | type:"post", 22 | url:"postBlog.do?blogtitle=" + $("#blogtitle").val() + "&blogtag=" + $("#blogtag").val() + "&blogcontent=" + encodeURIComponent(UE.getEditor('editor').getContent()), 23 | async:true, 24 | success:function(data){ 25 | $("#status").html(data); 26 | console.log("success"); 27 | reset(); 28 | }, 29 | error:function(){ 30 | console.log("error"); 31 | } 32 | }); 33 | } 34 | } 35 | function validate(){ 36 | if(document.getElementById("blogtitle").value == ""){ 37 | alert("标题不能为空!"); 38 | document.getElementById("blogtitle").focus(); 39 | return false; 40 | } 41 | if(!UE.getEditor('editor').hasContents()) { 42 | alert("亲,写点东西再提交吧!"); 43 | document.getElementById("editor").focus(); 44 | return false; 45 | } 46 | return true; 47 | } 48 | function reset() { 49 | document.getElementById("blogtitle").value = ""; 50 | document.getElementById("blogtag").value = ""; 51 | UE.getEditor('editor').setContent(""); 52 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/js/register.js: -------------------------------------------------------------------------------- 1 | function validate(){ 2 | var name_str = /^[A-Za-z0-9]{4,}$/; 3 | var name_val = $("#username").val(); 4 | var pass_str = /^[A-Za-z0-9]{6,}$/; 5 | var pass_val = $("#password").val(); 6 | var email_str = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/; 7 | var email_val = $("#email").val(); 8 | if(!name_str.test(name_val)){ 9 | alert("用户名格式错误!必须为4位以上的字母或数字组合"); 10 | $('#username').focus(); 11 | return false; 12 | } 13 | if(!pass_str.test(pass_val)){ 14 | alert("密码格式错误!必须为6位以上的字母或数字组合"); 15 | $('#password').focus(); 16 | return false; 17 | } 18 | if (pass_val != $("#confirmpass").val()){ 19 | alert("两次密码输入不一致!"); 20 | $('#confirmpass').focus(); 21 | return false; 22 | } 23 | if(!email_str.test(email_val)){ 24 | alert("邮箱格式错误!请重新输入!"); 25 | $('#email').focus(); 26 | return false; 27 | } 28 | return true; 29 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/anchor/anchor.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 |
              16 | 17 |
              18 | 19 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_default.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/alignicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/alignicon.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/alignicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/alignicon.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/file-icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/file-icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/image.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/progress.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/success.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/attachment/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/attachment/images/success.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/background/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/background/images/bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/background/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/background/images/success.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/chart.config.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 图表配置文件 3 | * */ 4 | 5 | 6 | //不同类型的配置 7 | var typeConfig = [ 8 | { 9 | chart: { 10 | type: 'line' 11 | }, 12 | plotOptions: { 13 | line: { 14 | dataLabels: { 15 | enabled: false 16 | }, 17 | enableMouseTracking: true 18 | } 19 | } 20 | }, { 21 | chart: { 22 | type: 'line' 23 | }, 24 | plotOptions: { 25 | line: { 26 | dataLabels: { 27 | enabled: true 28 | }, 29 | enableMouseTracking: false 30 | } 31 | } 32 | }, { 33 | chart: { 34 | type: 'area' 35 | } 36 | }, { 37 | chart: { 38 | type: 'bar' 39 | } 40 | }, { 41 | chart: { 42 | type: 'column' 43 | } 44 | }, { 45 | chart: { 46 | plotBackgroundColor: null, 47 | plotBorderWidth: null, 48 | plotShadow: false 49 | }, 50 | plotOptions: { 51 | pie: { 52 | allowPointSelect: true, 53 | cursor: 'pointer', 54 | dataLabels: { 55 | enabled: true, 56 | color: '#000000', 57 | connectorColor: '#000000', 58 | formatter: function() { 59 | return ''+ this.point.name +': '+ ( Math.round( this.point.percentage*100 ) / 100 ) +' %'; 60 | } 61 | } 62 | } 63 | } 64 | } 65 | ]; 66 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts0.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts1.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts2.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts3.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts4.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/charts/images/charts5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/charts/images/charts5.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/emotion.css: -------------------------------------------------------------------------------- 1 | .jd img{ 2 | background:transparent url(images/jxface2.gif?v=1.1) no-repeat scroll left top; 3 | cursor:pointer;width:35px;height:35px;display:block; 4 | } 5 | .pp img{ 6 | background:transparent url(images/fface.gif?v=1.1) no-repeat scroll left top; 7 | cursor:pointer;width:25px;height:25px;display:block; 8 | } 9 | .ldw img{ 10 | background:transparent url(images/wface.gif?v=1.1) no-repeat scroll left top; 11 | cursor:pointer;width:35px;height:35px;display:block; 12 | } 13 | .tsj img{ 14 | background:transparent url(images/tface.gif?v=1.1) no-repeat scroll left top; 15 | cursor:pointer;width:35px;height:35px;display:block; 16 | } 17 | .cat img{ 18 | background:transparent url(images/cface.gif?v=1.1) no-repeat scroll left top; 19 | cursor:pointer;width:35px;height:35px;display:block; 20 | } 21 | .bb img{ 22 | background:transparent url(images/bface.gif?v=1.1) no-repeat scroll left top; 23 | cursor:pointer;width:35px;height:35px;display:block; 24 | } 25 | .youa img{ 26 | background:transparent url(images/yface.gif?v=1.1) no-repeat scroll left top; 27 | cursor:pointer;width:35px;height:35px;display:block; 28 | } 29 | 30 | .smileytable td {height: 37px;} 31 | #tabPanel{margin-left:5px;overflow: hidden;} 32 | #tabContent {float:left;background:#FFFFFF;} 33 | #tabContent div{display: none;width:480px;overflow:hidden;} 34 | #tabIconReview.show{left:17px;display:block;} 35 | .menuFocus{background:#ACCD3C;} 36 | .menuDefault{background:#FFFFFF;} 37 | #tabIconReview{position:absolute;left:406px;left:398px \9;top:41px;z-index:65533;width:90px;height:76px;} 38 | img.review{width:90px;height:76px;border:2px solid #9cb945;background:#FFFFFF;background-position:center;background-repeat:no-repeat;} 39 | 40 | .wrapper .tabbody{position:relative;float:left;clear:both;padding:10px;width: 95%;} 41 | .tabbody table{width: 100%;} 42 | .tabbody td{border:1px solid #BAC498;} 43 | .tabbody td span{display: block;zoom:1;padding:0 4px;} -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/0.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/bface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/bface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/cface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/cface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/fface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/fface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/jxface2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/jxface2.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/tface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/tface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/wface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/wface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/emotion/images/yface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/emotion/images/yface.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/help/help.css: -------------------------------------------------------------------------------- 1 | .wrapper{width: 370px;margin: 10px auto;zoom: 1;} 2 | .tabbody{height: 360px;} 3 | .tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;} 4 | .tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;} 5 | .tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;} 6 | .tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;} 7 | .tabbody table thead{font-weight: bold;line-height: 25px;} -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/help/help.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-9-26 5 | * Time: 下午1:06 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | /** 9 | * tab点击处理事件 10 | * @param tabHeads 11 | * @param tabBodys 12 | * @param obj 13 | */ 14 | function clickHandler( tabHeads,tabBodys,obj ) { 15 | //head样式更改 16 | for ( var k = 0, len = tabHeads.length; k < len; k++ ) { 17 | tabHeads[k].className = ""; 18 | } 19 | obj.className = "focus"; 20 | //body显隐 21 | var tabSrc = obj.getAttribute( "tabSrc" ); 22 | for ( var j = 0, length = tabBodys.length; j < length; j++ ) { 23 | var body = tabBodys[j], 24 | id = body.getAttribute( "id" ); 25 | body.onclick = function(){ 26 | this.style.zoom = 1; 27 | }; 28 | if ( id != tabSrc ) { 29 | body.style.zIndex = 1; 30 | } else { 31 | body.style.zIndex = 200; 32 | } 33 | } 34 | 35 | } 36 | 37 | /** 38 | * TAB切换 39 | * @param tabParentId tab的父节点ID或者对象本身 40 | */ 41 | function switchTab( tabParentId ) { 42 | var tabElements = $G( tabParentId ).children, 43 | tabHeads = tabElements[0].children, 44 | tabBodys = tabElements[1].children; 45 | 46 | for ( var i = 0, length = tabHeads.length; i < length; i++ ) { 47 | var head = tabHeads[i]; 48 | if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head ); 49 | head.onclick = function () { 50 | clickHandler(tabHeads,tabBodys,this); 51 | } 52 | } 53 | } 54 | switchTab("helptab"); 55 | 56 | document.getElementById('version').innerHTML = parent.UE.version; -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/alignicon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/alignicon.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/image.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/progress.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/success.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/image/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/image/images/success.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/music/music.css: -------------------------------------------------------------------------------- 1 | .wrapper{margin: 5px 10px;} 2 | 3 | .searchBar{height:30px;padding:7px 0 3px;text-align:center;} 4 | .searchBtn{font-size:13px;height:24px;} 5 | 6 | .resultBar{width:460px;margin:5px auto;border: 1px solid #CCC;border-radius: 5px;box-shadow: 2px 2px 5px #D3D6DA;overflow: hidden;} 7 | 8 | .listPanel{overflow: hidden;} 9 | .panelon{display:block;} 10 | .paneloff{display:none} 11 | 12 | .page{width:220px;margin:20px auto;overflow: hidden;} 13 | .pageon{float:right;width:24px;line-height:24px;height:24px;margin-right: 5px;background: none;border: none;color: #000;font-weight: bold;text-align:center} 14 | .pageoff{float:right;width:24px;line-height:24px;height:24px;cursor:pointer;background-color: #fff; 15 | border: 1px solid #E7ECF0;color: #2D64B3;margin-right: 5px;text-decoration: none;text-align:center;} 16 | 17 | .m-box{width:460px;} 18 | .m-m{float: left;line-height: 20px;height: 20px;} 19 | .m-h{height:24px;line-height:24px;padding-left: 46px;background-color:#FAFAFA;border-bottom: 1px solid #DAD8D8;font-weight: bold;font-size: 12px;color: #333;} 20 | .m-l{float:left;width:40px; } 21 | .m-t{float:left;width:140px;} 22 | .m-s{float:left;width:110px;} 23 | .m-z{float:left;width:100px;} 24 | .m-try-t{float: left;width: 60px;;} 25 | 26 | .m-try{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/try_music.gif') no-repeat ;} 27 | .m-trying{float:left;width:20px;height:20px;background:url('http://static.tieba.baidu.com/tb/editor/images/stop_music.gif') no-repeat ;} 28 | 29 | .loading{width:95px;height:7px;font-size:7px;margin:60px auto;background:url(http://static.tieba.baidu.com/tb/editor/images/loading.gif) no-repeat} 30 | .empty{width:300px;height:40px;padding:2px;margin:50px auto;line-height:40px; color:#006699;text-align:center;} -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/music/music.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 插入音乐 6 | 7 | 8 | 9 | 10 |
              11 | 15 |
              16 | 17 |
              18 |
              19 |
              20 |
              21 | 22 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/preview/preview.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 21 | 22 | 23 | 24 | 25 | 26 |
              27 | 28 |
              29 | 30 | 40 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/addimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/addimg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/brush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/brush.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/delimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/delimg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/delimgH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/delimgH.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/empty.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/emptyH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/emptyH.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/eraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/eraser.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/redo.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/redoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/redoH.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/scale.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/scaleH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/scaleH.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/size.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/undo.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/scrawl/images/undoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/scrawl/images/undoH.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/snapscreen/snapscreen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 47 | 48 | 49 |
              50 |

              51 |
              52 |
              53 |
              54 |
              55 |
              56 |
              57 | 58 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/spechars/spechars.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 |
              17 |
              18 |
              19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/table/dragicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/table/dragicon.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/table/edittable.css: -------------------------------------------------------------------------------- 1 | body{ 2 | overflow: hidden; 3 | width: 540px; 4 | } 5 | .wrapper { 6 | margin: 10px auto 0; 7 | font-size: 12px; 8 | overflow: hidden; 9 | width: 520px; 10 | height: 315px; 11 | } 12 | 13 | .clear { 14 | clear: both; 15 | } 16 | 17 | .wrapper .left { 18 | float: left; 19 | margin-left: 10px;; 20 | } 21 | 22 | .wrapper .right { 23 | float: right; 24 | border-left: 2px dotted #EDEDED; 25 | padding-left: 15px; 26 | } 27 | 28 | .section { 29 | margin-bottom: 15px; 30 | width: 240px; 31 | overflow: hidden; 32 | } 33 | 34 | .section h3 { 35 | font-weight: bold; 36 | padding: 5px 0; 37 | margin-bottom: 10px; 38 | border-bottom: 1px solid #EDEDED; 39 | font-size: 12px; 40 | } 41 | 42 | .section ul { 43 | list-style: none; 44 | overflow: hidden; 45 | clear: both; 46 | 47 | } 48 | 49 | .section li { 50 | float: left; 51 | width: 120px;; 52 | } 53 | 54 | .section .tone { 55 | width: 80px;; 56 | } 57 | 58 | .section .preview { 59 | width: 220px; 60 | } 61 | 62 | .section .preview table { 63 | text-align: center; 64 | vertical-align: middle; 65 | color: #666; 66 | } 67 | 68 | .section .preview caption { 69 | font-weight: bold; 70 | } 71 | 72 | .section .preview td { 73 | border-width: 1px; 74 | border-style: solid; 75 | height: 22px; 76 | } 77 | 78 | .section .preview th { 79 | border-style: solid; 80 | border-color: #DDD; 81 | border-width: 2px 1px 1px 1px; 82 | height: 22px; 83 | background-color: #F7F7F7; 84 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/table/edittd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 |
              19 | 20 | 21 |
              22 | 60 | 61 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/table/edittip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 表格删除提示 5 | 6 | 17 | 18 | 19 |
              20 |
              21 | 22 |
              23 |
              24 | 25 |
              26 |
              27 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/bg.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/pre0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/pre0.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/pre1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/pre1.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/pre2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/pre2.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/pre3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/pre3.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/images/pre4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/template/images/pre4.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/template.css: -------------------------------------------------------------------------------- 1 | .wrap{ padding: 5px;font-size: 14px;} 2 | .left{width:425px;float: left;} 3 | .right{width:160px;border: 1px solid #ccc;float: right;padding: 5px;margin-right: 5px;} 4 | .right .pre{height: 332px;overflow-y: auto;} 5 | .right .preitem{border: white 1px solid;margin: 5px 0;padding: 2px 0;} 6 | .right .preitem:hover{background-color: lemonChiffon;cursor: pointer;border: #ccc 1px solid;} 7 | .right .preitem img{display: block;margin: 0 auto;width:100px;} 8 | .clear{clear: both;} 9 | .top{height:26px;line-height: 26px;padding: 5px;} 10 | .bottom{height:320px;width:100%;margin: 0 auto;} 11 | .transparent{ background: url("images/bg.gif") repeat;} 12 | .bottom table tr td{border:1px dashed #ccc;} 13 | #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;} 14 | .border_style1{padding:2px;border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;} 15 | p{margin: 5px 0} 16 | table{clear:both;margin-bottom:10px;border-collapse:collapse;word-break:break-all;} 17 | li{clear:both} 18 | ol{padding-left:40px; } -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
              11 |
              12 |
              13 | 14 |
              15 |
              16 |
              17 |
              18 | 19 |
              20 |
              21 |
              22 |
              23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/template/template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-8-8 5 | * Time: 下午2:09 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | (function () { 9 | var me = editor, 10 | preview = $G( "preview" ), 11 | preitem = $G( "preitem" ), 12 | tmps = templates, 13 | currentTmp; 14 | var initPre = function () { 15 | var str = ""; 16 | for ( var i = 0, tmp; tmp = tmps[i++]; ) { 17 | str += '
              '; 18 | } 19 | preitem.innerHTML = str; 20 | }; 21 | var pre = function ( n ) { 22 | var tmp = tmps[n - 1]; 23 | currentTmp = tmp; 24 | clearItem(); 25 | domUtils.setStyles( preitem.childNodes[n - 1], { 26 | "background-color":"lemonChiffon", 27 | "border":"#ccc 1px solid" 28 | } ); 29 | preview.innerHTML = tmp.preHtml ? tmp.preHtml : ""; 30 | }; 31 | var clearItem = function () { 32 | var items = preitem.children; 33 | for ( var i = 0, item; item = items[i++]; ) { 34 | domUtils.setStyles( item, { 35 | "background-color":"", 36 | "border":"white 1px solid" 37 | } ); 38 | } 39 | }; 40 | dialog.onok = function () { 41 | if ( !$G( "issave" ).checked ){ 42 | me.execCommand( "cleardoc" ); 43 | } 44 | var obj = { 45 | html:currentTmp && currentTmp.html 46 | }; 47 | me.execCommand( "template", obj ); 48 | }; 49 | initPre(); 50 | window.pre = pre; 51 | pre(2) 52 | 53 | })(); -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/center_focus.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/file-icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/file-icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/image.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/left_focus.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/none_focus.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/progress.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/right_focus.jpg -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/success.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/video/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/video/images/success.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/wordimage/fClipboard_ueditor.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/wordimage/fClipboard_ueditor.swf -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/dialogs/wordimage/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/dialogs/wordimage/imageUploader.swf -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/addimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/addimage.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/alldeletebtnhoverskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/alldeletebtnhoverskin.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/alldeletebtnupskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/alldeletebtnupskin.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/background.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/button.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/copy.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/deletedisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/deletedisable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/deleteenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/deleteenable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/listbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/listbackground.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/localimage.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/music.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/rotateleftdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/rotateleftdisable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/rotateleftenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/rotateleftenable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/rotaterightdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/rotaterightdisable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/rotaterightenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/rotaterightenable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/en/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/en/images/upload.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/zh-cn/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/zh-cn/images/copy.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/zh-cn/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/zh-cn/images/localimage.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/zh-cn/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/zh-cn/images/music.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/lang/zh-cn/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/lang/zh-cn/images/upload.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/dialogbase.css: -------------------------------------------------------------------------------- 1 | /*弹出对话框页面样式组件 2 | */ 3 | 4 | /*reset 5 | */ 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, font, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td { 15 | margin: 0; 16 | padding: 0; 17 | outline: 0; 18 | font-size: 100%; 19 | } 20 | 21 | body { 22 | line-height: 1; 23 | } 24 | 25 | ol, ul { 26 | list-style: none; 27 | } 28 | 29 | blockquote, q { 30 | quotes: none; 31 | } 32 | 33 | ins { 34 | text-decoration: none; 35 | } 36 | 37 | del { 38 | text-decoration: line-through; 39 | } 40 | 41 | table { 42 | border-collapse: collapse; 43 | border-spacing: 0; 44 | } 45 | 46 | /*module 47 | */ 48 | body { 49 | background-color: #fff; 50 | font: 12px/1.5 sans-serif, "宋体", "Arial Narrow", HELVETICA; 51 | color: #646464; 52 | } 53 | 54 | /*tab*/ 55 | .tabhead { 56 | position: relative; 57 | z-index: 10; 58 | } 59 | 60 | .tabhead span { 61 | display: inline-block; 62 | padding: 0 5px; 63 | height: 30px; 64 | border: 1px solid #ccc; 65 | background: url("images/dialog-title-bg.png") repeat-x; 66 | text-align: center; 67 | line-height: 30px; 68 | cursor: pointer; 69 | *margin-right: 5px; 70 | } 71 | 72 | .tabhead span.focus { 73 | height: 31px; 74 | border-bottom: none; 75 | background: #fff; 76 | } 77 | 78 | .tabbody { 79 | position: relative; 80 | top: -1px; 81 | margin: 0 auto; 82 | border: 1px solid #ccc; 83 | } 84 | 85 | /*button*/ 86 | a.button { 87 | display: block; 88 | text-align: center; 89 | line-height: 24px; 90 | text-decoration: none; 91 | height: 24px; 92 | width: 95px; 93 | border: 0; 94 | color: #838383; 95 | background: url(../../themes/default/images/icons-all.gif) no-repeat; 96 | } 97 | 98 | a.button:hover { 99 | background-position: 0 -30px; 100 | } -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/anchor.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/arrow.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/arrow_down.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/arrow_up.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/button-bg.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/cancelbutton.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/charts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/charts.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/cursor_h.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/cursor_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/cursor_h.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/cursor_v.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/cursor_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/cursor_v.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/dialog-title-bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/filescan.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/highlighted.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/icons-all.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/icons.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/icons.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/loaderror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/loaderror.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/loading.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/lock.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/pagebreak.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/scale.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/sortable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/sortable.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/spacer.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/sparator_v.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/table-cell-align.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/table-cell-align.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/tangram-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/tangram-colorpicker.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/toolbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/toolbar_bg.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/unhighlighted.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/upload.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/videologo.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/word.gif -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/default/images/wordpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/themes/default/images/wordpaste.png -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/themes/iframe.css: -------------------------------------------------------------------------------- 1 | /*可以在这里添加你自己的css*/ 2 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/highcharts/adapters/mootools-adapter.js: -------------------------------------------------------------------------------- 1 | /* 2 | Highcharts JS v3.0.6 (2013-10-04) 3 | MooTools adapter 4 | 5 | (c) 2010-2013 Torstein Hønsi 6 | 7 | License: www.highcharts.com/license 8 | */ 9 | (function(){var e=window,h=document,f=e.MooTools.version.substring(0,3),i=f==="1.2"||f==="1.1",j=i||f==="1.3",g=e.$extend||function(){return Object.append.apply(Object,arguments)};e.HighchartsAdapter={init:function(a){var b=Fx.prototype,c=b.start,d=Fx.Morph.prototype,e=d.compute;b.start=function(b,d){var e=this.element;if(b.d)this.paths=a.init(e,e.d,this.toD);c.apply(this,arguments);return this};d.compute=function(b,c,d){var f=this.paths;if(f)this.element.attr("d",a.step(f[0],f[1],d,this.toD));else return e.apply(this, 10 | arguments)}},adapterRun:function(a,b){if(b==="width"||b==="height")return parseInt($(a).getStyle(b),10)},getScript:function(a,b){var c=h.getElementsByTagName("head")[0],d=h.createElement("script");d.type="text/javascript";d.src=a;d.onload=b;c.appendChild(d)},animate:function(a,b,c){var d=a.attr,f=c&&c.complete;if(d&&!a.setStyle)a.getStyle=a.attr,a.setStyle=function(){var a=arguments;this.attr.call(this,a[0],a[1][0])},a.$family=function(){return!0};e.HighchartsAdapter.stop(a);c=new Fx.Morph(d?a:$(a), 11 | g({transition:Fx.Transitions.Quad.easeInOut},c));if(d)c.element=a;if(b.d)c.toD=b.d;f&&c.addEvent("complete",f);c.start(b);a.fx=c},each:function(a,b){return i?$each(a,b):Array.each(a,b)},map:function(a,b){return a.map(b)},grep:function(a,b){return a.filter(b)},inArray:function(a,b,c){return b?b.indexOf(a,c):-1},offset:function(a){a=a.getPosition();return{left:a.x,top:a.y}},extendWithEvents:function(a){a.addEvent||(a.nodeName?$(a):g(a,new Events))},addEvent:function(a,b,c){typeof b==="string"&&(b=== 12 | "unload"&&(b="beforeunload"),e.HighchartsAdapter.extendWithEvents(a),a.addEvent(b,c))},removeEvent:function(a,b,c){typeof a!=="string"&&a.addEvent&&(b?(b==="unload"&&(b="beforeunload"),c?a.removeEvent(b,c):a.removeEvents&&a.removeEvents(b)):a.removeEvents())},fireEvent:function(a,b,c,d){b={type:b,target:a};b=j?new Event(b):new DOMEvent(b);b=g(b,c);if(!b.target&&b.event)b.target=b.event.target;b.preventDefault=function(){d=null};a.fireEvent&&a.fireEvent(b.type,b);d&&d(b)},washMouseEvent:function(a){if(a.page)a.pageX= 13 | a.page.x,a.pageY=a.page.y;return a},stop:function(a){a.fx&&a.fx.cancel()}}})(); 14 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/highcharts/modules/funnel.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Highcharts funnel module, Beta 4 | 5 | (c) 2010-2012 Torstein Hønsi 6 | 7 | License: www.highcharts.com/license 8 | */ 9 | (function(d){var u=d.getOptions().plotOptions,p=d.seriesTypes,D=d.merge,z=function(){},A=d.each;u.funnel=D(u.pie,{center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",dataLabels:{connectorWidth:1,connectorColor:"#606060"},size:!0,states:{select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}}});p.funnel=d.extendClass(p.pie,{type:"funnel",animate:z,translate:function(){var a=function(k,a){return/%$/.test(k)?a*parseInt(k,10)/100:parseInt(k,10)},g=0,e=this.chart,f=e.plotWidth, 10 | e=e.plotHeight,h=0,c=this.options,C=c.center,b=a(C[0],f),d=a(C[0],e),p=a(c.width,f),i,q,j=a(c.height,e),r=a(c.neckWidth,f),s=a(c.neckHeight,e),v=j-s,a=this.data,w,x,u=c.dataLabels.position==="left"?1:0,y,m,B,n,l,t,o;this.getWidthAt=q=function(k){return k>j-s||j===s?r:r+(p-r)*((j-s-k)/(j-s))};this.getX=function(k,a){return b+(a?-1:1)*(q(k)/2+c.dataLabels.distance)};this.center=[b,d,j];this.centerX=b;A(a,function(a){g+=a.y});A(a,function(a){o=null;x=g?a.y/g:0;m=d-j/2+h*j;l=m+x*j;i=q(m);y=b-i/2;B=y+ 11 | i;i=q(l);n=b-i/2;t=n+i;m>v?(y=n=b-r/2,B=t=b+r/2):l>v&&(o=l,i=q(v),n=b-i/2,t=n+i,l=v);w=["M",y,m,"L",B,m,t,l];o&&w.push(t,o,n,o);w.push(n,l,"Z");a.shapeType="path";a.shapeArgs={d:w};a.percentage=x*100;a.plotX=b;a.plotY=(m+(o||l))/2;a.tooltipPos=[b,a.plotY];a.slice=z;a.half=u;h+=x});this.setTooltipPoints()},drawPoints:function(){var a=this,g=a.options,e=a.chart.renderer;A(a.data,function(f){var h=f.graphic,c=f.shapeArgs;h?h.animate(c):f.graphic=e.path(c).attr({fill:f.color,stroke:g.borderColor,"stroke-width":g.borderWidth}).add(a.group)})}, 12 | sortByAngle:z,drawDataLabels:function(){var a=this.data,g=this.options.dataLabels.distance,e,f,h,c=a.length,d,b;for(this.center[2]-=2*g;c--;)h=a[c],f=(e=h.half)?1:-1,b=h.plotY,d=this.getX(b,e),h.labelPos=[0,b,d+(g-5)*f,b,d+g*f,b,e?"right":"left",0];p.pie.prototype.drawDataLabels.call(this)}})})(Highcharts); 13 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/highcharts/modules/heatmap.js: -------------------------------------------------------------------------------- 1 | (function(b){var k=b.seriesTypes,l=b.each;k.heatmap=b.extendClass(k.map,{colorKey:"z",useMapGeometry:!1,pointArrayMap:["y","z"],translate:function(){var c=this,b=c.options,i=Number.MAX_VALUE,j=Number.MIN_VALUE;c.generatePoints();l(c.data,function(a){var e=a.x,f=a.y,d=a.z,g=(b.colsize||1)/2,h=(b.rowsize||1)/2;a.path=["M",e-g,f-h,"L",e+g,f-h,"L",e+g,f+h,"L",e-g,f+h,"Z"];a.shapeType="path";a.shapeArgs={d:c.translatePath(a.path)};typeof d==="number"&&(d>j?j=d:d dataMax) { 39 | dataMax = value; 40 | } else if (value < dataMin) { 41 | dataMin = value; 42 | } 43 | } 44 | }); 45 | 46 | series.translateColors(dataMin, dataMax); 47 | }, 48 | 49 | getBox: function () {} 50 | 51 | }); 52 | 53 | }(Highcharts)); 54 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/highcharts/modules/no-data-to-display.js: -------------------------------------------------------------------------------- 1 | /* 2 | Highcharts JS v3.0.6 (2013-10-04) 3 | Plugin for displaying a message when there is no data visible in chart. 4 | 5 | (c) 2010-2013 Highsoft AS 6 | Author: Øystein Moseng 7 | 8 | License: www.highcharts.com/license 9 | */ 10 | (function(c){function f(){return!!this.points.length}function g(){this.hasData()?this.hideNoData():this.showNoData()}var d=c.seriesTypes,e=c.Chart.prototype,h=c.getOptions(),i=c.extend;i(h.lang,{noData:"No data to display"});h.noData={position:{x:0,y:0,align:"center",verticalAlign:"middle"},attr:{},style:{fontWeight:"bold",fontSize:"12px",color:"#60606a"}};d.pie.prototype.hasData=f;if(d.gauge)d.gauge.prototype.hasData=f;if(d.waterfall)d.waterfall.prototype.hasData=f;c.Series.prototype.hasData=function(){return this.dataMax!== 11 | void 0&&this.dataMin!==void 0};e.showNoData=function(a){var b=this.options,a=a||b.lang.noData,b=b.noData;if(!this.noDataLabel)this.noDataLabel=this.renderer.label(a,0,0,null,null,null,null,null,"no-data").attr(b.attr).css(b.style).add(),this.noDataLabel.align(i(this.noDataLabel.getBBox(),b.position),!1,"plotBox")};e.hideNoData=function(){if(this.noDataLabel)this.noDataLabel=this.noDataLabel.destroy()};e.hasData=function(){for(var a=this.series,b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0; 12 | return!1};e.callbacks.push(function(a){c.addEvent(a,"load",g);c.addEvent(a,"redraw",g)})})(Highcharts); 13 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/highcharts/themes/skies.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Skies theme for Highcharts JS 3 | * @author Torstein Hønsi 4 | */ 5 | 6 | Highcharts.theme = { 7 | colors: ["#514F78", "#42A07B", "#9B5E4A", "#72727F", "#1F949A", "#82914E", "#86777F", "#42A07B"], 8 | chart: { 9 | className: 'skies', 10 | borderWidth: 0, 11 | plotShadow: true, 12 | plotBackgroundImage: 'http://www.highcharts.com/demo/gfx/skies.jpg', 13 | plotBackgroundColor: { 14 | linearGradient: [0, 0, 250, 500], 15 | stops: [ 16 | [0, 'rgba(255, 255, 255, 1)'], 17 | [1, 'rgba(255, 255, 255, 0)'] 18 | ] 19 | }, 20 | plotBorderWidth: 1 21 | }, 22 | title: { 23 | style: { 24 | color: '#3E576F', 25 | font: '16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif' 26 | } 27 | }, 28 | subtitle: { 29 | style: { 30 | color: '#6D869F', 31 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif' 32 | } 33 | }, 34 | xAxis: { 35 | gridLineWidth: 0, 36 | lineColor: '#C0D0E0', 37 | tickColor: '#C0D0E0', 38 | labels: { 39 | style: { 40 | color: '#666', 41 | fontWeight: 'bold' 42 | } 43 | }, 44 | title: { 45 | style: { 46 | color: '#666', 47 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif' 48 | } 49 | } 50 | }, 51 | yAxis: { 52 | alternateGridColor: 'rgba(255, 255, 255, .5)', 53 | lineColor: '#C0D0E0', 54 | tickColor: '#C0D0E0', 55 | tickWidth: 1, 56 | labels: { 57 | style: { 58 | color: '#666', 59 | fontWeight: 'bold' 60 | } 61 | }, 62 | title: { 63 | style: { 64 | color: '#666', 65 | font: '12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif' 66 | } 67 | } 68 | }, 69 | legend: { 70 | itemStyle: { 71 | font: '9pt Trebuchet MS, Verdana, sans-serif', 72 | color: '#3E576F' 73 | }, 74 | itemHoverStyle: { 75 | color: 'black' 76 | }, 77 | itemHiddenStyle: { 78 | color: 'silver' 79 | } 80 | }, 81 | labels: { 82 | style: { 83 | color: '#3E576F' 84 | } 85 | } 86 | }; 87 | 88 | // Apply the theme 89 | var highchartsOptions = Highcharts.setOptions(Highcharts.theme); 90 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/snapscreen/UEditorSnapscreen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/snapscreen/UEditorSnapscreen.exe -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.eot -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.ttf -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/video-js/font/vjs.woff -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/video-js/video-js.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/video-js/video-js.swf -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/webuploader/Uploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/webuploader/Uploader.swf -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/webuploader/webuploader.css: -------------------------------------------------------------------------------- 1 | .webuploader-container { 2 | position: relative; 3 | } 4 | .webuploader-element-invisible { 5 | position: absolute !important; 6 | clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 7 | clip: rect(1px,1px,1px,1px); 8 | } 9 | .webuploader-pick { 10 | position: relative; 11 | display: inline-block; 12 | cursor: pointer; 13 | background: #00b7ee; 14 | padding: 10px 15px; 15 | color: #fff; 16 | text-align: center; 17 | border-radius: 3px; 18 | overflow: hidden; 19 | } 20 | .webuploader-pick-hover { 21 | background: #00a2d4; 22 | } 23 | 24 | .webuploader-pick-disable { 25 | opacity: 0.6; 26 | pointer-events:none; 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/main/webapp/resources/ueditor/third-party/zeroclipboard/ZeroClipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/src/main/webapp/resources/ueditor/third-party/zeroclipboard/ZeroClipboard.swf -------------------------------------------------------------------------------- /效果图/0-0登录.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/0-0登录.jpg -------------------------------------------------------------------------------- /效果图/0-1注册.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/0-1注册.jpg -------------------------------------------------------------------------------- /效果图/0-2找回.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/0-2找回.jpg -------------------------------------------------------------------------------- /效果图/10查看博客.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/10查看博客.png -------------------------------------------------------------------------------- /效果图/1主页.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/1主页.jpg -------------------------------------------------------------------------------- /效果图/2发布博客.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/2发布博客.jpg -------------------------------------------------------------------------------- /效果图/3关注收藏.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/3关注收藏.jpg -------------------------------------------------------------------------------- /效果图/4博客管理.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/4博客管理.jpg -------------------------------------------------------------------------------- /效果图/5云端文件.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/5云端文件.jpg -------------------------------------------------------------------------------- /效果图/6通知中心.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/6通知中心.jpg -------------------------------------------------------------------------------- /效果图/7个人设置.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/7个人设置.jpg -------------------------------------------------------------------------------- /效果图/8帮助关于.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/8帮助关于.jpg -------------------------------------------------------------------------------- /效果图/9-0管理员-主页.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-0管理员-主页.jpg -------------------------------------------------------------------------------- /效果图/9-1管理员-管理首页(系统日志).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-1管理员-管理首页(系统日志).jpg -------------------------------------------------------------------------------- /效果图/9-2管理员-公开博客.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-2管理员-公开博客.jpg -------------------------------------------------------------------------------- /效果图/9-3管理员-共享文件.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-3管理员-共享文件.jpg -------------------------------------------------------------------------------- /效果图/9-4管理员-反馈.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-4管理员-反馈.jpg -------------------------------------------------------------------------------- /效果图/9-5管理员-用户.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/9-5管理员-用户.jpg -------------------------------------------------------------------------------- /效果图/邮件-欢迎.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/邮件-欢迎.jpg -------------------------------------------------------------------------------- /效果图/邮件-验证码.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/du2959/IdeaBlog/6ea5bb2e048fec08a71f34acb78e94f227ed6595/效果图/邮件-验证码.jpg --------------------------------------------------------------------------------