diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 27d3078..0000000 --- a/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": ["es2015", "stage-2"], - "plugins": ["transform-runtime"], - "comments": false, - "env": { - "test": { - "plugins": [ "istanbul" ] - } - } -} diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 9d08a1a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 34af377..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -build/*.js -config/*.js diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index abfe9c1..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,39 +0,0 @@ -// http://eslint.org/docs/user-guide/configuring - -module.exports = { - root: true, - parser: 'babel-eslint', - parserOptions: { - ecmaVersion: 6, - sourceType: 'module' - }, - env: { - browser: true, - node:true, - commonjs:true, - amd:true, - es6:true, - mocha:true - }, - // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style - extends: [ - 'standard' - ], - // required to lint *.vue files - plugins: [ - 'standard', - 'html', - 'promise' - ], - // add your custom rules here - rules: { - // allow paren-less arrow functions - 'arrow-parens': 0, - "arrow-spacing": 0, - // allow async-await - 'generator-star-spacing': 0, - "semi-spacing": [0, {"before": true, "after": true}], - // allow debugger during development - 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 - } -} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ccb6706..0000000 --- a/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -.DS_Store -node_modules/ -dist/ -npm-debug.log -test/unit/coverage -test/e2e/reports -selenium-debug.log -/*.rar diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index b8387eb..0000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 28a804d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 32d6ca0..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vue-huangxiaowu.iml b/.idea/vue-huangxiaowu.iml deleted file mode 100644 index 24643cc..0000000 --- a/.idea/vue-huangxiaowu.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index a9e458e..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - - - - - true - DEFINITION_ORDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - project - - - - - - - - - - - - - - - - project - - - true - - - - DIRECTORY - - false - - - - - - - - - 1486021204919 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 0c4a669..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "vsicons.presets.angular": false -} \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index c304c42..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Mygraduate - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 959d48d..0000000 --- a/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# supervisor - -> A supervisor.js project product by rhymedys - -## Build Setup - -``` bash -# install dependencies -npm install - -# serve with hot reload at localhost:8080 -npm run dev - -# build for production with minification -npm run build - -# run unit tests -npm run unit - -# run e2e tests -npm run e2e - -# run all tests -npm test -``` diff --git a/build/build.js b/build/build.js deleted file mode 100644 index b3c9aad..0000000 --- a/build/build.js +++ /dev/null @@ -1,36 +0,0 @@ -// https://github.com/shelljs/shelljs -require('./check-versions')() -require('shelljs/global') -env.NODE_ENV = 'production' - -var path = require('path') -var config = require('../config') -var ora = require('ora') -var webpack = require('webpack') -var webpackConfig = require('./webpack.prod.conf') - -console.log( - ' Tip:\n' + - ' Built files are meant to be served over an HTTP server.\n' + - ' Opening index.html over file:// won\'t work.\n' -) - -var spinner = ora('building for production...') -spinner.start() - -var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory) -rm('-rf', assetsPath) -mkdir('-p', assetsPath) -cp('-R', 'static/*', assetsPath) - -webpack(webpackConfig, function (err, stats) { - spinner.stop() - if (err) throw err - process.stdout.write(stats.toString({ - colors: true, - modules: false, - children: false, - chunks: false, - chunkModules: false - }) + '\n') -}) diff --git a/build/check-versions.js b/build/check-versions.js deleted file mode 100644 index e2b6cf7..0000000 --- a/build/check-versions.js +++ /dev/null @@ -1,45 +0,0 @@ -var semver = require('semver') -var chalk = require('chalk') -var packageConfig = require('../package.json') -var exec = function (cmd) { - return require('child_process') - .execSync(cmd).toString().trim() -} - -var versionRequirements = [ - { - name: 'node', - currentVersion: semver.clean(process.version), - versionRequirement: packageConfig.engines.node - }, - { - name: 'npm', - currentVersion: exec('npm --version'), - versionRequirement: packageConfig.engines.npm - } -] - -module.exports = function () { - var warnings = [] - for (var i = 0; i < versionRequirements.length; i++) { - var mod = versionRequirements[i] - if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { - warnings.push(mod.name + ': ' + - chalk.red(mod.currentVersion) + ' should be ' + - chalk.green(mod.versionRequirement) - ) - } - } - - if (warnings.length) { - console.log('') - console.log(chalk.yellow('To use this template, you must update following to modules:')) - console.log() - for (var i = 0; i < warnings.length; i++) { - var warning = warnings[i] - console.log(' ' + warning) - } - console.log() - process.exit(1) - } -} diff --git a/build/dev-client.js b/build/dev-client.js deleted file mode 100644 index 18aa1e2..0000000 --- a/build/dev-client.js +++ /dev/null @@ -1,9 +0,0 @@ -/* eslint-disable */ -require('eventsource-polyfill') -var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') - -hotClient.subscribe(function (event) { - if (event.action === 'reload') { - window.location.reload() - } -}) diff --git a/build/dev-server.js b/build/dev-server.js deleted file mode 100644 index 6cb7268..0000000 --- a/build/dev-server.js +++ /dev/null @@ -1,77 +0,0 @@ -require('./check-versions')() -var config = require('../config') -if (!process.env.NODE_ENV) process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) -var path = require('path') -var express = require('express') -var webpack = require('webpack') -var opn = require('opn') -var proxyMiddleware = require('http-proxy-middleware') -var webpackConfig = process.env.NODE_ENV === 'testing' - ? require('./webpack.prod.conf') - : require('./webpack.dev.conf') - -// default port where dev server listens for incoming traffic -var port = process.env.PORT || config.dev.port -// Define HTTP proxies to your custom API backend -// https://github.com/chimurai/http-proxy-middleware -var proxyTable = config.dev.proxyTable - -var app = express() -var compiler = webpack(webpackConfig) - -var devMiddleware = require('webpack-dev-middleware')(compiler, { - publicPath: webpackConfig.output.publicPath, - quiet: true -}) - -var hotMiddleware = require('webpack-hot-middleware')(compiler, { - log: () => {} -}) -// force page reload when html-webpack-plugin template changes -compiler.plugin('compilation', function (compilation) { - compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { - hotMiddleware.publish({ action: 'reload' }) - cb() - }) -}) - -// proxy api requests -Object.keys(proxyTable).forEach(function (context) { - var options = proxyTable[context] - if (typeof options === 'string') { - options = { target: options } - } - app.use(proxyMiddleware(context, options)) -}) - -// handle fallback for HTML5 history API -app.use(require('connect-history-api-fallback')()) - -// serve webpack bundle output -app.use(devMiddleware) - -// enable hot-reload and state-preserving -// compilation error display -app.use(hotMiddleware) - -// serve pure static assets -var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) -app.use(staticPath, express.static('./static')) - -var uri = 'http://localhost:' + port - -devMiddleware.waitUntilValid(function () { - console.log('> Listening at ' + uri + '\n') -}) - -module.exports = app.listen(port, function (err) { - if (err) { - console.log(err) - return - } - - // when env is testing, don't need open it - if (process.env.NODE_ENV !== 'testing') { - opn(uri) - } -}) diff --git a/build/postcss.config.js b/build/postcss.config.js deleted file mode 100644 index 97e3138..0000000 --- a/build/postcss.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/* -* @Author: Rhymedys/Rhymedys@gmail.com -* @Date: 2017-03-06 13:15:22 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-03-06 13:15:29 -*/ - -'use strict'; - -module.exports = { - plugins: [ - require('precss'), - require('autoprefixer') - ] -} \ No newline at end of file diff --git a/build/utils.js b/build/utils.js deleted file mode 100644 index dc3cdd0..0000000 --- a/build/utils.js +++ /dev/null @@ -1,61 +0,0 @@ -var path = require('path') -var config = require('../config') -var ExtractTextPlugin = require('extract-text-webpack-plugin') - -exports.assetsPath = function (_path) { - var assetsSubDirectory = process.env.NODE_ENV === 'production' - ? config.build.assetsSubDirectory - : config.dev.assetsSubDirectory - return path.posix.join(assetsSubDirectory, _path) -} - -exports.cssLoaders = function (options) { - options = options || {} - // generate loader string to be used with extract text plugin - function generateLoaders (loaders) { - var sourceLoader = loaders.map(function (loader) { - var extraParamChar - if (/\?/.test(loader)) { - loader = loader.replace(/\?/, '-loader?') - extraParamChar = '&' - } else { - loader = loader + '-loader' - extraParamChar = '?' - } - return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '') - }).join('!') - - // Extract CSS when that option is specified - // (which is the case during production build) - if (options.extract) { - return ExtractTextPlugin.extract('vue-style-loader', sourceLoader) - } else { - return ['vue-style-loader', sourceLoader].join('!') - } - } - - // http://vuejs.github.io/vue-loader/en/configurations/extract-css.html - return { - css: generateLoaders(['css']), - postcss: generateLoaders(['css']), - less: generateLoaders(['css', 'less']), - sass: generateLoaders(['css', 'sass?indentedSyntax']), - scss: generateLoaders(['css', 'sass']), - stylus: generateLoaders(['css', 'stylus']), - styl: generateLoaders(['css', 'stylus']) - } -} - -// Generate loaders for standalone style files (outside of .vue) -exports.styleLoaders = function (options) { - var output = [] - var loaders = exports.cssLoaders(options) - for (var extension in loaders) { - var loader = loaders[extension] - output.push({ - test: new RegExp('\\.' + extension + '$'), - loader: loader - }) - } - return output -} diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js deleted file mode 100644 index 2906865..0000000 --- a/build/webpack.base.conf.js +++ /dev/null @@ -1,113 +0,0 @@ -var path = require('path') -var config = require('../config') -var utils = require('./utils') -const vuxLoader = require('vux-loader') -const postcssImport = require('postcss-import'); -const cssnext = require('postcss-cssnext'); -const stylelint = require('stylelint'); -var ExtractTextPlugin = require("extract-text-webpack-plugin"); - -var projectRoot = path.resolve(__dirname, '../') - -var env = process.env.NODE_ENV -// check env & config/index.js to decide whether to enable CSS source maps for -// the various preprocessor loaders added to vue-loader at the end of this file -var cssSourceMapDev = (env === 'development' && config.dev.cssSourceMap) -var cssSourceMapProd = (env === 'production' && config.build.productionSourceMap) -var useCssSourceMap = cssSourceMapDev || cssSourceMapProd - -var webpackConfig = { - entry: { - app: './src/main.js' - }, - output: { - path: config.build.assetsRoot, - - //发布 publicPath:'./', 开发 - publicPath: process.env.NODE_ENV === 'production' - ? config.build.assetsPublicPath - : config.dev.assetsPublicPath, - filename: '[name].js' - }, - resolve: { - extensions: [ - '', '.js', '.vue', '.json', '.css' - ], - fallback: [path.join(__dirname, '../node_modules')], - alias: { - 'vue$': 'vue/dist/vue.common.js', - 'src': path.resolve(__dirname, '../src'), - 'assets': path.resolve(__dirname, '../src/assets'), - 'components': path.resolve(__dirname, '../src/components') - } - }, - resolveLoader: { - fallback: [path.join(__dirname, '../node_modules')] - }, - postcss: function () { - return [ - postcssImport({addDependencyTo: webpack}), - stylelint({failOnError: true}) - ] - }, - module: { - // preLoaders: [ { test: /\.vue$/, loader: 'eslint', include: [ - // path.join(projectRoot, 'src') ], exclude: /node_modules/ }, { - // test: /\.js$/, loader: 'eslint', include: [ path.join(projectRoot, - // 'src') ], exclude: /node_modules/ } ], - loaders: [ - { - test: /\.vue$/, - loader: 'vue' - }, { - test: /\.css$/, // 如果使用了 ExtractTextPlugin // loader: - // ExtractTextPlugin.extract('style', 'css!postcss') // 否则 - include: [path.resolve(__dirname, "not_exist_path")], - loader: "style-loader!css-loader!postcss-loader" - }, - // { test: /\.css$/, loader: "style-loader!css-loader" }, { test: - // /\.less$/, loader: "style-loader!css-loader!less-loader" }, - { - test: /\.js$/, - loader: 'babel', - include: [path.join(projectRoot, 'src')], - exclude: /node_modules/ - }, { - test: /\.json$/, - loader: 'json' - }, { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url', - query: { - limit: 10000, - name: utils.assetsPath('img/[name].[hash:7].[ext]') - } - }, { - test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, - loader: 'url', - query: { - limit: 10000, - name: utils.assetsPath('fonts/[name].[hash:7].[ext]') - } - } - ] - }, - - eslint: { - formatter: require('eslint-friendly-formatter') - - }, - vue: { - loaders: utils.cssLoaders({sourceMap: useCssSourceMap}), - postcss: [require('autoprefixer')({browsers: ['last 2 versions']})] - } -} - -module.exports = vuxLoader.merge(webpackConfig, { - options: {}, - plugins: [ - { - name: 'vux-ui' - } - ] -}) diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js deleted file mode 100644 index c9e6cc0..0000000 --- a/build/webpack.dev.conf.js +++ /dev/null @@ -1,36 +0,0 @@ -var config = require('../config') -var webpack = require('webpack') -var merge = require('webpack-merge') -var utils = require('./utils') -var baseWebpackConfig = require('./webpack.base.conf') -var HtmlWebpackPlugin = require('html-webpack-plugin') -var FriendlyErrors = require('friendly-errors-webpack-plugin') - -// add hot-reload related code to entry chunks -Object.keys(baseWebpackConfig.entry).forEach(function (name) { - baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) -}) - -module.exports = merge(baseWebpackConfig, { - module: { - loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) - }, - // eval-source-map is faster for development - devtool: '#eval-source-map', - plugins: [ - new webpack.DefinePlugin({ - 'process.env': config.dev.env - }), - // https://github.com/glenjamin/webpack-hot-middleware#installation--usage - new webpack.optimize.OccurrenceOrderPlugin(), - new webpack.HotModuleReplacementPlugin(), - new webpack.NoErrorsPlugin(), - // https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: 'index.html', - template: 'index.html', - inject: true - }), - new FriendlyErrors() - ] -}) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js deleted file mode 100644 index ba564d3..0000000 --- a/build/webpack.prod.conf.js +++ /dev/null @@ -1,102 +0,0 @@ -var path = require('path') -var config = require('../config') -var utils = require('./utils') -var webpack = require('webpack') -var merge = require('webpack-merge') -var baseWebpackConfig = require('./webpack.base.conf') -var ExtractTextPlugin = require('extract-text-webpack-plugin') -var HtmlWebpackPlugin = require('html-webpack-plugin') -var env = process.env.NODE_ENV === 'testing' - ? require('../config/test.env') - : config.build.env - -var webpackConfig = merge(baseWebpackConfig, { - module: { - loaders: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, extract: true }) - }, - devtool: config.build.productionSourceMap ? '#source-map' : false, - output: { - path: config.build.assetsRoot, - filename: utils.assetsPath('js/[name].[chunkhash].js'), - chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') - }, - vue: { - loaders: utils.cssLoaders({ - sourceMap: config.build.productionSourceMap, - extract: true - }) - }, - plugins: [ - // http://vuejs.github.io/vue-loader/en/workflow/production.html - new webpack.DefinePlugin({ - 'process.env': env - }), - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false - } - }), - new webpack.optimize.OccurrenceOrderPlugin(), - // extract css into its own file - new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash].css')), - // generate dist index.html with correct asset hash for caching. - // you can customize output by editing /index.html - // see https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: process.env.NODE_ENV === 'testing' - ? 'index.html' - : config.build.index, - template: 'index.html', - inject: true, - minify: { - removeComments: true, - collapseWhitespace: true, - removeAttributeQuotes: true - // more options: - // https://github.com/kangax/html-minifier#options-quick-reference - }, - // necessary to consistently work with multiple chunks via CommonsChunkPlugin - chunksSortMode: 'dependency' - }), - // split vendor js into its own file - new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor', - minChunks: function (module, count) { - // any required modules inside node_modules are extracted to vendor - return ( - module.resource && - /\.js$/.test(module.resource) && - module.resource.indexOf( - path.join(__dirname, '../node_modules') - ) === 0 - ) - } - }), - // extract webpack runtime and module manifest to its own file in order to - // prevent vendor hash from being updated whenever app bundle is updated - new webpack.optimize.CommonsChunkPlugin({ - name: 'manifest', - chunks: ['vendor'] - }) - ] -}) - -if (config.build.productionGzip) { - var CompressionWebpackPlugin = require('compression-webpack-plugin') - - webpackConfig.plugins.push( - new CompressionWebpackPlugin({ - asset: '[path].gz[query]', - algorithm: 'gzip', - test: new RegExp( - '\\.(' + - config.build.productionGzipExtensions.join('|') + - ')$' - ), - threshold: 10240, - minRatio: 0.8 - }) - ) -} - -module.exports = webpackConfig diff --git a/config/dev.env.js b/config/dev.env.js deleted file mode 100644 index efead7c..0000000 --- a/config/dev.env.js +++ /dev/null @@ -1,6 +0,0 @@ -var merge = require('webpack-merge') -var prodEnv = require('./prod.env') - -module.exports = merge(prodEnv, { - NODE_ENV: '"development"' -}) diff --git a/config/index.js b/config/index.js deleted file mode 100644 index 199d828..0000000 --- a/config/index.js +++ /dev/null @@ -1,32 +0,0 @@ -// see http://vuejs-templates.github.io/webpack for documentation. -var path = require('path') - -module.exports = { - build: { - env: require('./prod.env'), - index: path.resolve(__dirname, '../server/index.html'), - assetsRoot: path.resolve(__dirname, '../server'), - assetsSubDirectory: '', - assetsPublicPath: '/sas/', - productionSourceMap: true, - // Gzip off by default as many popular static hosts such as - // Surge or Netlify already gzip all static assets for you. - // Before setting to `true`, make sure to: - // npm install --save-dev compression-webpack-plugin - productionGzip: false, - productionGzipExtensions: ['js', 'css'] - }, - dev: { - env: require('./dev.env'), - port: 8088, - assetsSubDirectory: 'static', - assetsPublicPath: '/', - proxyTable: {}, - // CSS Sourcemaps off by default because relative paths are "buggy" - // with this option, according to the CSS-Loader README - // (https://github.com/webpack/css-loader#sourcemaps) - // In our experience, they generally work as expected, - // just be aware of this issue when enabling this option. - cssSourceMap: false - } -} diff --git a/config/prod.env.js b/config/prod.env.js deleted file mode 100644 index 773d263..0000000 --- a/config/prod.env.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - NODE_ENV: '"production"' -} diff --git a/config/test.env.js b/config/test.env.js deleted file mode 100644 index 89f90de..0000000 --- a/config/test.env.js +++ /dev/null @@ -1,6 +0,0 @@ -var merge = require('webpack-merge') -var devEnv = require('./dev.env') - -module.exports = merge(devEnv, { - NODE_ENV: '"testing"' -}) diff --git a/server/css/app.df9971c1b24f97b4f2a8451f55653398.css b/css/app.df9971c1b24f97b4f2a8451f55653398.css similarity index 100% rename from server/css/app.df9971c1b24f97b4f2a8451f55653398.css rename to css/app.df9971c1b24f97b4f2a8451f55653398.css diff --git a/server/css/app.df9971c1b24f97b4f2a8451f55653398.css.map b/css/app.df9971c1b24f97b4f2a8451f55653398.css.map similarity index 100% rename from server/css/app.df9971c1b24f97b4f2a8451f55653398.css.map rename to css/app.df9971c1b24f97b4f2a8451f55653398.css.map diff --git a/server/fonts/element-icons.b02bdc1.ttf b/fonts/element-icons.b02bdc1.ttf similarity index 100% rename from server/fonts/element-icons.b02bdc1.ttf rename to fonts/element-icons.b02bdc1.ttf diff --git a/index.html b/index.html index 4afa9c6..080e225 100644 --- a/index.html +++ b/index.html @@ -1,12 +1 @@ - - - - - vue-cc - - -
- -
- - +vue-cc
\ No newline at end of file diff --git a/server/js/0.4bde9b9c2a2fa91f0e8b.js b/js/0.4bde9b9c2a2fa91f0e8b.js similarity index 100% rename from server/js/0.4bde9b9c2a2fa91f0e8b.js rename to js/0.4bde9b9c2a2fa91f0e8b.js diff --git a/server/js/0.4bde9b9c2a2fa91f0e8b.js.map b/js/0.4bde9b9c2a2fa91f0e8b.js.map similarity index 100% rename from server/js/0.4bde9b9c2a2fa91f0e8b.js.map rename to js/0.4bde9b9c2a2fa91f0e8b.js.map diff --git a/server/js/1.2e930ae9cc5b4705640e.js b/js/1.2e930ae9cc5b4705640e.js similarity index 100% rename from server/js/1.2e930ae9cc5b4705640e.js rename to js/1.2e930ae9cc5b4705640e.js diff --git a/server/js/1.2e930ae9cc5b4705640e.js.map b/js/1.2e930ae9cc5b4705640e.js.map similarity index 100% rename from server/js/1.2e930ae9cc5b4705640e.js.map rename to js/1.2e930ae9cc5b4705640e.js.map diff --git a/server/js/10.b351cd84e039fb9bcd60.js b/js/10.b351cd84e039fb9bcd60.js similarity index 100% rename from server/js/10.b351cd84e039fb9bcd60.js rename to js/10.b351cd84e039fb9bcd60.js diff --git a/server/js/10.b351cd84e039fb9bcd60.js.map b/js/10.b351cd84e039fb9bcd60.js.map similarity index 100% rename from server/js/10.b351cd84e039fb9bcd60.js.map rename to js/10.b351cd84e039fb9bcd60.js.map diff --git a/server/js/2.9a75216691a32d90e5a0.js b/js/2.9a75216691a32d90e5a0.js similarity index 100% rename from server/js/2.9a75216691a32d90e5a0.js rename to js/2.9a75216691a32d90e5a0.js diff --git a/server/js/2.9a75216691a32d90e5a0.js.map b/js/2.9a75216691a32d90e5a0.js.map similarity index 100% rename from server/js/2.9a75216691a32d90e5a0.js.map rename to js/2.9a75216691a32d90e5a0.js.map diff --git a/server/js/3.f0c2b5e9a7b82041140d.js b/js/3.f0c2b5e9a7b82041140d.js similarity index 100% rename from server/js/3.f0c2b5e9a7b82041140d.js rename to js/3.f0c2b5e9a7b82041140d.js diff --git a/server/js/3.f0c2b5e9a7b82041140d.js.map b/js/3.f0c2b5e9a7b82041140d.js.map similarity index 100% rename from server/js/3.f0c2b5e9a7b82041140d.js.map rename to js/3.f0c2b5e9a7b82041140d.js.map diff --git a/server/js/4.29a079e52e49e18ee060.js b/js/4.29a079e52e49e18ee060.js similarity index 100% rename from server/js/4.29a079e52e49e18ee060.js rename to js/4.29a079e52e49e18ee060.js diff --git a/server/js/4.29a079e52e49e18ee060.js.map b/js/4.29a079e52e49e18ee060.js.map similarity index 100% rename from server/js/4.29a079e52e49e18ee060.js.map rename to js/4.29a079e52e49e18ee060.js.map diff --git a/server/js/5.f212e463ca68d10b6977.js b/js/5.f212e463ca68d10b6977.js similarity index 100% rename from server/js/5.f212e463ca68d10b6977.js rename to js/5.f212e463ca68d10b6977.js diff --git a/server/js/5.f212e463ca68d10b6977.js.map b/js/5.f212e463ca68d10b6977.js.map similarity index 100% rename from server/js/5.f212e463ca68d10b6977.js.map rename to js/5.f212e463ca68d10b6977.js.map diff --git a/server/js/6.afd8cb48f19a327a54e4.js b/js/6.afd8cb48f19a327a54e4.js similarity index 100% rename from server/js/6.afd8cb48f19a327a54e4.js rename to js/6.afd8cb48f19a327a54e4.js diff --git a/server/js/6.afd8cb48f19a327a54e4.js.map b/js/6.afd8cb48f19a327a54e4.js.map similarity index 100% rename from server/js/6.afd8cb48f19a327a54e4.js.map rename to js/6.afd8cb48f19a327a54e4.js.map diff --git a/server/js/7.6d1fca85ce4cd1246d4f.js b/js/7.6d1fca85ce4cd1246d4f.js similarity index 100% rename from server/js/7.6d1fca85ce4cd1246d4f.js rename to js/7.6d1fca85ce4cd1246d4f.js diff --git a/server/js/7.6d1fca85ce4cd1246d4f.js.map b/js/7.6d1fca85ce4cd1246d4f.js.map similarity index 100% rename from server/js/7.6d1fca85ce4cd1246d4f.js.map rename to js/7.6d1fca85ce4cd1246d4f.js.map diff --git a/server/js/8.4045228d89ac4e45480d.js b/js/8.4045228d89ac4e45480d.js similarity index 100% rename from server/js/8.4045228d89ac4e45480d.js rename to js/8.4045228d89ac4e45480d.js diff --git a/server/js/8.4045228d89ac4e45480d.js.map b/js/8.4045228d89ac4e45480d.js.map similarity index 100% rename from server/js/8.4045228d89ac4e45480d.js.map rename to js/8.4045228d89ac4e45480d.js.map diff --git a/server/js/9.3e88dc23dd824b14b831.js b/js/9.3e88dc23dd824b14b831.js similarity index 100% rename from server/js/9.3e88dc23dd824b14b831.js rename to js/9.3e88dc23dd824b14b831.js diff --git a/server/js/9.3e88dc23dd824b14b831.js.map b/js/9.3e88dc23dd824b14b831.js.map similarity index 100% rename from server/js/9.3e88dc23dd824b14b831.js.map rename to js/9.3e88dc23dd824b14b831.js.map diff --git a/server/js/app.67f27c8c3aa805f70a5a.js b/js/app.67f27c8c3aa805f70a5a.js similarity index 100% rename from server/js/app.67f27c8c3aa805f70a5a.js rename to js/app.67f27c8c3aa805f70a5a.js diff --git a/server/js/app.67f27c8c3aa805f70a5a.js.map b/js/app.67f27c8c3aa805f70a5a.js.map similarity index 100% rename from server/js/app.67f27c8c3aa805f70a5a.js.map rename to js/app.67f27c8c3aa805f70a5a.js.map diff --git a/server/js/manifest.ee31aff9a26dd4fe7aeb.js b/js/manifest.ee31aff9a26dd4fe7aeb.js similarity index 100% rename from server/js/manifest.ee31aff9a26dd4fe7aeb.js rename to js/manifest.ee31aff9a26dd4fe7aeb.js diff --git a/server/js/manifest.ee31aff9a26dd4fe7aeb.js.map b/js/manifest.ee31aff9a26dd4fe7aeb.js.map similarity index 100% rename from server/js/manifest.ee31aff9a26dd4fe7aeb.js.map rename to js/manifest.ee31aff9a26dd4fe7aeb.js.map diff --git a/server/js/vendor.ad2f0df03b083d30f0ab.js b/js/vendor.ad2f0df03b083d30f0ab.js similarity index 100% rename from server/js/vendor.ad2f0df03b083d30f0ab.js rename to js/vendor.ad2f0df03b083d30f0ab.js diff --git a/server/js/vendor.ad2f0df03b083d30f0ab.js.map b/js/vendor.ad2f0df03b083d30f0ab.js.map similarity index 100% rename from server/js/vendor.ad2f0df03b083d30f0ab.js.map rename to js/vendor.ad2f0df03b083d30f0ab.js.map diff --git a/package.json b/package.json deleted file mode 100644 index 2925c1e..0000000 --- a/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "name": "vue-cc-sas", - "version": "1.0.0", - "description": "毕业项目---督导系统", - "author": "Rhymedys然仔", - "private": true, - "scripts": { - "dev": "node build/dev-server.js", - "build": "node build/build.js", - "test": "npm run unit && npm run e2e", - "start": "cd server && node app" - }, - "dependencies": { - "animate.css": "^3.5.2", - "element-ui": "^1.2.7", - "mint-ui": "^2.1.1", - "vue": "^2.2.0", - "vue-router": "^2.1.0", - "vuex": "^2.1.0", - "vux": "^2.1.1-rc.11" - }, - "devDependencies": { - "autoprefixer": "^6.7.6", - "babel-core": "^6.0.0", - "babel-eslint": "^7.0.0", - "babel-loader": "^6.0.0", - "babel-plugin-istanbul": "^3.0.0", - "babel-plugin-transform-runtime": "^6.0.0", - "babel-preset-es2015": "^6.0.0", - "babel-preset-stage-2": "^6.0.0", - "babel-register": "^6.0.0", - "chai": "^3.5.0", - "chalk": "^1.1.3", - "chromedriver": "^2.21.2", - "compression-webpack-plugin": "^0.3.2", - "connect-history-api-fallback": "^1.1.0", - "cross-env": "^3.1.3", - "cross-spawn": "^4.0.2", - "css-loader": "^0.25.0", - "eventsource-polyfill": "^0.9.6", - "express": "^4.13.3", - "extract-text-webpack-plugin": "^1.0.1", - "fastclick": "^1.0.6", - "file-loader": "^0.9.0", - "friendly-errors-webpack-plugin": "^1.1.2", - "function-bind": "^1.0.2", - "html-webpack-plugin": "^2.8.1", - "http-proxy-middleware": "^0.17.2", - "inject-loader": "^2.0.1", - "json-loader": "^0.5.4", - "karma": "^1.3.0", - "karma-coverage": "^1.1.1", - "karma-mocha": "^1.2.0", - "karma-phantomjs-launcher": "^1.0.0", - "karma-sinon-chai": "^1.2.0", - "karma-sourcemap-loader": "^0.3.7", - "karma-spec-reporter": "0.0.26", - "karma-webpack": "^1.7.0", - "less": "^2.7.2", - "less-loader": "^3.0.0", - "lolex": "^1.4.0", - "mocha": "^3.1.0", - "nightwatch": "^0.9.8", - "opn": "^4.0.2", - "ora": "^0.3.0", - "phantomjs-prebuilt": "^2.1.3", - "postcss": "^5.2.0", - "postcss-cssnext": "^2.9.0", - "postcss-import": "^9.1.0", - "postcss-loader": "^0.13.0", - "selenium-server": "2.53.1", - "semver": "^5.3.0", - "shelljs": "^0.7.4", - "sinon": "^1.17.3", - "sinon-chai": "^2.8.0", - "stylelint": "^7.9.0", - "url-loader": "^0.5.7", - "vue-loader": "^10.0.0", - "vue-style-loader": "^1.0.0", - "vue-template-compiler": "^2.1.0", - "vux-loader": "^1.0.54", - "webpack": "^1.13.2", - "webpack-dev-middleware": "^1.8.3", - "webpack-hot-middleware": "^2.12.2", - "webpack-merge": "^0.14.1" - }, - "engines": { - "node": ">= 4.0.0", - "npm": ">= 3.0.0" - } -} diff --git a/server/index.html b/server/index.html deleted file mode 100644 index 080e225..0000000 --- a/server/index.html +++ /dev/null @@ -1 +0,0 @@ -vue-cc
\ No newline at end of file diff --git a/src/App.js b/src/App.js deleted file mode 100644 index 622a009..0000000 --- a/src/App.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:41:42 - */ - -'use strict' -require('./css/app.css') -import api from './utils/Api' -import commonUtils from './utils/CommonUtils' - -// 路由 -import router from './router' -// 状态集中管理 -import {mapState, mapGetters, mapActions} from 'vuex' -import * as mActions from './vuex/Actions' -import * as mGetters from './vuex/Getters' -import * as mMutations from './vuex/Mutations' - -export default { - name : 'cc-app', - data : function () { - return {transitionName: 'slide-left'} - }, - beforeCreate : function () {}, - created : function () { - - if (this.$route.name === undefined) { - this - .$router - .push({name: 'indexHome'}) - } - }, - beforeMount : function () {}, - mounted : function () {}, - updated : function () {}, - activated : function () {}, - deactivated : function () {}, - beforeDestroy : function () {}, - destroyed : function () {}, - computed : {}, - methods : {} -} diff --git a/src/App.vue b/src/App.vue deleted file mode 100644 index 7aa36ae..0000000 --- a/src/App.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/assets/.gitignore b/src/assets/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/src/assets/account-filling (1).png b/src/assets/account-filling (1).png deleted file mode 100644 index ab3d300..0000000 Binary files a/src/assets/account-filling (1).png and /dev/null differ diff --git a/src/assets/iconBuildBlack.png b/src/assets/iconBuildBlack.png deleted file mode 100644 index c0179f5..0000000 Binary files a/src/assets/iconBuildBlack.png and /dev/null differ diff --git a/src/assets/iconBuildBlue.png b/src/assets/iconBuildBlue.png deleted file mode 100644 index a97c0c2..0000000 Binary files a/src/assets/iconBuildBlue.png and /dev/null differ diff --git a/src/assets/iconIndexBlack.png b/src/assets/iconIndexBlack.png deleted file mode 100644 index 336f467..0000000 Binary files a/src/assets/iconIndexBlack.png and /dev/null differ diff --git a/src/assets/iconIndexBlue.png b/src/assets/iconIndexBlue.png deleted file mode 100644 index 2978c21..0000000 Binary files a/src/assets/iconIndexBlue.png and /dev/null differ diff --git a/src/assets/iconMeBlack.png b/src/assets/iconMeBlack.png deleted file mode 100644 index 0586e0e..0000000 Binary files a/src/assets/iconMeBlack.png and /dev/null differ diff --git a/src/assets/iconMeBlue.png b/src/assets/iconMeBlue.png deleted file mode 100644 index 196ea9f..0000000 Binary files a/src/assets/iconMeBlue.png and /dev/null differ diff --git a/src/assets/iconMeWhite.png b/src/assets/iconMeWhite.png deleted file mode 100644 index b60345a..0000000 Binary files a/src/assets/iconMeWhite.png and /dev/null differ diff --git a/src/assets/iconPermissionBlack.png b/src/assets/iconPermissionBlack.png deleted file mode 100644 index 7c8d86f..0000000 Binary files a/src/assets/iconPermissionBlack.png and /dev/null differ diff --git a/src/assets/iconPermissionBlue.png b/src/assets/iconPermissionBlue.png deleted file mode 100644 index f231968..0000000 Binary files a/src/assets/iconPermissionBlue.png and /dev/null differ diff --git a/src/assets/iconProgressBlack.png b/src/assets/iconProgressBlack.png deleted file mode 100644 index c9c720e..0000000 Binary files a/src/assets/iconProgressBlack.png and /dev/null differ diff --git a/src/assets/iconProgressBlue.png b/src/assets/iconProgressBlue.png deleted file mode 100644 index 17b8df8..0000000 Binary files a/src/assets/iconProgressBlue.png and /dev/null differ diff --git a/src/assets/iconReferBlack.png b/src/assets/iconReferBlack.png deleted file mode 100644 index 5e735bf..0000000 Binary files a/src/assets/iconReferBlack.png and /dev/null differ diff --git a/src/assets/iconReferBlue.png b/src/assets/iconReferBlue.png deleted file mode 100644 index 65beaca..0000000 Binary files a/src/assets/iconReferBlue.png and /dev/null differ diff --git a/src/assets/iconSettingBlack.png b/src/assets/iconSettingBlack.png deleted file mode 100644 index 896f462..0000000 Binary files a/src/assets/iconSettingBlack.png and /dev/null differ diff --git a/src/assets/iconSettingBlue.png b/src/assets/iconSettingBlue.png deleted file mode 100644 index 4a861cd..0000000 Binary files a/src/assets/iconSettingBlue.png and /dev/null differ diff --git a/src/assets/iconSupervisorBlack.png b/src/assets/iconSupervisorBlack.png deleted file mode 100644 index fb841df..0000000 Binary files a/src/assets/iconSupervisorBlack.png and /dev/null differ diff --git a/src/assets/iconSupervisorBlue.png b/src/assets/iconSupervisorBlue.png deleted file mode 100644 index edc21b9..0000000 Binary files a/src/assets/iconSupervisorBlue.png and /dev/null differ diff --git a/src/assets/iconTeachInfoBlack.png b/src/assets/iconTeachInfoBlack.png deleted file mode 100644 index c97d941..0000000 Binary files a/src/assets/iconTeachInfoBlack.png and /dev/null differ diff --git a/src/assets/iconTeachInfoBlue.png b/src/assets/iconTeachInfoBlue.png deleted file mode 100644 index f73c10b..0000000 Binary files a/src/assets/iconTeachInfoBlue.png and /dev/null differ diff --git a/src/assets/password.png b/src/assets/password.png deleted file mode 100644 index 55147c5..0000000 Binary files a/src/assets/password.png and /dev/null differ diff --git a/src/css/app.css b/src/css/app.css deleted file mode 100644 index 3c186f7..0000000 --- a/src/css/app.css +++ /dev/null @@ -1,154 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-02-07 15:47:17 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-02-07 16:51:15 -*/ -.cc-App { - display: flex; - flex-direction: column; - height: 100vh; -} - -/* -======================================================= -header -=======================================================*/ -.headerWrapper { - height: 80px; -} -.header { - height: 80px; - background-color: #20a0ff; - color: #fff; - top: 0; - left: 0; - width: 100%; - line-height: 80px; - z-index: 100; - position: relative; -} -.header .container { - padding: 0 30px; - margin: 0 auto; - height: 100%; - box-sizing: border-box; -} -.header h1 { - margin: 0; - float: left; - font-size: 32px; - font-weight: 400; -} -.header .welcome { - float: right; - height: 100%; - line-height: 80px; - background: transparent; - padding: 0; - margin: 0; -} -.welcome-icon { - height: 20px; - margin-right: 13px; -} -.welcome-msg { - text-decoration: none; - color: #fff; - display: block; - padding: 0 20px; -} - -/* -======================================================= -main -=======================================================*/ -.main-cnt { - - /*flex-grow: 1;*/ - - /*margin-top: -80px; - padding: 80px 0 120px;*/ - box-sizing: border-box; - height: -moz-calc(100%-200px); - height: -webkit-calc(100% - 200px); - height: calc(100% - 200px); - overflow: auto; -} -.page-compoment { - - /* padding: 0 30px; - */ - height: 100%; - margin: 0 auto; - width: 100%; - display: flex; -} -.page-compoment-p { - padding-left: 0 !important; /*padding-bottom: 95px !important;*/ - box-sizing: border-box !important; -} -.cc-row { - background-color: #eef1f6; - position: relative; - box-sizing: border-box; - float: left; - min-width: 300px; -} -.left-row .col { - width: 100% !important; /*float: left !important;*/ -} -.el-menu-icon { - width: 21px; - margin-right: 15px; - margin-top: -3px; -} -.cc-row-right { - flex-grow: 1; - overflow: auto; -} - -/* -======================================================= -foot -=======================================================*/ -.footer { - height: 120px; - background-color: #324057; - color: #a4aebd; - width: 100%; - z-index: 1000; /*margin-top: -120px;*/ - - /*position: absolute; - bottom: 0;*/ -} -.footer * { - word-spacing: 0; -} -.foot-container { - height: 100%; - box-sizing: border-box; - padding: 0 30px; - margin: 0 auto; -} -.footer-main { - font-size: 0; - padding-top: 40px; - display: inline-block; -} -.footer-main-title { - line-height: 1; - font-size: 22px; - margin: 0; -} -.footer-main-subtitle { - display: inline-block; - margin: 12px 18px 0 0; - line-height: 1; - font-size: 12px; - color: #768193; -} -.footer-social { - float: right; - line-height: 120px; -} \ No newline at end of file diff --git a/src/css/color.css b/src/css/color.css deleted file mode 100644 index a2be8e4..0000000 --- a/src/css/color.css +++ /dev/null @@ -1,82 +0,0 @@ -.cl3C3C3C, -.cl606060 { - color: #3C3C3C; -} - -.cl000000 { - color: #000000; -} - -.cl9F9F9F, -.cl159159159 { - color: #9F9F9F; -} - -.clDFE0E3 { - color: #DFE0E3; -} - -.cl6E6E6E, -.cl110110110 { - color: #6E6E6E; -} - -.clFFFFFF { - color: #FFFFFF; -} - -.clFD8A17 { - color: #FD8A17; -} - -.clBDBDBD { - color: #BDBDBD; -} - -.clFF7777, -.cl255119119 { - color: #FF7777; -} - -.clC1C4C9, -.cl193196201 { - color: #C1C4C9; -} - -.cl28B4FF { - color: #28B4FF; -} - -.cl95DAFF { - color: #95DAFF; -} - -.clDBDFE3 { - color: #DBDFE3; -} - -.clE6E6FA { - color: #E6E6FA; -} - -.cl333 { - color: #333; -} - -.clE5E5E5, -.cl229229229 { - color: #E5E5E5; -} - -.clF3F3F3, -.cl243243243 { - color: #F3F3F3; -} - -.cl20a0ff { - color: #20a0ff; -} - -.cl999 { - color: #999; -} diff --git a/src/css/common.less b/src/css/common.less deleted file mode 100644 index cb56378..0000000 --- a/src/css/common.less +++ /dev/null @@ -1,425 +0,0 @@ -/*位置*/ - - -/*flex*/ - -.ai-c { - align-items: center; -} - -.ai-b { - align-items: baseline; -} - -.ai-fe { - align-items: flex-end; -} - -.jc-a { - justify-content: space-around; -} - -.jc-c { - justify-content: center; -} - -.ta-c { - text-align: center; -} - -.nwrap { - flex-wrap: nowrap; -} - -.wrap { - flex-wrap: wrap; -} - -.flex-1 { - flex: 1; -} - -.flex-2 { - flex: 2; -} - -.flex-3 { - flex: 3; -} - -.display-row { - display: flex; - flex-direction: row; -} - -.display-col { - display: flex; - flex-direction: column; -} - -.vertical-m { - display: table-cell; - /*按照单元格的样式显示元素*/ - vertical-align: middle; -} - -.vertical-bottom { - display: table-cell; - /*按照单元格的样式显示元素*/ - vertical-align: bottom; - /*底对齐*/ -} - -.top0 { - top: 0; -} - - -/*end flex*/ - -.display-line-1 { - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - text-overflow: ellipsis; -} - -.display-line-2 { - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - text-overflow: ellipsis; -} - -.display-line-3 { - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - text-overflow: ellipsis; -} - -.display-line-4 { - -webkit-line-clamp: 4; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - text-overflow: ellipsis; -} - -.display-line-5 { - -webkit-line-clamp: 5; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - text-overflow: ellipsis; -} - -.square { - width: 100px; - height: 100px; - border-radius: 50px; - background-size: 100% 100%; - background-repeat: no-repeat; - margin: 10px 5px; -} - -.horizontal-line { - width: 30px; - height: 1px; - margin: 10px 0px; - background: black; -} - -.vertical-line { - width: 1px; - height: 86px; - margin: 10px 0px; - background: black; -} - -.no-display { - display: none; -} - -.banner { - width: auto; - border-radius: 5px; - margin: 10px 4%; -} - -.swiper { - position: relative; - height: 232px; -} - -.over-hidden { - overflow: hidden; - text-overflow: ellipsis; -} - -.full-screen { - background-color: rgb(243, 243, 243); - height: 100%; -} - - -/*透明度*/ - -.op01 { - opacity: 0.1; -} - -.op02 { - opacity: 0.2; -} - -.op03 { - opacity: 0.3; -} - -.op04 { - opacity: 0.4; -} - -.op05 { - opacity: 0.5; -} - -.op06 { - opacity: 0.6; -} - -.op07 { - opacity: 0.7; -} - -.op08 { - opacity: 0.8; -} - -.op09 { - opacity: 0.9; -} - -.op10 { - opacity: 1; -} - - -/*//positon*/ - -.pr { - position: relative !important; -} - -.pa { - position: absolute !important; -} - -.width100 { - width: 100%; -} - -.height100 { - height: 100%; -} - -.ab-c { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - margin: auto; -} - -.work-break { - word-break: break-all; - word-wrap: break-word; -} - - -/*backgroumd*/ - -.bg-white, -.bgFFFFFF { - background-color: #ffffff; -} - -.bg-243, -.bgF3F3F3, -.bg243243243 { - background-color: #F3F3F3; -} - -.bgE5E5E5 { - background-color: #E5E5E5 -} - -.bg333 { - background-color: #333 -} - -.scroll { - -webkit-overflow-scrolling: touch; -} - -.mg-center { - margin: auto -} - - -.mg-horizontal-center{ - margin-left: auto; - margin-right: auto; -} - - - -/*overflow*/ - -.overflow-xh { - overflow-x: hidden; -} - -.overflow-yh { - overflow-y: hidden; -} - -.overflow-h { - overflow: hidden; -} - -.overflow-xs { - overflow-x: scroll; -} - -.overflow-ys { - overflow-y: scroll; -} - -.overflow-yv { - overflow-y: visible; -} - -// 1px -.setTopLine(@c: #E5E5E5) { - content: " "; - position: absolute; - left: 0; - top: 0; - right: 0; - height: 1px; - border-top: 1px solid @c; - color: @c; - transform-origin: 0 0; - transform: scaleY(0.5); -} - -.setBottomLine(@c: #E5E5E5) { - content: " "; - position: absolute; - left: 0; - bottom: 0; - right: 0; - height: 1px; - border-bottom: 1px solid @c; - color: @c; - transform-origin: 0 100%; - transform: scaleY(0.5); -} - -.setLeftLine(@c: #E5E5E5) { - content: " "; - position: absolute; - left: 0; - top: 0; - width: 1px; - bottom: 0; - border-left: 1px solid @c; - color: @c; - transform-origin: 0 0; - transform: scaleX(0.5); -} - -.setRightLine(@c: #E5E5E5) { - content: " "; - position: absolute; - right: 0; - top: 0; - width: 1px; - bottom: 0; - border-right: 1px solid @c; - color: @c; - transform-origin: 100% 0; - transform: scaleX(0.5); -} - -.setLine(@c: #E5E5E5) { - content: " "; - position: absolute; - left: 0; - top: 0; - width: 200%; - height: 1px; - border: 1px solid @c; - color: @c; - height: 200%; - transform-origin: left top; - transform: scale(0.5); -} - -.br-square-1px, -.br-top, -.br-bottom, -.br-top-bottom, -.br-left, -.br-right { - position: relative; -} - -.br-square-1px { - &:before { - .setLine(); - } -} - -.br-top { - &:before { - .setTopLine(); - } -} - -.br-bottom { - &:after { - .setBottomLine(); - } -} - -.br-top-bottom { - &:before { - .setTopLine(); - } - &:after { - .setBottomLine(); - } -} - -.br-left { - &:before { - .setLeftLine(); - } -} - -.br-right { - &:after { - .setRightLine(); - } -} - -.br-square { - border: 1px solid #E5E5E5; -} diff --git a/src/css/font.css b/src/css/font.css deleted file mode 100644 index 3d6757d..0000000 --- a/src/css/font.css +++ /dev/null @@ -1,135 +0,0 @@ -.fs1 { - font-size: 1px !important; -} - -.fs2 { - font-size: 2px !important; -} - -.fs3 { - font-size: 3px !important; -} - -.fs4 { - font-size: 4px !important; -} - -.fs5 { - font-size: 5px !important; -} - -.fs6 { - font-size: 6px !important; -} - -.fs7 { - font-size: 7px !important; -} - -.fs8 { - font-size: 8px !important; -} - -.fs9 { - font-size: 9px !important; -} - -.fs10 { - font-size: 10px !important; -} - -.fs11 { - font-size: 11px !important; -} - -.fs12 { - font-size: 12px !important; -} - -.fs13 { - font-size: 13px !important; -} - -.fs14 { - font-size: 14px !important; -} - -.fs15 { - font-size: 15px !important; -} - -.fs16 { - font-size: 16px !important; -} - -.fs17 { - font-size: 17px !important; -} - -.fs18 { - font-size: 18px !important; -} - -.fs19 { - font-size: 19px !important; -} - -.fs20 { - font-size: 20px !important; -} - -.fs21 { - font-size: 21px !important; -} - -.fs22 { - font-size: 22px !important; -} - -.fs23 { - font-size: 23px !important; -} - -.fs24 { - font-size: 24px !important; -} - -.fs25 { - font-size: 25px !important; -} - -.fs26 { - font-size: 26px !important; -} - -.fs27 { - font-size: 27px !important; -} - -.fs28 { - font-size: 28px !important; -} - -.fs29 { - font-size: 29px !important; -} - -.fs30 { - font-size: 30px !important; -} - -.fs31 { - font-size: 31px !important; -} - -.lh1 { - line-height: 1; -} - -.lh2 { - line-height: 2; -} - -.fw-bold { - font-weight: bold; -} diff --git a/src/css/main.css b/src/css/main.css deleted file mode 100644 index 2ddb9f2..0000000 --- a/src/css/main.css +++ /dev/null @@ -1,411 +0,0 @@ -/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */ - - -/* - * What follows is the result of much research on cross-browser styling. - * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, - * Kroc Camen, and the H5BP dev community and team. - */ - - -/* ========================================================================== - Base styles: opinionated defaults - ========================================================================== */ - -html { - color: #222; - font-size: 1em; - line-height: 1.4; - font-family: "微软雅黑", Helvetica, STHeiTi, sans-serif; -} - -p { - word-wrap: break-word; - word-break: break-all; -} - -a { - text-decoration: none !important; - cursor: auto; -} - -body { - line-height: 1.5; - font-size: 16px; - color: #000; - /* background-color: #eef1f3;*/ - -webkit-user-select: none; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; - outline: 0; - margin: 0; - padding: 0; - background-position-x: center; - background-repeat: no-repeat; - background-size: 104px auto; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - position: absolute; - overflow: hidden; - -webkit-overflow-scrolling: touch; - top: 0; - left: 0; - bottom: 0; - right: 0; - height: 100%; - width: 100%; - overflow: hidden; -} - -.click-item:active { - background-color: #f4f4f4 !important; - background: #f4f4f4 !important; -} - -#app { - /*width: auto;*/ - height: 100vh; - background-color: transparent; - position: absolute; - z-index: 1; - left: 0; - width: 100%; - overflow: hidden; - /* Prevent native touch events on Windows */ - -ms-touch-action: none; - /* Prevent the callout on tap-hold and text selection */ - -webkit-touch-callout: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - -webkit-text-size-adjust: none; - -moz-text-size-adjust: none; - -ms-text-size-adjust: none; - -o-text-size-adjust: none; - text-size-adjust: none; -} - -#apploading { - height: 100%; - width: 100%; - z-index: -6; - position: absolute; -} - -.index-item { - overflow: hidden; -} - - -/* - * Remove text-shadow in selection highlight: - * https://twitter.com/miketaylr/status/12228805301 - * - * These selection rule sets have to be separate. - * Customize the background color to match your design. - */ - -::-moz-selection { - background: #b3d4fc; - text-shadow: none; -} - -::selection { - background: #b3d4fc; - text-shadow: none; -} - - -/* - * A better looking default horizontal rule - */ - -hr { - display: block; - height: 1px; - border: 0; - border-top: 1px solid #ccc; - margin: 1em 0; - padding: 0; -} - - -/* - * Remove the gap between audio, canvas, iframes, - * images, videos and the bottom of their containers: - * https://github.com/h5bp/html5-boilerplate/issues/440 - */ - -audio, -canvas, -iframe, -img, -svg, -video { - vertical-align: middle; -} - - -/* - * Remove default fieldset styles. - */ - -fieldset { - border: 0; - margin: 0; - padding: 0; -} - - -/* - * Allow only vertical resizing of textareas. - */ - -textarea { - resize: vertical; -} - - -/* ========================================================================== - Browser Upgrade Prompt - ========================================================================== */ - -.browserupgrade { - margin: 0.2em 0; - background: #ccc; - color: #000; - padding: 0.2em 0; -} - - -/* ========================================================================== - Author's custom styles - ========================================================================== */ - - -/* ========================================================================== - Helper classes - ========================================================================== */ - - -/* - * Hide visually and from screen readers - */ - -.hidden { - display: none !important; -} - - -/* - * Hide only visually, but have it available for screen readers: - * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility - */ - -.visuallyhidden { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - - -/* - * Extends the .visuallyhidden class to allow the element - * to be focusable when navigated to via the keyboard: - * https://www.drupal.org/node/897638 - */ - -.visuallyhidden.focusable:active, -.visuallyhidden.focusable:focus { - clip: auto; - height: auto; - margin: 0; - overflow: visible; - position: static; - width: auto; -} - - -/* - * Hide visually and from screen readers, but maintain layout - */ - -.invisible { - visibility: hidden; -} - - -/* - * Clearfix: contain floats - * - * For modern browsers - * 1. The space content is one way to avoid an Opera bug when the - * `contenteditable` attribute is included anywhere else in the document. - * Otherwise it causes space to appear at the top and bottom of elements - * that receive the `clearfix` class. - * 2. The use of `table` rather than `block` is only necessary if using - * `:before` to contain the top-margins of child elements. - */ - -.clearfix:before, -.clearfix:after { - content: " "; - /* 1 */ - display: table; - /* 2 */ -} - -.clearfix:after { - clear: both; -} - - -/* ========================================================================== - EXAMPLE Media Queries for Responsive Design. - These examples override the primary ('mobile first') styles. - Modify as content requires. - ========================================================================== */ - -@media only screen and (min-width:480) { - /* Style adjustments for viewports that meet the condition */ -} - -@media only screen and (min-width:35em) { - /* Style adjustments for viewports that meet the condition */ -} - -@media print, -(-webkit-min-device-pixel-ratio:1.25), -(min-resolution:1.25dppx), -(min-resolution:120dpi) { - /* Style adjustments for high resolution devices */ -} - - -/* ========================================================================== - Print styles. - Inlined to avoid the additional HTTP request: - http://www.phpied.com/delay-loading-your-print-css/ - ========================================================================== */ - -@media print { - *, - *:before, - *:after, - *:first-letter, - *:first-line { - background: transparent !important; - color: #000 !important; - /* Black prints faster: - http://www.sanbeiji.com/archives/953 */ - box-shadow: none !important; - text-shadow: none !important; - } - a, - a:visited { - text-decoration: underline; - } - a[href]:after { - content: " ("attr(href) ")"; - } - abbr[title]:after { - content: " ("attr(title) ")"; - } - /* - * Don't show links that are fragment identifiers, - * or use the `javascript:` pseudo protocol - */ - a[href^="#"]:after, - a[href^="javascript:"]:after { - content: ""; - } - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; - } - /* - * Printing Tables: - * http://css-discuss.incutio.com/wiki/Printing_Tables - */ - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - img { - max-width: 100% !important; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - word-break: break-all; - } - h2, - h3 { - page-break-after: avoid; - } -} - -.title, -h2, -h3, -h4 { - color: #414c59; - font-family: Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif; -} - - -/*router animation*/ - -.fade-enter-active, -.fade-leave-active { - transition: opacity .1s ease; -} - -.fade-enter, -.fade-leave-active { - opacity: 0 -} - -.child-view { - transition: all .1s cubic-bezier(.55, 0, .1, 1); -} - -.slide-left-enter, -.slide-right-leave-active { - opacity: 0; - -webkit-transform: translate(30px, 0); - transform: translate(30px, 0); -} - -.slide-left-leave-active, -.slide-right-enter { - opacity: 0; - -webkit-transform: translate(-30px, 0); - transform: translate(-30px, 0); -} - -.fold { - transform: translate3d(0, 0, 0); -} - -.fold-enter-active, -.fold-leave-active { - transition: all 0.5s; -} - -.fold-enter, -.fold-leave-active { - transform: translate3d(0, 100%, 0); -} diff --git a/src/css/margin.css b/src/css/margin.css deleted file mode 100644 index 256e2f9..0000000 --- a/src/css/margin.css +++ /dev/null @@ -1,379 +0,0 @@ -/*margin-top*/ -.mg-top1 { - margin-top: 1px !important; -} -.mg-top2 { - margin-top: 2px !important; -} -.mg-top3 { - margin-top: 3px !important; -} -.mg-top4 { - margin-top: 4px !important; -} -.mg-top5 { - margin-top: 5px !important; -} -.mg-top6 { - margin-top: 6px !important; -} -.mg-top7 { - margin-top: 7px !important; -} -.mg-top8 { - margin-top: 8px !important; -} -.mg-top9 { - margin-top: 9px !important; -} -.mg-top10 { - margin-top: 10px !important; -} -.mg-top11 { - margin-top: 11px !important; -} -.mg-top12 { - margin-top: 12px !important; -} -.mg-top13 { - margin-top: 13px !important; -} -.mg-top14 { - margin-top: 14px !important; -} -.mg-top15 { - margin-top: 15px !important; -} -.mg-top16 { - margin-top: 16px !important; -} -.mg-top17 { - margin-top: 17px !important; -} -.mg-top18 { - margin-top: 18px !important; -} -.mg-top19 { - margin-top: 19px !important; -} -.mg-top20 { - margin-top: 20px !important; -} -.mg-top21 { - margin-top: 21px !important; -} -.mg-top22 { - margin-top: 22px !important; -} -.mg-top23 { - margin-top: 23px !important; -} -.mg-top24 { - margin-top: 24px !important; -} -.mg-top25 { - margin-top: 25px !important; -} -.mg-top26 { - margin-top: 26px !important; -} -.mg-top27 { - margin-top: 27px !important; -} -.mg-top28 { - margin-top: 28px !important; -} -.mg-top29 { - margin-top: 29px !important; -} -.mg-top30 { - margin-top: 30px !important; -} -.mg-top31 { - margin-top: 31px !important; -} - -/*margin-right*/ -.mg-right1 { - margin-right: 1px !important; -} -.mg-right2 { - margin-right: 2px !important; -} -.mg-right3 { - margin-right: 3px !important; -} -.mg-right4 { - margin-right: 4px !important; -} -.mg-right5 { - margin-right: 5px !important; -} -.mg-right6 { - margin-right: 6px !important; -} -.mg-right7 { - margin-right: 7px !important; -} -.mg-right8 { - margin-right: 8px !important; -} -.mg-right9 { - margin-right: 9px !important; -} -.mg-right10 { - margin-right: 10px !important; -} -.mg-right11 { - margin-right: 11px !important; -} -.mg-right12 { - margin-right: 12px !important; -} -.mg-right13 { - margin-right: 13px !important; -} -.mg-right14 { - margin-right: 14px !important; -} -.mg-right15 { - margin-right: 15px !important; -} -.mg-right16 { - margin-right: 16px !important; -} -.mg-right17 { - margin-right: 17px !important; -} -.mg-right18 { - margin-right: 18px !important; -} -.mg-right19 { - margin-right: 19px !important; -} -.mg-right20 { - margin-right: 20px !important; -} -.mg-right21 { - margin-right: 21px !important; -} -.mg-right22 { - margin-right: 22px !important; -} -.mg-right23 { - margin-right: 23px !important; -} -.mg-right24 { - margin-right: 24px !important; -} -.mg-right25 { - margin-right: 25px !important; -} -.mg-right26 { - margin-right: 26px !important; -} -.mg-right27 { - margin-right: 27px !important; -} -.mg-right28 { - margin-right: 28px !important; -} -.mg-right29 { - margin-right: 29px !important; -} -.mg-right30 { - margin-right: 30px !important; -} -.mg-right31 { - margin-right: 31px !important; -} - -/*margin-left*/ -.mg-left1 { - margin-left: 1px !important; -} -.mg-left2 { - margin-left: 2px !important; -} -.mg-left3 { - margin-left: 3px !important; -} -.mg-left4 { - margin-left: 4px !important; -} -.mg-left5 { - margin-left: 5px !important; -} -.mg-left6 { - margin-left: 6px !important; -} -.mg-left7 { - margin-left: 7px !important; -} -.mg-left8 { - margin-left: 8px !important; -} -.mg-left9 { - margin-left: 9px !important; -} -.mg-left10 { - margin-left: 10px !important; -} -.mg-left11 { - margin-left: 11px !important; -} -.mg-left12 { - margin-left: 12px !important; -} -.mg-left13 { - margin-left: 13px !important; -} -.mg-left14 { - margin-left: 14px !important; -} -.mg-left15 { - margin-left: 15px !important; -} -.mg-left16 { - margin-left: 16px !important; -} -.mg-left17 { - margin-left: 17px !important; -} -.mg-left18 { - margin-left: 18px !important; -} -.mg-left19 { - margin-left: 19px !important; -} -.mg-left20 { - margin-left: 20px !important; -} -.mg-left21 { - margin-left: 21px !important; -} -.mg-left22 { - margin-left: 22px !important; -} -.mg-left23 { - margin-left: 23px !important; -} -.mg-left24 { - margin-left: 24px !important; -} -.mg-left25 { - margin-left: 25px !important; -} -.mg-left26 { - margin-left: 26px !important; -} -.mg-left27 { - margin-left: 27px !important; -} -.mg-left28 { - margin-left: 28px !important; -} -.mg-left29 { - margin-left: 29px !important; -} -.mg-left30 { - margin-left: 30px !important; -} -.mg-left31 { - margin-left: 31px !important; -} - -/*margin-bottom*/ -.mg-bottom1 { - margin-bottom: 1px !important; -} -.mg-bottom2 { - margin-bottom: 2px !important; -} -.mg-bottom3 { - margin-bottom: 3px !important; -} -.mg-bottom4 { - margin-bottom: 4px !important; -} -.mg-bottom5 { - margin-bottom: 5px !important; -} -.mg-bottom6 { - margin-bottom: 6px !important; -} -.mg-bottom7 { - margin-bottom: 7px !important; -} -.mg-bottom8 { - margin-bottom: 8px !important; -} -.mg-bottom9 { - margin-bottom: 9px !important; -} -.mg-bottom10 { - margin-bottom: 10px !important; -} -.mg-bottom11 { - margin-bottom: 11px !important; -} -.mg-bottom12 { - margin-bottom: 12px !important; -} -.mg-right13 { - margin-bottom: 13px !important; -} -.mg-bottom14 { - margin-bottom: 14px !important; -} -.mg-bottom15 { - margin-bottom: 15px !important; -} -.mg-bottom16 { - margin-bottom: 16px !important; -} -.mg-bottom17 { - margin-bottom: 17px !important; -} -.mg-bottom18 { - margin-bottom: 18px !important; -} -.mg-bottom19 { - margin-bottom: 19px !important; -} -.mg-bottom20 { - margin-bottom: 20px !important; -} -.mg-bottom21 { - margin-bottom: 21px !important; -} -.mg-bottom22 { - margin-bottom: 22px !important; -} -.mg-bottom23 { - margin-bottom: 23px !important; -} -.mg-bottom24 { - margin-bottom: 24px !important; -} -.mg-bottom25 { - margin-bottom: 25px !important; -} -.mg-bottom26 { - margin-bottom: 26px !important; -} -.mg-bottom27 { - margin-bottom: 27px !important; -} -.mg-bottom28 { - margin-bottom: 28px !important; -} -.mg-bottom29 { - margin-bottom: 29px !important; -} -.mg-bottom30 { - margin-bottom: 30px !important; -} -.mg-bottom31 { - margin-bottom: 31px !important; -} \ No newline at end of file diff --git a/src/css/padding.css b/src/css/padding.css deleted file mode 100644 index cd36b08..0000000 --- a/src/css/padding.css +++ /dev/null @@ -1,474 +0,0 @@ -/*padding-top*/ -.pd-top1 { - padding-top: 1px !important; -} -.pd-top2 { - padding-top: 2px !important; -} -.pd-top3 { - padding-top: 3px !important; -} -.pd-top4 { - padding-top: 4px !important; -} -.pd-top5 { - padding-top: 5px !important; -} -.pd-top6 { - padding-top: 6px !important; -} -.pd-top7 { - padding-top: 7px !important; -} -.pd-top8 { - padding-top: 8px !important; -} -.pd-top9 { - padding-top: 9px !important; -} -.pd-top10 { - padding-top: 10px !important; -} -.pd-top11 { - padding-top: 11px !important; -} -.pd-top12 { - padding-top: 12px !important; -} -.pd-top13 { - padding-top: 13px !important; -} -.pd-top14 { - padding-top: 14px !important; -} -.pd-top15 { - padding-top: 15px !important; -} -.pd-top16 { - padding-top: 16px !important; -} -.pd-top17 { - padding-top: 17px !important; -} -.pd-top18 { - padding-top: 18px !important; -} -.pd-top19 { - padding-top: 19px !important; -} -.pd-top20 { - padding-top: 20px !important; -} -.pd-top21 { - padding-top: 21px !important; -} -.pd-top22 { - padding-top: 22px !important; -} -.pd-top23 { - padding-top: 23px !important; -} -.pd-top24 { - padding-top: 24px !important; -} -.pd-top25 { - padding-top: 25px !important; -} -.pd-top26 { - padding-top: 26px !important; -} -.pd-top27 { - padding-top: 27px !important; -} -.pd-top28 { - padding-top: 28px !important; -} -.pd-top29 { - padding-top: 29px !important; -} -.pd-top30 { - padding-top: 30px !important; -} -.pd-top31 { - padding-top: 31px !important; -} - -/*padding-bottom*/ -.pd-bottom1 { - padding-bottom: 1px !important; -} -.pd-bottom2 { - padding-bottom: 2px !important; -} -.pd-bottom3 { - padding-bottom: 3px !important; -} -.pd-bottom4 { - padding-bottom: 4px !important; -} -.pd-bottom5 { - padding-bottom: 5px !important; -} -.pd-bottom6 { - padding-bottom: 6px !important; -} -.pd-bottom7 { - padding-bottom: 7px !important; -} -.pd-bottom8 { - padding-bottom: 8px !important; -} -.pd-bottom9 { - padding-bottom: 9px !important; -} -.pd-bottom10 { - padding-bottom: 10px !important; -} -.pd-bottom11 { - padding-bottom: 11px !important; -} -.pd-bottom12 { - padding-bottom: 12px !important; -} -.pd-bottom13 { - padding-bottom: 13px !important; -} -.pd-bottom14 { - padding-bottom: 14px !important; -} -.pd-bottom15 { - padding-bottom: 15px !important; -} -.pd-bottom16 { - padding-bottom: 16px !important; -} -.pd-bottom17 { - padding-bottom: 17px !important; -} -.pd-bottom18 { - padding-bottom: 18px !important; -} -.pd-bottom19 { - padding-bottom: 19px !important; -} -.pd-bottom20 { - padding-bottom: 20px !important; -} -.pd-bottom21 { - padding-bottom: 21px !important; -} -.pd-bottom22 { - padding-bottom: 22px !important; -} -.pd-bottom23 { - padding-bottom: 23px !important; -} -.pd-bottom24 { - padding-bottom: 24px !important; -} -.pd-bottom25 { - padding-bottom: 25px !important; -} -.pd-bottom26 { - padding-bottom: 26px !important; -} -.pd-bottom27 { - padding-bottom: 27px !important; -} -.pd-bottom28 { - padding-bottom: 28px !important; -} -.pd-bottom29 { - padding-bottom: 29px !important; -} -.pd-bottom30 { - padding-bottom: 30px !important; -} -.pd-bottom31 { - padding-bottom: 31px !important; -} - -/*padding-left*/ -.pd-left1 { - padding-left: 1px !important; -} -.pd-left2 { - padding-left: 2px !important; -} -.pd-left3 { - padding-left: 3px !important; -} -.pd-left4 { - padding-left: 4px !important; -} -.pd-left5 { - padding-left: 5px !important; -} -.pd-left6 { - padding-left: 6px !important; -} -.pd-left7 { - padding-left: 7px !important; -} -.pd-left8 { - padding-left: 8px !important; -} -.pd-left9 { - padding-left: 9px !important; -} -.pd-left10 { - padding-left: 10px !important; -} -.pd-left11 { - padding-left: 11px !important; -} -.pd-left12 { - padding-left: 12px !important; -} -.pd-left13 { - padding-left: 13px !important; -} -.pd-left14 { - padding-left: 14px !important; -} -.pd-left15 { - padding-left: 15px !important; -} -.pd-left16 { - padding-left: 16px !important; -} -.pd-left17 { - padding-left: 17px !important; -} -.pd-left18 { - padding-left: 18px !important; -} -.pd-left19 { - padding-left: 19px !important; -} -.pd-left20 { - padding-left: 20px !important; -} -.pd-left21 { - padding-left: 21px !important; -} -.pd-left22 { - padding-left: 22px !important; -} -.pd-left23 { - padding-left: 23px !important; -} -.pd-left24 { - padding-left: 24px !important; -} -.pd-left25 { - padding-left: 25px !important; -} -.pd-left26 { - padding-left: 26px !important; -} -.pd-left27 { - padding-left: 27px !important; -} -.pd-left28 { - padding-left: 28px !important; -} -.pd-left29 { - padding-left: 29px !important; -} -.pd-left30 { - padding-left: 30px !important; -} -.pd-left31 { - padding-left: 31px !important; -} - -/*padding-right*/ -.pd-right1 { - padding-right: 1px !important; -} -.pd-right2 { - padding-right: 2px !important; -} -.pd-right3 { - padding-right: 3px !important; -} -.pd-right4 { - padding-right: 4px !important; -} -.pd-right5 { - padding-right: 5px !important; -} -.pd-right6 { - padding-right: 6px !important; -} -.pd-right7 { - padding-right: 7px !important; -} -.pd-right8 { - padding-right: 8px !important; -} -.pd-right9 { - padding-right: 9px !important; -} -.pd-right10 { - padding-right: 10px !important; -} -.pd-right11 { - padding-right: 11px !important; -} -.pd-right12 { - padding-right: 12px !important; -} -.pd-right13 { - padding-right: 13px !important; -} -.pd-right14 { - padding-right: 14px !important; -} -.pd-right15 { - padding-right: 15px !important; -} -.pd-right16 { - padding-right: 16px !important; -} -.pd-right17 { - padding-right: 17px !important; -} -.pd-right18 { - padding-right: 18px !important; -} -.pd-right19 { - padding-right: 19px !important; -} -.pd-right20 { - padding-right: 20px !important; -} -.pd-right21 { - padding-right: 21px !important; -} -.pd-right22 { - padding-right: 22px !important; -} -.pd-right23 { - padding-right: 23px !important; -} -.pd-right24 { - padding-right: 24px !important; -} -.pd-right25 { - padding-right: 25px !important; -} -.pd-right26 { - padding-right: 26px !important; -} -.pd-right27 { - padding-right: 27px !important; -} -.pd-right28 { - padding-right: 28px !important; -} -.pd-right29 { - padding-right: 29px !important; -} -.pd-right30 { - padding-right: 30px !important; -} -.pd-right31 { - padding-right: 31px !important; -} - -/*padding*/ -.pd1 { - padding: 1px !important; -} -.pd2 { - padding: 2px !important; -} -.pd3 { - padding: 3px !important; -} -.pd4 { - padding: 4px !important; -} -.pd5 { - padding: 5px !important; -} -.pd6 { - padding: 6px !important; -} -.pd7 { - padding: 7px !important; -} -.pd8 { - padding: 8px !important; -} -.pd9 { - padding: 9px !important; -} -.pd10 { - padding: 10px !important; -} -.pd11 { - padding: 11px !important; -} -.pd12 { - padding: 12px !important; -} -.pd13 { - padding: 13px !important; -} -.pd14 { - padding: 14px !important; -} -.pd15 { - padding: 15px !important; -} -.pd16 { - padding: 16px !important; -} -.pd17 { - padding: 17px !important; -} -.pd18 { - padding: 18px !important; -} -.pd19 { - padding: 19px !important; -} -.pd20 { - padding: 20px !important; -} -.pd21 { - padding: 21px !important; -} -.pd-22 { - padding: 22px !important; -} -.pd-23 { - padding: 23px !important; -} -.pd-24 { - padding: 24px !important; -} -.pd-25 { - padding: 25px !important; -} -.pd-26 { - padding: 26px !important; -} -.pd-27 { - padding: 27px !important; -} -.pd-28 { - padding: 28px !important; -} -.pd-29 { - padding: 29px !important; -} -.pd-30 { - padding: 30px !important; -} -.pd-31 { - padding: 31px !important; -} \ No newline at end of file diff --git a/src/main.js b/src/main.js deleted file mode 100644 index 5eaa8c5..0000000 --- a/src/main.js +++ /dev/null @@ -1,44 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import VueResource from 'vue-resource' - -import App from './App' -import router from './router' -import commonUtils from './utils/CommonUtils' -import store from './vuex/Store' -import ElementUI from 'element-ui' - -import './css/color' -import './css/common.less' -import './css/font' -import './css/main' -import './css/margin' -import './css/padding' -import 'element-ui/lib/theme-default/index' -import 'mint-ui/lib/style' - -// App为html的首页入口 全局Vue对象配置 -commonUtils.log(router) -Vue.config.debug = true -Vue.config.errorHandler = function (err, vm) { - // handle error - commonUtils.log('--main.js--ERROR:', err) -} -Vue.use(VueResource) -Vue.use(VueRouter) -Vue.use(ElementUI) - -// 主入口main======>>>>App -const app = new Vue({ - store, - router, - beforeCreate: function () {}, - created: function () {}, - beforeMount: function () {}, - mounted: function () {}, - updated: function () {}, - activated: function () {}, - deactivated: function () {}, - beforeDestroy: function () {}, - destroyed: function () {} -}).$mount('#app') diff --git a/src/pages/index/Index.css b/src/pages/index/Index.css deleted file mode 100644 index 9ec1814..0000000 --- a/src/pages/index/Index.css +++ /dev/null @@ -1,178 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-02-07 15:47:17 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:27:47 -*/ - -.cc-index { - display: flex; - flex-direction: column; - height: 100vh; -} - - -/* -======================================================= -header -=======================================================*/ - -.cc-index .headerWrapper { - height: 80px; -} - -.cc-index .header { - height: 80px; - background-color: #20a0ff; - color: #fff; - top: 0; - left: 0; - width: 100%; - line-height: 80px; - z-index: 100; - position: relative; -} - -.cc-index .header .container { - padding: 0 30px; - margin: 0 auto; - height: 100%; - box-sizing: border-box; -} - -.cc-index .header h1 { - margin: 0; - float: left; - font-size: 32px; - font-weight: 400; -} - -.cc-index .header .welcome { - float: right; - height: 100%; - line-height: 80px; - background: transparent; - padding: 0; - margin: 0; -} - -.cc-index .welcome-icon { - height: 20px; - margin-right: 13px; -} - -.cc-index .welcome-msg { - text-decoration: none; - color: #fff; - display: block; - padding: 0 20px; -} - - -/* -======================================================= -main -=======================================================*/ - -.cc-index .main-cnt { - /*flex-grow: 1;*/ - /*margin-top: -80px; - padding: 80px 0 120px;*/ - box-sizing: border-box; - height: -moz-calc(100%-200px); - height: -webkit-calc(100% - 200px); - height: calc(100% - 200px); - overflow: auto; -} - -.cc-index .page-compoment { - /* padding: 0 30px; - */ - height: 100%; - margin: 0 auto; - width: 100%; - display: flex; -} - -.cc-index .page-compoment-p { - padding-left: 0 !important; - /*padding-bottom: 95px !important;*/ - box-sizing: border-box !important; -} - -.cc-index .cc-row { - background-color: #eef1f6; - position: relative; - box-sizing: border-box; - float: left; - min-width: 300px; -} - -.cc-index .left-row .col { - width: 100% !important; - /*float: left !important;*/ -} - -.cc-index .el-menu-icon { - width: 21px; - margin-right: 15px; - margin-top: -3px; -} - -.cc-index .cc-row-right { - flex-grow: 1; - overflow: auto; -} - - -/* -======================================================= -foot -=======================================================*/ - -.cc-index .footer { - height: 120px; - background-color: #324057; - color: #a4aebd; - width: 100%; - z-index: 1000; - /*margin-top: -120px;*/ - /*position: absolute; - bottom: 0;*/ -} - -.cc-index .footer * { - word-spacing: 0; -} - -.cc-index .foot-container { - height: 100%; - box-sizing: border-box; - padding: 0 30px; - margin: 0 auto; -} - -.cc-index .footer-main { - font-size: 0; - padding-top: 40px; - display: inline-block; -} - -.cc-index .footer-main-title { - line-height: 1; - font-size: 22px; - margin: 0; -} - -.cc-index .footer-main-subtitle { - display: inline-block; - margin: 12px 18px 0 0; - line-height: 1; - font-size: 12px; - color: #768193; -} - -.cc-index .footer-social { - float: right; - line-height: 120px; -} diff --git a/src/pages/index/Index.js b/src/pages/index/Index.js deleted file mode 100644 index e719f34..0000000 --- a/src/pages/index/Index.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 16:03:00 - */ - -'use strict' -require('./Index.css') -import api from '../../utils/Api' -import commonUtils from '../../utils/CommonUtils' - -// 状态集中管理 -import {mapState, mapGetters, mapActions} from 'vuex' -import * as mActions from '../../vuex/Actions' -import * as mGetters from '../../vuex/Getters' -import * as mMutations from '../../vuex/Mutations' - -export default { - name : 'index', - data : function () { - return {transitionName: 'slide-left'} - }, - beforeCreate : function () {}, - created : function () { - if (this.$route.name === undefined || this.$route.name === 'index') { - commonUtils.log(this) - this - .$router - .push({name: 'indexHome'}) - } - }, - beforeMount : function () {}, - mounted : function () {}, - updated : function () {}, - activated : function () {}, - deactivated : function () {}, - beforeDestroy : function () {}, - destroyed : function () {}, - computed : {}, - methods : {} -} diff --git a/src/pages/index/Index.vue b/src/pages/index/Index.vue deleted file mode 100644 index d594cb7..0000000 --- a/src/pages/index/Index.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - diff --git a/src/pages/index/auto-build-index/AutoBuildIndex.css b/src/pages/index/auto-build-index/AutoBuildIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/auto-build-index/AutoBuildIndex.js b/src/pages/index/auto-build-index/AutoBuildIndex.js deleted file mode 100644 index 094557e..0000000 --- a/src/pages/index/auto-build-index/AutoBuildIndex.js +++ /dev/null @@ -1,71 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:54:33 - */ - -'use strict' -require('./AutoBuildIndex.css') -import commonUtils from '../../../utils/CommonUtils' -import timeUtils from '../../../utils/TimeUtils' - -// vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex' -import * as mActions from '../../../vuex/Actions' -import * as mGetters from '../../../vuex/Getters' -import * as mMutations from '../../../vuex/Mutations' - -export default { - name: 'Auto-Build-Index', - data () { - return {} - }, - beforeCreate: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:beforeCreate') - }, - created: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:created') - }, - beforeMount: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:beforeMount') - }, - mounted: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:mounted') - }, - updated: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:updated') - }, - activated: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:activated') - }, - deactivated: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:deactivated') - }, - beforeDestroy: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:beforeDestroy') - }, - destroyed: function () { - commonUtils.log('--AutoBuildIndex.Vue--Lifecycle:destroyed') - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - // 校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/auto-build-index/AutoBuildIndex.vue b/src/pages/index/auto-build-index/AutoBuildIndex.vue deleted file mode 100644 index 9163cfe..0000000 --- a/src/pages/index/auto-build-index/AutoBuildIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/home-index/IndexHome.css b/src/pages/index/home-index/IndexHome.css deleted file mode 100644 index da2fd37..0000000 --- a/src/pages/index/home-index/IndexHome.css +++ /dev/null @@ -1,14 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-02-06 10:28:47 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-02-07 16:52:46 -*/ -.tempform { - position: absolute !important; - right: 20px; - width: auto !important; -} -.tempform-table { - margin-top: 13px; -} \ No newline at end of file diff --git a/src/pages/index/home-index/IndexHome.js b/src/pages/index/home-index/IndexHome.js deleted file mode 100644 index a51a105..0000000 --- a/src/pages/index/home-index/IndexHome.js +++ /dev/null @@ -1,151 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:19:03 - */ - -'use strict'; -require('./IndexHome.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-index', - data() { - return { - searchInput: '', - tempTableData: [{ - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }, { - course: '2016-05-03', - courseContent: '告诉我你爱我', - teachWay: '我就不', - professional: '告诉我你爱我', - - courseClass: '告诉我你爱我', - teachTea: '告诉我你爱我', - week: '告诉我你爱我', - listenerTime: '告诉我你爱我' - }], - multipleSelection: [] - } - }, - beforeCreate: function() { - commonUtils.log("--Index.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--Index.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--Index.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--Index.Vue--Lifecycle:mounted", this); - }, - updated: function() { - commonUtils.log("--Index.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--Index.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--Index.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--Index.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--Index.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - handleSerchClick: function(ev) { - - } - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/home-index/IndexHome.vue b/src/pages/index/home-index/IndexHome.vue deleted file mode 100644 index 023d010..0000000 --- a/src/pages/index/home-index/IndexHome.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - diff --git a/src/pages/index/permission-index/PermissionIndex.css b/src/pages/index/permission-index/PermissionIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/permission-index/PermissionIndex.js b/src/pages/index/permission-index/PermissionIndex.js deleted file mode 100644 index 418ef22..0000000 --- a/src/pages/index/permission-index/PermissionIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:00:38 - */ - -'use strict'; -require('./PermissionIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-PermissionIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:mounted"); - }, - updated: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--PermissionIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/permission-index/PermissionIndex.vue b/src/pages/index/permission-index/PermissionIndex.vue deleted file mode 100644 index e76b355..0000000 --- a/src/pages/index/permission-index/PermissionIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/progress-index/ProgressIndex.css b/src/pages/index/progress-index/ProgressIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/progress-index/ProgressIndex.js b/src/pages/index/progress-index/ProgressIndex.js deleted file mode 100644 index 4c5fee1..0000000 --- a/src/pages/index/progress-index/ProgressIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:00:51 - */ - -'use strict'; -require('./ProgressIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-ProgressIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:mounted", this); - }, - updated: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--ProgressIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/progress-index/ProgressIndex.vue b/src/pages/index/progress-index/ProgressIndex.vue deleted file mode 100644 index 7101823..0000000 --- a/src/pages/index/progress-index/ProgressIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/refer-course-index/ReferCourseIndex.css b/src/pages/index/refer-course-index/ReferCourseIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/refer-course-index/ReferCourseIndex.js b/src/pages/index/refer-course-index/ReferCourseIndex.js deleted file mode 100644 index bb8f999..0000000 --- a/src/pages/index/refer-course-index/ReferCourseIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:10:55 - */ - -'use strict'; -require('./ReferCourseIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-ReferCourseIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:mounted"); - }, - updated: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--ReferCourseIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/refer-course-index/ReferCourseIndex.vue b/src/pages/index/refer-course-index/ReferCourseIndex.vue deleted file mode 100644 index 3b7a475..0000000 --- a/src/pages/index/refer-course-index/ReferCourseIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/setting-index/SettingIndex.css b/src/pages/index/setting-index/SettingIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/setting-index/SettingIndex.js b/src/pages/index/setting-index/SettingIndex.js deleted file mode 100644 index 7ed302d..0000000 --- a/src/pages/index/setting-index/SettingIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:01:12 - */ - -'use strict'; -require('./SettingIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-SettingIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:mounted"); - }, - updated: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--SettingIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/setting-index/SettingIndex.vue b/src/pages/index/setting-index/SettingIndex.vue deleted file mode 100644 index 9da1cad..0000000 --- a/src/pages/index/setting-index/SettingIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/supervisor-index/SupervisorIndex.css b/src/pages/index/supervisor-index/SupervisorIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/supervisor-index/SupervisorIndex.js b/src/pages/index/supervisor-index/SupervisorIndex.js deleted file mode 100644 index f246120..0000000 --- a/src/pages/index/supervisor-index/SupervisorIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:01:24 - */ - -'use strict'; -require('./SupervisorIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-SupervisorIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:mounted"); - }, - updated: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--SupervisorIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/supervisor-index/SupervisorIndex.vue b/src/pages/index/supervisor-index/SupervisorIndex.vue deleted file mode 100644 index c1af527..0000000 --- a/src/pages/index/supervisor-index/SupervisorIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/index/teacher-info-index/TeacherInfoIndex.css b/src/pages/index/teacher-info-index/TeacherInfoIndex.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/index/teacher-info-index/TeacherInfoIndex.js b/src/pages/index/teacher-info-index/TeacherInfoIndex.js deleted file mode 100644 index f5cf784..0000000 --- a/src/pages/index/teacher-info-index/TeacherInfoIndex.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-03-30 15:01:34 - */ - -'use strict'; -require('./TeacherInfoIndex.css'); -import commonUtils from '../../../utils/CommonUtils'; -import timeUtils from '../../../utils/TimeUtils'; - - - -//vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex'; -import * as mActions from '../../../vuex/Actions'; -import * as mGetters from '../../../vuex/Getters'; -import * as mMutations from '../../../vuex/Mutations'; - - -export default { - name: 'cc-TeacherInfoIndex', - data() { - return {} - }, - beforeCreate: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:beforeCreate"); - }, - created: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:created"); - }, - beforeMount: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:beforeMount"); - }, - mounted: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:mounted", this); - }, - updated: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:updated"); - - }, - activated: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:activated"); - }, - deactivated: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:deactivated"); - }, - beforeDestroy: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:beforeDestroy"); - }, - destroyed: function() { - commonUtils.log("--TeacherInfoIndex.Vue--Lifecycle:destroyed"); - }, - components: { - - }, - computed: { - - }, - methods: { - - }, - //校验数据类型 - props: { - // mData: { - // type: Array - // }, - } -} diff --git a/src/pages/index/teacher-info-index/TeacherInfoIndex.vue b/src/pages/index/teacher-info-index/TeacherInfoIndex.vue deleted file mode 100644 index f2eb8c9..0000000 --- a/src/pages/index/teacher-info-index/TeacherInfoIndex.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/src/pages/login/Login.js b/src/pages/login/Login.js deleted file mode 100644 index 43d0756..0000000 --- a/src/pages/login/Login.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-02-02 16:22:21 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-04-02 20:07:32 - */ - -'use strict' -import commonUtils from '../../utils/CommonUtils' -import timeUtils from '../../utils/TimeUtils' -import Vue from 'vue' - -// vuex -import { - mapState, - mapGetters, - mapActions, - mapMutations -} from 'vuex' -import * as mActions from '../../vuex/Actions' -import * as mGetters from '../../vuex/Getters' -import * as mMutations from '../../vuex/Mutations' -import { - Field -} from 'mint-ui' -Vue.component(Field.name, Field) -export default { - currentPageName: 'login', - data() { - return {} - }, - components: {}, - computed: {}, - methods: {} -} diff --git a/src/pages/login/Login.less b/src/pages/login/Login.less deleted file mode 100644 index 27a4ff1..0000000 --- a/src/pages/login/Login.less +++ /dev/null @@ -1,60 +0,0 @@ -/* - * @Author: Rhymedys/Rhymedys@gmail.com - * @Date: 2017-03-31 09:14:51 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-04-02 19:56:06 - */ - -.login-box { - margin: 0 auto; - width: 950px; - .login-header { - // font-size: 25px; - } - .login-middle { - .login-center-left { - width: 445px; - margin: 30px 30px 20px; - } - .login-control { - float: left; - width: 340px; - margin: 30px 0 20px 30px; - min-height: 420px; - background-color: #fafcfe; - border: 1px solid #dfe8f2; - h3 { - font-weight: 400; - margin: 0; - } - .login-accout-form { - .mint-field { - background-image: none; - margin: 12px 0 10px; - .mint-cell-wrapper { - box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075); - outline: 0; - background-image: none; - .mint-cell-value { - align-items: center; - .mint-field-core { - margin-left: 32px; - } - .mint-field-other { - top: auto; - left: auto; - bottom: auto; - right: auto; - position: absolute; - } - } - } - } - } - } - } - .login-bottom { - padding: 40px 0 30px; - line-height: 2em; - } -} diff --git a/src/pages/login/Login.vue b/src/pages/login/Login.vue deleted file mode 100644 index 27706d4..0000000 --- a/src/pages/login/Login.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/router.js b/src/router.js deleted file mode 100644 index 0803887..0000000 --- a/src/router.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Created by rhymedys on 2017/1/30 - *https://router.vuejs.org/zh-cn/advanced/navigation-guards.html - */ - -'use strict' - -import VueRouter from 'vue-router' -import Vue from 'vue' -import commonUtils from './utils/CommonUtils' -import api from './utils/Api' - -Vue.use(VueRouter) - -// 懒加载 -const App = resolve => require(['./App.vue'], resolve) -const Index = resolve => require(['./pages/index/Index.vue'], resolve) -const IndexHome = resolve => require(['./pages/index/home-index/IndexHome.vue'], resolve) -const ProgressIndex = resolve => require(['./pages/index/progress-index/ProgressIndex.vue'], resolve) -const AutoBuildIndex = resolve => require(['./pages/index/auto-build-index/AutoBuildIndex.vue'], resolve) -const PermissionIndex = resolve => require(['./pages/index/permission-index/PermissionIndex.vue'], resolve) -const ReferCourseIndex = resolve => require(['./pages/index/refer-course-index/ReferCourseIndex.vue'], resolve) -const SettingIndex = resolve => require(['./pages/index/setting-index/SettingIndex.vue'], resolve) -const SupervisorIndex = resolve => require(['./pages/index/supervisor-index/SupervisorIndex.vue'], resolve) -const TeacherInfoIndex = resolve => require(['./pages/index/teacher-info-index/TeacherInfoIndex.vue'], resolve) - -const Login = resolve => require(['./pages/login/Login.vue'], resolve) - -const routes = [ - { - path: '/sas', - component: App, - children: [ - { - path: 'index', - name: 'index', - component: Index, - children: [ - { - path: 'indeHome', - name: 'indexHome', - component: IndexHome - }, { - path: 'progressPage', - name: 'progressPage', - component: ProgressIndex - }, { - path: 'autobuildPage', - name: 'autobuildPage', - component: AutoBuildIndex - }, { - path: 'permissionPage', - name: 'permissionPage', - component: PermissionIndex - }, { - path: 'referCoursePage', - name: 'referCoursePage', - component: ReferCourseIndex - }, { - path: 'settingPage', - name: 'settingPage', - component: SettingIndex - }, { - path: 'supervisorPage', - name: 'supervisorPage', - component: SupervisorIndex - }, { - path: 'teacherInfoPage', - name: 'teacherInfoPage', - component: TeacherInfoIndex - } - ] - }, { - path: 'login', - name: 'login', - component: Login - } - ] - } -] - -// 路由 -const router = new VueRouter({routes: routes, linkActiveClass: 'active', mode: 'history'}) - -// 全局钩子 -router.beforeEach(function (to, from, next) { - commonUtils.log('--main.js--router beforeEach from:', from, ' to:', to, next) - if (to.name) { - next() - } else { - next({name: 'index'}) - } -}) - -router.afterEach(function () { - commonUtils.log('--main.js--router:afterEach') -}) - -export default router diff --git a/src/utils/Api.js b/src/utils/Api.js deleted file mode 100644 index 21f7153..0000000 --- a/src/utils/Api.js +++ /dev/null @@ -1,190 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-01-31 17:40:52 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-02-04 22:56:31 - */ - -'use strict'; -import VueResource from 'vue-resource' -import commonUtils from '../utils/CommonUtils' - -import Vue from 'vue' -Vue.use(VueResource); - - -// 配置 - -var isDebug = false; - -const gobalUrl = 'https://mp.mhealth100.com/ip-healthmanager-mobile-web/'; - -const testUrl = 'http://10.0.1.25:9800/ip-healthmanager-mobile-web/'; - - -const localUrl = 'http://localhost:8081/HxwDemo'; - - - -const debugUrl = { - - famous5min: testUrl + "huangxiaowu/famousDoctorFMain", - resourceDetail: testUrl + "huangxiaowu/resourceDetail", - preOrderPay: testUrl + "mydoctor/preOrderPay", - signOrderStatus: testUrl + "mydoctor/signOrderStatus" -} - -const realUrl = { - famous5min: gobalUrl + "huangxiaowu/famousDoctorFMain", - resourceDetail: gobalUrl + "huangxiaowu/resourceDetail", - preOrderPay: gobalUrl + "mydoctor/preOrderPay", - signOrderStatus: gobalUrl + "mydoctor/signOrderStatus" -} - - - -var newUrl = {}; - -function getUrl(e) { - var result; - newUrl = isDebug ? debugUrl : realUrl; - switch (e) { - case localTest: - result = localUrl; - break; - case famous5min: - result = newUrl.famous5min; - break; - case resourceDetail: - result = newUrl.resourceDetail; - break; - case preOrderPay: - result = newUrl.preOrderPay; - break; - case signOrderStatus: - result = newUrl.signOrderStatus; - break; - default: - break; - } - - return result; -}; - - -function famous5min(obj) { - doRequest(getUrl(famous5min), obj); -} - - -function login(obj) { - doRequest(getUrl(login), obj); -} - -function resourceDetail(obj) { - doRequest(getUrl(resourceDetail), obj); -} - - -function preOrderPay(obj) { - doRequest(getUrl(preOrderPay), obj); -} - -function signOrderStatus(obj) { - doRequest(getUrl(signOrderStatus), obj); -} - - -function localTest(obj) { - doRequest(getUrl(localTest), obj); -} - - - -// https://github.com/pagekit/vue-resource/blob/develop/docs/http.md#options -//重新包装请求obj credientials跨域问题 -function packObj(mUrl, obj) { - - if (!obj) { - obj = {}; - commonUtils.log("--api.js---网络请求obj 为空空空空"); - } - - return { - options: { - url: mUrl, - method: obj.method ? obj.method : 'POST', - body: obj.body ? obj.body : {}, - params: obj.params ? obj.params : {}, - headers: obj.headers ? obj.headers : {}, - timeout: obj.timeout ? obj.timeout : 1500, - before: obj.before ? obj.before : null, - progress: obj.progress ? obj.progress : null, - credientials: obj.credientials ? obj.credientials : true, - emulateHTTP: obj.emulateHTTP ? obj.emulateHTTP : false, - emulateJSON: obj.emulateJSON ? obj.emulateJSON : true - }, - body: obj.body ? obj.body : {}, - success: obj.success ? obj.success : null, - error: obj.error ? obj.error : null - } - -} - - -// https://github.com/pagekit/vue-resource/blob/develop/docs/http.md#options -//post含data json请求网络 -function doRequest(mUrl, obj) { - - var requertParams = packObj(mUrl, obj); - commonUtils.log("--api.js---requertParams", requertParams, mUrl); - - - - Vue.http.interceptors.push(function(request, next) { - - // modify method - commonUtils.log("--api.js--- requst网络配置:", request); - - // continue to next interceptor - next(); - }); - - - if (requertParams.options.method == 'POST') { - Vue.http.post(requertParams.options.url, requertParams.body, requertParams.options).then(function(res) { - commonUtils.log("--api.js---post success response:", res.body); - if (requertParams.success) { - requertParams.success(res); - } - }, function(res) { - commonUtils.log("--api.js---post error response:", res.body); - if (requertParams.error) { - requertParams.error(res); - } - }); - } else { - Vue.http.get(requertParams.options.mUrl, requertParams.option).then(function(res) { - commonUtils.log("--api.js---get success response:", res.body); - if (obrequertParamsj.success) { - requertParams.success(res); - } - }, function(res) { - commonUtils.log("--api.js---get error response:", res.body); - if (requertParams.error) { - requertParams.error(res); - } - }); - } - -} - - - -module.exports = { - getResourceDetail: resourceDetail, - getFamous5min: famous5min, - preOrderPay: preOrderPay, - signOrderStatus: signOrderStatus, - localTest: localTest -} \ No newline at end of file diff --git a/src/utils/CommonUtils.js b/src/utils/CommonUtils.js deleted file mode 100644 index 0dbbacb..0000000 --- a/src/utils/CommonUtils.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-01-31 21:10:20 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-02-01 15:46:12 - */ - -'use strict'; -var isDebugLog = true; - -export default { - log: function(msg1, msg2, msg3, msg4, msg5, msg6) { - if (isDebugLog) { - if (msg6) { - console.log(msg1, msg2, msg3, msg4, msg5, msg6); - } else if (msg5) { - console.log(msg1, msg2, msg3, msg4, msg5); - } else if (msg4) { - console.log(msg1, msg2, msg3, msg4); - - } else if (msg3) { - console.log(msg1, msg2, msg3); - - } else if (msg2) { - console.log(msg1, msg2); - - } else { - console.log(msg1); - } - } - } -} \ No newline at end of file diff --git a/src/utils/TimeUtils.js b/src/utils/TimeUtils.js deleted file mode 100644 index 9b48931..0000000 --- a/src/utils/TimeUtils.js +++ /dev/null @@ -1,108 +0,0 @@ -function formatTime(date) { - var year = date.getFullYear() - var month = date.getMonth() + 1 - var day = date.getDate() - - var hour = date.getHours() - var minute = date.getMinutes() - var second = date.getSeconds() - - - return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':') -} - -function formatNumber(n) { - n = n.toString() - return n[1] ? n : '0' + n -} - -function formatSeconds(value) { - var theTime = parseInt(value); - var theTime1 = 0; - var theTime2 = 0; - - if(theTime > 60) { - theTime1 = parseInt(theTime/60); - theTime = parseInt(theTime%60); - - if(theTime1 > 60) { - theTime2 = parseInt(theTime1/60); - theTime1 = parseInt(theTime1%60); - } - } - var result="" ; - if (theTime>0) { - result = ""+parseInt(theTime)+"秒"; - } - - if(theTime1 > 0) { - result = ""+parseInt(theTime1)+"分钟"+result; - } - if(theTime2 > 0) { - result = ""+parseInt(theTime2)+"小时"+result; - } - return result; -} - - - - -function getDateDiff(dateTimeStamp){ - var minute = 1000 * 60; - var hour = minute * 60; - var day = hour * 24; - var halfamonth = day * 15; - var month = day * 30; - var now = new Date().getTime(); - var diffValue = now - getDateTimeStamp(dateTimeStamp); - if(diffValue < 0){ - //若日期不符则弹出窗口告之 - //alert("结束日期不能小于开始日期!"); - } - var monthC =diffValue/month; - var weekC =diffValue/(7*day); - var dayC =diffValue/day; - var hourC =diffValue/hour; - var minC =diffValue/minute; - if(monthC>=1){ - result= parseInt(monthC) + "个月前"; - } - else if(weekC>=1){ - result= parseInt(weekC) + "周前"; - } - else if(dayC>=1){ - result= parseInt(dayC) +"天前"; - } - else if(hourC>=1){ - result= parseInt(hourC) +"个小时前"; - } - else if(minC>=1){ - result= parseInt(minC) +"分钟前"; - }else{ - result="刚刚"; - } - - return result; - } - - - function getDateTimeStamp(dateStr){ - return Date.parse(dateStr.replace(/-/gi,"/")); -} - - -function formatduration(duration) { - var duration = new Date(duration); - var mint = duration.getMinutes(); - var sec = duration.getSeconds(); - return formatNumber(mint) + ":" + formatNumber(sec); -} - - - -module.exports = { - formatTime: formatTime, - formatSeconds:formatSeconds, - getDateDiff:getDateDiff, - formatduration:formatduration -} diff --git a/src/vuex/Actions.js b/src/vuex/Actions.js deleted file mode 100644 index 7792181..0000000 --- a/src/vuex/Actions.js +++ /dev/null @@ -1,13 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-01-31 16:59:15 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-02-07 15:29:05 -*/ - -'use strict'; - - -//system -export const SAVE_WINDOWS_HEIGHT = 'SAVE_WINDOWS_HEIGHT'; -export const SAVE_WINDOWS_WIDTH = 'SAVE_WINDOWS_WIDTH'; \ No newline at end of file diff --git a/src/vuex/Getters.js b/src/vuex/Getters.js deleted file mode 100644 index a5547b1..0000000 --- a/src/vuex/Getters.js +++ /dev/null @@ -1,13 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-02-01 16:04:00 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-02-07 15:27:41 -*/ - -'use strict'; - - -export const GET_WINDOWS_HEIGHT = 'GET_WINDOWS_HEIGHT'; -export const GET_WINDOWS_WIDTH = 'GET_WINDOWS_WIDTH'; - diff --git a/src/vuex/Mutations.js b/src/vuex/Mutations.js deleted file mode 100644 index 61f7404..0000000 --- a/src/vuex/Mutations.js +++ /dev/null @@ -1,13 +0,0 @@ -/* -* @Author: Rhymedys -* @Date: 2017-01-31 13:48:48 -* @Last Modified by: Rhymedys -* @Last Modified time: 2017-02-07 15:47:41 -*/ - -'use strict'; - - -//system -export const SAVE_WINDOWS_HEIGHT = 'SAVE_WINDOWS_HEIGHT'; -export const SAVE_WINDOWS_WIDTH = 'SAVE_WINDOWS_WIDTH'; \ No newline at end of file diff --git a/src/vuex/Store.js b/src/vuex/Store.js deleted file mode 100644 index e8eb096..0000000 --- a/src/vuex/Store.js +++ /dev/null @@ -1,28 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-01-31 13:43:42 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-02-05 13:41:18 - */ - -'use strict'; - - -import Vue from 'vue'; -import Vuex from 'vuex'; -import Common from './modules/Common.js'; - - - -Vue.use(Vuex); - - -const store = new Vuex.Store({ - modules: { - Common - }, - strict: process.env.NODE_ENV !== 'production', //是否开启严格模式 -}); - - -export default store diff --git a/src/vuex/modules/Common.js b/src/vuex/modules/Common.js deleted file mode 100644 index 1ca9a71..0000000 --- a/src/vuex/modules/Common.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * @Author: Rhymedys - * @Date: 2017-01-31 14:10:32 - * @Last Modified by: Rhymedys - * @Last Modified time: 2017-02-07 15:47:45 - - *https://vuex.vuejs.org/zh-cn/intro.html - */ - -'use strict'; - -import * as mMutations from '../Mutations'; -import * as mGetters from '../Getters'; -import * as mActions from '../Actions'; -import commonUtils from '../../utils/CommonUtils' - -import api from '../../utils/Api' - - - -const state = { - -}; - -const getters = { - // [mGetters.GET_ALL_PLAYLIST]: function(state) { - // commonUtils.log("--playlist module getters--", state.playlist); - // return state.playlist; - // } - -}; - - - -const actions = { - // [mActions.SET_AUDIO_DETAILS]({ - // commit, - // state - // }, res) { - // commit(mMutations.SET_AUDIO_DETAILS, res) - // } - -} - - -const mutations = { - // - // [mMutations.SET_AUDIO_DURATION](state, res) { - // state.audioDuration = res.audioDuration; - // } -}; - - -export default { - state, - getters, - actions, - mutations -} diff --git a/test/e2e/custom-assertions/elementCount.js b/test/e2e/custom-assertions/elementCount.js deleted file mode 100644 index c0d5fe0..0000000 --- a/test/e2e/custom-assertions/elementCount.js +++ /dev/null @@ -1,26 +0,0 @@ -// A custom Nightwatch assertion. -// the name of the method is the filename. -// can be used in tests like this: -// -// browser.assert.elementCount(selector, count) -// -// for how to write custom assertions see -// http://nightwatchjs.org/guide#writing-custom-assertions -exports.assertion = function (selector, count) { - this.message = 'Testing if element <' + selector + '> has count: ' + count - this.expected = count - this.pass = function (val) { - return val === this.expected - } - this.value = function (res) { - return res.value - } - this.command = function (cb) { - var self = this - return this.api.execute(function (selector) { - return document.querySelectorAll(selector).length - }, [selector], function (res) { - cb.call(self, res) - }) - } -} diff --git a/test/e2e/nightwatch.conf.js b/test/e2e/nightwatch.conf.js deleted file mode 100644 index 8fb4d9d..0000000 --- a/test/e2e/nightwatch.conf.js +++ /dev/null @@ -1,46 +0,0 @@ -require('babel-register') -var config = require('../../config') - -// http://nightwatchjs.org/guide#settings-file -module.exports = { - src_folders: ['test/e2e/specs'], - output_folder: 'test/e2e/reports', - custom_assertions_path: ['test/e2e/custom-assertions'], - - selenium: { - start_process: true, - server_path: 'node_modules/selenium-server/lib/runner/selenium-server-standalone-2.53.1.jar', - host: '127.0.0.1', - port: 4444, - cli_args: { - 'webdriver.chrome.driver': require('chromedriver').path - } - }, - - test_settings: { - default: { - selenium_port: 4444, - selenium_host: 'localhost', - silent: true, - globals: { - devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port) - } - }, - - chrome: { - desiredCapabilities: { - browserName: 'chrome', - javascriptEnabled: true, - acceptSslCerts: true - } - }, - - firefox: { - desiredCapabilities: { - browserName: 'firefox', - javascriptEnabled: true, - acceptSslCerts: true - } - } - } -} diff --git a/test/e2e/runner.js b/test/e2e/runner.js deleted file mode 100644 index 2a5c6ef..0000000 --- a/test/e2e/runner.js +++ /dev/null @@ -1,31 +0,0 @@ -// 1. start the dev server using production config -process.env.NODE_ENV = 'testing' -var server = require('../../build/dev-server.js') - -// 2. run the nightwatch test suite against it -// to run in additional browsers: -// 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings" -// 2. add it to the --env flag below -// or override the environment flag, for example: `npm run e2e -- --env chrome,firefox` -// For more information on Nightwatch's config file, see -// http://nightwatchjs.org/guide#settings-file -var opts = process.argv.slice(2) -if (opts.indexOf('--config') === -1) { - opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js']) -} -if (opts.indexOf('--env') === -1) { - opts = opts.concat(['--env', 'chrome']) -} - -var spawn = require('cross-spawn') -var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' }) - -runner.on('exit', function (code) { - server.close() - process.exit(code) -}) - -runner.on('error', function (err) { - server.close() - throw err -}) diff --git a/test/e2e/specs/test.js b/test/e2e/specs/test.js deleted file mode 100644 index a7b1bd9..0000000 --- a/test/e2e/specs/test.js +++ /dev/null @@ -1,19 +0,0 @@ -// For authoring Nightwatch tests, see -// http://nightwatchjs.org/guide#usage - -module.exports = { - 'default e2e tests': function (browser) { - // automatically uses dev Server port from /config.index.js - // default: http://localhost:8080 - // see nightwatch.conf.js - const devServer = browser.globals.devServerURL - - browser - .url(devServer) - .waitForElementVisible('#app', 5000) - .assert.elementPresent('.hello') - .assert.containsText('h1', 'Welcome to Your Vue.js App') - .assert.elementCount('img', 1) - .end() - } -} diff --git a/test/unit/.eslintrc b/test/unit/.eslintrc deleted file mode 100644 index 959a4f4..0000000 --- a/test/unit/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "env": { - "mocha": true - }, - "globals": { - "expect": true, - "sinon": true - } -} diff --git a/test/unit/index.js b/test/unit/index.js deleted file mode 100644 index 9db1ffd..0000000 --- a/test/unit/index.js +++ /dev/null @@ -1,13 +0,0 @@ -// Polyfill fn.bind() for PhantomJS -/* eslint-disable no-extend-native */ -Function.prototype.bind = require('function-bind') - -// require all test files (files that ends with .spec.js) -const testsContext = require.context('./specs', true, /\.spec$/) -testsContext.keys().forEach(testsContext) - -// require all src files except main.js for coverage. -// you can also change this to match only the subset of files that -// you want coverage for. -const srcContext = require.context('src', true, /^\.\/(?!main(\.js)?$)/) -srcContext.keys().forEach(srcContext) diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js deleted file mode 100644 index 2b8d6b6..0000000 --- a/test/unit/karma.conf.js +++ /dev/null @@ -1,67 +0,0 @@ -// This is a karma config file. For more details see -// http://karma-runner.github.io/0.13/config/configuration-file.html -// we are also using it with karma-webpack -// https://github.com/webpack/karma-webpack - -var path = require('path') -var merge = require('webpack-merge') -var baseConfig = require('../../build/webpack.base.conf') -var utils = require('../../build/utils') -var webpack = require('webpack') -var projectRoot = path.resolve(__dirname, '../../') - -var webpackConfig = merge(baseConfig, { - // use inline sourcemap for karma-sourcemap-loader - module: { - loaders: utils.styleLoaders() - }, - devtool: '#inline-source-map', - vue: { - loaders: { - js: 'babel-loader' - } - }, - plugins: [ - new webpack.DefinePlugin({ - 'process.env': require('../../config/test.env') - }) - ] -}) - -// no need for app entry during tests -delete webpackConfig.entry - -// Use babel for test files too -webpackConfig.module.loaders.some(function (loader, i) { - if (/^babel(-loader)?$/.test(loader.loader)) { - loader.include.push(path.resolve(projectRoot, 'test/unit')) - return true - } -}) - -module.exports = function (config) { - config.set({ - // to run in additional browsers: - // 1. install corresponding karma launcher - // http://karma-runner.github.io/0.13/config/browsers.html - // 2. add it to the `browsers` array below. - browsers: ['PhantomJS'], - frameworks: ['mocha', 'sinon-chai'], - reporters: ['spec', 'coverage'], - files: ['./index.js'], - preprocessors: { - './index.js': ['webpack', 'sourcemap'] - }, - webpack: webpackConfig, - webpackMiddleware: { - noInfo: true - }, - coverageReporter: { - dir: './coverage', - reporters: [ - { type: 'lcov', subdir: '.' }, - { type: 'text-summary' } - ] - } - }) -} diff --git a/test/unit/specs/Hello.spec.js b/test/unit/specs/Hello.spec.js deleted file mode 100644 index a6965db..0000000 --- a/test/unit/specs/Hello.spec.js +++ /dev/null @@ -1,13 +0,0 @@ -import Vue from 'vue' -import Hello from 'src/components/Hello' - -describe('Hello.vue', () => { - it('should render correct contents', () => { - const vm = new Vue({ - el: document.createElement('div'), - render: (h) => h(Hello) - }) - expect(vm.$el.querySelector('.hello h1').textContent) - .to.equal('Welcome to Your Vue.js App') - }) -}) diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 434061f..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,85 +0,0 @@ - -var path = require('path') -var webpack = require('webpack') - -module.exports = { - entry: './src/main.js', - output: { - path: path.resolve(__dirname, './dist'), - publicPath: '/dist/', - filename: 'build.js' - }, - module: { - rules: [ - { - test: /\.vue$/, - loader: 'vue', - options: { - // vue-loader options go here - } - }, - { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url', - query: { - limit: 10000 - - } - }, - - { - test: /\.scss$/, - exclude: /node_modules/, - loaders: ["style", "css", "sass"] - }, - { - test: /\.js$/, - loader: 'babel', - exclude: /node_modules/ - }, - { - test: /\.(png|jpg|gif|svg)$/, - loader: 'file', - options: { - name: '[name].[ext]?[hash]' - } - } - ] - }, - - resolve: { - extensions: ['.js', '.vue','.scss'], - alias: { - 'vue$': 'vue/dist/vue.js', - 'vuex$': 'vuex/dist/vuex.js', - 'vueRouter$': 'vue-router/dist/vue-router.js', - 'vueResource$': 'vue-resource/dist/vue-resource.js', - } - - }, - devServer: { - historyApiFallback: true, - noInfo: true - }, - devtool: '#eval-source-map' -} - -if (process.env.NODE_ENV === 'production') { - module.exports.devtool = '#source-map' - // http://vue-loader.vuejs.org/en/workflow/production.html - module.exports.plugins = (module.exports.plugins || []).concat([ - new webpack.DefinePlugin({ - 'process.env': { - NODE_ENV: '"production"' - } - }), - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false - } - }), - new webpack.LoaderOptionsPlugin({ - minimize: true - }) - ]) -}