├── .babelrc
├── .editorconfig
├── .gitignore
├── .postcssrc.js
├── README.md
├── build
├── build.js
├── check-versions.js
├── dev-client.js
├── dev-server.js
├── logo.png
├── utils.js
├── vue-loader.conf.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
└── prod.env.js
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── assets
│ ├── Thumbs.db
│ └── logo.png
├── components
│ ├── Advice.vue
│ ├── Charts.vue
│ ├── City.vue
│ ├── Details.vue
│ ├── Hello.vue
│ ├── Loading.vue
│ ├── Navi.vue
│ ├── Tips.vue
│ ├── User.vue
│ └── charts
│ │ ├── Bar.vue
│ │ ├── Geo.vue
│ │ └── Line.vue
├── main.js
├── mixins
│ └── mixin.js
├── routers
│ └── router.js
└── stores
│ ├── index.js
│ └── modules
│ ├── advice.js
│ ├── charts.js
│ ├── city.js
│ ├── details.js
│ ├── hello.js
│ ├── navi.js
│ └── user.js
└── static
├── .gitkeep
├── data
├── a.json
└── path.js
└── img
├── Thumbs.db
├── a.jpg
└── icons
├── 0.png
├── 1.png
├── 10.png
├── 11.png
├── 12.png
├── 13.png
├── 14.png
├── 15.png
├── 16.png
├── 17.png
├── 18.png
├── 19.png
├── 2.png
├── 20.png
├── 21.png
├── 22.png
├── 23.png
├── 24.png
├── 25.png
├── 26.png
├── 27.png
├── 28.png
├── 29.png
├── 3.png
├── 30.png
├── 31.png
├── 32.png
├── 33.png
├── 34.png
├── 35.png
├── 36.png
├── 37.png
├── 38.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
├── 9.png
├── 99.png
└── Thumbs.db
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", {
4 | "modules": false,
5 | "targets": {
6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7 | }
8 | }],
9 | "stage-2"
10 | ],
11 | "plugins": ["transform-vue-jsx", "transform-runtime"]
12 | }
13 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 4
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | /dist/
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 |
8 | # Editor directories and files
9 | .idea
10 | .vscode
11 | *.suo
12 | *.ntvs*
13 | *.njsproj
14 | *.sln
15 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vueFoo
2 | 使用vue + vue-cli + vuex + vue-router + element-ui + echarts开发的空气质量数据可视化展示平台
3 |
4 | ```
5 | npm install
6 |
7 | npm run dev
8 | ```
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | require('./check-versions')()
3 |
4 | process.env.NODE_ENV = 'production'
5 |
6 | const ora = require('ora')
7 | const rm = require('rimraf')
8 | const path = require('path')
9 | const chalk = require('chalk')
10 | const webpack = require('webpack')
11 | const config = require('../config')
12 | const webpackConfig = require('./webpack.prod.conf')
13 |
14 | const spinner = ora('building for production...')
15 | spinner.start()
16 |
17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18 | if (err) throw err
19 | webpack(webpackConfig, (err, stats) => {
20 | spinner.stop()
21 | if (err) throw err
22 | process.stdout.write(stats.toString({
23 | colors: true,
24 | modules: false,
25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26 | chunks: false,
27 | chunkModules: false
28 | }) + '\n\n')
29 |
30 | if (stats.hasErrors()) {
31 | console.log(chalk.red(' Build failed with errors.\n'))
32 | process.exit(1)
33 | }
34 |
35 | console.log(chalk.cyan(' Build complete.\n'))
36 | console.log(chalk.yellow(
37 | ' Tip: built files are meant to be served over an HTTP server.\n' +
38 | ' Opening index.html over file:// won\'t work.\n'
39 | ))
40 | })
41 | })
42 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const chalk = require('chalk')
3 | const semver = require('semver')
4 | const packageConfig = require('../package.json')
5 | const shell = require('shelljs')
6 |
7 | function exec (cmd) {
8 | return require('child_process').execSync(cmd).toString().trim()
9 | }
10 |
11 | const versionRequirements = [
12 | {
13 | name: 'node',
14 | currentVersion: semver.clean(process.version),
15 | versionRequirement: packageConfig.engines.node
16 | }
17 | ]
18 |
19 | if (shell.which('npm')) {
20 | versionRequirements.push({
21 | name: 'npm',
22 | currentVersion: exec('npm --version'),
23 | versionRequirement: packageConfig.engines.npm
24 | })
25 | }
26 |
27 | module.exports = function () {
28 | const warnings = []
29 |
30 | for (let i = 0; i < versionRequirements.length; i++) {
31 | const mod = versionRequirements[i]
32 |
33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34 | warnings.push(mod.name + ': ' +
35 | chalk.red(mod.currentVersion) + ' should be ' +
36 | chalk.green(mod.versionRequirement)
37 | )
38 | }
39 | }
40 |
41 | if (warnings.length) {
42 | console.log('')
43 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
44 | console.log()
45 |
46 | for (let i = 0; i < warnings.length; i++) {
47 | const warning = warnings[i]
48 | console.log(' ' + warning)
49 | }
50 |
51 | console.log()
52 | process.exit(1)
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | require('eventsource-polyfill')
3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe(function (event) {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/build/dev-server.js:
--------------------------------------------------------------------------------
1 | require('./check-versions')()
2 | var config = require('../config')
3 | if (!process.env.NODE_ENV) process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
4 | var path = require('path')
5 | var express = require('express')
6 | var webpack = require('webpack')
7 | var opn = require('opn')
8 | var proxyMiddleware = require('http-proxy-middleware')
9 | var webpackConfig = require('./webpack.dev.conf')
10 |
11 | // default port where dev server listens for incoming traffic
12 | var port = process.env.PORT || config.dev.port
13 | // Define HTTP proxies to your custom API backend
14 | // https://github.com/chimurai/http-proxy-middleware
15 | var proxyTable = config.dev.proxyTable
16 |
17 | var app = express()
18 | var compiler = webpack(webpackConfig)
19 |
20 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
21 | publicPath: webpackConfig.output.publicPath,
22 | stats: {
23 | colors: true,
24 | chunks: false
25 | }
26 | })
27 |
28 | var hotMiddleware = require('webpack-hot-middleware')(compiler)
29 | // force page reload when html-webpack-plugin template changes
30 | compiler.plugin('compilation', function (compilation) {
31 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
32 | hotMiddleware.publish({ action: 'reload' })
33 | cb()
34 | })
35 | })
36 |
37 | // proxy api requests
38 | Object.keys(proxyTable).forEach(function (context) {
39 | var options = proxyTable[context]
40 | if (typeof options === 'string') {
41 | options = { target: options }
42 | }
43 | app.use(proxyMiddleware(context, options))
44 | })
45 |
46 | // handle fallback for HTML5 history API
47 | app.use(require('connect-history-api-fallback')())
48 |
49 | // serve webpack bundle output
50 | app.use(devMiddleware)
51 |
52 | // enable hot-reload and state-preserving
53 | // compilation error display
54 | app.use(hotMiddleware)
55 |
56 | // serve pure static assets
57 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
58 | app.use(staticPath, express.static('./static'))
59 |
60 | module.exports = app.listen(port, function (err) {
61 | if (err) {
62 | console.log(err)
63 | return
64 | }
65 | var uri = 'http://localhost:' + port
66 | console.log('Listening at ' + uri + '\n')
67 |
68 | // when env is testing, don't need open it
69 | if (process.env.NODE_ENV !== 'testing') {
70 | opn(uri)
71 | }
72 | })
73 |
--------------------------------------------------------------------------------
/build/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/build/logo.png
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const config = require('../config')
4 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
5 | const packageConfig = require('../package.json')
6 |
7 | exports.assetsPath = function (_path) {
8 | const assetsSubDirectory = process.env.NODE_ENV === 'production'
9 | ? config.build.assetsSubDirectory
10 | : config.dev.assetsSubDirectory
11 |
12 | return path.posix.join(assetsSubDirectory, _path)
13 | }
14 |
15 | exports.cssLoaders = function (options) {
16 | options = options || {}
17 |
18 | const cssLoader = {
19 | loader: 'css-loader',
20 | options: {
21 | sourceMap: options.sourceMap
22 | }
23 | }
24 |
25 | const postcssLoader = {
26 | loader: 'postcss-loader',
27 | options: {
28 | sourceMap: options.sourceMap
29 | }
30 | }
31 |
32 | // generate loader string to be used with extract text plugin
33 | function generateLoaders (loader, loaderOptions) {
34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35 |
36 | if (loader) {
37 | loaders.push({
38 | loader: loader + '-loader',
39 | options: Object.assign({}, loaderOptions, {
40 | sourceMap: options.sourceMap
41 | })
42 | })
43 | }
44 |
45 | // Extract CSS when that option is specified
46 | // (which is the case during production build)
47 | if (options.extract) {
48 | return ExtractTextPlugin.extract({
49 | use: loaders,
50 | fallback: 'vue-style-loader'
51 | })
52 | } else {
53 | return ['vue-style-loader'].concat(loaders)
54 | }
55 | }
56 |
57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
58 | return {
59 | css: generateLoaders(),
60 | postcss: generateLoaders(),
61 | less: generateLoaders('less'),
62 | sass: generateLoaders('sass', { indentedSyntax: true }),
63 | scss: generateLoaders('sass'),
64 | stylus: generateLoaders('stylus'),
65 | styl: generateLoaders('stylus')
66 | }
67 | }
68 |
69 | // Generate loaders for standalone style files (outside of .vue)
70 | exports.styleLoaders = function (options) {
71 | const output = []
72 | const loaders = exports.cssLoaders(options)
73 |
74 | for (const extension in loaders) {
75 | const loader = loaders[extension]
76 | output.push({
77 | test: new RegExp('\\.' + extension + '$'),
78 | use: loader
79 | })
80 | }
81 |
82 | return output
83 | }
84 |
85 | exports.createNotifierCallback = () => {
86 | const notifier = require('node-notifier')
87 |
88 | return (severity, errors) => {
89 | if (severity !== 'error') return
90 |
91 | const error = errors[0]
92 | const filename = error.file && error.file.split('!').pop()
93 |
94 | notifier.notify({
95 | title: packageConfig.name,
96 | message: severity + ': ' + error.name,
97 | subtitle: filename || '',
98 | icon: path.join(__dirname, 'logo.png')
99 | })
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const config = require('../config')
4 | const isProduction = process.env.NODE_ENV === 'production'
5 | const sourceMapEnabled = isProduction
6 | ? config.build.productionSourceMap
7 | : config.dev.cssSourceMap
8 |
9 | module.exports = {
10 | loaders: utils.cssLoaders({
11 | sourceMap: sourceMapEnabled,
12 | extract: isProduction
13 | }),
14 | cssSourceMap: sourceMapEnabled,
15 | cacheBusting: config.dev.cacheBusting,
16 | transformToRequire: {
17 | video: ['src', 'poster'],
18 | source: 'src',
19 | img: 'src',
20 | image: 'xlink:href'
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const config = require('../config')
5 | const vueLoaderConfig = require('./vue-loader.conf')
6 |
7 | function resolve (dir) {
8 | return path.join(__dirname, '..', dir)
9 | }
10 |
11 |
12 |
13 | module.exports = {
14 | context: path.resolve(__dirname, '../'),
15 | entry: {
16 | app: './src/main.js'
17 | },
18 | output: {
19 | path: config.build.assetsRoot,
20 | filename: '[name].js',
21 | publicPath: process.env.NODE_ENV === 'production'
22 | ? config.build.assetsPublicPath
23 | : config.dev.assetsPublicPath
24 | },
25 | resolve: {
26 | extensions: ['.js', '.vue', '.json'],
27 | alias: {
28 | 'vue$': 'vue/dist/vue.esm.js',
29 | '@': resolve('src'),
30 | 'src': path.resolve(__dirname, '../src'),
31 | 'assets': path.resolve(__dirname, '../src/assets'),
32 | 'components': path.resolve(__dirname, '../src/components'),
33 | 'static': path.resolve(__dirname, '../static/data'),
34 | }
35 | },
36 | module: {
37 | rules: [
38 | {
39 | test: /\.vue$/,
40 | loader: 'vue-loader',
41 | options: vueLoaderConfig
42 | },
43 | {
44 | test: /\.js$/,
45 | loader: 'babel-loader',
46 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
47 | },
48 | {
49 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
50 | loader: 'url-loader',
51 | options: {
52 | limit: 10000,
53 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
54 | }
55 | },
56 | {
57 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
58 | loader: 'url-loader',
59 | options: {
60 | limit: 10000,
61 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
62 | }
63 | },
64 | {
65 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
66 | loader: 'url-loader',
67 | options: {
68 | limit: 10000,
69 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
70 | }
71 | }
72 | ]
73 | },
74 | node: {
75 | // prevent webpack from injecting useless setImmediate polyfill because Vue
76 | // source contains it (although only uses it if it's native).
77 | setImmediate: false,
78 | // prevent webpack from injecting mocks to Node native modules
79 | // that does not make sense for the client
80 | dgram: 'empty',
81 | fs: 'empty',
82 | net: 'empty',
83 | tls: 'empty',
84 | child_process: 'empty'
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const webpack = require('webpack')
4 | const config = require('../config')
5 | const merge = require('webpack-merge')
6 | const path = require('path')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11 | const portfinder = require('portfinder')
12 |
13 | const HOST = process.env.HOST
14 | const PORT = process.env.PORT && Number(process.env.PORT)
15 |
16 | const devWebpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
19 | },
20 | // cheap-module-eval-source-map is faster for development
21 | devtool: config.dev.devtool,
22 |
23 | // these devServer options should be customized in /config/index.js
24 | devServer: {
25 | clientLogLevel: 'warning',
26 | historyApiFallback: {
27 | rewrites: [
28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
29 | ],
30 | },
31 | hot: true,
32 | contentBase: false, // since we use CopyWebpackPlugin.
33 | compress: true,
34 | host: HOST || config.dev.host,
35 | port: PORT || config.dev.port,
36 | open: config.dev.autoOpenBrowser,
37 | overlay: config.dev.errorOverlay
38 | ? { warnings: false, errors: true }
39 | : false,
40 | publicPath: config.dev.assetsPublicPath,
41 | proxy: config.dev.proxyTable,
42 | quiet: true, // necessary for FriendlyErrorsPlugin
43 | watchOptions: {
44 | poll: config.dev.poll,
45 | }
46 | },
47 | plugins: [
48 | new webpack.DefinePlugin({
49 | 'process.env': require('../config/dev.env')
50 | }),
51 | new webpack.HotModuleReplacementPlugin(),
52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
53 | new webpack.NoEmitOnErrorsPlugin(),
54 | // https://github.com/ampedandwired/html-webpack-plugin
55 | new HtmlWebpackPlugin({
56 | filename: 'index.html',
57 | template: 'index.html',
58 | inject: true
59 | }),
60 | // copy custom static assets
61 | new CopyWebpackPlugin([
62 | {
63 | from: path.resolve(__dirname, '../static'),
64 | to: config.dev.assetsSubDirectory,
65 | ignore: ['.*']
66 | }
67 | ])
68 | ]
69 | })
70 |
71 | module.exports = new Promise((resolve, reject) => {
72 | portfinder.basePort = process.env.PORT || config.dev.port
73 | portfinder.getPort((err, port) => {
74 | if (err) {
75 | reject(err)
76 | } else {
77 | // publish the new Port, necessary for e2e tests
78 | process.env.PORT = port
79 | // add port to devServer config
80 | devWebpackConfig.devServer.port = port
81 |
82 | // Add FriendlyErrorsPlugin
83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
84 | compilationSuccessInfo: {
85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
86 | },
87 | onErrors: config.dev.notifyOnErrors
88 | ? utils.createNotifierCallback()
89 | : undefined
90 | }))
91 |
92 | resolve(devWebpackConfig)
93 | }
94 | })
95 | })
96 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const merge = require('webpack-merge')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 |
14 | const env = require('../config/prod.env')
15 |
16 | const webpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({
19 | sourceMap: config.build.productionSourceMap,
20 | extract: true,
21 | usePostCSS: true
22 | })
23 | },
24 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 | output: {
26 | path: config.build.assetsRoot,
27 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29 | },
30 | plugins: [
31 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
32 | new webpack.DefinePlugin({
33 | 'process.env': env
34 | }),
35 | new UglifyJsPlugin({
36 | uglifyOptions: {
37 | compress: {
38 | warnings: false
39 | }
40 | },
41 | sourceMap: config.build.productionSourceMap,
42 | parallel: true
43 | }),
44 | // extract css into its own file
45 | new ExtractTextPlugin({
46 | filename: utils.assetsPath('css/[name].[contenthash].css'),
47 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
48 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
49 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
50 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
51 | allChunks: true,
52 | }),
53 | // Compress extracted CSS. We are using this plugin so that possible
54 | // duplicated CSS from different components can be deduped.
55 | new OptimizeCSSPlugin({
56 | cssProcessorOptions: config.build.productionSourceMap
57 | ? { safe: true, map: { inline: false } }
58 | : { safe: true }
59 | }),
60 | // generate dist index.html with correct asset hash for caching.
61 | // you can customize output by editing /index.html
62 | // see https://github.com/ampedandwired/html-webpack-plugin
63 | new HtmlWebpackPlugin({
64 | filename: config.build.index,
65 | template: 'index.html',
66 | inject: true,
67 | minify: {
68 | removeComments: true,
69 | collapseWhitespace: true,
70 | removeAttributeQuotes: true
71 | // more options:
72 | // https://github.com/kangax/html-minifier#options-quick-reference
73 | },
74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75 | chunksSortMode: 'dependency'
76 | }),
77 | // keep module.id stable when vendor modules does not change
78 | new webpack.HashedModuleIdsPlugin(),
79 | // enable scope hoisting
80 | new webpack.optimize.ModuleConcatenationPlugin(),
81 | // split vendor js into its own file
82 | new webpack.optimize.CommonsChunkPlugin({
83 | name: 'vendor',
84 | minChunks (module) {
85 | // any required modules inside node_modules are extracted to vendor
86 | return (
87 | module.resource &&
88 | /\.js$/.test(module.resource) &&
89 | module.resource.indexOf(
90 | path.join(__dirname, '../node_modules')
91 | ) === 0
92 | )
93 | }
94 | }),
95 | // extract webpack runtime and module manifest to its own file in order to
96 | // prevent vendor hash from being updated whenever app bundle is updated
97 | new webpack.optimize.CommonsChunkPlugin({
98 | name: 'manifest',
99 | minChunks: Infinity
100 | }),
101 | // This instance extracts shared chunks from code splitted chunks and bundles them
102 | // in a separate chunk, similar to the vendor chunk
103 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
104 | new webpack.optimize.CommonsChunkPlugin({
105 | name: 'app',
106 | async: 'vendor-async',
107 | children: true,
108 | minChunks: 3
109 | }),
110 |
111 | // copy custom static assets
112 | new CopyWebpackPlugin([
113 | {
114 | from: path.resolve(__dirname, '../static'),
115 | to: config.build.assetsSubDirectory,
116 | ignore: ['.*']
117 | }
118 | ])
119 | ]
120 | })
121 |
122 | if (config.build.productionGzip) {
123 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
124 |
125 | webpackConfig.plugins.push(
126 | new CompressionWebpackPlugin({
127 | asset: '[path].gz[query]',
128 | algorithm: 'gzip',
129 | test: new RegExp(
130 | '\\.(' +
131 | config.build.productionGzipExtensions.join('|') +
132 | ')$'
133 | ),
134 | threshold: 10240,
135 | minRatio: 0.8
136 | })
137 | )
138 | }
139 |
140 | if (config.build.bundleAnalyzerReport) {
141 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
142 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
143 | }
144 |
145 | module.exports = webpackConfig
146 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | // Template version: 1.3.1
3 | // see http://vuejs-templates.github.io/webpack for documentation.
4 |
5 | const path = require('path')
6 |
7 | module.exports = {
8 | dev: {
9 |
10 | // Paths
11 | assetsSubDirectory: 'static',
12 | assetsPublicPath: '/',
13 | proxyTable: {},
14 |
15 | // Various Dev Server settings
16 | host: 'localhost', // can be overwritten by process.env.HOST
17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 | autoOpenBrowser: false,
19 | errorOverlay: true,
20 | notifyOnErrors: true,
21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22 |
23 |
24 | /**
25 | * Source Maps
26 | */
27 |
28 | // https://webpack.js.org/configuration/devtool/#development
29 | devtool: 'cheap-module-eval-source-map',
30 |
31 | // If you have problems debugging vue-files in devtools,
32 | // set this to false - it *may* help
33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
34 | cacheBusting: true,
35 |
36 | cssSourceMap: true
37 | },
38 |
39 | build: {
40 | // Template for index.html
41 | index: path.resolve(__dirname, '../dist/index.html'),
42 |
43 | // Paths
44 | assetsRoot: path.resolve(__dirname, '../dist'),
45 | assetsSubDirectory: 'static',
46 | assetsPublicPath: './',
47 |
48 | /**
49 | * Source Maps
50 | */
51 |
52 | productionSourceMap: true,
53 | // https://webpack.js.org/configuration/devtool/#production
54 | devtool: '#source-map',
55 |
56 | // Gzip off by default as many popular static hosts such as
57 | // Surge or Netlify already gzip all static assets for you.
58 | // Before setting to `true`, make sure to:
59 | // npm install --save-dev compression-webpack-plugin
60 | productionGzip: false,
61 | productionGzipExtensions: ['js', 'css'],
62 |
63 | // Run the build command with an extra argument to
64 | // View the bundle analyzer report after build finishes:
65 | // `npm run build --report`
66 | // Set to `true` or `false` to always turn it on or off
67 | bundleAnalyzerReport: process.env.npm_config_report
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 空气质量可视化展示平台
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vueFoo",
3 | "version": "1.0.0",
4 | "description": "A Vue.js project",
5 | "author": "lfx",
6 | "private": true,
7 | "scripts": {
8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9 | "start": "npm run dev",
10 | "build": "node build/build.js"
11 | },
12 | "dependencies": {
13 | "echarts": "^4.1.0",
14 | "element-ui": "^2.4.1",
15 | "vue": "^2.5.2",
16 | "vue-resource": "^1.5.1",
17 | "vue-router": "^3.0.1",
18 | "vuex": "^3.0.1",
19 | "vuex-router-sync": "^5.0.0"
20 | },
21 | "devDependencies": {
22 | "autoprefixer": "^7.1.2",
23 | "babel-core": "^6.22.1",
24 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
25 | "babel-loader": "^7.1.1",
26 | "babel-plugin-syntax-jsx": "^6.18.0",
27 | "babel-plugin-transform-runtime": "^6.22.0",
28 | "babel-plugin-transform-vue-jsx": "^3.5.0",
29 | "babel-preset-env": "^1.3.2",
30 | "babel-preset-stage-2": "^6.22.0",
31 | "chalk": "^2.0.1",
32 | "copy-webpack-plugin": "^4.0.1",
33 | "css-loader": "^0.28.0",
34 | "extract-text-webpack-plugin": "^3.0.0",
35 | "file-loader": "^1.1.4",
36 | "friendly-errors-webpack-plugin": "^1.6.1",
37 | "html-webpack-plugin": "^2.30.1",
38 | "node-notifier": "^5.1.2",
39 | "node-sass": "^4.9.0",
40 | "optimize-css-assets-webpack-plugin": "^3.2.0",
41 | "ora": "^1.2.0",
42 | "portfinder": "^1.0.13",
43 | "postcss-import": "^11.0.0",
44 | "postcss-loader": "^2.0.8",
45 | "postcss-url": "^7.2.1",
46 | "rimraf": "^2.6.0",
47 | "sass-loader": "^7.0.3",
48 | "semver": "^5.3.0",
49 | "shelljs": "^0.7.6",
50 | "uglifyjs-webpack-plugin": "^1.1.1",
51 | "url-loader": "^0.5.8",
52 | "vue-loader": "^13.3.0",
53 | "vue-style-loader": "^3.0.1",
54 | "vue-template-compiler": "^2.5.2",
55 | "webpack": "^3.6.0",
56 | "webpack-bundle-analyzer": "^2.9.0",
57 | "webpack-dev-server": "^2.9.1",
58 | "webpack-merge": "^4.1.0"
59 | },
60 | "engines": {
61 | "node": ">= 6.0.0",
62 | "npm": ">= 3.0.0"
63 | },
64 | "browserslist": [
65 | "> 1%",
66 | "last 2 versions",
67 | "not ie <= 8"
68 | ]
69 | }
70 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
53 |
--------------------------------------------------------------------------------
/src/assets/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/src/assets/Thumbs.db
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/src/assets/logo.png
--------------------------------------------------------------------------------
/src/components/Advice.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{ location.name }}
9 | {{ time | timeFormatter }}
10 |
11 |
12 |
{{ now.temperature }}
13 |
°C
14 |
{{ now.text }}
15 |
![]()
16 |
17 |
空气:{{ now.situ }} {{ now.aqi }}
18 |
19 |
洗车指数
20 |
{{ suggestion.car_washing.brief }}
21 |
穿衣指数
22 |
{{ suggestion.dressing.brief }}
23 |
感冒指数
24 |
{{ suggestion.flu.brief }}
25 |
26 |
27 |
运动指数
28 |
{{ suggestion.sport.brief }}
29 |
旅游指数
30 |
{{ suggestion.travel.brief }}
31 |
紫外线强度
32 |
{{ suggestion.uv.brief }}
33 |
34 |
35 |
36 |
37 |
{{ item.date | MDformatter }}
38 |
{{ item.low }}°C / {{ item.high }}°C
39 |
{{ item.text_day }} / {{ item.text_night }}
40 |
{{ item.wind_direction }}风{{ item.wind_scale }}级
41 |
42 |
43 |
44 |
45 |
78 |
79 |
164 |
--------------------------------------------------------------------------------
/src/components/Charts.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 切换图表
14 |
15 |
16 |
61 |
62 |
74 |
--------------------------------------------------------------------------------
/src/components/City.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
默认地区:{{city}}[重选]
5 |
6 |
7 | [选择地区]
8 |
9 |
12 |
13 |
14 |
15 | {{ item }}
16 |
17 |
18 |
19 |
20 |
21 |
50 |
51 |
94 |
--------------------------------------------------------------------------------
/src/components/Details.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
21 |
22 |
23 |
24 |
25 |
26 | {{ props.row.pri }}
27 |
28 |
29 | {{ props.row.pm25 }}
30 |
31 |
32 | {{ props.row.pm10 }}
33 |
34 |
35 | {{ props.row.co }}
36 |
37 |
38 | {{ props.row.no2 }}
39 |
40 |
41 | {{ props.row.o3 }}
42 |
43 |
44 | {{ props.row.o3_8h }}
45 |
46 |
47 | {{ props.row.so2 }}
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
71 |

72 |
73 |
74 |
200 |
201 |
220 |
293 |
--------------------------------------------------------------------------------
/src/components/Hello.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 提交评论
23 |
24 |
25 |
26 |
27 |
31 |
32 |
33 |
73 |
74 |
132 |
--------------------------------------------------------------------------------
/src/components/Loading.vue:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
20 |
21 |
90 |
--------------------------------------------------------------------------------
/src/components/Navi.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
28 |
29 |
30 |
31 |
32 |
65 |
66 |
137 |
--------------------------------------------------------------------------------
/src/components/Tips.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
空气质量指数(Air Quality Index,简称AQI)是定量描述空气质量状况的指数,分为五级,相对应空气质量的六个类别,其数值越大说明空气污染状况越严重,对人体健康的危害也就越大。参与空气质量评价的主要污染物为细颗粒物(pm2.5)、可吸入颗粒物(pm10)、二氧化硫(SO2)、二氧化氮(NO2)、臭氧(O3)、一氧化碳(CO)等六项。
4 |
5 |
6 | 指数 |
7 | 等级 |
8 | 温馨提示 |
9 |
10 |
11 | 0-50 |
12 | 一级优 |
13 | 可多参加户外活动呼吸新鲜空气 |
14 |
15 |
16 | 51-100 |
17 | 二级良 |
18 | 除少数对某些污染物特别容易过敏的人群外,其他人群可以正常进行室外活动。 |
19 |
20 |
21 | 101-150 |
22 | 三级轻度污染 |
23 | 敏感人群需减少体力消耗较大的户外活动 |
24 |
25 |
26 | 151-200 |
27 | 四级中度污染 |
28 | 敏感人群应尽量减少外出,一般人群适当减少户外运动 |
29 |
30 |
31 | 201-300 |
32 | 五级重度污染 |
33 | 敏感人群应停止户外运动,一般人群尽量减少户外运动 |
34 |
35 |
36 | >300 |
37 | 六级严重污染 |
38 | 除有特殊需要的人群外,尽量不要留在室外 |
39 |
40 |
41 |
42 |
43 |
58 |
59 |
152 |
--------------------------------------------------------------------------------
/src/components/User.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 登录
7 | /
8 |
9 | 注册
10 |
11 |
12 | 用户:{{userName}}
13 | 登出
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | {{status}}
27 | 登录
28 | 没有账号,去注册
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | {{status}}
46 | 注册
47 | 已有账号,去登录
48 |
49 |
50 |
51 |
52 |
65 |
80 |
81 |
82 |
165 |
166 |
240 |
--------------------------------------------------------------------------------
/src/components/charts/Bar.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
162 |
163 |
170 |
--------------------------------------------------------------------------------
/src/components/charts/Geo.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
174 |
175 |
182 |
--------------------------------------------------------------------------------
/src/components/charts/Line.vue:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
189 |
190 |
198 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | // The Vue build version to load with the `import` command
2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 | // 引入模块依赖
4 | import Vue from 'vue'
5 | import App from './App'
6 | import router from './routers/router'
7 | import store from './stores/index'
8 | import mixin from './mixins/mixin'
9 | import { sync } from 'vuex-router-sync'
10 | import VueResource from 'vue-resource'
11 | import elementUI from 'element-ui'
12 | import 'element-ui/lib/theme-chalk/index.css'
13 | // import { Button, Input, Select, Menu, MenuItem, Submenu, Table, TableColumn } from 'element-ui'
14 |
15 | // Vue.use(VueResource);
16 | Vue.use(elementUI);
17 | // Vue.use(Button)
18 | // Vue.use(Input)
19 | // Vue.use(Select)
20 | // Vue.use(Menu)
21 | // Vue.use(MenuItem)
22 | // Vue.use(Submenu)
23 | // Vue.use(Table)
24 | // Vue.use(TableColumn)
25 | // Loading.service({ fullscreen: true });
26 |
27 | // 配置vuex-router-sync
28 | sync(store, router)
29 |
30 | Vue.mixin(mixin)
31 |
32 | Vue.http.options.emulateJSON = true;
33 | /* eslint-disable no-new */
34 | new Vue(Vue.util.extend({
35 | el: '#app',
36 | template: '',
37 | router,
38 | store,
39 | components: { App }
40 | }))
41 |
--------------------------------------------------------------------------------
/src/mixins/mixin.js:
--------------------------------------------------------------------------------
1 | import { mapMutations } from 'vuex'
2 | // import { Loading } from 'element-ui'
3 | export default {
4 | data() {
5 | return {
6 | // loading: null
7 | }
8 | },
9 | methods: {
10 | ...mapMutations(['global_showLoading', 'global_hideLoading']),
11 | },
12 | filters: {
13 | timeFormatter(d) {
14 | let date;
15 | if(typeof date != 'object') {
16 | date = new Date(+d);
17 | } else {
18 | date = d;
19 | }
20 | return `${date.getFullYear()}年${date.getMonth()+1}月${date.getDate()}日 ${date.getHours()<10?'0'+date.getHours():date.getHours()}:${date.getMinutes()<10?'0'+date.getMinutes():date.getMinutes()}:${date.getSeconds()<10?'0'+date.getSeconds():date.getSeconds()}`;
21 | },
22 | MDformatter(date) {
23 | let dateArr = date.split('-');
24 | if(new Date().getDate() == dateArr[2]) {
25 | return '今天';
26 | }
27 | return `${+dateArr[1]}月${+dateArr[2]}日`;
28 | }
29 | },
30 | mounted() {
31 | // this.global_hideLoading();
32 | // this.loading = Loading.service({ fullscreen: true })
33 | // console.log(Loading)
34 | },
35 | beforeDestroy() {
36 | // this.global_showLoading();
37 | // this.loading.close();
38 | },
39 | beforeRouteLeave (to, from, next) {
40 | // this.global_showLoading();
41 | next();
42 | // 导航离开该组件的对应路由时调用
43 | // 可以访问组件实例 `this`
44 | },
45 | }
--------------------------------------------------------------------------------
/src/routers/router.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import VueRouter from 'vue-router'
3 |
4 | Vue.use(VueRouter)
5 |
6 | const routes = [{
7 | name: 'hello',
8 | path: '/Hello',
9 | component: function(resolve) {
10 | require(['../components/Hello'], resolve);
11 | }
12 | }, {
13 | name: 'charts',
14 | path: '/Charts',
15 | component: function(resolve) {
16 | require(['../components/Charts'], resolve);
17 | }
18 | }, {
19 | name: 'details',
20 | path: '/Details',
21 | component: function(resolve) {
22 | require(['../components/Details'], resolve);
23 | }
24 | }, {
25 | path: '*',
26 | redirect: '/Hello'
27 | }];
28 |
29 | export default new VueRouter({
30 | routes
31 | });
--------------------------------------------------------------------------------
/src/stores/index.js:
--------------------------------------------------------------------------------
1 | // import 'babel-polyfill'
2 | import Vue from 'vue'
3 | import Vuex from 'vuex'
4 | import hello from './modules/hello'
5 | import charts from './modules/charts'
6 | import navi from './modules/navi'
7 | import user from './modules/user'
8 | import city from './modules/city'
9 | import details from './modules/details'
10 | import advice from './modules/advice'
11 |
12 | Vue.use(Vuex)
13 |
14 | export default new Vuex.Store({
15 | strict: process.env.NODE_ENV !== 'production',
16 | state: {
17 | isMobile: false,
18 | isShowLoading: true
19 | },
20 | mutations: {
21 | global_setMobile(state, bool) {
22 | state.isMobile = bool;
23 | },
24 | global_showLoading(state) {
25 | state.isShowLoading = true;
26 | },
27 | global_hideLoading(state) {
28 | state.isShowLoading = false;
29 | },
30 | },
31 | actions: {
32 | },
33 | modules: {
34 | hello,
35 | charts,
36 | navi,
37 | user,
38 | city,
39 | details,
40 | advice,
41 | }
42 |
43 | })
44 |
--------------------------------------------------------------------------------
/src/stores/modules/advice.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 |
3 | import VueResource from 'vue-resource'
4 | import Vue from 'vue'
5 |
6 | Vue.use(VueResource);
7 |
8 | export default {
9 | state: {
10 | canShow: false,
11 | now: {},
12 | daily: {},
13 | location: {},
14 | suggestion: {}
15 | },
16 | mutations: {
17 | advice_setData(state, data) {
18 | state.now = data.now;
19 | state.daily = data.daily.daily;
20 | state.location = data.daily.location;
21 | state.suggestion = data.suggestion.suggestion;
22 | state.canShow = true;
23 | }
24 | },
25 | actions: {
26 | advice_getData({commit, state}) {
27 | if (localStorage.city) {
28 | Vue.http.get(GLOBAL_PATH.JSONP_URI + 'getWeather', {
29 | params: {
30 | 'location': localStorage.city
31 | },
32 | }).then((res) => {
33 | commit('advice_setData', res.data)
34 | }, (err) => {
35 | console.log(err);
36 | });
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/stores/modules/charts.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 | import VueResource from 'vue-resource'
3 | import Vue from 'vue'
4 |
5 | Vue.use(VueResource);
6 |
7 | export default {
8 | state: {
9 | header: '实时空气质量指数(AQI)监测',
10 | jsonData: [],
11 | showWhichComponent: '',
12 | chartsArr: [
13 | 'lines',
14 | 'bar',
15 | 'geo',
16 | ],
17 | i: 0,
18 | },
19 | mutations: {
20 | charts_initComponent(state) {
21 | state.showWhichComponent = state.chartsArr[state.i];
22 | },
23 | charts_change(state) {
24 | state.i += 1;
25 | if(state.i >= state.chartsArr.length) {
26 | state.i = 0
27 | }
28 | state.showWhichComponent = state.chartsArr[state.i];
29 | },
30 | charts_changeData(state, args) {
31 | state.jsonData = args.data;
32 | }
33 | },
34 | actions: {
35 | charts_getData({ commit, state }) {
36 | if (state.jsonData.length > 0) {
37 | commit('global_hideLoading');
38 | commit('charts_initComponent');
39 | return;
40 | }
41 | // Vue.http.jsonp(GLOBAL_PATH.JSONP_URI + 'getData', {
42 | Vue.http.get(GLOBAL_PATH.JSONP_URI + 'getData', {
43 | params: {
44 | 'reqCollection': 'latest',
45 | 'reqArea': ''
46 | }
47 | }).then((res) => {
48 | let data = res.data;
49 | // let data = JSON.parse(res.data);
50 | commit({
51 | type: 'charts_changeData',
52 | data: data.data
53 | });
54 | commit('global_hideLoading');
55 | commit('charts_initComponent');
56 | }, (err) => {
57 | console.log(err);
58 | commit('global_hideLoading');
59 | });
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/stores/modules/city.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 | import VueResource from 'vue-resource'
3 | import Vue from 'vue'
4 |
5 | Vue.use(VueResource);
6 |
7 | export default {
8 | state: {
9 | dialogVisible: false,
10 | hasSelectedCity: false,
11 | city: '',
12 | showcity: false,
13 | cityList: sessionStorage.cityList ? sessionStorage.cityList.split(',') : []
14 | },
15 | mutations: {
16 | // city_initCity(state) {
17 | // state.hasSelectedCity = localStorage.city ? true : false;
18 | // state.city = localStorage.city ? localStorage.city : '';
19 | // },
20 | city_toggleselectCity(state) {
21 | state.hasSelectedCity = !state.hasSelectedCity;
22 | },
23 | city_setcityList(state, args) {
24 | state.cityList = args.cityList;
25 | sessionStorage.cityList = args.cityList;
26 | },
27 | city_selectCity(state, args) {
28 | state.dialogVisible = false;
29 | state.hasSelectedCity = !state.hasSelectedCity;
30 | if(args.target.innerText == '[重选]'){
31 | localStorage.removeItem('city');
32 | return;
33 | }
34 | state.city = args.target.innerText;
35 | localStorage.city = state.city;
36 | },
37 | city_showDialog(state) {
38 | state.dialogVisible = true;
39 | },
40 | city_hideDialog(state) {
41 | state.dialogVisible = false;
42 | },
43 | city_setCity(state, cityName) {
44 | state.hasSelectedCity = true;
45 | state.city = cityName;
46 | localStorage.city = cityName;
47 | }
48 | },
49 | actions: {
50 | city_showCity({ commit, state }) {
51 | // sessionStorage.removeItem('cityList')
52 | if(sessionStorage.cityList){
53 | commit('city_showDialog');
54 | return ;
55 | }
56 | commit('global_showLoading');
57 | Vue.http.get(GLOBAL_PATH.JSONP_URI + 'getAllCity').then((res) => {
58 | commit({
59 | type: 'city_setcityList',
60 | cityList: res.data
61 | })
62 | commit('city_showDialog');
63 | commit('global_hideLoading');
64 | }, (err) => {
65 | // console.log(err);
66 | commit('global_hideLoading');
67 | });
68 | },
69 | city_initCity({dispatch, commit}) {
70 | if(!sessionStorage.cityList){
71 | Vue.http.get(GLOBAL_PATH.JSONP_URI + 'getAllCity').then((res) => {
72 | commit({
73 | type: 'city_setcityList',
74 | cityList: res.data
75 | })
76 | }, (err) => {
77 | });
78 | }
79 |
80 | if(localStorage.city){
81 | commit('city_setCity', localStorage.city);
82 | dispatch('advice_getData');
83 | return ;
84 | }
85 | // 百度地图API功能
86 | // var map = new BMap.Map("allmap");
87 | var point = new BMap.Point(116.331398, 39.897445);
88 | // map.centerAndZoom(point, 12);
89 | function myFun(result) {
90 | var cityName = result.name.replace(/['市'|'县']/,()=>{
91 | return '';
92 | });
93 | // map.setCenter(cityName);
94 | console.log(cityName);
95 | if(cityName == '全国'){
96 | return ;
97 | }
98 | localStorage.city = cityName;
99 | commit('city_setCity', cityName);
100 | dispatch('advice_getData');
101 | }
102 | var myCity = new BMap.LocalCity();
103 | myCity.get(myFun);
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/src/stores/modules/details.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 | import VueResource from 'vue-resource'
3 | import Vue from 'vue'
4 |
5 | Vue.use(VueResource);
6 |
7 | export default {
8 | state: {
9 | msg: '详细数据报表',
10 | jsonData: [],
11 | searchVal: localStorage.city ? localStorage.city : '',
12 | dateVal: Date(),
13 | hourVal: '6:00',
14 | lastsearchVal: null,
15 | lasttimeVal: null,
16 | abledToSearch: true,
17 | index: null,
18 | },
19 | mutations: {
20 | details_toggleSearch(state) {
21 | state.abledToSearch = !state.abledToSearch;
22 | },
23 | details_successSearch(state, args) {
24 | state.jsonData = args.jsonData;
25 | state.lastsearchVal = args.lastsearchVal;
26 | },
27 | details_update_searchVal(state, val) {
28 | state.searchVal = val;
29 | },
30 | details_update_dateVal(state, val) {
31 | state.dateVal = val;
32 | },
33 | details_update_hourVal(state, val) {
34 | state.hourVal = val;
35 | },
36 | details_setIndex(state, val) {
37 | state.index = val;
38 | }
39 | },
40 | actions: {
41 | details_search({ commit, state, rootState }) {
42 | let dateStr = new Date(state.dateVal);
43 | dateStr = `${dateStr.getFullYear()}-${dateStr.getMonth()+1}-${dateStr.getDate()}_${state.hourVal}`
44 | // console.log(dateStr);
45 | let searchVal = state.searchVal.trim().replace(/[市|县]/, function(){return '';});
46 | if (state.lasttimeVal === dateStr && state.lasttimeVal === lastsearchVal || state.abledToSearch === false) {
47 | return false;
48 | }
49 | /* 如果查找全部且存在数据,不进行请求,直接读localStorage */
50 | if(sessionStorage[dateStr] && searchVal == ''){
51 | // console.log(JSON.parse(sessionStorage[dateStr]))
52 | let data = JSON.parse(sessionStorage[dateStr]);
53 | if(data.length !== 0) {
54 | commit({
55 | type: 'details_successSearch',
56 | jsonData: JSON.parse(sessionStorage[dateStr]),
57 | lastsearchVal: searchVal,
58 | lasttimeVal: dateStr
59 | })
60 | for(var i in data) {
61 | data[i].index = +i + 1;
62 | if(localStorage.city === data[i].city) {
63 | // sessionStorage.index = +i + 1;
64 | commit('details_setIndex', +i + 1);
65 | }
66 | }
67 | return ;
68 | }
69 | }
70 | commit('global_showLoading');
71 | commit('details_toggleSearch');
72 | // Vue.http.jsonp(GLOBAL_PATH.JSONP_URI + 'getData', {
73 | // Vue.http.post(GLOBAL_PATH.JSONP_URI + 'getData', {
74 | Vue.http.get(GLOBAL_PATH.JSONP_URI + 'getData', {
75 | params: {
76 | 'reqCollection': dateStr,
77 | 'reqArea': searchVal
78 | }
79 | }).then((res) => {
80 | var data = res.data;
81 | for(var i in data.data) {
82 | data.data[i].index = +i + 1;
83 | if(localStorage.city === data.data[i].city) {
84 | // sessionStorage.index = +i + 1;
85 | commit('details_setIndex', +i + 1);
86 | }
87 | }
88 | commit({
89 | type: 'details_successSearch',
90 | jsonData: data.data,
91 | lastsearchVal: searchVal,
92 | lasttimeVal: dateStr
93 | });
94 | if(searchVal == ''){
95 | sessionStorage[dateStr] = JSON.stringify(data.data);
96 | }
97 | commit('global_hideLoading');
98 | commit('details_toggleSearch');
99 | }, (err) => {
100 | commit('details_toggleSearch');
101 | commit('global_hideLoading');
102 | console.log(err);
103 | });
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/src/stores/modules/hello.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 |
3 | import VueResource from 'vue-resource'
4 | import { Message } from 'element-ui';
5 | import Vue from 'vue'
6 |
7 | Vue.use(VueResource);
8 |
9 | export default {
10 | state: {
11 | title: 'Welcome to Air Quality Monitoring Platform',
12 | discussionLists: [],
13 | input: ''
14 | },
15 | mutations: {
16 | hello_setDis(state, data) {
17 | state.discussionLists = data;
18 | },
19 | hello_update_list(state, data) {
20 | state.discussionLists.unshift(data);
21 | state.input = '';
22 | },
23 | hello_update_input(state, data) {
24 | state.input = data;
25 | },
26 | },
27 | actions: {
28 | hello_getData({commit, state}) {
29 | Vue.http.post(GLOBAL_PATH.JSONP_URI + 'discussion', {
30 | submit: false
31 | }).then((res) => {
32 | commit('hello_setDis', res.data);
33 | // console.log(res.data);
34 | }, (err) => {
35 | console.log(err);
36 | });
37 | },
38 | hello_submit({commit, rootState, state}) {
39 | let user = rootState.user.userName,
40 | area = rootState.city.city,
41 | content = state.input,
42 | timestamp = new Date().getTime();
43 | Vue.http.post(GLOBAL_PATH.JSONP_URI + 'discussion', {
44 | submit: true,
45 | user,
46 | area,
47 | content,
48 | timestamp
49 | }).then((res) => {
50 | // commit('hello_setDis', res.data);
51 | // console.log(res.data);
52 | if(res.data.status == 200) {
53 | commit('hello_update_list', {
54 | user,
55 | area,
56 | timestamp,
57 | content
58 | });
59 | Message.success('提交成功');
60 | } else {
61 | Message.error('提交失败');
62 | }
63 | }, (err) => {
64 | console.log(err);
65 | Message.error('提交失败');
66 | });
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/src/stores/modules/navi.js:
--------------------------------------------------------------------------------
1 | export default {
2 | state: {
3 | navLists: [{
4 | linkName: '首页',
5 | link: 'Hello'
6 | }, {
7 | linkName: '图表',
8 | link: 'Charts'
9 | }, {
10 | linkName: '详细数据',
11 | link: 'Details'
12 | }]
13 | }
14 | }
--------------------------------------------------------------------------------
/src/stores/modules/user.js:
--------------------------------------------------------------------------------
1 | import GLOBAL_PATH from 'static/path.js'
2 | import VueResource from 'vue-resource'
3 | import Vue from 'vue'
4 |
5 | Vue.use(VueResource);
6 | export default {
7 | state: {
8 | isSigned: false,
9 | userName: '',
10 | isSignIn: false,
11 | isSignUp: false,
12 | status: '用户名或密码错误',
13 | isErr: false,
14 | un: '',
15 | pw1: '',
16 | pw2: '',
17 | },
18 | mutations: {
19 | user_updateMessage(state, message) {
20 | state.pw1 = message;
21 | },
22 | user_changeStatus(state) {
23 | state.isSigned = !state.isSigned;
24 | },
25 | user_toSignIn(state) {
26 | state.isSignIn = true;
27 | },
28 | user_toSignUp(state) {
29 | state.isSignUp = true;
30 | },
31 | user_closeSignUp(state) {
32 | state.un = '';
33 | state.pw1 = '';
34 | state.pw2 = '';
35 | state.isSignUp = false;
36 | state.status = '用户名或密码错误';
37 | state.isErr = false;
38 | },
39 | user_closeSignIn(state) {
40 | state.un = '';
41 | state.pw1 = '';
42 | state.isSignIn = false;
43 | state.status = '用户名或密码错误';
44 | state.isErr = false;
45 | },
46 | user_cancelSignin(state) {
47 | state.userName = '';
48 | state.isSigned = false;
49 | localStorage.removeItem('userInfo');
50 | },
51 | user_showErr(state, args) {
52 | state.isErr = true;
53 | if(args){
54 | state.status = '用户名已存在或密码不相同';
55 | }
56 | },
57 | user_hideErr(state) {
58 | state.isErr = false;
59 | },
60 | user_resetStatus(state) {
61 | state.un = '';
62 | state.pw1 = '';
63 | state.pw2 = '';
64 | state.isSigned = false;
65 | state.userName = '';
66 | state.isSignIn = false;
67 | state.isSignUp = false;
68 | state.status = '用户名或密码错误';
69 | state.isErr = false;
70 | },
71 | user_initStatus(state) {
72 | if (localStorage.userInfo != undefined) {
73 | let userInfo = JSON.parse(localStorage.userInfo),
74 | expire = (new Date()).getTime();
75 | if (userInfo.userName && (userInfo.expire - expire >= 0)) {
76 | state.userName = userInfo.userName;
77 | state.isSigned = true;
78 | } else {
79 | state.isSigned = false;
80 | state.userName = '';
81 | localStorage.removeItem('userInfo');
82 | }
83 | }
84 | },
85 | user_setUserInfo(state, args) {
86 | state.userName = args.un;
87 | state.isSigned = true;
88 | state.isSignIn = false;
89 | state.isSignUp = false;
90 | },
91 | user_update_un(state, val) {
92 | state.un = val
93 | },
94 | user_update_pw1(state, val) {
95 | state.pw1 = val
96 | },
97 | user_update_pw2(state, val) {
98 | state.pw2 = val
99 | }
100 | },
101 | actions: {
102 | user_toSignIn({ commit }) {
103 | commit('user_resetStatus');
104 | commit('user_toSignIn');
105 | },
106 | user_toSignUp({ commit }) {
107 | commit('user_resetStatus');
108 | commit('user_toSignUp');
109 | },
110 | user_closePopup({ commit }) {
111 | commit('user_resetStatus');
112 | },
113 | user_resetStatus({ commit }) {
114 | commit('user_resetStatus');
115 | },
116 | user_initStatus({ commit }) {
117 | commit('user_resetStatus');
118 | commit('user_initStatus');
119 | },
120 | user_checkInput({ commit, state }, logType) {
121 | commit('user_hideErr');
122 | if (!state.un || !state.pw1) {
123 | commit('user_showErr');
124 | return false;
125 | }
126 | commit('global_showLoading');
127 | switch (logType) {
128 | //登录
129 | case 1:
130 | // Vue.http.jsonp(GLOBAL_PATH.JSONP_URI + 'signin', {
131 | Vue.http.post(GLOBAL_PATH.JSONP_URI + 'signin', {
132 | // params: {
133 | un: state.un,
134 | pw: state.pw1
135 | // }
136 | }).then((res) => {
137 | let data = res.data;
138 | // let data = JSON.parse(res.data);
139 | if (data.status == 200) {
140 | commit({
141 | type: 'user_setUserInfo',
142 | un: data.un
143 | });
144 | localStorage.userInfo = JSON.stringify({
145 | userName: data.un,
146 | expire: new Date().getTime() + 259200000
147 | });
148 | } else {
149 | commit('user_showErr');
150 | }
151 | commit('global_hideLoading');
152 | }, (err) => {
153 | console.log(err);
154 | commit('global_hideLoading');
155 | });
156 | break;
157 | //注册
158 | case 2:
159 | if (state.pw1 !== state.pw2) {
160 | commit({
161 | type: 'user_showErr',
162 | text: '用户名已存在或密码不相同'
163 | });
164 | commit('global_hideLoading');
165 | return false;
166 | }
167 | // Vue.http.jsonp(GLOBAL_PATH.JSONP_URI + 'signup', {
168 | Vue.http.post(GLOBAL_PATH.JSONP_URI + 'signup', {
169 | // params: {
170 | un: state.un,
171 | pw: state.pw1
172 | // }
173 | }).then((res) => {
174 | let data = res.data;
175 | // let data = JSON.parse(res.data);
176 | if (data.status == 200) {
177 | commit({
178 | type: 'user_setUserInfo',
179 | un: data.un
180 | });
181 | localStorage.userInfo = JSON.stringify({
182 | userName: data.un,
183 | expire: new Date().getTime() + 259200000
184 | });
185 | } else {
186 | commit({
187 | type: 'user_showErr',
188 | text: '用户名已存在或密码不相同'
189 | });
190 | }
191 | commit('global_hideLoading');
192 | }, (err) => {
193 | console.log(err);
194 | commit('global_hideLoading');
195 | });
196 | break;
197 | }
198 | }
199 | }
200 | }
201 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/.gitkeep
--------------------------------------------------------------------------------
/static/data/a.json:
--------------------------------------------------------------------------------
1 | {
2 | "sites": [
3 | { "name":"菜鸟教程" , "url":"www.runoob.com" },
4 | { "name":"google" , "url":"www.google.com" },
5 | { "name":"微博" , "url":"www.weibo.com" }
6 | ]
7 | }
--------------------------------------------------------------------------------
/static/data/path.js:
--------------------------------------------------------------------------------
1 | export default {
2 | JSONP_URI: 'http://123.207.163.63:8888/'
3 | }
4 |
--------------------------------------------------------------------------------
/static/img/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/Thumbs.db
--------------------------------------------------------------------------------
/static/img/a.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/a.jpg
--------------------------------------------------------------------------------
/static/img/icons/0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/0.png
--------------------------------------------------------------------------------
/static/img/icons/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/1.png
--------------------------------------------------------------------------------
/static/img/icons/10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/10.png
--------------------------------------------------------------------------------
/static/img/icons/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/11.png
--------------------------------------------------------------------------------
/static/img/icons/12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/12.png
--------------------------------------------------------------------------------
/static/img/icons/13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/13.png
--------------------------------------------------------------------------------
/static/img/icons/14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/14.png
--------------------------------------------------------------------------------
/static/img/icons/15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/15.png
--------------------------------------------------------------------------------
/static/img/icons/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/16.png
--------------------------------------------------------------------------------
/static/img/icons/17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/17.png
--------------------------------------------------------------------------------
/static/img/icons/18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/18.png
--------------------------------------------------------------------------------
/static/img/icons/19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/19.png
--------------------------------------------------------------------------------
/static/img/icons/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/2.png
--------------------------------------------------------------------------------
/static/img/icons/20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/20.png
--------------------------------------------------------------------------------
/static/img/icons/21.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/21.png
--------------------------------------------------------------------------------
/static/img/icons/22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/22.png
--------------------------------------------------------------------------------
/static/img/icons/23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/23.png
--------------------------------------------------------------------------------
/static/img/icons/24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/24.png
--------------------------------------------------------------------------------
/static/img/icons/25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/25.png
--------------------------------------------------------------------------------
/static/img/icons/26.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/26.png
--------------------------------------------------------------------------------
/static/img/icons/27.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/27.png
--------------------------------------------------------------------------------
/static/img/icons/28.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/28.png
--------------------------------------------------------------------------------
/static/img/icons/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/29.png
--------------------------------------------------------------------------------
/static/img/icons/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/3.png
--------------------------------------------------------------------------------
/static/img/icons/30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/30.png
--------------------------------------------------------------------------------
/static/img/icons/31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/31.png
--------------------------------------------------------------------------------
/static/img/icons/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/32.png
--------------------------------------------------------------------------------
/static/img/icons/33.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/33.png
--------------------------------------------------------------------------------
/static/img/icons/34.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/34.png
--------------------------------------------------------------------------------
/static/img/icons/35.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/35.png
--------------------------------------------------------------------------------
/static/img/icons/36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/36.png
--------------------------------------------------------------------------------
/static/img/icons/37.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/37.png
--------------------------------------------------------------------------------
/static/img/icons/38.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/38.png
--------------------------------------------------------------------------------
/static/img/icons/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/4.png
--------------------------------------------------------------------------------
/static/img/icons/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/5.png
--------------------------------------------------------------------------------
/static/img/icons/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/6.png
--------------------------------------------------------------------------------
/static/img/icons/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/7.png
--------------------------------------------------------------------------------
/static/img/icons/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/8.png
--------------------------------------------------------------------------------
/static/img/icons/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/9.png
--------------------------------------------------------------------------------
/static/img/icons/99.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/99.png
--------------------------------------------------------------------------------
/static/img/icons/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/linfuxiang/vueFoo/6c07052de6f9a9c8a6ea27eab15e4936319eae9f/static/img/icons/Thumbs.db
--------------------------------------------------------------------------------