git init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'debug' => true,
|
||||
'controller_suffix' => 'Controller',
|
||||
'controller_reuse' => false,
|
||||
'public_path' => base_path('plugin' . DIRECTORY_SEPARATOR. 'admin' . DIRECTORY_SEPARATOR . 'public'),
|
||||
'plugin_market_host' => 'https://www.workerman.net',
|
||||
'version' => '0.6.33',
|
||||
];
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'files' => [
|
||||
base_path() . '/plugin/admin/app/functions.php',
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return new Webman\Container;
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => 'mysql',
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '3306',
|
||||
'database' => 'Medi_Companions',
|
||||
'username' => 'root',
|
||||
'password' => 'root',
|
||||
'charset' => 'utf8mb4',
|
||||
'collation' => 'utf8mb4_general_ci',
|
||||
'prefix' => '',
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [];
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use plugin\admin\app\exception\Handler;
|
||||
|
||||
return [
|
||||
'' => Handler::class,
|
||||
];
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'handlers' => [
|
||||
[
|
||||
'class' => Monolog\Handler\RotatingFileHandler::class,
|
||||
'constructor' => [
|
||||
runtime_path() . '/logs/webman.log',
|
||||
7, //$maxFiles
|
||||
Monolog\Logger::DEBUG,
|
||||
],
|
||||
'formatter' => [
|
||||
'class' => Monolog\Formatter\LineFormatter::class,
|
||||
'constructor' => [null, 'Y-m-d H:i:s', true],
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,433 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
[
|
||||
'title' => '数据库',
|
||||
'key' => 'database',
|
||||
'icon' => 'layui-icon-template-1',
|
||||
'weight' => 1000,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '所有表',
|
||||
'key' => 'plugin\\admin\\app\\controller\\TableController',
|
||||
'href' => '/app/admin/table/index',
|
||||
'type' => 1,
|
||||
'weight' => 800,
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '权限管理',
|
||||
'key' => 'auth',
|
||||
'icon' => 'layui-icon-vercode',
|
||||
'weight' => 900,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '账户管理',
|
||||
'key' => 'plugin\\admin\\app\\controller\\AdminController',
|
||||
'href' => '/app/admin/admin/index',
|
||||
'type' => 1,
|
||||
'weight' => 1000,
|
||||
],
|
||||
[
|
||||
'title' => '角色管理',
|
||||
'key' => 'plugin\\admin\\app\\controller\\RoleController',
|
||||
'href' => '/app/admin/role/index',
|
||||
'type' => 1,
|
||||
'weight' => 900,
|
||||
],
|
||||
[
|
||||
'title' => '菜单管理',
|
||||
'key' => 'plugin\\admin\\app\\controller\\RuleController',
|
||||
'href' => '/app/admin/rule/index',
|
||||
'type' => 1,
|
||||
'weight' => 800,
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '会员管理',
|
||||
'key' => 'user',
|
||||
'icon' => 'layui-icon-username',
|
||||
'weight' => 800,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '用户',
|
||||
'key' => 'plugin\\admin\\app\\controller\\UserController',
|
||||
'href' => '/app/admin/user/index',
|
||||
'type' => 1,
|
||||
'weight' => 800,
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '通用设置',
|
||||
'key' => 'common',
|
||||
'icon' => 'layui-icon-set',
|
||||
'weight' => 700,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '个人资料',
|
||||
'key' => 'plugin\\admin\\app\\controller\\AccountController',
|
||||
'href' => '/app/admin/account/index',
|
||||
'type' => 1,
|
||||
'weight' => 800,
|
||||
],
|
||||
[
|
||||
'title' => '附件管理',
|
||||
'key' => 'plugin\\admin\\app\\controller\\UploadController',
|
||||
'href' => '/app/admin/upload/index',
|
||||
'type' => 1,
|
||||
'weight' => 700,
|
||||
],
|
||||
[
|
||||
'title' => '字典设置',
|
||||
'key' => 'plugin\\admin\\app\\controller\\DictController',
|
||||
'href' => '/app/admin/dict/index',
|
||||
'type' => 1,
|
||||
'weight' => 600,
|
||||
],
|
||||
[
|
||||
'title' => '系统设置',
|
||||
'key' => 'plugin\\admin\\app\\controller\\ConfigController',
|
||||
'href' => '/app/admin/config/index',
|
||||
'type' => 1,
|
||||
'weight' => 500,
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '插件管理',
|
||||
'key' => 'plugin',
|
||||
'icon' => 'layui-icon-app',
|
||||
'weight' => 600,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '应用插件',
|
||||
'key' => 'plugin\\admin\\app\\controller\\PluginController',
|
||||
'href' => '/app/admin/plugin/index',
|
||||
'weight' => 800,
|
||||
'type' => 1,
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '开发辅助',
|
||||
'key' => 'dev',
|
||||
'icon' => 'layui-icon-fonts-code',
|
||||
'weight' => 500,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'title' => '表单构建',
|
||||
'key' => 'plugin\\admin\\app\\controller\\DevController',
|
||||
'href' => '/app/admin/dev/form-build',
|
||||
'weight' => 800,
|
||||
'type' => 1,
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => '示例页面',
|
||||
'key' => 'demos',
|
||||
'icon' => 'layui-icon-templeate-1',
|
||||
'weight' => 400,
|
||||
'type' => 0,
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo1',
|
||||
'title' => '工作空间',
|
||||
'type' => 0,
|
||||
'icon' => 'layui-icon-console',
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo10',
|
||||
'title' => '控制后台',
|
||||
'icon' => 'layui-icon-console',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/console/console1.html'
|
||||
], [
|
||||
'key' => 'demo13',
|
||||
'title' => '数据分析',
|
||||
'icon' => 'layui-icon-console',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/console/console2.html'
|
||||
], [
|
||||
'key' => 'demo14',
|
||||
'title' => '百度一下',
|
||||
'icon' => 'layui-icon-console',
|
||||
'type' => 1,
|
||||
'href' => 'http://www.baidu.com'
|
||||
], [
|
||||
'key' => 'demo15',
|
||||
'title' => '主题预览',
|
||||
'icon' => 'layui-icon-console',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/theme.html'
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'key' => 'demo20',
|
||||
'title' => '常用组件',
|
||||
'icon' => 'layui-icon-component',
|
||||
'type' => 0,
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo2011',
|
||||
'title' => '功能按钮',
|
||||
'icon' => 'layui-icon-face-smile',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/button.html'
|
||||
], [
|
||||
'key' => 'demo2014',
|
||||
'title' => '表单集合',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/form.html'
|
||||
], [
|
||||
'key' => 'demo2010',
|
||||
'title' => '字体图标',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/icon.html'
|
||||
], [
|
||||
'key' => 'demo2012',
|
||||
'title' => '多选下拉',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/select.html'
|
||||
], [
|
||||
'key' => 'demo2013',
|
||||
'title' => '动态标签',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/tag.html'
|
||||
], [
|
||||
'key' => 'demo2031',
|
||||
'title' => '数据表格',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/table.html'
|
||||
], [
|
||||
'key' => 'demo2032',
|
||||
'title' => '分布表单',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/step.html'
|
||||
], [
|
||||
'key' => 'demo2033',
|
||||
'title' => '树形表格',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/treetable.html'
|
||||
], [
|
||||
'key' => 'demo2034',
|
||||
'title' => '树状结构',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/dtree.html'
|
||||
], [
|
||||
'key' => 'demo2035',
|
||||
'title' => '文本编辑',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/tinymce.html'
|
||||
], [
|
||||
'key' => 'demo2036',
|
||||
'title' => '卡片组件',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/card.html'
|
||||
], [
|
||||
'key' => 'demo2021',
|
||||
'title' => '抽屉组件',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/drawer.html'
|
||||
], [
|
||||
'key' => 'demo2022',
|
||||
'title' => '消息通知',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/notice.html'
|
||||
], [
|
||||
'key' => 'demo2024',
|
||||
'title' => '加载组件',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/loading.html'
|
||||
], [
|
||||
'key' => 'demo2023',
|
||||
'title' => '弹层组件',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/popup.html'
|
||||
], [
|
||||
'key' => 'demo60131',
|
||||
'title' => '多选项卡',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/tab.html'
|
||||
], [
|
||||
'key' => 'demo60132',
|
||||
'title' => '数据菜单',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/menu.html'
|
||||
], [
|
||||
'key' => 'demo2041',
|
||||
'title' => '哈希加密',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/encrypt.html'
|
||||
], [
|
||||
'key' => 'demo2042',
|
||||
'title' => '图标选择',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/iconPicker.html'
|
||||
], [
|
||||
'key' => 'demo2043',
|
||||
'title' => '省市级联',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/area.html'
|
||||
], [
|
||||
'key' => 'demo2044',
|
||||
'title' => '数字滚动',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/count.html'
|
||||
], [
|
||||
'key' => 'demo2045',
|
||||
'title' => '顶部返回',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/document/topBar.html'
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'key' => 'demo666',
|
||||
'title' => '结果页面',
|
||||
'icon' => 'layui-icon-auz',
|
||||
'type' => 0,
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo667',
|
||||
'title' => '成功',
|
||||
'icon' => 'layui-icon-face-smile',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/result/success.html'
|
||||
], [
|
||||
'key' => 'demo668',
|
||||
'title' => '失败',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/result/error.html'
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'key' => 'demo-error',
|
||||
'title' => '错误页面',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 0,
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo403',
|
||||
'title' => '403',
|
||||
'icon' => 'layui-icon-face-smile',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/error/403.html'
|
||||
], [
|
||||
'key' => 'demo404',
|
||||
'title' => '404',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/error/404.html'
|
||||
], [
|
||||
'key' => 'demo500',
|
||||
'title' => '500',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/error/500.html'
|
||||
]
|
||||
|
||||
]
|
||||
],
|
||||
[
|
||||
'key' => 'demo-system',
|
||||
'title' => '系统管理',
|
||||
'icon' => 'layui-icon-set-fill',
|
||||
'type' => 0,
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo601',
|
||||
'title' => '用户管理',
|
||||
'icon' => 'layui-icon-face-smile',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/user.html'
|
||||
], [
|
||||
'key' => 'demo602',
|
||||
'title' => '角色管理',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/role.html'
|
||||
], [
|
||||
'key' => 'demo603',
|
||||
'title' => '权限管理',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/power.html'
|
||||
], [
|
||||
'key' => 'demo604',
|
||||
'title' => '部门管理',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/deptment.html'
|
||||
], [
|
||||
'key' => 'demo605',
|
||||
'title' => '行为日志',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/log.html'
|
||||
], [
|
||||
'key' => 'demo606',
|
||||
'title' => '数据字典',
|
||||
'icon' => 'layui-icon-face-cry',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/dict.html'
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'key' => 'demo-common',
|
||||
'title' => '常用页面',
|
||||
'icon' => 'layui-icon-template-1',
|
||||
'type' => 0,
|
||||
'href' => '',
|
||||
'children' => [
|
||||
[
|
||||
'key' => 'demo702',
|
||||
'title' => '空白页面',
|
||||
'icon' => 'layui-icon-face-smile',
|
||||
'type' => 1,
|
||||
'href' => '/app/admin/demos/system/space.html'
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use plugin\admin\app\middleware\AccessControl;
|
||||
|
||||
return [
|
||||
'' => [
|
||||
AccessControl::class,
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'host' => '127.0.0.1',
|
||||
'password' => null,
|
||||
'port' => 6379,
|
||||
'database' => 0,
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use plugin\admin\app\controller\AccountController;
|
||||
use plugin\admin\app\controller\DictController;
|
||||
use Webman\Route;
|
||||
use support\Request;
|
||||
|
||||
Route::any('/app/admin/account/captcha/{type}', [AccountController::class, 'captcha']);
|
||||
|
||||
Route::any('/app/admin/dict/get/{name}', [DictController::class, 'get']);
|
||||
|
||||
Route::fallback(function (Request $request) {
|
||||
return response($request->uri() . ' not found' , 404);
|
||||
}, 'admin');
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Static file settings
|
||||
*/
|
||||
return [
|
||||
'enable' => true,
|
||||
'middleware' => [ // Static file Middleware
|
||||
//app\middleware\StaticFile::class,
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => 'mysql',
|
||||
'connections' => [
|
||||
'mysql' => [
|
||||
// 数据库类型
|
||||
'type' => 'mysql',
|
||||
// 服务器地址
|
||||
'hostname' => '127.0.0.1',
|
||||
// 数据库名
|
||||
'database' => 'Medi_Companions',
|
||||
// 数据库用户名
|
||||
'username' => 'root',
|
||||
// 数据库密码
|
||||
'password' => 'root',
|
||||
// 数据库连接端口
|
||||
'hostport' => 3306,
|
||||
// 数据库连接参数
|
||||
'params' => [
|
||||
// 连接超时3秒
|
||||
\PDO::ATTR_TIMEOUT => 3,
|
||||
],
|
||||
// 数据库编码默认采用utf8
|
||||
'charset' => 'utf8mb4',
|
||||
// 数据库表前缀
|
||||
'prefix' => '',
|
||||
// 断线重连
|
||||
'break_reconnect' => true,
|
||||
// 关闭SQL监听日志
|
||||
'trigger_sql' => true,
|
||||
// 自定义分页类
|
||||
'bootstrap' => ''
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
/**
|
||||
* Multilingual configuration
|
||||
*/
|
||||
return [
|
||||
// Default language
|
||||
'locale' => 'zh_CN',
|
||||
// Fallback language
|
||||
'fallback_locale' => ['zh_CN', 'en'],
|
||||
// Folder where language files are stored
|
||||
'path' => base_path() . '/plugin/admin/resource/translations'
|
||||
];
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
use support\view\Raw;
|
||||
use support\view\Twig;
|
||||
use support\view\Blade;
|
||||
use support\view\ThinkPHP;
|
||||
|
||||
return [
|
||||
'handler' => Raw::class
|
||||
];
|
||||
Reference in New Issue
Block a user