Browse Source

顶顶顶

beer
1549469775 5 years ago
parent
commit
ed8058560f
  1. 11
      .history/api/auth_20191020154551.js
  2. 11
      .history/api/auth_20191112003911.js
  3. 11
      .history/api/auth_20191112003916.js
  4. 11
      .history/api/auth_20191112003952.js
  5. 11
      .history/api/auth_20191112004027.js
  6. 11
      .history/api/auth_20191112004056.js
  7. 11
      .history/api/auth_20191112004141.js
  8. 11
      .history/api/auth_20191112004209.js
  9. 11
      .history/api/auth_20191112004212.js
  10. 11
      .history/api/auth_20191112004222.js
  11. 11
      .history/api/auth_20191112004446.js
  12. 12
      .history/api/auth_20191112004908.js
  13. 12
      .history/api/auth_20191112005004.js
  14. 12
      .history/api/auth_20191112005102.js
  15. 12
      .history/api/auth_20191112005109.js
  16. 12
      .history/api/auth_20191112005201.js
  17. 12
      .history/api/auth_20191112005552.js
  18. 12
      .history/api/auth_20191112005557.js
  19. 12
      .history/api/auth_20191112005636.js
  20. 12
      .history/api/auth_20191112005657.js
  21. 12
      .history/api/auth_20191112005702.js
  22. 13
      .history/api/auth_20191112005839.js
  23. 13
      .history/api/auth_20191112005843.js
  24. 13
      .history/api/auth_20191112005910.js
  25. 13
      .history/api/auth_20191112010248.js
  26. 4
      .history/assets/style/_global_20191020151711.scss
  27. 7
      .history/assets/style/_global_20191112000401.scss
  28. 8
      .history/assets/style/_global_20191112000415.scss
  29. 8
      .history/assets/style/_global_20191112000639.scss
  30. 19
      .history/layouts/default_20191020150838.vue
  31. 19
      .history/layouts/default_20191112000247.vue
  32. 19
      .history/layouts/default_20191112000827.vue
  33. 17
      .history/layouts/default_20191112001330.vue
  34. 20
      .history/layouts/default_20191112001421.vue
  35. 20
      .history/layouts/default_20191112001426.vue
  36. 80
      .history/nuxt.config_20191021223707.js
  37. 80
      .history/nuxt.config_20191112000218.js
  38. 81
      .history/nuxt.config_20191112002343.js
  39. 82
      .history/nuxt.config_20191112002421.js
  40. 82
      .history/nuxt.config_20191112002503.js
  41. 82
      .history/nuxt.config_20191112002723.js
  42. 82
      .history/nuxt.config_20191112003237.js
  43. 81
      .history/nuxt.config_20191112003249.js
  44. 82
      .history/nuxt.config_20191112003735.js
  45. 85
      .history/nuxt.config_20191112003835.js
  46. 85
      .history/nuxt.config_20191112004619.js
  47. 85
      .history/nuxt.config_20191112005741.js
  48. 86
      .history/nuxt.config_20191112005802.js
  49. 47
      .history/pages/index_20191020124535.vue
  50. 41
      .history/pages/index_20191111235953.vue
  51. 31
      .history/pages/index_20191112000014.vue
  52. 31
      .history/pages/index_20191112000231.vue
  53. 10
      api/auth.js
  54. BIN
      assets/images/bluedialog.png
  55. 4
      assets/style/_global.scss
  56. 17
      layouts/default.vue
  57. 14
      nuxt.config.js
  58. 32
      pages/index.vue
  59. 85
      pages/login.vue
  60. 0
      pages/style.scss

11
.history/api/auth_20191020154551.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
// res.json({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112003911.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
res.json({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112003916.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
res.json({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112003952.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004027.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004056.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
console.log(req,res)
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004141.js

@ -0,0 +1,11 @@
export default function (ctx, next) {
// req 是 Node.js http request 对象
console.log(ctx,next)
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004209.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
console.log(req,res)
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004212.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
// console.log(req,res)
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

11
.history/api/auth_20191112004222.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
// console.log(req,res)
// res.send({code:200})
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

11
.history/api/auth_20191112004446.js

@ -0,0 +1,11 @@
export default function (req, res, next) {
// req 是 Node.js http request 对象
// console.log(req,res)
res.status(200).send('<p>12355</p>')
// res 是 Node.js http response 对象
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112004908.js

@ -0,0 +1,12 @@
export default function (ctx) {
// req 是 Node.js http request 对象
// console.log(req,res)
ctx.body={
code:200
}
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005004.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req,res)
ctx.body={
code:200
}
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005102.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req,res)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005109.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005201.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(res)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005552.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req.btx)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005557.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req.ctx)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005636.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
// next()
}

12
.history/api/auth_20191112005657.js

@ -0,0 +1,12 @@
export default function (req,res) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

12
.history/api/auth_20191112005702.js

@ -0,0 +1,12 @@
export default function (req,res,next) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

13
.history/api/auth_20191112005839.js

@ -0,0 +1,13 @@
export default function (req,res,next) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
console.log(req.ctx.body={code:200})
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

13
.history/api/auth_20191112005843.js

@ -0,0 +1,13 @@
export default function (req,res,next) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
console.log(res.ctx.body={code:200})
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

13
.history/api/auth_20191112005910.js

@ -0,0 +1,13 @@
export default function (req,res,next) {
// req 是 Node.js http request 对象
console.log(req.ctx.body={code:200})
console.log(res)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

13
.history/api/auth_20191112010248.js

@ -0,0 +1,13 @@
export default function (req,res,next) {
// req 是 Node.js http request 对象
// console.log(req.ctx.body={code:200})
// console.log(res)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()
}

4
.history/assets/style/_global_20191020151711.scss

@ -0,0 +1,4 @@
@import "./common.scss";

7
.history/assets/style/_global_20191112000401.scss

@ -0,0 +1,7 @@
@import "./common.scss";
html{
}

8
.history/assets/style/_global_20191112000415.scss

@ -0,0 +1,8 @@
@import "./common.scss";
html{
width: 100%;
height: 100%;
}

8
.history/assets/style/_global_20191112000639.scss

@ -0,0 +1,8 @@
@import "./common.scss";
html{
width: 100vw;
height: 100vh;
}

19
.history/layouts/default_20191020150838.vue

@ -0,0 +1,19 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {
}
}
</script>
<style lang="scss" scoped>
.default.layout{
background: #F5F5D5;
width: 100vw;
height: 100vh;
}
</style>

19
.history/layouts/default_20191112000247.vue

@ -0,0 +1,19 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {
}
}
</script>
<style lang="scss" scoped>
.default.layout{
background: #F5F5D5;
width: 100%;
height: 100%;
}
</style>

19
.history/layouts/default_20191112000827.vue

@ -0,0 +1,19 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {
}
}
</script>
<style lang="scss" scoped>
.default.layout{
background: #F5F5D5;
width: 100vw;
height: 100vh;
}
</style>

17
.history/layouts/default_20191112001330.vue

@ -0,0 +1,17 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {}
};
</script>
<style lang="scss" scoped>
.default.layout {
background: #f5f5d5;
width: 100vw;
height: 100vh;
}
</style>

20
.history/layouts/default_20191112001421.vue

@ -0,0 +1,20 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {}
};
</script>
<style lang="scss" scoped>
.default.layout {
background: #f5f5d5;
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
</style>

20
.history/layouts/default_20191112001426.vue

@ -0,0 +1,20 @@
<template>
<div class="default layout">
<nuxt />
</div>
</template>
<script>
export default {
components: {}
};
</script>
<style lang="scss" scoped>
.default.layout {
background: #f5f5d5;
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
</style>

80
.history/nuxt.config_20191021223707.js

@ -0,0 +1,80 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

80
.history/nuxt.config_20191112000218.js

@ -0,0 +1,80 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

81
.history/nuxt.config_20191112002343.js

@ -0,0 +1,81 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
npm_package_name:'Beer',
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

82
.history/nuxt.config_20191112002421.js

@ -0,0 +1,82 @@
const path = require('path');
console.log(process)
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
npm_package_name:'Beer',
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

82
.history/nuxt.config_20191112002503.js

@ -0,0 +1,82 @@
const path = require('path');
console.log(process.env)
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
npm_package_name:'Beer',
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

82
.history/nuxt.config_20191112002723.js

@ -0,0 +1,82 @@
const path = require('path');
console.log(process.env.npm_package_name)
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
npm_package_name:'Beer',
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

82
.history/nuxt.config_20191112003237.js

@ -0,0 +1,82 @@
const path = require('path');
console.log(process.env.npm_package_name)
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

81
.history/nuxt.config_20191112003249.js

@ -0,0 +1,81 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

82
.history/nuxt.config_20191112003735.js

@ -0,0 +1,82 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3},
proxy: true
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

85
.history/nuxt.config_20191112003835.js

@ -0,0 +1,85 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3},
proxy: true
},
proxy: {
'/api/': 'http://api.example.com'
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
'~/api/auth'
]
}

85
.history/nuxt.config_20191112004619.js

@ -0,0 +1,85 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3},
proxy: true
},
proxy: {
'/api/': 'http://api.example.com'
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
{path:'/api/auth', handler:'~/api/auth'}
]
}

85
.history/nuxt.config_20191112005741.js

@ -0,0 +1,85 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3},
proxy: true
},
proxy: {
// '/api/': 'http://api.example.com'
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
{path:'/api/auth', handler:'~/api/auth'}
]
}

86
.history/nuxt.config_20191112005802.js

@ -0,0 +1,86 @@
const path = require('path');
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
{hid: 'description', name: 'description', content: process.env.npm_package_description || ''}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'}
]
},
env: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000'
},
/*
** Customize the progress-bar color
*/
loading: {color: '#fff'},
/*
** Global CSS
*/
css: [
'reset-css/reset.css',
],
/*
** Plugins to load before mounting the App
*/
plugins: [
'~/plugins/axios',
'~/plugins/global-components'
],
/*
** Nuxt.js dev-modules
*/
devModules: [],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3},
proxy: true
},
proxy: {
// 跟下面的冲突了
// '/api/': 'http://api.example.com'
},
styleResources: {
// your settings here
sass: [],
scss: ['./assets/style/_global.scss'],
less: [],
stylus: []
},
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
config.resolve.alias['@pages'] = path.resolve(__dirname, 'pages');
config.resolve.alias['@assets'] = path.resolve(__dirname, 'assets');
config.resolve.alias['@components'] = path.resolve(__dirname, 'components');
config.resolve.alias['@images'] = path.resolve(__dirname, 'assets', 'images');
}
},
serverMiddleware: [
{path:'/api/auth', handler:'~/api/auth'}
]
}

47
.history/pages/index_20191020124535.vue

@ -0,0 +1,47 @@
<template>
<b-container>
{{ip}}
<b-row>
<b-col md="4" sm="2">1 of 3</b-col>
<b-col md="4" sm="2">2 of 3</b-col>
<b-col md="4" sm="8">3 of 3</b-col>
</b-row>
</b-container>
</template>
<script>
export default {
middleware: 'auth',
//data
async asyncData({ $axios }) {
const ip = await $axios.$get('http://icanhazip.com');
return { ip }
},
//使this
//fetch store
// asyncData
async fetch ({ store, params,$axios }) {
let ip = await $axios.$get('http://icanhazip.com')
store.commit('todos/SET_IP', ip)
},
mounted(){
console.log(this.$store)
},
data() {
return {
ip: '0.0.0.0'
}
},
methods: {
async fetchSomething() {
const ip = await this.$axios.$get('http://icanhazip.com');
this.ip = ip
}
}
}
</script>
<style lang='scss'>
@import "style";
</style>

41
.history/pages/index_20191111235953.vue

@ -0,0 +1,41 @@
<template>
<b-container>
{{ip}}
<b-row>
<b-col md="4" sm="2">1 of 3</b-col>
<b-col md="4" sm="2">2 of 3</b-col>
<b-col md="4" sm="8">3 of 3</b-col>
</b-row>
</b-container>
</template>
<script>
export default {
middleware: 'auth',
//data
async asyncData({ $axios }) {
return { }
},
//使this
//fetch store
// asyncData
async fetch ({ store, params,$axios }) {
},
mounted(){
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang='scss'>
</style>

31
.history/pages/index_20191112000014.vue

@ -0,0 +1,31 @@
<template>
<b-container>
</b-container>
</template>
<script>
export default {
async asyncData({ $axios }) {
return { }
},
async fetch ({ store, params,$axios }) {
},
mounted(){
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang='scss'>
</style>

31
.history/pages/index_20191112000231.vue

@ -0,0 +1,31 @@
<template>
<div>
</div>
</template>
<script>
export default {
async asyncData({ $axios }) {
return { }
},
async fetch ({ store, params,$axios }) {
},
mounted(){
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang='scss'>
</style>

10
api/auth.js

@ -1,8 +1,10 @@
export default function (req, res, next) {
export default function (req,res,next) {
// req 是 Node.js http request 对象
// res.json({code:200})
// res 是 Node.js http response 对象
// console.log(req.ctx.body={code:200})
// console.log(res)
// ctx.body={
// code:200
// }
//next是一个调用下一个中间件的函数
// 如果您的中间件不是最终执行,请不要忘记在最后调用next!
next()

BIN
assets/images/bluedialog.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 926 B

4
assets/style/_global.scss

@ -2,3 +2,7 @@
@import "./common.scss";
html{
width: 100vw;
height: 100vh;
}

17
layouts/default.vue

@ -5,15 +5,16 @@
</template>
<script>
export default {
components: {
}
}
components: {}
};
</script>
<style lang="scss" scoped>
.default.layout{
background: #F5F5D5;
width: 100vw;
height: 100vh;
.default.layout {
background: #f5f5d5;
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
</style>

14
nuxt.config.js

@ -5,7 +5,8 @@ module.exports = {
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
// process.env.npm_package_name ||
title: 'Beer',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1, shrink-to-fit=no'},
@ -45,13 +46,18 @@ module.exports = {
modules: [
'@nuxtjs/style-resources',
// 使用bootstrap-vue
'bootstrap-vue/nuxt',
// 'bootstrap-vue/nuxt',
'@nuxtjs/axios'
],
//https://axios.nuxtjs.org/setup
axios: {
// proxyHeaders: false
retry: {retries: 3}
retry: {retries: 3},
proxy: true
},
proxy: {
// 跟下面的冲突了
// '/api/': 'http://api.example.com'
},
styleResources: {
// your settings here
@ -75,6 +81,6 @@ module.exports = {
}
},
serverMiddleware: [
'~/api/auth'
{path:'/api/auth', handler:'~/api/auth'}
]
}

32
pages/index.vue

@ -1,47 +1,31 @@
<template>
<b-container>
{{ip}}
<b-row>
<b-col md="4" sm="2">1 of 3</b-col>
<b-col md="4" sm="2">2 of 3</b-col>
<b-col md="4" sm="8">3 of 3</b-col>
</b-row>
</b-container>
<div>
</div>
</template>
<script>
export default {
middleware: 'auth',
//data
async asyncData({ $axios }) {
const ip = await $axios.$get('http://icanhazip.com');
return { ip }
return { }
},
//使this
//fetch store
// asyncData
async fetch ({ store, params,$axios }) {
let ip = await $axios.$get('http://icanhazip.com')
store.commit('todos/SET_IP', ip)
},
mounted(){
console.log(this.$store)
},
data() {
return {
ip: '0.0.0.0'
}
},
methods: {
async fetchSomething() {
const ip = await this.$axios.$get('http://icanhazip.com');
this.ip = ip
}
}
}
</script>
<style lang='scss'>
@import "style";
</style>

85
pages/login.vue

@ -1,85 +0,0 @@
<template>
<b-container fluid>
<div class="panel">
<form class="vform">
<b-img src="https://picsum.photos/125/125/?image=58" center rounded fluid alt="Center image"
style="margin-bottom: 20px;"></b-img>
<div class="vinput">
<div class="vtitle">
<span class="title">账号</span>
<span class="subtitle">(账号|邮箱|手机)</span>
</div>
<b-form-input class="input" type="text" v-model="account" placeholder="请输入您的账号"></b-form-input>
<div class="vtitle">
<span class="title">密码</span>
<span class="subtitle">(文字+数字)</span>
</div>
<b-form-input class="input" type="password" v-model="password" placeholder="请输入您的密码"></b-form-input>
</div>
<b-button block variant="primary" @click="login">
<div v-if="isLoging" class="loading">
<BaseLoading></BaseLoading>
</div>
<div v-if="!isLoging">登录</div>
</b-button>
</form>
</div>
</b-container>
</template>
<script>
export default {
data() {
return {
isLoging:false,
account: '',
password:'',
error:''
}
},
methods:{
login(){
this.$router.replace('/')
console.log(this)
this.isLoging = !this.isLoging
}
}
}
</script>
<style lang='scss' scoped>
.panel {
background: #fff;
width: 500px;
/*height: 500px;*/
border-radius: 2%;
box-sizing: content-box;
position: fixed;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
text-align: left;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
@media only screen and (max-width: 767px) {
width: 90%;
}
.vform {
margin: 50px auto;
width: 80%;
.input {
margin: 20px 0;
}
}
.vtitle {
.title {
font-size: 20px;
font-weight: bold;
}
.subtitle {
font-size: 12px;
color: rgba(0, 0, 0, 0.44);
}
}
}
</style>

0
pages/style.scss

Loading…
Cancel
Save