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 ADDED
@@ -0,0 +1,25 @@
1
+ # 开发环境配置
2
+ ENV = 'development'
3
+
4
+ # 页面标题
5
+ VUE_APP_TITLE = 冰火融创
6
+
7
+ # 冰火融创企业管理系统/开发环境
8
+ VUE_APP_BASE_API = ''
9
+ #VUE_APP_BASE_API = 'http://192.168.1.222:48080'
10
+ #VUE_APP_BASE_API = 'http://124.71.63.200:48080'
11
+
12
+ # 路由懒加载
13
+ VUE_CLI_BABEL_TRANSPILE_MODULES = true
14
+
15
+ # 多租户的开关
16
+ VUE_APP_TENANT_ENABLE = true
17
+
18
+ # 验证码的开关
19
+ VUE_APP_CAPTCHA_ENABLE = true
20
+
21
+ # 文档的开关
22
+ VUE_APP_DOC_ENABLE = false
23
+
24
+ # 百度统计
25
+ #VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
package/.eslintignore ADDED
@@ -0,0 +1,10 @@
1
+ # 忽略build目录下类型为js的文件的语法检查
2
+ build/*.js
3
+ # 忽略src/assets目录下文件的语法检查
4
+ src/assets
5
+ # 忽略public目录下文件的语法检查
6
+ public
7
+ # 忽略当前目录下为js的文件的语法检查
8
+ *.js
9
+ # 忽略当前目录下为vue的文件的语法检查
10
+ *.vue
package/.eslintrc.js ADDED
@@ -0,0 +1,192 @@
1
+ // ESlint 检查配置
2
+ module.exports = {
3
+ root: true,
4
+ parserOptions: {
5
+ parser: 'babel-eslint',
6
+ sourceType: 'module'
7
+ },
8
+ env: {
9
+ browser: true,
10
+ node: true,
11
+ es6: true,
12
+ },
13
+ extends: ['plugin:vue/recommended', 'eslint:recommended'],
14
+
15
+ // add your custom rules here
16
+ //it is base on https://github.com/vuejs/eslint-config-vue
17
+ rules: {
18
+ "vue/singleline-html-element-content-newline": "off",
19
+ "vue/multiline-html-element-content-newline":"off",
20
+ "vue/name-property-casing": ["error", "PascalCase"],
21
+ "vue/no-v-html": "off",
22
+ 'accessor-pairs': 2,
23
+ 'arrow-spacing': [2, {
24
+ 'before': true,
25
+ 'after': true
26
+ }],
27
+ 'block-spacing': [2, 'always'],
28
+ 'brace-style': [2, '1tbs', {
29
+ 'allowSingleLine': true
30
+ }],
31
+ 'camelcase': [0, {
32
+ 'properties': 'always'
33
+ }],
34
+ 'comma-dangle': [2, 'never'],
35
+ 'comma-spacing': [2, {
36
+ 'before': false,
37
+ 'after': true
38
+ }],
39
+ 'comma-style': [2, 'last'],
40
+ 'constructor-super': 2,
41
+ 'curly': [2, 'multi-line'],
42
+ 'dot-location': [2, 'property'],
43
+ 'eol-last': 2,
44
+ 'eqeqeq': ["error", "always", {"null": "ignore"}],
45
+ 'generator-star-spacing': [2, {
46
+ 'before': true,
47
+ 'after': true
48
+ }],
49
+ 'handle-callback-err': [2, '^(err|error)$'],
50
+ 'indent': [2, 2, {
51
+ 'SwitchCase': 1
52
+ }],
53
+ 'jsx-quotes': [2, 'prefer-single'],
54
+ 'key-spacing': [2, {
55
+ 'beforeColon': false,
56
+ 'afterColon': true
57
+ }],
58
+ 'keyword-spacing': [2, {
59
+ 'before': true,
60
+ 'after': true
61
+ }],
62
+ 'new-cap': [2, {
63
+ 'newIsCap': true,
64
+ 'capIsNew': false
65
+ }],
66
+ 'new-parens': 2,
67
+ 'no-array-constructor': 2,
68
+ 'no-caller': 2,
69
+ 'no-console': 'off',
70
+ 'no-class-assign': 2,
71
+ 'no-cond-assign': 2,
72
+ 'no-const-assign': 2,
73
+ 'no-control-regex': 0,
74
+ 'no-delete-var': 2,
75
+ 'no-dupe-args': 2,
76
+ 'no-dupe-class-members': 2,
77
+ 'no-dupe-keys': 2,
78
+ 'no-duplicate-case': 2,
79
+ 'no-empty-character-class': 2,
80
+ 'no-empty-pattern': 2,
81
+ 'no-eval': 2,
82
+ 'no-ex-assign': 2,
83
+ 'no-extend-native': 2,
84
+ 'no-extra-bind': 2,
85
+ 'no-extra-boolean-cast': 2,
86
+ 'no-extra-parens': [2, 'functions'],
87
+ 'no-fallthrough': 2,
88
+ 'no-floating-decimal': 2,
89
+ 'no-func-assign': 2,
90
+ 'no-implied-eval': 2,
91
+ 'no-inner-declarations': [2, 'functions'],
92
+ 'no-invalid-regexp': 2,
93
+ 'no-irregular-whitespace': 2,
94
+ 'no-iterator': 2,
95
+ 'no-label-var': 2,
96
+ 'no-labels': [2, {
97
+ 'allowLoop': false,
98
+ 'allowSwitch': false
99
+ }],
100
+ 'no-lone-blocks': 2,
101
+ 'no-mixed-spaces-and-tabs': 2,
102
+ 'no-multi-spaces': 2,
103
+ 'no-multi-str': 2,
104
+ 'no-multiple-empty-lines': [2, {
105
+ 'max': 1
106
+ }],
107
+ 'no-native-reassign': 2,
108
+ 'no-negated-in-lhs': 2,
109
+ 'no-new-object': 2,
110
+ 'no-new-require': 2,
111
+ 'no-new-symbol': 2,
112
+ 'no-new-wrappers': 2,
113
+ 'no-obj-calls': 2,
114
+ 'no-octal': 2,
115
+ 'no-octal-escape': 2,
116
+ 'no-path-concat': 2,
117
+ 'no-proto': 2,
118
+ 'no-redeclare': 2,
119
+ 'no-regex-spaces': 2,
120
+ 'no-return-assign': [2, 'except-parens'],
121
+ 'no-self-assign': 2,
122
+ 'no-self-compare': 2,
123
+ 'no-sequences': 2,
124
+ 'no-shadow-restricted-names': 2,
125
+ 'no-spaced-func': 2,
126
+ 'no-sparse-arrays': 2,
127
+ 'no-this-before-super': 2,
128
+ 'no-throw-literal': 2,
129
+ 'no-trailing-spaces': 2,
130
+ 'no-undef': 2,
131
+ 'no-undef-init': 2,
132
+ 'no-unexpected-multiline': 2,
133
+ 'no-unmodified-loop-condition': 2,
134
+ 'no-unneeded-ternary': [2, {
135
+ 'defaultAssignment': false
136
+ }],
137
+ 'no-unreachable': 2,
138
+ 'no-unsafe-finally': 2,
139
+ 'no-unused-vars': [2, {
140
+ 'vars': 'all',
141
+ 'args': 'none'
142
+ }],
143
+ 'no-useless-call': 2,
144
+ 'no-useless-computed-key': 2,
145
+ 'no-useless-constructor': 2,
146
+ 'no-useless-escape': 0,
147
+ 'no-whitespace-before-property': 2,
148
+ 'no-with': 2,
149
+ 'one-var': [2, {
150
+ 'initialized': 'never'
151
+ }],
152
+ 'operator-linebreak': [2, 'after', {
153
+ 'overrides': {
154
+ '?': 'before',
155
+ ':': 'before'
156
+ }
157
+ }],
158
+ 'padded-blocks': [2, 'never'],
159
+ 'quotes': [2, 'single', {
160
+ 'avoidEscape': true,
161
+ 'allowTemplateLiterals': true
162
+ }],
163
+ 'semi': [2, 'never'],
164
+ 'semi-spacing': [2, {
165
+ 'before': false,
166
+ 'after': true
167
+ }],
168
+ 'space-before-blocks': [2, 'always'],
169
+ 'space-before-function-paren': [2, 'never'],
170
+ 'space-in-parens': [2, 'never'],
171
+ 'space-infix-ops': 2,
172
+ 'space-unary-ops': [2, {
173
+ 'words': true,
174
+ 'nonwords': false
175
+ }],
176
+ 'spaced-comment': [2, 'always', {
177
+ 'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
178
+ }],
179
+ 'template-curly-spacing': [2, 'never'],
180
+ 'use-isnan': 2,
181
+ 'valid-typeof': 2,
182
+ 'wrap-iife': [2, 'any'],
183
+ 'yield-star-spacing': [2, 'both'],
184
+ 'yoda': [2, 'never'],
185
+ 'prefer-const': 2,
186
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
187
+ 'object-curly-spacing': [2, 'always', {
188
+ objectsInObjects: false
189
+ }],
190
+ 'array-bracket-spacing': [2, 'never']
191
+ }
192
+ }
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # vue-face-login
2
+
3
+ ## Project setup
4
+ ```
5
+ npm install
6
+ ```
7
+
8
+ ### Compiles and hot-reloads for development
9
+ ```
10
+ 支持PC端 人脸注册和登陆,活体检测登陆
11
+ ![](/src/assets/login-1.png)
12
+
13
+ 支持手机扫码,人脸登陆,成功后PC端获取登陆结果
14
+ ![](/src/assets/login-2.png)
15
+
16
+ 1、本地启动演示代码
17
+ 解压 vue-face-login-x.y.z.tgz 到目录vue-face-login
18
+ cd vue-face-login
19
+ 在package.json目录中安装组件依赖并启动服务
20
+ npm i
21
+ npm i vue-face-login
22
+ npm run serve
23
+
24
+
25
+ 2、在浏览器中查看: https://127.0.0.1:80/ 这里使用了https,需要带上非默认端口
26
+ 在使用人脸登陆前,需要先【注册】
27
+ 有些PC浏览器在浏览器端无法开启,点【手机扫码】,手机端识别成功后,PC端会获取到结果。
28
+ ** 登陆时保持,眉毛,下巴等在圆圈内即可。
29
+
30
+ 3、需要后端配合,vue.config.js中的代理配置为后台演示主机,请勿做生产使用。
31
+
32
+ 4、如有需要,请联系我:15927331727(微信可搜)
33
+
34
+
35
+ ```
36
+
37
+ ### Compiles and minifies for production
38
+ ```
39
+ npm run build
40
+ ```
41
+
42
+ ### Lints and fixes files
43
+ ```
44
+ npm run lint
45
+ ```
46
+
47
+ ### Customize configuration
48
+ See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ presets: [
3
+ '@vue/cli-plugin-babel/preset'
4
+ ]
5
+ }
package/dist/demo.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>vue-alive-check demo</title><script src="./vue-alive-check.umd.js"></script><link rel="stylesheet" href="./vue-alive-check.css"><script>console.log(vue-alive-check)</script>