├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .postcssrc.js ├── README.md ├── build ├── build.js ├── check-versions.js ├── dev-client.js ├── dev-server.js ├── utils.js ├── vue-loader.conf.js ├── webpack.base.conf.js ├── webpack.dev.conf.js └── webpack.prod.conf.js ├── config ├── dev.env.js ├── index.js └── prod.env.js ├── index.html ├── package.json ├── src ├── App.vue ├── api │ └── index.js ├── components │ ├── footer.vue │ ├── header.vue │ └── ue.vue ├── config │ └── index.js ├── frame │ └── frame.vue ├── main.js ├── page │ ├── content.vue │ ├── index.vue │ ├── jq.vue │ ├── keyboard.vue │ └── ue_test.vue ├── router │ └── index.js ├── style │ ├── base │ │ ├── _base.scss │ │ ├── _color.scss │ │ ├── _mixin.scss │ │ └── _reset.scss │ ├── scss │ │ ├── _content.scss │ │ ├── _index.scss │ │ └── _keyboard.scss │ └── style.scss └── utils │ ├── index.js │ └── keyboard.json └── static ├── image └── lyf.jpg ├── js ├── jquery-1.8.3.js └── jquery-3.2.1.min.js └── ue ├── 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 ├── php ├── Uploader.class.php ├── action_crawler.php ├── action_list.php ├── action_upload.php ├── config.json └── controller.php ├── themes ├── default │ ├── css │ │ ├── ueditor.css │ │ └── ueditor.min.css │ ├── dialogbase.css │ └── images │ │ ├── anchor.gif │ │ ├── arrow.png │ │ ├── arrow_down.png │ │ ├── arrow_up.png │ │ ├── button-bg.gif │ │ ├── cancelbutton.gif │ │ ├── charts.png │ │ ├── cursor_h.gif │ │ ├── cursor_h.png │ │ ├── cursor_v.gif │ │ ├── cursor_v.png │ │ ├── dialog-title-bg.png │ │ ├── filescan.png │ │ ├── highlighted.gif │ │ ├── icons-all.gif │ │ ├── icons.gif │ │ ├── icons.png │ │ ├── loaderror.png │ │ ├── loading.gif │ │ ├── lock.gif │ │ ├── neweditor-tab-bg.png │ │ ├── pagebreak.gif │ │ ├── scale.png │ │ ├── sortable.png │ │ ├── spacer.gif │ │ ├── sparator_v.png │ │ ├── table-cell-align.png │ │ ├── tangram-colorpicker.png │ │ ├── toolbar_bg.png │ │ ├── unhighlighted.gif │ │ ├── upload.png │ │ ├── videologo.gif │ │ ├── word.gif │ │ └── wordpaste.png └── iframe.css ├── third-party ├── SyntaxHighlighter │ ├── shCore.js │ └── shCoreDefault.css ├── codemirror │ ├── codemirror.css │ └── codemirror.js ├── highcharts │ ├── adapters │ │ ├── mootools-adapter.js │ │ ├── mootools-adapter.src.js │ │ ├── prototype-adapter.js │ │ ├── prototype-adapter.src.js │ │ ├── standalone-framework.js │ │ └── standalone-framework.src.js │ ├── highcharts-more.js │ ├── highcharts-more.src.js │ ├── highcharts.js │ ├── highcharts.src.js │ ├── modules │ │ ├── annotations.js │ │ ├── annotations.src.js │ │ ├── canvas-tools.js │ │ ├── canvas-tools.src.js │ │ ├── data.js │ │ ├── data.src.js │ │ ├── drilldown.js │ │ ├── drilldown.src.js │ │ ├── exporting.js │ │ ├── exporting.src.js │ │ ├── funnel.js │ │ ├── funnel.src.js │ │ ├── heatmap.js │ │ ├── heatmap.src.js │ │ ├── map.js │ │ ├── map.src.js │ │ ├── no-data-to-display.js │ │ └── no-data-to-display.src.js │ └── themes │ │ ├── dark-blue.js │ │ ├── dark-green.js │ │ ├── gray.js │ │ ├── grid.js │ │ └── skies.js ├── jquery-1.10.2.js ├── jquery-1.10.2.min.js ├── jquery-1.10.2.min.map ├── snapscreen │ └── UEditorSnapscreen.exe ├── video-js │ ├── font │ │ ├── vjs.eot │ │ ├── vjs.svg │ │ ├── vjs.ttf │ │ └── vjs.woff │ ├── video-js.css │ ├── video-js.min.css │ ├── video-js.swf │ ├── video.dev.js │ └── video.js ├── webuploader │ ├── Uploader.swf │ ├── webuploader.css │ ├── webuploader.custom.js │ ├── webuploader.custom.min.js │ ├── webuploader.flashonly.js │ ├── webuploader.flashonly.min.js │ ├── webuploader.html5only.js │ ├── webuploader.html5only.min.js │ ├── webuploader.js │ ├── webuploader.min.js │ ├── webuploader.withoutimage.js │ └── webuploader.withoutimage.min.js ├── xss.min.js └── zeroclipboard │ ├── ZeroClipboard.js │ ├── ZeroClipboard.min.js │ └── ZeroClipboard.swf ├── ueditor.all.js ├── ueditor.all.min.js ├── ueditor.config.js ├── ueditor.parse.js └── ueditor.parse.min.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-runtime"], 12 | "env": { 13 | "test": { 14 | "presets": ["env", "stage-2"], 15 | "plugins": ["istanbul"] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | static/*.js 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | // http://eslint.org/docs/user-guide/configuring 2 | 3 | module.exports = { 4 | root: true, 5 | parser: 'babel-eslint', 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true, 11 | jquery: true 12 | }, 13 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 14 | extends: 'standard', 15 | // required to lint *.vue files 16 | plugins: [ 17 | 'html' 18 | ], 19 | // add your custom rules here 20 | 'rules': { 21 | // allow paren-less arrow functions 22 | 'arrow-parens': 0, 23 | // allow async-await 24 | 'generator-star-spacing': 0, 25 | // allow debugger during development 26 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | *.suo 11 | *.ntvs* 12 | *.njsproj 13 | *.sln 14 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserslist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版 2 | 3 | > 2018年补充,如果你 clone 或者 fork 本项目之后,不能运行,说明 package-lock.json 锁定的各个工具的版本和你本地的环境有冲突,没有关系,只需要删除这个文件,然后重新安装就可以了。 4 | 5 | ``` 6 | rm -rf node_modules package-lock.json 7 | npm i 8 | ``` 9 | > 补充结束 10 | 11 | 2016年,我写了一系列的 VUE 入门教程,当时写这一系列博文的时候,我也只是一个菜鸟,甚至在写的过程中关闭了代码审查,否则通不过校验。 12 | 13 | 本来写这一系列的博文只是为了给自己看的,但没想到的是,这系列博文的点击量超过了2万以上,搜索引擎的排名也是非常理想,这让我诚惶诚恐,生怕我写的博文有所纰漏,误人子弟。 14 | 15 | 再者,这一年的发展,VUE 项目快速迭代,看着我一年前写的博文,很可能各种提示已经发生改变,对照着过时的资料,非常可能导致新手在学习的过程中产生不必要的困扰。 16 | 17 | 因此,本人决定,重写这个系列的博文,力求以简明、清晰、准确的图文以及代码描述,配合 github 的项目开源代码,给各位 VUE 新手提供一个高质量的入门文案。 18 | 19 | 以下为我写的博文: 20 | 21 | 1. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(一)基础知识概述](http://blog.csdn.net/fungleo/article/details/77575077) 22 | 2. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(二)安装 nodejs 环境以及 vue-cli 构建初始项目](http://blog.csdn.net/fungleo/article/details/77584701) 23 | 3. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(三)认识项目所有文件](http://blog.csdn.net/fungleo/article/details/77585205) 24 | 4. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(四)调整 App.vue 和 router 路由](http://blog.csdn.net/fungleo/article/details/77600798) 25 | 5. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(五)配置 Axios api 接口调用文件](http://blog.csdn.net/fungleo/article/details/77601270) 26 | 6. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(六)将接口用 webpack 代理到本地](http://blog.csdn.net/fungleo/article/details/77601761) 27 | 7. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(七)初识 *.vue 文件](http://blog.csdn.net/fungleo/article/details/77602914) 28 | 8. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(八)渲染一个列表出来先](http://blog.csdn.net/fungleo/article/details/77603537) 29 | 9. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(九)再把内容页面渲染出来](http://blog.csdn.net/fungleo/article/details/77604490) 30 | 10. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(十)打包项目并发布到子目录](http://blog.csdn.net/fungleo/article/details/77606216) 31 | 11. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(十一)阶段性小结](http://blog.csdn.net/fungleo/article/details/77606321) 32 | 12. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(十二)打包项目图片等资源的处理](http://blog.csdn.net/fungleo/article/details/77799057) 33 | 13. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(十三)集成 UEditor 百度富文本编辑器](http://blog.csdn.net/column/details/17076.html) 34 | 14. [Vue2+VueRouter2+Webpack+Axios 构建项目实战2017重制版(十四)在项目中使用 jQuery](http://blog.csdn.net/fungleo/article/details/77879328) 35 | 36 | ## Build Setup 37 | 38 | ``` bash 39 | # install dependencies 40 | npm install 41 | 42 | # serve with hot reload at localhost:8080 43 | npm run dev 44 | 45 | # build for production with minification 46 | npm run build 47 | 48 | # build for production and view the bundle analyzer report 49 | npm run build --report 50 | ``` 51 | -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | process.env.NODE_ENV = 'production' 4 | 5 | var ora = require('ora') 6 | var rm = require('rimraf') 7 | var path = require('path') 8 | var chalk = require('chalk') 9 | var webpack = require('webpack') 10 | var config = require('../config') 11 | var webpackConfig = require('./webpack.prod.conf') 12 | 13 | var spinner = ora('building for production...') 14 | spinner.start() 15 | 16 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 17 | if (err) throw err 18 | webpack(webpackConfig, function (err, stats) { 19 | spinner.stop() 20 | if (err) throw err 21 | process.stdout.write(stats.toString({ 22 | colors: true, 23 | modules: false, 24 | children: false, 25 | chunks: false, 26 | chunkModules: false 27 | }) + '\n\n') 28 | 29 | console.log(chalk.cyan(' Build complete.\n')) 30 | console.log(chalk.yellow( 31 | ' Tip: built files are meant to be served over an HTTP server.\n' + 32 | ' Opening index.html over file:// won\'t work.\n' 33 | )) 34 | }) 35 | }) 36 | -------------------------------------------------------------------------------- /build/check-versions.js: -------------------------------------------------------------------------------- 1 | var chalk = require('chalk') 2 | var semver = require('semver') 3 | var packageConfig = require('../package.json') 4 | var shell = require('shelljs') 5 | function exec (cmd) { 6 | return require('child_process').execSync(cmd).toString().trim() 7 | } 8 | 9 | var versionRequirements = [ 10 | { 11 | name: 'node', 12 | currentVersion: semver.clean(process.version), 13 | versionRequirement: packageConfig.engines.node 14 | }, 15 | ] 16 | 17 | if (shell.which('npm')) { 18 | versionRequirements.push({ 19 | name: 'npm', 20 | currentVersion: exec('npm --version'), 21 | versionRequirement: packageConfig.engines.npm 22 | }) 23 | } 24 | 25 | module.exports = function () { 26 | var warnings = [] 27 | for (var i = 0; i < versionRequirements.length; i++) { 28 | var mod = versionRequirements[i] 29 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 30 | warnings.push(mod.name + ': ' + 31 | chalk.red(mod.currentVersion) + ' should be ' + 32 | chalk.green(mod.versionRequirement) 33 | ) 34 | } 35 | } 36 | 37 | if (warnings.length) { 38 | console.log('') 39 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 40 | console.log() 41 | for (var i = 0; i < warnings.length; i++) { 42 | var warning = warnings[i] 43 | console.log(' ' + warning) 44 | } 45 | console.log() 46 | process.exit(1) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /build/dev-client.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | require('eventsource-polyfill') 3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') 4 | 5 | hotClient.subscribe(function (event) { 6 | if (event.action === 'reload') { 7 | window.location.reload() 8 | } 9 | }) 10 | -------------------------------------------------------------------------------- /build/dev-server.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | var config = require('../config') 4 | if (!process.env.NODE_ENV) { 5 | process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) 6 | } 7 | 8 | var opn = require('opn') 9 | var path = require('path') 10 | var express = require('express') 11 | var webpack = require('webpack') 12 | var proxyMiddleware = require('http-proxy-middleware') 13 | var webpackConfig = require('./webpack.dev.conf') 14 | 15 | // default port where dev server listens for incoming traffic 16 | var port = process.env.PORT || config.dev.port 17 | // automatically open browser, if not set will be false 18 | var autoOpenBrowser = !!config.dev.autoOpenBrowser 19 | // Define HTTP proxies to your custom API backend 20 | // https://github.com/chimurai/http-proxy-middleware 21 | var proxyTable = config.dev.proxyTable 22 | 23 | var app = express() 24 | var compiler = webpack(webpackConfig) 25 | 26 | var devMiddleware = require('webpack-dev-middleware')(compiler, { 27 | publicPath: webpackConfig.output.publicPath, 28 | quiet: true 29 | }) 30 | 31 | var hotMiddleware = require('webpack-hot-middleware')(compiler, { 32 | log: false, 33 | heartbeat: 2000 34 | }) 35 | // force page reload when html-webpack-plugin template changes 36 | compiler.plugin('compilation', function (compilation) { 37 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { 38 | hotMiddleware.publish({ action: 'reload' }) 39 | cb() 40 | }) 41 | }) 42 | 43 | // proxy api requests 44 | Object.keys(proxyTable).forEach(function (context) { 45 | var options = proxyTable[context] 46 | if (typeof options === 'string') { 47 | options = { target: options } 48 | } 49 | app.use(proxyMiddleware(options.filter || context, options)) 50 | }) 51 | 52 | // handle fallback for HTML5 history API 53 | app.use(require('connect-history-api-fallback')()) 54 | 55 | // serve webpack bundle output 56 | app.use(devMiddleware) 57 | 58 | // enable hot-reload and state-preserving 59 | // compilation error display 60 | app.use(hotMiddleware) 61 | 62 | // serve pure static assets 63 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) 64 | app.use(staticPath, express.static('./static')) 65 | 66 | var uri = 'http://localhost:' + port 67 | 68 | var _resolve 69 | var readyPromise = new Promise(resolve => { 70 | _resolve = resolve 71 | }) 72 | 73 | console.log('> Starting dev server...') 74 | devMiddleware.waitUntilValid(() => { 75 | console.log('> Listening at ' + uri + '\n') 76 | // when env is testing, don't need open it 77 | if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { 78 | opn(uri) 79 | } 80 | _resolve() 81 | }) 82 | 83 | var server = app.listen(port) 84 | 85 | module.exports = { 86 | ready: readyPromise, 87 | close: () => { 88 | server.close() 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /build/utils.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var config = require('../config') 3 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 4 | 5 | exports.assetsPath = function (_path) { 6 | var assetsSubDirectory = process.env.NODE_ENV === 'production' 7 | ? config.build.assetsSubDirectory 8 | : config.dev.assetsSubDirectory 9 | return path.posix.join(assetsSubDirectory, _path) 10 | } 11 | 12 | exports.cssLoaders = function (options) { 13 | options = options || {} 14 | 15 | var cssLoader = { 16 | loader: 'css-loader', 17 | options: { 18 | minimize: process.env.NODE_ENV === 'production', 19 | sourceMap: options.sourceMap 20 | } 21 | } 22 | 23 | // generate loader string to be used with extract text plugin 24 | function generateLoaders (loader, loaderOptions) { 25 | var loaders = [cssLoader] 26 | if (loader) { 27 | loaders.push({ 28 | loader: loader + '-loader', 29 | options: Object.assign({}, loaderOptions, { 30 | sourceMap: options.sourceMap 31 | }) 32 | }) 33 | } 34 | 35 | // Extract CSS when that option is specified 36 | // (which is the case during production build) 37 | if (options.extract) { 38 | return ExtractTextPlugin.extract({ 39 | use: loaders, 40 | fallback: 'vue-style-loader' 41 | }) 42 | } else { 43 | return ['vue-style-loader'].concat(loaders) 44 | } 45 | } 46 | 47 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 48 | return { 49 | css: generateLoaders(), 50 | postcss: generateLoaders(), 51 | less: generateLoaders('less'), 52 | sass: generateLoaders('sass', { indentedSyntax: true }), 53 | scss: generateLoaders('sass'), 54 | stylus: generateLoaders('stylus'), 55 | styl: generateLoaders('stylus') 56 | } 57 | } 58 | 59 | // Generate loaders for standalone style files (outside of .vue) 60 | exports.styleLoaders = function (options) { 61 | var output = [] 62 | var loaders = exports.cssLoaders(options) 63 | for (var extension in loaders) { 64 | var loader = loaders[extension] 65 | output.push({ 66 | test: new RegExp('\\.' + extension + '$'), 67 | use: loader 68 | }) 69 | } 70 | return output 71 | } 72 | -------------------------------------------------------------------------------- /build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var config = require('../config') 3 | var isProduction = process.env.NODE_ENV === 'production' 4 | 5 | module.exports = { 6 | loaders: utils.cssLoaders({ 7 | sourceMap: isProduction 8 | ? config.build.productionSourceMap 9 | : config.dev.cssSourceMap, 10 | extract: isProduction 11 | }), 12 | transformToRequire: { 13 | video: 'src', 14 | source: 'src', 15 | img: 'src', 16 | image: 'xlink:href' 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var config = require('../config') 4 | var vueLoaderConfig = require('./vue-loader.conf') 5 | 6 | function resolve (dir) { 7 | return path.join(__dirname, '..', dir) 8 | } 9 | 10 | module.exports = { 11 | entry: { 12 | app: './src/main.js' 13 | }, 14 | output: { 15 | path: config.build.assetsRoot, 16 | filename: '[name].js', 17 | publicPath: process.env.NODE_ENV === 'production' 18 | ? config.build.assetsPublicPath 19 | : config.dev.assetsPublicPath 20 | }, 21 | resolve: { 22 | extensions: ['.js', '.vue', '.json'], 23 | alias: { 24 | 'vue$': 'vue/dist/vue.esm.js', 25 | '@': resolve('src') 26 | } 27 | }, 28 | module: { 29 | rules: [ 30 | { 31 | test: /\.(js|vue)$/, 32 | loader: 'eslint-loader', 33 | enforce: 'pre', 34 | include: [resolve('src'), resolve('test')], 35 | options: { 36 | formatter: require('eslint-friendly-formatter') 37 | } 38 | }, 39 | { 40 | test: /\.vue$/, 41 | loader: 'vue-loader', 42 | options: vueLoaderConfig 43 | }, 44 | { 45 | test: /\.js$/, 46 | loader: 'babel-loader', 47 | include: [resolve('src'), resolve('test')] 48 | }, 49 | { 50 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 51 | loader: 'url-loader', 52 | options: { 53 | limit: 10000, 54 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 55 | } 56 | }, 57 | { 58 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, 59 | loader: 'url-loader', 60 | options: { 61 | limit: 10000, 62 | name: utils.assetsPath('media/[name].[hash:7].[ext]') 63 | } 64 | }, 65 | { 66 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 67 | loader: 'url-loader', 68 | options: { 69 | limit: 10000, 70 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 71 | } 72 | } 73 | ] 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var webpack = require('webpack') 3 | var config = require('../config') 4 | var merge = require('webpack-merge') 5 | var baseWebpackConfig = require('./webpack.base.conf') 6 | var HtmlWebpackPlugin = require('html-webpack-plugin') 7 | var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 8 | 9 | // add hot-reload related code to entry chunks 10 | Object.keys(baseWebpackConfig.entry).forEach(function (name) { 11 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) 12 | }) 13 | 14 | module.exports = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) 17 | }, 18 | // cheap-module-eval-source-map is faster for development 19 | devtool: '#cheap-module-eval-source-map', 20 | plugins: [ 21 | new webpack.DefinePlugin({ 22 | 'process.env': config.dev.env 23 | }), 24 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage 25 | new webpack.HotModuleReplacementPlugin(), 26 | new webpack.NoEmitOnErrorsPlugin(), 27 | // https://github.com/ampedandwired/html-webpack-plugin 28 | new HtmlWebpackPlugin({ 29 | filename: 'index.html', 30 | template: 'index.html', 31 | inject: true 32 | }), 33 | new FriendlyErrorsPlugin() 34 | ] 35 | }) 36 | -------------------------------------------------------------------------------- /build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var webpack = require('webpack') 4 | var config = require('../config') 5 | var merge = require('webpack-merge') 6 | var baseWebpackConfig = require('./webpack.base.conf') 7 | var CopyWebpackPlugin = require('copy-webpack-plugin') 8 | var HtmlWebpackPlugin = require('html-webpack-plugin') 9 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 10 | var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 11 | 12 | var env = config.build.env 13 | 14 | var webpackConfig = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ 17 | sourceMap: config.build.productionSourceMap, 18 | extract: true 19 | }) 20 | }, 21 | devtool: config.build.productionSourceMap ? '#source-map' : false, 22 | output: { 23 | path: config.build.assetsRoot, 24 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 25 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 26 | }, 27 | plugins: [ 28 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 29 | new webpack.DefinePlugin({ 30 | 'process.env': env 31 | }), 32 | new webpack.optimize.UglifyJsPlugin({ 33 | compress: { 34 | warnings: false 35 | }, 36 | sourceMap: true 37 | }), 38 | // extract css into its own file 39 | new ExtractTextPlugin({ 40 | filename: utils.assetsPath('css/[name].[contenthash].css') 41 | }), 42 | // Compress extracted CSS. We are using this plugin so that possible 43 | // duplicated CSS from different components can be deduped. 44 | new OptimizeCSSPlugin({ 45 | cssProcessorOptions: { 46 | safe: true 47 | } 48 | }), 49 | // generate dist index.html with correct asset hash for caching. 50 | // you can customize output by editing /index.html 51 | // see https://github.com/ampedandwired/html-webpack-plugin 52 | new HtmlWebpackPlugin({ 53 | filename: config.build.index, 54 | template: 'index.html', 55 | inject: true, 56 | minify: { 57 | removeComments: true, 58 | collapseWhitespace: true, 59 | removeAttributeQuotes: true 60 | // more options: 61 | // https://github.com/kangax/html-minifier#options-quick-reference 62 | }, 63 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 64 | chunksSortMode: 'dependency' 65 | }), 66 | // split vendor js into its own file 67 | new webpack.optimize.CommonsChunkPlugin({ 68 | name: 'vendor', 69 | minChunks: function (module, count) { 70 | // any required modules inside node_modules are extracted to vendor 71 | return ( 72 | module.resource && 73 | /\.js$/.test(module.resource) && 74 | module.resource.indexOf( 75 | path.join(__dirname, '../node_modules') 76 | ) === 0 77 | ) 78 | } 79 | }), 80 | // extract webpack runtime and module manifest to its own file in order to 81 | // prevent vendor hash from being updated whenever app bundle is updated 82 | new webpack.optimize.CommonsChunkPlugin({ 83 | name: 'manifest', 84 | chunks: ['vendor'] 85 | }), 86 | // copy custom static assets 87 | new CopyWebpackPlugin([ 88 | { 89 | from: path.resolve(__dirname, '../static'), 90 | to: config.build.assetsSubDirectory, 91 | ignore: ['.*'] 92 | } 93 | ]) 94 | ] 95 | }) 96 | 97 | if (config.build.productionGzip) { 98 | var CompressionWebpackPlugin = require('compression-webpack-plugin') 99 | 100 | webpackConfig.plugins.push( 101 | new CompressionWebpackPlugin({ 102 | asset: '[path].gz[query]', 103 | algorithm: 'gzip', 104 | test: new RegExp( 105 | '\\.(' + 106 | config.build.productionGzipExtensions.join('|') + 107 | ')$' 108 | ), 109 | threshold: 10240, 110 | minRatio: 0.8 111 | }) 112 | ) 113 | } 114 | 115 | if (config.build.bundleAnalyzerReport) { 116 | var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 117 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 118 | } 119 | 120 | module.exports = webpackConfig 121 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | // see http://vuejs-templates.github.io/webpack for documentation. 2 | var path = require('path') 3 | 4 | module.exports = { 5 | build: { 6 | env: require('./prod.env'), 7 | index: path.resolve(__dirname, '../dist/index.html'), 8 | assetsRoot: path.resolve(__dirname, '../dist'), 9 | assetsSubDirectory: 'static', 10 | assetsPublicPath: '/dist/', 11 | productionSourceMap: false, 12 | // Gzip off by default as many popular static hosts such as 13 | // Surge or Netlify already gzip all static assets for you. 14 | // Before setting to `true`, make sure to: 15 | // npm install --save-dev compression-webpack-plugin 16 | productionGzip: false, 17 | productionGzipExtensions: ['js', 'css'], 18 | // Run the build command with an extra argument to 19 | // View the bundle analyzer report after build finishes: 20 | // `npm run build --report` 21 | // Set to `true` or `false` to always turn it on or off 22 | bundleAnalyzerReport: process.env.npm_config_report 23 | }, 24 | dev: { 25 | env: require('./dev.env'), 26 | port: 8080, 27 | autoOpenBrowser: true, 28 | assetsSubDirectory: 'static', 29 | assetsPublicPath: '/', 30 | proxyTable: { 31 | '/api/v1/**': { 32 | target: 'https://cnodejs.org', // 你接口的域名 33 | secure: false, 34 | changeOrigin: false, 35 | } 36 | }, 37 | // CSS Sourcemaps off by default because relative paths are "buggy" 38 | // with this option, according to the CSS-Loader README 39 | // (https://github.com/webpack/css-loader#sourcemaps) 40 | // In our experience, they generally work as expected, 41 | // just be aware of this issue when enabling this option. 42 | cssSourceMap: false 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vue-demo-cnodejs 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-demo-cnodejs", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project", 5 | "author": "fungleo ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "node build/dev-server.js", 9 | "start": "node build/dev-server.js", 10 | "build": "node build/build.js", 11 | "lint": "eslint --ext .js,.vue src" 12 | }, 13 | "dependencies": { 14 | "vue": "^2.3.3", 15 | "vue-router": "^2.6.0" 16 | }, 17 | "devDependencies": { 18 | "autoprefixer": "^7.1.2", 19 | "axios": "^0.16.2", 20 | "babel-core": "^6.22.1", 21 | "babel-eslint": "^7.1.1", 22 | "babel-loader": "^7.1.1", 23 | "babel-plugin-transform-runtime": "^6.22.0", 24 | "babel-preset-env": "^1.3.2", 25 | "babel-preset-stage-2": "^6.22.0", 26 | "babel-register": "^6.22.0", 27 | "chalk": "^2.0.1", 28 | "connect-history-api-fallback": "^1.3.0", 29 | "copy-webpack-plugin": "^4.0.1", 30 | "css-loader": "^0.28.0", 31 | "cssnano": "^3.10.0", 32 | "eslint": "^3.19.0", 33 | "eslint-config-standard": "^6.2.1", 34 | "eslint-friendly-formatter": "^3.0.0", 35 | "eslint-loader": "^1.7.1", 36 | "eslint-plugin-html": "^3.0.0", 37 | "eslint-plugin-promise": "^3.4.0", 38 | "eslint-plugin-standard": "^2.0.1", 39 | "eventsource-polyfill": "^0.9.6", 40 | "express": "^4.14.1", 41 | "extract-text-webpack-plugin": "^2.0.0", 42 | "file-loader": "^0.11.1", 43 | "friendly-errors-webpack-plugin": "^1.1.3", 44 | "html-webpack-plugin": "^2.28.0", 45 | "http-proxy-middleware": "^0.17.3", 46 | "node-sass": "^4.5.3", 47 | "opn": "^5.1.0", 48 | "optimize-css-assets-webpack-plugin": "^2.0.0", 49 | "ora": "^1.2.0", 50 | "rimraf": "^2.6.0", 51 | "sass-loader": "^6.0.6", 52 | "semver": "^5.3.0", 53 | "shelljs": "^0.7.6", 54 | "url-loader": "^0.5.8", 55 | "vue-loader": "^12.1.0", 56 | "vue-style-loader": "^3.0.1", 57 | "vue-template-compiler": "^2.3.3", 58 | "webpack": "^2.6.1", 59 | "webpack-bundle-analyzer": "^2.2.1", 60 | "webpack-dev-middleware": "^1.10.0", 61 | "webpack-hot-middleware": "^2.18.0", 62 | "webpack-merge": "^4.1.0" 63 | }, 64 | "engines": { 65 | "node": ">= 4.0.0", 66 | "npm": ">= 3.0.0" 67 | }, 68 | "browserslist": [ 69 | "> 1%", 70 | "last 2 versions", 71 | "not ie <= 8" 72 | ] 73 | } 74 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | 16 | -------------------------------------------------------------------------------- /src/api/index.js: -------------------------------------------------------------------------------- 1 | // 配置API接口地址 2 | var root = '/api/v1' 3 | // 引用axios 4 | var axios = require('axios') 5 | // 自定义判断元素类型JS 6 | function toType (obj) { 7 | return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() 8 | } 9 | // 参数过滤函数 10 | function filterNull (o) { 11 | for (var key in o) { 12 | if (o[key] === null) { 13 | delete o[key] 14 | } 15 | if (toType(o[key]) === 'string') { 16 | o[key] = o[key].trim() 17 | } else if (toType(o[key]) === 'object') { 18 | o[key] = filterNull(o[key]) 19 | } else if (toType(o[key]) === 'array') { 20 | o[key] = filterNull(o[key]) 21 | } 22 | } 23 | return o 24 | } 25 | /* 26 | 接口处理函数 27 | 这个函数每个项目都是不一样的,我现在调整的是适用于 28 | https://cnodejs.org/api/v1 的接口,如果是其他接口 29 | 需要根据接口的参数进行调整。参考说明文档地址: 30 | https://cnodejs.org/topic/5378720ed6e2d16149fa16bd 31 | 主要是,不同的接口的成功标识和失败提示是不一致的。 32 | 另外,不同的项目的处理方法也是不一致的,这里出错就是简单的alert 33 | */ 34 | 35 | function apiAxios (method, url, params, success, failure) { 36 | if (params) { 37 | params = filterNull(params) 38 | } 39 | axios({ 40 | method: method, 41 | url: url, 42 | data: method === 'POST' || method === 'PUT' ? params : null, 43 | params: method === 'GET' || method === 'DELETE' ? params : null, 44 | baseURL: root, 45 | withCredentials: false 46 | }) 47 | .then(function (res) { 48 | if (res.data.success === true) { 49 | if (success) { 50 | success(res.data) 51 | } 52 | } else { 53 | if (failure) { 54 | failure(res.data) 55 | } else { 56 | window.alert('error: ' + JSON.stringify(res.data)) 57 | } 58 | } 59 | }) 60 | .catch(function (err) { 61 | let res = err.response 62 | if (err) { 63 | window.alert('api error, HTTP CODE: ' + res.status) 64 | } 65 | }) 66 | } 67 | 68 | // 返回在vue模板中的调用接口 69 | export default { 70 | get: function (url, params, success, failure) { 71 | return apiAxios('GET', url, params, success, failure) 72 | }, 73 | post: function (url, params, success, failure) { 74 | return apiAxios('POST', url, params, success, failure) 75 | }, 76 | put: function (url, params, success, failure) { 77 | return apiAxios('PUT', url, params, success, failure) 78 | }, 79 | delete: function (url, params, success, failure) { 80 | return apiAxios('DELETE', url, params, success, failure) 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/components/footer.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/components/header.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /src/components/ue.vue: -------------------------------------------------------------------------------- 1 | 6 | 35 | -------------------------------------------------------------------------------- /src/config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/src/config/index.js -------------------------------------------------------------------------------- /src/frame/frame.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/src/frame/frame.vue -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue' 4 | import App from './App' 5 | import router from './router' 6 | 7 | // 引用API文件 8 | import api from './api/index.js' 9 | // 将API方法绑定到全局 10 | Vue.prototype.$api = api 11 | // 引用工具文件 12 | import utils from './utils/index.js' 13 | // 将工具方法绑定到全局 14 | Vue.prototype.$utils = utils 15 | 16 | Vue.config.productionTip = false 17 | 18 | // 配置百度编辑器 19 | 20 | import '../static/ue/ueditor.config.js' 21 | import '../static/ue/ueditor.all.min.js' 22 | import '../static/ue/lang/zh-cn/zh-cn.js' 23 | import '../static/ue/ueditor.parse.min.js' 24 | 25 | // import 'jquery' 26 | // import '../static/js/jquery-3.2.1.min.js' 27 | 28 | /* eslint-disable no-new */ 29 | new Vue({ 30 | el: '#app', 31 | router, 32 | template: '', 33 | components: { App } 34 | }) 35 | -------------------------------------------------------------------------------- /src/page/content.vue: -------------------------------------------------------------------------------- 1 | 18 | 41 | -------------------------------------------------------------------------------- /src/page/index.vue: -------------------------------------------------------------------------------- 1 | 22 | 44 | -------------------------------------------------------------------------------- /src/page/jq.vue: -------------------------------------------------------------------------------- 1 | 7 | 16 | -------------------------------------------------------------------------------- /src/page/ue_test.vue: -------------------------------------------------------------------------------- 1 | 7 | 30 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Index from '@/page/index' 4 | import Content from '@/page/content' 5 | import UET from '@/page/ue_test' 6 | import JQ from '@/page/jq' 7 | import keyboard from '@/page/keyboard' 8 | 9 | Vue.use(Router) 10 | 11 | export default new Router({ 12 | routes: [ 13 | { 14 | path: '/', 15 | component: Index 16 | }, { 17 | path: '/content/:id', 18 | component: Content 19 | }, { 20 | path: '/ue', 21 | component: UET 22 | }, { 23 | path: '/jq', 24 | component: JQ 25 | }, { 26 | path: '/keyboard', 27 | component: keyboard 28 | } 29 | ] 30 | }) 31 | -------------------------------------------------------------------------------- /src/style/base/_base.scss: -------------------------------------------------------------------------------- 1 | // base by fungleo 2 | html {font-size: 13px;} 3 | body { 4 | color: $c55;line-height: 1; 5 | } 6 | body,button, input, select, textarea { 7 | font-family: "Helvetica Neue",Helvetica,tahoma,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5FAE\8F6F\96C5\9ED1",Arial,sans-serif; 8 | } 9 | 10 | .gehang {width: 10px;height: 10px;overflow: hidden;text-indent: -9999px;clear: both;display: block;} 11 | .block {display: block;} 12 | .none {display:none} 13 | .clear {clear: both;} 14 | .mb20 {margin-bottom: 20px;} 15 | .mt20 {margin-top: 20px;} 16 | .mt10 {margin-top: 10px;} 17 | .mt5 {margin-top: 5px;} 18 | .pt0 {padding-top: 0 !important;} 19 | .fl {float: left;} 20 | .fr {float: right;} 21 | .tl {text-align: left;} 22 | .tr {text-align: right;} 23 | .tc {text-align: center;} 24 | .w300 {width: 300px;} 25 | .w600 {width: 600px;} 26 | .w800 {width: 800px;} 27 | .cf{ 28 | zoom:1; 29 | &:before,&:after {content:"";display:table;} 30 | &:after {clear:both;} 31 | } 32 | 33 | 34 | // chrome scrollbar 35 | ::-webkit-scrollbar {width: 8px;height: 10px;} 36 | ::-webkit-scrollbar-thumb {min-height: 20px;background: rgba($cff,0.5);} 37 | ::-webkit-scrollbar-track-piece{background: rgba($black,0.5);} 38 | 39 | // input::-webkit-outer-spin-button, 40 | // input::-webkit-inner-spin-button{ 41 | // -webkit-appearance: none !important; 42 | // margin: 0; 43 | // } 44 | -------------------------------------------------------------------------------- /src/style/base/_color.scss: -------------------------------------------------------------------------------- 1 | $black:#1c2438; 2 | $lblack:#324057; 3 | $elblack:#495060; 4 | $silver:#80848f; 5 | $lsilver:#99A9BF; 6 | $elsilver:#bbbec4; 7 | $gray:#dddee1; 8 | $lgray:#e9eaec; 9 | $elgray:#f8f8f9; 10 | // gray 11 | $c55:#555; 12 | $c22:#222; 13 | $c33:#333; 14 | $c99:#999; 15 | $c77:#777; 16 | $c00:#000; 17 | $cff:#fff; 18 | $caa:#aaa; 19 | $ccc:#ccc; 20 | $cf0:#f0f0f0; 21 | $cdd:#ddd; 22 | $cee:#eee; 23 | $cf9:#F9FAFC; 24 | $cf7:#F7F7F7; 25 | $cfa:#fafafa; 26 | $cf60:#FF8225; 27 | $c2a:#2a3542; 28 | $c35:#35404d; 29 | // colour 30 | $red:#FF4949; 31 | $blue:#20A0FF; 32 | $sblue:#1D8CE0; 33 | $qblue:#58B7FF; 34 | $green:#13CE66; 35 | $cyan:#36bc99; 36 | $gold:#A49D86; 37 | $pink:#F85D92; 38 | $pink2:#F13E7A; 39 | $yellow:#F7BA2A; 40 | 41 | .red {color: $red;} 42 | .blue {color: $blue;} 43 | .sblue {color: $sblue;} 44 | .qblue {color: $qblue;} 45 | .green {color: $green;} 46 | .cyan {color: $cyan;} 47 | .gold {color: $gold;} 48 | .pink {color: $pink;} 49 | .pink2 {color: $pink2;} 50 | .yellow {color: $yellow;} 51 | .black {color: $black;} 52 | .lblack {color: $lblack;} 53 | .elblack {color: $elblack;} 54 | .silver {color: $silver;} 55 | .lsilver {color: $lsilver;} 56 | .elsilver {color: $elsilver;} 57 | .gray {color: $gray;} 58 | .lgray {color: $lgray;} 59 | .elgray {color: $elgray;} 60 | -------------------------------------------------------------------------------- /src/style/base/_mixin.scss: -------------------------------------------------------------------------------- 1 | 2 | // mixins 3 | 4 | // for link 5 | @mixin dz($time:0.25s){ 6 | -webkit-transition: all $time ease-in-out; 7 | transition: all $time ease-in-out; 8 | } 9 | // text shadow 10 | @mixin ts($s1:1px,$s2:1px,$color:$cff){ 11 | text-shadow: 12 | $s1 $s1 $s2 $color, 13 | -$s1 $s1 $s2 $color, 14 | $s1 (-$s1) $s2 $color, 15 | -$s1 (-$s1) $s2 $color; 16 | } 17 | // 18 | @mixin jb($color1:#000,$color2:#fff,$deg:0){ 19 | background-image:-webkit-linear-gradient($deg+deg, $color2, $color1); 20 | background-image:linear-gradient($deg+deg, $color2, $color1); 21 | } 22 | // rotate 23 | @mixin xz($deg:360){ 24 | -webkit-transform:rotate($deg+deg); 25 | transform:rotate($deg+deg); 26 | } 27 | // rotate and zoom 28 | @mixin xzfd($deg:360,$s1:1.2){ 29 | -webkit-transform:rotate($deg+deg) scale($s1); 30 | transform:rotate($deg+deg) scale($s1); 31 | } 32 | // zoom 33 | @mixin fd($s1:1.2){ 34 | -webkit-transform:scale($s1); 35 | transform:scale($s1); 36 | } 37 | // move 38 | @mixin yd($s1:0,$s2:0){ 39 | -webkit-transform:translate($s1,$s2); 40 | transform:translate($s1,$s2); 41 | } 42 | // no select 43 | @mixin ns{ 44 | -webkit-touch-callout: none; 45 | -webkit-user-select: none; 46 | -khtml-user-select: none; 47 | -moz-user-select: none; 48 | -ms-user-select: none; 49 | user-select: none; 50 | } 51 | // one line text for ... 52 | @mixin oneline($s1) { 53 | overflow: hidden; 54 | line-height: $s1; 55 | height: $s1; 56 | white-space: nowrap; 57 | text-overflow: ellipsis; 58 | } 59 | // calc 60 | @mixin calc($property, $expression) { 61 | #{$property}: -webkit-calc(#{$expression}); 62 | #{$property}: calc(#{$expression}); 63 | } 64 | // 65 | @mixin hlh($s1) { 66 | height: $s1; 67 | line-height: $s1; 68 | overflow: hidden; 69 | } 70 | // 格栅布局 71 | 72 | @mixin column($width,$gap){ 73 | -webkit-column-width:$width; 74 | -moz-column-width:$width; 75 | column-width:$width; 76 | -webkit-column-gap:$gap; 77 | -moz-column-gap:$gap; 78 | column-gap:$gap; 79 | } 80 | -------------------------------------------------------------------------------- /src/style/base/_reset.scss: -------------------------------------------------------------------------------- 1 | 2 | // Setting parameters by fungleo 3 | 4 | $BaseC:$c55; 5 | 6 | // reset by fungleo date 2015.08.27 7 | 8 | @charset "UTF-8"; 9 | 10 | 11 | body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,pre,form,fieldset,legend,input,button,textarea,p,blockquote,table,th,td,menu{margin:0;padding:0;resize: none;} 12 | table{border-collapse:collapse;border-spacing:0;} 13 | ul,ol,menu{list-style:none;text-align: left;} 14 | fieldset,img{border:none} 15 | // img,object,select,input,textarea,button{vertical-align:middle;box-sizing:content-box;} 16 | input,textarea,select,address,caption,cite,code,dfn,em,i,b,strong,small,th,var,abbr,button,u,s,del{ 17 | font-style:normal;text-decoration: none; 18 | } 19 | article,aside,footer,header,hgroup,nav,section,figure,figcaption {display: block;} 20 | code, kbd, pre, samp, tt { font-family: Consolas,"Courier New", Courier, monospace;} 21 | address, cite, dfn, em, var,i {font-style: normal;} 22 | blockquote, q {quotes: none;} 23 | blockquote:before, blockquote:after,q:before, q:after {content:"";content: none;} 24 | a { 25 | text-decoration:none;cursor: pointer;color: $c55; 26 | &:link,&:visited, &:active{} 27 | &:hover, &:focus {outline:none;color: $cf60;} 28 | &,* {cursor: pointer;} 29 | } 30 | 31 | 32 | abbr[title], acronym[title] {border-bottom: 1px dotted;cursor: help;} 33 | -------------------------------------------------------------------------------- /src/style/scss/_content.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/src/style/scss/_content.scss -------------------------------------------------------------------------------- /src/style/scss/_index.scss: -------------------------------------------------------------------------------- 1 | 2 | .header { 3 | background: $gray;line-height: 2;color: $black; 4 | } 5 | 6 | 7 | .img_test { 8 | text-align: center;background: $cf0;padding: 10px; 9 | img {width: 100px;display: block;margin: 0 auto 5px;} 10 | &:after { 11 | content: "我爱刘亦菲"; color: $red; 12 | } 13 | } 14 | 15 | .article_list { 16 | background-image: url('../static/image/lyf.jpg'); 17 | background-position: right top; 18 | background-repeat: no-repeat; 19 | background-size: 200px auto; 20 | ul { 21 | padding:20px 220px 20px 20px; 22 | } 23 | li { 24 | line-height: 32px;text-indent: 10px;height: 32px;overflow: hidden; 25 | &:nth-child(2n) {background: $cf9;} 26 | time {float: right;color: $c99;padding: 0 10px;} 27 | } 28 | } 29 | 30 | .copy { 31 | text-align: center;color: $c99;line-height: 4; 32 | } 33 | -------------------------------------------------------------------------------- /src/style/scss/_keyboard.scss: -------------------------------------------------------------------------------- 1 | .keyboard { 2 | padding: 0 50px; 3 | h1 { 4 | color: $blue;line-height: 60px; 5 | } 6 | .keyboard_control { 7 | button { 8 | display: inline-block;font-size: 14px;border: 1px solid;padding: 8px;border-radius: 5px;color: $cff;outline: none;cursor: pointer; 9 | &.add_key {background: $green;border-color: darken($green,10%);} 10 | &.remove_key {background: $red;border-color: darken($red,10%);} 11 | &.clean_key {background: $c55;border-color: darken($c55,10%);} 12 | &.save_key {background: $blue;border-color: darken($blue,10%);} 13 | &.key_type { 14 | padding: 4px 6px;font-size: 12px;margin-top: 5px; 15 | &.curl {background: $cyan;border-color: darken($cyan,10%);} 16 | } 17 | } 18 | } 19 | .keyboard_edit { 20 | padding: 15px;border: 1px solid $cdd;background: $cfa;margin-top: 20px;border-radius: 5px;width: 1264px; 21 | &.key104 {width: 1264px;} 22 | .keyboard_layout { 23 | position: relative;width: 100%;min-height: 400px; 24 | .key { 25 | position: absolute;border-radius: 5px;background: $cdd;box-shadow: 0 0 0 1px $c55 inset;cursor: pointer; 26 | &.curl {box-shadow: 0 0 0 1px $red inset;} 27 | .key_hat { 28 | position: absolute;top: 3px;bottom: 10px;left: 5px;right: 5px; 29 | border: 1px solid $ccc;background: $cff;border-radius: 4px; 30 | } 31 | .text {position: absolute;left: 3px;right: 3px;height: 12px;font-size: 11px;line-height: 12px;} 32 | .text_1 {top: 2px;} 33 | .text_2 {top: 15px;} 34 | .text_3 {top: 28px;} 35 | .text_4 {top: 38px;font-size: 10px;} 36 | .text_l {text-align: left;} 37 | .text_m {text-align: center;} 38 | .text_r {text-align: right;} 39 | } 40 | } 41 | } 42 | .keyboard_params { 43 | margin-top: 20px; 44 | dl { 45 | display: table;width: 100%;border-bottom: 1px solid $cdd; 46 | &:nth-child(2n) {background: $cfa;} 47 | dt,dd {display: table-cell;vertical-align: middle;padding: 5px 0;} 48 | dt {width: 100px;font-size: 14px;font-weight: bold;text-align: right;} 49 | input {display: inline-block;height: 24px;line-height: 24px;padding: 0 5px;border: 1px solid $cdd;border-radius: 5px;width: 50px;} 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/style/style.scss: -------------------------------------------------------------------------------- 1 | @import "base/color"; 2 | @import "base/mixin"; 3 | @import "base/reset"; 4 | @import "base/base"; 5 | 6 | @import "scss/index"; 7 | @import "scss/content"; 8 | @import "scss/keyboard"; 9 | -------------------------------------------------------------------------------- /src/utils/index.js: -------------------------------------------------------------------------------- 1 | // var key104 = require() 2 | export default { 3 | goodTime (str) { 4 | let now = new Date().getTime() 5 | let oldTime = new Date(str).getTime() 6 | let difference = now - oldTime 7 | let result = '' 8 | let minute = 1000 * 60 9 | let hour = minute * 60 10 | let day = hour * 24 11 | let month = day * 30 12 | let year = month * 12 13 | let _year = difference / year 14 | let _month = difference / month 15 | let _week = difference / (7 * day) 16 | let _day = difference / day 17 | let _hour = difference / hour 18 | let _min = difference / minute 19 | 20 | if (_year >= 1) { 21 | result = '发表于 ' + ~~(_year) + ' 年前' 22 | } else if (_month >= 1) { 23 | result = '发表于 ' + ~~(_month) + ' 个月前' 24 | } else if (_week >= 1) { 25 | result = '发表于 ' + ~~(_week) + ' 周前' 26 | } else if (_day >= 1) { 27 | result = '发表于 ' + ~~(_day) + ' 天前' 28 | } else if (_hour >= 1) { 29 | result = '发表于 ' + ~~(_hour) + ' 个小时前' 30 | } else if (_min >= 1) { 31 | result = '发表于 ' + ~~(_min) + ' 分钟前' 32 | } else { 33 | result = '刚刚' 34 | } 35 | return result 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /static/image/lyf.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/image/lyf.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/anchor/anchor.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 15 |
16 | 17 |
18 | 19 | 39 | 40 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_chm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_chm.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_default.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_doc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_doc.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_exe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_exe.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_jpg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_jpg.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_mp3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_mp3.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_mv.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_mv.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_pdf.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_ppt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_ppt.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_psd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_psd.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_rar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_rar.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_txt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_txt.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/fileTypeImages/icon_xls.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/fileTypeImages/icon_xls.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/alignicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/alignicon.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/alignicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/alignicon.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/bg.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/file-icons.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/file-icons.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/icons.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/icons.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/image.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/progress.png -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/success.gif -------------------------------------------------------------------------------- /static/ue/dialogs/attachment/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/attachment/images/success.png -------------------------------------------------------------------------------- /static/ue/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 | } -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/background/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/background/images/bg.png -------------------------------------------------------------------------------- /static/ue/dialogs/background/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/background/images/success.png -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | } -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts0.png -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts1.png -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts2.png -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts3.png -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts4.png -------------------------------------------------------------------------------- /static/ue/dialogs/charts/images/charts5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/charts/images/charts5.png -------------------------------------------------------------------------------- /static/ue/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;} -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/emotion.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 | 53 | 54 | -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/0.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/bface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/bface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/cface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/cface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/fface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/fface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/jxface2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/jxface2.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/tface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/tface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/wface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/wface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/emotion/images/yface.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/emotion/images/yface.gif -------------------------------------------------------------------------------- /static/ue/dialogs/gmap/gmap.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |
27 | 88 | 89 | -------------------------------------------------------------------------------- /static/ue/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;} -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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; -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/alignicon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/alignicon.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/bg.png -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/icons.gif -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/icons.png -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/image.png -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/progress.png -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/success.gif -------------------------------------------------------------------------------- /static/ue/dialogs/image/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/image/images/success.png -------------------------------------------------------------------------------- /static/ue/dialogs/insertframe/insertframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 14 | 15 | 16 |
17 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 44 | 45 |
20 | 21 | 22 |
px
px
38 | 43 |
46 |
47 | 97 | 98 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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;} -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/preview/preview.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 |
29 | 30 | 40 | -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/addimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/addimg.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/brush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/brush.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/delimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/delimg.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/delimgH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/delimgH.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/empty.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/emptyH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/emptyH.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/eraser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/eraser.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/redo.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/redoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/redoH.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/scale.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/scaleH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/scaleH.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/size.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/size.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/undo.png -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/images/undoH.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/scrawl/images/undoH.png -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/scrawl/scrawl.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 | 1 41 | 3 42 | 5 43 | 7 44 |
45 |
46 | 47 | 1 48 | 3 49 | 5 50 | 7 51 |
52 |
53 |
54 | 55 | 56 |
57 | 59 |
60 | 61 |
62 |
63 |
64 | 65 | 66 | 67 | 68 |
69 |
70 |
71 |
72 | 73 | 74 | 94 | 95 | -------------------------------------------------------------------------------- /static/ue/dialogs/searchreplace/searchreplace.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 16 | 17 | 18 |
19 | 23 |
24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 39 | 40 | 41 | 45 | 46 | 47 | 50 | 51 | 52 | 55 | 56 |
:
37 | 38 |
42 | 43 | 44 |
48 |   49 |
53 | 54 |
57 |
58 |
59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 77 | 78 | 79 | 85 | 86 | 87 | 90 | 91 | 92 | 95 | 96 |
:
:
75 | 76 |
80 | 81 | 82 | 83 | 84 |
88 |   89 |
93 | 94 |
97 |
98 |
99 |
100 | 101 | 102 | -------------------------------------------------------------------------------- /static/ue/dialogs/snapscreen/snapscreen.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 47 | 48 | 49 |
50 |

51 |
52 |
53 |
54 |
55 |
56 |
57 | 58 | -------------------------------------------------------------------------------- /static/ue/dialogs/spechars/spechars.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/table/dragicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/table/dragicon.png -------------------------------------------------------------------------------- /static/ue/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 | } -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/dialogs/table/edittd.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 |
19 | 20 | 21 |
22 | 60 | 61 | -------------------------------------------------------------------------------- /static/ue/dialogs/table/edittip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 表格删除提示 5 | 6 | 17 | 18 | 19 |
20 |
21 | 22 |
23 |
24 | 25 |
26 |
27 | 32 | 33 | -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/bg.gif -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/pre0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/pre0.png -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/pre1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/pre1.png -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/pre2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/pre2.png -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/pre3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/pre3.png -------------------------------------------------------------------------------- /static/ue/dialogs/template/images/pre4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/template/images/pre4.png -------------------------------------------------------------------------------- /static/ue/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; } -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | })(); -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/bg.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/center_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/center_focus.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/file-icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/file-icons.gif -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/file-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/file-icons.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/icons.gif -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/icons.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/image.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/left_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/left_focus.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/none_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/none_focus.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/progress.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/right_focus.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/right_focus.jpg -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/success.gif -------------------------------------------------------------------------------- /static/ue/dialogs/video/images/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/video/images/success.png -------------------------------------------------------------------------------- /static/ue/dialogs/video/video.html: -------------------------------------------------------------------------------- 1 | 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 | 0% 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 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /static/ue/dialogs/webapp/webapp.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 |
15 |
16 |
17 | 52 | 53 | -------------------------------------------------------------------------------- /static/ue/dialogs/wordimage/fClipboard_ueditor.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/wordimage/fClipboard_ueditor.swf -------------------------------------------------------------------------------- /static/ue/dialogs/wordimage/imageUploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/dialogs/wordimage/imageUploader.swf -------------------------------------------------------------------------------- /static/ue/dialogs/wordimage/wordimage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by JetBrains PhpStorm. 3 | * User: taoqili 4 | * Date: 12-1-30 5 | * Time: 下午12:50 6 | * To change this template use File | Settings | File Templates. 7 | */ 8 | 9 | 10 | 11 | var wordImage = {}; 12 | //(function(){ 13 | var g = baidu.g, 14 | flashObj,flashContainer; 15 | 16 | wordImage.init = function(opt, callbacks) { 17 | showLocalPath("localPath"); 18 | //createCopyButton("clipboard","localPath"); 19 | createFlashUploader(opt, callbacks); 20 | addUploadListener(); 21 | addOkListener(); 22 | }; 23 | 24 | function hideFlash(){ 25 | flashObj = null; 26 | flashContainer.innerHTML = ""; 27 | } 28 | function addOkListener() { 29 | dialog.onok = function() { 30 | if (!imageUrls.length) return; 31 | var urlPrefix = editor.getOpt('imageUrlPrefix'), 32 | images = domUtils.getElementsByTagName(editor.document,"img"); 33 | editor.fireEvent('saveScene'); 34 | for (var i = 0,img; img = images[i++];) { 35 | var src = img.getAttribute("word_img"); 36 | if (!src) continue; 37 | for (var j = 0,url; url = imageUrls[j++];) { 38 | if (src.indexOf(url.original.replace(" ","")) != -1) { 39 | img.src = urlPrefix + url.url; 40 | img.setAttribute("_src", urlPrefix + url.url); //同时修改"_src"属性 41 | img.setAttribute("title",url.title); 42 | domUtils.removeAttributes(img, ["word_img","style","width","height"]); 43 | editor.fireEvent("selectionchange"); 44 | break; 45 | } 46 | } 47 | } 48 | editor.fireEvent('saveScene'); 49 | hideFlash(); 50 | }; 51 | dialog.oncancel = function(){ 52 | hideFlash(); 53 | } 54 | } 55 | 56 | /** 57 | * 绑定开始上传事件 58 | */ 59 | function addUploadListener() { 60 | g("upload").onclick = function () { 61 | flashObj.upload(); 62 | this.style.display = "none"; 63 | }; 64 | } 65 | 66 | function showLocalPath(id) { 67 | //单张编辑 68 | var img = editor.selection.getRange().getClosedNode(); 69 | var images = editor.execCommand('wordimage'); 70 | if(images.length==1 || img && img.tagName == 'IMG'){ 71 | g(id).value = images[0]; 72 | return; 73 | } 74 | var path = images[0]; 75 | var leftSlashIndex = path.lastIndexOf("/")||0, //不同版本的doc和浏览器都可能影响到这个符号,故直接判断两种 76 | rightSlashIndex = path.lastIndexOf("\\")||0, 77 | separater = leftSlashIndex > rightSlashIndex ? "/":"\\" ; 78 | 79 | path = path.substring(0, path.lastIndexOf(separater)+1); 80 | g(id).value = path; 81 | } 82 | 83 | function createFlashUploader(opt, callbacks) { 84 | //由于lang.flashI18n是静态属性,不可以直接进行修改,否则会影响到后续内容 85 | var i18n = utils.extend({},lang.flashI18n); 86 | //处理图片资源地址的编码,补全等问题 87 | for(var i in i18n){ 88 | if(!(i in {"lang":1,"uploadingTF":1,"imageTF":1,"textEncoding":1}) && i18n[i]){ 89 | i18n[i] = encodeURIComponent(editor.options.langPath + editor.options.lang + "/images/" + i18n[i]); 90 | } 91 | } 92 | opt = utils.extend(opt,i18n,false); 93 | var option = { 94 | createOptions:{ 95 | id:'flash', 96 | url:opt.flashUrl, 97 | width:opt.width, 98 | height:opt.height, 99 | errorMessage:lang.flashError, 100 | wmode:browser.safari ? 'transparent' : 'window', 101 | ver:'10.0.0', 102 | vars:opt, 103 | container:opt.container 104 | } 105 | }; 106 | 107 | option = extendProperty(callbacks, option); 108 | flashObj = new baidu.flash.imageUploader(option); 109 | flashContainer = $G(opt.container); 110 | } 111 | 112 | function extendProperty(fromObj, toObj) { 113 | for (var i in fromObj) { 114 | if (!toObj[i]) { 115 | toObj[i] = fromObj[i]; 116 | } 117 | } 118 | return toObj; 119 | } 120 | 121 | //})(); 122 | 123 | function getPasteData(id) { 124 | baidu.g("msg").innerHTML = lang.copySuccess + "
"; 125 | setTimeout(function() { 126 | baidu.g("msg").innerHTML = ""; 127 | }, 5000); 128 | return baidu.g(id).value; 129 | } 130 | 131 | function createCopyButton(id, dataFrom) { 132 | baidu.swf.create({ 133 | id:"copyFlash", 134 | url:"fClipboard_ueditor.swf", 135 | width:"58", 136 | height:"25", 137 | errorMessage:"", 138 | bgColor:"#CBCBCB", 139 | wmode:"transparent", 140 | ver:"10.0.0", 141 | vars:{ 142 | tid:dataFrom 143 | } 144 | }, id 145 | ); 146 | 147 | var clipboard = baidu.swf.getMovie("copyFlash"); 148 | var clipinterval = setInterval(function() { 149 | if (clipboard && clipboard.flashInit) { 150 | clearInterval(clipinterval); 151 | clipboard.setHandCursor(true); 152 | clipboard.setContentFuncName("getPasteData"); 153 | //clipboard.setMEFuncName("mouseEventHandler"); 154 | } 155 | }, 500); 156 | } 157 | createCopyButton("clipboard", "localPath"); -------------------------------------------------------------------------------- /static/ue/lang/en/images/addimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/addimage.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/alldeletebtnhoverskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/alldeletebtnhoverskin.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/alldeletebtnupskin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/alldeletebtnupskin.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/background.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/button.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/copy.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/deletedisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/deletedisable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/deleteenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/deleteenable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/listbackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/listbackground.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/localimage.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/music.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/rotateleftdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/rotateleftdisable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/rotateleftenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/rotateleftenable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/rotaterightdisable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/rotaterightdisable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/rotaterightenable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/rotaterightenable.png -------------------------------------------------------------------------------- /static/ue/lang/en/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/en/images/upload.png -------------------------------------------------------------------------------- /static/ue/lang/zh-cn/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/zh-cn/images/copy.png -------------------------------------------------------------------------------- /static/ue/lang/zh-cn/images/localimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/zh-cn/images/localimage.png -------------------------------------------------------------------------------- /static/ue/lang/zh-cn/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/zh-cn/images/music.png -------------------------------------------------------------------------------- /static/ue/lang/zh-cn/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/lang/zh-cn/images/upload.png -------------------------------------------------------------------------------- /static/ue/php/action_crawler.php: -------------------------------------------------------------------------------- 1 | $CONFIG['catcherPathFormat'], 14 | "maxSize" => $CONFIG['catcherMaxSize'], 15 | "allowFiles" => $CONFIG['catcherAllowFiles'], 16 | "oriName" => "remote.png" 17 | ); 18 | $fieldName = $CONFIG['catcherFieldName']; 19 | 20 | /* 抓取远程图片 */ 21 | $list = array(); 22 | if (isset($_POST[$fieldName])) { 23 | $source = $_POST[$fieldName]; 24 | } else { 25 | $source = $_GET[$fieldName]; 26 | } 27 | foreach ($source as $imgUrl) { 28 | $item = new Uploader($imgUrl, $config, "remote"); 29 | $info = $item->getFileInfo(); 30 | array_push($list, array( 31 | "state" => $info["state"], 32 | "url" => $info["url"], 33 | "size" => $info["size"], 34 | "title" => htmlspecialchars($info["title"]), 35 | "original" => htmlspecialchars($info["original"]), 36 | "source" => htmlspecialchars($imgUrl) 37 | )); 38 | } 39 | 40 | /* 返回抓取数据 */ 41 | return json_encode(array( 42 | 'state'=> count($list) ? 'SUCCESS':'ERROR', 43 | 'list'=> $list 44 | )); -------------------------------------------------------------------------------- /static/ue/php/action_list.php: -------------------------------------------------------------------------------- 1 | "no match file", 38 | "list" => array(), 39 | "start" => $start, 40 | "total" => count($files) 41 | )); 42 | } 43 | 44 | /* 获取指定范围的列表 */ 45 | $len = count($files); 46 | for ($i = min($end, $len) - 1, $list = array(); $i < $len && $i >= 0 && $i >= $start; $i--){ 47 | $list[] = $files[$i]; 48 | } 49 | //倒序 50 | //for ($i = $end, $list = array(); $i < $len && $i < $end; $i++){ 51 | // $list[] = $files[$i]; 52 | //} 53 | 54 | /* 返回数据 */ 55 | $result = json_encode(array( 56 | "state" => "SUCCESS", 57 | "list" => $list, 58 | "start" => $start, 59 | "total" => count($files) 60 | )); 61 | 62 | return $result; 63 | 64 | 65 | /** 66 | * 遍历获取目录下的指定类型的文件 67 | * @param $path 68 | * @param array $files 69 | * @return array 70 | */ 71 | function getfiles($path, $allowFiles, &$files = array()) 72 | { 73 | if (!is_dir($path)) return null; 74 | if(substr($path, strlen($path) - 1) != '/') $path .= '/'; 75 | $handle = opendir($path); 76 | while (false !== ($file = readdir($handle))) { 77 | if ($file != '.' && $file != '..') { 78 | $path2 = $path . $file; 79 | if (is_dir($path2)) { 80 | getfiles($path2, $allowFiles, $files); 81 | } else { 82 | if (preg_match("/\.(".$allowFiles.")$/i", $file)) { 83 | $files[] = array( 84 | 'url'=> substr($path2, strlen($_SERVER['DOCUMENT_ROOT'])), 85 | 'mtime'=> filemtime($path2) 86 | ); 87 | } 88 | } 89 | } 90 | } 91 | return $files; 92 | } -------------------------------------------------------------------------------- /static/ue/php/action_upload.php: -------------------------------------------------------------------------------- 1 | $CONFIG['imagePathFormat'], 16 | "maxSize" => $CONFIG['imageMaxSize'], 17 | "allowFiles" => $CONFIG['imageAllowFiles'] 18 | ); 19 | $fieldName = $CONFIG['imageFieldName']; 20 | break; 21 | case 'uploadscrawl': 22 | $config = array( 23 | "pathFormat" => $CONFIG['scrawlPathFormat'], 24 | "maxSize" => $CONFIG['scrawlMaxSize'], 25 | "allowFiles" => $CONFIG['scrawlAllowFiles'], 26 | "oriName" => "scrawl.png" 27 | ); 28 | $fieldName = $CONFIG['scrawlFieldName']; 29 | $base64 = "base64"; 30 | break; 31 | case 'uploadvideo': 32 | $config = array( 33 | "pathFormat" => $CONFIG['videoPathFormat'], 34 | "maxSize" => $CONFIG['videoMaxSize'], 35 | "allowFiles" => $CONFIG['videoAllowFiles'] 36 | ); 37 | $fieldName = $CONFIG['videoFieldName']; 38 | break; 39 | case 'uploadfile': 40 | default: 41 | $config = array( 42 | "pathFormat" => $CONFIG['filePathFormat'], 43 | "maxSize" => $CONFIG['fileMaxSize'], 44 | "allowFiles" => $CONFIG['fileAllowFiles'] 45 | ); 46 | $fieldName = $CONFIG['fileFieldName']; 47 | break; 48 | } 49 | 50 | /* 生成上传实例对象并完成上传 */ 51 | $up = new Uploader($fieldName, $config, $base64); 52 | 53 | /** 54 | * 得到上传文件所对应的各个参数,数组结构 55 | * array( 56 | * "state" => "", //上传状态,上传成功时必须返回"SUCCESS" 57 | * "url" => "", //返回的地址 58 | * "title" => "", //新文件名 59 | * "original" => "", //原始文件名 60 | * "type" => "" //文件类型 61 | * "size" => "", //文件大小 62 | * ) 63 | */ 64 | 65 | /* 返回数据 */ 66 | return json_encode($up->getFileInfo()); 67 | -------------------------------------------------------------------------------- /static/ue/php/controller.php: -------------------------------------------------------------------------------- 1 | '请求地址出错' 44 | )); 45 | break; 46 | } 47 | 48 | /* 输出结果 */ 49 | if (isset($_GET["callback"])) { 50 | if (preg_match("/^[\w_]+$/", $_GET["callback"])) { 51 | echo htmlspecialchars($_GET["callback"]) . '(' . $result . ')'; 52 | } else { 53 | echo json_encode(array( 54 | 'state'=> 'callback参数不合法' 55 | )); 56 | } 57 | } else { 58 | echo $result; 59 | } -------------------------------------------------------------------------------- /static/ue/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 | } -------------------------------------------------------------------------------- /static/ue/themes/default/images/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/anchor.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/arrow.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/arrow_down.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/arrow_up.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/button-bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/button-bg.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/cancelbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/cancelbutton.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/charts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/charts.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/cursor_h.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/cursor_h.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/cursor_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/cursor_h.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/cursor_v.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/cursor_v.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/cursor_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/cursor_v.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/dialog-title-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/dialog-title-bg.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/filescan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/filescan.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/highlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/highlighted.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/icons-all.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/icons-all.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/icons.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/icons.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/loaderror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/loaderror.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/loading.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/lock.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/neweditor-tab-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/neweditor-tab-bg.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/pagebreak.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/scale.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/sortable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/sortable.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/spacer.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/sparator_v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/sparator_v.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/table-cell-align.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/table-cell-align.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/tangram-colorpicker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/tangram-colorpicker.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/toolbar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/toolbar_bg.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/unhighlighted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/unhighlighted.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/upload.png -------------------------------------------------------------------------------- /static/ue/themes/default/images/videologo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/videologo.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/word.gif -------------------------------------------------------------------------------- /static/ue/themes/default/images/wordpaste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/themes/default/images/wordpaste.png -------------------------------------------------------------------------------- /static/ue/themes/iframe.css: -------------------------------------------------------------------------------- 1 | /*可以在这里添加你自己的css*/ 2 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/third-party/highcharts/modules/data.js: -------------------------------------------------------------------------------- 1 | /* 2 | Data plugin for Highcharts 3 | 4 | (c) 2012-2013 Torstein Hønsi 5 | Last revision 2013-06-07 6 | 7 | License: www.highcharts.com/license 8 | */ 9 | (function(h){var k=h.each,m=function(b,a){this.init(b,a)};h.extend(m.prototype,{init:function(b,a){this.options=b;this.chartOptions=a;this.columns=b.columns||this.rowsToColumns(b.rows)||[];this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var b=this.chartOptions,a=b&&b.chart&&b.chart.type,c=[];k(b&&b.series||[],function(b){c.push((h.seriesTypes[b.type||a||"line"].prototype.pointArrayMap||[0]).length)});this.valueCount= 10 | {global:(h.seriesTypes[a||"line"].prototype.pointArrayMap||[0]).length,individual:c}},dataFound:function(){this.parseTypes();this.findHeaderRow();this.parsed();this.complete()},parseCSV:function(){var b=this,a=this.options,c=a.csv,d=this.columns,f=a.startRow||0,i=a.endRow||Number.MAX_VALUE,j=a.startColumn||0,e=a.endColumn||Number.MAX_VALUE,g=0;c&&(c=c.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(a.lineDelimiter||"\n"),k(c,function(c,h){var n=b.trim(c),p=n.indexOf("#")===0;h>=f&&h<=i&&!p&&n!==""&& 11 | (n=c.split(a.itemDelimiter||","),k(n,function(b,a){a>=j&&a<=e&&(d[a-j]||(d[a-j]=[]),d[a-j][g]=b)}),g+=1)}),this.dataFound())},parseTable:function(){var b=this.options,a=b.table,c=this.columns,d=b.startRow||0,f=b.endRow||Number.MAX_VALUE,i=b.startColumn||0,j=b.endColumn||Number.MAX_VALUE,e;a&&(typeof a==="string"&&(a=document.getElementById(a)),k(a.getElementsByTagName("tr"),function(a,b){e=0;b>=d&&b<=f&&k(a.childNodes,function(a){if((a.tagName==="TD"||a.tagName==="TH")&&e>=i&&e<=j)c[e]||(c[e]=[]), 12 | c[e][b-d]=a.innerHTML,e+=1})}),this.dataFound())},parseGoogleSpreadsheet:function(){var b=this,a=this.options,c=a.googleSpreadsheetKey,d=this.columns,f=a.startRow||0,i=a.endRow||Number.MAX_VALUE,j=a.startColumn||0,e=a.endColumn||Number.MAX_VALUE,g,h;c&&jQuery.getJSON("https://spreadsheets.google.com/feeds/cells/"+c+"/"+(a.googleSpreadsheetWorksheet||"od6")+"/public/values?alt=json-in-script&callback=?",function(a){var a=a.feed.entry,c,k=a.length,m=0,o=0,l;for(l=0;l=j&&l<=e)d[l-j]=[],d[l-j].length=Math.min(o,i-f);for(l=0;l=j&&h<=e&&g>=f&&g<=i)d[h-j][g-f]=c.content.$t;b.dataFound()})},findHeaderRow:function(){k(this.columns,function(){});this.headerRow=0},trim:function(b){return typeof b==="string"?b.replace(/^\s+|\s+$/g,""):b},parseTypes:function(){for(var b=this.columns,a=b.length,c,d,f,i;a--;)for(c=b[a].length;c--;)d=b[a][c],f=parseFloat(d),i=this.trim(d), 14 | i==f?(b[a][c]=f,f>31536E6?b[a].isDatetime=!0:b[a].isNumeric=!0):(d=this.parseDate(d),a===0&&typeof d==="number"&&!isNaN(d)?(b[a][c]=d,b[a].isDatetime=!0):b[a][c]=i===""?null:i)},dateFormats:{"YYYY-mm-dd":{regex:"^([0-9]{4})-([0-9]{2})-([0-9]{2})$",parser:function(b){return Date.UTC(+b[1],b[2]-1,+b[3])}}},parseDate:function(b){var a=this.options.parseDate,c,d,f;a&&(c=a(b));if(typeof b==="string")for(d in this.dateFormats)a=this.dateFormats[d],(f=b.match(a.regex))&&(c=a.parser(f));return c},rowsToColumns:function(b){var a, 15 | c,d,f,i;if(b){i=[];c=b.length;for(a=0;a1&&(a=b.shift(),this.headerRow===0&&a.shift(),a.isDatetime?c="datetime":a.isNumeric||(c="category"));for(e=0;e1&&j[g].push(b[e+1][g]!==void 0?b[e+1][g]:null),f>2&&j[g].push(b[e+2][g]!==void 0?b[e+2][g]:null),f>3&&j[g].push(b[e+3][g]!==void 0?b[e+3][g]:null),f>4&&j[g].push(b[e+4][g]!==void 0?b[e+4][g]:null);i[k]={name:b[e].name,data:j};e+=f}d.complete({xAxis:{type:c},series:i})}}});h.Data=m;h.data=function(b,a){return new m(b,a)};h.wrap(h.Chart.prototype, 17 | "init",function(b,a,c){var d=this;a&&a.data?h.data(h.extend(a.data,{complete:function(f){a.series&&k(a.series,function(b,c){a.series[c]=h.merge(b,f.series[c])});a=h.merge(f,a);b.call(d,a,c)}}),a):b.call(d,a,c)})})(Highcharts); 18 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/third-party/snapscreen/UEditorSnapscreen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/snapscreen/UEditorSnapscreen.exe -------------------------------------------------------------------------------- /static/ue/third-party/video-js/font/vjs.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/video-js/font/vjs.eot -------------------------------------------------------------------------------- /static/ue/third-party/video-js/font/vjs.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/video-js/font/vjs.ttf -------------------------------------------------------------------------------- /static/ue/third-party/video-js/font/vjs.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/video-js/font/vjs.woff -------------------------------------------------------------------------------- /static/ue/third-party/video-js/video-js.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/video-js/video-js.swf -------------------------------------------------------------------------------- /static/ue/third-party/webuploader/Uploader.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/webuploader/Uploader.swf -------------------------------------------------------------------------------- /static/ue/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 | -------------------------------------------------------------------------------- /static/ue/third-party/zeroclipboard/ZeroClipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fengcms/vue-demo-cnodejs/9bb6c3298b98395432922b21f86c5d547cfa7785/static/ue/third-party/zeroclipboard/ZeroClipboard.swf --------------------------------------------------------------------------------