├── ubuntu.sh ├── public ├── favicon.ico ├── robots.txt ├── js │ └── components │ │ ├── laydate-v1.1 │ │ ├── laydate │ │ │ ├── skins │ │ │ │ ├── dahong │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ │ ├── molv │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ │ └── default │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ └── need │ │ │ │ └── laydate.css │ │ └── demo.html │ │ └── layer-v3.0.1 │ │ ├── layer │ │ ├── skin │ │ │ └── default │ │ │ │ ├── icon.png │ │ │ │ ├── icon-ext.png │ │ │ │ ├── loading-0.gif │ │ │ │ ├── loading-1.gif │ │ │ │ └── loading-2.gif │ │ └── mobile │ │ │ ├── layer.js │ │ │ └── need │ │ │ └── layer.css │ │ └── demo.html ├── .htaccess ├── web.config └── index.php ├── database ├── seeds │ ├── .gitkeep │ ├── AclTableSeeder.php │ ├── UserTableSeeder.php │ ├── MessageTableSeeder.php │ ├── DatabaseSeeder.php │ └── DeviceTableSeeder.php ├── .gitignore ├── migrations │ ├── .gitkeep │ ├── 2016_12_24_103112_create_cache_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2016_12_27_204831_create_notifications_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2016_12_21_200848_create_jobs_table.php │ ├── 2016_12_19_185544_create_acls_table.php │ ├── 2016_12_21_212946_create_failed_jobs_table.php │ ├── 2016_12_19_035635_create_devices_table.php │ └── 2016_12_19_184848_create_messages_table.php └── factories │ ├── DeviceFactory.php │ └── ModelFactory.php ├── resources ├── views │ ├── emails │ │ └── foo.blade.php │ ├── vendor │ │ ├── .gitkeep │ │ ├── notifications │ │ │ └── email-plain.blade.php │ │ └── pagination │ │ │ ├── simple-default.blade.php │ │ │ ├── simple-bootstrap-4.blade.php │ │ │ ├── default.blade.php │ │ │ └── bootstrap-4.blade.php │ ├── home.blade.php │ ├── errors │ │ └── 503.blade.php │ ├── device │ │ ├── threshold.blade.php │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── show.blade.php │ ├── user │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ ├── auth │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ ├── login.blade.php │ │ └── register.blade.php │ ├── welcome.blade.php │ ├── acl │ │ ├── create.blade.php │ │ ├── edit.blade.php │ │ └── index.blade.php │ └── layouts │ │ └── app.blade.php ├── lang │ ├── zh │ │ └── validation.php │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ ├── passwords.php │ │ └── validation.php └── assets │ ├── js │ ├── app.js │ ├── components │ │ └── Example.vue │ └── bootstrap.js │ └── sass │ ├── _variables.scss │ └── app.scss ├── bootstrap ├── cache │ └── .gitignore ├── autoload.php └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── .gitattributes ├── .gitignore ├── readme.md ├── app ├── Message.php ├── Device.php ├── Http │ ├── Controllers │ │ ├── HomeController.php │ │ ├── Controller.php │ │ ├── Auth │ │ │ ├── ResetPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── AclController.php │ │ ├── UserController.php │ │ └── DeviceController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ └── RedirectIfAuthenticated.php │ ├── Requests │ │ ├── RemoveDeviceRequest.php │ │ ├── UpdateUserRequest.php │ │ ├── StoreAclRequest.php │ │ ├── StoreUserRequest.php │ │ ├── StoreDeviceRequest.php │ │ └── UpdateDeviceRequest.php │ └── Kernel.php ├── Channels │ └── VoiceChannel.php ├── Listeners │ ├── LogSentMessage.php │ ├── LogNotification.php │ ├── SendShipmentStatusNotification.php │ └── SendShipmentNotification.php ├── Providers │ ├── AppServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Acl.php ├── Events │ ├── OrderShipped.php │ └── ShippingStatusUpdated.php ├── Mail │ └── OrderShipped.php ├── User.php ├── Console │ └── Kernel.php ├── Notifications │ └── InvoicePaid.php └── Exceptions │ └── Handler.php ├── tests ├── ExampleTest.php └── TestCase.php ├── package.json ├── routes ├── web.php ├── api.php └── console.php ├── .env.example ├── gulpfile.js ├── server.php ├── phpunit.xml ├── config ├── compile.php ├── services.php ├── view.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── cache.php ├── auth.php ├── mail.php └── database.php ├── composer.json ├── artisan └── centos.sh /ubuntu.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /resources/views/emails/foo.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/storage 3 | /vendor 4 | /.idea 5 | Homestead.json 6 | Homestead.yaml 7 | .env 8 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 本项目用到了以下软件 2 | 3 | - emqtt 开发了设备上下线维护、消息保存功能插件 用的erlang语言 4 | - 使用websocket连接emqtt实现在后台发送指令控制远程设备 5 | - 使用highchart做图表, 输出设备统计信息 6 | - bootstrap、jQuery -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /app/Message.php: -------------------------------------------------------------------------------- 1 | '不合法', 5 | 'bar' => '不合法', 6 | 'custom' => [ 7 | 'email' => [ 8 | 'required' => '邮箱必须填写', 9 | ], 10 | ], 11 | 'attributes' => [ 12 | 'email' => '邮箱', 13 | ], 14 | ]; 15 | -------------------------------------------------------------------------------- /database/seeds/AclTableSeeder.php: -------------------------------------------------------------------------------- 1 | create([ 13 | 'name' => 'admin', 14 | 'email' => 'admin@w3hacker.com', 15 | ]); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /database/seeds/MessageTableSeeder.php: -------------------------------------------------------------------------------- 1 | create([ 15 | 'payload' => 'on', 16 | ]); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UserTableSeeder::class); 13 | // $this->call(DeviceTableSeeder::class); 14 | // $this->call(MessageTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 8 | } 9 | 10 | public function index() { 11 | return view('home'); 12 | } 13 | 14 | public function bar($attribute, $value, $parameters, $validator) { 15 | return $value == 'bar'; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 5 |
27 | @Name:layer-v 弹层组件说明 28 | @Author:贤心 29 | @Site:http://layer.layui.com/ 30 | 31 | 32 | 【注意事项】 33 | 一、使用时,请把文件夹layer整个放置在您站点的任何一个目录,只需引入layer.js即可,除jQuery外,其它文件无需再引入。 34 | 二、如果您的js引入是通过合并处理或者您不想采用layer自动获取的绝对路径,您可以通过layer.config()来配置(详见官网API页) 35 | 三、jquery需1.8+ 36 | 四、更多使用说明与演示,请参见layer官网。 37 | 五、使用时请务必保留来源,请勿用于违反我国法律的web平台。 38 | 六、layer遵循MIT开源协议,将永久性提供无偿服务。 39 |40 |
50 | @Name:laydate-v 日期控件说明 51 | @Author:贤心 52 | @Blog:http://sentsin.com 53 | @官网:http://sentsin.com/layui/laydate 54 | @开发版源码:http://sentsin.com/lily/lib/laydate/laydate.dev.js 55 | 56 | 【注意事项】 57 | 一、请千万勿移动laydate中的目录结构,它们具有完整的依赖体系。使用时,只需引入laydate/laydate.js即可。 58 | 二、如果您的网站的js采用合并或模块加载,您需要打开laydate.js,修改path。 59 | 三、laydate遵循LGPL开源协议,永不收费! 60 | 四、版权最终解释权:贤心。 61 |演示二: 62 | 63 |
现在,您已经看到了layDate的第一个版本了,路漫漫其修远兮,不管您的网站是否存有别的日期控件,但我相信总有一日您会对layDate情有独钟。
66 | 使用文档 67 | 皮肤库 68 | 更新日志 69 | 有问必答 70 |'+(n.content||"")+"
"),n.skin&&(n.anim="up"),"msg"===n.skin&&(n.shade=!1),s.innerHTML=(n.shade?"':"")+'| 用户名 | 20 |邮箱 | 21 |添加时间 | 22 |操作 | 23 |
|---|---|---|---|
| {{ $user->name }} | 29 |{{ $user->email }} | 30 |{{ $user->created_at }} | 31 |32 | 编辑 | 删除 33 | | 34 |您还没有添加任何设备 | 37 | @endforelse 38 | 39 |
| 允许/禁止 | 20 |ip地址 | 21 |用户名 | 22 |设备号 | 23 |权限 | 24 |主题 | 25 |操作 | 26 |
|---|---|---|---|---|---|---|
| {{ $acl->allowString }} | 32 |{{ $acl->ipaddr }} | 33 |{{ $acl->username }} | 34 |{{ $acl->clientID }} | 35 |{{ $acl->accessString }} | 36 |{{ $acl->topic }} | 37 |38 | 编辑 | 删除 39 | | 40 |您还没有添加任何设备 | 43 | @endforelse 44 | 45 |
故障报警
29 |机器运转
33 |机器做工
37 |禁止运行
41 |