forked from flexpool/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
288 additions
and
1,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { NextRequest, NextResponse } from 'next/server'; | ||
|
||
const BLOCKED_COUNTRY = 'RU'; | ||
|
||
export function middleware(req: NextRequest, res: NextResponse) { | ||
const country = req.geo?.country || 'US'; | ||
|
||
if ( | ||
req.nextUrl.pathname !== '/region-not-available' && | ||
country === BLOCKED_COUNTRY | ||
) { | ||
return new Response('Region not available', { | ||
status: 303, | ||
headers: { | ||
Location: '/region-not-available', | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; | ||
import { Page } from '../src/components/layout/Page'; | ||
import { Content } from '../src/components/layout/Content'; | ||
|
||
export const RegionNotAvailable = () => { | ||
return ( | ||
<Page> | ||
<Content md paddingLg> | ||
<h1>Flexpool.io has halted all service to Russia</h1> | ||
<p style={{ marginTop: '30px' }}> | ||
As announced today on Telegram, Discord, Reddit, Facebook, and | ||
Twitter, Flexpool has halted service to Russian IP addresses. | ||
<br /> | ||
<br /> | ||
We will be automatically paying out all unpaid balances that can be | ||
paid out (if your unpaid balance is below the gas price range, you | ||
cannot be paid out). This will be done automatically in the near | ||
future as soon as we can process the payouts, but please allow a | ||
couple of days for the payouts to be done. | ||
<br /> | ||
<br /> | ||
If you need a payout sooner, please contact us in the messenger below | ||
or via [email protected] with following: | ||
<br /> | ||
<br /> | ||
Mining address and coin (ETH, ETC, XCH): | ||
<br /> | ||
Gas price limit (ETH mainnet,if you want to change it): | ||
<br /> | ||
<br /> | ||
We will process the change as soon as possible. | ||
<br /> | ||
<br /> | ||
Support is not able to discuss the decision, make exceptions to it, or | ||
suggest VPN or other options. If you wish to discuss the topic, the | ||
channels mentioned above would be the place to do so. | ||
<br /> | ||
<br /> | ||
Thank you for your understanding, and we hope to welcome you back when | ||
conditions permit. | ||
</p> | ||
|
||
<h1>Flexpool.io прекратил обслуживание России</h1> | ||
|
||
<p style={{ marginTop: '30px' }}> | ||
Как было объявлено сегодня в Telegram, Discord, Reddit, Facebook и | ||
Twitter, компания Flexpool прекратила обслуживание российских | ||
IP-адресов. | ||
<br /> | ||
<br /> | ||
Мы будем автоматически выплачивать все неоплаченные остатки, которые | ||
могут быть выплачены (если ваш неоплаченный остаток ниже диапазона цен | ||
на газ, вы не можете быть выплачены). Это будет сделано автоматически | ||
в ближайшем будущем, как только мы сможем обработать выплаты, но, | ||
пожалуйста, оставьте пару дней для выплат. | ||
<br /> | ||
<br /> | ||
Если вам нужна выплата раньше, пожалуйста, свяжитесь с нами в | ||
мессенджере ниже или через [email protected], указав следующее: | ||
<br /> | ||
<br /> | ||
Адрес майнинга и монета (ETH, ETC, XCH): | ||
<br /> | ||
Предельная цена газа (ETH mainnet, если вы хотите ее изменить): | ||
<br /> | ||
<br /> | ||
Мы обработаем изменения как можно скорее. | ||
<br /> | ||
<br /> | ||
Служба поддержки не может обсуждать решение, делать исключения из него | ||
или предложить VPN или другие варианты. Если вы хотите обсудить эту | ||
тему, то каналы, упомянутые выше, будут подходящим местом для этого. | ||
<br /> | ||
<br /> | ||
Спасибо за ваше понимание, и мы надеемся принять вас снова, когда | ||
позволят условия. | ||
</p> | ||
</Content> | ||
</Page> | ||
); | ||
}; | ||
|
||
export default RegionNotAvailable; | ||
|
||
export async function getStaticProps({ locale }) { | ||
return { | ||
props: { | ||
...(await serverSideTranslations(locale, [ | ||
'common', | ||
'contact-us', | ||
'cookie-consent', | ||
'seo', | ||
])), | ||
}, | ||
}; | ||
} |
Oops, something went wrong.