移除管理员首页

*无用页面
This commit is contained in:
Chenx221 2024-04-19 18:22:39 +08:00
parent e0a6fb0320
commit 81ad56139e
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
3 changed files with 2 additions and 12 deletions

View File

@ -46,7 +46,7 @@ class AdminController extends Controller
'rules' => [ 'rules' => [
[ [
'allow' => true, 'allow' => true,
'actions' => ['index', 'system', 'user', 'info', 'user-view', 'user-create', 'user-update', 'actions' => ['system', 'user', 'info', 'user-view', 'user-create', 'user-update',
'user-delete', 'user-totpoff', 'user-pwdreset', 'login-log', 'access-log', 'collection-up-log', 'user-delete', 'user-totpoff', 'user-pwdreset', 'login-log', 'access-log', 'collection-up-log',
'share-manage', 'share-manage-view', 'share-manage-delete', 'collection-manage', 'collection-manage-view', 'share-manage', 'share-manage-view', 'share-manage-delete', 'collection-manage', 'collection-manage-view',
'collection-manage-delete', 'notice-manage', 'sysinfo', 'get-sysinfo', 'ticket-manage', 'ticket-view', 'ticket-delete', 'ticket-reply'], 'collection-manage-delete', 'notice-manage', 'sysinfo', 'get-sysinfo', 'ticket-manage', 'ticket-view', 'ticket-delete', 'ticket-reply'],
@ -57,7 +57,6 @@ class AdminController extends Controller
'verbs' => [ 'verbs' => [
'class' => VerbFilter::class, 'class' => VerbFilter::class,
'actions' => [ 'actions' => [
'index' => ['GET'],
'system' => ['GET', 'POST'], 'system' => ['GET', 'POST'],
'user' => ['GET'], 'user' => ['GET'],
'user-view' => ['GET', 'POST'], 'user-view' => ['GET', 'POST'],
@ -95,14 +94,6 @@ class AdminController extends Controller
$this->layout = 'admin_main'; $this->layout = 'admin_main';
} }
/**
* @return string
*/
public function actionIndex(): string
{
return $this->render('index');
}
/** /**
* @return string|Response * @return string|Response
* @throws HttpException * @throws HttpException

View File

@ -72,7 +72,6 @@ $this->registerCssFile('@web/css/fuckyou-navpadding.css');
'options' => ['class' => 'navbar-nav'], 'options' => ['class' => 'navbar-nav'],
'items' => [ 'items' => [
['label' => '首页', 'url' => ['/site/index']], ['label' => '首页', 'url' => ['/site/index']],
['label' => '面板', 'url' => ['/admin/index']], // 未完工
['label' => '管理', 'items' => [ ['label' => '管理', 'items' => [
['label' => '用户管理', 'url' => ['/admin/user']], ['label' => '用户管理', 'url' => ['/admin/user']],
['label' => '文件分享管理', 'url' => ['/admin/share-manage']], ['label' => '文件分享管理', 'url' => ['/admin/share-manage']],

View File

@ -70,7 +70,7 @@ $darkMode = Yii::$app->user->isGuest ? 0 : Yii::$app->user->identity->dark_mode;
echo Nav::widget([ echo Nav::widget([
'options' => ['class' => 'navbar-nav'], 'options' => ['class' => 'navbar-nav'],
'items' => [ 'items' => [
['label' => '首页', 'url' => ['/site/index']], ['label' => '仪表盘', 'url' => ['/site/index']],
['label' => '我的文件', 'url' => ['/home/index']], ['label' => '我的文件', 'url' => ['/home/index']],
['label' => '文件保险箱', 'url' => ['/vault/index']], ['label' => '文件保险箱', 'url' => ['/vault/index']],
['label' => '分享管理', 'url' => ['/share/index']], ['label' => '分享管理', 'url' => ['/share/index']],