Code Monkey home page Code Monkey logo

wwas-admin's Introduction

wwas-admin介绍

wwas是一个支持apfree-wifidog的认证服务平台

wwas-admin是WWAS的管理配置前端,其主要功能包括:

用户管理(增加、冻结)

用户管理设备导入导出

用户管理设备列表

用户管理设备详情

认证用户列表详情

微信认证配置

短信认证配置(目前支持阿里,网易)

一键免认证配置

用户密码认证

portal页面自定义设置

项目运行

git clone https://github.com/liudf0716/wwas-admin.git

cd wwas-admin

npm install

npm run dev

另外

该项目的运行需要wwas的后台支持

使用方法如下:

1.git clone https://github.com/liudf0716/wwas-admin.git

2.cd wwas-admin

  1. 修改config/index.js文件
 webServer: 'http://yourip:8001'

4.npm install

5.npm run build

6.把生成的dist文件夹整个复制到wwas的public目录下即可。

cp -r dist/* ../wwas/public/

部分功能截图

登录

image

设备管理

导入路由

image

image

微信认证配置

image

短信认证配置

image

一键免认证配置

image

用户密码认证配置

image

其他认证配置

image

说明

如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^

如有问题请直接在 Issues 中提,或者您发现问题并有非常好的解决方案,欢迎 PR 👍

项目交流群:331230369(QQ) 424031785(QQ)

wwas-admin's People

Contributors

apcoin avatar caizhibang avatar cooboyno111 avatar leangjia avatar lingnweb2016 avatar liudf0716 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wwas-admin's Issues

跳转为空时提示有误

操作步骤:
1、点击认证管理;
2、点击认证管理;
3、清空跳转框;
4、点击下一步。
预期结果:
请输入跳转页面。
实际结果:
请选择跳转页面。
1

npm run dev

root@wwas:~/wwas-admin# npm run dev

[email protected] dev /root/wwas-admin
node build/dev-server.js

[HPM] Proxy created: /api -> http://wifidog.kunteng.org.cn:8001
[HPM] Proxy rewrite rule created: "/api" ~> ""
[HPM] Proxy created: /ms -> https://www.easy-mock.com/mock/592501a391470c0ac1fab128
(node:31007) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess. (/root/wwas-admin/node_modules/opn/index.js:83:13)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:31007) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31007) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

ERROR Failed to compile with 4 errors 1:24:59 PM

These dependencies were not found:

  • readable-stream/writable.js in ./~/stream-browserify/index.js
  • readable-stream/duplex.js in ./~/stream-browserify/index.js
  • readable-stream/transform.js in ./~/stream-browserify/index.js
  • readable-stream/passthrough.js in ./~/stream-browserify/index.js

To install them, you can run: npm install --save readable-stream/writable.js readable-stream/duplex.js readable-stream/transform.js readable-stream/passthrough.js

Listening at http://localhost:80

认证时间为小数时提示有误

操作步骤:
1、点击认证管理;
2、点击认证设置;
3、输入时间:0.5;
4、点击下一步。
预期结果:
提示设置成功。
实际结果:
提示输入必须是数字。

修改微信认证时间时,wfc认证时间也被修改

操作步骤:
1、点击认证管理;
2、点击认证设置;
3、修改微信认证时间:600;
4、点击下一步。
预期结果:
提示微信设置成功。
实际结果:
提示微信设置成功,wfc认证的时间也被修改

安装npm install和npm run dev的过程出错

npm install 提示错误代码:
root@MyServer:~/wwas-admin#
npm install
npm ERR! code EINTEGRITY
npm ERR! sha1-eCA6TRwyiuHYbcpkYONptX9AVa4= integrity checksum failed when using sha1: wanted sha1-eCA6TRwyiuHYbcpkYONptX9AVa4= but got sha1-maktZcAnLevoyWtgV7yPv6O+1RE=. (305530 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-22T08_34_41_498Z-debug.log
root@MyServer:~/wwas-admin# npm install
npm ERR! code EINTEGRITY
npm ERR! sha1-eCA6TRwyiuHYbcpkYONptX9AVa4= integrity checksum failed when using sha1: wanted sha1-eCA6TRwyiuHYbcpkYONptX9AVa4= but got sha1-maktZcAnLevoyWtgV7yPv6O+1RE=. (305530 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-22T08_38_39_732Z-debug.log

npm run dev 提示错误代码
root@MyServer:~/wwas-admin# npm run dev

[email protected] dev /root/wwas-admin
node build/dev-server.js

[HPM] Proxy created: /api -> http://wechat.kunteng.org.cn:8001
[HPM] Proxy rewrite rule created: "/api" ~> ""
[HPM] Proxy created: /ms -> https://www.easy-mock.com/mock/592501a391470c0ac1fab128
events.js:167
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::80
at Server.setupListenHandle [as _listen2] (net.js:1330:14)
at listenInCluster (net.js:1378:12)
at Server.listen (net.js:1466:7)
at Function.listen (/root/wwas-admin/node_modules/express/lib/application.js:618:24)
at Object. (/root/wwas-admin/build/dev-server.js:71:22)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)
Emitted 'error' event at:
at emitErrorNT (net.js:1357:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:721:11)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: node build/dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-22T08_46_14_375Z-debug.log

我的主机服务器安装了Ubuntu 14 64位和wdcp一键安装包lanmp_v3.2

npm run dev

ERROR Failed to compile with 4 errors 5:28:42 PM

These dependencies were not found:

  • readable-stream/transform.js in ./~/stream-browserify/index.js
  • readable-stream/writable.js in ./~/stream-browserify/index.js
  • readable-stream/duplex.js in ./~/stream-browserify/index.js
  • readable-stream/passthrough.js in ./~/stream-browserify/index.js

To install them, you can run: npm install --save readable-stream/transform.js readable-stream/writable.js readable-stream/duplex.js readable-stream/passthrough.js

Listening at http://localhost:80

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.