Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crypto-chords-api",
"version": "1.2.3",
"version": "1.2.4",
"description": "CryptoChords API",
"main": "src/server.ts",
"scripts": {
Expand Down
6 changes: 0 additions & 6 deletions apps/web/.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
VITE_TESTNET_API_WEBSERVICE_URL=ws://localhost:3000
VITE_MAINNET_API_WEBSERVICE_URL=ws://localhost:3001
VITE_USE_API_MOCK=false
VITE_GITHUB_URL=https://github.com/BVM-priv/CryptoChords/
VITE_CONTRIBUTORS_URL=https://github.com/BVM-priv/CryptoChords/blob/master/CONTRIBUTING.md
VITE_FEEDBACK_URL=https://github.com/BVM-priv/CryptoChords/issues/new
VITE_DISCORD_URL=https://discord.gg/RyhaPp7NvQ
VITE_X_URL=https://x.com/hemi_xyz
VITE_LOGO_URL=https://x.com/hemi_xyz
VITE_ENABLE_MAINNET=true
12 changes: 0 additions & 12 deletions apps/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ The environment variables are defined in the `.env` file. The following variable

- `VITE_USE_API_MOCK`: A boolean that indicates if the API should be mocked.

- `VITE_GITHUB_URL`: The URL of the GitHub repository. Used in the header and footer.

- `VITE_CONTRIBUTORS_URL`: The URL of the contributors file. Used in the header.

- `VITE_FEEDBACK_URL`: The URL of the feedback form. Used in the header.

- `VITE_DISCORD_URL`: The URL of the Discord server. Used in the footer and 'Join Comunity' button.

- `VITE_X_URL`: The URL of the X website. Used in the footer.

- `VITE_LOGO_URL`: The URL of the logo. If it is not defined, the logo will point to the root of the web app and will not display the pointer cursor.

### URL Parameter: networkType

The web application supports a URL parameter called networkType, which allows users to specify the desired network (mainnet or testnet).
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crypto-chords-web",
"private": true,
"version": "1.2.3",
"version": "1.2.4",
"description": "CryptoChords Web",
"type": "module",
"scripts": {
Expand All @@ -15,6 +15,7 @@
},
"dependencies": {
"@cryptochords/shared": "*",
"hemi-socials": "1.0.0",
"qs": "6.13.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { discordUrl } from 'hemi-socials';

export const JoinCommunityButton = (props: { className?: string }) => {
return (
<a
Expand All @@ -15,7 +17,7 @@ export const JoinCommunityButton = (props: { className?: string }) => {
bg-white
pointer
`}
href={import.meta.env.VITE_DISCORD_URL}
href={discordUrl}
target="_blank"
>
Join Community
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/presentation/react/components/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import logo from '/image/crypto-chords.svg';
import { twitterUrl } from 'hemi-socials';

export const Logo = function () {
const url = import.meta.env.VITE_LOGO_URL;
const url = twitterUrl;
return (
<a
href={url ?? '#'}
Expand Down
9 changes: 6 additions & 3 deletions apps/web/src/presentation/react/components/NavItems.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { NavItem } from './NavItem';
import { githubUrl } from 'hemi-socials';

export const NavItems = function (props: { className?: string }) {
return (
<nav className={`flex flex-row gap-8 ${props.className ?? ''}`}>
<NavItem href={import.meta.env.VITE_GITHUB_URL}>Github</NavItem>
<NavItem href={import.meta.env.VITE_CONTRIBUTORS_URL}>Contribute</NavItem>
<NavItem href={import.meta.env.VITE_FEEDBACK_URL}>Feedback</NavItem>
<NavItem href={`${githubUrl}/CryptoChords`}>Github</NavItem>
<NavItem href={`${githubUrl}/CryptoChords/blob/master/CONTRIBUTING.md`}>
Contribute
</NavItem>
<NavItem href={`${githubUrl}/CryptoChords/issues/new`}>Feedback</NavItem>
</nav>
);
};
9 changes: 3 additions & 6 deletions apps/web/src/presentation/react/components/Social.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import discord from '/image/social/discord.svg';
import x from '/image/social/x.svg';
import { discordUrl, twitterUrl } from 'hemi-socials';

export const Social = function (props: {
className?: string;
Expand All @@ -9,18 +10,14 @@ export const Social = function (props: {
<div
className={`${props.className ?? ''} flex flex-row md:gap-10 max-md:gap-7`}
>
<a
href={import.meta.env.VITE_DISCORD_URL}
target="_blank"
className="h-auto"
>
<a href={discordUrl} target="_blank" className="h-auto">
<img
src={discord}
className={`md:w-10 max-md:w-${props.large ? 16 : 7}`}
alt="Crypto Chords Discord"
/>
</a>
<a href={import.meta.env.VITE_X_URL} target="_blank" className="h-auto">
<a href={twitterUrl} target="_blank" className="h-auto">
<img
src={x}
className={`md:w-10 max-md:w-${props.large ? 16 : 7}`}
Expand Down
10 changes: 8 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.