├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── README.md
├── build
├── build.js
├── dev-client.js
├── dev-server.js
├── utils.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
└── prod.env.js
├── package.json
├── src
├── App.vue
├── api
│ ├── index.js
│ └── resources.js
├── assets
│ ├── font
│ │ ├── css
│ │ │ ├── font-awesome.css
│ │ │ └── font-awesome.min.css
│ │ └── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.svg
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ └── fontawesome-webfont.woff2
│ ├── img
│ │ ├── avatar.png
│ │ ├── avatar04.png
│ │ ├── avatar2.png
│ │ ├── avatar3.png
│ │ ├── avatar5.png
│ │ ├── boxed-bg.jpg
│ │ ├── boxed-bg.png
│ │ ├── credit
│ │ │ ├── american-express.png
│ │ │ ├── cirrus.png
│ │ │ ├── mastercard.png
│ │ │ ├── mestro.png
│ │ │ ├── paypal.png
│ │ │ ├── paypal2.png
│ │ │ └── visa.png
│ │ ├── default-50x50.gif
│ │ ├── icons.png
│ │ ├── photo1.png
│ │ ├── photo2.png
│ │ ├── photo3.jpg
│ │ ├── photo4.jpg
│ │ ├── user1-128x128.jpg
│ │ ├── user2-160x160.jpg
│ │ ├── user3-128x128.jpg
│ │ ├── user4-128x128.jpg
│ │ ├── user5-128x128.jpg
│ │ ├── user6-128x128.jpg
│ │ ├── user7-128x128.jpg
│ │ └── user8-128x128.jpg
│ ├── logo.png
│ └── scss
│ │ ├── style.scss
│ │ └── variables.scss
├── components
│ ├── NavLeft.vue
│ └── NavTop.vue
├── config.js
├── index.html
├── main.js
├── routers.js
├── services
│ └── auth
│ │ └── index.js
├── views
│ ├── Main.vue
│ ├── calendar
│ │ └── Calendar.vue
│ ├── charts
│ │ ├── Chartjs.vue
│ │ ├── Flot.vue
│ │ ├── Inline.vue
│ │ └── Morris.vue
│ ├── dashboard
│ │ ├── Index.vue
│ │ └── Index2.vue
│ ├── elements
│ │ ├── Buttons.vue
│ │ ├── General.vue
│ │ ├── Icons.vue
│ │ ├── Modals.vue
│ │ ├── Sliders.vue
│ │ └── Timeline.vue
│ ├── examples
│ │ ├── 404.vue
│ │ ├── 500.vue
│ │ ├── Blank.vue
│ │ ├── Invoice.vue
│ │ ├── Lockscreen.vue
│ │ ├── Login.vue
│ │ ├── Pace.vue
│ │ ├── Profile.vue
│ │ └── Register.vue
│ ├── forms
│ │ ├── Advance.vue
│ │ ├── Editors.vue
│ │ └── General.vue
│ ├── layout
│ │ ├── Boxed.vue
│ │ ├── Collapsed.vue
│ │ ├── Fixed.vue
│ │ └── TopNav.vue
│ ├── mailbox
│ │ ├── Compose.vue
│ │ ├── Inbox.vue
│ │ └── Read.vue
│ ├── tables
│ │ ├── Data.vue
│ │ └── Simple.vue
│ └── widgets
│ │ └── Widgets.vue
└── vuex
│ ├── actions.js
│ ├── modules
│ ├── loading.js
│ ├── showmsg.js
│ └── wechat.js
│ ├── store.js
│ └── types.js
└── static
└── .gitkeep
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015", "stage-2"],
3 | "plugins": ["transform-runtime"],
4 | "comments": false
5 | }
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | build/*.js
2 | config/*.js
3 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | parser: 'babel-eslint',
4 | parserOptions: {
5 | sourceType: 'module'
6 | },
7 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
8 | extends: 'standard',
9 | // required to lint *.vue files
10 | plugins: [
11 | 'html'
12 | ],
13 | // add your custom rules here
14 | 'rules': {
15 | // allow paren-less arrow functions
16 | 'arrow-parens': 0,
17 | // allow async-await
18 | 'generator-star-spacing': 0,
19 | // allow debugger during development
20 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | dist/
4 | npm-debug.log
5 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue2-admin
2 |
3 | > Admin control Panel Theme That Is Based On [Vue2](https://github.com/vuejs/vue) & [AdminLTE](https://github.com/almasaeed2010/AdminLTE)
4 |
5 | ## Build Setup
6 |
7 | ``` bash
8 | # install dependencies
9 | npm install
10 |
11 | # serve with hot reload at localhost:8080
12 | npm run dev
13 |
14 | # build for production with minification
15 | npm run build
16 | ```
17 |
18 | For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
19 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | // https://github.com/shelljs/shelljs
2 | require('shelljs/global')
3 | env.NODE_ENV = 'production'
4 |
5 | var path = require('path')
6 | var config = require('../config')
7 | var ora = require('ora')
8 | var webpack = require('webpack')
9 | var webpackConfig = require('./webpack.prod.conf')
10 |
11 | console.log(
12 | ' Tip:\n' +
13 | ' Built files are meant to be served over an HTTP server.\n' +
14 | ' Opening index.html over file:// won\'t work.\n'
15 | )
16 |
17 | var spinner = ora('building for production...')
18 | spinner.start()
19 |
20 | var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
21 | rm('-rf', assetsPath)
22 | mkdir('-p', assetsPath)
23 | cp('-R', 'static/*', assetsPath)
24 |
25 | webpack(webpackConfig, function (err, stats) {
26 | spinner.stop()
27 | if (err) throw err
28 | process.stdout.write(stats.toString({
29 | colors: true,
30 | modules: false,
31 | children: false,
32 | chunks: false,
33 | chunkModules: false
34 | }) + '\n')
35 | })
36 |
--------------------------------------------------------------------------------
/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 | var config = require('../config')
2 | if (!process.env.NODE_ENV) process.env.NODE_ENV = config.dev.env
3 | var path = require('path')
4 | var express = require('express')
5 | var webpack = require('webpack')
6 | var opn = require('opn')
7 | var proxyMiddleware = require('http-proxy-middleware')
8 | var webpackConfig = require('./webpack.dev.conf')
9 |
10 | // default port where dev server listens for incoming traffic
11 | var port = process.env.PORT || config.dev.port
12 | // Define HTTP proxies to your custom API backend
13 | // https://github.com/chimurai/http-proxy-middleware
14 | var proxyTable = config.dev.proxyTable
15 |
16 | var app = express()
17 | var compiler = webpack(webpackConfig)
18 |
19 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
20 | publicPath: webpackConfig.output.publicPath,
21 | stats: {
22 | colors: true,
23 | chunks: false
24 | }
25 | })
26 |
27 | var hotMiddleware = require('webpack-hot-middleware')(compiler)
28 | // force page reload when html-webpack-plugin template changes
29 | compiler.plugin('compilation', function (compilation) {
30 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
31 | hotMiddleware.publish({ action: 'reload' })
32 | cb()
33 | })
34 | })
35 |
36 | // proxy api requests
37 | Object.keys(proxyTable).forEach(function (context) {
38 | var options = proxyTable[context]
39 | if (typeof options === 'string') {
40 | options = { target: options }
41 | }
42 | app.use(proxyMiddleware(context, options))
43 | })
44 |
45 | // handle fallback for HTML5 history API
46 | app.use(require('connect-history-api-fallback')())
47 |
48 | // serve webpack bundle output
49 | app.use(devMiddleware)
50 |
51 | // enable hot-reload and state-preserving
52 | // compilation error display
53 | app.use(hotMiddleware)
54 |
55 | // serve pure static assets
56 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
57 | app.use(staticPath, express.static('./static'))
58 |
59 | module.exports = app.listen(port, function (err) {
60 | if (err) {
61 | console.log(err)
62 | return
63 | }
64 | var uri = 'http://localhost:' + port
65 | console.log('Listening at ' + uri + '\n')
66 | opn(uri)
67 | })
68 |
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 |
5 | exports.assetsPath = function (_path) {
6 | var assetsSubDirectory = process.env.NODE_ENV === 'production'
7 | ? config.build.assetsSubDirectory
8 | : config.dev.assetsSubDirectory
9 | return path.posix.join(assetsSubDirectory, _path)
10 | }
11 |
12 | exports.cssLoaders = function (options) {
13 | options = options || {}
14 | // generate loader string to be used with extract text plugin
15 | function generateLoaders (loaders) {
16 | var sourceLoader = loaders.map(function (loader) {
17 | var extraParamChar
18 | if (/\?/.test(loader)) {
19 | loader = loader.replace(/\?/, '-loader?')
20 | extraParamChar = '&'
21 | } else {
22 | loader = loader + '-loader'
23 | extraParamChar = '?'
24 | }
25 | return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
26 | }).join('!')
27 |
28 | // Extract CSS when that option is specified
29 | // (which is the case during production build)
30 | if (options.extract) {
31 | return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
32 | } else {
33 | return ['vue-style-loader', sourceLoader].join('!')
34 | }
35 | }
36 |
37 | // http://vuejs.github.io/vue-loader/configurations/extract-css.html
38 | return {
39 | css: generateLoaders(['css']),
40 | postcss: generateLoaders(['css']),
41 | less: generateLoaders(['css', 'less']),
42 | sass: generateLoaders(['css', 'sass?indentedSyntax']),
43 | scss: generateLoaders(['css', 'sass']),
44 | stylus: generateLoaders(['css', 'stylus']),
45 | styl: generateLoaders(['css', 'stylus'])
46 | }
47 | }
48 |
49 | // Generate loaders for standalone style files (outside of .vue)
50 | exports.styleLoaders = function (options) {
51 | var output = []
52 | var loaders = exports.cssLoaders(options)
53 | for (var extension in loaders) {
54 | var loader = loaders[extension]
55 | output.push({
56 | test: new RegExp('\\.' + extension + '$'),
57 | loader: loader
58 | })
59 | }
60 | return output
61 | }
62 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var projectRoot = path.resolve(__dirname, '../')
5 | var webpack = require('webpack')
6 |
7 | var env = process.env.NODE_ENV
8 | // check env & config/index.js to decide weither to enable CSS Sourcemaps for the
9 | // various preprocessor loaders added to vue-loader at the end of this file
10 | var cssSourceMapDev = (env === 'development' && config.dev.cssSourceMap)
11 | var cssSourceMapProd = (env === 'production' && config.build.productionSourceMap)
12 | var useCssSourceMap = cssSourceMapDev || cssSourceMapProd
13 |
14 | module.exports = {
15 | entry: {
16 | app: './src/main.js'
17 | },
18 | output: {
19 | path: config.build.assetsRoot,
20 | publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath,
21 | filename: '[name].js'
22 | },
23 | resolve: {
24 | extensions: ['', '.js', '.vue'],
25 | fallback: [path.join(__dirname, '../node_modules')],
26 | alias: {
27 | 'vue$': 'vue/dist/vue',
28 | 'src': path.resolve(__dirname, '../src'),
29 | 'assets': path.resolve(__dirname, '../src/assets'),
30 | 'components': path.resolve(__dirname, '../src/components')
31 | }
32 | },
33 | resolveLoader: {
34 | fallback: [path.join(__dirname, '../node_modules')]
35 | },
36 | module: {
37 | // preLoaders: [
38 | // {
39 | // test: /\.vue$/,
40 | // loader: 'eslint',
41 | // include: projectRoot,
42 | // exclude: /node_modules/
43 | // },
44 | // {
45 | // test: /\.js$/,
46 | // loader: 'eslint',
47 | // include: projectRoot,
48 | // exclude: /node_modules/
49 | // }
50 | // ],
51 | loaders: [
52 | {
53 | test: /\.vue$/,
54 | loader: 'vue'
55 | },
56 | {
57 | test: /\.js$/,
58 | loader: 'babel',
59 | include: projectRoot,
60 | exclude: /node_modules/
61 | },
62 | {
63 | test: /\.json$/,
64 | loader: 'json'
65 | },
66 | {
67 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
68 | loader: 'url',
69 | query: {
70 | limit: 10000,
71 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
72 | }
73 | },
74 | {
75 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
76 | loader: 'url',
77 | query: {
78 | limit: 10000,
79 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
80 | }
81 | }
82 | ]
83 | },
84 | // eslint: {
85 | // formatter: require('eslint-friendly-formatter')
86 | // },
87 | vue: {
88 | loaders: utils.cssLoaders({ sourceMap: useCssSourceMap }),
89 | postcss: [
90 | require('autoprefixer')({
91 | browsers: ['last 2 versions']
92 | })
93 | ]
94 | },
95 | plugins: [
96 | new webpack.ProvidePlugin({
97 | $: "jquery",
98 | jQuery: "jquery"
99 | })
100 | ],
101 | }
102 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | var config = require('../config')
2 | var webpack = require('webpack')
3 | var merge = require('webpack-merge')
4 | var utils = require('./utils')
5 | var baseWebpackConfig = require('./webpack.base.conf')
6 | var HtmlWebpackPlugin = require('html-webpack-plugin')
7 |
8 | // add hot-reload related code to entry chunks
9 | Object.keys(baseWebpackConfig.entry).forEach(function (name) {
10 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
11 | })
12 |
13 | module.exports = merge(baseWebpackConfig, {
14 | module: {
15 | loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
16 | },
17 | // eval-source-map is faster for development
18 | devtool: '#eval-source-map',
19 | plugins: [
20 | new webpack.DefinePlugin({
21 | 'process.env': config.dev.env
22 | }),
23 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
24 | new webpack.optimize.OccurenceOrderPlugin(),
25 | new webpack.HotModuleReplacementPlugin(),
26 | new webpack.NoErrorsPlugin(),
27 | // https://github.com/ampedandwired/html-webpack-plugin
28 | new HtmlWebpackPlugin({
29 | filename: 'index.html',
30 | template: 'src/index.html',
31 | inject: true
32 | })
33 | ]
34 | })
35 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var utils = require('./utils')
4 | var webpack = require('webpack')
5 | var merge = require('webpack-merge')
6 | var baseWebpackConfig = require('./webpack.base.conf')
7 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
8 | var HtmlWebpackPlugin = require('html-webpack-plugin')
9 | var env = config.build.env
10 |
11 | var webpackConfig = merge(baseWebpackConfig, {
12 | module: {
13 | loaders: utils.styleLoaders({ sourceMap: config.build.productionSourceMap, extract: true })
14 | },
15 | devtool: config.build.productionSourceMap ? '#source-map' : false,
16 | output: {
17 | path: config.build.assetsRoot,
18 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
19 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
20 | },
21 | vue: {
22 | loaders: utils.cssLoaders({
23 | sourceMap: config.build.productionSourceMap,
24 | extract: true
25 | })
26 | },
27 | plugins: [
28 | // http://vuejs.github.io/vue-loader/workflow/production.html
29 | new webpack.DefinePlugin({
30 | 'process.env': env
31 | }),
32 | new webpack.optimize.UglifyJsPlugin({
33 | compress: {
34 | warnings: false
35 | }
36 | }),
37 | new webpack.optimize.OccurenceOrderPlugin(),
38 | // extract css into its own file
39 | new ExtractTextPlugin(utils.assetsPath('css/[name].[contenthash].css')),
40 | // generate dist index.html with correct asset hash for caching.
41 | // you can customize output by editing /index.html
42 | // see https://github.com/ampedandwired/html-webpack-plugin
43 | new HtmlWebpackPlugin({
44 | filename: config.build.index,
45 | template: 'src/index.html',
46 | inject: true,
47 | minify: {
48 | removeComments: true,
49 | collapseWhitespace: true,
50 | removeAttributeQuotes: true
51 | // more options:
52 | // https://github.com/kangax/html-minifier#options-quick-reference
53 | },
54 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
55 | chunksSortMode: 'dependency'
56 | }),
57 | // split vendor js into its own file
58 | new webpack.optimize.CommonsChunkPlugin({
59 | name: 'vendor',
60 | minChunks: function (module, count) {
61 | // any required modules inside node_modules are extracted to vendor
62 | return (
63 | module.resource &&
64 | /\.js$/.test(module.resource) &&
65 | module.resource.indexOf(
66 | path.join(__dirname, '../node_modules')
67 | ) === 0
68 | )
69 | }
70 | }),
71 | // extract webpack runtime and module manifest to its own file in order to
72 | // prevent vendor hash from being updated whenever app bundle is updated
73 | new webpack.optimize.CommonsChunkPlugin({
74 | name: 'manifest',
75 | chunks: ['vendor']
76 | })
77 | ]
78 | })
79 |
80 | if (config.build.productionGzip) {
81 | var CompressionWebpackPlugin = require('compression-webpack-plugin')
82 |
83 | webpackConfig.plugins.push(
84 | new CompressionWebpackPlugin({
85 | asset: '[path].gz[query]',
86 | algorithm: 'gzip',
87 | test: new RegExp(
88 | '\\.(' +
89 | config.build.productionGzipExtensions.join('|') +
90 | ')$'
91 | ),
92 | threshold: 10240,
93 | minRatio: 0.8
94 | })
95 | )
96 | }
97 |
98 | module.exports = webpackConfig
99 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | env: require('./prod.env'),
7 | index: path.resolve(__dirname, '../dist/index.html'),
8 | assetsRoot: path.resolve(__dirname, '../dist'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '/',
11 | productionSourceMap: true,
12 | // Gzip off by default as many popular static hosts such as
13 | // Surge or Netlify already gzip all static assets for you.
14 | // Before setting to `true`, make sure to:
15 | // npm install --save-dev compression-webpack-plugin
16 | productionGzip: false,
17 | productionGzipExtensions: ['js', 'css']
18 | },
19 | dev: {
20 | env: require('./dev.env'),
21 | port: 9000,
22 | assetsSubDirectory: 'static',
23 | assetsPublicPath: '/',
24 | proxyTable: {},
25 | // CSS Sourcemaps off by default because relative paths are "buggy"
26 | // with this option, according to the CSS-Loader README
27 | // (https://github.com/webpack/css-loader#sourcemaps)
28 | // In our experience, they generally work as expected,
29 | // just be aware of this issue when enabling this option.
30 | cssSourceMap: false
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue2-admin",
3 | "version": "1.0.0",
4 | "description": "Admin control Panel Theme That Is Based On Vue2 & AdminLTE",
5 | "author": "pigeon0312@gmail.com",
6 | "private": true,
7 | "scripts": {
8 | "dev": "node build/dev-server.js",
9 | "build": "node build/build.js",
10 | "lint": "eslint --ext .js,.vue src"
11 | },
12 | "dependencies": {
13 | "admin-lte": "^2.3.6",
14 | "animate.css": "^3.5.2",
15 | "bootstrap": "^3.3.7",
16 | "jquery": "^3.1.1",
17 | "vue": "^2.0.1",
18 | "vue-resource": "^1.0.3",
19 | "vue-router": "^2.0.0",
20 | "vuex": "^2.0.0"
21 | },
22 | "devDependencies": {
23 | "autoprefixer": "^6.4.0",
24 | "babel-core": "^6.0.0",
25 | "babel-eslint": "^7.0.0",
26 | "babel-loader": "^6.0.0",
27 | "babel-plugin-transform-runtime": "^6.0.0",
28 | "babel-preset-es2015": "^6.0.0",
29 | "babel-preset-stage-2": "^6.0.0",
30 | "babel-register": "^6.0.0",
31 | "connect-history-api-fallback": "^1.1.0",
32 | "css-loader": "^0.25.0",
33 | "eslint": "^3.7.1",
34 | "eslint-friendly-formatter": "^2.0.5",
35 | "eslint-loader": "^1.5.0",
36 | "eslint-plugin-html": "^1.3.0",
37 | "eslint-config-standard": "^6.1.0",
38 | "eslint-plugin-promise": "^2.0.1",
39 | "eslint-plugin-standard": "^2.0.1",
40 | "eventsource-polyfill": "^0.9.6",
41 | "express": "^4.13.3",
42 | "extract-text-webpack-plugin": "^1.0.1",
43 | "file-loader": "^0.9.0",
44 | "function-bind": "^1.0.2",
45 | "html-webpack-plugin": "^2.8.1",
46 | "http-proxy-middleware": "^0.17.2",
47 | "json-loader": "^0.5.4",
48 | "node-sass": "^3.10.1",
49 | "sass-loader": "^4.0.2",
50 | "opn": "^4.0.2",
51 | "ora": "^0.3.0",
52 | "shelljs": "^0.7.4",
53 | "url-loader": "^0.5.7",
54 | "vue-loader": "^9.4.0",
55 | "vue-style-loader": "^1.0.0",
56 | "webpack": "^1.13.2",
57 | "webpack-dev-middleware": "^1.8.3",
58 | "webpack-hot-middleware": "^2.12.2",
59 | "webpack-merge": "^0.14.1"
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
15 |
16 |
23 |
--------------------------------------------------------------------------------
/src/api/index.js:
--------------------------------------------------------------------------------
1 | import {Login} from './resources'
2 | import {saveStorage} from '../services/auth'
3 |
4 | // get: {method: 'GET'},
5 | // save: {method: 'POST'},
6 | // query: {method: 'GET'},
7 | // update: {method: 'PUT'},
8 | // remove: {method: 'DELETE'},
9 | // delete: {method: 'DELETE'}
10 |
11 | export default {
12 | login(context, user){
13 | return Login.save(user).then(response => {
14 | if(!response.ok){
15 | return context.$message({ message: "接口访问失败", type: 'error' });
16 | }
17 | const data = response.data;
18 | if(data.success){
19 | let token = data.data;
20 | saveStorage("token", token);
21 | context.$router.push({name: "staffs"});
22 | } else {
23 | context.$message({ message: data.data.error, type: 'error' });
24 | }
25 | }, response => {
26 |
27 | })
28 | }
29 | }
--------------------------------------------------------------------------------
/src/api/resources.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import VueResource from 'vue-resource'
3 | import {API_ROOT} from '../config'
4 | import {getStorage} from '../services/auth'
5 |
6 | /**
7 | * vue http config
8 | */
9 | Vue.use(VueResource)
10 | Vue.http.options.root = API_ROOT
11 | // Vue.http.options.crossOrigin = true
12 | // Vue.http.options.credentials = true
13 | // Vue.http.options.emulateJSON = true;
14 | // Vue.http.options.emulateHTTP = true;
15 | // Vue.http.headers.common['Authorization'] = 'Bearer 65fb73a5388d95f9a786f361ff205dd6';
16 |
17 | Vue.http.interceptors.push((request, next) => {
18 | // 这里对请求体进行处理
19 | // request.headers = request.headers || {}
20 | const token = getStorage('token')
21 | Vue.http.headers.common['Authorization'] = token ? 'Bearer ' + token.accessToken : ''
22 | next((response) => {
23 | // 这里可以对响应的结果进行处理
24 | let data = response.data || {}
25 | if (data.hasOwnProperty('success')) {
26 | // response.data = data.data;
27 | if (response.data.code === 401) {
28 | // alert(response.data.error)
29 | }
30 | }
31 | })
32 | })
33 |
34 | export const Login = Vue.resource(API_ROOT + 'token')
35 | export const Current = Vue.resource(API_ROOT + 'current')
36 | export const Marketer = Vue.resource(API_ROOT + 'marketer{?cityId}')
37 | export const MarketerLocus = Vue.resource(API_ROOT + 'marketer_locus{/id}')
38 | export const Faults = Vue.resource(API_ROOT + 'faults{?begin?status}')
39 | export const BikeList = Vue.resource(API_ROOT + 'bike/list{/status}')
--------------------------------------------------------------------------------
/src/assets/font/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/font/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/src/assets/font/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/font/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/src/assets/font/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/font/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/src/assets/font/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/font/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/src/assets/font/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/font/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/src/assets/img/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/avatar.png
--------------------------------------------------------------------------------
/src/assets/img/avatar04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/avatar04.png
--------------------------------------------------------------------------------
/src/assets/img/avatar2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/avatar2.png
--------------------------------------------------------------------------------
/src/assets/img/avatar3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/avatar3.png
--------------------------------------------------------------------------------
/src/assets/img/avatar5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/avatar5.png
--------------------------------------------------------------------------------
/src/assets/img/boxed-bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/boxed-bg.jpg
--------------------------------------------------------------------------------
/src/assets/img/boxed-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/boxed-bg.png
--------------------------------------------------------------------------------
/src/assets/img/credit/american-express.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/american-express.png
--------------------------------------------------------------------------------
/src/assets/img/credit/cirrus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/cirrus.png
--------------------------------------------------------------------------------
/src/assets/img/credit/mastercard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/mastercard.png
--------------------------------------------------------------------------------
/src/assets/img/credit/mestro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/mestro.png
--------------------------------------------------------------------------------
/src/assets/img/credit/paypal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/paypal.png
--------------------------------------------------------------------------------
/src/assets/img/credit/paypal2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/paypal2.png
--------------------------------------------------------------------------------
/src/assets/img/credit/visa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/credit/visa.png
--------------------------------------------------------------------------------
/src/assets/img/default-50x50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/default-50x50.gif
--------------------------------------------------------------------------------
/src/assets/img/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/icons.png
--------------------------------------------------------------------------------
/src/assets/img/photo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/photo1.png
--------------------------------------------------------------------------------
/src/assets/img/photo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/photo2.png
--------------------------------------------------------------------------------
/src/assets/img/photo3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/photo3.jpg
--------------------------------------------------------------------------------
/src/assets/img/photo4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/photo4.jpg
--------------------------------------------------------------------------------
/src/assets/img/user1-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user1-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user2-160x160.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user2-160x160.jpg
--------------------------------------------------------------------------------
/src/assets/img/user3-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user3-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user4-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user4-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user5-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user5-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user6-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user6-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user7-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user7-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/img/user8-128x128.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/img/user8-128x128.jpg
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/src/assets/logo.png
--------------------------------------------------------------------------------
/src/assets/scss/variables.scss:
--------------------------------------------------------------------------------
1 | $blue: #20A0FF;
2 | $tiffany-blue: #81d8d0;
--------------------------------------------------------------------------------
/src/components/NavLeft.vue:
--------------------------------------------------------------------------------
1 |
2 |
274 |
275 |
276 |
280 |
--------------------------------------------------------------------------------
/src/components/NavTop.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | A LT
7 |
8 | Admin LTE
9 |
10 |
11 |
12 |
13 |
16 |
17 |
260 |
261 |
262 |
263 |
264 |
--------------------------------------------------------------------------------
/src/config.js:
--------------------------------------------------------------------------------
1 | export const API_ROOT = '/api/v1/'
2 |
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 管理系统
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | // The Vue build version to load with the `import` command
2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 | import Vue from 'vue'
4 | import router from './routers';
5 |
6 | import App from './App'
7 |
8 |
9 | const app = new Vue({
10 | router,
11 | ...App,
12 | });
13 |
14 | app.$mount('#app');
15 |
--------------------------------------------------------------------------------
/src/routers.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import Router from 'vue-router';
3 |
4 | // import {isLogin} from './services/auth'
5 |
6 | import Main from './views/Main'
7 | import Index from './views/dashboard/Index'
8 | import Index2 from './views/dashboard/Index2'
9 |
10 | import Topnav from './views/layout/TopNav'
11 | import Boxed from './views/layout/Boxed'
12 | import Fixed from './views/layout/Fixed'
13 | import Collapsed from './views/layout/Collapsed'
14 |
15 | import Widgets from './views/widgets/Widgets'
16 |
17 | import Chartjs from './views/charts/Chartjs'
18 | import Morris from './views/charts/Morris'
19 | import Flot from './views/charts/Flot'
20 | import Inline from './views/charts/Inline'
21 |
22 | import General from './views/elements/General'
23 | import Icons from './views/elements/Icons'
24 | import Buttons from './views/elements/Buttons'
25 | import Sliders from './views/elements/Sliders'
26 | import Timeline from './views/elements/Timeline'
27 | import Modals from './views/elements/Modals'
28 |
29 | import Generalform from './views/forms/General'
30 | import Advance from './views/forms/Advance'
31 | import Editors from './views/forms/Editors'
32 |
33 | import SimpleTable from './views/tables/Simple'
34 | import DataTable from './views/tables/Data'
35 |
36 | import Calendar from './views/calendar/Calendar'
37 |
38 | import Inbox from './views/mailbox/Inbox'
39 | import Compose from './views/mailbox/Compose'
40 | import ReadMail from './views/mailbox/Read'
41 |
42 | import Invoice from './views/examples/Invoice'
43 | import Profile from './views/examples/Profile'
44 | import Login from './views/examples/Login'
45 | import Register from './views/examples/Register'
46 | import Lockscreen from './views/examples/Lockscreen'
47 | import Notfound from './views/examples/404'
48 | import Servererror from './views/examples/500'
49 | import Blank from './views/examples/Blank'
50 | import Pace from './views/examples/Pace'
51 |
52 |
53 | Vue.use(Router);
54 |
55 | export default new Router({
56 | mode: 'history',
57 | routes: [
58 | // 注册路由 - 登录
59 | { path: '/', component: Main },
60 | {
61 | path: '/main',
62 | name: 'main',
63 | component: Main,
64 | children: [
65 | { path: '/dashboard/index', component: Index, name: 'index' },
66 | { path: '/dashboard/index2', component: Index2, name: 'index2' },
67 | { path: '/layout/boxed', component: Boxed, name: 'boxed' },
68 | { path: '/layout/fixed', component: Fixed, name: 'fixed' },
69 | { path: '/layout/collapsed', component: Collapsed, name: 'collapsed' },
70 | { path: '/widgets', component: Widgets, name: 'widgets' },
71 | { path: '/charts/chartjs', component: Chartjs, name: 'chartjs' },
72 | { path: '/charts/morris', component: Morris, name: 'morris' },
73 | { path: '/charts/flot', component: Flot, name: 'flot' },
74 | { path: '/charts/inline', component: Inline, name: 'inline' },
75 | { path: '/elements/general', component: General, name: 'general' },
76 | { path: '/elements/icons', component: Icons, name: 'icons' },
77 | { path: '/elements/buttons', component: Buttons, name: 'buttons' },
78 | { path: '/elements/sliders', component: Sliders, name: 'sliders' },
79 | { path: '/elements/timeline', component: Timeline, name: 'timeline' },
80 | { path: '/elements/modals', component: Modals, name: 'modals' },
81 | { path: '/forms/general', component: Generalform, name: 'generalfrom' },
82 | { path: '/forms/advance', component: Advance, name: 'advance' },
83 | { path: '/forms/editors', component: Editors, name: 'editors' },
84 | { path: '/tables/simple', component: SimpleTable, name: 'simpleTable' },
85 | { path: '/tables/data', component: DataTable, name: 'dataTable' },
86 | { path: '/calendar', component: Calendar, name: 'calendar' },
87 | { path: '/mailbox/inbox', component: Inbox, name: 'inbox' },
88 | { path: '/mailbox/compose', component: Compose, name: 'compose' },
89 | { path: '/mailbox/read', component: ReadMail, name: 'readMail' },
90 | { path: '/examples/invoice', component: Invoice, name: 'invoice' },
91 | { path: '/examples/profile', component: Profile, name: 'profile' },
92 | { path: '/examples/404', component: Notfound, name: '404' },
93 | { path: '/examples/500', component: Servererror, name: '500' },
94 | { path: '/examples/blank', component: Blank, name: 'blank' },
95 | { path: '/examples/pace', component: Pace, name: 'pace' }
96 | ],
97 | beforeEnter: (to, from, next) => {
98 | // isLogin() ? next() : next('/');
99 | next()
100 | }
101 | },
102 | { path: '/layout/topnav', component: Topnav, name: 'topnav' },
103 | { path: '/examples/login', component: Login, name: 'login' },
104 | { path: '/examples/register', component: Register, name: 'register' },
105 | { path: '/examples/lockscreen', component: Lockscreen, name: 'lockscreen' },
106 | { path: '*', redirect: '/' },
107 | ],
108 | });
--------------------------------------------------------------------------------
/src/services/auth/index.js:
--------------------------------------------------------------------------------
1 |
2 | export function saveStorage(key, value) {
3 | let v = JSON.stringify(value);
4 | sessionStorage[key] = v;
5 | }
6 |
7 | export function getStorage(key) {
8 | const v = sessionStorage[key];
9 | return v ? JSON.parse(v) : null;
10 | }
11 |
12 | export function removeStorage(key) {
13 | sessionStorage.removeItem(key);
14 | }
15 |
16 | export function signOut() {
17 | sessionStorage.removeItem('token');
18 | }
19 |
20 | export function isLogin() {
21 | return !!sessionStorage.getItem('token');
22 | }
--------------------------------------------------------------------------------
/src/views/Main.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | Version 0.4.2
26 |
27 | Copyright © 2016 Three Body . All rights reserved.
28 |
29 |
30 |
31 |
32 |
46 |
47 |
--------------------------------------------------------------------------------
/src/views/calendar/Calendar.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
Lunch
14 |
Go home
15 |
Do homework
16 |
Work on UI design
17 |
Sleep tight
18 |
19 |
20 |
21 | remove after drop
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
61 |
62 |
63 |
64 |
65 |
66 |
76 |
77 |
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/views/charts/Chartjs.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
24 |
25 |
26 |
27 |
28 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
65 |
66 |
67 |
68 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/src/views/charts/Flot.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
31 |
32 |
33 |
34 |
35 |
36 |
53 |
54 |
55 |
56 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
97 |
98 |
99 |
100 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
--------------------------------------------------------------------------------
/src/views/charts/Inline.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
New Visitors
29 |
30 |
31 |
32 |
33 |
34 |
Bounce Rate
35 |
36 |
37 |
38 |
39 |
40 |
Server Load
41 |
42 |
43 |
44 |
45 |
46 |
Disk Space
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
Bandwidth
57 |
58 |
59 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
data-width="90"
98 |
99 |
100 |
101 |
102 |
103 |
data-width="120"
104 |
105 |
106 |
107 |
108 |
109 |
data-thickness="0.1"
110 |
111 |
112 |
113 |
114 |
115 |
data-angleArc="250"
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
data-width="90"
151 |
152 |
153 |
154 |
155 |
156 |
data-width="120"
157 |
158 |
159 |
160 |
161 |
162 |
data-thickness="0.1"
163 |
164 |
165 |
166 |
167 |
168 |
data-angleArc="250"
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
The following was created using data tags
185 |
186 |
The following three inline (sparkline) chart have been initialized to read and interpret data tags
187 |
188 |
189 |
190 |
191 |
192 |
193 |
200 |
201 |
202 |
203 | 6,4,8
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
221 |
222 |
223 |
224 | 6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
242 |
243 |
244 |
245 | 6,4,8, 9, 10, 5, 13, 18, 21, 7, 9
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
269 |
270 |
271 |
272 |
273 |
274 | Mouse speed Loading..
275 |
276 |
277 |
278 | Inline 10,8,9,3,5,8,5
279 | line graphs
280 | 8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10
281 |
282 |
283 |
284 | Bar charts 10,8,9,3,5,8,5
285 | negative values: -3,1,2,0,3,-1
286 | stacked: 0:2,2:4,4:2,4:1
287 |
288 |
289 |
290 | Composite inline
291 | 8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10
292 |
293 |
294 |
295 | Inline with normal range
296 | 8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10
297 |
298 |
299 |
300 | Composite bar
301 | 4,6,7,7,4,3,2,1,4
302 |
303 |
304 |
305 | Discrete
306 | 4,6,7,7,4,3,2,1,4,4,5,6,7,6,6,2,4,5
307 |
308 | Discrete with threshold
309 | 4,6,7,7,4,3,2,1,4
310 |
311 |
312 |
313 | Bullet charts
314 | 10,12,12,9,7
315 | 14,12,12,9,7
316 | 10,12,14,9,7
317 |
318 |
319 |
320 |
321 |
322 | Customize size and colours
323 | 10,8,9,3,5,8,5,7
324 |
325 |
326 |
327 | Tristate charts
328 | 1,1,0,1,-1,-1,1,-1,0,0,1,1
329 | (think games won, lost or drawn)
330 |
331 |
332 |
333 | Tristate chart using a colour map:
334 | 1,2,0,2,-1,-2,1,-2,0,0,1,1
335 |
336 |
337 |
338 | Box Plot: 4,27,34,52,54,59,61,68,78,82,85,87,91,93,100
339 | Pre-computed box plot Loading..
340 |
341 |
342 |
343 | Pie charts
344 | 1,1,2
345 | 1,5
346 | 20,50,80
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
--------------------------------------------------------------------------------
/src/views/charts/Morris.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Warning!
6 |
7 |
Morris.js charts are no longer maintained by its author. We would recommend using any of the other
8 | charts that come with the template.
9 |
10 |
11 |
12 |
13 |
28 |
29 |
30 |
31 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
67 |
68 |
69 |
70 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/src/views/elements/Modals.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
33 |
34 |
35 |
58 |
59 |
60 |
83 |
84 |
85 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
119 |
120 |
One fine body…
121 |
122 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
144 |
145 |
One fine body…
146 |
147 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/src/views/elements/Sliders.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
41 |
42 |
43 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/views/elements/Timeline.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
122 |
123 |
124 |
125 |
126 |
127 |
130 |
131 |
132 | <ul class="timeline">
133 |
134 | <!-- timeline time label -->
135 | <li class="time-label">
136 | <span class="bg-red">
137 | 10 Feb. 2014
138 | </span>
139 | </li>
140 | <!-- /.timeline-label -->
141 |
142 | <!-- timeline item -->
143 | <li>
144 | <!-- timeline icon -->
145 | <i class="fa fa-envelope bg-blue"></i>
146 | <div class="timeline-item">
147 | <span class="time"><i class="fa fa-clock-o"></i> 12:05</span>
148 |
149 | <h3 class="timeline-header"><a href="#">Support Team</a> ...</h3>
150 |
151 | <div class="timeline-body">
152 | ...
153 | Content goes here
154 | </div>
155 |
156 | <div class="timeline-footer">
157 | <a class="btn btn-primary btn-xs">...</a>
158 | </div>
159 | </div>
160 | </li>
161 | <!-- END timeline item -->
162 |
163 | ...
164 |
165 | </ul>
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/src/views/examples/404.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
404
6 |
7 |
8 |
Oops! Page not found.
9 |
10 |
11 | We could not find the page you were looking for.
12 | Meanwhile, you may return to dashboard or try using the search form.
13 |
14 |
15 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/views/examples/500.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
500
7 |
8 |
9 |
Oops! Something went wrong.
10 |
11 |
12 | We will work on fixing that right away.
13 | Meanwhile, you may return to dashboard or try using the search form.
14 |
15 |
16 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/views/examples/Blank.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
17 |
18 | Start creating your amazing application!
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/views/examples/Invoice.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Note:
6 | This page has been enhanced for printing. Click the print button at the bottom of the invoice to test.
7 |
8 |
9 |
10 |
11 |
12 |
21 |
22 |
23 |
24 | From
25 |
26 | Admin, Inc.
27 | 795 Folsom Ave, Suite 600
28 | San Francisco, CA 94107
29 | Phone: (804) 123-5432
30 | Email: info@almasaeedstudio.com
31 |
32 |
33 |
34 |
35 | To
36 |
37 | John Doe
38 | 795 Folsom Ave, Suite 600
39 | San Francisco, CA 94107
40 | Phone: (555) 539-1037
41 | Email: john.doe@example.com
42 |
43 |
44 |
45 |
46 | Invoice #007612
47 |
48 | Order ID: 4F3S8J
49 | Payment Due: 2/22/2014
50 | Account: 968-34567
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | Qty
63 | Product
64 | Serial #
65 | Description
66 | Subtotal
67 |
68 |
69 |
70 |
71 | 1
72 | Call of Duty
73 | 455-981-221
74 | El snort testosterone trophy driving gloves handsome
75 | $64.50
76 |
77 |
78 | 1
79 | Need for Speed IV
80 | 247-925-726
81 | Wes Anderson umami biodiesel
82 | $50.00
83 |
84 |
85 | 1
86 | Monsters DVD
87 | 735-845-642
88 | Terry Richardson helvetica tousled street art master
89 | $10.70
90 |
91 |
92 | 1
93 | Grown Ups Blue Ray
94 | 422-568-642
95 | Tousled lomo letterpress
96 | $25.99
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
Payment Methods:
109 |
110 |
111 |
112 |
113 |
114 |
115 | Etsy doostang zoodles disqus groupon greplin oooj voxy zoodles, weebly ning heekya handango imeem plugg
116 | dopplr jibjab, movity jajah plickers sifteo edmodo ifttt zimbra.
117 |
118 |
119 |
120 |
121 |
Amount Due 2/22/2014
122 |
123 |
124 |
125 |
126 | Subtotal:
127 | $250.30
128 |
129 |
130 | Tax (9.3%)
131 | $10.34
132 |
133 |
134 | Shipping:
135 | $5.80
136 |
137 |
138 | Total:
139 | $265.24
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
Print
152 |
Submit Payment
153 |
154 |
155 | Generate PDF
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
--------------------------------------------------------------------------------
/src/views/examples/Lockscreen.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Admin LTE
5 |
6 |
7 |
John Doe
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
27 |
28 |
29 |
30 |
31 |
32 | Enter your password to retrieve your session
33 |
34 |
37 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/views/examples/Login.vue:
--------------------------------------------------------------------------------
1 |
2 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/src/views/examples/Pace.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
17 |
18 | Pace loading works automatically on page. You can still implement it with ajax requests by adding this js:
19 |
$(document).ajaxStart(function() { Pace.restart(); });
20 |
21 |
22 |
23 |
24 | Get External Content
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/views/examples/Register.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Admin LTE
5 |
6 |
7 |
8 |
Register a new membership
9 |
10 |
42 |
43 |
50 |
51 |
I already have a membership
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/views/forms/Advance.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 | Minimal
21 |
22 | Alabama
23 | Alaska
24 | California
25 | Delaware
26 | Tennessee
27 | Texas
28 | Washington
29 |
30 |
31 |
32 |
33 | Disabled
34 |
35 | Alabama
36 | Alaska
37 | California
38 | Delaware
39 | Tennessee
40 | Texas
41 | Washington
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | Multiple
50 |
51 | Alabama
52 | Alaska
53 | California
54 | Delaware
55 | Tennessee
56 | Texas
57 | Washington
58 |
59 |
60 |
61 |
62 | Disabled Result
63 |
64 | Alabama
65 | Alaska
66 | California (disabled)
67 | Delaware
68 | Tennessee
69 | Texas
70 | Washington
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
94 |
95 |
96 |
107 |
108 |
109 |
110 |
119 |
120 |
121 |
122 |
133 |
134 |
135 |
136 |
147 |
148 |
149 |
150 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
172 |
173 |
174 |
175 | Color picker:
176 |
177 |
178 |
179 |
180 |
181 |
193 |
194 |
195 |
196 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
223 |
224 |
225 |
236 |
237 |
238 |
239 |
250 |
251 |
252 |
253 |
264 |
265 |
266 |
267 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
291 |
382 |
383 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
--------------------------------------------------------------------------------
/src/views/forms/Editors.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
20 |
21 |
22 |
27 |
28 |
29 |
30 |
31 |
32 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/views/forms/General.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
14 |
15 |
36 |
37 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
59 |
60 |
61 |
80 |
81 |
82 |
83 |
84 |
87 |
88 |
89 | @
90 |
91 |
92 |
93 |
94 |
95 |
96 | .00
97 |
98 |
99 |
100 |
101 | $
102 |
103 | .00
104 |
105 |
106 |
With icons
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
With checkbox and radio inputs
127 |
128 |
129 |
138 |
139 |
148 |
149 |
150 |
151 |
152 |
With buttons
153 |
154 |
Large: .input-group.input-group-lg
155 |
156 |
171 |
172 |
Normal
173 |
174 |
181 |
182 |
Small .input-group.input-group-sm
183 |
184 |
185 |
186 |
187 | Go!
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
205 |
206 |
207 |
208 |
233 |
234 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
247 |
248 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
--------------------------------------------------------------------------------
/src/views/layout/Boxed.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Tip!
6 |
7 |
Add the layout-boxed class to the body tag to get this layout. The boxed layout is helpful when working on
8 | large screens because it prevents the site from stretching very wide.
9 |
10 |
11 |
12 |
22 |
23 | Start creating your amazing application!
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/views/layout/Collapsed.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Tip!
6 |
7 |
Add the sidebar-collapse class to the body tag to get this layout. You should combine this option with a
8 | fixed layout if you have a long sidebar. Doing that will prevent your page content from getting stretched
9 | vertically.
10 |
11 |
12 |
13 |
23 |
24 | Start creating your amazing application!
25 |
26 |
27 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/views/layout/Fixed.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Tip!
6 |
7 |
Add the fixed class to the body tag to get this layout. The fixed layout is your best option if your sidebar
8 | is bigger than your content because it prevents extra unwanted scrolling.
9 |
10 |
11 |
12 |
22 |
23 | Start creating your amazing application!
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/views/layout/TopNav.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
15 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
203 |
204 |
205 |
206 |
207 |
Tip!
208 |
209 |
Add the layout-top-nav class to the body tag to get this layout. This feature can also be used with a
210 | sidebar! So use this class if you want to remove the custom dropdown menus from the navbar and use regular
211 | links instead.
212 |
213 |
214 |
Warning!
215 |
216 |
The construction of this layout differs from the normal one. In other words, the HTML markup of the navbar
217 | and the content will slightly differ than that of the normal layout.
218 |
219 |
220 |
223 |
224 | The great content goes here
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
245 |
246 |
247 |
248 |
--------------------------------------------------------------------------------
/src/views/mailbox/Compose.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
52 |
53 |
54 |
55 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
93 |
100 |
101 |
102 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
--------------------------------------------------------------------------------
/src/views/mailbox/Inbox.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Compose
7 |
8 |
30 |
31 |
49 |
50 |
51 |
52 |
53 |
54 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | 1-50/200
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
230 |
231 |
232 |
233 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
--------------------------------------------------------------------------------
/src/views/mailbox/Read.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Compose
7 |
8 |
30 |
31 |
49 |
50 |
51 |
52 |
53 |
54 |
62 |
63 |
64 |
65 |
Message Subject Is Placed Here
66 | From: help@example.com
67 | 15 Feb. 2016 11:03 PM
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
Hello John,
86 |
87 |
Keffiyeh blog actually fashion axe vegan, irony biodiesel. Cold-pressed hoodie chillwave put a bird
88 | on it aesthetic, bitters brunch meggings vegan iPhone. Dreamcatcher vegan scenester mlkshk. Ethical
89 | master cleanse Bushwick, occupy Thundercats banjo cliche ennui farm-to-table mlkshk fanny pack
90 | gluten-free. Marfa butcher vegan quinoa, bicycle rights disrupt tofu scenester chillwave 3 wolf moon
91 | asymmetrical taxidermy pour-over. Quinoa tote bag fashion axe, Godard disrupt migas church-key tofu
92 | blog locavore. Thundercats cronut polaroid Neutra tousled, meh food truck selfies narwhal American
93 | Apparel.
94 |
95 |
Raw denim McSweeney's bicycle rights, iPhone trust fund quinoa Neutra VHS kale chips vegan PBR&B
96 | literally Thundercats +1. Forage tilde four dollar toast, banjo health goth paleo butcher. Four dollar
97 | toast Brooklyn pour-over American Apparel sustainable, lumbersexual listicle gluten-free health goth
98 | umami hoodie. Synth Echo Park bicycle rights DIY farm-to-table, retro kogi sriracha dreamcatcher PBR&B
99 | flannel hashtag irony Wes Anderson. Lumbersexual Williamsburg Helvetica next level. Cold-pressed
100 | slow-carb pop-up normcore Thundercats Portland, cardigan literally meditation lumbersexual crucifix.
101 | Wayfarers raw denim paleo Bushwick, keytar Helvetica scenester keffiyeh 8-bit irony mumblecore
102 | whatever viral Truffaut.
103 |
104 |
Post-ironic shabby chic VHS, Marfa keytar flannel lomo try-hard keffiyeh cray. Actually fap fanny
105 | pack yr artisan trust fund. High Life dreamcatcher church-key gentrify. Tumblr stumptown four dollar
106 | toast vinyl, cold-pressed try-hard blog authentic keffiyeh Helvetica lo-fi tilde Intelligentsia. Lomo
107 | locavore salvia bespoke, twee fixie paleo cliche brunch Schlitz blog McSweeney's messenger bag swag
108 | slow-carb. Odd Future photo booth pork belly, you probably haven't heard of them actually tofu ennui
109 | keffiyeh lo-fi Truffaut health goth. Narwhal sustainable retro disrupt.
110 |
111 |
Skateboard artisan letterpress before they sold out High Life messenger bag. Bitters chambray
112 | leggings listicle, drinking vinegar chillwave synth. Fanny pack hoodie American Apparel twee. American
113 | Apparel PBR listicle, salvia aesthetic occupy sustainable Neutra kogi. Organic synth Tumblr viral
114 | plaid, shabby chic single-origin coffee Etsy 3 wolf moon slow-carb Schlitz roof party tousled squid
115 | vinyl. Readymade next level literally trust fund. Distillery master cleanse migas, Vice sriracha
116 | flannel chambray chia cronut.
117 |
118 |
Thanks, Jane
119 |
120 |
121 |
122 |
123 |
171 |
172 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/src/views/tables/Simple.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 | #
15 | Task
16 | Progress
17 | Label
18 |
19 |
20 | 1.
21 | Update software
22 |
23 |
26 |
27 | 55%
28 |
29 |
30 | 2.
31 | Clean database
32 |
33 |
36 |
37 | 70%
38 |
39 |
40 | 3.
41 | Cron job running
42 |
43 |
46 |
47 | 30%
48 |
49 |
50 | 4.
51 | Fix and squish bugs
52 |
53 |
56 |
57 | 90%
58 |
59 |
60 |
61 |
62 |
71 |
72 |
73 |
74 |
75 |
78 |
79 |
80 |
81 |
82 | #
83 | Task
84 | Progress
85 | Label
86 |
87 |
88 | 1.
89 | Update software
90 |
91 |
94 |
95 | 55%
96 |
97 |
98 | 2.
99 | Clean database
100 |
101 |
104 |
105 | 70%
106 |
107 |
108 | 3.
109 | Cron job running
110 |
111 |
114 |
115 | 30%
116 |
117 |
118 | 4.
119 | Fix and squish bugs
120 |
121 |
124 |
125 | 90%
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
149 |
150 |
151 |
152 |
153 | #
154 | Task
155 | Progress
156 | Label
157 |
158 |
159 | 1.
160 | Update software
161 |
162 |
165 |
166 | 55%
167 |
168 |
169 | 2.
170 | Clean database
171 |
172 |
175 |
176 | 70%
177 |
178 |
179 | 3.
180 | Cron job running
181 |
182 |
185 |
186 | 30%
187 |
188 |
189 | 4.
190 | Fix and squish bugs
191 |
192 |
195 |
196 | 90%
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
208 |
209 |
210 |
211 |
212 | #
213 | Task
214 | Progress
215 | Label
216 |
217 |
218 | 1.
219 | Update software
220 |
221 |
224 |
225 | 55%
226 |
227 |
228 | 2.
229 | Clean database
230 |
231 |
234 |
235 | 70%
236 |
237 |
238 | 3.
239 | Cron job running
240 |
241 |
244 |
245 | 30%
246 |
247 |
248 | 4.
249 | Fix and squish bugs
250 |
251 |
254 |
255 | 90%
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
282 |
283 |
284 |
285 |
286 | ID
287 | User
288 | Date
289 | Status
290 | Reason
291 |
292 |
293 | 183
294 | John Doe
295 | 11-7-2014
296 | Approved
297 | Bacon ipsum dolor sit amet salami venison chicken flank fatback doner.
298 |
299 |
300 | 219
301 | Alexander Pierce
302 | 11-7-2014
303 | Pending
304 | Bacon ipsum dolor sit amet salami venison chicken flank fatback doner.
305 |
306 |
307 | 657
308 | Bob Doe
309 | 11-7-2014
310 | Approved
311 | Bacon ipsum dolor sit amet salami venison chicken flank fatback doner.
312 |
313 |
314 | 175
315 | Mike Doe
316 | 11-7-2014
317 | Denied
318 | Bacon ipsum dolor sit amet salami venison chicken flank fatback doner.
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
--------------------------------------------------------------------------------
/src/vuex/actions.js:
--------------------------------------------------------------------------------
1 | import api from '../api'
2 | import * as types from './types'
3 |
4 | export const showMsg = ({dispatch}, content, type='error') => {
5 | dispatch(types.SHOW_MSG, {content:content, type:type})
6 | }
7 |
8 | export const hideMsg = ({dispatch}) => {
9 | dispatch(types.HIDE_MSG)
10 | }
11 |
12 | // for test
13 | export const welcome = (store) => {
14 | showMsg(store, 'welcome back!', 'success')
15 | }
--------------------------------------------------------------------------------
/src/vuex/modules/loading.js:
--------------------------------------------------------------------------------
1 | import {
2 | UPDATE_LOADING,
3 | UPDATE_DIRECTION
4 | } from '../types'
5 |
6 | const state = {
7 | isLoading: false,
8 | direction: 'forward'
9 | }
10 |
11 | const mutations = {
12 | [UPDATE_LOADING](state, status) {
13 | state.isLoading = status
14 | },
15 | [UPDATE_DIRECTION](state, direction) {
16 | state.direction = direction
17 | }
18 | }
19 |
20 | export default {
21 | state,
22 | mutations
23 | }
--------------------------------------------------------------------------------
/src/vuex/modules/showmsg.js:
--------------------------------------------------------------------------------
1 | import {
2 | SHOW_MSG,
3 | HIDE_MSG
4 | } from '../types'
5 |
6 | const state = {
7 | message:{
8 | type: '',
9 | content: '',
10 | title: ''
11 | }
12 | }
13 |
14 | const mutations = {
15 | [SHOW_MSG](state , action){
16 | state.message = {...action}
17 | },
18 | [HIDE_MSG](state, action){
19 | state.message = {
20 | type: '',
21 | content: '',
22 | title: ''
23 | }
24 | }
25 | }
26 |
27 | export default {
28 | state,
29 | mutations
30 | }
--------------------------------------------------------------------------------
/src/vuex/modules/wechat.js:
--------------------------------------------------------------------------------
1 | import {
2 | GET_AUTHORIZE
3 | } from '../types'
4 |
5 | const state = {
6 | authorize: null
7 | }
8 |
9 | const mutations = {
10 | [GET_AUTHORIZE](state, action){
11 | state.authorize = action.authorize
12 | }
13 | }
14 |
15 | export default {
16 | state,
17 | mutations
18 | }
--------------------------------------------------------------------------------
/src/vuex/store.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Vuex from 'vuex'
3 |
4 | import loading from './modules/loading'
5 | import showmsg from './modules/showmsg'
6 |
7 | const debug = process.env.NODE_ENV !== 'production'
8 | Vue.use(Vuex)
9 | Vue.config.debug = debug
10 | Vue.config.warnExpressionErrors = false
11 |
12 | export default new Vuex.Store({
13 | modules: {
14 | loading,
15 | showmsg
16 | },
17 | strict: debug,
18 | })
19 |
--------------------------------------------------------------------------------
/src/vuex/types.js:
--------------------------------------------------------------------------------
1 | export const UPDATE_LOADING = 'UPDATE_LOADING'
2 | export const UPDATE_DIRECTION = 'UPDATE_DIRECTION'
3 |
4 | export const GET_AUTHORIZE = 'GET_AUTHORIZE'
5 |
6 | export const SHOW_MSG = 'SHOW_MSG'
7 | export const HIDE_MSG = 'HIDE_MSG'
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gezii/vue2-AdminLTE/bfe21afc33c8eb51220473af97ff644656ddf5be/static/.gitkeep
--------------------------------------------------------------------------------