Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/dump/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function DumpContent() {

useEffect(() => {
if (bytebin) {
// eslint-disable-next-line react-hooks/set-state-in-effect
fetchBytebinDump();
} else if (gist) {
fetchGistDump();
Expand Down
4 changes: 2 additions & 2 deletions cloudflare-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4426,7 +4426,7 @@ type AIGatewayHeaders = {
[key: string]: string | number | boolean | object;
};
type AIGatewayUniversalRequest = {
provider: AIGatewayProviders | string; // eslint-disable-line
provider: AIGatewayProviders | string;
endpoint: string;
headers: Partial<AIGatewayHeaders>;
query: unknown;
Expand All @@ -4443,7 +4443,7 @@ declare abstract class AiGateway {
extraHeaders?: object;
},
): Promise<Response>;
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
}
interface AutoRAGInternalError extends Error {}
interface AutoRAGNotFoundError extends Error {}
Expand Down
1 change: 1 addition & 0 deletions components/BetaBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export function BetaBanner() {
useEffect(() => {
const isDismissed = localStorage.getItem(BETA_BANNER_DISMISSED_KEY);
if (!isDismissed) {
// eslint-disable-next-line react-hooks/set-state-in-effect
setIsVisible(true);
}

Expand Down
1 change: 1 addition & 0 deletions components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default function Footer() {
THEME_STORAGE_KEY,
) as ThemeMode | null;
const initialThemeMode = savedThemeMode || 'auto';
// eslint-disable-next-line react-hooks/set-state-in-effect
setThemeMode(initialThemeMode);
applyTheme(initialThemeMode, setColorScheme);
}, [setColorScheme]);
Expand Down
2 changes: 2 additions & 0 deletions contexts/shared-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,14 @@ export const SharedDataProvider = ({
};

useEffect(() => {
/* eslint-disable react-hooks/set-state-in-effect */
void fetchGithubData();
void fetchPatreonData();
void fetchDiscordData();
void fetchBuildData();
void fetchDownloads();
void loadVersionData();
/* eslint-enable react-hooks/set-state-in-effect */
}, []);

return (
Expand Down
108 changes: 90 additions & 18 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,101 @@ const nextConfig: NextConfig = {
// Ported from https://github.com/EssentialsX/Website/blob/master/plugins/wiki-redirects/index.js
// Paths missing /wiki/ prefix and .html extension
{ source: '/Home', destination: '/wiki/introduction', permanent: true },
{ source: '/Installing-EssentialsX', destination: '/wiki/installing', permanent: true },
{ source: '/Module-Breakdown', destination: '/wiki/modules', permanent: true },
{ source: '/Improvements', destination: '/wiki/improvements', permanent: true },
{
source: '/Installing-EssentialsX',
destination: '/wiki/installing',
permanent: true,
},
{
source: '/Module-Breakdown',
destination: '/wiki/modules',
permanent: true,
},
{
source: '/Improvements',
destination: '/wiki/improvements',
permanent: true,
},
{ source: '/Locale', destination: '/wiki/translations', permanent: true },
{ source: '/Common-Issues', destination: '/wiki/faq', permanent: true },
{ source: '/Command-Cooldowns', destination: '/wiki/command-cooldowns', permanent: true },
{ source: '/Color-Permissions', destination: '/wiki/color-permissions', permanent: true },
{ source: '/BannerMeta', destination: '/wiki/banner-meta', permanent: true },
{ source: '/discord-tutorial', destination: '/wiki/discord', permanent: true },
{ source: '/Discord-Tutorial', destination: '/wiki/discord', permanent: true },
{
source: '/Command-Cooldowns',
destination: '/wiki/command-cooldowns',
permanent: true,
},
{
source: '/Color-Permissions',
destination: '/wiki/color-permissions',
permanent: true,
},
{
source: '/BannerMeta',
destination: '/wiki/banner-meta',
permanent: true,
},
{
source: '/discord-tutorial',
destination: '/wiki/discord',
permanent: true,
},
{
source: '/Discord-Tutorial',
destination: '/wiki/discord',
permanent: true,
},
{ source: '/geoip', destination: '/wiki/geo-ip', permanent: true },
{ source: '/help', destination: '/wiki/faq', permanent: true },
// Paths missing /wiki/ prefix but with .html extension
{ source: '/Home.html', destination: '/wiki/introduction', permanent: true },
{ source: '/Installing-EssentialsX.html', destination: '/wiki/installing', permanent: true },
{ source: '/Module-Breakdown.html', destination: '/wiki/modules', permanent: true },
{ source: '/Improvements.html', destination: '/wiki/improvements', permanent: true },
{ source: '/Locale.html', destination: '/wiki/translations', permanent: true },
{ source: '/Common-Issues.html', destination: '/wiki/faq', permanent: true },
{ source: '/Command-Cooldowns.html', destination: '/wiki/command-cooldowns', permanent: true },
{ source: '/Color-Permissions.html', destination: '/wiki/color-permissions', permanent: true },
{ source: '/BannerMeta.html', destination: '/wiki/banner-meta', permanent: true },
{ source: '/Discord-Tutorial.html', destination: '/wiki/discord', permanent: true },
{
source: '/Home.html',
destination: '/wiki/introduction',
permanent: true,
},
{
source: '/Installing-EssentialsX.html',
destination: '/wiki/installing',
permanent: true,
},
{
source: '/Module-Breakdown.html',
destination: '/wiki/modules',
permanent: true,
},
{
source: '/Improvements.html',
destination: '/wiki/improvements',
permanent: true,
},
{
source: '/Locale.html',
destination: '/wiki/translations',
permanent: true,
},
{
source: '/Common-Issues.html',
destination: '/wiki/faq',
permanent: true,
},
{
source: '/Command-Cooldowns.html',
destination: '/wiki/command-cooldowns',
permanent: true,
},
{
source: '/Color-Permissions.html',
destination: '/wiki/color-permissions',
permanent: true,
},
{
source: '/BannerMeta.html',
destination: '/wiki/banner-meta',
permanent: true,
},
{
source: '/Discord-Tutorial.html',
destination: '/wiki/discord',
permanent: true,
},
{ source: '/geoip.html', destination: '/wiki/geo-ip', permanent: true },
{ source: '/help.html', destination: '/wiki/faq', permanent: true },
{
Expand Down
Loading