vue-alive-check 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.dev +25 -0
- package/.eslintignore +10 -0
- package/.eslintrc.js +192 -0
- package/README.md +48 -0
- package/babel.config.js +5 -0
- package/dist/demo.html +1 -0
- package/dist/vue-alive-check.common.js +90362 -0
- package/dist/vue-alive-check.css +1 -0
- package/dist/vue-alive-check.umd.js +90373 -0
- package/dist/vue-alive-check.umd.min.js +36 -0
- package/jsconfig.json +19 -0
- package/package.json +48 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +17 -0
- package/src/App.vue +38 -0
- package/src/api/alive.js +20 -0
- package/src/api/face.js +33 -0
- package/src/assets/element-variables.scss +31 -0
- package/src/assets/login-1.png +0 -0
- package/src/assets/login-2.png +0 -0
- package/src/assets/logo.png +0 -0
- package/src/index.vue +58 -0
- package/src/main.js +26 -0
- package/src/router/index.js +58 -0
- package/src/utils/auth.js +105 -0
- package/src/utils/request.js +85 -0
- package/src/views/login.vue +51 -0
- package/src/views/policy.vue +30 -0
- package/src/views/register.vue +31 -0
- package/vue.config.js +68 -0
package/vue.config.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
const path = require('path')
|
|
3
|
+
function resolve(dir) {
|
|
4
|
+
return path.join(__dirname, dir)
|
|
5
|
+
}
|
|
6
|
+
const webpack = require('webpack');
|
|
7
|
+
|
|
8
|
+
// vue.config.js 配置说明
|
|
9
|
+
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions
|
|
10
|
+
// 这里只列一部分,具体配置参考文档
|
|
11
|
+
module.exports = {
|
|
12
|
+
runtimeCompiler: true,
|
|
13
|
+
// 部署生产环境和开发环境下的URL。
|
|
14
|
+
// 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上
|
|
15
|
+
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
|
|
16
|
+
publicPath: process.env.PUBLIC_PATH ? process.env.PUBLIC_PATH : '/',
|
|
17
|
+
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist)
|
|
18
|
+
outputDir: 'dist',
|
|
19
|
+
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下), 相对于 outputDir
|
|
20
|
+
assetsDir: 'static',
|
|
21
|
+
// 是否开启eslint保存检测,有效值:ture | false | 'error'
|
|
22
|
+
lintOnSave: process.env.NODE_ENV === 'development',
|
|
23
|
+
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
|
24
|
+
productionSourceMap: false,
|
|
25
|
+
// webpack-dev-server 相关配置
|
|
26
|
+
devServer: {
|
|
27
|
+
host: '0.0.0.0',
|
|
28
|
+
port: 80,
|
|
29
|
+
open: false,
|
|
30
|
+
https: true,
|
|
31
|
+
proxy: {
|
|
32
|
+
'/face-api/': {
|
|
33
|
+
target: "https://124.71.63.200",
|
|
34
|
+
changeOrigin: true,
|
|
35
|
+
secure:false,
|
|
36
|
+
pathRewrite: {
|
|
37
|
+
'^/face-api/': '/uhr/face-api/'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
pages:{
|
|
44
|
+
index:{
|
|
45
|
+
// 修改项目入口文件
|
|
46
|
+
// entry:'packages/index.js',
|
|
47
|
+
entry: process.env.NODE_ENV === 'development' ? 'src/main.js' : 'packages/index.js',
|
|
48
|
+
template:'public/index.html',
|
|
49
|
+
filename:'index.html'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
css: {
|
|
53
|
+
loaderOptions: {
|
|
54
|
+
sass: {
|
|
55
|
+
sassOptions: { outputStyle: "expanded" }
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
configureWebpack: {
|
|
60
|
+
name: "人脸登陆",
|
|
61
|
+
resolve: {
|
|
62
|
+
alias: {
|
|
63
|
+
'@': resolve('src')
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
}
|