lsc 3 anos atrás
commit
8f675be9f5
100 arquivos alterados com 718 adições e 0 exclusões
  1. 12 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 13 0
      .gitignore
  4. 10 0
      .postcssrc.js
  5. 21 0
      README.md
  6. 41 0
      build/build.js
  7. 54 0
      build/check-versions.js
  8. BIN
      build/logo.png
  9. 102 0
      build/utils.js
  10. 22 0
      build/vue-loader.conf.js
  11. 94 0
      build/webpack.base.conf.js
  12. 95 0
      build/webpack.dev.conf.js
  13. 145 0
      build/webpack.prod.conf.js
  14. 7 0
      config/dev.env.js
  15. 69 0
      config/index.js
  16. 4 0
      config/prod.env.js
  17. 18 0
      dist/index.html
  18. 0 0
      dist/static/css/app.d7d56a4830e3fa7508897a015d8309ef.css
  19. 0 0
      dist/static/css/app.d7d56a4830e3fa7508897a015d8309ef.css.map
  20. BIN
      dist/static/fonts/element-icons.535877f.woff
  21. BIN
      dist/static/fonts/element-icons.732389d.ttf
  22. BIN
      dist/static/img/1.395a59f.png
  23. BIN
      dist/static/img/2.6d28665.png
  24. BIN
      dist/static/img/3.ff3f5fb.png
  25. BIN
      dist/static/img/4.c3058a4.png
  26. BIN
      dist/static/img/5.14a7437.png
  27. BIN
      dist/static/img/6.69e8567.png
  28. BIN
      dist/static/img/a.5872867.png
  29. BIN
      dist/static/img/academician.ce15e0b.png
  30. BIN
      dist/static/img/b.bd5e4f1.png
  31. BIN
      dist/static/img/bg.1d58c52.png
  32. BIN
      dist/static/img/bg.d8e92a1.jpg
  33. BIN
      dist/static/img/c.85c0aa6.png
  34. BIN
      dist/static/img/c_1.5e78681.png
  35. BIN
      dist/static/img/c_5.d6ebff7.png
  36. BIN
      dist/static/img/camera2.873c7a2.png
  37. BIN
      dist/static/img/champion.fca9b90.png
  38. BIN
      dist/static/img/class.21b9395.png
  39. BIN
      dist/static/img/curriculumMessage.18be3b5.png
  40. BIN
      dist/static/img/denglutouxiang.867ea5b.png
  41. BIN
      dist/static/img/dui-active.8c8552b.png
  42. BIN
      dist/static/img/faxian.214dd5a.png
  43. BIN
      dist/static/img/faxian1.bac3e3d.png
  44. BIN
      dist/static/img/g_1.4e80bf8.png
  45. BIN
      dist/static/img/g_5.c190a43.png
  46. BIN
      dist/static/img/house.d4258fd.png
  47. BIN
      dist/static/img/labourMessage.01ebbfe.png
  48. BIN
      dist/static/img/liulan.e5d11f9.png
  49. BIN
      dist/static/img/login_background.66cdb42.png
  50. BIN
      dist/static/img/logo.84ffe89.png
  51. BIN
      dist/static/img/no1.b34de09.png
  52. BIN
      dist/static/img/no2.8e03a5f.png
  53. BIN
      dist/static/img/none.2390ed8.png
  54. BIN
      dist/static/img/panel.f7ff1da.png
  55. BIN
      dist/static/img/portal.b3cf7fa.png
  56. BIN
      dist/static/img/portal4.97a9c3d.png
  57. BIN
      dist/static/img/ranking.b59214c.png
  58. BIN
      dist/static/img/s1.c6eb6e4.png
  59. BIN
      dist/static/img/s_1.683035a.png
  60. BIN
      dist/static/img/s_5.8976cbf.png
  61. BIN
      dist/static/img/shiping.630746b.png
  62. BIN
      dist/static/img/shoujihao.d48c7f1.png
  63. BIN
      dist/static/img/shouye.9261394.png
  64. BIN
      dist/static/img/shouye1.6add7dc.png
  65. BIN
      dist/static/img/shouye2.8b84df5.png
  66. BIN
      dist/static/img/star.c2c4117.png
  67. BIN
      dist/static/img/studentMessage.405de17.png
  68. BIN
      dist/static/img/teacher.85c6a9b.png
  69. BIN
      dist/static/img/teacher.eb5ff42.png
  70. BIN
      dist/static/img/tu21.41cd8af.png
  71. BIN
      dist/static/img/tu26.2bdc4cc.png
  72. BIN
      dist/static/img/tu32.c5d1d32.png
  73. BIN
      dist/static/img/tu33.036b842.png
  74. BIN
      dist/static/img/tu34.1dd94d9.png
  75. BIN
      dist/static/img/tu8.93d8b51.png
  76. BIN
      dist/static/img/wode.481be45.png
  77. BIN
      dist/static/img/wode.a8e2b88.png
  78. BIN
      dist/static/img/wode2.ded7f6c.png
  79. BIN
      dist/static/img/wodzuoping.6d827fd.png
  80. BIN
      dist/static/img/xuexizhongxin.b536e21.png
  81. BIN
      dist/static/img/zhuangtailan.6cd8fec.png
  82. 0 0
      dist/static/js/0.bbe9eb85798649e8d457.js
  83. 0 0
      dist/static/js/0.bbe9eb85798649e8d457.js.map
  84. 0 0
      dist/static/js/1.1e0e47cd6f834874ff68.js
  85. 0 0
      dist/static/js/1.1e0e47cd6f834874ff68.js.map
  86. 0 0
      dist/static/js/10.5811a8b553c126db7dac.js
  87. 0 0
      dist/static/js/10.5811a8b553c126db7dac.js.map
  88. 0 0
      dist/static/js/11.c0e911b0a238722d85a1.js
  89. 0 0
      dist/static/js/11.c0e911b0a238722d85a1.js.map
  90. 2 0
      dist/static/js/12.07f3a1e3c9b000bad043.js
  91. 0 0
      dist/static/js/12.07f3a1e3c9b000bad043.js.map
  92. 0 0
      dist/static/js/13.7baa35270435ffe5ff64.js
  93. 0 0
      dist/static/js/13.7baa35270435ffe5ff64.js.map
  94. 0 0
      dist/static/js/14.66a85089bc1438615250.js
  95. 0 0
      dist/static/js/14.66a85089bc1438615250.js.map
  96. 0 0
      dist/static/js/15.2accd6b952531cd8e7e1.js
  97. 0 0
      dist/static/js/15.2accd6b952531cd8e7e1.js.map
  98. 0 0
      dist/static/js/16.10859a8e83ed4c04e9df.js
  99. 0 0
      dist/static/js/16.10859a8e83ed4c04e9df.js.map
  100. 0 0
      dist/static/js/17.ecfdbf068751f623630e.js

+ 12 - 0
.babelrc

@@ -0,0 +1,12 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false,
+      "targets": {
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
+      }
+    }],
+    "stage-2"
+  ],
+  "plugins": ["transform-vue-jsx", "transform-runtime"]
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 13 - 0
.gitignore

@@ -0,0 +1,13 @@
+.DS_Store
+node_modules/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln

+ 10 - 0
.postcssrc.js

@@ -0,0 +1,10 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    "postcss-import": {},
+    "postcss-url": {},
+    // to edit target browsers: use "browserslist" field in package.json
+    "autoprefixer": {}
+  }
+}

+ 21 - 0
README.md

@@ -0,0 +1,21 @@
+# cocorobo24
+
+> A Vue.js project
+
+## 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
+
+# build for production and view the bundle analyzer report
+npm run build --report
+```
+
+For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

+ 41 - 0
build/build.js

@@ -0,0 +1,41 @@
+'use strict'
+require('./check-versions')()
+
+process.env.NODE_ENV = 'production'
+
+const ora = require('ora')
+const rm = require('rimraf')
+const path = require('path')
+const chalk = require('chalk')
+const webpack = require('webpack')
+const config = require('../config')
+const webpackConfig = require('./webpack.prod.conf')
+
+const spinner = ora('building for production...')
+spinner.start()
+
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
+  if (err) throw err
+  webpack(webpackConfig, (err, stats) => {
+    spinner.stop()
+    if (err) throw err
+    process.stdout.write(stats.toString({
+      colors: true,
+      modules: false,
+      children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
+      chunks: false,
+      chunkModules: false
+    }) + '\n\n')
+
+    if (stats.hasErrors()) {
+      console.log(chalk.red('  Build failed with errors.\n'))
+      process.exit(1)
+    }
+
+    console.log(chalk.cyan('  Build complete.\n'))
+    console.log(chalk.yellow(
+      '  Tip: built files are meant to be served over an HTTP server.\n' +
+      '  Opening index.html over file:// won\'t work.\n'
+    ))
+  })
+})

+ 54 - 0
build/check-versions.js

@@ -0,0 +1,54 @@
+'use strict'
+const chalk = require('chalk')
+const semver = require('semver')
+const packageConfig = require('../package.json')
+const shell = require('shelljs')
+
+function exec (cmd) {
+  return require('child_process').execSync(cmd).toString().trim()
+}
+
+const versionRequirements = [
+  {
+    name: 'node',
+    currentVersion: semver.clean(process.version),
+    versionRequirement: packageConfig.engines.node
+  }
+]
+
+if (shell.which('npm')) {
+  versionRequirements.push({
+    name: 'npm',
+    currentVersion: exec('npm --version'),
+    versionRequirement: packageConfig.engines.npm
+  })
+}
+
+module.exports = function () {
+  const warnings = []
+
+  for (let i = 0; i < versionRequirements.length; i++) {
+    const 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 (let i = 0; i < warnings.length; i++) {
+      const warning = warnings[i]
+      console.log('  ' + warning)
+    }
+
+    console.log()
+    process.exit(1)
+  }
+}

BIN
build/logo.png


+ 102 - 0
build/utils.js

@@ -0,0 +1,102 @@
+'use strict'
+const path = require('path')
+const config = require('../config')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const packageConfig = require('../package.json')
+
+exports.assetsPath = function (_path) {
+  const assetsSubDirectory = process.env.NODE_ENV === 'production'
+    ? config.build.assetsSubDirectory
+    : config.dev.assetsSubDirectory
+
+  return path.posix.join(assetsSubDirectory, _path)
+}
+
+exports.cssLoaders = function (options) {
+  options = options || {}
+
+  const cssLoader = {
+    loader: 'css-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  const postcssLoader = {
+    loader: 'postcss-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  // generate loader string to be used with extract text plugin
+  function generateLoaders (loader, loaderOptions) {
+    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
+
+    if (loader) {
+      loaders.push({
+        loader: loader + '-loader',
+        options: Object.assign({}, loaderOptions, {
+          sourceMap: options.sourceMap
+        })
+      })
+    }
+
+    // Extract CSS when that option is specified
+    // (which is the case during production build)
+    if (options.extract) {
+      return ExtractTextPlugin.extract({
+        use: loaders,
+        fallback: 'vue-style-loader',
+        publicPath: '../../'
+      })
+    } else {
+      return ['vue-style-loader'].concat(loaders)
+    }
+  }
+
+  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
+  return {
+    css: generateLoaders(),
+    postcss: generateLoaders(),
+    less: generateLoaders('less'),
+    sass: generateLoaders('sass', { indentedSyntax: true }),
+    scss: generateLoaders('sass'),
+    stylus: generateLoaders('stylus'),
+    styl: generateLoaders('stylus')
+  }
+}
+
+// Generate loaders for standalone style files (outside of .vue)
+exports.styleLoaders = function (options) {
+  const output = []
+  const loaders = exports.cssLoaders(options)
+
+  for (const extension in loaders) {
+    const loader = loaders[extension]
+    output.push({
+      test: new RegExp('\\.' + extension + '$'),
+      use: loader
+    })
+  }
+
+  return output
+}
+
+exports.createNotifierCallback = () => {
+  const notifier = require('node-notifier')
+
+  return (severity, errors) => {
+    if (severity !== 'error') return
+
+    const error = errors[0]
+    const filename = error.file && error.file.split('!').pop()
+
+    notifier.notify({
+      title: packageConfig.name,
+      message: severity + ': ' + error.name,
+      subtitle: filename || '',
+      icon: path.join(__dirname, 'logo.png')
+    })
+  }
+}

+ 22 - 0
build/vue-loader.conf.js

@@ -0,0 +1,22 @@
+'use strict'
+const utils = require('./utils')
+const config = require('../config')
+const isProduction = process.env.NODE_ENV === 'production'
+const sourceMapEnabled = isProduction
+  ? config.build.productionSourceMap
+  : config.dev.cssSourceMap
+
+module.exports = {
+  loaders: utils.cssLoaders({
+    sourceMap: sourceMapEnabled,
+    extract: isProduction
+  }),
+  cssSourceMap: sourceMapEnabled,
+  cacheBusting: config.dev.cacheBusting,
+  transformToRequire: {
+    video: ['src', 'poster'],
+    source: 'src',
+    img: 'src',
+    image: 'xlink:href'
+  }
+}

+ 94 - 0
build/webpack.base.conf.js

@@ -0,0 +1,94 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const config = require('../config')
+const vueLoaderConfig = require('./vue-loader.conf')
+
+function resolve (dir) {
+  return path.join(__dirname, '..', dir)
+}
+
+
+
+module.exports = {
+  context: path.resolve(__dirname, '../'),
+  entry: {
+    app: './src/main.js'
+  },
+  output: {
+    path: config.build.assetsRoot,
+    filename: '[name].js',
+    publicPath: process.env.NODE_ENV === 'production'
+      ? config.build.assetsPublicPath
+      : config.dev.assetsPublicPath
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+      'jquery': path.resolve(__dirname, '../node_modules/jquery/dist/jquery.min')
+    }
+  },
+  module: {
+    rules: [
+      {
+        test: require.resolve('jquery'),
+        use: [{
+          loader: 'expose-loader',
+          options: '$'
+        }]
+      },
+      {
+        test: /\.vue$/,
+        loader: 'vue-loader',
+        options: vueLoaderConfig
+      },
+      {
+        test: /\.js$/,
+        loader: 'babel-loader',
+        options: {
+          plugins: ['syntax-dynamic-import']
+        },
+        include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')],
+      },
+      {
+        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('img/[name].[hash:7].[ext]'),
+          esModule: false
+        }
+      },
+      {
+        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('media/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
+        }
+      }
+    ]
+  },
+  node: {
+    // prevent webpack from injecting useless setImmediate polyfill because Vue
+    // source contains it (although only uses it if it's native).
+    setImmediate: false,
+    // prevent webpack from injecting mocks to Node native modules
+    // that does not make sense for the client
+    dgram: 'empty',
+    fs: 'empty',
+    net: 'empty',
+    tls: 'empty',
+    child_process: 'empty'
+  }
+}

+ 95 - 0
build/webpack.dev.conf.js

@@ -0,0 +1,95 @@
+'use strict'
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const path = require('path')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+const portfinder = require('portfinder')
+
+const HOST = process.env.HOST
+const PORT = process.env.PORT && Number(process.env.PORT)
+
+const devWebpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
+  },
+  // cheap-module-eval-source-map is faster for development
+  devtool: config.dev.devtool,
+
+  // these devServer options should be customized in /config/index.js
+  devServer: {
+    clientLogLevel: 'warning',
+    historyApiFallback: {
+      rewrites: [
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
+      ],
+    },
+    hot: true,
+    contentBase: false, // since we use CopyWebpackPlugin.
+    compress: true,
+    host: HOST || config.dev.host,
+    port: PORT || config.dev.port,
+    open: config.dev.autoOpenBrowser,
+    overlay: config.dev.errorOverlay
+      ? { warnings: false, errors: true }
+      : false,
+    publicPath: config.dev.assetsPublicPath,
+    proxy: config.dev.proxyTable,
+    quiet: true, // necessary for FriendlyErrorsPlugin
+    watchOptions: {
+      poll: config.dev.poll,
+    }
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': require('../config/dev.env')
+    }),
+    new webpack.HotModuleReplacementPlugin(),
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
+    new webpack.NoEmitOnErrorsPlugin(),
+    // https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: 'index.html',
+      template: 'index.html',
+      inject: true
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+module.exports = new Promise((resolve, reject) => {
+  portfinder.basePort = process.env.PORT || config.dev.port
+  portfinder.getPort((err, port) => {
+    if (err) {
+      reject(err)
+    } else {
+      // publish the new Port, necessary for e2e tests
+      process.env.PORT = port
+      // add port to devServer config
+      devWebpackConfig.devServer.port = port
+
+      // Add FriendlyErrorsPlugin
+      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
+        compilationSuccessInfo: {
+          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
+        },
+        onErrors: config.dev.notifyOnErrors
+        ? utils.createNotifierCallback()
+        : undefined
+      }))
+
+      resolve(devWebpackConfig)
+    }
+  })
+})

+ 145 - 0
build/webpack.prod.conf.js

@@ -0,0 +1,145 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+
+const env = require('../config/prod.env')
+
+const webpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({
+      sourceMap: config.build.productionSourceMap,
+      extract: true,
+      usePostCSS: true
+    })
+  },
+  devtool: config.build.productionSourceMap ? config.build.devtool : false,
+  output: {
+    path: config.build.assetsRoot,
+    filename: utils.assetsPath('js/[name].[chunkhash].js'),
+    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+  },
+  plugins: [
+    // http://vuejs.github.io/vue-loader/en/workflow/production.html
+    new webpack.DefinePlugin({
+      'process.env': env
+    }),
+    new UglifyJsPlugin({
+      uglifyOptions: {
+        compress: {
+          warnings: false
+        }
+      },
+      sourceMap: config.build.productionSourceMap,
+      parallel: true
+    }),
+    // extract css into its own file
+    new ExtractTextPlugin({
+      filename: utils.assetsPath('css/[name].[contenthash].css'),
+      // Setting the following option to `false` will not extract CSS from codesplit chunks.
+      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
+      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
+      allChunks: true,
+    }),
+    // Compress extracted CSS. We are using this plugin so that possible
+    // duplicated CSS from different components can be deduped.
+    new OptimizeCSSPlugin({
+      cssProcessorOptions: config.build.productionSourceMap
+        ? { safe: true, map: { inline: false } }
+        : { safe: true }
+    }),
+    // 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: 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'
+    }),
+    // keep module.id stable when vendor modules does not change
+    new webpack.HashedModuleIdsPlugin(),
+    // enable scope hoisting
+    new webpack.optimize.ModuleConcatenationPlugin(),
+    // split vendor js into its own file
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'vendor',
+      minChunks (module) {
+        // 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',
+      minChunks: Infinity
+    }),
+    // This instance extracts shared chunks from code splitted chunks and bundles them
+    // in a separate chunk, similar to the vendor chunk
+    // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'app',
+      async: 'vendor-async',
+      children: true,
+      minChunks: 3
+    }),
+
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.build.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+if (config.build.productionGzip) {
+  const 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
+    })
+  )
+}
+
+if (config.build.bundleAnalyzerReport) {
+  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
+  webpackConfig.plugins.push(new BundleAnalyzerPlugin())
+}
+
+module.exports = webpackConfig

+ 7 - 0
config/dev.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const prodEnv = require('./prod.env')
+
+module.exports = merge(prodEnv, {
+  NODE_ENV: '"development"'
+})

+ 69 - 0
config/index.js

@@ -0,0 +1,69 @@
+'use strict'
+// Template version: 1.3.1
+// see http://vuejs-templates.github.io/webpack for documentation.
+
+const path = require('path')
+
+module.exports = {
+  dev: {
+
+    // Paths
+    assetsSubDirectory: 'static',
+    assetsPublicPath: '/',
+    proxyTable: {},
+
+    // Various Dev Server settings
+    host: 'localhost', // can be overwritten by process.env.HOST
+    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+    autoOpenBrowser: false,
+    errorOverlay: true,
+    notifyOnErrors: true,
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
+
+    
+    /**
+     * Source Maps
+     */
+
+    // https://webpack.js.org/configuration/devtool/#development
+    devtool: 'cheap-module-eval-source-map',
+
+    // If you have problems debugging vue-files in devtools,
+    // set this to false - it *may* help
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
+    cacheBusting: true,
+
+    cssSourceMap: true
+  },
+
+  build: {
+    // Template for index.html
+    index: path.resolve(__dirname, '../dist/index.html'),
+
+    // Paths
+    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsSubDirectory: 'static',
+    assetsPublicPath: './',
+
+    /**
+     * Source Maps
+     */
+
+    productionSourceMap: true,
+    // https://webpack.js.org/configuration/devtool/#production
+    devtool: '#source-map',
+
+    // 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'],
+
+    // Run the build command with an extra argument to
+    // View the bundle analyzer report after build finishes:
+    // `npm run build --report`
+    // Set to `true` or `false` to always turn it on or off
+    bundleAnalyzerReport: process.env.npm_config_report
+  }
+}

+ 4 - 0
config/prod.env.js

@@ -0,0 +1,4 @@
+'use strict'
+module.exports = {
+  NODE_ENV: '"production"'
+}

+ 18 - 0
dist/index.html

@@ -0,0 +1,18 @@
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover"><title>可可乐博劳动</title><link rel="shortcut icon" type=image/x-icon href=static/logo.ico><style>html,
+    body {
+      height: 100%;
+      width: 100%;
+    }
+
+    .el-select-dropdown__item.selected {
+      color: rgb(81, 201, 154) !important;
+    }</style><link href=./static/css/app.d7d56a4830e3fa7508897a015d8309ef.css rel=stylesheet></head><body><div id=app></div><script>let htmlwidth = document.documentElement.clientWidth || document.body.clientWidth
+    let htmlDom = document.getElementsByTagName('html')[0];
+    if (htmlwidth > 750) { htmlwidth = 750 }
+    htmlDom.style.fontSize = htmlwidth / 20 + 'px';
+    window.onresize = function () {
+      let htmlwidth = document.documentElement.clientWidth || document.body.clientWidth
+      let htmlDom = document.getElementsByTagName('html')[0];
+      if (htmlwidth > 750) { htmlwidth = 750 }
+      htmlDom.style.fontSize = htmlwidth / 20 + 'px';
+    };</script><script type=text/javascript src=./static/js/manifest.86fc79f9bd1daf19b074.js></script><script type=text/javascript src=./static/js/vendor.3fdc6a972db3a22b9359.js></script><script type=text/javascript src=./static/js/app.bbe0d5a695ed6148fedb.js></script></body></html>

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.d7d56a4830e3fa7508897a015d8309ef.css


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/app.d7d56a4830e3fa7508897a015d8309ef.css.map


BIN
dist/static/fonts/element-icons.535877f.woff


BIN
dist/static/fonts/element-icons.732389d.ttf


BIN
dist/static/img/1.395a59f.png


BIN
dist/static/img/2.6d28665.png


BIN
dist/static/img/3.ff3f5fb.png


BIN
dist/static/img/4.c3058a4.png


BIN
dist/static/img/5.14a7437.png


BIN
dist/static/img/6.69e8567.png


BIN
dist/static/img/a.5872867.png


BIN
dist/static/img/academician.ce15e0b.png


BIN
dist/static/img/b.bd5e4f1.png


BIN
dist/static/img/bg.1d58c52.png


BIN
dist/static/img/bg.d8e92a1.jpg


BIN
dist/static/img/c.85c0aa6.png


BIN
dist/static/img/c_1.5e78681.png


BIN
dist/static/img/c_5.d6ebff7.png


BIN
dist/static/img/camera2.873c7a2.png


BIN
dist/static/img/champion.fca9b90.png


BIN
dist/static/img/class.21b9395.png


BIN
dist/static/img/curriculumMessage.18be3b5.png


BIN
dist/static/img/denglutouxiang.867ea5b.png


BIN
dist/static/img/dui-active.8c8552b.png


BIN
dist/static/img/faxian.214dd5a.png


BIN
dist/static/img/faxian1.bac3e3d.png


BIN
dist/static/img/g_1.4e80bf8.png


BIN
dist/static/img/g_5.c190a43.png


BIN
dist/static/img/house.d4258fd.png


BIN
dist/static/img/labourMessage.01ebbfe.png


BIN
dist/static/img/liulan.e5d11f9.png


BIN
dist/static/img/login_background.66cdb42.png


BIN
dist/static/img/logo.84ffe89.png


BIN
dist/static/img/no1.b34de09.png


BIN
dist/static/img/no2.8e03a5f.png


BIN
dist/static/img/none.2390ed8.png


BIN
dist/static/img/panel.f7ff1da.png


BIN
dist/static/img/portal.b3cf7fa.png


BIN
dist/static/img/portal4.97a9c3d.png


BIN
dist/static/img/ranking.b59214c.png


BIN
dist/static/img/s1.c6eb6e4.png


BIN
dist/static/img/s_1.683035a.png


BIN
dist/static/img/s_5.8976cbf.png


BIN
dist/static/img/shiping.630746b.png


BIN
dist/static/img/shoujihao.d48c7f1.png


BIN
dist/static/img/shouye.9261394.png


BIN
dist/static/img/shouye1.6add7dc.png


BIN
dist/static/img/shouye2.8b84df5.png


BIN
dist/static/img/star.c2c4117.png


BIN
dist/static/img/studentMessage.405de17.png


BIN
dist/static/img/teacher.85c6a9b.png


BIN
dist/static/img/teacher.eb5ff42.png


BIN
dist/static/img/tu21.41cd8af.png


BIN
dist/static/img/tu26.2bdc4cc.png


BIN
dist/static/img/tu32.c5d1d32.png


BIN
dist/static/img/tu33.036b842.png


BIN
dist/static/img/tu34.1dd94d9.png


BIN
dist/static/img/tu8.93d8b51.png


BIN
dist/static/img/wode.481be45.png


BIN
dist/static/img/wode.a8e2b88.png


BIN
dist/static/img/wode2.ded7f6c.png


BIN
dist/static/img/wodzuoping.6d827fd.png


BIN
dist/static/img/xuexizhongxin.b536e21.png


BIN
dist/static/img/zhuangtailan.6cd8fec.png


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/0.bbe9eb85798649e8d457.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/0.bbe9eb85798649e8d457.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/1.1e0e47cd6f834874ff68.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/1.1e0e47cd6f834874ff68.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/10.5811a8b553c126db7dac.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/10.5811a8b553c126db7dac.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/11.c0e911b0a238722d85a1.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/11.c0e911b0a238722d85a1.js.map


+ 2 - 0
dist/static/js/12.07f3a1e3c9b000bad043.js

@@ -0,0 +1,2 @@
+webpackJsonp([12],{"6qQl":function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e={data:function(){return{}},methods:{goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"pb_content myd_content"},[s("div",{staticClass:"pb_head"},[s("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:this.goBack}}),this._v(" "),s("span",[this._v("关于")])],1),this._v(" "),s("div",{staticClass:"logoBox"},[s("van-image",{attrs:{src:i("QB7A"),fit:"contain",width:"3.5rem"}}),this._v(" "),s("span",[this._v("版本号 V:1.0.0")])],1)])},staticRenderFns:[]};var a=i("VU/8")(e,n,!1,function(t){i("f3od")},"data-v-7faa03ec",null);s.default=a.exports},QB7A:function(t,s,i){t.exports=i.p+"static/img/logo.84ffe89.png"},f3od:function(t,s){}});
+//# sourceMappingURL=12.07f3a1e3c9b000bad043.js.map

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/12.07f3a1e3c9b000bad043.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/13.7baa35270435ffe5ff64.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/13.7baa35270435ffe5ff64.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/14.66a85089bc1438615250.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/14.66a85089bc1438615250.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/15.2accd6b952531cd8e7e1.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/15.2accd6b952531cd8e7e1.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/16.10859a8e83ed4c04e9df.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/16.10859a8e83ed4c04e9df.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/17.ecfdbf068751f623630e.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff