Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(*): remove maintenance #2727

Merged
merged 1 commit into from
Nov 27, 2024
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: 0 additions & 1 deletion .env.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ NEXT_PUBLIC_HASURA_BASE_URL=http://localhost:8080
NEXT_PUBLIC_HASURA_BASE_WS_URL=ws://localhost:8080
NEXT_PUBLIC_LOGIN_URL=http://localhost:4000/signin/provider/github
NEXT_PUBLIC_ENV=local
NEXT_PUBLIC_MAINTENANCE=
NEXT_PUBLIC_GTM_ID=
NEXT_PUBLIC_LANGUAGES_FILTER="CSS,Dockerfile,Handlebars,HCL,HTML,Jupyter Notebook,Makefile,Nix,Procfile,SCSS,Shell"
NEXT_PUBLIC_ENABLE_DATADOG_LOG=false
Expand Down
20 changes: 0 additions & 20 deletions app/maintenance/features/guard/maintenance-guard.tsx

This file was deleted.

67 changes: 0 additions & 67 deletions app/maintenance/page.tsx

This file was deleted.

1 change: 0 additions & 1 deletion constants/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const NEXT_ROUTER = {
root: (githubLogin: string) => `/u/${githubLogin}`,
},
notFound: "/not-found",
maintenance: "/maintenance",
hackathons: {
root: "/hackathons",
details: {
Expand Down
1 change: 0 additions & 1 deletion frontend.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ services:
NEXT_PUBLIC_HASURA_BASE_WS_URL: ws://localhost:8080
NEXT_PUBLIC_LOGIN_URL: http://localhost:4000/signin/provider/github
NEXT_PUBLIC_ENV: local
NEXT_PUBLIC_MAINTENANCE:
NEXT_PUBLIC_GTM_ID:
NEXT_PUBLIC_LANGUAGES_FILTER: "CSS,Dockerfile,Handlebars,HCL,HTML,Jupyter Notebook,Makefile,Nix,Procfile,SCSS,Shell"
NEXT_PUBLIC_ENABLE_DATADOG_LOG: false
Expand Down
31 changes: 0 additions & 31 deletions middleware.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/App/Layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { useIsClient } from "usehooks-ts";
import { isInMaintenanceMode } from "utils/maintenance/maintenance";

import OnlyDustLogo from "src/App/Layout/Header/OnlyDustLogo";
import OnlyDustTitle from "src/App/Layout/Header/OnlyDustTitle";
Expand All @@ -12,7 +11,6 @@ import { useImpersonation } from "components/features/impersonation/use-imperson

import { NEXT_ROUTER } from "constants/router";

import { useMatchPath } from "hooks/router/useMatchPath";
import { useIntl } from "hooks/translate/use-translate";
import { useCurrentUser } from "hooks/users/use-current-user/use-current-user";

Expand All @@ -32,14 +30,6 @@ function HeaderClient() {
const applicationsMenuItem = githubUserId ? T("v2.features.menu.applications") : undefined;
const rewardsMenuItem = githubUserId ? T("v2.features.menu.rewards") : undefined;

const isMatchMaintenance = useMatchPath(NEXT_ROUTER.maintenance, { exact: false });

const { inMaintenance } = isInMaintenanceMode();

if (isMatchMaintenance || inMaintenance) {
return null;
}

return (
<View
menuItems={{
Expand Down
1 change: 0 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const config = {
HASURA_BASE_WS_URL: process.env.NEXT_PUBLIC_HASURA_BASE_WS_URL,
LOGIN_URL: process.env.NEXT_PUBLIC_LOGIN_URL,
ENVIRONMENT: process.env.NEXT_PUBLIC_ENV,
MAINTENANCE: process.env.NEXT_PUBLIC_MAINTENANCE,
GTM_ID: process.env.NEXT_PUBLIC_GTM_ID,
LANGUAGES_FILTER: process.env.NEXT_PUBLIC_LANGUAGES_FILTER,
GENERIC_METADATA_URL: process.env.NEXT_PUBLIC_GENERIC_METADATA_URL,
Expand Down
6 changes: 0 additions & 6 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1485,12 +1485,6 @@
"refresh": "Refresh page",
"title": "We've just crashed"
},
"maintenance": {
"description": "We're hard at work to make OnlyDust better. Check back later!",
"visitButton": "Visit onlydust.com",
"title": "We're under maintenance",
"overtime": "Things are taking a little longer than expected... \uD83E\uDEE3 Thanks for your patience."
},
"errorOccured": "An error just occurred, please try again. Contact us at [email protected] if the problem persists",
"errorFetchingNamedItem": "An error occurred while fetching __item__",
"loading": "Loading...",
Expand Down
26 changes: 0 additions & 26 deletions utils/maintenance/maintenance.test.ts

This file was deleted.

12 changes: 0 additions & 12 deletions utils/maintenance/maintenance.ts

This file was deleted.

Loading