This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support page components (#2211)
- Loading branch information
Showing
28 changed files
with
2,912 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,147 @@ | ||
export const categories = [ | ||
{ | ||
title: "Profile", | ||
subtitle: "38 topics", | ||
icon: "Profile", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Portfolio", | ||
subtitle: "9 topics", | ||
icon: "Portfolio", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Plugins", | ||
subtitle: "106 topics", | ||
icon: "Plugins", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Exchanges", | ||
subtitle: "28 topics", | ||
icon: "Exchange", | ||
path: "/", | ||
}, | ||
]; | ||
|
||
export const helpfulArticles = [ | ||
{ | ||
title: "How to register an account?", | ||
path: "/", | ||
}, | ||
{ | ||
title: "How to enter your account", | ||
path: "/", | ||
}, | ||
{ | ||
title: | ||
"How can I change my personal data if I do not have access to my account (forgot my password) and to my mail?", | ||
path: "/", | ||
}, | ||
{ | ||
title: | ||
"If you need to make changes to the data entered during the passage of verification, where to apply, how to issue a request?", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Can I delete my account", | ||
path: "/", | ||
}, | ||
]; | ||
|
||
export const popularArticles = [ | ||
{ | ||
title: "How to delete YubiKey for Two-factor Authentication (2FA)", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Using a YubiKey for Two-Factor Authentication (2FA)", | ||
path: "/", | ||
}, | ||
{ | ||
title: "2FA Code Error", | ||
path: "/", | ||
}, | ||
{ | ||
title: "How to Reset SMS Authentication", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Supported SMS countries Not Receiving SMS Auth Codes", | ||
path: "/", | ||
}, | ||
]; | ||
|
||
export const newestArticles = [ | ||
{ | ||
title: "How to withdraw from wallet", | ||
path: "/", | ||
}, | ||
{ | ||
title: "How to Make Internal Transfer within wallet", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Missing Withdrawals", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Withdrawal to a Wrong Address", | ||
path: "/", | ||
}, | ||
{ | ||
title: "How to Resume the Withdrawal Function", | ||
path: "/", | ||
}, | ||
]; | ||
|
||
export const faqArticles = [ | ||
{ | ||
title: "Development Environment Setup", | ||
description: | ||
"ARK Core is written in TypeScript, and it has been using Lerna to manage the development and publication of its packages and uses Node.js as execution environment. This guid will take you through the basic steps of setting up a development environment", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Core-Tester provides set of instructions on how to run commands for creating and sending transactions?", | ||
description: | ||
"With our testnet up and running, the first thing we need to do is to connect to it. All interactions between ARK Nodes and the outside world happen through the Public API, which is a REST API facilitating different actions on the blockchain.", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Setup Your Own Blockchain Explorer", | ||
description: | ||
"ARK Core is written in TypeScript, and it has been using Lerna to manage the development and publication of its packages and uses Node.js as execution environment. This guid will take you through the basic steps of setting up a development environment", | ||
path: "/", | ||
}, | ||
{ | ||
title: "Is it essential for you to understand and master the art of ARK Core Module development?", | ||
description: | ||
"ARK Core is written in TypeScript, and it has been using Lerna to manage the development and publication of its packages and uses Node.js as execution environment. This guid will take you through the basic steps of setting up a development environment", | ||
path: "/", | ||
}, | ||
]; | ||
|
||
export const article = { | ||
title: "Setup Your Own Blockchain Explorer", | ||
body: "jfdskfjdskajfkasjfasdf", | ||
category: "Portfolio", | ||
categoryIcon: "PortfolioTag", | ||
views: "32 908", | ||
image: "https://picsum.photos/seed/picsum/800/400", | ||
sections: [ | ||
{ | ||
title: "1. Introduction", | ||
id: "introduction", | ||
body: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tempus imperdiet nulla malesuada pellentesque elit eget. Bibendum arcu vitae elementum curabitur. Eget lorem dolor sed viverra ipsum. Ut venenatis tellus in metus vulputate eu scelerisque. Mi bibendum neque egestas congue quisque egestas diam in. Massa tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada proin. Nullam vehicula ipsum a arcu cursus. Sed libero enim sed faucibus. Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Quis imperdiet massa tincidunt nunc pulvinar sapien et ligula. Dui id ornare arcu odio ut sem nulla pharetra diam. Diam quam nulla porttitor massa.\n\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tempus imperdiet nulla malesuada pellentesque elit eget. Bibendum arcu vitae elementum curabitur. Eget lorem dolor sed viverra ipsum. Ut venenatis tellus in metus vulputate eu scelerisque. Mi bibendum neque egestas congue quisque egestas diam in. Massa tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada proin. Nullam vehicula ipsum a arcu cursus. Sed libero enim sed faucibus. Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Quis imperdiet massa tincidunt nunc pulvinar sapien et ligula. Dui id ornare arcu odio ut sem nulla pharetra diam. Diam quam nulla porttitor massa.", | ||
}, | ||
{ | ||
title: "2. Create Account", | ||
id: "account", | ||
body: | ||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tempus imperdiet nulla malesuada pellentesque elit eget. Bibendum arcu vitae elementum curabitur. Eget lorem dolor sed viverra ipsum. Ut venenatis tellus in metus vulputate eu scelerisque. Mi bibendum neque egestas congue quisque egestas diam in. Massa tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada proin. Nullam vehicula ipsum a arcu cursus. Sed libero enim sed faucibus. Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Quis imperdiet massa tincidunt nunc pulvinar sapien et ligula. Dui id ornare arcu odio ut sem nulla pharetra diam. Diam quam nulla porttitor massa.\n\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Tempus imperdiet nulla malesuada pellentesque elit eget. Bibendum arcu vitae elementum curabitur. Eget lorem dolor sed viverra ipsum. Ut venenatis tellus in metus vulputate eu scelerisque. Mi bibendum neque egestas congue quisque egestas diam in. Massa tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada proin. Nullam vehicula ipsum a arcu cursus. Sed libero enim sed faucibus. Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Quis imperdiet massa tincidunt nunc pulvinar sapien et ligula. Dui id ornare arcu odio ut sem nulla pharetra diam. Diam quam nulla porttitor massa.", | ||
}, | ||
], | ||
}; |
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,12 @@ | ||
export const translations: { [key: string]: any } = { | ||
HELP_SUPPORT_TITLE: "Help & Support", | ||
HELP_SUPPORT_SUBTITLE: "Do you need any help? Find it in our archive or write to us", | ||
CONTACT_US: "Contact us", | ||
HELPFUL_CATEGORY_TITLE: "Most Helpful", | ||
POPULAR_CATEGORY_TITLE: "Most Popular", | ||
NEWEST_CATEGORY_TITLE: "Newest", | ||
FAQ_PORTFOLIO_TITLE: "Portfolio", | ||
FAQ_PORTFOLIO_SUBTITLE: "Frequently asked questions about portfolio and addresses", | ||
FOOTER_HELP_TITLE: "Do you still need help with you question?", | ||
FOOTER_HELP_SUBTITLE: "Write us a letter and we will reply as soon as possible.", | ||
}; |
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,33 @@ | ||
import React from "react"; | ||
|
||
import { article } from "../../data"; | ||
import { Article } from "./Article"; | ||
|
||
export default { | ||
title: "Support / Pages / Article", | ||
}; | ||
|
||
export const Default = () => { | ||
return ( | ||
<Article | ||
title={article.title} | ||
category={article.category} | ||
categoryIcon={article.categoryIcon} | ||
views={article.views} | ||
sections={article.sections} | ||
/> | ||
); | ||
}; | ||
|
||
export const WithImage = () => { | ||
return ( | ||
<Article | ||
title={article.title} | ||
category={article.category} | ||
categoryIcon={article.categoryIcon} | ||
views={article.views} | ||
sections={article.sections} | ||
image={article.image} | ||
/> | ||
); | ||
}; |
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,21 @@ | ||
export const navStyles = ` | ||
& { | ||
.active { | ||
position: relative; | ||
font-weight: bold; | ||
&:after { | ||
position: absolute; | ||
content: ''; | ||
display: block; | ||
left: 0; | ||
top: 0.2rem; | ||
bottom: 0.2rem; | ||
background: var(--theme-color-primary-500); | ||
width: 0.2rem; | ||
margin-left: -0.1rem; | ||
border-radius: 2rem; | ||
} | ||
} | ||
} | ||
`; |
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,41 @@ | ||
/* eslint-disable @typescript-eslint/require-await */ | ||
import { render } from "@testing-library/react"; | ||
import { i18n } from "app/i18n"; | ||
import React from "react"; | ||
import { I18nextProvider } from "react-i18next"; | ||
|
||
import { article } from "../../data"; | ||
import { Article } from "./Article"; | ||
|
||
describe("SupportPage", () => { | ||
it("should render article support page", () => { | ||
const { container } = render( | ||
<I18nextProvider i18n={i18n}> | ||
<Article | ||
title={article.title} | ||
category={article.category} | ||
categoryIcon={article.categoryIcon} | ||
views={article.views} | ||
sections={article.sections} | ||
/> | ||
</I18nextProvider>, | ||
); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
|
||
it("should render article support page with main image", () => { | ||
const { container } = render( | ||
<I18nextProvider i18n={i18n}> | ||
<Article | ||
title={article.title} | ||
category={article.category} | ||
categoryIcon={article.categoryIcon} | ||
views={article.views} | ||
sections={article.sections} | ||
image={article.image} | ||
/> | ||
</I18nextProvider>, | ||
); | ||
expect(container).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.