Skip to content

Commit

Permalink
revert all non-md changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandratran committed Jul 16, 2024
1 parent eb8e93e commit 16a6002
Show file tree
Hide file tree
Showing 76 changed files with 623 additions and 1,131 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Crowdin Action

on:
push:
path: ["i18n/**"]
branches: [main]
path: [ "i18n/**" ]
branches: [ main ]

permissions: write-all

Expand All @@ -23,10 +23,10 @@ jobs:
localization_branch_name: l10n_crowdin_translations

create_pull_request: true
pull_request_title: "New Crowdin translations"
pull_request_body: "New Crowdin pull request with translations"
pull_request_base_branch_name: "main"
pull_request_title: 'New Crowdin translations'
pull_request_body: 'New Crowdin pull request with translations'
pull_request_base_branch_name: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
2 changes: 1 addition & 1 deletion .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ files:
- source: /services/**/*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%
- source: /docs/**/*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%
1 change: 1 addition & 0 deletions dashboard-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ const sidebar = {
};

module.exports = sidebar;

4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const config = {
},
],
"./src/plugins/plugin-json-rpc.ts",
isProd ?
isProd ?
[
"docusaurus-plugin-segment",
{
Expand Down Expand Up @@ -353,4 +353,4 @@ const config = {
}),
};

module.exports = config;
module.exports = config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
"$root$": false
}
}
}
}
3 changes: 2 additions & 1 deletion services-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const sidebar = {
link: { type: "generated-index", slug: "/tutorials" },
collapsed: true,
items: [{ type: "autogenerated", dirName: "tutorials" }],
},
},
{
type: "category",
label: "Reference",
Expand All @@ -40,3 +40,4 @@ const sidebar = {
};

module.exports = sidebar;

72 changes: 35 additions & 37 deletions src/components/Banner/banner.module.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
.banner {
/* Change this to your preferred color */
padding: 20px;
text-align: center;
margin-bottom: 20px;
box-shadow: inset 0 0 10px rgb(180 179 179 / 50%); /* Light grey shading */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: var(--ifm-background-color);
color: var(--ifm-font-color-base);
border-bottom: 2px solid transparent;
border-right: 2px solid transparent;
transition:
border-color 0.3s ease,
box-shadow 0.3s ease;
border-radius: 15px;
}
.banner { /* Change this to your preferred color */
padding: 20px;
text-align: center;
margin-bottom: 20px;
box-shadow:
inset 0 0 10px rgb(180 179 179 / 50%); /* Light grey shading */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: var(--ifm-background-color);
color: var(--ifm-font-color-base);
border-bottom: 2px solid transparent;
border-right: 2px solid transparent;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
border-radius: 15px;
}

.button {
display: inline-block;
padding: 10px 20px;
text-decoration: none;
transition: background-color 0.3s ease;
margin-top: 20px;
text-align: center;
color: var(--ifm-color-white);
background-color: #f8883b;
border-radius: 0.3rem;
font-weight: bold;
font-size: 0.9rem;
}

.button:hover {
color: var(--ifm-color-white);
background-color: #faa66c;
}
.button {
display: inline-block;
padding: 10px 20px;
text-decoration: none;
transition: background-color 0.3s ease;
margin-top: 20px;
text-align: center;
color: var(--ifm-color-white);
background-color: #F8883B;
border-radius: 0.3rem;
font-weight: bold;
font-size: 0.90rem;
}
.button:hover {
color: var(--ifm-color-white);
background-color: #FAA66C;
}
6 changes: 2 additions & 4 deletions src/components/Banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ const Banner: React.FC<BannerProps> = ({ children }) => {
<Link
to="https://app.infura.io/register"
target="_blank"
rel="noopener noreferrer"
>
rel="noopener noreferrer">
<div className={`${styles.button} margin-top--xs`}>
Sign up&nbsp;
<svg
width="13.5"
height="13.5"
aria-hidden="true"
viewBox="0 0 24 24"
className="iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module"
>
className="iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module">
<path
fill="currentColor"
d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
}

.root:hover {
border-color: #1098fc;
border-color: #1098FC;
box-shadow: 0 3px 6px 0 rgb(0 0 0 / 20%);
}
6 changes: 2 additions & 4 deletions src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ export default function Card({ title, link, description }: CardItem) {
return (
<div className="col col--6 margin-bottom--lg">
<Link className={clsx(styles.root, "card")} href={link}>
<div className="card__header">
<h3>{title}</h3>
</div>
<div className="card__header"><h3>{title}</h3></div>
<div className="card__body">{description}</div>
</Link>
</div>
);
}
}
27 changes: 18 additions & 9 deletions src/components/CardList/CardListItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,32 @@ export default function CardListItem({ item }: CardListItemProps): JSX.Element {
<>
{item.title && (
<h2 className={clsx(styles.cardTitle)}>
{item.icon && <img src={item.icon} className={styles.cardIcon} />}
{item.icon && (
<img src={item.icon} className={styles.cardIcon} />
)}
<span>{item.title}</span>
</h2>
)}
{item.description && <p>{item.description}</p>}
{item.description && (
<p>
{item.description}
</p>
)}
</>
);

const rootClassName = clsx("card", "padding--lg", styles.cardContainer, {
[styles.flaskOnly]: item.flaskOnly,
});

const rootClassName = clsx(
"card",
"padding--lg",
styles.cardContainer,
{
[styles.flaskOnly]: item.flaskOnly,
},
);

if (item.href) {
return (
<Link className={rootClassName} href={item.href}>
{cardContent}
</Link>
<Link className={rootClassName} href={item.href}>{cardContent}</Link>
);
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/CardList/CardListItem/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
content: "Flask";
border-bottom-left-radius: var(--ifm-card-border-radius);
position: absolute;
top: 0;
right: 0;
top:0;
right:0;
padding: 0.1rem 0.75rem;
font-weight: 500;
background-color: var(--mm-flask-background-color);
Expand All @@ -48,4 +48,4 @@
width: 24px;
height: 24px;
margin-right: 8px;
}
}
40 changes: 13 additions & 27 deletions src/components/CardSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,38 @@ const CardList: CardItem[] = [
{
title: "Wallet",
link: "/wallet",
description: (
<>
Integrate your dapp with MetaMask using the Wallet API. You can interact
with your users&apos; Ethereum accounts from multiple dapp platforms.
</>
),
description: (<>
Integrate your dapp with MetaMask using the Wallet API. You can interact with your users&apos; Ethereum accounts from multiple dapp platforms.
</>),
},
{
title: "Snaps",
link: "/snaps",
description: (
<>
Extend the functionality of MetaMask using Snaps. You can create a Snap
to add support for custom networks, account types, APIs, and more.
</>
),
description: (<>
Extend the functionality of MetaMask using Snaps. You can create a Snap to add support for custom networks, account types, APIs, and more.
</>),
},
{
title: "Services",
link: "/services",
description: (
<>
Power your dapp or Snap using services provided by MetaMask and Infura.
This includes APIs aimed at optimizing essential development tasks.
</>
),
description: (<>
Power your dapp or Snap using services provided by MetaMask and Infura. This includes APIs aimed at optimizing essential development tasks.
</>),
},
{
title: "Infura dashboard",
link: "/developer-tools/dashboard",
description: (
<>
Use the Infura dashboard as a central hub for managing your Infura API
keys, monitoring usage, and accessing account and billing information.
</>
),
description: (<>
Use the Infura dashboard as a central hub for managing your Infura API keys, monitoring usage, and accessing account and billing information.
</>),
},
];

export default function CardSection(): JSX.Element {
return (
<section className="container margin-top--sm margin-bottom--lg">
<div className="row">
{CardList.map((props, idx) => (
<Card key={idx} {...props} />
))}
{CardList.map((props, idx) => (<Card key={idx} {...props} />))}
</div>
</section>
);
Expand Down
12 changes: 5 additions & 7 deletions src/components/CodeTerminal/AlertMsg.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export const INFO_MSG = {
<>
Your request has been sent to the network endpoint you selected which
returned a response with the requested information. Let’s see how it
performed in <Link to={`${API_URL}/dashboard/stats`}>stats</Link> or
dive into{" "}
<Link to="https://docs.infura.io/dashboard-stats">stats docs</Link>.
performed in <Link to={`${API_URL}/dashboard/stats`}>stats</Link> or dive
into <Link to="https://docs.infura.io/dashboard-stats">stats docs</Link>.
</>
),
},
Expand All @@ -52,8 +51,8 @@ export const INFO_MSG = {
description: (
<>
You don’t have any API Keys yet.{" "}
<Link to={`${API_URL}/dashboard`}>Create an API key</Link> to access
your keys and send requests.
<Link to={`${API_URL}/dashboard`}>Create an API key</Link> to access your
keys and send requests.
</>
),
},
Expand All @@ -63,8 +62,7 @@ export const INFO_MSG = {
title: "Access Denied",
description: (
<>
The API key selected is not authorized for this specific product. To
enable access, please add this product to your API key through the{" "}
The API key selected is not authorized for this specific product. To enable access, please add this product to your API key through the{" "}
<Link to={`${API_URL}/dashboard`}>Infura Dashboard</Link>
</>
),
Expand Down
Loading

0 comments on commit 16a6002

Please sign in to comment.