|
1 | 1 | <?php
|
2 |
| -// 仪表盘 |
3 |
| -menu()->add(0,[ |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | +/** |
| 5 | + * This file is part of zhuchunshu. |
| 6 | + * @link https://github.com/zhuchunshu |
| 7 | + * @document https://github.com/zhuchunshu/super-forum |
| 8 | + * @contact laravel@88.com |
| 9 | + * @license https://github.com/zhuchunshu/super-forum/blob/master/LICENSE |
| 10 | + */ |
| 11 | +menu()->add(0, [ |
4 | 12 | 'url' => '/admin',
|
5 | 13 | 'name' => '仪表盘',
|
6 | 14 | 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-dashboard" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
11 | 19 | </svg>',
|
12 | 20 | ]);
|
13 | 21 |
|
14 |
| -menu()->add(1,[ |
| 22 | +menu()->add(1, [ |
15 | 23 | 'url' => '/admin/plugins',
|
16 | 24 | 'name' => '组件',
|
17 | 25 | 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
23 | 31 | <line x1="16" y1="5.25" x2="8" y2="9.75"></line>
|
24 | 32 | </svg>',
|
25 | 33 | ]);
|
26 |
| -menu()->add(6,[ |
27 |
| - 'url' => '/admin/themes', |
28 |
| - 'name' => '主题', |
29 |
| - 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-template" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 34 | +menu()->add(6, [ |
| 35 | + 'url' => '/admin/themes', |
| 36 | + 'name' => '主题', |
| 37 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-template" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
30 | 38 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
31 | 39 | <rect x="4" y="4" width="16" height="4" rx="1"></rect>
|
32 | 40 | <rect x="4" y="12" width="6" height="8" rx="1"></rect>
|
|
36 | 44 | </svg>',
|
37 | 45 | ]);
|
38 | 46 |
|
39 |
| -menu()->add(101,[ |
40 |
| - 'url' => '/admin/plugins', |
41 |
| - 'name' => '管理', |
42 |
| - 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 47 | +menu()->add(101, [ |
| 48 | + 'url' => '/admin/plugins', |
| 49 | + 'name' => '管理', |
| 50 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
43 | 51 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
44 | 52 | <polyline points="12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3"></polyline>
|
45 | 53 | <line x1="12" y1="12" x2="20" y2="7.5"></line>
|
46 | 54 | <line x1="12" y1="12" x2="12" y2="21"></line>
|
47 | 55 | <line x1="12" y1="12" x2="4" y2="7.5"></line>
|
48 | 56 | <line x1="16" y1="5.25" x2="8" y2="9.75"></line>
|
49 | 57 | </svg>',
|
50 |
| - 'parent_id' => 1, |
| 58 | + 'parent_id' => 1, |
51 | 59 | ]);
|
52 | 60 |
|
53 |
| -menu()->add(102,[ |
54 |
| - 'url' => '/admin/plugins/upload', |
55 |
| - 'name' => '上传', |
56 |
| - 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 61 | +menu()->add(102, [ |
| 62 | + 'url' => '/admin/plugins/upload', |
| 63 | + 'name' => '上传', |
| 64 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
57 | 65 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
58 | 66 | <polyline points="12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3"></polyline>
|
59 | 67 | <line x1="12" y1="12" x2="20" y2="7.5"></line>
|
60 | 68 | <line x1="12" y1="12" x2="12" y2="21"></line>
|
61 | 69 | <line x1="12" y1="12" x2="4" y2="7.5"></line>
|
62 | 70 | <line x1="16" y1="5.25" x2="8" y2="9.75"></line>
|
63 | 71 | </svg>',
|
64 |
| - 'parent_id' => 1, |
| 72 | + 'parent_id' => 1, |
65 | 73 | ]);
|
66 |
| -menu()->add(161,[ |
67 |
| - 'url' => '/admin/themes', |
68 |
| - 'name' => '管理', |
69 |
| - 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 74 | +menu()->add(161, [ |
| 75 | + 'url' => '/admin/themes', |
| 76 | + 'name' => '管理', |
| 77 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
70 | 78 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
71 | 79 | <polyline points="12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3"></polyline>
|
72 | 80 | <line x1="12" y1="12" x2="20" y2="7.5"></line>
|
73 | 81 | <line x1="12" y1="12" x2="12" y2="21"></line>
|
74 | 82 | <line x1="12" y1="12" x2="4" y2="7.5"></line>
|
75 | 83 | <line x1="16" y1="5.25" x2="8" y2="9.75"></line>
|
76 | 84 | </svg>',
|
77 |
| - 'parent_id' => 6, |
| 85 | + 'parent_id' => 6, |
78 | 86 | ]);
|
79 | 87 |
|
80 |
| -menu()->add(162,[ |
81 |
| - 'url' => '/admin/themes/upload', |
82 |
| - 'name' => '上传', |
83 |
| - 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 88 | +menu()->add(162, [ |
| 89 | + 'url' => '/admin/themes/upload', |
| 90 | + 'name' => '上传', |
| 91 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
84 | 92 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
85 | 93 | <polyline points="12 3 20 7.5 20 16.5 12 21 4 16.5 4 7.5 12 3"></polyline>
|
86 | 94 | <line x1="12" y1="12" x2="20" y2="7.5"></line>
|
87 | 95 | <line x1="12" y1="12" x2="12" y2="21"></line>
|
88 | 96 | <line x1="12" y1="12" x2="4" y2="7.5"></line>
|
89 | 97 | <line x1="16" y1="5.25" x2="8" y2="9.75"></line>
|
90 | 98 | </svg>',
|
91 |
| - 'parent_id' => 6, |
| 99 | + 'parent_id' => 6, |
92 | 100 | ]);
|
93 | 101 |
|
94 | 102 | // 网站设置
|
95 |
| -menu()->add(5,[ |
| 103 | +menu()->add(5, [ |
| 104 | + 'url' => '/admin/setting', |
| 105 | + 'name' => '站务', |
| 106 | + 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-3d-cube-sphere" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 107 | + <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> |
| 108 | + <path d="M6 17.6l-2 -1.1v-2.5"></path> |
| 109 | + <path d="M4 10v-2.5l2 -1.1"></path> |
| 110 | + <path d="M10 4.1l2 -1.1l2 1.1"></path> |
| 111 | + <path d="M18 6.4l2 1.1v2.5"></path> |
| 112 | + <path d="M20 14v2.5l-2 1.12"></path> |
| 113 | + <path d="M14 19.9l-2 1.1l-2 -1.1"></path> |
| 114 | + <line x1="12" y1="12" x2="14" y2="10.9"></line> |
| 115 | + <line x1="18" y1="8.6" x2="20" y2="7.5"></line> |
| 116 | + <line x1="12" y1="12" x2="12" y2="14.5"></line> |
| 117 | + <line x1="12" y1="18.5" x2="12" y2="21"></line> |
| 118 | + <path d="M12 12l-2 -1.12"></path> |
| 119 | + <line x1="6" y1="8.6" x2="4" y2="7.5"></line> |
| 120 | +</svg>', |
| 121 | +]); |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | +menu()->add(501, [ |
96 | 126 | 'url' => '/admin/setting',
|
97 |
| - 'name' => '设置', |
| 127 | + 'name' => '站点设置', |
98 | 128 | 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
99 | 129 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
100 | 130 | <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z"></path>
|
101 | 131 | <circle cx="12" cy="12" r="3"></circle>
|
102 | 132 | </svg>',
|
| 133 | + 'parent_id' => 5, |
103 | 134 | ]);
|
104 | 135 |
|
105 |
| -menu()->add(10,[ |
106 |
| - 'url' => '#', |
107 |
| - 'name' => '文件编辑', |
| 136 | +menu()->add(10, [ |
| 137 | + 'url' => '#', |
| 138 | + 'name' => '文件编辑', |
108 | 139 | 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
109 | 140 | <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
110 | 141 | <path d="M14 3v4a1 1 0 0 0 1 1h4"></path>
|
111 | 142 | <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path>
|
112 |
| -</svg>' |
| 143 | +</svg>', |
113 | 144 | ]);
|
114 | 145 |
|
115 |
| -menu()->add(1001,[ |
| 146 | +menu()->add(1001, [ |
116 | 147 | 'url' => '/admin/EditFile/css',
|
117 | 148 | 'name' => '自定义CSS代码',
|
118 | 149 | 'icon' => '',
|
119 |
| - 'parent_id' => 10 |
| 150 | + 'parent_id' => 10, |
120 | 151 | ]);
|
121 | 152 |
|
122 |
| -menu()->add(1002,[ |
| 153 | +menu()->add(1002, [ |
123 | 154 | 'url' => '/admin/EditFile/js',
|
124 | 155 | 'name' => '自定义JS代码',
|
125 | 156 | 'icon' => '',
|
126 |
| - 'parent_id' => 10 |
| 157 | + 'parent_id' => 10, |
127 | 158 | ]);
|
0 commit comments