+
+
setDestinationAddress(value)} style={{ padding: "0.3rem" }} className="mt-2" placeholder="Please input wallet address" />
+
+
+
+
+
+
+ setAmount(value)} style={{ padding: "0.3rem" }} />
- {
- isShowWalletPaymentModal
- &&
-
-
-
-
-
setDestinationAddress(value)} style={{ padding: '0.3rem' }} className="mt-2" placeholder="Please input wallet address" />
-
-
-
-
-
-
-
setAmount(value)} style={{ padding: '0.3rem' }} />
+
+ {({ account, chain, openAccountModal, openChainModal, openConnectModal, authenticationStatus, mounted }) => {
+ // Note: If your app doesn't use authentication, you
+ // can remove all 'authenticationStatus' checks
+ const ready = mounted && authenticationStatus !== "loading";
+ setSelectedChain(chain?.name || "");
+ const connected = ready && account && chain && (!authenticationStatus || authenticationStatus === "authenticated");
+
+ return (
+
+ {(() => {
+ if (!connected) {
+ return (
+
+
+
+
+ );
+ }
+
+ if (chain.unsupported) {
+ return (
+
+ );
+ }
+
+ return (
+
+
+
+
+
+
-
-
- {({
- account,
- chain,
- openAccountModal,
- openChainModal,
- openConnectModal,
- authenticationStatus,
- mounted,
- }) => {
- // Note: If your app doesn't use authentication, you
- // can remove all 'authenticationStatus' checks
- const ready = mounted && authenticationStatus !== 'loading';
- setSelectedChain(chain?.name || '');
- const connected =
- ready &&
- account &&
- chain &&
- (!authenticationStatus ||
- authenticationStatus === 'authenticated');
-
- return (
-
- {(() => {
- if (!connected) {
- return (
-
-
-
-
- );
- }
-
- if (chain.unsupported) {
- return (
-
- );
- }
-
- return (
-
-
-
-
-
-
-
-
- );
- })()}
-
- );
- }}
-
-
-
- }
-
- );
+ );
+ })()}
+
+ );
+ }}
+
+
+
+ )}
+
+ );
}
function NavigationBar2() {
- return (
-
- );
+ return (
+
+ );
}
diff --git a/frontend/src/app/docs/components/docs-menu.tsx b/frontend/src/app/docs/components/docs-menu.tsx
index 22c95f00..2514fe18 100644
--- a/frontend/src/app/docs/components/docs-menu.tsx
+++ b/frontend/src/app/docs/components/docs-menu.tsx
@@ -1,113 +1,124 @@
import Link from "next/link";
-import classes from './docs-menu.module.css';
+import classes from "./docs-menu.module.css";
import ActiveLink from "@/app/components/active-link";
-const MENU_ITEMS = [{
- name: 'π Introduction',
- url: '/docs/introduction'
-}, {
- name: 'π½ Setup Commune',
- url: '/docs/setup-commune'
-}, {
- name: 'Basics',
- url: '/docs/basics',
- submenuItems: [{
- name: 'Create Commune',
- url: '/docs/basics/create-commune'
- },{
- name: 'Deploy Module',
- url: '/docs/basics/deploy-module'
- },{
- name: 'Register Commune',
- url: '/docs/basics/register-commune'
- },{
- name: 'Namespace',
- url: '/docs/basics/namespace'
- },{
- name: 'Connect a Module',
- url: '/docs/basics/connect-module'
- },{
- name: 'PyParse Cli Basics',
- url: '/docs/basics/cli-basics'
- },{
- name: 'Key Basics',
- url: '/docs/basics/key-basics'
- }],
-}, {
- name: 'Modules',
- url: '/docs/modules',
- submenuItems: [{
- name: 'Module Basics',
- url: '/docs/modules/module-basics'
- },{
- name: 'Bittensor',
- url: '/docs/modules/bittensor'
- },{
- name: 'Data-hf',
- url: '/docs/modules/data-hf'
- },{
- name: 'Model Transformer',
- url: '/docs/modules/model-hf'
- },{
- name: 'Data text realfakes',
- url: '/docs/modules/data-text-realfake'
- },{
- name: 'Data text truthqa',
- url: '/docs/modules/data-text-truthqa'
- },{
- name: 'Translate your site',
- url: '/docs/modules/translate-your-site'
- },{
- name: 'Model Openai',
- url: '/docs/modules/model-openai'
- },{
- name: 'Validator',
- url: '/docs/modules/validator'
- },{
- name: 'Vali text realfake',
- url: '/docs/modules/vali-text-realfake'
- }],
-}];
+const MENU_ITEMS = [
+ {
+ name: "π Introduction",
+ url: "/docs/introduction",
+ },
+ {
+ name: "π½ Setup Commune",
+ url: "/docs/setup-commune",
+ },
+ {
+ name: "Basics",
+ url: "/docs/basics/create-commune",
+ submenuItems: [
+ {
+ name: "Create Commune",
+ url: "/docs/basics/create-commune",
+ },
+ {
+ name: "Deploy Module",
+ url: "/docs/basics/deploy-module",
+ },
+ {
+ name: "Register Commune",
+ url: "/docs/basics/register-commune",
+ },
+ {
+ name: "Namespace",
+ url: "/docs/basics/namespace",
+ },
+ {
+ name: "Connect a Module",
+ url: "/docs/basics/connect-module",
+ },
+ {
+ name: "PyParse Cli Basics",
+ url: "/docs/basics/cli-basics",
+ },
+ {
+ name: "Key Basics",
+ url: "/docs/basics/key-basics",
+ },
+ ],
+ },
+ {
+ name: "Modules",
+ url: "/docs/modules",
+ submenuItems: [
+ {
+ name: "Module Basics",
+ url: "/docs/modules/module-basics",
+ },
+ {
+ name: "Bittensor",
+ url: "/docs/modules/bittensor",
+ },
+ {
+ name: "Data-hf",
+ url: "/docs/modules/data-hf",
+ },
+ {
+ name: "Model Transformer",
+ url: "/docs/modules/model-hf",
+ },
+ {
+ name: "Data text realfakes",
+ url: "/docs/modules/data-text-realfake",
+ },
+ {
+ name: "Data text truthqa",
+ url: "/docs/modules/data-text-truthqa",
+ },
+ {
+ name: "Translate your site",
+ url: "/docs/modules/translate-your-site",
+ },
+ {
+ name: "Model Openai",
+ url: "/docs/modules/model-openai",
+ },
+ {
+ name: "Validator",
+ url: "/docs/modules/validator",
+ },
+ {
+ name: "Vali text realfake",
+ url: "/docs/modules/vali-text-realfake",
+ },
+ ],
+ },
+];
-export default function DocsMenu () {
- return (
-
- );
-}
\ No newline at end of file
+export default function DocsMenu() {
+ return (
+
+ );
+}
diff --git a/frontend/src/app/docs/introduction/page.mdx b/frontend/src/app/docs/introduction/page.mdx
index 3a423472..026314d4 100644
--- a/frontend/src/app/docs/introduction/page.mdx
+++ b/frontend/src/app/docs/introduction/page.mdx
@@ -11,5 +11,5 @@ The overarching goal of Commune is to create a collaborative ecosystem where dev
# Socials
- Twitter: [@communeaidotorg](https://twitter.com/communeaidotorg)
-- Discord: [@commune.ai](https://discord.com/invite/DgjvQXvhqf)
-- Website: Comming Soon
+- Discord: [@commune.ai](https://discord.gg/communeai)
+- Website: [CommuneAi.org](https://www.communeai.org)
diff --git a/frontend/src/app/head.tsx b/frontend/src/app/head.tsx
index aef47247..819b61c5 100644
--- a/frontend/src/app/head.tsx
+++ b/frontend/src/app/head.tsx
@@ -1,19 +1,18 @@
-import React from 'react';
-import { useSearchParams } from 'next/navigation';
+import React from "react";
+import { useSearchParams } from "next/navigation";
const Head = () => {
-
const searchparms = useSearchParams();
- const name = searchparms.get('titlename');
+ const name = searchparms.get("titlename");
- const dynamicTitle = name ? `${name} | Commune` : 'Commune';
+ const dynamicTitle = name ? `${name} | Commune` : "Commune";
return (
<>
{dynamicTitle.charAt(0).toUpperCase() + dynamicTitle.slice(1)}
-
+
>
);