@@ -151,20 +151,20 @@ export default function CustomContextMenu(props) {
151
151
{ /* 跳转导航按钮 */ }
152
152
< div className = 'w-full px-2' >
153
153
154
- < div onClick = { handleJumpToRandomPost } title = { locale . MENU . WALK_AROUND } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
154
+ { siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_RANDOM_POST' ) && < div onClick = { handleJumpToRandomPost } title = { locale . MENU . WALK_AROUND } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
155
155
< i className = "fa-solid fa-podcast mr-2" />
156
156
< div className = 'whitespace-nowrap' > { locale . MENU . WALK_AROUND } </ div >
157
- </ div >
157
+ </ div > }
158
158
159
- < Link href = '/category' title = { locale . MENU . CATEGORY } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
159
+ { siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_CATEGORY' ) && < Link href = '/category' title = { locale . MENU . CATEGORY } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
160
160
< i className = "fa-solid fa-square-minus mr-2" />
161
161
< div className = 'whitespace-nowrap' > { locale . MENU . CATEGORY } </ div >
162
- </ Link >
162
+ </ Link > }
163
163
164
- < Link href = '/tag' title = { locale . MENU . TAGS } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
164
+ { siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_TAG' ) && < Link href = '/tag' title = { locale . MENU . TAGS } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
165
165
< i className = "fa-solid fa-tag mr-2" />
166
166
< div className = 'whitespace-nowrap' > { locale . MENU . TAGS } </ div >
167
- </ Link >
167
+ </ Link > }
168
168
169
169
</ div >
170
170
@@ -180,15 +180,16 @@ export default function CustomContextMenu(props) {
180
180
</ div >
181
181
) }
182
182
183
- < div onClick = { handleCopyLink } title = { locale . MENU . SHARE_URL } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
183
+ { siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_SHARE_LINK' ) && < div onClick = { handleCopyLink } title = { locale . MENU . SHARE_URL } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
184
184
< i className = "fa-solid fa-arrow-up-right-from-square mr-2" />
185
185
< div className = 'whitespace-nowrap' > { locale . MENU . SHARE_URL } </ div >
186
- </ div >
186
+ </ div > }
187
187
188
- < div onClick = { handleChangeDarkMode } title = { isDarkMode ? locale . MENU . LIGHT_MODE : locale . MENU . DARK_MODE } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
188
+ { siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_DARK_MODE' ) && < div onClick = { handleChangeDarkMode } title = { isDarkMode ? locale . MENU . LIGHT_MODE : locale . MENU . DARK_MODE } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
189
189
{ isDarkMode ? < i className = "fa-regular fa-sun mr-2" /> : < i className = "fa-regular fa-moon mr-2" /> }
190
190
< div className = 'whitespace-nowrap' > { isDarkMode ? locale . MENU . LIGHT_MODE : locale . MENU . DARK_MODE } </ div >
191
- </ div >
191
+ </ div > }
192
+
192
193
{ siteConfig ( 'CUSTOM_RIGHT_CLICK_CONTEXT_MENU_THEME_SWITCH' ) && (
193
194
< div onClick = { handleChangeTheme } title = { locale . MENU . THEME_SWITCH } className = 'w-full px-2 h-10 flex justify-start items-center flex-nowrap cursor-pointer hover:bg-blue-600 hover:text-white rounded-lg duration-200 transition-all' >
194
195
< i className = "fa-solid fa-palette mr-2" />
0 commit comments