diff --git a/.prettierrc b/.prettierrc index f71a7a2de..ff119d5df 100644 --- a/.prettierrc +++ b/.prettierrc @@ -13,5 +13,19 @@ "arrowParens": "avoid", "endOfLine": "crlf", "htmlWhitespaceSensitivity": "strict", - "plugins": ["prettier-plugin-tailwindcss"] + "plugins": ["prettier-plugin-tailwindcss"], + "overrides": [ + { + "files": "./apps/deploy-web/**", + "options": { + "tailwindConfig": "./apps/deploy-web/tailwind.config.ts" + } + }, + { + "files": "./apps/stats-web/**", + "options": { + "tailwindConfig": "./apps/stats-web/tailwind.config.ts" + } + } + ] } diff --git a/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx b/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx index d3d08db0a..95a8eb67c 100644 --- a/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx +++ b/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx @@ -117,7 +117,7 @@ export const AllowanceModal: React.FunctionComponent = ({ editingAllowanc >
-

+

handleDocClick(ev, "https://docs.cosmos.network/v0.46/modules/feegrant/")}>Authorized Fee Spend allows users to authorize spend of a set number of tokens on fees from a source wallet to a destination, funded wallet.

@@ -206,7 +206,7 @@ export const AllowanceModal: React.FunctionComponent = ({ editingAllowanc {!!amount && granteeAddress && ( -

+

This address will be able to spend up to {amount} AKT on transaction fees on your behalf ending on{" "} .

diff --git a/apps/deploy-web/src/components/authorizations/Authorizations.tsx b/apps/deploy-web/src/components/authorizations/Authorizations.tsx index 48677f423..4f7f5fa47 100644 --- a/apps/deploy-web/src/components/authorizations/Authorizations.tsx +++ b/apps/deploy-web/src/components/authorizations/Authorizations.tsx @@ -135,7 +135,7 @@ export const Authorizations: React.FunctionComponent = () => { } > -

+

These authorizations allow you authorize other addresses to spend on deployments or deployment deposits using your funds. You can revoke these authorizations at any time.

@@ -164,7 +164,7 @@ export const Authorizations: React.FunctionComponent = () => { ) : ( -

No authorizations given.

+

No authorizations given.

)} )} @@ -194,7 +194,7 @@ export const Authorizations: React.FunctionComponent = () => { ) : ( -

No authorizations received.

+

No authorizations received.

)} )} @@ -208,7 +208,7 @@ export const Authorizations: React.FunctionComponent = () => { -

+

These authorizations allow you authorize other addresses to spend on transaction fees using your funds. You can revoke these authorizations at any time.

@@ -244,7 +244,7 @@ export const Authorizations: React.FunctionComponent = () => { ) : ( -

No allowances issued.

+

No allowances issued.

)} )} @@ -275,7 +275,7 @@ export const Authorizations: React.FunctionComponent = () => { ) : ( -

No allowances received.

+

No allowances received.

)} )} diff --git a/apps/deploy-web/src/components/authorizations/GrantModal.tsx b/apps/deploy-web/src/components/authorizations/GrantModal.tsx index 227881c1d..190e8326a 100644 --- a/apps/deploy-web/src/components/authorizations/GrantModal.tsx +++ b/apps/deploy-web/src/components/authorizations/GrantModal.tsx @@ -124,7 +124,7 @@ export const GrantModal: React.FunctionComponent = ({ editingGrant, addre className="mb-4" // severity="info" > -

+

handleDocClick(ev, "https://akash.network/docs/network-features/authorized-spend/")}>Authorized Spend allows users to authorize spend of a set number of tokens from a source wallet to a destination, funded wallet. The authorized spend is restricted to Akash deployment activities and the recipient of the tokens would not have access to those tokens for other operations. @@ -235,7 +235,7 @@ export const GrantModal: React.FunctionComponent = ({ editingGrant, addre -

+

This address will be able to spend up to {amount} {selectedToken?.label} on your behalf ending on{" "} .

diff --git a/apps/deploy-web/src/components/deployments/DeploymentListRow.tsx b/apps/deploy-web/src/components/deployments/DeploymentListRow.tsx index 115cae3e1..dfefbaa55 100644 --- a/apps/deploy-web/src/components/deployments/DeploymentListRow.tsx +++ b/apps/deploy-web/src/components/deployments/DeploymentListRow.tsx @@ -167,7 +167,7 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment, return ( <> - viewDeployment()}> + viewDeployment()}>
= ({ deployment, } > - + )}
@@ -225,18 +225,18 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment,
-

+

The escrow account balance will be fully returned to your wallet balance when the deployment is closed.

} > - + {escrowBalance <= 0 && ( - + )} @@ -255,7 +255,7 @@ export const DeploymentListRow: React.FunctionComponent = ({ deployment, } > - + diff --git a/apps/deploy-web/src/components/deployments/DeploymentSubHeader.tsx b/apps/deploy-web/src/components/deployments/DeploymentSubHeader.tsx index 0bb87c563..d89e6239b 100644 --- a/apps/deploy-web/src/components/deployments/DeploymentSubHeader.tsx +++ b/apps/deploy-web/src/components/deployments/DeploymentSubHeader.tsx @@ -52,12 +52,12 @@ export const DeploymentSubHeader: React.FunctionComponent = ({ deployment } > - + {isActive && hasActiveLeases && !!realTimeLeft && realTimeLeft.escrow <= 0 && ( - + )} @@ -78,7 +78,7 @@ export const DeploymentSubHeader: React.FunctionComponent = ({ deployment } > - + ) @@ -102,7 +102,7 @@ export const DeploymentSubHeader: React.FunctionComponent = ({ deployment } > - + } diff --git a/apps/deploy-web/src/components/deployments/LeaseChip.tsx b/apps/deploy-web/src/components/deployments/LeaseChip.tsx index 45a07cf31..34e2c86bd 100644 --- a/apps/deploy-web/src/components/deployments/LeaseChip.tsx +++ b/apps/deploy-web/src/components/deployments/LeaseChip.tsx @@ -34,7 +34,7 @@ export const LeaseChip: React.FunctionComponent = ({ lease, providers }) event.stopPropagation(); }} > - + {providerName?.length > 20 ? ( diff --git a/apps/deploy-web/src/components/deployments/LeaseRow.tsx b/apps/deploy-web/src/components/deployments/LeaseRow.tsx index d2f9be6bc..480a77c46 100644 --- a/apps/deploy-web/src/components/deployments/LeaseRow.tsx +++ b/apps/deploy-web/src/components/deployments/LeaseRow.tsx @@ -151,11 +151,11 @@ export const LeaseRow = React.forwardRef(({ lease, setActi
-
+
{lease.state} - GSEQ: + GSEQ: {lease.gseq} OSEQ: @@ -274,7 +274,7 @@ export const LeaseRow = React.forwardRef(({ lease, setActi } > - +
)} @@ -292,19 +292,19 @@ export const LeaseRow = React.forwardRef(({ lease, setActi })} >
- Available:  + Available:  0 ? "success" : "destructive"} className="h-3 px-1 text-xs leading-3"> {service.available}
- Ready Replicas:  + Ready Replicas:  0 ? "success" : "destructive"} className="h-3 px-1 text-xs leading-3"> {service.ready_replicas}
- Total:  + Total:  0 ? "success" : "destructive"} className="h-3 px-1 text-xs leading-3"> {service.total} @@ -321,7 +321,7 @@ export const LeaseRow = React.forwardRef(({ lease, setActi
{p.host ? ( @@ -405,7 +405,7 @@ export const LeaseRow = React.forwardRef(({ lease, setActi } > - +
} > - + {!!deploymentVersion && deploymentVersion !== deployment.version && ( @@ -216,7 +216,7 @@ export const ManifestUpdate: React.FunctionComponent = ({ deployment, lea } > - + )}
diff --git a/apps/deploy-web/src/components/deployments/ServiceSelect.tsx b/apps/deploy-web/src/components/deployments/ServiceSelect.tsx index d59bc3558..b735ec781 100644 --- a/apps/deploy-web/src/components/deployments/ServiceSelect.tsx +++ b/apps/deploy-web/src/components/deployments/ServiceSelect.tsx @@ -31,7 +31,7 @@ export const ServiceSelect = ({ defaultValue, services, onSelectedChange }) => { > {services.map(service => ( - {service} + {service} ))} diff --git a/apps/deploy-web/src/components/deployments/ShellDownloadModal.tsx b/apps/deploy-web/src/components/deployments/ShellDownloadModal.tsx index 1683e1c3a..091e2abb8 100644 --- a/apps/deploy-web/src/components/deployments/ShellDownloadModal.tsx +++ b/apps/deploy-web/src/components/deployments/ShellDownloadModal.tsx @@ -64,7 +64,7 @@ export const ShellDownloadModal = ({ selectedLease, onCloseClick, selectedServic onClose={onCloseClick} maxWidth="xs" > -

Enter the path of a file on the server to be downloaded to your computer. Example: /app/logs.txt

+

Enter the path of a file on the server to be downloaded to your computer. Example: /app/logs.txt

This is an experimental feature and may not work reliably.

diff --git a/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx b/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx index 049a1d8a3..81d8ac2ff 100644 --- a/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx +++ b/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx @@ -153,7 +153,7 @@ export const GetStartedStepper: React.FunctionComponent = () => { Docker container -

+

To deploy on Akash, you need a docker container image as everything runs within Kubernetes. You can make your own or browse through pre-made solutions in the marketplace.

diff --git a/apps/deploy-web/src/components/graph/Graph.tsx b/apps/deploy-web/src/components/graph/Graph.tsx index 0301dc967..5e4cd9f6c 100644 --- a/apps/deploy-web/src/components/graph/Graph.tsx +++ b/apps/deploy-web/src/components/graph/Graph.tsx @@ -81,7 +81,7 @@ const Graph: React.FunctionComponent = ({ rangedData, snapshotMetad pointBorderWidth={graphMetadata.border} isInteractive={true} tooltip={props => ( -
+
diff --git a/apps/deploy-web/src/components/home/WelcomePanel.tsx b/apps/deploy-web/src/components/home/WelcomePanel.tsx index 9176ad11e..d6bb58254 100644 --- a/apps/deploy-web/src/components/home/WelcomePanel.tsx +++ b/apps/deploy-web/src/components/home/WelcomePanel.tsx @@ -38,7 +38,7 @@ export const WelcomePanel: React.FC = () => {
Getting started with Akash Console - Learn how to deploy your first docker container on Akash in a few click using Console. + Learn how to deploy your first docker container on Akash in a few click using Console.
@@ -51,7 +51,7 @@ export const WelcomePanel: React.FC = () => {
Explore the marketplace - + Browse through the marketplace of pre-made solutions with categories like blogs, blockchain nodes and more!
@@ -68,7 +68,7 @@ export const WelcomePanel: React.FC = () => { Learn more about Akash - Want to know about the advantages of using a decentralized cloud compute marketplace? + Want to know about the advantages of using a decentralized cloud compute marketplace?
diff --git a/apps/deploy-web/src/components/home/YourAccount.tsx b/apps/deploy-web/src/components/home/YourAccount.tsx index e2ad4f5b7..34d05eee8 100644 --- a/apps/deploy-web/src/components/home/YourAccount.tsx +++ b/apps/deploy-web/src/components/home/YourAccount.tsx @@ -207,7 +207,7 @@ export const YourAccount: React.FunctionComponent = ({ balances, isLoadin {activeDeployments.length > 0 ? ( <>
-

Total resources leased

+

Total resources leased

@@ -218,7 +218,7 @@ export const YourAccount: React.FunctionComponent = ({ balances, isLoadin
-

Total cost

+

Total cost

@@ -236,7 +236,7 @@ export const YourAccount: React.FunctionComponent = ({ balances, isLoadin

-

Providers

+

Providers

{userProviders?.map(p => ( @@ -311,7 +311,7 @@ export const YourAccount: React.FunctionComponent = ({ balances, isLoadin
-
+
@@ -370,7 +370,7 @@ const BalancePie: React.FunctionComponent = ({ label, data, get return `${udenomToDenom(value, 2)} ${label}`; }} tooltip={value => ( -
+
{value.datum.label}: {value.datum.formattedValue} diff --git a/apps/deploy-web/src/components/layout/AccountMenu.tsx b/apps/deploy-web/src/components/layout/AccountMenu.tsx index 003d0aebb..d6f92da39 100644 --- a/apps/deploy-web/src/components/layout/AccountMenu.tsx +++ b/apps/deploy-web/src/components/layout/AccountMenu.tsx @@ -90,7 +90,7 @@ export function AccountMenu() { ) : (
router.push(UrlService.signup())} > Sign up diff --git a/apps/deploy-web/src/components/layout/Footer.tsx b/apps/deploy-web/src/components/layout/Footer.tsx index 6d20ff9f1..d545e7b2c 100644 --- a/apps/deploy-web/src/components/layout/Footer.tsx +++ b/apps/deploy-web/src/components/layout/Footer.tsx @@ -32,7 +32,7 @@ export const Footer: React.FunctionComponent = () => { href="https://discord.gg/akash" target="_blank" rel="noreferrer" - className="hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary block px-4 py-2 text-current transition-all duration-300" + className="block px-4 py-2 text-current transition-all duration-300 hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary" > @@ -42,7 +42,7 @@ export const Footer: React.FunctionComponent = () => { href="https://twitter.com/akashnet_" target="_blank" rel="noreferrer" - className="hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary block px-4 py-2 text-current transition-all duration-300" + className="block px-4 py-2 text-current transition-all duration-300 hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary" > @@ -52,7 +52,7 @@ export const Footer: React.FunctionComponent = () => { href="https://youtube.com/@AkashNetwork?si=cd2P3ZlAa4gNQw0X?sub_confirmation=1" target="_blank" rel="noreferrer" - className="hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary block px-4 py-2 text-current transition-all duration-300" + className="block px-4 py-2 text-current transition-all duration-300 hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary" > @@ -62,7 +62,7 @@ export const Footer: React.FunctionComponent = () => { href="https://github.com/akash-network/cloudmos" target="_blank" rel="noreferrer" - className="hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary block px-4 py-2 text-current transition-all duration-300" + className="block px-4 py-2 text-current transition-all duration-300 hover:text-primary [&>path]:fill-muted-foreground/20 hover:[&>path]:fill-primary" > @@ -71,29 +71,29 @@ export const Footer: React.FunctionComponent = () => {
-

Terms of Service

+

Terms of Service

-

Privacy Policy

+

Privacy Policy

-

FAQ

+

FAQ

-

Contact

+

Contact

-

+

 Akash Network {year}

diff --git a/apps/deploy-web/src/components/layout/Nav.tsx b/apps/deploy-web/src/components/layout/Nav.tsx index 6411a5c05..dff88c6a5 100644 --- a/apps/deploy-web/src/components/layout/Nav.tsx +++ b/apps/deploy-web/src/components/layout/Nav.tsx @@ -21,7 +21,7 @@ export const Nav = ({ const theme = useCookieTheme(); return ( -
+
{!!theme && ( diff --git a/apps/deploy-web/src/components/layout/NodeStatusBar.tsx b/apps/deploy-web/src/components/layout/NodeStatusBar.tsx index a22b8c7d7..78d345538 100644 --- a/apps/deploy-web/src/components/layout/NodeStatusBar.tsx +++ b/apps/deploy-web/src/components/layout/NodeStatusBar.tsx @@ -19,7 +19,7 @@ export const NodeStatusBar = () => { return (
- {selectedNetwork.title} + {selectedNetwork.title}
diff --git a/apps/deploy-web/src/components/layout/Sidebar.tsx b/apps/deploy-web/src/components/layout/Sidebar.tsx index ea16c8672..4c74115e9 100644 --- a/apps/deploy-web/src/components/layout/Sidebar.tsx +++ b/apps/deploy-web/src/components/layout/Sidebar.tsx @@ -148,7 +148,7 @@ export const Sidebar: React.FunctionComponent = ({ isMobileOpen, handleDr const drawer = (
= ({ isMobileOpen, handleDr
{publicRuntimeConfig?.version && _isNavOpen && ( -
+
v{publicRuntimeConfig?.version} Beta @@ -230,7 +230,7 @@ export const Sidebar: React.FunctionComponent = ({ isMobileOpen, handleDr )} {!smallScreen && ( -
+
@@ -242,7 +242,7 @@ export const Sidebar: React.FunctionComponent = ({ isMobileOpen, handleDr return (
-
+
{state === "waitingForApproval" ? "APPROVE OR REJECT TX TO CONTINUE..." : "BROADCASTING TRANSACTION..."}
diff --git a/apps/deploy-web/src/components/layout/WalletStatus.tsx b/apps/deploy-web/src/components/layout/WalletStatus.tsx index e8f52d590..94a722ce8 100644 --- a/apps/deploy-web/src/components/layout/WalletStatus.tsx +++ b/apps/deploy-web/src/components/layout/WalletStatus.tsx @@ -73,7 +73,7 @@ export function WalletStatus() {
{walletBalances && ( -
+
diff --git a/apps/deploy-web/src/components/new-deployment/BidGroup.tsx b/apps/deploy-web/src/components/new-deployment/BidGroup.tsx index 20e69f650..ac4bb1a62 100644 --- a/apps/deploy-web/src/components/new-deployment/BidGroup.tsx +++ b/apps/deploy-web/src/components/new-deployment/BidGroup.tsx @@ -63,7 +63,7 @@ export const BidGroup: React.FunctionComponent = ({ }, [deploymentDetail, gseq]); return ( -
+
@@ -142,7 +142,7 @@ export const BidGroup: React.FunctionComponent = ({ {isFilteringFavorites && fBids.length === 0 && (
- There are no favorite providers for this group... + There are no favorite providers for this group...
)} @@ -150,7 +150,7 @@ export const BidGroup: React.FunctionComponent = ({ {isFilteringAudited && fBids.length === 0 && (
- + There are no audited providers for this group... Try unchecking the "Audited" flag or clearing the search. diff --git a/apps/deploy-web/src/components/new-deployment/BidRow.tsx b/apps/deploy-web/src/components/new-deployment/BidRow.tsx index a08568cb7..ed0e30d5a 100644 --- a/apps/deploy-web/src/components/new-deployment/BidRow.tsx +++ b/apps/deploy-web/src/components/new-deployment/BidRow.tsx @@ -72,7 +72,7 @@ export const BidRow: React.FunctionComponent = ({ bid, selectedBid, handl td]:px-2 [&>td]:py-1", { - ["hover:bg-muted-foreground/10 cursor-pointer"]: bid.state === "open", + ["cursor-pointer hover:bg-muted-foreground/10"]: bid.state === "open", [`border bg-green-100 dark:bg-green-900`]: isCurrentBid })} onClick={onRowClick} @@ -146,14 +146,14 @@ export const BidRow: React.FunctionComponent = ({ bid, selectedBid, handl {provider.isAudited ? (
- Yes + Yes
) : (
- No + No This provider is not audited, which may result in a lesser quality experience.}> @@ -171,8 +171,8 @@ export const BidRow: React.FunctionComponent = ({ bid, selectedBid, handl )} {!isLoadingStatus && error && !isSendingManifest && (
- - OFFLINE + + OFFLINE
)} diff --git a/apps/deploy-web/src/components/new-deployment/CreateLease.tsx b/apps/deploy-web/src/components/new-deployment/CreateLease.tsx index 8efdd7055..99f7df010 100644 --- a/apps/deploy-web/src/components/new-deployment/CreateLease.tsx +++ b/apps/deploy-web/src/components/new-deployment/CreateLease.tsx @@ -346,7 +346,7 @@ export const CreateLease: React.FunctionComponent = ({ dseq }) => { {!maxRequestsReached && !isSendingManifest && (
-

Waiting for more bids...

+

Waiting for more bids...

diff --git a/apps/deploy-web/src/components/new-deployment/DeployOptionBox.tsx b/apps/deploy-web/src/components/new-deployment/DeployOptionBox.tsx index b9ff82e7f..53e5c61e2 100644 --- a/apps/deploy-web/src/components/new-deployment/DeployOptionBox.tsx +++ b/apps/deploy-web/src/components/new-deployment/DeployOptionBox.tsx @@ -15,7 +15,7 @@ type Props = { export const DeployOptionBox: React.FunctionComponent = ({ title, description, icon, imageUrl, onClick }) => { return ( - +
{icon ? ( @@ -35,7 +35,7 @@ export const DeployOptionBox: React.FunctionComponent = ({ title, descrip
-

{description}

+

{description}

); diff --git a/apps/deploy-web/src/components/new-deployment/ManifestEdit.tsx b/apps/deploy-web/src/components/new-deployment/ManifestEdit.tsx index c215ce431..20c963bab 100644 --- a/apps/deploy-web/src/components/new-deployment/ManifestEdit.tsx +++ b/apps/deploy-web/src/components/new-deployment/ManifestEdit.tsx @@ -235,7 +235,7 @@ export const ManifestEdit: React.FunctionComponent = ({ editedManifest, s

} > - +
diff --git a/apps/deploy-web/src/components/new-deployment/Stepper.tsx b/apps/deploy-web/src/components/new-deployment/Stepper.tsx index d699f2178..a71d6df0f 100644 --- a/apps/deploy-web/src/components/new-deployment/Stepper.tsx +++ b/apps/deploy-web/src/components/new-deployment/Stepper.tsx @@ -30,7 +30,7 @@ export const CustomizedSteppers = ({ activeStep }: React.PropsWithChildren<{ act return (
@@ -696,7 +696,7 @@ const ProviderSelect: React.FunctionComponent = ({
} > - +
(({ classNam ( return (
{label && } -
+
{startIcon &&
{startIcon}
} (({ classNa return (