chore: make DiscordWidget deprecated

This commit is contained in:
javayhu 2025-07-02 22:52:32 +08:00
parent aaadd7fcf4
commit cc9a15db8f
4 changed files with 6 additions and 8 deletions

View File

@ -124,14 +124,11 @@ NEXT_PUBLIC_DATAFAST_DOMAIN=""
# -----------------------------------------------------------------------------
# Discord
# Notification (Discord)
# -----------------------------------------------------------------------------
DISCORD_WEBHOOK_URL=""
NEXT_PUBLIC_DISCORD_WIDGET_SERVER_ID=""
NEXT_PUBLIC_DISCORD_WIDGET_CHANNEL_ID=""
# -----------------------------------------------------------------------------
# Feishu
# Notification (Feishu)
# -----------------------------------------------------------------------------
FEISHU_WEBHOOK_URL=""

View File

@ -73,8 +73,6 @@ export default async function HomePage(props: HomePageProps) {
<TestimonialsSection />
<NewsletterCard />
<DiscordWidget />
</div>
</>
);

View File

@ -9,6 +9,9 @@ import { useEffect, useRef, useState } from 'react';
/**
* Discord Widget, shows the channels and messages in the discord server
*
* @deprecated
* This feature is deprecated for Discord Widget can not be used anymore.
*
* https://docs.widgetbot.io/embed/react-embed/
*/
export default function DiscordWidget() {

View File

@ -66,7 +66,7 @@ export interface SocialConfig {
* Website features
*/
export interface FeaturesConfig {
enableDiscordWidget?: boolean; // Whether to enable the discord widget
enableDiscordWidget?: boolean; // Whether to enable the discord widget, deprecated
enableUpgradeCard?: boolean; // Whether to enable the upgrade card in the sidebar
enableAffonsoAffiliate?: boolean; // Whether to enable affonso affiliate
enablePromotekitAffiliate?: boolean; // Whether to enable promotekit affiliate