├── .gitignore ├── Gruntfile.js ├── LICENSE ├── README.md ├── app.js ├── bin └── www ├── common ├── email.js ├── upload.js └── util.js ├── config.js ├── dao ├── blogsDao.js ├── classifyDao.js ├── commentsDao.js ├── dbDao.js ├── friendsDao.js ├── tagsDao.js ├── usersDao.js └── websiteDao.js ├── package.json ├── public ├── assets │ └── font-awesome │ │ ├── css │ │ └── font-awesome.css │ │ └── font │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfontd41d.eot │ │ ├── fontawesome-webfontf77b.eot │ │ ├── fontawesome-webfontf77b.ttf │ │ └── fontawesome-webfontf77b.woff ├── common │ └── util.js ├── dist │ ├── back.min.css │ ├── back.min.js │ ├── comments.min.css │ ├── comments.min.js │ ├── main.min.css │ └── main.min.js ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── images │ ├── icon │ │ └── favicon.ico │ └── pic │ │ ├── defaulthead1.png │ │ ├── defaulthead2.png │ │ ├── defaulthead3.png │ │ ├── defaulthead4.png │ │ ├── defaulthead5.png │ │ ├── defaulthead6.png │ │ ├── defaulthead7.png │ │ ├── error.png │ │ └── head.jpg ├── javascripts │ ├── back │ │ ├── admin.js │ │ ├── allarticle.js │ │ ├── friendsconfig.js │ │ ├── index.js │ │ ├── media.js │ │ ├── write.js │ │ └── wsconfig.js │ ├── common │ │ └── util.js │ ├── front │ │ ├── index.js │ │ ├── login.js │ │ ├── loginconnect.js │ │ ├── pjax-loading.js │ │ ├── start.js │ │ └── tags.js │ └── libs │ │ ├── bootstrap.min.js │ │ ├── comments.js │ │ ├── jquery-2.1.4.min.js │ │ ├── jquery.cookie.js │ │ ├── jquery.pjax.js │ │ ├── jquery.scrollTo.min.js │ │ └── tagcanvas.min.js ├── stylesheets │ ├── back.css │ ├── comments.css │ ├── libs │ │ ├── bootstrap-reset.css │ │ ├── bootstrap.min.css │ │ ├── owl.carousel.css │ │ └── style-responsive.css │ └── style.css ├── 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 │ ├── index.html │ ├── 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 │ ├── nodejs │ │ └── config.json │ ├── 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 │ │ │ └── shCoreDjango.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 └── upload │ └── img │ ├── blog │ └── tj.svg │ └── friends │ └── tj.svg ├── routes ├── admin.js ├── article.js ├── comments.js ├── index.js ├── ueditor.js └── users.js ├── screenshot1.png ├── screenshot2.png ├── screenshot3.png └── views ├── back ├── admin.html ├── allarticle.html ├── friendsconfig.html ├── index.html ├── mediaImg.html ├── write.html └── wsconfig.html ├── error.html └── front └── themes └── default ├── alert.html ├── article.html ├── connect.html ├── darkness.html ├── footer.html ├── friendslink.html ├── header.html ├── index.html ├── loading.html ├── login.html ├── messageboard.html └── start.html /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /.vscode/ 3 | /typings/ 4 | /public/upload/images/ 5 | /.idea/ 6 | .DS_Store 7 | .ftpconfig 8 | npm-debug.log 9 | package-lock.json 10 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | grunt.initConfig({ 3 | clean: { 4 | cleanAll: ['public/dist'], 5 | cleanJS: ['public/dist/main.js', 'public/dist/back.js'] 6 | }, 7 | concat: { 8 | options: { 9 | }, 10 | frontDist: { 11 | src: ['public/javascripts/common/*.js', 'public/javascripts/front/*.js'], 12 | dest: 'public/dist/main.js' 13 | }, 14 | backDist: { 15 | src: ['public/javascripts/back/*.js'], 16 | dest: 'public/dist/back.js' 17 | } 18 | }, 19 | uglify: { 20 | frontJS: { 21 | src: 'public/dist/main.js', 22 | dest: 'public/dist/main.min.js' 23 | }, 24 | backJS: { 25 | src: 'public/dist/back.js', 26 | dest: 'public/dist/back.min.js' 27 | }, 28 | commentsJS: { 29 | src: 'public/javascripts/libs/comments.js', 30 | dest: 'public/dist/comments.min.js' 31 | } 32 | }, 33 | cssmin: { 34 | frontCss: { 35 | src: 'public/stylesheets/style.css', 36 | dest: 'public/dist/main.min.css' 37 | }, 38 | backCss: { 39 | src: 'public/stylesheets/back.css', 40 | dest: 'public/dist/back.min.css' 41 | }, 42 | commentsCss: { 43 | src: 'public/stylesheets/comments.css', 44 | dest: 'public/dist/comments.min.css' 45 | } 46 | } 47 | }); 48 | grunt.loadNpmTasks('grunt-contrib-clean'); 49 | grunt.loadNpmTasks('grunt-contrib-uglify'); 50 | grunt.loadNpmTasks('grunt-contrib-concat'); 51 | grunt.loadNpmTasks('grunt-css'); 52 | 53 | grunt.registerTask('default', ['clean:cleanAll', 'concat', 'uglify', 'cssmin', 'clean:cleanJS']); 54 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 CNO 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const express = require('express'); 4 | const path = require('path'); 5 | const favicon = require('serve-favicon'); 6 | const logger = require('morgan'); 7 | const cookieParser = require('cookie-parser'); 8 | const bodyParser = require('body-parser'); 9 | const mysql = require('mysql'); 10 | const fs = require('fs'); 11 | const crypto = require('crypto'); 12 | const ueditor = require("ueditor"); 13 | const pjax = require("express-pjax"); 14 | 15 | const routes = require('./routes/index'); 16 | const users = require('./routes/users'); 17 | const admin = require('./routes/admin'); 18 | const ue = require('./routes/ueditor'); 19 | const comments = require('./routes/comments'); 20 | 21 | const theme = require('./config').theme; 22 | 23 | const app = express(); 24 | // const accessLogStream = fs.createWriteStream('./logs/access.log', {flags: 'a'}); 25 | // const errorLogfile = fs.createWriteStream('./logs/error.log', {flags: 'a'}); 26 | 27 | // view engine setup 28 | app.set('views', path.join(__dirname, 'views')); 29 | app.set('view engine', 'html'); 30 | app.engine('.html',require('ejs').__express); 31 | 32 | // uncomment after placing your favicon in /public 33 | //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); 34 | app.use(logger('dev')); 35 | //app.use(logger('combined', {stream: accessLogStream})); 36 | app.use(bodyParser.json()); 37 | app.use(bodyParser.urlencoded({ extended: false })); 38 | app.use(cookieParser()); 39 | // 静态资源 40 | app.use(express.static(path.join(__dirname, 'public'))); 41 | app.use('/theme', express.static(path.join(__dirname, `views/front/themes/${theme}/public`))); 42 | app.use(pjax()); 43 | 44 | app.use('/', routes); 45 | app.use('/admin', admin); 46 | app.use('/ueditor', ue); 47 | app.use('/users', users); 48 | app.use('/comments', comments); 49 | 50 | // catch 404 and forward to error handler 51 | app.use(function(req, res) { 52 | const err = new Error('Not Found'); 53 | res.render('error', { 54 | message: err.message, 55 | error: err 56 | }); 57 | // next(err); 58 | }); 59 | 60 | // error handlers 61 | 62 | // development error handler 63 | // will print stacktrace 64 | if (app.get('env') === 'development') { 65 | app.use(function(err, req, res) { 66 | res.status(err.status || 500); 67 | res.render('error', { 68 | message: err.message, 69 | error: err 70 | }); 71 | }); 72 | } 73 | 74 | // production error handler 75 | // no stacktraces leaked to user 76 | app.use(function(err, req, res) { 77 | // const meta = '[' + new Date() + '] ' + req.url + '\n'; 78 | // errorLogfile.write(meta + err.stack + '\n'); 79 | res.status(err.status || 500); 80 | res.render('error', { 81 | message: err.message, 82 | error: {} 83 | }); 84 | }); 85 | 86 | 87 | module.exports = app; -------------------------------------------------------------------------------- /bin/www: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Module dependencies. 5 | */ 6 | 7 | var fs = require('fs'); 8 | var app = require('../app'); 9 | var debug = require('debug')('Spruche:server'); 10 | var http = require('http'); 11 | // var https = require('https'); 12 | 13 | /* 14 | var privateKey = fs.readFileSync('./ssl/node.key', 'utf8'); 15 | var certificate = fs.readFileSync('./ssl/node.crt', 'utf8'); 16 | 17 | var credentials = { 18 | key: privateKey, //key 19 | cert: certificate, //cert 20 | passphrase: '******' //password 21 | }; 22 | */ 23 | 24 | /** 25 | * Get port from environment and store in Express. 26 | */ 27 | 28 | var port = normalizePort(process.env.PORT || '3000'); 29 | app.set('port', port); 30 | 31 | /** 32 | * Create HTTP server. 33 | */ 34 | 35 | var server = http.createServer(app); 36 | // var httpsServer = https.createServer(credentials, app); 37 | 38 | /** 39 | * Listen on provided port, on all network interfaces. 40 | */ 41 | 42 | server.listen(port); 43 | server.on('error', onError); 44 | server.on('listening', onListening); 45 | 46 | /* 47 | httpsServer.listen(443); 48 | httpsServer.on('error', onError); 49 | httpsServer.on('listening', onListening); 50 | */ 51 | 52 | /** 53 | * Normalize a port into a number, string, or false. 54 | */ 55 | 56 | function normalizePort(val) { 57 | var port = parseInt(val, 10); 58 | 59 | if (isNaN(port)) { 60 | // named pipe 61 | return val; 62 | } 63 | 64 | if (port >= 0) { 65 | // port number 66 | return port; 67 | } 68 | 69 | return false; 70 | } 71 | 72 | /** 73 | * Event listener for HTTP server "error" event. 74 | */ 75 | 76 | function onError(error) { 77 | if (error.syscall !== 'listen') { 78 | throw error; 79 | } 80 | 81 | var bind = typeof port === 'string' 82 | ? 'Pipe ' + port 83 | : 'Port ' + port; 84 | 85 | // handle specific listen errors with friendly messages 86 | switch (error.code) { 87 | case 'EACCES': 88 | console.error(bind + ' requires elevated privileges'); 89 | process.exit(1); 90 | break; 91 | case 'EADDRINUSE': 92 | console.error(bind + ' is already in use'); 93 | process.exit(1); 94 | break; 95 | default: 96 | throw error; 97 | } 98 | } 99 | 100 | /** 101 | * Event listener for HTTP server "listening" event. 102 | */ 103 | 104 | function onListening() { 105 | var addr = server.address(); 106 | var bind = typeof addr === 'string' 107 | ? 'pipe ' + addr 108 | : 'port ' + addr.port; 109 | debug('Listening on ' + bind); 110 | } 111 | -------------------------------------------------------------------------------- /common/upload.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const multer = require('multer'); 4 | 5 | const blogImgUpload = multer({ 6 | storage: multer.diskStorage({ 7 | destination: function (req, file, cb) { 8 | cb(null, './public/upload/img/blog') 9 | }, 10 | filename: function (req, file, cb) { 11 | cb(null, `${file.fieldname}-${Date.now()}.${file.originalname.match(/\.(\w+)$/)[1]}`) 12 | } 13 | }), 14 | limits: { 15 | fieldSize: '5MB', 16 | files: 1 17 | } 18 | }); 19 | 20 | const friendImgUpload = multer({ 21 | storage: multer.diskStorage({ 22 | destination: function (req, file, cb) { 23 | cb(null, './public/upload/img/friends') 24 | }, 25 | filename: function (req, file, cb) { 26 | cb(null, `${file.fieldname}-${Date.now()}.${file.originalname.match(/\.(\w+)$/)[1]}`) 27 | } 28 | }), 29 | limits: { 30 | fieldSize: '1MB', 31 | files: 1 32 | } 33 | }); 34 | 35 | module.exports = { 36 | blogImgUpload: blogImgUpload, // 文章特色图片上传 37 | friendImgUpload: friendImgUpload, 38 | }; 39 | -------------------------------------------------------------------------------- /common/util.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const crypto = require('crypto'); 3 | const mysql = require('mysql'); 4 | const $conf = require('../config'); 5 | const pool = mysql.createPool($conf.mysql); 6 | const request = require('request'); 7 | const fs = require('fs'); 8 | const path = require('path'); 9 | 10 | 11 | /** 12 | * @description 字符串加密 13 | * @param {string} str 待加密字符串 14 | */ 15 | function hashStr(str) { 16 | const hasher = crypto.createHash("md5"); 17 | hasher.update(str); 18 | const hashmsg = hasher.digest('hex'); 19 | return hashmsg; 20 | } 21 | 22 | function getFormatNumber(num) { 23 | if (num < 10) { 24 | return `0${num}`; 25 | } 26 | return `${num}`; 27 | } 28 | 29 | function getFormatDate(date) { 30 | const y = date.getFullYear(); 31 | const m = getFormatNumber(date.getMonth() + 1); 32 | const d = getFormatNumber(date.getDate()); 33 | const h = getFormatNumber(date.getHours()); 34 | const min = getFormatNumber(date.getMinutes()); 35 | const s = getFormatNumber(date.getSeconds()); 36 | return `${y}-${m}-${d} ${h}:${min}:${s}`; 37 | } 38 | 39 | /**时间格式化 */ 40 | function formatDate(date) { 41 | const str = ''+date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate()+' '+date.getHours()+':'+date.getMinutes()+':'+date.getSeconds(); 42 | return str; 43 | } 44 | 45 | /** 46 | * @description mysql 方法 47 | * @type {query: string, varlues: array, t: any} 48 | */ 49 | function dbQuery(query, values, t) { 50 | let arr = []; 51 | if (values && values.length > 0) { 52 | arr = values; 53 | } 54 | return (new Promise(function (resolve, reject) { 55 | pool.getConnection(function (err, connection) { 56 | connection.query(query, arr, function (err, result) { 57 | if (!err) { 58 | if (t) { 59 | resolve(t); 60 | } else { 61 | resolve(result); 62 | } 63 | } 64 | else { 65 | console.warn(err); 66 | reject(err); 67 | } 68 | connection.release(); 69 | }); 70 | }); 71 | })); 72 | } 73 | 74 | function requestGetApi(url, timeout) { 75 | return (new Promise(function (resolve, reject) { 76 | request(url, {timeout: timeout}, function (err, response) { 77 | if(!err && response.statusCode == 200) { 78 | resolve(JSON.parse(response.body)); 79 | } else { 80 | reject(err) 81 | } 82 | }); 83 | })); 84 | } 85 | 86 | function requestPostApi(url, data) { 87 | return (new Promise(function (resolve, reject) { 88 | request.post({url, form: data}, function (err, response) { 89 | if(!err) { 90 | resolve(JSON.parse(response.body)); 91 | } else { 92 | reject(err) 93 | } 94 | }); 95 | })); 96 | } 97 | 98 | /** 99 | * @description 创建多级文件夹 100 | * @param {syting} dirpath 路径 101 | * @param {int} mode mode 102 | */ 103 | function mkdirsSync (dirpath, mode) { 104 | try { 105 | if (!fs.existsSync(dirpath)) { 106 | let pathtmp; 107 | dirpath.split(/[/\\]/).forEach(function (dirname) { 108 | if (pathtmp) { 109 | pathtmp = path.join(pathtmp, dirname); 110 | } else { 111 | pathtmp = dirname; 112 | } 113 | if (!fs.existsSync(pathtmp)) { 114 | if (!fs.mkdirSync(pathtmp, mode)) { 115 | return false; 116 | } 117 | } 118 | }); 119 | } 120 | return true; 121 | } catch(e) { 122 | console.error(e); 123 | return false; 124 | } 125 | } 126 | 127 | module.exports = { 128 | hashStr, //hash加密 129 | formatDate, //时间格式化 130 | dbQuery, 131 | requestGetApi, 132 | requestPostApi, 133 | mkdirsSync, 134 | getFormatDate, 135 | } -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mysql: { // 数据库配置 3 | host: '127.0.0.1', // 地址 4 | user: '***', // 用户名 5 | password: '***', // 密码 6 | database:'***', // 数据库名称 7 | port: 3306, // 端口 8 | charset: 'utf8mb4' 9 | }, 10 | email: { // 邮箱配置 仅支持SMTP 11 | username: '邮件姬', // 发件人名称 12 | options: { 13 | host: '', // 邮箱主机地址 14 | port: 25, // 端口 加密465 15 | secure: false, // true for 465, false for other ports 16 | auth: { 17 | user: '', // 邮箱 18 | pass: '' // 密码 19 | }, 20 | }, 21 | }, 22 | // wbApp: { // 新浪开发者配置,微博登陆后使用Servant评论框 23 | // appKey: '***', // 新浪微博开发者key 24 | // appSecret: '***' // 新浪微博开发者Secret 25 | // }, 26 | wbApp: { 27 | appKey: '2325634760', // 新浪微博开发者key 28 | appSecret: 'b647f43acd05573908d2f820fa82fad7' // 新浪微博开发者Secret 29 | }, 30 | theme: 'default' // 主题文件夹名称,默认为 'default',部分系统页面使用了默认主题,请不要删除默认主题 31 | }; -------------------------------------------------------------------------------- /dao/classifyDao.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dbQuery = require('../common/util').dbQuery; 4 | 5 | /** 6 | * 获取全部分类 7 | */ 8 | function getAllClassify() { 9 | return dbQuery('SELECT * FROM classify'); 10 | } 11 | 12 | /** 13 | * 新增文章分类 14 | */ 15 | function addClassify(classify) { 16 | return dbQuery(`INSERT INTO classify(id,classify,state) VALUES(0,"${classify}",0)`); 17 | } 18 | 19 | module.exports = { 20 | getAllClassify:getAllClassify, //获取全部分类 21 | addClassify:addClassify, //新增文章分类 22 | } -------------------------------------------------------------------------------- /dao/friendsDao.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dbQuery = require('../common/util').dbQuery; 4 | const formatDate = require('../common/util').formatDate; 5 | 6 | function addFriend(friend) { 7 | return dbQuery('INSERT INTO friends(id,name,website,url,description,head,status,create_date) values(0,?,?,?,?,?,?,?)', [friend.name, friend.website, friend.url, friend.description, friend.head, 0, formatDate(new Date())]); 8 | } 9 | 10 | function getFriends() { 11 | return dbQuery('SELECT * from friends where status = 0'); 12 | } 13 | 14 | function alterFriend(friend) { 15 | return dbQuery(`UPDATE friends set name = '${friend.name}', website = '${friend.website}', url = '${friend.url}', description = '${friend.description}', head = '${friend.head}' where id = ${friend.id}`); 16 | } 17 | 18 | function deleteFriend(id) { 19 | return dbQuery(`UPDATE friends set status = 1 where id = ${id}`); 20 | } 21 | 22 | module.exports = { 23 | addFriend: addFriend, 24 | getFriends: getFriends, 25 | alterFriend: alterFriend, 26 | deleteFriend: deleteFriend, 27 | } -------------------------------------------------------------------------------- /dao/tagsDao.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dbQuery = require('../common/util').dbQuery; 4 | 5 | const mysql = require('mysql'); 6 | const $conf = require('../config'); 7 | const pool = mysql.createPool($conf.mysql); 8 | 9 | /** 10 | * 获取全部标签 11 | */ 12 | function getAllTags() { 13 | return dbQuery('select * from tags where state = 0'); 14 | } 15 | 16 | /** 17 | * 插入新标签 18 | */ 19 | function saveTags(tags,date) { 20 | return pool.getConnection(function (err,connection) { 21 | const promises = tags.map((tag, index) => { 22 | return (new Promise(function (resolve, reject) { 23 | connection.query('INSERT INTO tags(id,tags_name,create_date,state) VALUES(0,?,?,?)', [tag,date,0],function (err) { 24 | if(!err){ 25 | resolve(true); 26 | } 27 | else{ 28 | reject(err); 29 | } 30 | }); 31 | })) 32 | }); 33 | return Promise.all(promises) 34 | .then(function () { 35 | connection.release(); 36 | return true; 37 | }); 38 | }); 39 | // const defer = Q.defer(); 40 | // pool.getConnection(function (err,connection) { 41 | // for(let i = 0; i < tags.length; i++){ 42 | // (function (i) { 43 | // connection.query('INSERT INTO tags(id,tags_name,create_date,state) VALUES(0,?,?,?)', 44 | // [tags[i],date,0],function (err,result) { 45 | // if(!err){ 46 | // if(i == tags.length - 1){ 47 | // defer.resolve(true); 48 | // connection.release(); 49 | // } 50 | // } 51 | // else{ 52 | // defer.reject(err); 53 | // connection.release(); 54 | // } 55 | // }); 56 | // })(i); 57 | // } 58 | // }) 59 | } 60 | 61 | module.exports = { 62 | getAllTags:getAllTags, //获取全部标签 63 | saveTags:saveTags //插入新标签 64 | } -------------------------------------------------------------------------------- /dao/usersDao.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dbQuery = require('../common/util').dbQuery; 4 | const hashStr = require('../common/util').hashStr; 5 | const formatDate = require('../common/util').formatDate; 6 | 7 | /** 8 | * 注册用户 9 | */ 10 | function regUser(username,password,email,img,date,type,state) { 11 | const pwd = hashStr(password); 12 | return dbQuery(`INSERT INTO users(id,username,password,email,head_img,reg_date,type,state) VALUES(0,'${username}','${pwd}','${email}','${img}','${date}',type,state)`); 13 | } 14 | 15 | /** 16 | * 用户登录 17 | */ 18 | function login(email,password) { 19 | const pwd = hashStr(password); 20 | return dbQuery(`SELECT * FROM users where email = "${email}" AND password = "${pwd}" AND state = 0`) 21 | } 22 | 23 | /** 24 | * 更新最近登陆日期 25 | */ 26 | function loginDate(id, date, expires) { 27 | const token = hashStr("id:"+date); 28 | return dbQuery(`UPDATE users set latest_time = '${date}', token = '${token}', expires = '${expires}' where id = ${id}`, [], token); 29 | } 30 | 31 | /** 32 | * 查询用户信息 33 | */ 34 | function getUserById(id) { 35 | return dbQuery(`SELECT * FROM users WHERE id = '${id}' AND state = 0`); 36 | } 37 | 38 | /** 39 | * 获取管理员信息 40 | */ 41 | function getAdmin() { 42 | return dbQuery('SELECT * FROM users WHERE state = 0 AND type = 0'); 43 | } 44 | 45 | /** 46 | * 判断用户登录状态 47 | */ 48 | function getUserToken(uid, token) { 49 | return dbQuery(`SELECT * FROM users where id = ${uid} AND state = 0 AND token = '${token}'`); 50 | } 51 | 52 | /** 53 | * 更新用户信息 54 | */ 55 | function updateInfo(user) { 56 | return dbQuery(`UPDATE users SET email = '${user.email}', username = '${user.username}' where id = ${user.id} AND state = 0`); 57 | } 58 | 59 | // 查询微博用户 60 | function getWBUser(wbUid) { 61 | return dbQuery(`SELECT * FROM users WHERE wb_id = "${wbUid}" AND type = 100 AND state = 0`); 62 | } 63 | 64 | // 注册微博用户 65 | function registerWBUser(user) { 66 | let wbVerfied = 2; 67 | if (user.info.verified) { 68 | wbVerfied = 1; 69 | } else { 70 | wbVerfied = 0; 71 | } 72 | const data = [ 73 | user.info.name, 74 | 'orangeecho', 75 | '', 76 | user.info.avatar_large, 77 | formatDate(new Date()), 78 | user.info.location, 79 | user.info.url, 80 | user.info.idstr, 81 | user.info.profile_url, 82 | user.info.description, 83 | wbVerfied, 84 | user.info.gender, 85 | 100, 86 | 0, 87 | user.accessToken.access_token, 88 | formatDate(new Date()), 89 | user.accessToken.expiresDate 90 | ]; 91 | return dbQuery('INSERT INTO users(id,username,password,email,head_img,reg_date,location,url,wb_id,wb_url,description,wb_verfied,gender,type,state,token,latest_time,expires) VALUES(0,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', data); 92 | } 93 | 94 | function updateWBUserInfo(user) { 95 | let wbVerfied = 2; 96 | if (user.info.verified) { 97 | wbVerfied = 1; 98 | } else { 99 | wbVerfied = 0; 100 | } 101 | const {name, avatar_large, location, url, description, gender, idstr} = user.info; 102 | const {access_token, expiresDate} = user.accessToken; 103 | const lasted = formatDate(new Date()); 104 | return dbQuery(`UPDATE users set username = '${name}', head_img = '${avatar_large}', location = '${location}', url = '${url}', description = '${description}', gender = '${gender}', token = '${access_token}', expires = '${expiresDate}', latest_time = '${lasted}', wb_verfied = ${wbVerfied} where wb_id = '${idstr}'`); 105 | } 106 | 107 | function updateEmail(id, email) { 108 | return dbQuery(`UPDATE users set email = '${email}' WHERE id = ${id}`); 109 | } 110 | 111 | module.exports = { 112 | regUser, 113 | login, 114 | loginDate, 115 | getUserById, 116 | getAdmin, 117 | getUserToken, 118 | updateInfo, 119 | getWBUser, 120 | registerWBUser, 121 | updateWBUserInfo, 122 | updateEmail, 123 | } -------------------------------------------------------------------------------- /dao/websiteDao.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const dbQuery = require('../common/util').dbQuery; 4 | 5 | /**get website info */ 6 | function getWebSite() { 7 | return dbQuery('SELECT * FROM website WHERE id = 1'); 8 | } 9 | 10 | /** 11 | * 开通站点 12 | */ 13 | function startWebSite(website,email,date,domain) { 14 | return dbQuery(`UPDATE website set name ="${website}",email = "${email}",create_date = "${date}", domain = "${domain}" ,state = 1 where id = 1`); 15 | } 16 | 17 | /** 18 | * 更新信息 19 | */ 20 | function updateInfo(ws) { 21 | return dbQuery(`UPDATE website SET name = '${ws.name}', description = '${ws.description}' where id = 1`); 22 | } 23 | 24 | module.exports = { 25 | getWebSite: getWebSite, // 获取站点信息 26 | startWebSite: startWebSite, // 开通站点 27 | updateInfo: updateInfo, // 更新信息 28 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spruche", 3 | "version": "0.1.2", 4 | "scripts": { 5 | "start": "node ./bin/www", 6 | "dev": "nodemon ./bin/www", 7 | "build": "grunt" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/IceEnd/Spruche.git" 12 | }, 13 | "keywords": [ 14 | "blog", 15 | "express" 16 | ], 17 | "author": "Alchemy", 18 | "license": "MIT", 19 | "dependencies": { 20 | "body-parser": "~1.13.2", 21 | "cookie-parser": "~1.3.5", 22 | "debug": "~2.2.0", 23 | "ejs": "~2.5.5", 24 | "express": "~4.13.1", 25 | "express-pjax": "latest", 26 | "formidable": "latest", 27 | "morgan": "~1.6.1", 28 | "multer": "~1.3.0", 29 | "mysql": "latest", 30 | "nodemailer": "^4.6.4", 31 | "request": "^2.54.0", 32 | "serve-favicon": "~2.3.0", 33 | "ueditor": "latest" 34 | }, 35 | "devDependencies": { 36 | "grunt": "~1.0.1", 37 | "grunt-contrib-clean": "~1.0.0", 38 | "grunt-contrib-concat": "~1.0.1", 39 | "grunt-contrib-copy": "~1.0.0", 40 | "grunt-contrib-jshint": "~1.1.0", 41 | "grunt-contrib-requirejs": "~1.0.0", 42 | "grunt-contrib-uglify": "~2.1.0", 43 | "grunt-css": "~0.5.4", 44 | "grunt-strip": "~0.2.1", 45 | "nodemon": "^1.17.3" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /public/assets/font-awesome/font/fontawesome-webfontd41d.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/assets/font-awesome/font/fontawesome-webfontd41d.eot -------------------------------------------------------------------------------- /public/assets/font-awesome/font/fontawesome-webfontf77b.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/assets/font-awesome/font/fontawesome-webfontf77b.eot -------------------------------------------------------------------------------- /public/assets/font-awesome/font/fontawesome-webfontf77b.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/assets/font-awesome/font/fontawesome-webfontf77b.ttf -------------------------------------------------------------------------------- /public/assets/font-awesome/font/fontawesome-webfontf77b.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/assets/font-awesome/font/fontawesome-webfontf77b.woff -------------------------------------------------------------------------------- /public/common/util.js: -------------------------------------------------------------------------------- 1 | var alert_flag = false; 2 | var timer; 3 | 4 | /** 自定义提示框 */ 5 | function myAlert(str) { 6 | $('#alert_content_p').text(str); 7 | $('#alert_container').fadeIn(300); 8 | $('#alert_div').slideToggle(300); 9 | } 10 | 11 | /** 关闭提示框 */ 12 | function closeAlert(){ 13 | $('#alert-btn').bind('click',function(){ 14 | $('#alert_container').fadeOut(300); 15 | $('#alert_div').slideToggle(300); 16 | }); 17 | } 18 | 19 | /** 20 | * 判断是否在移动端 21 | */ 22 | function isMobile() { 23 | var isAndroid = navigator.userAgent.match(/Android/i)? true : false; 24 | var isIOS = navigator.userAgent.match(/iPhone|iPad|iPod/i)? true : false; 25 | var isWindowsMobile = navigator.userAgent.match(/IEMobile/i)? true : false; 26 | var isBalckBerry = navigator.userAgent.match(/BlackBerry/i)? true : false; 27 | if(isAndroid || isIOS || isWindowsMobile || isBalckBerry){ 28 | return true; 29 | } 30 | return false; 31 | } 32 | 33 | function pajx_loadDuodshuo(){ 34 | var dus=$(".ds-thread"); 35 | if($(dus).length==1){ 36 | var el = document.createElement('div'); 37 | el.setAttribute('data-thread-key',$(dus).attr("data-thread-key"));//必选参数 38 | el.setAttribute('data-url',$(dus).attr("data-url")); 39 | DUOSHUO.EmbedThread(el); 40 | $(dus).html(el); 41 | } 42 | } 43 | 44 | /** 45 | * 禁止复制 46 | */ 47 | // $('body').bind("selectstart",function(){return false;}); -------------------------------------------------------------------------------- /public/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /public/images/icon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/icon/favicon.ico -------------------------------------------------------------------------------- /public/images/pic/defaulthead1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead1.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead2.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead3.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead4.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead5.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead6.png -------------------------------------------------------------------------------- /public/images/pic/defaulthead7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/defaulthead7.png -------------------------------------------------------------------------------- /public/images/pic/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/error.png -------------------------------------------------------------------------------- /public/images/pic/head.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/images/pic/head.jpg -------------------------------------------------------------------------------- /public/javascripts/back/allarticle.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | function ajaxFunc(postUrl, id, callback) { 3 | $.ajax({ 4 | type: 'POST', 5 | url: postUrl, 6 | dataType: 'json', 7 | traditional: true, 8 | data: { 9 | "id": id 10 | }, 11 | success: function (data){ 12 | if(data.type){ 13 | callback(); 14 | } 15 | else{ 16 | alert('网络繁忙,请稍后再试...'); 17 | } 18 | }, 19 | error: function (xhr, errorType, error) { 20 | alert('网络繁忙,请稍后再试...'); 21 | } 22 | }); 23 | } 24 | $(document).on('click', '.article_delete', function () { 25 | var id = $(this).data('id'); 26 | var _this = $(this); 27 | ajaxFunc('/admin/write/delarticle', id, function () { 28 | _this.parents('.panel').slideUp(); 29 | }); 30 | }); 31 | $(document).on('click', '.article-stick', function () { 32 | var id = $(this).data('id'); 33 | var _this = $(this); 34 | ajaxFunc('/admin/write/stickarticle', id, function () { 35 | $('.stick-cont .article-stick-false').addClass('article-stick btn-default'); 36 | $('.stick-cont .article-stick-false').text('置顶') 37 | $('.stick-cont .article-stick-false').removeClass('article-stick-false btn-danger'); 38 | _this.addClass('article-stick-false btn-danger'); 39 | _this.removeClass('article-stick btn-default'); 40 | _this.text('取消置顶'); 41 | }); 42 | }); 43 | $(document).on('click', '.article-stick-false', function () { 44 | var id = $(this).data('id'); 45 | var _this = $(this); 46 | ajaxFunc('/admin/write/notstickarticle', id, function () { 47 | _this.addClass('article-stick btn-default'); 48 | _this.removeClass('article-stick-false btn-danger'); 49 | _this.text('置顶'); 50 | }); 51 | }); 52 | })($); -------------------------------------------------------------------------------- /public/javascripts/back/index.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | $(document).ready(function () { 3 | $.ajax({ 4 | type: 'POST', 5 | url: '/admin/index/appInfo', 6 | dataType: 'json', 7 | traditional: true, 8 | success: function (data){ 9 | if(data.type){ 10 | var html = '
'+data.appInfo.version+'
'+ 11 | '
'+data.appInfo.latest+'
'; 12 | if (data.appInfo.latest > data.appInfo.version) { 13 | html += '
查看更新方案' 14 | } 15 | $('#info-main').html(html); 16 | var height = $('html').height() + $('#info-main').height(); 17 | $('#wrapper', parent.document).height(height); 18 | $('#content-iframe', parent.document).height(height); 19 | } 20 | }, 21 | error: function (xhr, errorType, error) { 22 | //do nothing 23 | } 24 | }) 25 | }); 26 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/back/media.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | $(document).ready(function () { 3 | var height = $('html').height() + $('#info-main').height(); 4 | $('#wrapper', parent.document).height(height); 5 | $('#content-iframe', parent.document).height(height); 6 | }); 7 | 8 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/back/wsconfig.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | var $userform = $('#userform'); 3 | var $email = $('#email'); 4 | var $username = $('#username'); 5 | var $wsname = $('#wsname'); 6 | var $wsdescription = $('#wsdescription'); 7 | var $shortname = $('#shortname'); 8 | var $user_btn = $('#user_btn'); 9 | var $duoshuo_btn = $('#duoshuo_btn'); 10 | var $duoshuo_import_btn = $('#duoshuo_import_btn'); 11 | 12 | $user_btn.click(function () { 13 | var email = $email.val(); 14 | var username = $username.val(); 15 | if (username === '' || email === '') { 16 | alert('用户信息不能为空'); 17 | return; 18 | } 19 | if (!isEmail(email)) { 20 | alert('邮箱格式不正确'); 21 | return; 22 | } 23 | var user = { 24 | id: $userform.attr('data-user'), 25 | email: $email.val(), 26 | username: $username.val() 27 | }; 28 | $.ajax({ 29 | type:'POST', 30 | url: '/admin/wsc/updateuser', 31 | dataType:'json', 32 | traditional: true, 33 | data: { 34 | user: JSON.stringify(user) 35 | }, 36 | success: function (data) { 37 | if (data.type) { 38 | alert('修改成功'); 39 | parent.location.reload(); 40 | } 41 | else { 42 | alert('网络繁忙,请稍后再试...'); 43 | } 44 | }, 45 | error: function (xhr, errorType, error) { 46 | alert('网络繁忙,请稍后再试...'); 47 | } 48 | }); 49 | }); 50 | 51 | $duoshuo_btn.click(function () { 52 | var ws = { 53 | name: $wsname.val(), 54 | description: $wsdescription.val() 55 | }; 56 | $.ajax({ 57 | type:'POST', 58 | url: '/admin/wsc/updatews', 59 | dataType:'json', 60 | traditional: true, 61 | data: { 62 | website: JSON.stringify(ws) 63 | }, 64 | success: function (data) { 65 | if (data.type) { 66 | alert('修改成功'); 67 | parent.location.reload(); 68 | } 69 | else { 70 | alert('网络繁忙,请稍后再试...'); 71 | } 72 | }, 73 | error: function (xhr, errorType, error) { 74 | alert('网络繁忙,请稍后再试...'); 75 | } 76 | }); 77 | }); 78 | 79 | $duoshuo_import_btn.click(function () { 80 | ajaxEmitter('/admin/wsc/importds', {}, function (response) { 81 | if (response.retCode === 0) { 82 | alert('导入成功'); 83 | } else if (response.retCode === -1){ 84 | alert('文件不存在,请仔细检查'); 85 | } else if (response.retCode === 100001) { 86 | alert('部分评论导入失败,请校对文件(部分特殊字符无法导入数据库)'); 87 | } 88 | }); 89 | }); 90 | 91 | //邮箱格式验证 92 | function isEmail(str) { 93 | var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 94 | if(!myreg.test(str)) return false; 95 | return true; 96 | } 97 | 98 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/common/util.js: -------------------------------------------------------------------------------- 1 | var alert_flag = false; 2 | var timer; 3 | 4 | /** 自定义提示框 */ 5 | function myAlert(str) { 6 | $('#alert_content_p').text(str); 7 | $('#alert_container').fadeIn(300); 8 | $('#alert_div').slideToggle(300); 9 | } 10 | 11 | /** 关闭提示框 */ 12 | function closeAlert(){ 13 | $('#alert-btn').bind('click',function(){ 14 | $('#alert_container').fadeOut(300); 15 | $('#alert_div').slideToggle(300); 16 | }); 17 | } 18 | 19 | /** 20 | * 判断是否在移动端 21 | */ 22 | function isMobile() { 23 | var isAndroid = navigator.userAgent.match(/Android/i)? true : false; 24 | var isIOS = navigator.userAgent.match(/iPhone|iPad|iPod/i)? true : false; 25 | var isWindowsMobile = navigator.userAgent.match(/IEMobile/i)? true : false; 26 | var isBalckBerry = navigator.userAgent.match(/BlackBerry/i)? true : false; 27 | if(isAndroid || isIOS || isWindowsMobile || isBalckBerry){ 28 | return true; 29 | } 30 | return false; 31 | } 32 | 33 | function getQueryStringByName(name) { 34 | var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i")); 35 | if (result === null || result.length < 1) { 36 | return ""; 37 | } 38 | return result[1]; 39 | } 40 | 41 | /** 42 | * Ajax公用方法 43 | */ 44 | ;(function ($, window) { 45 | function ajaxEmitter(url, data, callback) { 46 | $.ajax({ 47 | type: 'POST', 48 | url: url, 49 | dataType: 'json', 50 | traditional: true, 51 | data: { 52 | reqData: JSON.stringify(data) 53 | }, 54 | success: function (response) { 55 | callback(response); 56 | }, 57 | error: function () { 58 | setTimeout(function () { 59 | myAlert('网络繁忙,请稍后再试...'); 60 | }, 1000); 61 | } 62 | }); 63 | } 64 | window.ajaxEmitter = ajaxEmitter; 65 | })(jQuery, window); -------------------------------------------------------------------------------- /public/javascripts/front/login.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | var $email = $('#email'), 3 | $password = $('#password'), 4 | $remember = $('#remember'), 5 | $btn = $('#sure_btn'); 6 | 7 | $btn.bind('click', function () { 8 | if ($email.val() == '' || $password.val() == '') { 9 | myAlert('请输入用户名和密码'); 10 | return false; 11 | } 12 | if(!isEmail($email.val())) { 13 | myAlert('邮箱格式不正确'); 14 | return false; 15 | } 16 | if (!isPassword($password.val())) { 17 | myAlert('密码只能输入6-20个字母、数字、特殊字符'); 18 | return false; 19 | } 20 | const form = { 21 | "email": $email.val(), 22 | "password": $password.val(), 23 | "remeber": $remember.is(':checked') 24 | }; 25 | $.ajax({ 26 | type: 'POST', 27 | url: '/ulogin', 28 | dataType: 'json', 29 | traditional: true, 30 | data: { 31 | form: JSON.stringify(form) 32 | }, 33 | success: function (data) { 34 | switch (data.type) { 35 | case 0: 36 | successLogin(data.user); 37 | break; 38 | case 1: 39 | myAlert('用户名或密码错误'); 40 | clearForm(); 41 | break; 42 | case 2: 43 | myAlert('你是机器人吗?'); 44 | clearForm(); 45 | break; 46 | } 47 | 48 | }, 49 | error: function (xhr, errorType, error) { 50 | myAlert('网络繁忙,请稍后再试...'); 51 | } 52 | }); 53 | return false; 54 | }); 55 | 56 | //清空表单 57 | function clearForm(){ 58 | $email.val(''); 59 | $password.val(''); 60 | } 61 | 62 | //密码验证 63 | function isPassword(str) { 64 | var patrn = /^(\w|@|#|\$|%|\^|&|\*){6,20}$/; 65 | if (!patrn.exec(str)) return false; 66 | return true; 67 | } 68 | 69 | // 邮箱验证 70 | function isEmail(str) { 71 | var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 72 | if(!myreg.test(str)) return false; 73 | return true; 74 | } 75 | 76 | //成功登陆 77 | function successLogin(user) { 78 | console.log(user.expires); 79 | var save = false; 80 | if($remember.is(':checked')){ 81 | save = true; 82 | } 83 | if(save){ 84 | $.cookie('uid',user.id, { expires: new Date(user.expires), path: "/"}); 85 | $.cookie('username', user.username, { expires: new Date(user.expires), path: "/"}); 86 | $.cookie('type',user.type, { expires: new Date(user.expires), path: "/"}); 87 | $.cookie('token',user.token, { expires: new Date(user.expires), path: "/" }); 88 | } 89 | else{ 90 | $.cookie('uid',user.id, {path: "/"}); 91 | $.cookie('username', user.username, { path: "/"}); 92 | $.cookie('type',user.type, {path: "/"}); 93 | $.cookie('token',user.token, { path: "/" }) 94 | } 95 | window.location.href="/admin#index"; 96 | } 97 | 98 | closeAlert(); 99 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/front/loginconnect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/javascripts/front/loginconnect.js -------------------------------------------------------------------------------- /public/javascripts/front/pjax-loading.js: -------------------------------------------------------------------------------- 1 | $(document).pjax('a[data-pjax="true"]', '#container',{fragment:'#container', timeout:8000}); 2 | $(document).on('pjax:beforeSend', function(){ 3 | $('#progress-bar').animate({'width':'20%'}); 4 | }); 5 | $(document).on('pjax:send', function() { 6 | $('#progress-bar').animate({'width': '40%'}); 7 | }); 8 | $(document).on('pjax:complete', function() { 9 | $('#progress-bar').animate({'width': '80%'}); 10 | }); 11 | $(document).on('pjax:end', function() { 12 | $('#progress-bar').animate({'width': '100%'},function () { 13 | $('#progress-bar').css({'width':'0'}); 14 | }); 15 | SyntaxHighlighter.highlight(); 16 | $("table.syntaxhighlighter").each(function () { 17 | if (!$(this).hasClass("nogutter")) { 18 | var $gutter = $($(this).find(".gutter")[0]); 19 | var $codeLines = $($(this).find(".code .line")); 20 | $gutter.find(".line").each(function (i) { 21 | $(this).height($($codeLines[i]).height()); 22 | $($codeLines[i]).height($($codeLines[i]).height()); 23 | }); 24 | } 25 | }); 26 | }); -------------------------------------------------------------------------------- /public/javascripts/front/start.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | var $startWebsite = $('#start-website'), 3 | $startUsername = $('#start-username'), 4 | $startEmail = $('#start-email'), 5 | $startPassword = $('#start-password'), 6 | $startRePassword = $('#start-rpassword'), 7 | $startSureBtn = $('#start_sure_btn'); 8 | 9 | var domain = location.protocol + '//'+ location.hostname; 10 | 11 | $startSureBtn.bind('click', function () { 12 | if ($startWebsite.val() == '' || $startUsername.val() == '' || $startEmail.val() == '' || $startPassword.val() == '' || $startRePassword.val() == '') { 13 | myAlert('信息不能为空'); 14 | return false; 15 | } 16 | if (!isPassword($startPassword.val())) { 17 | myAlert('密码只能输入6-20个字母、数字、特殊字符'); 18 | return false; 19 | } 20 | if(!isEmail($startEmail.val())){ 21 | myAlert('请输入正确的邮箱'); 22 | return false; 23 | } 24 | if ($startPassword.val() == $startRePassword.val()) { 25 | $.ajax({ 26 | type: 'POST', 27 | url: '/start', 28 | dataType: 'json', 29 | traditional: true, 30 | data: { 31 | "website":$startWebsite.val(), 32 | "username":$startUsername.val(), 33 | "email":$startEmail.val(), 34 | "password":$startPassword.val(), 35 | 'domain':domain 36 | }, 37 | success: function (data) { 38 | if(data){ 39 | window.location.href = '/login'; 40 | } 41 | }, 42 | error: function (xhr, errorType, error) { 43 | myAlert('网络繁忙,请稍后再试...'); 44 | } 45 | }); 46 | return false; 47 | } 48 | else { 49 | myAlert('两次密码不一样'); 50 | return false; 51 | } 52 | }); 53 | 54 | //密码验证 55 | function isPassword(str) { 56 | var patrn = /^(\w|@|#|\$|%|\^|&|\*){6,20}$/; 57 | if (!patrn.exec(str)) return false; 58 | return true 59 | } 60 | 61 | //邮箱格式验证 62 | function isEmail(str) { 63 | var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; 64 | if(!myreg.test(str)) return false; 65 | return true; 66 | } 67 | 68 | //关闭对话框 69 | closeAlert(); 70 | 71 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/front/tags.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | $(document).ready(function () { 3 | if(!isMobile()){ 4 | $.ajax({ 5 | type: 'POST', 6 | url: '/tags', 7 | dataType: 'json', 8 | traditional: true, 9 | data: {}, 10 | success: function (data) { 11 | if(data.type){ 12 | initTags(data.tags) 13 | } 14 | }, 15 | error: function (xhr, errorType, error) { 16 | //do nothing 17 | } 18 | }); 19 | } else { 20 | $('#tags-canvas-content').css('display', 'none'); 21 | } 22 | }); 23 | 24 | //初始化tags 25 | function initTags(tags) { 26 | var tagsHtml = ''; 27 | for(var i = tags.length-1; i >= 0; i--){ 28 | tagsHtml += ''+tags[i].tags_name+''; 29 | } 30 | $('#tags').html(tagsHtml); 31 | startCanvas(); 32 | } 33 | 34 | //启动canvas 35 | function startCanvas(){ 36 | try { 37 | var i, et = document.getElementById('tags').childNodes; 38 | for (i in et) { 39 | et[i].nodeName == 'A' && et[i].addEventListener('click', function (e) { 40 | e.preventDefault(); 41 | }); 42 | } 43 | $('#tag_canvas').attr('width', $(window).width()); 44 | $('#tag_canvas').attr('height', $(window).height()); 45 | TagCanvas.Start('tag_canvas', 'tags', { 46 | textColour: '#a7a7a7', 47 | outlineColour: '#ffffff', 48 | reverse: true, 49 | textHeight: 15, 50 | bgOutlineThickness: 0, 51 | depth: 0.5, 52 | dragControl: false, 53 | decel:0.75, 54 | dragThreshold: 10, 55 | fadeIn: 3000, 56 | maxSpeed: 0.05, 57 | initial: [-0.1, 0.1], 58 | maxBrightness: 0.8, 59 | maxSpeed:0.03, 60 | noSelect: true, 61 | wheelZoom: false, 62 | }); 63 | } catch (e) { 64 | // something went wrong, hide the canvas container 65 | //document.getElementById('myCanvasContainer').style.display = 'none'; 66 | } 67 | } 68 | 69 | //窗口改变事件 70 | $(window).resize(function () { 71 | $('#tag_canvas').attr('width', $(window).width()); 72 | $('#tag_canvas').attr('height', $(window).height()); 73 | }); 74 | })(jQuery); -------------------------------------------------------------------------------- /public/javascripts/libs/jquery.cookie.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery Cookie Plugin v1.4.1 3 | * https://github.com/carhartl/jquery-cookie 4 | * 5 | * Copyright 2013 Klaus Hartl 6 | * Released under the MIT license 7 | */ 8 | (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{if(typeof exports==="object"){factory(require("jquery"))}else{factory(jQuery)}}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s)}function decode(s){return config.raw?s:decodeURIComponent(s)}function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value))}function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{s=decodeURIComponent(s.replace(pluses," "));return config.json?JSON.parse(s):s}catch(e){}}function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value}var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==="number"){var days=options.expires,t=options.expires=new Date();t.setTime(+t+days*86400000)}return(document.cookie=[encode(key),"=",stringifyCookieValue(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join(""))}var result=key?undefined:{};var cookies=document.cookie?document.cookie.split("; "):[];for(var i=0,l=cookies.length;igmailcom | http://flesler.blogspot.com 3 | * Dual licensed under MIT and GPL. 4 | * @author Ariel Flesler 5 | * @version 1.4.6 6 | */ 7 | ;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,targ,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); 8 | -------------------------------------------------------------------------------- /public/stylesheets/libs/owl.carousel.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Core Owl Carousel CSS File 3 | * v1.21 4 | */ 5 | 6 | /* clearfix */ 7 | .owl-carousel .owl-wrapper:after { 8 | content: "."; 9 | display: block; 10 | clear: both; 11 | visibility: hidden; 12 | line-height: 0; 13 | height: 0; 14 | } 15 | /* display none until init */ 16 | .owl-carousel{ 17 | display: none; 18 | position: relative; 19 | width: 100%; 20 | -ms-touch-action: pan-y; 21 | } 22 | .owl-carousel .owl-wrapper{ 23 | display: none; 24 | position: relative; 25 | -webkit-transform: translate3d(0px, 0px, 0px); 26 | -webkit-perspective: 1000; 27 | } 28 | .owl-carousel .owl-wrapper-outer{ 29 | overflow: hidden; 30 | position: relative; 31 | width: 100%; 32 | } 33 | .owl-carousel .owl-wrapper-outer.autoHeight{ 34 | -webkit-transition: height 500ms ease-in-out; 35 | -moz-transition: height 500ms ease-in-out; 36 | -ms-transition: height 500ms ease-in-out; 37 | -o-transition: height 500ms ease-in-out; 38 | transition: height 500ms ease-in-out; 39 | } 40 | 41 | .owl-carousel .owl-item{ 42 | float: left; 43 | } 44 | .owl-controls .owl-page, 45 | .owl-controls .owl-buttons div{ 46 | cursor: pointer; 47 | } 48 | .owl-controls { 49 | -webkit-user-select: none; 50 | -khtml-user-select: none; 51 | -moz-user-select: none; 52 | -ms-user-select: none; 53 | user-select: none; 54 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 55 | } 56 | 57 | /* mouse grab icon */ 58 | .grabbing { 59 | /*cursor:url(grabbing.png) 8 8, move;*/ 60 | } 61 | 62 | /* fix */ 63 | .owl-carousel .owl-wrapper, 64 | .owl-carousel .owl-item{ 65 | -webkit-backface-visibility: hidden; 66 | -moz-backface-visibility: hidden; 67 | -ms-backface-visibility: hidden; 68 | } 69 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/anchor/anchor.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 |
16 | 17 |
18 | 19 | 39 | 40 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/attachment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ueditor图片对话框 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 |
26 | 27 |
28 |
29 |
30 |
31 | 0% 32 | 33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
    45 |
  • 46 |
47 |
48 |
49 | 50 | 51 |
52 |
53 |
54 | 55 |
56 |
57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_chm.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_default.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_exe.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_jpg.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_mp3.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_mv.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_ppt.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_psd.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_rar.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_txt.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/fileTypeImages/icon_xls.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/alignicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/alignicon.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/alignicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/alignicon.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/bg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/file-icons.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/file-icons.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/icons.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/icons.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/image.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/progress.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/success.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/attachment/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/attachment/images/success.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/background/background.css: -------------------------------------------------------------------------------- 1 | .wrapper{ width: 424px;margin: 10px auto; zoom:1;position: relative} 2 | .tabbody{height:225px;} 3 | .tabbody .panel { position: absolute;width:100%; height:100%;background: #fff; display: none;} 4 | .tabbody .focus { display: block;} 5 | 6 | body{font-size: 12px;color: #888;overflow: hidden;} 7 | input,label{vertical-align:middle} 8 | .clear{clear: both;} 9 | .pl{padding-left: 18px;padding-left: 23px\9;} 10 | 11 | #imageList {width: 420px;height: 215px;margin-top: 10px;overflow: hidden;overflow-y: auto;} 12 | #imageList div {float: left;width: 100px;height: 95px;margin: 5px 10px;} 13 | #imageList img {cursor: pointer;border: 2px solid white;} 14 | 15 | .bgarea{margin: 10px;padding: 5px;height: 84%;border: 1px solid #A8A297;} 16 | .content div{margin: 10px 0 10px 5px;} 17 | .content .iptradio{margin: 0px 5px 5px 0px;} 18 | .txt{width:280px;} 19 | 20 | .wrapcolor{height: 19px;} 21 | div.color{float: left;margin: 0;} 22 | #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;margin: 0;float: left;} 23 | div.alignment,#custom{margin-left: 23px;margin-left: 28px\9;} 24 | #custom input{height: 15px;min-height: 15px;width:20px;} 25 | #repeatType{width:100px;} 26 | 27 | 28 | /* 图片管理样式 */ 29 | #imgManager { 30 | width: 100%; 31 | height: 225px; 32 | } 33 | #imgManager #imageList{ 34 | width: 100%; 35 | overflow-x: hidden; 36 | overflow-y: auto; 37 | } 38 | #imgManager ul { 39 | display: block; 40 | list-style: none; 41 | margin: 0; 42 | padding: 0; 43 | } 44 | #imgManager li { 45 | float: left; 46 | display: block; 47 | list-style: none; 48 | padding: 0; 49 | width: 113px; 50 | height: 113px; 51 | margin: 9px 0 0 19px; 52 | background-color: #eee; 53 | overflow: hidden; 54 | cursor: pointer; 55 | position: relative; 56 | } 57 | #imgManager li.clearFloat { 58 | float: none; 59 | clear: both; 60 | display: block; 61 | width:0; 62 | height:0; 63 | margin: 0; 64 | padding: 0; 65 | } 66 | #imgManager li img { 67 | cursor: pointer; 68 | } 69 | #imgManager li .icon { 70 | cursor: pointer; 71 | width: 113px; 72 | height: 113px; 73 | position: absolute; 74 | top: 0; 75 | left: 0; 76 | z-index: 2; 77 | border: 0; 78 | background-repeat: no-repeat; 79 | } 80 | #imgManager li .icon:hover { 81 | width: 107px; 82 | height: 107px; 83 | border: 3px solid #1094fa; 84 | } 85 | #imgManager li.selected .icon { 86 | background-image: url(images/success.png); 87 | background-position: 75px 75px; 88 | } 89 | #imgManager li.selected .icon:hover { 90 | width: 107px; 91 | height: 107px; 92 | border: 3px solid #1094fa; 93 | background-position: 72px 72px; 94 | } -------------------------------------------------------------------------------- /public/ueditor/dialogs/background/background.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 |
28 |
29 |
30 |
31 | 32 |
33 |
34 | : 41 |
42 |
43 | :x:px  y:px 44 |
45 |
46 |
47 | 48 |
49 |
50 |
51 |
52 |
53 |
54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/background/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/background/images/bg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/background/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/background/images/success.png -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/charts.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | width: 100%; 3 | height: 100%; 4 | margin: 0; 5 | padding: 0; 6 | overflow-x: hidden; 7 | } 8 | 9 | .main { 10 | width: 100%; 11 | overflow: hidden; 12 | } 13 | 14 | .table-view { 15 | height: 100%; 16 | float: left; 17 | margin: 20px; 18 | width: 40%; 19 | } 20 | 21 | .table-view .table-container { 22 | width: 100%; 23 | margin-bottom: 50px; 24 | overflow: scroll; 25 | } 26 | 27 | .table-view th { 28 | padding: 5px 10px; 29 | background-color: #F7F7F7; 30 | } 31 | 32 | .table-view td { 33 | width: 50px; 34 | text-align: center; 35 | padding:0; 36 | } 37 | 38 | .table-container input { 39 | width: 40px; 40 | padding: 5px; 41 | border: none; 42 | outline: none; 43 | } 44 | 45 | .table-view caption { 46 | font-size: 18px; 47 | text-align: left; 48 | } 49 | 50 | .charts-view { 51 | /*margin-left: 49%!important;*/ 52 | width: 50%; 53 | margin-left: 49%; 54 | height: 400px; 55 | } 56 | 57 | .charts-container { 58 | border-left: 1px solid #c3c3c3; 59 | } 60 | 61 | .charts-format fieldset { 62 | padding-left: 20px; 63 | margin-bottom: 50px; 64 | } 65 | 66 | .charts-format legend { 67 | padding-left: 10px; 68 | padding-right: 10px; 69 | } 70 | 71 | .format-item-container { 72 | padding: 20px; 73 | } 74 | 75 | .format-item-container label { 76 | display: block; 77 | margin: 10px 0; 78 | } 79 | 80 | .charts-format .data-item { 81 | border: 1px solid black; 82 | outline: none; 83 | padding: 2px 3px; 84 | } 85 | 86 | /* 图表类型 */ 87 | 88 | .charts-type { 89 | margin-top: 50px; 90 | height: 300px; 91 | } 92 | 93 | .scroll-view { 94 | border: 1px solid #c3c3c3; 95 | border-left: none; 96 | border-right: none; 97 | overflow: hidden; 98 | } 99 | 100 | .scroll-container { 101 | margin: 20px; 102 | width: 100%; 103 | overflow: hidden; 104 | } 105 | 106 | .scroll-bed { 107 | width: 10000px; 108 | _margin-top: 20px; 109 | -webkit-transition: margin-left .5s ease; 110 | -moz-transition: margin-left .5s ease; 111 | transition: margin-left .5s ease; 112 | } 113 | 114 | .view-box { 115 | display: inline-block; 116 | *display: inline; 117 | *zoom: 1; 118 | margin-right: 20px; 119 | border: 2px solid white; 120 | line-height: 0; 121 | overflow: hidden; 122 | cursor: pointer; 123 | } 124 | 125 | .view-box img { 126 | border: 1px solid #cecece; 127 | } 128 | 129 | .view-box.selected { 130 | border-color: #7274A7; 131 | } 132 | 133 | .button-container { 134 | margin-bottom: 20px; 135 | text-align: center; 136 | } 137 | 138 | .button-container a { 139 | display: inline-block; 140 | width: 100px; 141 | height: 25px; 142 | line-height: 25px; 143 | border: 1px solid #c2ccd1; 144 | margin-right: 30px; 145 | text-decoration: none; 146 | color: black; 147 | -webkit-border-radius: 2px; 148 | -moz-border-radius: 2px; 149 | border-radius: 2px; 150 | } 151 | 152 | .button-container a:HOVER { 153 | background: #fcfcfc; 154 | } 155 | 156 | .button-container a:ACTIVE { 157 | border-top-color: #c2ccd1; 158 | box-shadow:inset 0 5px 4px -4px rgba(49, 49, 64, 0.1); 159 | } 160 | 161 | .edui-charts-not-data { 162 | height: 100px; 163 | line-height: 100px; 164 | text-align: center; 165 | } -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts0.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts1.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts2.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts3.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts4.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/charts/images/charts5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/charts/images/charts5.png -------------------------------------------------------------------------------- /public/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;} -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/0.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/bface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/bface.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/cface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/cface.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/fface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/fface.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/jxface2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/jxface2.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/tface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/tface.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/wface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/wface.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/emotion/images/yface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/emotion/images/yface.gif -------------------------------------------------------------------------------- /public/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;} -------------------------------------------------------------------------------- /public/ueditor/dialogs/help/help.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 帮助 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 | 14 | 15 |
16 |
17 |
18 |

UEditor

19 |

20 |

21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 |
ctrl+b
ctrl+c
ctrl+x
ctrl+v
ctrl+y
ctrl+z
ctrl+i
ctrl+u
ctrl+a
shift+enter
alt+z
77 |
78 |
79 |
80 | 81 | 82 | -------------------------------------------------------------------------------- /public/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; -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/alignicon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/alignicon.jpg -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/bg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/icons.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/icons.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/image.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/progress.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/success.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/image/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/image/images/success.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/internal.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | var parent = window.parent; 3 | //dialog对象 4 | dialog = parent.$EDITORUI[window.frameElement.id.replace( /_iframe$/, '' )]; 5 | //当前打开dialog的编辑器实例 6 | editor = dialog.editor; 7 | 8 | UE = parent.UE; 9 | 10 | domUtils = UE.dom.domUtils; 11 | 12 | utils = UE.utils; 13 | 14 | browser = UE.browser; 15 | 16 | ajax = UE.ajax; 17 | 18 | $G = function ( id ) { 19 | return document.getElementById( id ) 20 | }; 21 | //focus元素 22 | $focus = function ( node ) { 23 | setTimeout( function () { 24 | if ( browser.ie ) { 25 | var r = node.createTextRange(); 26 | r.collapse( false ); 27 | r.select(); 28 | } else { 29 | node.focus() 30 | } 31 | }, 0 ) 32 | }; 33 | utils.loadFile(document,{ 34 | href:editor.options.themePath + editor.options.theme + "/dialogbase.css?cache="+Math.random(), 35 | tag:"link", 36 | type:"text/css", 37 | rel:"stylesheet" 38 | }); 39 | lang = editor.getLang(dialog.className.split( "-" )[2]); 40 | if(lang){ 41 | domUtils.on(window,'load',function () { 42 | 43 | var langImgPath = editor.options.langPath + editor.options.lang + "/images/"; 44 | //针对静态资源 45 | for ( var i in lang["static"] ) { 46 | var dom = $G( i ); 47 | if(!dom) continue; 48 | var tagName = dom.tagName, 49 | content = lang["static"][i]; 50 | if(content.src){ 51 | //clone 52 | content = utils.extend({},content,false); 53 | content.src = langImgPath + content.src; 54 | } 55 | if(content.style){ 56 | content = utils.extend({},content,false); 57 | content.style = content.style.replace(/url\s*\(/g,"url(" + langImgPath) 58 | } 59 | switch ( tagName.toLowerCase() ) { 60 | case "var": 61 | dom.parentNode.replaceChild( document.createTextNode( content ), dom ); 62 | break; 63 | case "select": 64 | var ops = dom.options; 65 | for ( var j = 0, oj; oj = ops[j]; ) { 66 | oj.innerHTML = content.options[j++]; 67 | } 68 | for ( var p in content ) { 69 | p != "options" && dom.setAttribute( p, content[p] ); 70 | } 71 | break; 72 | default : 73 | domUtils.setAttributes( dom, content); 74 | } 75 | } 76 | } ); 77 | } 78 | 79 | 80 | })(); 81 | 82 | -------------------------------------------------------------------------------- /public/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;} -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/preview/preview.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 40 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/addimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/addimg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/brush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/brush.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/delimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/delimg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/delimgH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/delimgH.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/empty.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/emptyH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/emptyH.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/eraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/eraser.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/redo.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/redoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/redoH.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/scale.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/scaleH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/scaleH.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/size.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/undo.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/images/undoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/scrawl/images/undoH.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/scrawl/scrawl.css: -------------------------------------------------------------------------------- 1 | /*common 2 | */ 3 | body{margin: 0;} 4 | table{width:100%;} 5 | table td{padding:2px 4px;vertical-align: middle;} 6 | a{text-decoration: none;} 7 | em{font-style: normal;} 8 | .border_style1{border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;} 9 | /*module 10 | */ 11 | .main{margin: 8px;overflow: hidden;} 12 | 13 | .hot{float:left;height:335px;} 14 | .drawBoard{position: relative; cursor: crosshair;} 15 | .brushBorad{position: absolute;left:0;top:0;z-index: 998;} 16 | .picBoard{border: none;text-align: center;line-height: 300px;cursor: default;} 17 | .operateBar{margin-top:10px;font-size:12px;text-align: center;} 18 | .operateBar span{margin-left: 10px;} 19 | 20 | .drawToolbar{float:right;width:110px;height:300px;overflow: hidden;} 21 | .colorBar{margin-top:10px;font-size: 12px;text-align: center;} 22 | .colorBar a{display:block;width: 10px;height: 10px;border:1px solid #1006F1;border-radius: 3px; box-shadow:2px 2px 5px #d3d6da;opacity: 0.3} 23 | .sectionBar{margin-top:15px;font-size: 12px;text-align: center;} 24 | .sectionBar a{display:inline-block;width:10px;height:12px;color: #888;text-indent: -999px;opacity: 0.3} 25 | .size1{background: url('images/size.png') 1px center no-repeat ;} 26 | .size2{background: url('images/size.png') -10px center no-repeat;} 27 | .size3{background: url('images/size.png') -22px center no-repeat;} 28 | .size4{background: url('images/size.png') -35px center no-repeat;} 29 | 30 | .addImgH{position: relative;} 31 | .addImgH_form{position: absolute;left: 18px;top: -1px;width: 75px;height: 21px;opacity: 0;cursor: pointer;} 32 | .addImgH_form input{width: 100%;} 33 | /*scrawl遮罩层 34 | */ 35 | .maskLayerNull{display: none;} 36 | .maskLayer{position: absolute;top:0;left:0;width: 100%; height: 100%;opacity: 0.7; 37 | background-color: #fff;text-align:center;font-weight:bold;line-height:300px;z-index: 1000;} 38 | /*btn state 39 | */ 40 | .previousStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undoH.png');cursor: pointer;} 41 | .previousStepH .text{color:#888;cursor:pointer;} 42 | .previousStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/undo.png');cursor:default;} 43 | .previousStep .text{color:#ccc;cursor:default;} 44 | 45 | .nextStepH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redoH.png');cursor: pointer;} 46 | .nextStepH .text{color:#888;cursor:pointer;} 47 | .nextStep .icon{display: inline-block;width:16px;height:16px;background-image: url('images/redo.png');cursor:default;} 48 | .nextStep .text{color:#ccc;cursor:default;} 49 | 50 | .clearBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/emptyH.png');cursor: pointer;} 51 | .clearBoardH .text{color:#888;cursor:pointer;} 52 | .clearBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/empty.png');cursor:default;} 53 | .clearBoard .text{color:#ccc;cursor:default;} 54 | 55 | .scaleBoardH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scaleH.png');cursor: pointer;} 56 | .scaleBoardH .text{color:#888;cursor:pointer;} 57 | .scaleBoard .icon{display: inline-block;width:16px;height:16px;background-image: url('images/scale.png');cursor:default;} 58 | .scaleBoard .text{color:#ccc;cursor:default;} 59 | 60 | .removeImgH .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimgH.png');cursor: pointer;} 61 | .removeImgH .text{color:#888;cursor:pointer;} 62 | .removeImg .icon{display: inline-block;width:16px;height:16px;background-image: url('images/delimg.png');cursor:default;} 63 | .removeImg .text{color:#ccc;cursor:default;} 64 | 65 | .addImgH .icon{vertical-align:top;display: inline-block;width:16px;height:16px;background-image: url('images/addimg.png')} 66 | .addImgH .text{color:#888;cursor:pointer;} 67 | /*icon 68 | */ 69 | .brushIcon{display: inline-block;width:16px;height:16px;background-image: url('images/brush.png')} 70 | .eraserIcon{display: inline-block;width:16px;height:16px;background-image: url('images/eraser.png')} 71 | 72 | 73 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/snapscreen/snapscreen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 47 | 48 | 49 |
50 |

51 |
52 |
53 |
54 |
55 |
56 |
57 | 58 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/spechars/spechars.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/spechars/spechars.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created with JetBrains PhpStorm. 3 | * User: xuheng 4 | * Date: 12-9-26 5 | * Time: 下午1:09 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | var charsContent = [ 9 | { name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,~,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,$,¤,¢,£,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,¬,¦,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")}, 10 | { name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")}, 11 | { name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")}, 12 | { name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")}, 13 | { name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")}, 14 | { name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")}, 15 | { name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")}, 16 | { name:"yyyb", title:lang.yyyb, content:toArray("i:,i,e,æ,ʌ,ə:,ə,u:,u,ɔ:,ɔ,a:,ei,ai,ɔi,əu,au,iə,εə,uə,p,t,k,b,d,g,f,s,ʃ,θ,h,v,z,ʒ,ð,tʃ,tr,ts,dʒ,dr,dz,m,n,ŋ,l,r,w,j,")}, 17 | { name:"zyzf", title:lang.zyzf, content:toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ")} 18 | ]; 19 | (function createTab(content) { 20 | for (var i = 0, ci; ci = content[i++];) { 21 | var span = document.createElement("span"); 22 | span.setAttribute("tabSrc", ci.name); 23 | span.innerHTML = ci.title; 24 | if (i == 1)span.className = "focus"; 25 | domUtils.on(span, "click", function () { 26 | var tmps = $G("tabHeads").children; 27 | for (var k = 0, sk; sk = tmps[k++];) { 28 | sk.className = ""; 29 | } 30 | tmps = $G("tabBodys").children; 31 | for (var k = 0, sk; sk = tmps[k++];) { 32 | sk.style.display = "none"; 33 | } 34 | this.className = "focus"; 35 | $G(this.getAttribute("tabSrc")).style.display = ""; 36 | }); 37 | $G("tabHeads").appendChild(span); 38 | domUtils.insertAfter(span, document.createTextNode("\n")); 39 | var div = document.createElement("div"); 40 | div.id = ci.name; 41 | div.style.display = (i == 1) ? "" : "none"; 42 | var cons = ci.content; 43 | for (var j = 0, con; con = cons[j++];) { 44 | var charSpan = document.createElement("span"); 45 | charSpan.innerHTML = con; 46 | domUtils.on(charSpan, "click", function () { 47 | editor.execCommand("insertHTML", this.innerHTML); 48 | dialog.close(); 49 | }); 50 | div.appendChild(charSpan); 51 | } 52 | $G("tabBodys").appendChild(div); 53 | } 54 | })(charsContent); 55 | function toArray(str) { 56 | return str.split(","); 57 | } 58 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/table/dragicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/table/dragicon.png -------------------------------------------------------------------------------- /public/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 | } -------------------------------------------------------------------------------- /public/ueditor/dialogs/table/edittable.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 |
  • 28 |
29 |
30 |
31 |
32 |

33 |
    34 |
  • 35 | 36 |
  • 37 |
  • 38 | 39 |
  • 40 |
41 |
42 |
43 |
44 |

45 |
    46 |
  • 47 | 48 | 49 |
  • 50 |
51 |
52 |
53 |
54 |
55 |
56 |

57 |
58 |
59 |
60 |
61 |
62 | 63 | 64 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/table/edittd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 |
19 | 20 | 21 |
22 | 60 | 61 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/table/edittip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 表格删除提示 5 | 6 | 17 | 18 | 19 |
20 |
21 | 22 |
23 |
24 | 25 |
26 |
27 | 32 | 33 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/bg.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/pre0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/pre0.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/pre1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/pre1.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/pre2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/pre2.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/pre3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/pre3.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/template/images/pre4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/template/images/pre4.png -------------------------------------------------------------------------------- /public/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; } -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/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 | })(); -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/bg.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/center_focus.jpg -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/file-icons.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/file-icons.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/icons.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/icons.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/image.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/left_focus.jpg -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/none_focus.jpg -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/progress.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/right_focus.jpg -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/success.gif -------------------------------------------------------------------------------- /public/ueditor/dialogs/video/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/video/images/success.png -------------------------------------------------------------------------------- /public/ueditor/dialogs/webapp/webapp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 |
15 |
16 |
17 | 52 | 53 | -------------------------------------------------------------------------------- /public/ueditor/dialogs/wordimage/fClipboard_ueditor.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/wordimage/fClipboard_ueditor.swf -------------------------------------------------------------------------------- /public/ueditor/dialogs/wordimage/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/dialogs/wordimage/imageUploader.swf -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/addimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/addimage.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/alldeletebtnhoverskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/alldeletebtnhoverskin.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/alldeletebtnupskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/alldeletebtnupskin.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/background.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/button.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/copy.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/deletedisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/deletedisable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/deleteenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/deleteenable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/listbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/listbackground.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/localimage.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/music.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/rotateleftdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/rotateleftdisable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/rotateleftenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/rotateleftenable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/rotaterightdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/rotaterightdisable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/rotaterightenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/rotaterightenable.png -------------------------------------------------------------------------------- /public/ueditor/lang/en/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/en/images/upload.png -------------------------------------------------------------------------------- /public/ueditor/lang/zh-cn/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/zh-cn/images/copy.png -------------------------------------------------------------------------------- /public/ueditor/lang/zh-cn/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/zh-cn/images/localimage.png -------------------------------------------------------------------------------- /public/ueditor/lang/zh-cn/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/zh-cn/images/music.png -------------------------------------------------------------------------------- /public/ueditor/lang/zh-cn/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/lang/zh-cn/images/upload.png -------------------------------------------------------------------------------- /public/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 | } -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/anchor.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/arrow.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/arrow_down.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/arrow_up.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/button-bg.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/cancelbutton.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/charts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/charts.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/cursor_h.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/cursor_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/cursor_h.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/cursor_v.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/cursor_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/cursor_v.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/dialog-title-bg.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/filescan.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/highlighted.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/icons-all.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/icons.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/icons.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/loaderror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/loaderror.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/loading.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/lock.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/pagebreak.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/scale.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/sortable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/sortable.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/spacer.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/sparator_v.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/table-cell-align.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/table-cell-align.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/tangram-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/tangram-colorpicker.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/toolbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/toolbar_bg.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/unhighlighted.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/upload.png -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/videologo.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/word.gif -------------------------------------------------------------------------------- /public/ueditor/themes/default/images/wordpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/themes/default/images/wordpaste.png -------------------------------------------------------------------------------- /public/ueditor/themes/iframe.css: -------------------------------------------------------------------------------- 1 | /*可以在这里添加你自己的css*/ 2 | -------------------------------------------------------------------------------- /public/ueditor/third-party/codemirror/codemirror.css: -------------------------------------------------------------------------------- 1 | .CodeMirror { 2 | line-height: 1em; 3 | font-family: monospace; 4 | } 5 | 6 | .CodeMirror-scroll { 7 | overflow: auto; 8 | height: 300px; 9 | /* This is needed to prevent an IE[67] bug where the scrolled content 10 | is visible outside of the scrolling box. */ 11 | position: relative; 12 | } 13 | 14 | .CodeMirror-gutter { 15 | position: absolute; left: 0; top: 0; 16 | z-index: 10; 17 | background-color: #f7f7f7; 18 | border-right: 1px solid #eee; 19 | min-width: 2em; 20 | height: 100%; 21 | } 22 | .CodeMirror-gutter-text { 23 | color: #aaa; 24 | text-align: right; 25 | padding: .4em .2em .4em .4em; 26 | white-space: pre !important; 27 | } 28 | .CodeMirror-lines { 29 | padding: .4em; 30 | } 31 | 32 | .CodeMirror pre { 33 | -moz-border-radius: 0; 34 | -webkit-border-radius: 0; 35 | -o-border-radius: 0; 36 | border-radius: 0; 37 | border-width: 0; margin: 0; padding: 0; background: transparent; 38 | font-family: inherit; 39 | font-size: inherit; 40 | padding: 0; margin: 0; 41 | white-space: pre; 42 | word-wrap: normal; 43 | } 44 | 45 | .CodeMirror-wrap pre { 46 | word-wrap: break-word; 47 | white-space: pre-wrap; 48 | } 49 | .CodeMirror-wrap .CodeMirror-scroll { 50 | overflow-x: hidden; 51 | } 52 | 53 | .CodeMirror textarea { 54 | outline: none !important; 55 | } 56 | 57 | .CodeMirror pre.CodeMirror-cursor { 58 | z-index: 10; 59 | position: absolute; 60 | visibility: hidden; 61 | border-left: 1px solid black; 62 | } 63 | .CodeMirror-focused pre.CodeMirror-cursor { 64 | visibility: visible; 65 | } 66 | 67 | span.CodeMirror-selected { background: #d9d9d9; } 68 | .CodeMirror-focused span.CodeMirror-selected { background: #d2dcf8; } 69 | 70 | .CodeMirror-searching {background: #ffa;} 71 | 72 | /* Default theme */ 73 | 74 | .cm-s-default span.cm-keyword {color: #708;} 75 | .cm-s-default span.cm-atom {color: #219;} 76 | .cm-s-default span.cm-number {color: #164;} 77 | .cm-s-default span.cm-def {color: #00f;} 78 | .cm-s-default span.cm-variable {color: black;} 79 | .cm-s-default span.cm-variable-2 {color: #05a;} 80 | .cm-s-default span.cm-variable-3 {color: #085;} 81 | .cm-s-default span.cm-property {color: black;} 82 | .cm-s-default span.cm-operator {color: black;} 83 | .cm-s-default span.cm-comment {color: #a50;} 84 | .cm-s-default span.cm-string {color: #a11;} 85 | .cm-s-default span.cm-string-2 {color: #f50;} 86 | .cm-s-default span.cm-meta {color: #555;} 87 | .cm-s-default span.cm-error {color: #f00;} 88 | .cm-s-default span.cm-qualifier {color: #555;} 89 | .cm-s-default span.cm-builtin {color: #30a;} 90 | .cm-s-default span.cm-bracket {color: #cc7;} 91 | .cm-s-default span.cm-tag {color: #170;} 92 | .cm-s-default span.cm-attribute {color: #00c;} 93 | .cm-s-default span.cm-header {color: #a0a;} 94 | .cm-s-default span.cm-quote {color: #090;} 95 | .cm-s-default span.cm-hr {color: #999;} 96 | .cm-s-default span.cm-link {color: #00c;} 97 | 98 | span.cm-header, span.cm-strong {font-weight: bold;} 99 | span.cm-em {font-style: italic;} 100 | span.cm-emstrong {font-style: italic; font-weight: bold;} 101 | span.cm-link {text-decoration: underline;} 102 | 103 | div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 104 | div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 105 | -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/third-party/highcharts/adapters/prototype-adapter.js: -------------------------------------------------------------------------------- 1 | /* 2 | Highcharts JS v3.0.6 (2013-10-04) 3 | Prototype adapter 4 | 5 | @author Michael Nelson, Torstein Hønsi. 6 | 7 | Feel free to use and modify this script. 8 | Highcharts license: www.highcharts.com/license. 9 | */ 10 | var HighchartsAdapter=function(){var f=typeof Effect!=="undefined";return{init:function(a){if(f)Effect.HighchartsTransition=Class.create(Effect.Base,{initialize:function(b,c,d,g){var e;this.element=b;this.key=c;e=b.attr?b.attr(c):$(b).getStyle(c);if(c==="d")this.paths=a.init(b,b.d,d),this.toD=d,e=0,d=1;this.start(Object.extend(g||{},{from:e,to:d,attribute:c}))},setup:function(){HighchartsAdapter._extend(this.element);if(!this.element._highchart_animation)this.element._highchart_animation={};this.element._highchart_animation[this.key]= 11 | this},update:function(b){var c=this.paths,d=this.element;c&&(b=a.step(c[0],c[1],b,this.toD));d.attr?d.element&&d.attr(this.options.attribute,b):(c={},c[this.options.attribute]=b,$(d).setStyle(c))},finish:function(){this.element&&this.element._highchart_animation&&delete this.element._highchart_animation[this.key]}})},adapterRun:function(a,b){return parseInt($(a).getStyle(b),10)},getScript:function(a,b){var c=$$("head")[0];c&&c.appendChild((new Element("script",{type:"text/javascript",src:a})).observe("load", 12 | b))},addNS:function(a){var b=/^(?:click|mouse(?:down|up|over|move|out))$/;return/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/.test(a)||b.test(a)?a:"h:"+a},addEvent:function(a,b,c){a.addEventListener||a.attachEvent?Event.observe($(a),HighchartsAdapter.addNS(b),c):(HighchartsAdapter._extend(a),a._highcharts_observe(b,c))},animate:function(a,b,c){var d,c=c||{};c.delay=0;c.duration=(c.duration||500)/1E3;c.afterFinish=c.complete;if(f)for(d in b)new Effect.HighchartsTransition($(a), 13 | d,b[d],c);else{if(a.attr)for(d in b)a.attr(d,b[d]);c.complete&&c.complete()}a.attr||$(a).setStyle(b)},stop:function(a){var b;if(a._highcharts_extended&&a._highchart_animation)for(b in a._highchart_animation)a._highchart_animation[b].cancel()},each:function(a,b){$A(a).each(b)},inArray:function(a,b,c){return b?b.indexOf(a,c):-1},offset:function(a){return $(a).cumulativeOffset()},fireEvent:function(a,b,c,d){a.fire?a.fire(HighchartsAdapter.addNS(b),c):a._highcharts_extended&&(c=c||{},a._highcharts_fire(b, 14 | c));c&&c.defaultPrevented&&(d=null);d&&d(c)},removeEvent:function(a,b,c){$(a).stopObserving&&(b&&(b=HighchartsAdapter.addNS(b)),$(a).stopObserving(b,c));window===a?Event.stopObserving(a,b,c):(HighchartsAdapter._extend(a),a._highcharts_stop_observing(b,c))},washMouseEvent:function(a){return a},grep:function(a,b){return a.findAll(b)},map:function(a,b){return a.map(b)},_extend:function(a){a._highcharts_extended||Object.extend(a,{_highchart_events:{},_highchart_animation:null,_highcharts_extended:!0, 15 | _highcharts_observe:function(b,a){this._highchart_events[b]=[this._highchart_events[b],a].compact().flatten()},_highcharts_stop_observing:function(b,a){b?a?this._highchart_events[b]=[this._highchart_events[b]].compact().flatten().without(a):delete this._highchart_events[b]:this._highchart_events={}},_highcharts_fire:function(a,c){var d=this;(this._highchart_events[a]||[]).each(function(a){if(!c.stopped)c.preventDefault=function(){c.defaultPrevented=!0},c.target=d,a.bind(this)(c)===!1&&c.preventDefault()}.bind(this))}})}}}(); 16 | -------------------------------------------------------------------------------- /public/ueditor/third-party/highcharts/modules/annotations.js: -------------------------------------------------------------------------------- 1 | (function(i,C){function m(a){return typeof a==="number"}function n(a){return a!==D&&a!==null}var D,p,r,s=i.Chart,t=i.extend,z=i.each;r=["path","rect","circle"];p={top:0,left:0,center:0.5,middle:0.5,bottom:1,right:1};var u=C.inArray,A=i.merge,B=function(){this.init.apply(this,arguments)};B.prototype={init:function(a,d){var c=d.shape&&d.shape.type;this.chart=a;var b,f;f={xAxis:0,yAxis:0,title:{style:{},text:"",x:0,y:0},shape:{params:{stroke:"#000000",fill:"transparent",strokeWidth:2}}};b={circle:{params:{x:0, 2 | y:0}}};if(b[c])f.shape=A(f.shape,b[c]);this.options=A({},f,d)},render:function(a){var d=this.chart,c=this.chart.renderer,b=this.group,f=this.title,e=this.shape,h=this.options,i=h.title,l=h.shape;if(!b)b=this.group=c.g();if(!e&&l&&u(l.type,r)!==-1)e=this.shape=c[h.shape.type](l.params),e.add(b);if(!f&&i)f=this.title=c.label(i),f.add(b);b.add(d.annotations.group);this.linkObjects();a!==!1&&this.redraw()},redraw:function(){var a=this.options,d=this.chart,c=this.group,b=this.title,f=this.shape,e=this.linkedObject, 3 | h=d.xAxis[a.xAxis],v=d.yAxis[a.yAxis],l=a.width,w=a.height,x=p[a.anchorY],y=p[a.anchorX],j,o,g,q;if(e)j=e instanceof i.Point?"point":e instanceof i.Series?"series":null,j==="point"?(a.xValue=e.x,a.yValue=e.y,o=e.series):j==="series"&&(o=e),c.visibility!==o.group.visibility&&c.attr({visibility:o.group.visibility});e=n(a.xValue)?h.toPixels(a.xValue+h.minPointOffset)-h.minPixelPadding:a.x;j=n(a.yValue)?v.toPixels(a.yValue):a.y;if(!isNaN(e)&&!isNaN(j)&&m(e)&&m(j)){b&&(b.attr(a.title),b.css(a.title.style)); 4 | if(f){b=t({},a.shape.params);if(a.units==="values"){for(g in b)u(g,["width","x"])>-1?b[g]=h.translate(b[g]):u(g,["height","y"])>-1&&(b[g]=v.translate(b[g]));b.width&&(b.width-=h.toPixels(0)-h.left);b.x&&(b.x+=h.minPixelPadding);if(a.shape.type==="path"){g=b.d;o=e;for(var r=j,s=g.length,k=0;k-1&&d.splice(c,1);z(["title","shape","group"],function(b){a[b]&&(a[b].destroy(),a[b]=null)});a.group=a.title=a.shape=a.chart=a.options=null},update:function(a,d){t(this.options,a);this.linkObjects();this.render(d)}, 6 | linkObjects:function(){var a=this.chart,d=this.linkedObject,c=d&&(d.id||d.options.id),b=this.options.linkedTo;if(n(b)){if(!n(d)||b!==c)this.linkedObject=a.get(b)}else this.linkedObject=null}};t(s.prototype,{annotations:{add:function(a,d){var c=this.allItems,b=this.chart,f,e;Object.prototype.toString.call(a)==="[object Array]"||(a=[a]);for(e=a.length;e--;)f=new B(b,a[e]),c.push(f),f.render(d)},redraw:function(){z(this.allItems,function(a){a.redraw()})}}});s.prototype.callbacks.push(function(a){var d= 7 | a.options.annotations,c;c=a.renderer.g("annotations");c.attr({zIndex:7});c.add();a.annotations.allItems=[];a.annotations.chart=a;a.annotations.group=c;Object.prototype.toString.call(d)==="[object Array]"&&d.length>0&&a.annotations.add(a.options.annotations);i.addEvent(a,"redraw",function(){a.annotations.redraw()})})})(Highcharts,HighchartsAdapter); 8 | -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/third-party/highcharts/modules/no-data-to-display.src.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 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 | 11 | (function (H) { // docs 12 | 13 | var seriesTypes = H.seriesTypes, 14 | chartPrototype = H.Chart.prototype, 15 | defaultOptions = H.getOptions(), 16 | extend = H.extend; 17 | 18 | // Add language option 19 | extend(defaultOptions.lang, { 20 | noData: 'No data to display' 21 | }); 22 | 23 | // Add default display options for message 24 | defaultOptions.noData = { 25 | position: { 26 | x: 0, 27 | y: 0, 28 | align: 'center', 29 | verticalAlign: 'middle' 30 | }, 31 | attr: { 32 | }, 33 | style: { 34 | fontWeight: 'bold', 35 | fontSize: '12px', 36 | color: '#60606a' 37 | } 38 | }; 39 | 40 | /** 41 | * Define hasData functions for series. These return true if there are data points on this series within the plot area 42 | */ 43 | function hasDataPie() { 44 | return !!this.points.length; /* != 0 */ 45 | } 46 | 47 | seriesTypes.pie.prototype.hasData = hasDataPie; 48 | 49 | if (seriesTypes.gauge) { 50 | seriesTypes.gauge.prototype.hasData = hasDataPie; 51 | } 52 | 53 | if (seriesTypes.waterfall) { 54 | seriesTypes.waterfall.prototype.hasData = hasDataPie; 55 | } 56 | 57 | H.Series.prototype.hasData = function () { 58 | return this.dataMax !== undefined && this.dataMin !== undefined; 59 | }; 60 | 61 | /** 62 | * Display a no-data message. 63 | * 64 | * @param {String} str An optional message to show in place of the default one 65 | */ 66 | chartPrototype.showNoData = function (str) { 67 | var chart = this, 68 | options = chart.options, 69 | text = str || options.lang.noData, 70 | noDataOptions = options.noData; 71 | 72 | if (!chart.noDataLabel) { 73 | chart.noDataLabel = chart.renderer.label(text, 0, 0, null, null, null, null, null, 'no-data') 74 | .attr(noDataOptions.attr) 75 | .css(noDataOptions.style) 76 | .add(); 77 | chart.noDataLabel.align(extend(chart.noDataLabel.getBBox(), noDataOptions.position), false, 'plotBox'); 78 | } 79 | }; 80 | 81 | /** 82 | * Hide no-data message 83 | */ 84 | chartPrototype.hideNoData = function () { 85 | var chart = this; 86 | if (chart.noDataLabel) { 87 | chart.noDataLabel = chart.noDataLabel.destroy(); 88 | } 89 | }; 90 | 91 | /** 92 | * Returns true if there are data points within the plot area now 93 | */ 94 | chartPrototype.hasData = function () { 95 | var chart = this, 96 | series = chart.series, 97 | i = series.length; 98 | 99 | while (i--) { 100 | if (series[i].hasData() && !series[i].options.isInternal) { 101 | return true; 102 | } 103 | } 104 | 105 | return false; 106 | }; 107 | 108 | /** 109 | * Show no-data message if there is no data in sight. Otherwise, hide it. 110 | */ 111 | function handleNoData() { 112 | var chart = this; 113 | if (chart.hasData()) { 114 | chart.hideNoData(); 115 | } else { 116 | chart.showNoData(); 117 | } 118 | } 119 | 120 | /** 121 | * Add event listener to handle automatic display of no-data message 122 | */ 123 | chartPrototype.callbacks.push(function (chart) { 124 | H.addEvent(chart, 'load', handleNoData); 125 | H.addEvent(chart, 'redraw', handleNoData); 126 | }); 127 | 128 | }(Highcharts)); 129 | -------------------------------------------------------------------------------- /public/ueditor/third-party/highcharts/themes/grid.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Grid theme for Highcharts JS 3 | * @author Torstein Hønsi 4 | */ 5 | 6 | Highcharts.theme = { 7 | colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'], 8 | chart: { 9 | backgroundColor: { 10 | linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 }, 11 | stops: [ 12 | [0, 'rgb(255, 255, 255)'], 13 | [1, 'rgb(240, 240, 255)'] 14 | ] 15 | }, 16 | borderWidth: 2, 17 | plotBackgroundColor: 'rgba(255, 255, 255, .9)', 18 | plotShadow: true, 19 | plotBorderWidth: 1 20 | }, 21 | title: { 22 | style: { 23 | color: '#000', 24 | font: 'bold 16px "Trebuchet MS", Verdana, sans-serif' 25 | } 26 | }, 27 | subtitle: { 28 | style: { 29 | color: '#666666', 30 | font: 'bold 12px "Trebuchet MS", Verdana, sans-serif' 31 | } 32 | }, 33 | xAxis: { 34 | gridLineWidth: 1, 35 | lineColor: '#000', 36 | tickColor: '#000', 37 | labels: { 38 | style: { 39 | color: '#000', 40 | font: '11px Trebuchet MS, Verdana, sans-serif' 41 | } 42 | }, 43 | title: { 44 | style: { 45 | color: '#333', 46 | fontWeight: 'bold', 47 | fontSize: '12px', 48 | fontFamily: 'Trebuchet MS, Verdana, sans-serif' 49 | 50 | } 51 | } 52 | }, 53 | yAxis: { 54 | minorTickInterval: 'auto', 55 | lineColor: '#000', 56 | lineWidth: 1, 57 | tickWidth: 1, 58 | tickColor: '#000', 59 | labels: { 60 | style: { 61 | color: '#000', 62 | font: '11px Trebuchet MS, Verdana, sans-serif' 63 | } 64 | }, 65 | title: { 66 | style: { 67 | color: '#333', 68 | fontWeight: 'bold', 69 | fontSize: '12px', 70 | fontFamily: 'Trebuchet MS, Verdana, sans-serif' 71 | } 72 | } 73 | }, 74 | legend: { 75 | itemStyle: { 76 | font: '9pt Trebuchet MS, Verdana, sans-serif', 77 | color: 'black' 78 | 79 | }, 80 | itemHoverStyle: { 81 | color: '#039' 82 | }, 83 | itemHiddenStyle: { 84 | color: 'gray' 85 | } 86 | }, 87 | labels: { 88 | style: { 89 | color: '#99b' 90 | } 91 | }, 92 | 93 | navigation: { 94 | buttonOptions: { 95 | theme: { 96 | stroke: '#CCCCCC' 97 | } 98 | } 99 | } 100 | }; 101 | 102 | // Apply the theme 103 | var highchartsOptions = Highcharts.setOptions(Highcharts.theme); 104 | -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/third-party/snapscreen/UEditorSnapscreen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/snapscreen/UEditorSnapscreen.exe -------------------------------------------------------------------------------- /public/ueditor/third-party/video-js/font/vjs.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/video-js/font/vjs.eot -------------------------------------------------------------------------------- /public/ueditor/third-party/video-js/font/vjs.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/video-js/font/vjs.ttf -------------------------------------------------------------------------------- /public/ueditor/third-party/video-js/font/vjs.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/video-js/font/vjs.woff -------------------------------------------------------------------------------- /public/ueditor/third-party/video-js/video-js.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/video-js/video-js.swf -------------------------------------------------------------------------------- /public/ueditor/third-party/webuploader/Uploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/webuploader/Uploader.swf -------------------------------------------------------------------------------- /public/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 | -------------------------------------------------------------------------------- /public/ueditor/third-party/zeroclipboard/ZeroClipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/public/ueditor/third-party/zeroclipboard/ZeroClipboard.swf -------------------------------------------------------------------------------- /public/upload/img/blog/tj.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /public/upload/img/friends/tj.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /routes/ueditor.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const express = require('express'); 3 | const router = express.Router(); 4 | const ueditor = require("ueditor"); 5 | const path = require('path'); 6 | 7 | router.get('/ueditor', function (req, res) { 8 | if (req.query.action === 'uploadimage') { 9 | const foo = req.ueditor; 10 | const imgname = req.ueditor.filename; 11 | const img_url = '/upload/images/'; 12 | //你只要输入要保存的地址 。保存操作交给ueditor来做 13 | res.ue_up(img_url); 14 | } 15 | // 客户端发起图片列表请求 16 | else if (req.query.action === 'listimage') { 17 | const dir_url = '/images/ueditor/'; 18 | // 客户端会列出 dir_url 目录下的所有图片 19 | res.ue_list(dir_url); 20 | } 21 | // 客户端发起其它请求 22 | else { 23 | res.setHeader('Content-Type', 'application/json'); 24 | res.redirect('/ueditor/nodejs/config.json'); 25 | } 26 | }); 27 | 28 | router.post('/ueditor', ueditor(path.join(__dirname, '../public'), function(req, res) { 29 | const date = new Date(); 30 | if (req.query.action === 'uploadimage') { 31 | const foo = req.ueditor; 32 | const imgname = req.ueditor.filename; 33 | const img_url = '/upload/images/'+date.getFullYear()+'/'+date.getMonth()+'/'; 34 | //图片上传 35 | res.ue_up(img_url); 36 | } 37 | })); 38 | 39 | module.exports = router; -------------------------------------------------------------------------------- /routes/users.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const express = require('express'); 4 | const router = express.Router(); 5 | 6 | const usersDao = require('../dao/usersDao'); 7 | 8 | router.post('/profile', async (req, res) => { 9 | const form = JSON.parse(req.body.form); 10 | try { 11 | const result = await usersDao.getUserToken(form.uid, form.token); 12 | if (result.length === 1 && result[0].state === 0) { 13 | const userInfo = result[0]; 14 | delete userInfo.password; 15 | delete userInfo.state; 16 | res.send({ 17 | retCode: 0, 18 | retMsg: '', 19 | retData: userInfo 20 | }) 21 | } else { 22 | throw new Error('用户不存在'); 23 | } 24 | } catch (ex) { 25 | res.send({ 26 | retCode: 10001, 27 | retMsg: '登陆超时', 28 | retData: {} 29 | }); 30 | res.end(); 31 | } 32 | }); 33 | 34 | module.exports = router; -------------------------------------------------------------------------------- /screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/screenshot1.png -------------------------------------------------------------------------------- /screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/screenshot2.png -------------------------------------------------------------------------------- /screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IceEnd/Spruche/54223563a089b5d42cb26094a72a30df6563ef11/screenshot3.png -------------------------------------------------------------------------------- /views/back/allarticle.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 | 65 |
66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /views/back/friendsconfig.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Spruche|友链管理 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 |
27 |
28 | 29 | 30 |
31 |
32 | 33 | 34 |
35 |
36 | 37 | 38 |
39 |
40 | 41 | 42 |
43 |
44 | 45 | 46 |

选择小于1M的图片.

47 |
48 | 49 |
50 |
51 |
52 | <% for(var i = 0; i < friends.length; i++) {%> 53 |
54 |
55 | 头像 56 |
57 |

<%=friends[i].website%>

58 |

<%=friends[i].name%>
<%=friends[i].description%>

59 |

60 | 修改 61 | 删除 62 |

63 |
64 |
65 |
66 | <% } %> 67 |
68 |
69 |
70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /views/back/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 站点调教 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 |

Welcome to SPRUCHE!

24 |

25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /views/back/mediaImg.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 | <% for(var i in images) { %> 25 | 26 | <% } %> 27 |
28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /views/back/wsconfig.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 |

用户信息

28 |
29 |
30 | 31 | 32 |
33 |
34 | 35 | 36 |
37 |
38 | 39 |
40 | 41 |
42 |

站点设置

43 |
44 |
45 | 46 | 47 |
48 |
49 | 50 | 51 |
52 |
53 | 54 |
55 | 56 |
57 |

导入多说评论

58 |

请先将多说评论文件 export.json 放在 /data 下(注意:此功能仅支持导入Spruche上使用过的多说评论)。

59 | 60 |
61 | 62 |
63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /views/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 30 | 31 | 32 |
33 |

<%= message %>

34 | 35 |
36 | 37 | 38 | -------------------------------------------------------------------------------- /views/front/themes/default/alert.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

Master之令咒:

6 |
7 |
8 |

带我飞

9 |
10 |
11 | 12 |
13 |
14 |
-------------------------------------------------------------------------------- /views/front/themes/default/connect.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Spruche 正在召唤英灵... 6 | 7 | 8 | 9 | 10 |
17 |

22 | Spruche 正在连接微博... 23 |

24 | 25 |
26 | 27 | 28 | 29 | 33 | 34 | -------------------------------------------------------------------------------- /views/front/themes/default/darkness.html: -------------------------------------------------------------------------------- 1 | <% var darkHours = (new Date()).getHours() %> 2 | <% if ((0 <= darkHours && darkHours <= 6) || (18 <= darkHours && darkHours <= 24)) { %> 3 | 6 | <% } %> 7 | -------------------------------------------------------------------------------- /views/front/themes/default/footer.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |
7 |

©2016-2017 Powerd by 8 | Cononico's 9 | Spruche 10 | 鄂ICP备14020745号 11 |

12 |
13 |
14 | -------------------------------------------------------------------------------- /views/front/themes/default/friendslink.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <%= website.name %> | 友人帐 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | <% include darkness.html %> 24 | 25 | 26 | 27 | <% include header.html %> 28 |
29 |
30 |
31 |
32 | 35 |
36 | 65 |
66 |
67 |
68 |
69 |
70 | <% include footer.html %> 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /views/front/themes/default/loading.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 6 | 7 | 8 | 10 | 11 | 12 | 14 | 15 | 16 |
17 | -------------------------------------------------------------------------------- /views/front/themes/default/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%=website.name %> | <%= title %> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | <% include header.html %> 21 | 22 | 48 | 49 | <% include alert.html %> 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /views/front/themes/default/messageboard.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 绘枫和畅 | # 吐槽 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | <% include darkness.html %> 24 | 25 | 26 | 27 | <% include header.html %> 28 |
29 |
30 |
31 |
32 | 35 |
36 |

欢迎来到 guò,这里是Alchemy —— 狭小世界的防火女。

37 | 38 | 41 |

此处是我连接 世界 之所,你永远不会找到携带任何 价值 抑或 意义 的东西。

42 | 43 | 44 |

但你仍可以沿着贯穿世界透明折线,窥探它的 心脏

45 | 46 | 49 | 50 |

51 | - 沉迷吉他指弹,偏爱押尾光太郎 52 |

53 | 54 |

55 | - 绘画爱好者,虽然画得不多也不好 56 |

57 | 58 |

59 | - 伪历史迷,钟爱三国和大明,最喜欢的历史人物是 于谦 60 |

61 | 62 |

63 | - 深居浅出,喜欢克苏鲁神话 64 |

65 | 66 |

67 | - 职业是IT开发者,更喜欢做产品 68 |

69 | 70 |

71 | >_ 孤癖型文艺青年 72 |

73 | 74 |

如果灰烬大人有任何疑问,可以在此处留下您的印记!

75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 | 84 |
85 |
86 | <% include alert.html %> 87 | <% include footer.html %> 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /views/front/themes/default/start.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Spruche | <%= title %> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | <% include header.html %> 26 | 27 | 58 | 59 | 60 | <% include alert.html %> 61 | 62 | 63 | 64 | --------------------------------------------------------------------------------