Skip to content

Commit

Permalink
refactor: rename the project
Browse files Browse the repository at this point in the history
  • Loading branch information
TwilightLogic committed May 20, 2024
1 parent 8caa3b7 commit 1931073
Show file tree
Hide file tree
Showing 140 changed files with 7,569 additions and 0 deletions.
1 change: 1 addition & 0 deletions rooch-portal/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_ROOCH_OPERATING_ADDRESS=0xb7ac336861ff431cf867400a1eaa9708b5666954b5268486e6bd2e948aab1a42
28 changes: 28 additions & 0 deletions rooch-portal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
script/nohup.out

# script logs
.script/nohup.out
58 changes: 58 additions & 0 deletions rooch-portal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Rooch Portal

## Overview

Rooch Portal is a comprehensive dashboard designed to simplify the management of Bitcoin wallets, such as Unisat, and to provide users with an intuitive interface to manage their Bitcoin and Rooch accounts. This portal offers a centralized platform for tracking and organizing all assets, inscriptions, and other related financial activities.

### Features

- Wallet Connection: Easily connect and manage your Bitcoin wallets, such as Unisat.
- Asset Management: View and manage your Bitcoin and Rooch account assets in one place.
- Inscription Tracking: Keep track of all your inscriptions and related activities.
- User-Friendly Interface: Navigate through your financial information with an intuitive and user-friendly dashboard.
- Secure and Reliable: Prioritizes the security and privacy of your financial data.

## Getting Started

### Prerequisites

- Node.js
- npm or yarn
- A Bitcoin wallet (e.g., Unisat)

### Installation

1. Clone the repository:

```bash
git clone https://github.com/TwilightLogic/rooch-portal-v1.git
```

2. Navigate to the project directory:

## Run Locally

To get started you need to install [pnpm](https://pnpm.io/), then run the following command:

```bash
# Install all dependencies
pnpm install
# Run the build for the TypeScript SDK
pnpm rooch-sdk gen
pnpm rooch-sdk build
# Run the build for the TypeScript SDK Kit
pnpm rooch-sdk-kit build
# Run the build for the
pnpm rooch-portal-v1 dev

```

> All `pnpm` commands are intended to be run in the root of the Rooch repo. You can also run them within the `sdk/typescript` directory, and remove change `pnpm sdk` to just `pnpm` when running commands.
## Usage

After launching Rooch Portal, follow these steps:

1. Connect your Bitcoin wallet (e.g., Unisat) using the 'Connect Wallet' option.
2. Once connected, navigate through the dashboard to view your assets and inscriptions.
3. Use the provided tools and features to manage and organize your financial data effectively.
17 changes: 17 additions & 0 deletions rooch-portal/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/styles/global.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
14 changes: 14 additions & 0 deletions rooch-portal/design-style.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Design Style

Base on Tailwind

## Color

##### Border

- default: `zinc-200/40`
- darkMode: `zinc-700/80`

##### Hover

- default: `opacity-75`
13 changes: 13 additions & 0 deletions rooch-portal/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0

///<reference types="vite/client" />

interface ImportMetaEnv extends Readonly<Record<string, string>> {
readonly VITE_ROOCH_OPERATING_ADDRESS: string
// more env variables...
}

interface ImportMeta {
readonly env: ImportMetaEnv
}
27 changes: 27 additions & 0 deletions rooch-portal/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link id="favicon" rel="icon" type="image/svg+xml" href="/rooch_black_logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>rooch-portal-v1</title>
<script>
function setFavicon() {
const theme =
window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light'
const favicon = document.getElementById('favicon')
favicon.href = theme === 'dark' ? '/rooch_white_logo.svg' : '/rooch_black_logo.svg'
}

window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', setFavicon)

document.addEventListener('DOMContentLoaded', setFavicon)
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
73 changes: 73 additions & 0 deletions rooch-portal/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"name": "rooch-portal-v1",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite serve --mode development",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@emotion/cache": "11.10.5",
"@emotion/react": "11.10.6",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@roochnetwork/rooch-sdk": "workspace:*",
"@roochnetwork/rooch-sdk-kit": "workspace:*",
"@tanstack/react-query": "^5.0.0",
"@tanstack/react-table": "^8.11.8",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"i18next": "^23.8.2",
"lucide-react": "^0.321.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "2.4.0",
"react-i18next": "^14.0.3",
"react-jazzicon": "^1.0.4",
"react-loading-skeleton": "^3.4.0",
"react-router-dom": "^6.22.0",
"react-syntax-highlighter": "^15.5.0",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.22.4",
"zustand": "^4.4.7"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@types/node": "^20.11.16",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@types/react-syntax-highlighter": "^15.5.11",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.17",
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
}
6 changes: 6 additions & 0 deletions rooch-portal/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
1 change: 1 addition & 0 deletions rooch-portal/public/bitcoin_in_assets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-bsc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-btc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-coin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-eth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-index-assets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-metamask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-nft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions rooch-portal/public/icon-okx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1931073

Please sign in to comment.